1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for cyrus-sasl 2.1.28. 4# 5# Report bugs to <https://github.com/cyrusimap/cyrus-sasl/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://github.com/cyrusimap/cyrus-sasl/issues about 279$0: your system, including any error possibly output before 280$0: this message. Then install a modern shell, or manually 281$0: run the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='cyrus-sasl' 592PACKAGE_TARNAME='cyrus-sasl' 593PACKAGE_VERSION='2.1.28' 594PACKAGE_STRING='cyrus-sasl 2.1.28' 595PACKAGE_BUGREPORT='https://github.com/cyrusimap/cyrus-sasl/issues' 596PACKAGE_URL='https://www.cyrusimap.org' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_header_list= 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637HAVE_SPHINX_BUILD_FALSE 638HAVE_SPHINX_BUILD_TRUE 639PERL 640SPHINX_BUILD 641DIRS 642LTLIBOBJS 643BUILD_LIBOBJ_FALSE 644BUILD_LIBOBJ_TRUE 645LTGETNAMEINFOOBJS 646GETNAMEINFOOBJS 647LTGETADDRINFOOBJS 648GETADDRINFOOBJS 649LTSNPRINTFOBJS 650SNPRINTFOBJS 651GETSUBOPT 652LIBOBJS 653SASL_UTIL_HEADERS_EXTRA 654SASL_UTIL_LIBS_EXTRA 655SMTPTEST_PROGRAM 656SFIO_LIB_FLAGS 657SFIO_INC_FLAGS 658DMALLOC_LIBS 659WINDOWS_FALSE 660WINDOWS_TRUE 661MACOSX_FALSE 662MACOSX_TRUE 663configdir 664plugindir 665SASL_STATIC_LIBS 666SASL_STATIC_OBJS 667SASL_STATIC_SRCS 668SASL_MECHS 669LIB_LDAP 670LIB_SQLITE3 671LIB_SQLITE 672LIB_PGSQL 673LIB_MYSQL 674LDAP_LIBS 675PASSDSS_LIBS 676NTLM_LIBS 677PLAIN_LIBS 678LIB_PAM 679AUTH_SASLDB_FALSE 680AUTH_SASLDB_TRUE 681LIB_SIA 682GSSAPIBASE_LIBS 683LIB_CRYPT 684SASL_KRB_LIB 685SRP_LIBS 686OTP_LIBS 687SCRAM_LIBS 688LIB_DES 689CMU_LIB_SUBDIR 690LIB_DOOR 691IPCTYPE 692PWCHECK_FALSE 693PWCHECK_TRUE 694PWCHECKMETH 695SASLAUTHD_FALSE 696SASLAUTHD_TRUE 697SASL_DL_LIB 698NO_SASL_DB_MANS_FALSE 699NO_SASL_DB_MANS_TRUE 700SASL_DB_LIB 701SASL_DB_INC 702SASL_DB_BACKEND_STATIC 703SASL_DB_BACKEND 704SASL_DB_MANS 705SASL_DB_UTILS 706LIB_SOCKET 707SAMPLE_FALSE 708SAMPLE_TRUE 709PURIFY 710PURECOV 711SASL_STATIC_LIB 712LT_SYS_LIBRARY_PATH 713OTOOL64 714OTOOL 715LIPO 716NMEDIT 717DSYMUTIL 718MANIFEST_TOOL 719RANLIB 720ac_ct_AR 721AR 722DLLTOOL 723OBJDUMP 724NM 725ac_ct_DUMPBIN 726DUMPBIN 727LD 728FGREP 729SED 730LIBTOOL 731EGREP 732GREP 733LN_S 734LDFLAGS_FOR_BUILD 735CPPFLAGS_FOR_BUILD 736CFLAGS_FOR_BUILD 737BUILD_OBJEXT 738BUILD_EXEEXT 739CPP_FOR_BUILD 740ac_ct_CC_FOR_BUILD 741CC_FOR_BUILD 742CPP 743am__fastdepCC_FALSE 744am__fastdepCC_TRUE 745CCDEPMODE 746am__nodep 747AMDEPBACKSLASH 748AMDEP_FALSE 749AMDEP_TRUE 750am__include 751DEPDIR 752OBJEXT 753EXEEXT 754ac_ct_CC 755CPPFLAGS 756LDFLAGS 757CFLAGS 758CC 759AM_BACKSLASH 760AM_DEFAULT_VERBOSITY 761AM_DEFAULT_V 762AM_V 763am__untar 764am__tar 765AMTAR 766am__leading_dot 767SET_MAKE 768AWK 769mkdir_p 770MKDIR_P 771INSTALL_STRIP_PROGRAM 772STRIP 773install_sh 774MAKEINFO 775AUTOHEADER 776AUTOMAKE 777AUTOCONF 778ACLOCAL 779VERSION 780PACKAGE 781CYGPATH_W 782am__isrc 783INSTALL_DATA 784INSTALL_SCRIPT 785INSTALL_PROGRAM 786target_os 787target_vendor 788target_cpu 789target 790host_os 791host_vendor 792host_cpu 793host 794build_os 795build_vendor 796build_cpu 797build 798target_alias 799host_alias 800build_alias 801LIBS 802ECHO_T 803ECHO_N 804ECHO_C 805DEFS 806mandir 807localedir 808libdir 809psdir 810pdfdir 811dvidir 812htmldir 813infodir 814docdir 815oldincludedir 816includedir 817runstatedir 818localstatedir 819sharedstatedir 820sysconfdir 821datadir 822datarootdir 823libexecdir 824sbindir 825bindir 826program_transform_name 827prefix 828exec_prefix 829PACKAGE_URL 830PACKAGE_BUGREPORT 831PACKAGE_STRING 832PACKAGE_VERSION 833PACKAGE_TARNAME 834PACKAGE_NAME 835PATH_SEPARATOR 836SHELL 837am__quote' 838ac_subst_files='' 839ac_user_opts=' 840enable_option_checking 841enable_silent_rules 842enable_cmulocal 843enable_sample 844enable_obsolete_cram_attr 845enable_obsolete_digest_attr 846enable_dependency_tracking 847with_staticsasl 848enable_static 849enable_shared 850with_pic 851enable_fast_install 852with_aix_soname 853with_gnu_ld 854with_sysroot 855enable_libtool_lock 856enable_staticdlopen 857with_purecov 858with_purify 859with_dbpath 860with_dblib 861with_bdb_libdir 862with_bdb_incdir 863with_gdbm 864enable_keep_db_open 865with_devrandom 866with_saslauthd 867with_authdaemond 868with_pwcheck 869with_ipctype 870enable_alwaystrue 871enable_checkapop 872enable_cram 873with_lib_subdir 874with_openssl 875with_des 876enable_digest 877enable_scram 878enable_otp 879with_opie 880enable_srp 881enable_srp_setpass 882enable_krb4 883enable_gssapi 884with_gss_impl 885enable_gss_mutexes 886enable_sia 887enable_auth_sasldb 888enable_httpform 889with_pam 890enable_plain 891enable_anon 892enable_login 893enable_ntlm 894enable_passdss 895with_ldap 896enable_sql 897with_mysql 898with_pgsql 899with_sqlite 900with_sqlite3 901enable_ldapdb 902with_plugindir 903with_configdir 904with_rc4 905enable_macos_framework 906with_dmalloc 907with_sfio 908with_sphinx_build 909' 910 ac_precious_vars='build_alias 911host_alias 912target_alias 913CC 914CFLAGS 915LDFLAGS 916LIBS 917CPPFLAGS 918CPP 919LT_SYS_LIBRARY_PATH 920SPHINX_BUILD' 921 922 923# Initialize some variables set by options. 924ac_init_help= 925ac_init_version=false 926ac_unrecognized_opts= 927ac_unrecognized_sep= 928# The variables have the same names as the options, with 929# dashes changed to underlines. 930cache_file=/dev/null 931exec_prefix=NONE 932no_create= 933no_recursion= 934prefix=NONE 935program_prefix=NONE 936program_suffix=NONE 937program_transform_name=s,x,x, 938silent= 939site= 940srcdir= 941verbose= 942x_includes=NONE 943x_libraries=NONE 944 945# Installation directory options. 946# These are left unexpanded so users can "make install exec_prefix=/foo" 947# and all the variables that are supposed to be based on exec_prefix 948# by default will actually change. 949# Use braces instead of parens because sh, perl, etc. also accept them. 950# (The list follows the same order as the GNU Coding Standards.) 951bindir='${exec_prefix}/bin' 952sbindir='${exec_prefix}/sbin' 953libexecdir='${exec_prefix}/libexec' 954datarootdir='${prefix}/share' 955datadir='${datarootdir}' 956sysconfdir='${prefix}/etc' 957sharedstatedir='${prefix}/com' 958localstatedir='${prefix}/var' 959runstatedir='${localstatedir}/run' 960includedir='${prefix}/include' 961oldincludedir='/usr/include' 962docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 963infodir='${datarootdir}/info' 964htmldir='${docdir}' 965dvidir='${docdir}' 966pdfdir='${docdir}' 967psdir='${docdir}' 968libdir='${exec_prefix}/lib' 969localedir='${datarootdir}/locale' 970mandir='${datarootdir}/man' 971 972ac_prev= 973ac_dashdash= 974for ac_option 975do 976 # If the previous option needs an argument, assign it. 977 if test -n "$ac_prev"; then 978 eval $ac_prev=\$ac_option 979 ac_prev= 980 continue 981 fi 982 983 case $ac_option in 984 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 985 *=) ac_optarg= ;; 986 *) ac_optarg=yes ;; 987 esac 988 989 # Accept the important Cygnus configure options, so we can diagnose typos. 990 991 case $ac_dashdash$ac_option in 992 --) 993 ac_dashdash=yes ;; 994 995 -bindir | --bindir | --bindi | --bind | --bin | --bi) 996 ac_prev=bindir ;; 997 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 998 bindir=$ac_optarg ;; 999 1000 -build | --build | --buil | --bui | --bu) 1001 ac_prev=build_alias ;; 1002 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1003 build_alias=$ac_optarg ;; 1004 1005 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1006 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1007 ac_prev=cache_file ;; 1008 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1009 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1010 cache_file=$ac_optarg ;; 1011 1012 --config-cache | -C) 1013 cache_file=config.cache ;; 1014 1015 -datadir | --datadir | --datadi | --datad) 1016 ac_prev=datadir ;; 1017 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1018 datadir=$ac_optarg ;; 1019 1020 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1021 | --dataroo | --dataro | --datar) 1022 ac_prev=datarootdir ;; 1023 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1024 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1025 datarootdir=$ac_optarg ;; 1026 1027 -disable-* | --disable-*) 1028 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1029 # Reject names that are not valid shell variable names. 1030 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1031 as_fn_error $? "invalid feature name: $ac_useropt" 1032 ac_useropt_orig=$ac_useropt 1033 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1034 case $ac_user_opts in 1035 *" 1036"enable_$ac_useropt" 1037"*) ;; 1038 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1039 ac_unrecognized_sep=', ';; 1040 esac 1041 eval enable_$ac_useropt=no ;; 1042 1043 -docdir | --docdir | --docdi | --doc | --do) 1044 ac_prev=docdir ;; 1045 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1046 docdir=$ac_optarg ;; 1047 1048 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1049 ac_prev=dvidir ;; 1050 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1051 dvidir=$ac_optarg ;; 1052 1053 -enable-* | --enable-*) 1054 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1055 # Reject names that are not valid shell variable names. 1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1057 as_fn_error $? "invalid feature name: $ac_useropt" 1058 ac_useropt_orig=$ac_useropt 1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1060 case $ac_user_opts in 1061 *" 1062"enable_$ac_useropt" 1063"*) ;; 1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1065 ac_unrecognized_sep=', ';; 1066 esac 1067 eval enable_$ac_useropt=\$ac_optarg ;; 1068 1069 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1070 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1071 | --exec | --exe | --ex) 1072 ac_prev=exec_prefix ;; 1073 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1074 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1075 | --exec=* | --exe=* | --ex=*) 1076 exec_prefix=$ac_optarg ;; 1077 1078 -gas | --gas | --ga | --g) 1079 # Obsolete; use --with-gas. 1080 with_gas=yes ;; 1081 1082 -help | --help | --hel | --he | -h) 1083 ac_init_help=long ;; 1084 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1085 ac_init_help=recursive ;; 1086 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1087 ac_init_help=short ;; 1088 1089 -host | --host | --hos | --ho) 1090 ac_prev=host_alias ;; 1091 -host=* | --host=* | --hos=* | --ho=*) 1092 host_alias=$ac_optarg ;; 1093 1094 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1095 ac_prev=htmldir ;; 1096 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1097 | --ht=*) 1098 htmldir=$ac_optarg ;; 1099 1100 -includedir | --includedir | --includedi | --included | --include \ 1101 | --includ | --inclu | --incl | --inc) 1102 ac_prev=includedir ;; 1103 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1104 | --includ=* | --inclu=* | --incl=* | --inc=*) 1105 includedir=$ac_optarg ;; 1106 1107 -infodir | --infodir | --infodi | --infod | --info | --inf) 1108 ac_prev=infodir ;; 1109 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1110 infodir=$ac_optarg ;; 1111 1112 -libdir | --libdir | --libdi | --libd) 1113 ac_prev=libdir ;; 1114 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1115 libdir=$ac_optarg ;; 1116 1117 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1118 | --libexe | --libex | --libe) 1119 ac_prev=libexecdir ;; 1120 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1121 | --libexe=* | --libex=* | --libe=*) 1122 libexecdir=$ac_optarg ;; 1123 1124 -localedir | --localedir | --localedi | --localed | --locale) 1125 ac_prev=localedir ;; 1126 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1127 localedir=$ac_optarg ;; 1128 1129 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1130 | --localstate | --localstat | --localsta | --localst | --locals) 1131 ac_prev=localstatedir ;; 1132 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1133 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1134 localstatedir=$ac_optarg ;; 1135 1136 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1137 ac_prev=mandir ;; 1138 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1139 mandir=$ac_optarg ;; 1140 1141 -nfp | --nfp | --nf) 1142 # Obsolete; use --without-fp. 1143 with_fp=no ;; 1144 1145 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1146 | --no-cr | --no-c | -n) 1147 no_create=yes ;; 1148 1149 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1150 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1151 no_recursion=yes ;; 1152 1153 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1154 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1155 | --oldin | --oldi | --old | --ol | --o) 1156 ac_prev=oldincludedir ;; 1157 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1158 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1159 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1160 oldincludedir=$ac_optarg ;; 1161 1162 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1163 ac_prev=prefix ;; 1164 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1165 prefix=$ac_optarg ;; 1166 1167 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1168 | --program-pre | --program-pr | --program-p) 1169 ac_prev=program_prefix ;; 1170 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1171 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1172 program_prefix=$ac_optarg ;; 1173 1174 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1175 | --program-suf | --program-su | --program-s) 1176 ac_prev=program_suffix ;; 1177 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1178 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1179 program_suffix=$ac_optarg ;; 1180 1181 -program-transform-name | --program-transform-name \ 1182 | --program-transform-nam | --program-transform-na \ 1183 | --program-transform-n | --program-transform- \ 1184 | --program-transform | --program-transfor \ 1185 | --program-transfo | --program-transf \ 1186 | --program-trans | --program-tran \ 1187 | --progr-tra | --program-tr | --program-t) 1188 ac_prev=program_transform_name ;; 1189 -program-transform-name=* | --program-transform-name=* \ 1190 | --program-transform-nam=* | --program-transform-na=* \ 1191 | --program-transform-n=* | --program-transform-=* \ 1192 | --program-transform=* | --program-transfor=* \ 1193 | --program-transfo=* | --program-transf=* \ 1194 | --program-trans=* | --program-tran=* \ 1195 | --progr-tra=* | --program-tr=* | --program-t=*) 1196 program_transform_name=$ac_optarg ;; 1197 1198 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1199 ac_prev=pdfdir ;; 1200 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1201 pdfdir=$ac_optarg ;; 1202 1203 -psdir | --psdir | --psdi | --psd | --ps) 1204 ac_prev=psdir ;; 1205 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1206 psdir=$ac_optarg ;; 1207 1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1209 | -silent | --silent | --silen | --sile | --sil) 1210 silent=yes ;; 1211 1212 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1213 | --runstate | --runstat | --runsta | --runst | --runs \ 1214 | --run | --ru | --r) 1215 ac_prev=runstatedir ;; 1216 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1217 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1218 | --run=* | --ru=* | --r=*) 1219 runstatedir=$ac_optarg ;; 1220 1221 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1222 ac_prev=sbindir ;; 1223 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1224 | --sbi=* | --sb=*) 1225 sbindir=$ac_optarg ;; 1226 1227 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1228 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1229 | --sharedst | --shareds | --shared | --share | --shar \ 1230 | --sha | --sh) 1231 ac_prev=sharedstatedir ;; 1232 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1233 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1234 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1235 | --sha=* | --sh=*) 1236 sharedstatedir=$ac_optarg ;; 1237 1238 -site | --site | --sit) 1239 ac_prev=site ;; 1240 -site=* | --site=* | --sit=*) 1241 site=$ac_optarg ;; 1242 1243 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1244 ac_prev=srcdir ;; 1245 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1246 srcdir=$ac_optarg ;; 1247 1248 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1249 | --syscon | --sysco | --sysc | --sys | --sy) 1250 ac_prev=sysconfdir ;; 1251 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1252 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1253 sysconfdir=$ac_optarg ;; 1254 1255 -target | --target | --targe | --targ | --tar | --ta | --t) 1256 ac_prev=target_alias ;; 1257 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1258 target_alias=$ac_optarg ;; 1259 1260 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1261 verbose=yes ;; 1262 1263 -version | --version | --versio | --versi | --vers | -V) 1264 ac_init_version=: ;; 1265 1266 -with-* | --with-*) 1267 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1268 # Reject names that are not valid shell variable names. 1269 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1270 as_fn_error $? "invalid package name: $ac_useropt" 1271 ac_useropt_orig=$ac_useropt 1272 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1273 case $ac_user_opts in 1274 *" 1275"with_$ac_useropt" 1276"*) ;; 1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1278 ac_unrecognized_sep=', ';; 1279 esac 1280 eval with_$ac_useropt=\$ac_optarg ;; 1281 1282 -without-* | --without-*) 1283 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1284 # Reject names that are not valid shell variable names. 1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1286 as_fn_error $? "invalid package name: $ac_useropt" 1287 ac_useropt_orig=$ac_useropt 1288 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1289 case $ac_user_opts in 1290 *" 1291"with_$ac_useropt" 1292"*) ;; 1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1294 ac_unrecognized_sep=', ';; 1295 esac 1296 eval with_$ac_useropt=no ;; 1297 1298 --x) 1299 # Obsolete; use --with-x. 1300 with_x=yes ;; 1301 1302 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1303 | --x-incl | --x-inc | --x-in | --x-i) 1304 ac_prev=x_includes ;; 1305 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1306 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1307 x_includes=$ac_optarg ;; 1308 1309 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1310 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1311 ac_prev=x_libraries ;; 1312 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1313 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1314 x_libraries=$ac_optarg ;; 1315 1316 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1317Try \`$0 --help' for more information" 1318 ;; 1319 1320 *=*) 1321 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1322 # Reject names that are not valid shell variable names. 1323 case $ac_envvar in #( 1324 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1325 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1326 esac 1327 eval $ac_envvar=\$ac_optarg 1328 export $ac_envvar ;; 1329 1330 *) 1331 # FIXME: should be removed in autoconf 3.0. 1332 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1333 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1334 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1335 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1336 ;; 1337 1338 esac 1339done 1340 1341if test -n "$ac_prev"; then 1342 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1343 as_fn_error $? "missing argument to $ac_option" 1344fi 1345 1346if test -n "$ac_unrecognized_opts"; then 1347 case $enable_option_checking in 1348 no) ;; 1349 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1350 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1351 esac 1352fi 1353 1354# Check all directory arguments for consistency. 1355for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1356 datadir sysconfdir sharedstatedir localstatedir includedir \ 1357 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1358 libdir localedir mandir runstatedir 1359do 1360 eval ac_val=\$$ac_var 1361 # Remove trailing slashes. 1362 case $ac_val in 1363 */ ) 1364 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1365 eval $ac_var=\$ac_val;; 1366 esac 1367 # Be sure to have absolute directory names. 1368 case $ac_val in 1369 [\\/$]* | ?:[\\/]* ) continue;; 1370 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1371 esac 1372 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1373done 1374 1375# There might be people who depend on the old broken behavior: `$host' 1376# used to hold the argument of --host etc. 1377# FIXME: To remove some day. 1378build=$build_alias 1379host=$host_alias 1380target=$target_alias 1381 1382# FIXME: To remove some day. 1383if test "x$host_alias" != x; then 1384 if test "x$build_alias" = x; then 1385 cross_compiling=maybe 1386 elif test "x$build_alias" != "x$host_alias"; then 1387 cross_compiling=yes 1388 fi 1389fi 1390 1391ac_tool_prefix= 1392test -n "$host_alias" && ac_tool_prefix=$host_alias- 1393 1394test "$silent" = yes && exec 6>/dev/null 1395 1396 1397ac_pwd=`pwd` && test -n "$ac_pwd" && 1398ac_ls_di=`ls -di .` && 1399ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1400 as_fn_error $? "working directory cannot be determined" 1401test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1402 as_fn_error $? "pwd does not report name of working directory" 1403 1404 1405# Find the source files, if location was not specified. 1406if test -z "$srcdir"; then 1407 ac_srcdir_defaulted=yes 1408 # Try the directory containing this script, then the parent directory. 1409 ac_confdir=`$as_dirname -- "$as_myself" || 1410$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1411 X"$as_myself" : 'X\(//\)[^/]' \| \ 1412 X"$as_myself" : 'X\(//\)$' \| \ 1413 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1414$as_echo X"$as_myself" | 1415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1416 s//\1/ 1417 q 1418 } 1419 /^X\(\/\/\)[^/].*/{ 1420 s//\1/ 1421 q 1422 } 1423 /^X\(\/\/\)$/{ 1424 s//\1/ 1425 q 1426 } 1427 /^X\(\/\).*/{ 1428 s//\1/ 1429 q 1430 } 1431 s/.*/./; q'` 1432 srcdir=$ac_confdir 1433 if test ! -r "$srcdir/$ac_unique_file"; then 1434 srcdir=.. 1435 fi 1436else 1437 ac_srcdir_defaulted=no 1438fi 1439if test ! -r "$srcdir/$ac_unique_file"; then 1440 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1441 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1442fi 1443ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1444ac_abs_confdir=`( 1445 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1446 pwd)` 1447# When building in place, set srcdir=. 1448if test "$ac_abs_confdir" = "$ac_pwd"; then 1449 srcdir=. 1450fi 1451# Remove unnecessary trailing slashes from srcdir. 1452# Double slashes in file names in object file debugging info 1453# mess up M-x gdb in Emacs. 1454case $srcdir in 1455*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1456esac 1457for ac_var in $ac_precious_vars; do 1458 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1459 eval ac_env_${ac_var}_value=\$${ac_var} 1460 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1461 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1462done 1463 1464# 1465# Report the --help message. 1466# 1467if test "$ac_init_help" = "long"; then 1468 # Omit some internal or obsolete options to make the list less imposing. 1469 # This message is too long to be a string in the A/UX 3.1 sh. 1470 cat <<_ACEOF 1471\`configure' configures cyrus-sasl 2.1.28 to adapt to many kinds of systems. 1472 1473Usage: $0 [OPTION]... [VAR=VALUE]... 1474 1475To assign environment variables (e.g., CC, CFLAGS...), specify them as 1476VAR=VALUE. See below for descriptions of some of the useful variables. 1477 1478Defaults for the options are specified in brackets. 1479 1480Configuration: 1481 -h, --help display this help and exit 1482 --help=short display options specific to this package 1483 --help=recursive display the short help of all the included packages 1484 -V, --version display version information and exit 1485 -q, --quiet, --silent do not print \`checking ...' messages 1486 --cache-file=FILE cache test results in FILE [disabled] 1487 -C, --config-cache alias for \`--cache-file=config.cache' 1488 -n, --no-create do not create output files 1489 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1490 1491Installation directories: 1492 --prefix=PREFIX install architecture-independent files in PREFIX 1493 [$ac_default_prefix] 1494 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1495 [PREFIX] 1496 1497By default, \`make install' will install all the files in 1498\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1499an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1500for instance \`--prefix=\$HOME'. 1501 1502For better control, use the options below. 1503 1504Fine tuning of the installation directories: 1505 --bindir=DIR user executables [EPREFIX/bin] 1506 --sbindir=DIR system admin executables [EPREFIX/sbin] 1507 --libexecdir=DIR program executables [EPREFIX/libexec] 1508 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1509 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1510 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1511 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1512 --libdir=DIR object code libraries [EPREFIX/lib] 1513 --includedir=DIR C header files [PREFIX/include] 1514 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1515 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1516 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1517 --infodir=DIR info documentation [DATAROOTDIR/info] 1518 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1519 --mandir=DIR man documentation [DATAROOTDIR/man] 1520 --docdir=DIR documentation root [DATAROOTDIR/doc/cyrus-sasl] 1521 --htmldir=DIR html documentation [DOCDIR] 1522 --dvidir=DIR dvi documentation [DOCDIR] 1523 --pdfdir=DIR pdf documentation [DOCDIR] 1524 --psdir=DIR ps documentation [DOCDIR] 1525_ACEOF 1526 1527 cat <<\_ACEOF 1528 1529Program names: 1530 --program-prefix=PREFIX prepend PREFIX to installed program names 1531 --program-suffix=SUFFIX append SUFFIX to installed program names 1532 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1533 1534System types: 1535 --build=BUILD configure for building on BUILD [guessed] 1536 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1537 --target=TARGET configure for building compilers for TARGET [HOST] 1538_ACEOF 1539fi 1540 1541if test -n "$ac_init_help"; then 1542 case $ac_init_help in 1543 short | recursive ) echo "Configuration of cyrus-sasl 2.1.28:";; 1544 esac 1545 cat <<\_ACEOF 1546 1547Optional Features: 1548 --disable-option-checking ignore unrecognized --enable/--with options 1549 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1550 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1551 --enable-silent-rules less verbose build output (undo: "make V=1") 1552 --disable-silent-rules verbose build output (undo: "make V=0") 1553 --enable-cmulocal enable local mods for CMU [[no]] 1554 --enable-sample compile sample code [[yes]] 1555 --enable-obsolete_cram_attr 1556 enable support for cmusaslsecretCRAM-MD5 auxprop 1557 property [[yes]] 1558 --enable-obsolete_digest_attr 1559 enable support for cmusaslsecretDIGEST-MD5 auxprop 1560 property [[yes]] 1561 --enable-dependency-tracking 1562 do not reject slow dependency extractors 1563 --disable-dependency-tracking 1564 speeds up one-time build 1565 --enable-static[=PKGS] build static libraries [default=no] 1566 --enable-shared[=PKGS] build shared libraries [default=yes] 1567 --enable-fast-install[=PKGS] 1568 optimize for fast installation [default=yes] 1569 --disable-libtool-lock avoid locking (might break parallel builds) 1570 --enable-staticdlopen try dynamic plugins when we are a static libsasl [no] 1571 --enable-keep-db-open keep handle to DB open for improved performance [no] 1572 --enable-alwaystrue enable the alwaystrue password verifier (discouraged) 1573 --enable-checkapop enable use of sasl_checkapop [yes] 1574 --enable-cram enable CRAM-MD5 authentication [yes] 1575 --enable-digest enable DIGEST-MD5 authentication [yes] 1576 --enable-scram enable SCRAM authentication [yes] 1577 --enable-otp enable OTP authentication [yes] 1578 --enable-srp enable SRP authentication [no] 1579 --enable-srp-setpass enable setting SRP secrets with saslpasswd [no] 1580 --enable-krb4 enable KERBEROS_V4 authentication [no] 1581 --enable-gssapi=<DIR> enable GSSAPI authentication [yes] 1582 --enable-gss_mutexes use mutexes around calls to the GSS library 1583 --enable-sia enable SIA authentication no 1584 --enable-auth-sasldb enable experimental SASLdb authentication module no 1585 --enable-httpform enable HTTP form authentication [no] 1586 --enable-plain enable PLAIN authentication yes 1587 --enable-anon enable ANONYMOUS authentication [yes] 1588 --enable-login enable unsupported LOGIN authentication [no] 1589 --enable-ntlm enable unsupported NTLM authentication [no] 1590 --enable-passdss enable PASSDSS authentication (experimental) [no] 1591 --enable-sql enable SQL auxprop [no] 1592 --enable-ldapdb enable LDAPDB plugin no 1593 --disable-macos-framework disable building and installing replacement SASL2 Framework for MacOS X-provided SASL Framework [no] 1594 1595Optional Packages: 1596 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1597 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1598 1599 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1600 both] 1601 --with-aix-soname=aix|svr4|both 1602 shared library versioning (aka "SONAME") variant to 1603 provide on AIX, [default=aix]. 1604 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1605 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1606 compiler's sysroot if not specified). 1607 --with-purecov link with purecov 1608 --with-purify link with purify 1609 --with-dbpath=PATH set the DB path to use /etc/sasldb2 1610 --with-dblib={berkeley|gdbm|lmdb|ndbm|none|auto_detect} 1611 set the DB library to use [[berkeley]] 1612 --with-bdb-libdir=DIR Berkeley DB lib files are in DIR 1613 --with-bdb-incdir=DIR Berkeley DB include files are in DIR 1614 --with-gdbm=PATH use gdbm from PATH 1615 --with-devrandom=PATH set the path to pseudo random number generator [/dev/urandom] 1616 --with-saslauthd=DIR enable use of the saslauth daemon using state dir DIR 1617 --with-authdaemond=PATH enable use of authdaemon with default socket=PATH [yes] 1618 --with-pwcheck=DIR enable deprecated pwcheck daemon using statedir DIR 1619 --with-ipctype={unix,doors} use ipctype [unix] 1620 --with-lib-subdir=DIR Find libraries in DIR instead of lib 1621 --with-openssl=DIR use OpenSSL from DIR 1622 --with-des=DIR with DES (look in DIR) yes 1623 --with-opie=PATH use OPIE (One Time Passwords in Everything) from 1624 PATH 1625 --with-gss_impl={heimdal|mit|cybersafe|seam|auto} 1626 choose specific GSSAPI implementation [[auto]] 1627 --with-pam=DIR use PAM (rooted in DIR) [yes] 1628 --with-ldap=DIR use LDAP (in DIR) for saslauthd no 1629 --with-mysql=PATH use MySQL from PATH 1630 --with-pgsql=PATH use PostgreSQL from PATH 1631 --with-sqlite=PATH use SQLite from PATH 1632 --with-sqlite3=PATH use SQLite3 from PATH 1633 --with-plugindir=DIR set the directory where plugins will 1634 be found [LIBDIR/sasl2] 1635 --with-configdir=DIR set the directory where config files will 1636 be found PLUGINDIR:SYSCONFDIR/sasl2 1637 --with-rc4 use rc4 routines [yes] 1638 --with-dmalloc=DIR with DMALLOC support (for test applications) [no] 1639 --with-sfio=DIR with SFIO support (for smtptest/libsfsasl) [no] 1640 with-sphinx-build=(yes|no|PATH) 1641 Look for sphinx-build in PATH 1642 1643Some influential environment variables: 1644 CC C compiler command 1645 CFLAGS C compiler flags 1646 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1647 nonstandard directory <lib dir> 1648 LIBS libraries to pass to the linker, e.g. -l<library> 1649 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1650 you have headers in a nonstandard directory <include dir> 1651 CPP C preprocessor 1652 LT_SYS_LIBRARY_PATH 1653 User-defined run-time library search path. 1654 SPHINX_BUILD 1655 Location of sphinx-build 1656 1657Use these variables to override the choices made by `configure' or to help 1658it to find libraries and programs with nonstandard names/locations. 1659 1660Report bugs to <https://github.com/cyrusimap/cyrus-sasl/issues>. 1661cyrus-sasl home page: <https://www.cyrusimap.org>. 1662_ACEOF 1663ac_status=$? 1664fi 1665 1666if test "$ac_init_help" = "recursive"; then 1667 # If there are subdirs, report their specific --help. 1668 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1669 test -d "$ac_dir" || 1670 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1671 continue 1672 ac_builddir=. 1673 1674case "$ac_dir" in 1675.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1676*) 1677 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1678 # A ".." for each directory in $ac_dir_suffix. 1679 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1680 case $ac_top_builddir_sub in 1681 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1682 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1683 esac ;; 1684esac 1685ac_abs_top_builddir=$ac_pwd 1686ac_abs_builddir=$ac_pwd$ac_dir_suffix 1687# for backward compatibility: 1688ac_top_builddir=$ac_top_build_prefix 1689 1690case $srcdir in 1691 .) # We are building in place. 1692 ac_srcdir=. 1693 ac_top_srcdir=$ac_top_builddir_sub 1694 ac_abs_top_srcdir=$ac_pwd ;; 1695 [\\/]* | ?:[\\/]* ) # Absolute name. 1696 ac_srcdir=$srcdir$ac_dir_suffix; 1697 ac_top_srcdir=$srcdir 1698 ac_abs_top_srcdir=$srcdir ;; 1699 *) # Relative name. 1700 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1701 ac_top_srcdir=$ac_top_build_prefix$srcdir 1702 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1703esac 1704ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1705 1706 cd "$ac_dir" || { ac_status=$?; continue; } 1707 # Check for guested configure. 1708 if test -f "$ac_srcdir/configure.gnu"; then 1709 echo && 1710 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1711 elif test -f "$ac_srcdir/configure"; then 1712 echo && 1713 $SHELL "$ac_srcdir/configure" --help=recursive 1714 else 1715 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1716 fi || ac_status=$? 1717 cd "$ac_pwd" || { ac_status=$?; break; } 1718 done 1719fi 1720 1721test -n "$ac_init_help" && exit $ac_status 1722if $ac_init_version; then 1723 cat <<\_ACEOF 1724cyrus-sasl configure 2.1.28 1725generated by GNU Autoconf 2.69 1726 1727Copyright (C) 2012 Free Software Foundation, Inc. 1728This configure script is free software; the Free Software Foundation 1729gives unlimited permission to copy, distribute and modify it. 1730_ACEOF 1731 exit 1732fi 1733 1734## ------------------------ ## 1735## Autoconf initialization. ## 1736## ------------------------ ## 1737 1738# ac_fn_c_try_compile LINENO 1739# -------------------------- 1740# Try to compile conftest.$ac_ext, and return whether this succeeded. 1741ac_fn_c_try_compile () 1742{ 1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1744 rm -f conftest.$ac_objext 1745 if { { ac_try="$ac_compile" 1746case "(($ac_try" in 1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1748 *) ac_try_echo=$ac_try;; 1749esac 1750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1751$as_echo "$ac_try_echo"; } >&5 1752 (eval "$ac_compile") 2>conftest.err 1753 ac_status=$? 1754 if test -s conftest.err; then 1755 grep -v '^ *+' conftest.err >conftest.er1 1756 cat conftest.er1 >&5 1757 mv -f conftest.er1 conftest.err 1758 fi 1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1760 test $ac_status = 0; } && { 1761 test -z "$ac_c_werror_flag" || 1762 test ! -s conftest.err 1763 } && test -s conftest.$ac_objext; then : 1764 ac_retval=0 1765else 1766 $as_echo "$as_me: failed program was:" >&5 1767sed 's/^/| /' conftest.$ac_ext >&5 1768 1769 ac_retval=1 1770fi 1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1772 as_fn_set_status $ac_retval 1773 1774} # ac_fn_c_try_compile 1775 1776# ac_fn_c_try_cpp LINENO 1777# ---------------------- 1778# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1779ac_fn_c_try_cpp () 1780{ 1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1782 if { { ac_try="$ac_cpp conftest.$ac_ext" 1783case "(($ac_try" in 1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1785 *) ac_try_echo=$ac_try;; 1786esac 1787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1788$as_echo "$ac_try_echo"; } >&5 1789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1790 ac_status=$? 1791 if test -s conftest.err; then 1792 grep -v '^ *+' conftest.err >conftest.er1 1793 cat conftest.er1 >&5 1794 mv -f conftest.er1 conftest.err 1795 fi 1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1797 test $ac_status = 0; } > conftest.i && { 1798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1799 test ! -s conftest.err 1800 }; then : 1801 ac_retval=0 1802else 1803 $as_echo "$as_me: failed program was:" >&5 1804sed 's/^/| /' conftest.$ac_ext >&5 1805 1806 ac_retval=1 1807fi 1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1809 as_fn_set_status $ac_retval 1810 1811} # ac_fn_c_try_cpp 1812 1813# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1814# ------------------------------------------------------- 1815# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1816# the include files in INCLUDES and setting the cache variable VAR 1817# accordingly. 1818ac_fn_c_check_header_mongrel () 1819{ 1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1821 if eval \${$3+:} false; then : 1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1823$as_echo_n "checking for $2... " >&6; } 1824if eval \${$3+:} false; then : 1825 $as_echo_n "(cached) " >&6 1826fi 1827eval ac_res=\$$3 1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1829$as_echo "$ac_res" >&6; } 1830else 1831 # Is the header compilable? 1832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1833$as_echo_n "checking $2 usability... " >&6; } 1834cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1835/* end confdefs.h. */ 1836$4 1837#include <$2> 1838_ACEOF 1839if ac_fn_c_try_compile "$LINENO"; then : 1840 ac_header_compiler=yes 1841else 1842 ac_header_compiler=no 1843fi 1844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1846$as_echo "$ac_header_compiler" >&6; } 1847 1848# Is the header present? 1849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1850$as_echo_n "checking $2 presence... " >&6; } 1851cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1852/* end confdefs.h. */ 1853#include <$2> 1854_ACEOF 1855if ac_fn_c_try_cpp "$LINENO"; then : 1856 ac_header_preproc=yes 1857else 1858 ac_header_preproc=no 1859fi 1860rm -f conftest.err conftest.i conftest.$ac_ext 1861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1862$as_echo "$ac_header_preproc" >&6; } 1863 1864# So? What about this header? 1865case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1866 yes:no: ) 1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1868$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1870$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1871 ;; 1872 no:yes:* ) 1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1874$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1876$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1878$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1880$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1882$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1883( $as_echo "## ------------------------------------------------------------- ## 1884## Report this to https://github.com/cyrusimap/cyrus-sasl/issues ## 1885## ------------------------------------------------------------- ##" 1886 ) | sed "s/^/$as_me: WARNING: /" >&2 1887 ;; 1888esac 1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1890$as_echo_n "checking for $2... " >&6; } 1891if eval \${$3+:} false; then : 1892 $as_echo_n "(cached) " >&6 1893else 1894 eval "$3=\$ac_header_compiler" 1895fi 1896eval ac_res=\$$3 1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1898$as_echo "$ac_res" >&6; } 1899fi 1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1901 1902} # ac_fn_c_check_header_mongrel 1903 1904# ac_fn_c_try_run LINENO 1905# ---------------------- 1906# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1907# that executables *can* be run. 1908ac_fn_c_try_run () 1909{ 1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1911 if { { ac_try="$ac_link" 1912case "(($ac_try" in 1913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1914 *) ac_try_echo=$ac_try;; 1915esac 1916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1917$as_echo "$ac_try_echo"; } >&5 1918 (eval "$ac_link") 2>&5 1919 ac_status=$? 1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1921 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1922 { { case "(($ac_try" in 1923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1924 *) ac_try_echo=$ac_try;; 1925esac 1926eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1927$as_echo "$ac_try_echo"; } >&5 1928 (eval "$ac_try") 2>&5 1929 ac_status=$? 1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1931 test $ac_status = 0; }; }; then : 1932 ac_retval=0 1933else 1934 $as_echo "$as_me: program exited with status $ac_status" >&5 1935 $as_echo "$as_me: failed program was:" >&5 1936sed 's/^/| /' conftest.$ac_ext >&5 1937 1938 ac_retval=$ac_status 1939fi 1940 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1942 as_fn_set_status $ac_retval 1943 1944} # ac_fn_c_try_run 1945 1946# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1947# ------------------------------------------------------- 1948# Tests whether HEADER exists and can be compiled using the include files in 1949# INCLUDES, setting the cache variable VAR accordingly. 1950ac_fn_c_check_header_compile () 1951{ 1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1954$as_echo_n "checking for $2... " >&6; } 1955if eval \${$3+:} false; then : 1956 $as_echo_n "(cached) " >&6 1957else 1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1959/* end confdefs.h. */ 1960$4 1961#include <$2> 1962_ACEOF 1963if ac_fn_c_try_compile "$LINENO"; then : 1964 eval "$3=yes" 1965else 1966 eval "$3=no" 1967fi 1968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1969fi 1970eval ac_res=\$$3 1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1972$as_echo "$ac_res" >&6; } 1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1974 1975} # ac_fn_c_check_header_compile 1976 1977# ac_fn_c_try_link LINENO 1978# ----------------------- 1979# Try to link conftest.$ac_ext, and return whether this succeeded. 1980ac_fn_c_try_link () 1981{ 1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1983 rm -f conftest.$ac_objext conftest$ac_exeext 1984 if { { ac_try="$ac_link" 1985case "(($ac_try" in 1986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1987 *) ac_try_echo=$ac_try;; 1988esac 1989eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1990$as_echo "$ac_try_echo"; } >&5 1991 (eval "$ac_link") 2>conftest.err 1992 ac_status=$? 1993 if test -s conftest.err; then 1994 grep -v '^ *+' conftest.err >conftest.er1 1995 cat conftest.er1 >&5 1996 mv -f conftest.er1 conftest.err 1997 fi 1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1999 test $ac_status = 0; } && { 2000 test -z "$ac_c_werror_flag" || 2001 test ! -s conftest.err 2002 } && test -s conftest$ac_exeext && { 2003 test "$cross_compiling" = yes || 2004 test -x conftest$ac_exeext 2005 }; then : 2006 ac_retval=0 2007else 2008 $as_echo "$as_me: failed program was:" >&5 2009sed 's/^/| /' conftest.$ac_ext >&5 2010 2011 ac_retval=1 2012fi 2013 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2014 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2015 # interfere with the next link command; also delete a directory that is 2016 # left behind by Apple's compiler. We do this before executing the actions. 2017 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2019 as_fn_set_status $ac_retval 2020 2021} # ac_fn_c_try_link 2022 2023# ac_fn_c_check_func LINENO FUNC VAR 2024# ---------------------------------- 2025# Tests whether FUNC exists, setting the cache variable VAR accordingly 2026ac_fn_c_check_func () 2027{ 2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2030$as_echo_n "checking for $2... " >&6; } 2031if eval \${$3+:} false; then : 2032 $as_echo_n "(cached) " >&6 2033else 2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2035/* end confdefs.h. */ 2036/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2037 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2038#define $2 innocuous_$2 2039 2040/* System header to define __stub macros and hopefully few prototypes, 2041 which can conflict with char $2 (); below. 2042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2043 <limits.h> exists even on freestanding compilers. */ 2044 2045#ifdef __STDC__ 2046# include <limits.h> 2047#else 2048# include <assert.h> 2049#endif 2050 2051#undef $2 2052 2053/* Override any GCC internal prototype to avoid an error. 2054 Use char because int might match the return type of a GCC 2055 builtin and then its argument prototype would still apply. */ 2056#ifdef __cplusplus 2057extern "C" 2058#endif 2059char $2 (); 2060/* The GNU C library defines this for functions which it implements 2061 to always fail with ENOSYS. Some functions are actually named 2062 something starting with __ and the normal name is an alias. */ 2063#if defined __stub_$2 || defined __stub___$2 2064choke me 2065#endif 2066 2067int 2068main () 2069{ 2070return $2 (); 2071 ; 2072 return 0; 2073} 2074_ACEOF 2075if ac_fn_c_try_link "$LINENO"; then : 2076 eval "$3=yes" 2077else 2078 eval "$3=no" 2079fi 2080rm -f core conftest.err conftest.$ac_objext \ 2081 conftest$ac_exeext conftest.$ac_ext 2082fi 2083eval ac_res=\$$3 2084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2085$as_echo "$ac_res" >&6; } 2086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2087 2088} # ac_fn_c_check_func 2089 2090# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2091# -------------------------------------------- 2092# Tries to find the compile-time value of EXPR in a program that includes 2093# INCLUDES, setting VAR accordingly. Returns whether the value could be 2094# computed 2095ac_fn_c_compute_int () 2096{ 2097 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2098 if test "$cross_compiling" = yes; then 2099 # Depending upon the size, compute the lo and hi bounds. 2100cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2101/* end confdefs.h. */ 2102$4 2103int 2104main () 2105{ 2106static int test_array [1 - 2 * !(($2) >= 0)]; 2107test_array [0] = 0; 2108return test_array [0]; 2109 2110 ; 2111 return 0; 2112} 2113_ACEOF 2114if ac_fn_c_try_compile "$LINENO"; then : 2115 ac_lo=0 ac_mid=0 2116 while :; do 2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2118/* end confdefs.h. */ 2119$4 2120int 2121main () 2122{ 2123static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2124test_array [0] = 0; 2125return test_array [0]; 2126 2127 ; 2128 return 0; 2129} 2130_ACEOF 2131if ac_fn_c_try_compile "$LINENO"; then : 2132 ac_hi=$ac_mid; break 2133else 2134 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2135 if test $ac_lo -le $ac_mid; then 2136 ac_lo= ac_hi= 2137 break 2138 fi 2139 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2140fi 2141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2142 done 2143else 2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2145/* end confdefs.h. */ 2146$4 2147int 2148main () 2149{ 2150static int test_array [1 - 2 * !(($2) < 0)]; 2151test_array [0] = 0; 2152return test_array [0]; 2153 2154 ; 2155 return 0; 2156} 2157_ACEOF 2158if ac_fn_c_try_compile "$LINENO"; then : 2159 ac_hi=-1 ac_mid=-1 2160 while :; do 2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2162/* end confdefs.h. */ 2163$4 2164int 2165main () 2166{ 2167static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2168test_array [0] = 0; 2169return test_array [0]; 2170 2171 ; 2172 return 0; 2173} 2174_ACEOF 2175if ac_fn_c_try_compile "$LINENO"; then : 2176 ac_lo=$ac_mid; break 2177else 2178 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2179 if test $ac_mid -le $ac_hi; then 2180 ac_lo= ac_hi= 2181 break 2182 fi 2183 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2184fi 2185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2186 done 2187else 2188 ac_lo= ac_hi= 2189fi 2190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2191fi 2192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2193# Binary search between lo and hi bounds. 2194while test "x$ac_lo" != "x$ac_hi"; do 2195 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2197/* end confdefs.h. */ 2198$4 2199int 2200main () 2201{ 2202static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2203test_array [0] = 0; 2204return test_array [0]; 2205 2206 ; 2207 return 0; 2208} 2209_ACEOF 2210if ac_fn_c_try_compile "$LINENO"; then : 2211 ac_hi=$ac_mid 2212else 2213 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2214fi 2215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2216done 2217case $ac_lo in #(( 2218?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2219'') ac_retval=1 ;; 2220esac 2221 else 2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2223/* end confdefs.h. */ 2224$4 2225static long int longval () { return $2; } 2226static unsigned long int ulongval () { return $2; } 2227#include <stdio.h> 2228#include <stdlib.h> 2229int 2230main () 2231{ 2232 2233 FILE *f = fopen ("conftest.val", "w"); 2234 if (! f) 2235 return 1; 2236 if (($2) < 0) 2237 { 2238 long int i = longval (); 2239 if (i != ($2)) 2240 return 1; 2241 fprintf (f, "%ld", i); 2242 } 2243 else 2244 { 2245 unsigned long int i = ulongval (); 2246 if (i != ($2)) 2247 return 1; 2248 fprintf (f, "%lu", i); 2249 } 2250 /* Do not output a trailing newline, as this causes \r\n confusion 2251 on some platforms. */ 2252 return ferror (f) || fclose (f) != 0; 2253 2254 ; 2255 return 0; 2256} 2257_ACEOF 2258if ac_fn_c_try_run "$LINENO"; then : 2259 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2260else 2261 ac_retval=1 2262fi 2263rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2264 conftest.$ac_objext conftest.beam conftest.$ac_ext 2265rm -f conftest.val 2266 2267 fi 2268 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2269 as_fn_set_status $ac_retval 2270 2271} # ac_fn_c_compute_int 2272 2273# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2274# --------------------------------------------- 2275# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2276# accordingly. 2277ac_fn_c_check_decl () 2278{ 2279 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2280 as_decl_name=`echo $2|sed 's/ *(.*//'` 2281 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2283$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2284if eval \${$3+:} false; then : 2285 $as_echo_n "(cached) " >&6 2286else 2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2288/* end confdefs.h. */ 2289$4 2290int 2291main () 2292{ 2293#ifndef $as_decl_name 2294#ifdef __cplusplus 2295 (void) $as_decl_use; 2296#else 2297 (void) $as_decl_name; 2298#endif 2299#endif 2300 2301 ; 2302 return 0; 2303} 2304_ACEOF 2305if ac_fn_c_try_compile "$LINENO"; then : 2306 eval "$3=yes" 2307else 2308 eval "$3=no" 2309fi 2310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2311fi 2312eval ac_res=\$$3 2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2314$as_echo "$ac_res" >&6; } 2315 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2316 2317} # ac_fn_c_check_decl 2318 2319# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2320# ------------------------------------------- 2321# Tests whether TYPE exists after having included INCLUDES, setting cache 2322# variable VAR accordingly. 2323ac_fn_c_check_type () 2324{ 2325 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2327$as_echo_n "checking for $2... " >&6; } 2328if eval \${$3+:} false; then : 2329 $as_echo_n "(cached) " >&6 2330else 2331 eval "$3=no" 2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2333/* end confdefs.h. */ 2334$4 2335int 2336main () 2337{ 2338if (sizeof ($2)) 2339 return 0; 2340 ; 2341 return 0; 2342} 2343_ACEOF 2344if ac_fn_c_try_compile "$LINENO"; then : 2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2346/* end confdefs.h. */ 2347$4 2348int 2349main () 2350{ 2351if (sizeof (($2))) 2352 return 0; 2353 ; 2354 return 0; 2355} 2356_ACEOF 2357if ac_fn_c_try_compile "$LINENO"; then : 2358 2359else 2360 eval "$3=yes" 2361fi 2362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2363fi 2364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2365fi 2366eval ac_res=\$$3 2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2368$as_echo "$ac_res" >&6; } 2369 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2370 2371} # ac_fn_c_check_type 2372cat >config.log <<_ACEOF 2373This file contains any messages produced by compilers while 2374running configure, to aid debugging if configure makes a mistake. 2375 2376It was created by cyrus-sasl $as_me 2.1.28, which was 2377generated by GNU Autoconf 2.69. Invocation command line was 2378 2379 $ $0 $@ 2380 2381_ACEOF 2382exec 5>>config.log 2383{ 2384cat <<_ASUNAME 2385## --------- ## 2386## Platform. ## 2387## --------- ## 2388 2389hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2390uname -m = `(uname -m) 2>/dev/null || echo unknown` 2391uname -r = `(uname -r) 2>/dev/null || echo unknown` 2392uname -s = `(uname -s) 2>/dev/null || echo unknown` 2393uname -v = `(uname -v) 2>/dev/null || echo unknown` 2394 2395/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2396/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2397 2398/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2399/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2400/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2401/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2402/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2403/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2404/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2405 2406_ASUNAME 2407 2408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2409for as_dir in $PATH 2410do 2411 IFS=$as_save_IFS 2412 test -z "$as_dir" && as_dir=. 2413 $as_echo "PATH: $as_dir" 2414 done 2415IFS=$as_save_IFS 2416 2417} >&5 2418 2419cat >&5 <<_ACEOF 2420 2421 2422## ----------- ## 2423## Core tests. ## 2424## ----------- ## 2425 2426_ACEOF 2427 2428 2429# Keep a trace of the command line. 2430# Strip out --no-create and --no-recursion so they do not pile up. 2431# Strip out --silent because we don't want to record it for future runs. 2432# Also quote any args containing shell meta-characters. 2433# Make two passes to allow for proper duplicate-argument suppression. 2434ac_configure_args= 2435ac_configure_args0= 2436ac_configure_args1= 2437ac_must_keep_next=false 2438for ac_pass in 1 2 2439do 2440 for ac_arg 2441 do 2442 case $ac_arg in 2443 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2444 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2445 | -silent | --silent | --silen | --sile | --sil) 2446 continue ;; 2447 *\'*) 2448 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2449 esac 2450 case $ac_pass in 2451 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2452 2) 2453 as_fn_append ac_configure_args1 " '$ac_arg'" 2454 if test $ac_must_keep_next = true; then 2455 ac_must_keep_next=false # Got value, back to normal. 2456 else 2457 case $ac_arg in 2458 *=* | --config-cache | -C | -disable-* | --disable-* \ 2459 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2460 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2461 | -with-* | --with-* | -without-* | --without-* | --x) 2462 case "$ac_configure_args0 " in 2463 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2464 esac 2465 ;; 2466 -* ) ac_must_keep_next=true ;; 2467 esac 2468 fi 2469 as_fn_append ac_configure_args " '$ac_arg'" 2470 ;; 2471 esac 2472 done 2473done 2474{ ac_configure_args0=; unset ac_configure_args0;} 2475{ ac_configure_args1=; unset ac_configure_args1;} 2476 2477# When interrupted or exit'd, cleanup temporary files, and complete 2478# config.log. We remove comments because anyway the quotes in there 2479# would cause problems or look ugly. 2480# WARNING: Use '\'' to represent an apostrophe within the trap. 2481# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2482trap 'exit_status=$? 2483 # Save into config.log some information that might help in debugging. 2484 { 2485 echo 2486 2487 $as_echo "## ---------------- ## 2488## Cache variables. ## 2489## ---------------- ##" 2490 echo 2491 # The following way of writing the cache mishandles newlines in values, 2492( 2493 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2494 eval ac_val=\$$ac_var 2495 case $ac_val in #( 2496 *${as_nl}*) 2497 case $ac_var in #( 2498 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2499$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2500 esac 2501 case $ac_var in #( 2502 _ | IFS | as_nl) ;; #( 2503 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2504 *) { eval $ac_var=; unset $ac_var;} ;; 2505 esac ;; 2506 esac 2507 done 2508 (set) 2>&1 | 2509 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2510 *${as_nl}ac_space=\ *) 2511 sed -n \ 2512 "s/'\''/'\''\\\\'\'''\''/g; 2513 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2514 ;; #( 2515 *) 2516 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2517 ;; 2518 esac | 2519 sort 2520) 2521 echo 2522 2523 $as_echo "## ----------------- ## 2524## Output variables. ## 2525## ----------------- ##" 2526 echo 2527 for ac_var in $ac_subst_vars 2528 do 2529 eval ac_val=\$$ac_var 2530 case $ac_val in 2531 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2532 esac 2533 $as_echo "$ac_var='\''$ac_val'\''" 2534 done | sort 2535 echo 2536 2537 if test -n "$ac_subst_files"; then 2538 $as_echo "## ------------------- ## 2539## File substitutions. ## 2540## ------------------- ##" 2541 echo 2542 for ac_var in $ac_subst_files 2543 do 2544 eval ac_val=\$$ac_var 2545 case $ac_val in 2546 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2547 esac 2548 $as_echo "$ac_var='\''$ac_val'\''" 2549 done | sort 2550 echo 2551 fi 2552 2553 if test -s confdefs.h; then 2554 $as_echo "## ----------- ## 2555## confdefs.h. ## 2556## ----------- ##" 2557 echo 2558 cat confdefs.h 2559 echo 2560 fi 2561 test "$ac_signal" != 0 && 2562 $as_echo "$as_me: caught signal $ac_signal" 2563 $as_echo "$as_me: exit $exit_status" 2564 } >&5 2565 rm -f core *.core core.conftest.* && 2566 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2567 exit $exit_status 2568' 0 2569for ac_signal in 1 2 13 15; do 2570 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2571done 2572ac_signal=0 2573 2574# confdefs.h avoids OS command line length limits that DEFS can exceed. 2575rm -f -r conftest* confdefs.h 2576 2577$as_echo "/* confdefs.h */" > confdefs.h 2578 2579# Predefined preprocessor variables. 2580 2581cat >>confdefs.h <<_ACEOF 2582#define PACKAGE_NAME "$PACKAGE_NAME" 2583_ACEOF 2584 2585cat >>confdefs.h <<_ACEOF 2586#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2587_ACEOF 2588 2589cat >>confdefs.h <<_ACEOF 2590#define PACKAGE_VERSION "$PACKAGE_VERSION" 2591_ACEOF 2592 2593cat >>confdefs.h <<_ACEOF 2594#define PACKAGE_STRING "$PACKAGE_STRING" 2595_ACEOF 2596 2597cat >>confdefs.h <<_ACEOF 2598#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2599_ACEOF 2600 2601cat >>confdefs.h <<_ACEOF 2602#define PACKAGE_URL "$PACKAGE_URL" 2603_ACEOF 2604 2605 2606# Let the site file select an alternate cache file if it wants to. 2607# Prefer an explicitly selected file to automatically selected ones. 2608ac_site_file1=NONE 2609ac_site_file2=NONE 2610if test -n "$CONFIG_SITE"; then 2611 # We do not want a PATH search for config.site. 2612 case $CONFIG_SITE in #(( 2613 -*) ac_site_file1=./$CONFIG_SITE;; 2614 */*) ac_site_file1=$CONFIG_SITE;; 2615 *) ac_site_file1=./$CONFIG_SITE;; 2616 esac 2617elif test "x$prefix" != xNONE; then 2618 ac_site_file1=$prefix/share/config.site 2619 ac_site_file2=$prefix/etc/config.site 2620else 2621 ac_site_file1=$ac_default_prefix/share/config.site 2622 ac_site_file2=$ac_default_prefix/etc/config.site 2623fi 2624for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2625do 2626 test "x$ac_site_file" = xNONE && continue 2627 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2628 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2629$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2630 sed 's/^/| /' "$ac_site_file" >&5 2631 . "$ac_site_file" \ 2632 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2634as_fn_error $? "failed to load site script $ac_site_file 2635See \`config.log' for more details" "$LINENO" 5; } 2636 fi 2637done 2638 2639if test -r "$cache_file"; then 2640 # Some versions of bash will fail to source /dev/null (special files 2641 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2642 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2644$as_echo "$as_me: loading cache $cache_file" >&6;} 2645 case $cache_file in 2646 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2647 *) . "./$cache_file";; 2648 esac 2649 fi 2650else 2651 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2652$as_echo "$as_me: creating cache $cache_file" >&6;} 2653 >$cache_file 2654fi 2655 2656as_fn_append ac_header_list " sys/time.h" 2657# Check that the precious variables saved in the cache have kept the same 2658# value. 2659ac_cache_corrupted=false 2660for ac_var in $ac_precious_vars; do 2661 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2662 eval ac_new_set=\$ac_env_${ac_var}_set 2663 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2664 eval ac_new_val=\$ac_env_${ac_var}_value 2665 case $ac_old_set,$ac_new_set in 2666 set,) 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2668$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2669 ac_cache_corrupted=: ;; 2670 ,set) 2671 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2672$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2673 ac_cache_corrupted=: ;; 2674 ,);; 2675 *) 2676 if test "x$ac_old_val" != "x$ac_new_val"; then 2677 # differences in whitespace do not lead to failure. 2678 ac_old_val_w=`echo x $ac_old_val` 2679 ac_new_val_w=`echo x $ac_new_val` 2680 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2682$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2683 ac_cache_corrupted=: 2684 else 2685 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2686$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2687 eval $ac_var=\$ac_old_val 2688 fi 2689 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2690$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2691 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2692$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2693 fi;; 2694 esac 2695 # Pass precious variables to config.status. 2696 if test "$ac_new_set" = set; then 2697 case $ac_new_val in 2698 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2699 *) ac_arg=$ac_var=$ac_new_val ;; 2700 esac 2701 case " $ac_configure_args " in 2702 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2703 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2704 esac 2705 fi 2706done 2707if $ac_cache_corrupted; then 2708 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2709$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2710 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2711$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2712 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2713fi 2714## -------------------- ## 2715## Main body of script. ## 2716## -------------------- ## 2717 2718ac_ext=c 2719ac_cpp='$CPP $CPPFLAGS' 2720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2722ac_compiler_gnu=$ac_cv_c_compiler_gnu 2723 2724 2725 2726 2727 2728if test $cache_file = "/dev/null"; then 2729cache_file="./config.cache" 2730if test -r "$cache_file"; then 2731 # Some versions of bash will fail to source /dev/null (special files 2732 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2733 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2734 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2735$as_echo "$as_me: loading cache $cache_file" >&6;} 2736 case $cache_file in 2737 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2738 *) . "./$cache_file";; 2739 esac 2740 fi 2741else 2742 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2743$as_echo "$as_me: creating cache $cache_file" >&6;} 2744 >$cache_file 2745fi 2746 2747fi 2748 2749ac_aux_dir= 2750for ac_dir in config "$srcdir"/config; do 2751 if test -f "$ac_dir/install-sh"; then 2752 ac_aux_dir=$ac_dir 2753 ac_install_sh="$ac_aux_dir/install-sh -c" 2754 break 2755 elif test -f "$ac_dir/install.sh"; then 2756 ac_aux_dir=$ac_dir 2757 ac_install_sh="$ac_aux_dir/install.sh -c" 2758 break 2759 elif test -f "$ac_dir/shtool"; then 2760 ac_aux_dir=$ac_dir 2761 ac_install_sh="$ac_aux_dir/shtool install -c" 2762 break 2763 fi 2764done 2765if test -z "$ac_aux_dir"; then 2766 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2767fi 2768 2769# These three variables are undocumented and unsupported, 2770# and are intended to be withdrawn in a future Autoconf release. 2771# They can cause serious problems if a builder's source tree is in a directory 2772# whose full name contains unusual characters. 2773ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2774ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2775ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2776 2777 2778# Make sure we can run config.sub. 2779$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2780 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2781 2782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2783$as_echo_n "checking build system type... " >&6; } 2784if ${ac_cv_build+:} false; then : 2785 $as_echo_n "(cached) " >&6 2786else 2787 ac_build_alias=$build_alias 2788test "x$ac_build_alias" = x && 2789 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2790test "x$ac_build_alias" = x && 2791 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2792ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2793 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2794 2795fi 2796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2797$as_echo "$ac_cv_build" >&6; } 2798case $ac_cv_build in 2799*-*-*) ;; 2800*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2801esac 2802build=$ac_cv_build 2803ac_save_IFS=$IFS; IFS='-' 2804set x $ac_cv_build 2805shift 2806build_cpu=$1 2807build_vendor=$2 2808shift; shift 2809# Remember, the first character of IFS is used to create $*, 2810# except with old shells: 2811build_os=$* 2812IFS=$ac_save_IFS 2813case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2814 2815 2816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2817$as_echo_n "checking host system type... " >&6; } 2818if ${ac_cv_host+:} false; then : 2819 $as_echo_n "(cached) " >&6 2820else 2821 if test "x$host_alias" = x; then 2822 ac_cv_host=$ac_cv_build 2823else 2824 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2825 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2826fi 2827 2828fi 2829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2830$as_echo "$ac_cv_host" >&6; } 2831case $ac_cv_host in 2832*-*-*) ;; 2833*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2834esac 2835host=$ac_cv_host 2836ac_save_IFS=$IFS; IFS='-' 2837set x $ac_cv_host 2838shift 2839host_cpu=$1 2840host_vendor=$2 2841shift; shift 2842# Remember, the first character of IFS is used to create $*, 2843# except with old shells: 2844host_os=$* 2845IFS=$ac_save_IFS 2846case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2847 2848 2849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2850$as_echo_n "checking target system type... " >&6; } 2851if ${ac_cv_target+:} false; then : 2852 $as_echo_n "(cached) " >&6 2853else 2854 if test "x$target_alias" = x; then 2855 ac_cv_target=$ac_cv_host 2856else 2857 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2858 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2859fi 2860 2861fi 2862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2863$as_echo "$ac_cv_target" >&6; } 2864case $ac_cv_target in 2865*-*-*) ;; 2866*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2867esac 2868target=$ac_cv_target 2869ac_save_IFS=$IFS; IFS='-' 2870set x $ac_cv_target 2871shift 2872target_cpu=$1 2873target_vendor=$2 2874shift; shift 2875# Remember, the first character of IFS is used to create $*, 2876# except with old shells: 2877target_os=$* 2878IFS=$ac_save_IFS 2879case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2880 2881 2882# The aliases save the names the user supplied, while $host etc. 2883# will get canonicalized. 2884test -n "$target_alias" && 2885 test "$program_prefix$program_suffix$program_transform_name" = \ 2886 NONENONEs,x,x, && 2887 program_prefix=${target_alias}- 2888 2889am__api_version='1.16' 2890 2891# Find a good install program. We prefer a C program (faster), 2892# so one script is as good as another. But avoid the broken or 2893# incompatible versions: 2894# SysV /etc/install, /usr/sbin/install 2895# SunOS /usr/etc/install 2896# IRIX /sbin/install 2897# AIX /bin/install 2898# AmigaOS /C/install, which installs bootblocks on floppy discs 2899# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2900# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2901# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2902# OS/2's system install, which has a completely different semantic 2903# ./install, which can be erroneously created by make from ./install.sh. 2904# Reject install programs that cannot install multiple files. 2905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2906$as_echo_n "checking for a BSD-compatible install... " >&6; } 2907if test -z "$INSTALL"; then 2908if ${ac_cv_path_install+:} false; then : 2909 $as_echo_n "(cached) " >&6 2910else 2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2912for as_dir in $PATH 2913do 2914 IFS=$as_save_IFS 2915 test -z "$as_dir" && as_dir=. 2916 # Account for people who put trailing slashes in PATH elements. 2917case $as_dir/ in #(( 2918 ./ | .// | /[cC]/* | \ 2919 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2920 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2921 /usr/ucb/* ) ;; 2922 *) 2923 # OSF1 and SCO ODT 3.0 have their own names for install. 2924 # Don't use installbsd from OSF since it installs stuff as root 2925 # by default. 2926 for ac_prog in ginstall scoinst install; do 2927 for ac_exec_ext in '' $ac_executable_extensions; do 2928 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2929 if test $ac_prog = install && 2930 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2931 # AIX install. It has an incompatible calling convention. 2932 : 2933 elif test $ac_prog = install && 2934 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2935 # program-specific install script used by HP pwplus--don't use. 2936 : 2937 else 2938 rm -rf conftest.one conftest.two conftest.dir 2939 echo one > conftest.one 2940 echo two > conftest.two 2941 mkdir conftest.dir 2942 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2943 test -s conftest.one && test -s conftest.two && 2944 test -s conftest.dir/conftest.one && 2945 test -s conftest.dir/conftest.two 2946 then 2947 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2948 break 3 2949 fi 2950 fi 2951 fi 2952 done 2953 done 2954 ;; 2955esac 2956 2957 done 2958IFS=$as_save_IFS 2959 2960rm -rf conftest.one conftest.two conftest.dir 2961 2962fi 2963 if test "${ac_cv_path_install+set}" = set; then 2964 INSTALL=$ac_cv_path_install 2965 else 2966 # As a last resort, use the slow shell script. Don't cache a 2967 # value for INSTALL within a source directory, because that will 2968 # break other packages using the cache if that directory is 2969 # removed, or if the value is a relative name. 2970 INSTALL=$ac_install_sh 2971 fi 2972fi 2973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2974$as_echo "$INSTALL" >&6; } 2975 2976# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2977# It thinks the first close brace ends the variable substitution. 2978test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2979 2980test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2981 2982test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2983 2984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2985$as_echo_n "checking whether build environment is sane... " >&6; } 2986# Reject unsafe characters in $srcdir or the absolute working directory 2987# name. Accept space and tab only in the latter. 2988am_lf=' 2989' 2990case `pwd` in 2991 *[\\\"\#\$\&\'\`$am_lf]*) 2992 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2993esac 2994case $srcdir in 2995 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2996 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2997esac 2998 2999# Do 'set' in a subshell so we don't clobber the current shell's 3000# arguments. Must try -L first in case configure is actually a 3001# symlink; some systems play weird games with the mod time of symlinks 3002# (eg FreeBSD returns the mod time of the symlink's containing 3003# directory). 3004if ( 3005 am_has_slept=no 3006 for am_try in 1 2; do 3007 echo "timestamp, slept: $am_has_slept" > conftest.file 3008 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3009 if test "$*" = "X"; then 3010 # -L didn't work. 3011 set X `ls -t "$srcdir/configure" conftest.file` 3012 fi 3013 if test "$*" != "X $srcdir/configure conftest.file" \ 3014 && test "$*" != "X conftest.file $srcdir/configure"; then 3015 3016 # If neither matched, then we have a broken ls. This can happen 3017 # if, for instance, CONFIG_SHELL is bash and it inherits a 3018 # broken ls alias from the environment. This has actually 3019 # happened. Such a system could not be considered "sane". 3020 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3021 alias in your environment" "$LINENO" 5 3022 fi 3023 if test "$2" = conftest.file || test $am_try -eq 2; then 3024 break 3025 fi 3026 # Just in case. 3027 sleep 1 3028 am_has_slept=yes 3029 done 3030 test "$2" = conftest.file 3031 ) 3032then 3033 # Ok. 3034 : 3035else 3036 as_fn_error $? "newly created file is older than distributed files! 3037Check your system clock" "$LINENO" 5 3038fi 3039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3040$as_echo "yes" >&6; } 3041# If we didn't sleep, we still need to ensure time stamps of config.status and 3042# generated files are strictly newer. 3043am_sleep_pid= 3044if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3045 ( sleep 1 ) & 3046 am_sleep_pid=$! 3047fi 3048 3049rm -f conftest.file 3050 3051test "$program_prefix" != NONE && 3052 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3053# Use a double $ so make ignores it. 3054test "$program_suffix" != NONE && 3055 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3056# Double any \ or $. 3057# By default was `s,x,x', remove it if useless. 3058ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3059program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3060 3061# Expand $ac_aux_dir to an absolute path. 3062am_aux_dir=`cd "$ac_aux_dir" && pwd` 3063 3064if test x"${MISSING+set}" != xset; then 3065 case $am_aux_dir in 3066 *\ * | *\ *) 3067 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3068 *) 3069 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3070 esac 3071fi 3072# Use eval to expand $SHELL 3073if eval "$MISSING --is-lightweight"; then 3074 am_missing_run="$MISSING " 3075else 3076 am_missing_run= 3077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3078$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3079fi 3080 3081if test x"${install_sh+set}" != xset; then 3082 case $am_aux_dir in 3083 *\ * | *\ *) 3084 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3085 *) 3086 install_sh="\${SHELL} $am_aux_dir/install-sh" 3087 esac 3088fi 3089 3090# Installed binaries are usually stripped using 'strip' when the user 3091# run "make install-strip". However 'strip' might not be the right 3092# tool to use in cross-compilation environments, therefore Automake 3093# will honor the 'STRIP' environment variable to overrule this program. 3094if test "$cross_compiling" != no; then 3095 if test -n "$ac_tool_prefix"; then 3096 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3097set dummy ${ac_tool_prefix}strip; ac_word=$2 3098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3099$as_echo_n "checking for $ac_word... " >&6; } 3100if ${ac_cv_prog_STRIP+:} false; then : 3101 $as_echo_n "(cached) " >&6 3102else 3103 if test -n "$STRIP"; then 3104 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3105else 3106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3107for as_dir in $PATH 3108do 3109 IFS=$as_save_IFS 3110 test -z "$as_dir" && as_dir=. 3111 for ac_exec_ext in '' $ac_executable_extensions; do 3112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3113 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3115 break 2 3116 fi 3117done 3118 done 3119IFS=$as_save_IFS 3120 3121fi 3122fi 3123STRIP=$ac_cv_prog_STRIP 3124if test -n "$STRIP"; then 3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3126$as_echo "$STRIP" >&6; } 3127else 3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3129$as_echo "no" >&6; } 3130fi 3131 3132 3133fi 3134if test -z "$ac_cv_prog_STRIP"; then 3135 ac_ct_STRIP=$STRIP 3136 # Extract the first word of "strip", so it can be a program name with args. 3137set dummy strip; ac_word=$2 3138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3139$as_echo_n "checking for $ac_word... " >&6; } 3140if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3141 $as_echo_n "(cached) " >&6 3142else 3143 if test -n "$ac_ct_STRIP"; then 3144 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3145else 3146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3147for as_dir in $PATH 3148do 3149 IFS=$as_save_IFS 3150 test -z "$as_dir" && as_dir=. 3151 for ac_exec_ext in '' $ac_executable_extensions; do 3152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3153 ac_cv_prog_ac_ct_STRIP="strip" 3154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3155 break 2 3156 fi 3157done 3158 done 3159IFS=$as_save_IFS 3160 3161fi 3162fi 3163ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3164if test -n "$ac_ct_STRIP"; then 3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3166$as_echo "$ac_ct_STRIP" >&6; } 3167else 3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3169$as_echo "no" >&6; } 3170fi 3171 3172 if test "x$ac_ct_STRIP" = x; then 3173 STRIP=":" 3174 else 3175 case $cross_compiling:$ac_tool_warned in 3176yes:) 3177{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3178$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3179ac_tool_warned=yes ;; 3180esac 3181 STRIP=$ac_ct_STRIP 3182 fi 3183else 3184 STRIP="$ac_cv_prog_STRIP" 3185fi 3186 3187fi 3188INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3189 3190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3191$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3192if test -z "$MKDIR_P"; then 3193 if ${ac_cv_path_mkdir+:} false; then : 3194 $as_echo_n "(cached) " >&6 3195else 3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3197for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3198do 3199 IFS=$as_save_IFS 3200 test -z "$as_dir" && as_dir=. 3201 for ac_prog in mkdir gmkdir; do 3202 for ac_exec_ext in '' $ac_executable_extensions; do 3203 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3204 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3205 'mkdir (GNU coreutils) '* | \ 3206 'mkdir (coreutils) '* | \ 3207 'mkdir (fileutils) '4.1*) 3208 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3209 break 3;; 3210 esac 3211 done 3212 done 3213 done 3214IFS=$as_save_IFS 3215 3216fi 3217 3218 test -d ./--version && rmdir ./--version 3219 if test "${ac_cv_path_mkdir+set}" = set; then 3220 MKDIR_P="$ac_cv_path_mkdir -p" 3221 else 3222 # As a last resort, use the slow shell script. Don't cache a 3223 # value for MKDIR_P within a source directory, because that will 3224 # break other packages using the cache if that directory is 3225 # removed, or if the value is a relative name. 3226 MKDIR_P="$ac_install_sh -d" 3227 fi 3228fi 3229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3230$as_echo "$MKDIR_P" >&6; } 3231 3232for ac_prog in gawk mawk nawk awk 3233do 3234 # Extract the first word of "$ac_prog", so it can be a program name with args. 3235set dummy $ac_prog; ac_word=$2 3236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3237$as_echo_n "checking for $ac_word... " >&6; } 3238if ${ac_cv_prog_AWK+:} false; then : 3239 $as_echo_n "(cached) " >&6 3240else 3241 if test -n "$AWK"; then 3242 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3243else 3244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3245for as_dir in $PATH 3246do 3247 IFS=$as_save_IFS 3248 test -z "$as_dir" && as_dir=. 3249 for ac_exec_ext in '' $ac_executable_extensions; do 3250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3251 ac_cv_prog_AWK="$ac_prog" 3252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3253 break 2 3254 fi 3255done 3256 done 3257IFS=$as_save_IFS 3258 3259fi 3260fi 3261AWK=$ac_cv_prog_AWK 3262if test -n "$AWK"; then 3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3264$as_echo "$AWK" >&6; } 3265else 3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3267$as_echo "no" >&6; } 3268fi 3269 3270 3271 test -n "$AWK" && break 3272done 3273 3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3275$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3276set x ${MAKE-make} 3277ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3278if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3279 $as_echo_n "(cached) " >&6 3280else 3281 cat >conftest.make <<\_ACEOF 3282SHELL = /bin/sh 3283all: 3284 @echo '@@@%%%=$(MAKE)=@@@%%%' 3285_ACEOF 3286# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3287case `${MAKE-make} -f conftest.make 2>/dev/null` in 3288 *@@@%%%=?*=@@@%%%*) 3289 eval ac_cv_prog_make_${ac_make}_set=yes;; 3290 *) 3291 eval ac_cv_prog_make_${ac_make}_set=no;; 3292esac 3293rm -f conftest.make 3294fi 3295if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3297$as_echo "yes" >&6; } 3298 SET_MAKE= 3299else 3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3301$as_echo "no" >&6; } 3302 SET_MAKE="MAKE=${MAKE-make}" 3303fi 3304 3305rm -rf .tst 2>/dev/null 3306mkdir .tst 2>/dev/null 3307if test -d .tst; then 3308 am__leading_dot=. 3309else 3310 am__leading_dot=_ 3311fi 3312rmdir .tst 2>/dev/null 3313 3314# Check whether --enable-silent-rules was given. 3315if test "${enable_silent_rules+set}" = set; then : 3316 enableval=$enable_silent_rules; 3317fi 3318 3319case $enable_silent_rules in # ((( 3320 yes) AM_DEFAULT_VERBOSITY=0;; 3321 no) AM_DEFAULT_VERBOSITY=1;; 3322 *) AM_DEFAULT_VERBOSITY=1;; 3323esac 3324am_make=${MAKE-make} 3325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3326$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3327if ${am_cv_make_support_nested_variables+:} false; then : 3328 $as_echo_n "(cached) " >&6 3329else 3330 if $as_echo 'TRUE=$(BAR$(V)) 3331BAR0=false 3332BAR1=true 3333V=1 3334am__doit: 3335 @$(TRUE) 3336.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3337 am_cv_make_support_nested_variables=yes 3338else 3339 am_cv_make_support_nested_variables=no 3340fi 3341fi 3342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3343$as_echo "$am_cv_make_support_nested_variables" >&6; } 3344if test $am_cv_make_support_nested_variables = yes; then 3345 AM_V='$(V)' 3346 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3347else 3348 AM_V=$AM_DEFAULT_VERBOSITY 3349 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3350fi 3351AM_BACKSLASH='\' 3352 3353if test "`cd $srcdir && pwd`" != "`pwd`"; then 3354 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3355 # is not polluted with repeated "-I." 3356 am__isrc=' -I$(srcdir)' 3357 # test to see if srcdir already configured 3358 if test -f $srcdir/config.status; then 3359 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3360 fi 3361fi 3362 3363# test whether we have cygpath 3364if test -z "$CYGPATH_W"; then 3365 if (cygpath --version) >/dev/null 2>/dev/null; then 3366 CYGPATH_W='cygpath -w' 3367 else 3368 CYGPATH_W=echo 3369 fi 3370fi 3371 3372 3373# Define the identity of the package. 3374 PACKAGE='cyrus-sasl' 3375 VERSION='2.1.28' 3376 3377 3378cat >>confdefs.h <<_ACEOF 3379#define PACKAGE "$PACKAGE" 3380_ACEOF 3381 3382 3383cat >>confdefs.h <<_ACEOF 3384#define VERSION "$VERSION" 3385_ACEOF 3386 3387# Some tools Automake needs. 3388 3389ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3390 3391 3392AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3393 3394 3395AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3396 3397 3398AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3399 3400 3401MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3402 3403# For better backward compatibility. To be removed once Automake 1.9.x 3404# dies out for good. For more background, see: 3405# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3406# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3407mkdir_p='$(MKDIR_P)' 3408 3409# We need awk for the "check" target (and possibly the TAP driver). The 3410# system "awk" is bad on some platforms. 3411# Always define AMTAR for backward compatibility. Yes, it's still used 3412# in the wild :-( We should find a proper way to deprecate it ... 3413AMTAR='$${TAR-tar}' 3414 3415 3416# We'll loop over all known methods to create a tar archive until one works. 3417_am_tools='gnutar plaintar pax cpio none' 3418 3419# The POSIX 1988 'ustar' format is defined with fixed-size fields. 3420 # There is notably a 21 bits limit for the UID and the GID. In fact, 3421 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 3422 # and bug#13588). 3423 am_max_uid=2097151 # 2^21 - 1 3424 am_max_gid=$am_max_uid 3425 # The $UID and $GID variables are not portable, so we need to resort 3426 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 3427 # below are definitely unexpected, so allow the users to see them 3428 # (that is, avoid stderr redirection). 3429 am_uid=`id -u || echo unknown` 3430 am_gid=`id -g || echo unknown` 3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 3432$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 3433 if test $am_uid -le $am_max_uid; then 3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3435$as_echo "yes" >&6; } 3436 else 3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3438$as_echo "no" >&6; } 3439 _am_tools=none 3440 fi 3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 3442$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 3443 if test $am_gid -le $am_max_gid; then 3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3445$as_echo "yes" >&6; } 3446 else 3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3448$as_echo "no" >&6; } 3449 _am_tools=none 3450 fi 3451 3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 3453$as_echo_n "checking how to create a ustar tar archive... " >&6; } 3454 3455 # Go ahead even if we have the value already cached. We do so because we 3456 # need to set the values for the 'am__tar' and 'am__untar' variables. 3457 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 3458 3459 for _am_tool in $_am_tools; do 3460 case $_am_tool in 3461 gnutar) 3462 for _am_tar in tar gnutar gtar; do 3463 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3464 ($_am_tar --version) >&5 2>&5 3465 ac_status=$? 3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3467 (exit $ac_status); } && break 3468 done 3469 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 3470 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 3471 am__untar="$_am_tar -xf -" 3472 ;; 3473 plaintar) 3474 # Must skip GNU tar: if it does not support --format= it doesn't create 3475 # ustar tarball either. 3476 (tar --version) >/dev/null 2>&1 && continue 3477 am__tar='tar chf - "$$tardir"' 3478 am__tar_='tar chf - "$tardir"' 3479 am__untar='tar xf -' 3480 ;; 3481 pax) 3482 am__tar='pax -L -x ustar -w "$$tardir"' 3483 am__tar_='pax -L -x ustar -w "$tardir"' 3484 am__untar='pax -r' 3485 ;; 3486 cpio) 3487 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3488 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3489 am__untar='cpio -i -H ustar -d' 3490 ;; 3491 none) 3492 am__tar=false 3493 am__tar_=false 3494 am__untar=false 3495 ;; 3496 esac 3497 3498 # If the value was cached, stop now. We just wanted to have am__tar 3499 # and am__untar set. 3500 test -n "${am_cv_prog_tar_ustar}" && break 3501 3502 # tar/untar a dummy directory, and stop if the command works. 3503 rm -rf conftest.dir 3504 mkdir conftest.dir 3505 echo GrepMe > conftest.dir/file 3506 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3507 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3508 ac_status=$? 3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3510 (exit $ac_status); } 3511 rm -rf conftest.dir 3512 if test -s conftest.tar; then 3513 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3514 ($am__untar <conftest.tar) >&5 2>&5 3515 ac_status=$? 3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3517 (exit $ac_status); } 3518 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3519 (cat conftest.dir/file) >&5 2>&5 3520 ac_status=$? 3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3522 (exit $ac_status); } 3523 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3524 fi 3525 done 3526 rm -rf conftest.dir 3527 3528 if ${am_cv_prog_tar_ustar+:} false; then : 3529 $as_echo_n "(cached) " >&6 3530else 3531 am_cv_prog_tar_ustar=$_am_tool 3532fi 3533 3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3535$as_echo "$am_cv_prog_tar_ustar" >&6; } 3536 3537 3538 3539 3540 3541 3542# POSIX will say in a future version that running "rm -f" with no argument 3543# is OK; and we want to be able to make that assumption in our Makefile 3544# recipes. So use an aggressive probe to check that the usage we want is 3545# actually supported "in the wild" to an acceptable degree. 3546# See automake bug#10828. 3547# To make any issue more visible, cause the running configure to be aborted 3548# by default if the 'rm' program in use doesn't match our expectations; the 3549# user can still override this though. 3550if rm -f && rm -fr && rm -rf; then : OK; else 3551 cat >&2 <<'END' 3552Oops! 3553 3554Your 'rm' program seems unable to run without file operands specified 3555on the command line, even when the '-f' option is present. This is contrary 3556to the behaviour of most rm programs out there, and not conforming with 3557the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3558 3559Please tell bug-automake@gnu.org about your system, including the value 3560of your $PATH and any error possibly output before this message. This 3561can help us improve future automake versions. 3562 3563END 3564 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3565 echo 'Configuration will proceed anyway, since you have set the' >&2 3566 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3567 echo >&2 3568 else 3569 cat >&2 <<'END' 3570Aborting the configuration process, to ensure you take notice of the issue. 3571 3572You can download and install GNU coreutils to get an 'rm' implementation 3573that behaves properly: <https://www.gnu.org/software/coreutils/>. 3574 3575If you want to complete the configuration process using your problematic 3576'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3577to "yes", and re-run configure. 3578 3579END 3580 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3581 fi 3582fi 3583 3584 3585DIRS="" 3586 3587# Check whether --enable-cmulocal was given. 3588if test "${enable_cmulocal+set}" = set; then : 3589 enableval=$enable_cmulocal; 3590else 3591 enable_cmulocal=no 3592fi 3593 3594 3595# Check whether --enable-sample was given. 3596if test "${enable_sample+set}" = set; then : 3597 enableval=$enable_sample; 3598else 3599 enable_sample=yes 3600fi 3601 3602 3603# Check whether --enable-obsolete_cram_attr was given. 3604if test "${enable_obsolete_cram_attr+set}" = set; then : 3605 enableval=$enable_obsolete_cram_attr; enable_obsolete_cram_attr=$enableval 3606else 3607 enable_obsolete_cram_attr=yes 3608fi 3609 3610 3611# Check whether --enable-obsolete_digest_attr was given. 3612if test "${enable_obsolete_digest_attr+set}" = set; then : 3613 enableval=$enable_obsolete_digest_attr; enable_obsolete_digest_attr=$enableval 3614else 3615 enable_obsolete_digest_attr=yes 3616fi 3617 3618 3619ac_ext=c 3620ac_cpp='$CPP $CPPFLAGS' 3621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3623ac_compiler_gnu=$ac_cv_c_compiler_gnu 3624if test -n "$ac_tool_prefix"; then 3625 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3626set dummy ${ac_tool_prefix}gcc; ac_word=$2 3627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3628$as_echo_n "checking for $ac_word... " >&6; } 3629if ${ac_cv_prog_CC+:} false; then : 3630 $as_echo_n "(cached) " >&6 3631else 3632 if test -n "$CC"; then 3633 ac_cv_prog_CC="$CC" # Let the user override the test. 3634else 3635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3636for as_dir in $PATH 3637do 3638 IFS=$as_save_IFS 3639 test -z "$as_dir" && as_dir=. 3640 for ac_exec_ext in '' $ac_executable_extensions; do 3641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3642 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3644 break 2 3645 fi 3646done 3647 done 3648IFS=$as_save_IFS 3649 3650fi 3651fi 3652CC=$ac_cv_prog_CC 3653if test -n "$CC"; then 3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3655$as_echo "$CC" >&6; } 3656else 3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3658$as_echo "no" >&6; } 3659fi 3660 3661 3662fi 3663if test -z "$ac_cv_prog_CC"; then 3664 ac_ct_CC=$CC 3665 # Extract the first word of "gcc", so it can be a program name with args. 3666set dummy gcc; ac_word=$2 3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3668$as_echo_n "checking for $ac_word... " >&6; } 3669if ${ac_cv_prog_ac_ct_CC+:} false; then : 3670 $as_echo_n "(cached) " >&6 3671else 3672 if test -n "$ac_ct_CC"; then 3673 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3674else 3675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3676for as_dir in $PATH 3677do 3678 IFS=$as_save_IFS 3679 test -z "$as_dir" && as_dir=. 3680 for ac_exec_ext in '' $ac_executable_extensions; do 3681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3682 ac_cv_prog_ac_ct_CC="gcc" 3683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3684 break 2 3685 fi 3686done 3687 done 3688IFS=$as_save_IFS 3689 3690fi 3691fi 3692ac_ct_CC=$ac_cv_prog_ac_ct_CC 3693if test -n "$ac_ct_CC"; then 3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3695$as_echo "$ac_ct_CC" >&6; } 3696else 3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3698$as_echo "no" >&6; } 3699fi 3700 3701 if test "x$ac_ct_CC" = x; then 3702 CC="" 3703 else 3704 case $cross_compiling:$ac_tool_warned in 3705yes:) 3706{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3708ac_tool_warned=yes ;; 3709esac 3710 CC=$ac_ct_CC 3711 fi 3712else 3713 CC="$ac_cv_prog_CC" 3714fi 3715 3716if test -z "$CC"; then 3717 if test -n "$ac_tool_prefix"; then 3718 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3719set dummy ${ac_tool_prefix}cc; ac_word=$2 3720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3721$as_echo_n "checking for $ac_word... " >&6; } 3722if ${ac_cv_prog_CC+:} false; then : 3723 $as_echo_n "(cached) " >&6 3724else 3725 if test -n "$CC"; then 3726 ac_cv_prog_CC="$CC" # Let the user override the test. 3727else 3728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3729for as_dir in $PATH 3730do 3731 IFS=$as_save_IFS 3732 test -z "$as_dir" && as_dir=. 3733 for ac_exec_ext in '' $ac_executable_extensions; do 3734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3735 ac_cv_prog_CC="${ac_tool_prefix}cc" 3736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3737 break 2 3738 fi 3739done 3740 done 3741IFS=$as_save_IFS 3742 3743fi 3744fi 3745CC=$ac_cv_prog_CC 3746if test -n "$CC"; then 3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3748$as_echo "$CC" >&6; } 3749else 3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3751$as_echo "no" >&6; } 3752fi 3753 3754 3755 fi 3756fi 3757if test -z "$CC"; then 3758 # Extract the first word of "cc", so it can be a program name with args. 3759set dummy cc; ac_word=$2 3760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3761$as_echo_n "checking for $ac_word... " >&6; } 3762if ${ac_cv_prog_CC+:} false; then : 3763 $as_echo_n "(cached) " >&6 3764else 3765 if test -n "$CC"; then 3766 ac_cv_prog_CC="$CC" # Let the user override the test. 3767else 3768 ac_prog_rejected=no 3769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3770for as_dir in $PATH 3771do 3772 IFS=$as_save_IFS 3773 test -z "$as_dir" && as_dir=. 3774 for ac_exec_ext in '' $ac_executable_extensions; do 3775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3776 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3777 ac_prog_rejected=yes 3778 continue 3779 fi 3780 ac_cv_prog_CC="cc" 3781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3782 break 2 3783 fi 3784done 3785 done 3786IFS=$as_save_IFS 3787 3788if test $ac_prog_rejected = yes; then 3789 # We found a bogon in the path, so make sure we never use it. 3790 set dummy $ac_cv_prog_CC 3791 shift 3792 if test $# != 0; then 3793 # We chose a different compiler from the bogus one. 3794 # However, it has the same basename, so the bogon will be chosen 3795 # first if we set CC to just the basename; use the full file name. 3796 shift 3797 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3798 fi 3799fi 3800fi 3801fi 3802CC=$ac_cv_prog_CC 3803if test -n "$CC"; then 3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3805$as_echo "$CC" >&6; } 3806else 3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3808$as_echo "no" >&6; } 3809fi 3810 3811 3812fi 3813if test -z "$CC"; then 3814 if test -n "$ac_tool_prefix"; then 3815 for ac_prog in cl.exe 3816 do 3817 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3818set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3820$as_echo_n "checking for $ac_word... " >&6; } 3821if ${ac_cv_prog_CC+:} false; then : 3822 $as_echo_n "(cached) " >&6 3823else 3824 if test -n "$CC"; then 3825 ac_cv_prog_CC="$CC" # Let the user override the test. 3826else 3827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3828for as_dir in $PATH 3829do 3830 IFS=$as_save_IFS 3831 test -z "$as_dir" && as_dir=. 3832 for ac_exec_ext in '' $ac_executable_extensions; do 3833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3834 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3836 break 2 3837 fi 3838done 3839 done 3840IFS=$as_save_IFS 3841 3842fi 3843fi 3844CC=$ac_cv_prog_CC 3845if test -n "$CC"; then 3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3847$as_echo "$CC" >&6; } 3848else 3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3850$as_echo "no" >&6; } 3851fi 3852 3853 3854 test -n "$CC" && break 3855 done 3856fi 3857if test -z "$CC"; then 3858 ac_ct_CC=$CC 3859 for ac_prog in cl.exe 3860do 3861 # Extract the first word of "$ac_prog", so it can be a program name with args. 3862set dummy $ac_prog; ac_word=$2 3863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3864$as_echo_n "checking for $ac_word... " >&6; } 3865if ${ac_cv_prog_ac_ct_CC+:} false; then : 3866 $as_echo_n "(cached) " >&6 3867else 3868 if test -n "$ac_ct_CC"; then 3869 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3870else 3871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3872for as_dir in $PATH 3873do 3874 IFS=$as_save_IFS 3875 test -z "$as_dir" && as_dir=. 3876 for ac_exec_ext in '' $ac_executable_extensions; do 3877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3878 ac_cv_prog_ac_ct_CC="$ac_prog" 3879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3880 break 2 3881 fi 3882done 3883 done 3884IFS=$as_save_IFS 3885 3886fi 3887fi 3888ac_ct_CC=$ac_cv_prog_ac_ct_CC 3889if test -n "$ac_ct_CC"; then 3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3891$as_echo "$ac_ct_CC" >&6; } 3892else 3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3894$as_echo "no" >&6; } 3895fi 3896 3897 3898 test -n "$ac_ct_CC" && break 3899done 3900 3901 if test "x$ac_ct_CC" = x; then 3902 CC="" 3903 else 3904 case $cross_compiling:$ac_tool_warned in 3905yes:) 3906{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3907$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3908ac_tool_warned=yes ;; 3909esac 3910 CC=$ac_ct_CC 3911 fi 3912fi 3913 3914fi 3915 3916 3917test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3918$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3919as_fn_error $? "no acceptable C compiler found in \$PATH 3920See \`config.log' for more details" "$LINENO" 5; } 3921 3922# Provide some information about the compiler. 3923$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3924set X $ac_compile 3925ac_compiler=$2 3926for ac_option in --version -v -V -qversion; do 3927 { { ac_try="$ac_compiler $ac_option >&5" 3928case "(($ac_try" in 3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3930 *) ac_try_echo=$ac_try;; 3931esac 3932eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3933$as_echo "$ac_try_echo"; } >&5 3934 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3935 ac_status=$? 3936 if test -s conftest.err; then 3937 sed '10a\ 3938... rest of stderr output deleted ... 3939 10q' conftest.err >conftest.er1 3940 cat conftest.er1 >&5 3941 fi 3942 rm -f conftest.er1 conftest.err 3943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3944 test $ac_status = 0; } 3945done 3946 3947cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3948/* end confdefs.h. */ 3949 3950int 3951main () 3952{ 3953 3954 ; 3955 return 0; 3956} 3957_ACEOF 3958ac_clean_files_save=$ac_clean_files 3959ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3960# Try to create an executable without -o first, disregard a.out. 3961# It will help us diagnose broken compilers, and finding out an intuition 3962# of exeext. 3963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3964$as_echo_n "checking whether the C compiler works... " >&6; } 3965ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3966 3967# The possible output files: 3968ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3969 3970ac_rmfiles= 3971for ac_file in $ac_files 3972do 3973 case $ac_file in 3974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3975 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3976 esac 3977done 3978rm -f $ac_rmfiles 3979 3980if { { ac_try="$ac_link_default" 3981case "(($ac_try" in 3982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3983 *) ac_try_echo=$ac_try;; 3984esac 3985eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3986$as_echo "$ac_try_echo"; } >&5 3987 (eval "$ac_link_default") 2>&5 3988 ac_status=$? 3989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3990 test $ac_status = 0; }; then : 3991 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3992# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3993# in a Makefile. We should not override ac_cv_exeext if it was cached, 3994# so that the user can short-circuit this test for compilers unknown to 3995# Autoconf. 3996for ac_file in $ac_files '' 3997do 3998 test -f "$ac_file" || continue 3999 case $ac_file in 4000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4001 ;; 4002 [ab].out ) 4003 # We found the default executable, but exeext='' is most 4004 # certainly right. 4005 break;; 4006 *.* ) 4007 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4008 then :; else 4009 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4010 fi 4011 # We set ac_cv_exeext here because the later test for it is not 4012 # safe: cross compilers may not add the suffix if given an `-o' 4013 # argument, so we may need to know it at that point already. 4014 # Even if this section looks crufty: it has the advantage of 4015 # actually working. 4016 break;; 4017 * ) 4018 break;; 4019 esac 4020done 4021test "$ac_cv_exeext" = no && ac_cv_exeext= 4022 4023else 4024 ac_file='' 4025fi 4026if test -z "$ac_file"; then : 4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4028$as_echo "no" >&6; } 4029$as_echo "$as_me: failed program was:" >&5 4030sed 's/^/| /' conftest.$ac_ext >&5 4031 4032{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4033$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4034as_fn_error 77 "C compiler cannot create executables 4035See \`config.log' for more details" "$LINENO" 5; } 4036else 4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4038$as_echo "yes" >&6; } 4039fi 4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4041$as_echo_n "checking for C compiler default output file name... " >&6; } 4042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4043$as_echo "$ac_file" >&6; } 4044ac_exeext=$ac_cv_exeext 4045 4046rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4047ac_clean_files=$ac_clean_files_save 4048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4049$as_echo_n "checking for suffix of executables... " >&6; } 4050if { { ac_try="$ac_link" 4051case "(($ac_try" in 4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4053 *) ac_try_echo=$ac_try;; 4054esac 4055eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4056$as_echo "$ac_try_echo"; } >&5 4057 (eval "$ac_link") 2>&5 4058 ac_status=$? 4059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4060 test $ac_status = 0; }; then : 4061 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4062# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4063# work properly (i.e., refer to `conftest.exe'), while it won't with 4064# `rm'. 4065for ac_file in conftest.exe conftest conftest.*; do 4066 test -f "$ac_file" || continue 4067 case $ac_file in 4068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4069 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4070 break;; 4071 * ) break;; 4072 esac 4073done 4074else 4075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4076$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4077as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4078See \`config.log' for more details" "$LINENO" 5; } 4079fi 4080rm -f conftest conftest$ac_cv_exeext 4081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4082$as_echo "$ac_cv_exeext" >&6; } 4083 4084rm -f conftest.$ac_ext 4085EXEEXT=$ac_cv_exeext 4086ac_exeext=$EXEEXT 4087cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4088/* end confdefs.h. */ 4089#include <stdio.h> 4090int 4091main () 4092{ 4093FILE *f = fopen ("conftest.out", "w"); 4094 return ferror (f) || fclose (f) != 0; 4095 4096 ; 4097 return 0; 4098} 4099_ACEOF 4100ac_clean_files="$ac_clean_files conftest.out" 4101# Check that the compiler produces executables we can run. If not, either 4102# the compiler is broken, or we cross compile. 4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4104$as_echo_n "checking whether we are cross compiling... " >&6; } 4105if test "$cross_compiling" != yes; then 4106 { { ac_try="$ac_link" 4107case "(($ac_try" in 4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4109 *) ac_try_echo=$ac_try;; 4110esac 4111eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4112$as_echo "$ac_try_echo"; } >&5 4113 (eval "$ac_link") 2>&5 4114 ac_status=$? 4115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4116 test $ac_status = 0; } 4117 if { ac_try='./conftest$ac_cv_exeext' 4118 { { case "(($ac_try" in 4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4120 *) ac_try_echo=$ac_try;; 4121esac 4122eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4123$as_echo "$ac_try_echo"; } >&5 4124 (eval "$ac_try") 2>&5 4125 ac_status=$? 4126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4127 test $ac_status = 0; }; }; then 4128 cross_compiling=no 4129 else 4130 if test "$cross_compiling" = maybe; then 4131 cross_compiling=yes 4132 else 4133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4135as_fn_error $? "cannot run C compiled programs. 4136If you meant to cross compile, use \`--host'. 4137See \`config.log' for more details" "$LINENO" 5; } 4138 fi 4139 fi 4140fi 4141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4142$as_echo "$cross_compiling" >&6; } 4143 4144rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4145ac_clean_files=$ac_clean_files_save 4146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4147$as_echo_n "checking for suffix of object files... " >&6; } 4148if ${ac_cv_objext+:} false; then : 4149 $as_echo_n "(cached) " >&6 4150else 4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4152/* end confdefs.h. */ 4153 4154int 4155main () 4156{ 4157 4158 ; 4159 return 0; 4160} 4161_ACEOF 4162rm -f conftest.o conftest.obj 4163if { { ac_try="$ac_compile" 4164case "(($ac_try" in 4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4166 *) ac_try_echo=$ac_try;; 4167esac 4168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4169$as_echo "$ac_try_echo"; } >&5 4170 (eval "$ac_compile") 2>&5 4171 ac_status=$? 4172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4173 test $ac_status = 0; }; then : 4174 for ac_file in conftest.o conftest.obj conftest.*; do 4175 test -f "$ac_file" || continue; 4176 case $ac_file in 4177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4178 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4179 break;; 4180 esac 4181done 4182else 4183 $as_echo "$as_me: failed program was:" >&5 4184sed 's/^/| /' conftest.$ac_ext >&5 4185 4186{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4188as_fn_error $? "cannot compute suffix of object files: cannot compile 4189See \`config.log' for more details" "$LINENO" 5; } 4190fi 4191rm -f conftest.$ac_cv_objext conftest.$ac_ext 4192fi 4193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4194$as_echo "$ac_cv_objext" >&6; } 4195OBJEXT=$ac_cv_objext 4196ac_objext=$OBJEXT 4197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4198$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4199if ${ac_cv_c_compiler_gnu+:} false; then : 4200 $as_echo_n "(cached) " >&6 4201else 4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4203/* end confdefs.h. */ 4204 4205int 4206main () 4207{ 4208#ifndef __GNUC__ 4209 choke me 4210#endif 4211 4212 ; 4213 return 0; 4214} 4215_ACEOF 4216if ac_fn_c_try_compile "$LINENO"; then : 4217 ac_compiler_gnu=yes 4218else 4219 ac_compiler_gnu=no 4220fi 4221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4222ac_cv_c_compiler_gnu=$ac_compiler_gnu 4223 4224fi 4225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4226$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4227if test $ac_compiler_gnu = yes; then 4228 GCC=yes 4229else 4230 GCC= 4231fi 4232ac_test_CFLAGS=${CFLAGS+set} 4233ac_save_CFLAGS=$CFLAGS 4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4235$as_echo_n "checking whether $CC accepts -g... " >&6; } 4236if ${ac_cv_prog_cc_g+:} false; then : 4237 $as_echo_n "(cached) " >&6 4238else 4239 ac_save_c_werror_flag=$ac_c_werror_flag 4240 ac_c_werror_flag=yes 4241 ac_cv_prog_cc_g=no 4242 CFLAGS="-g" 4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4244/* end confdefs.h. */ 4245 4246int 4247main () 4248{ 4249 4250 ; 4251 return 0; 4252} 4253_ACEOF 4254if ac_fn_c_try_compile "$LINENO"; then : 4255 ac_cv_prog_cc_g=yes 4256else 4257 CFLAGS="" 4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4259/* end confdefs.h. */ 4260 4261int 4262main () 4263{ 4264 4265 ; 4266 return 0; 4267} 4268_ACEOF 4269if ac_fn_c_try_compile "$LINENO"; then : 4270 4271else 4272 ac_c_werror_flag=$ac_save_c_werror_flag 4273 CFLAGS="-g" 4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4275/* end confdefs.h. */ 4276 4277int 4278main () 4279{ 4280 4281 ; 4282 return 0; 4283} 4284_ACEOF 4285if ac_fn_c_try_compile "$LINENO"; then : 4286 ac_cv_prog_cc_g=yes 4287fi 4288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4289fi 4290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4291fi 4292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4293 ac_c_werror_flag=$ac_save_c_werror_flag 4294fi 4295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4296$as_echo "$ac_cv_prog_cc_g" >&6; } 4297if test "$ac_test_CFLAGS" = set; then 4298 CFLAGS=$ac_save_CFLAGS 4299elif test $ac_cv_prog_cc_g = yes; then 4300 if test "$GCC" = yes; then 4301 CFLAGS="-g -O2" 4302 else 4303 CFLAGS="-g" 4304 fi 4305else 4306 if test "$GCC" = yes; then 4307 CFLAGS="-O2" 4308 else 4309 CFLAGS= 4310 fi 4311fi 4312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4313$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4314if ${ac_cv_prog_cc_c89+:} false; then : 4315 $as_echo_n "(cached) " >&6 4316else 4317 ac_cv_prog_cc_c89=no 4318ac_save_CC=$CC 4319cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4320/* end confdefs.h. */ 4321#include <stdarg.h> 4322#include <stdio.h> 4323struct stat; 4324/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4325struct buf { int x; }; 4326FILE * (*rcsopen) (struct buf *, struct stat *, int); 4327static char *e (p, i) 4328 char **p; 4329 int i; 4330{ 4331 return p[i]; 4332} 4333static char *f (char * (*g) (char **, int), char **p, ...) 4334{ 4335 char *s; 4336 va_list v; 4337 va_start (v,p); 4338 s = g (p, va_arg (v,int)); 4339 va_end (v); 4340 return s; 4341} 4342 4343/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4344 function prototypes and stuff, but not '\xHH' hex character constants. 4345 These don't provoke an error unfortunately, instead are silently treated 4346 as 'x'. The following induces an error, until -std is added to get 4347 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4348 array size at least. It's necessary to write '\x00'==0 to get something 4349 that's true only with -std. */ 4350int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4351 4352/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4353 inside strings and character constants. */ 4354#define FOO(x) 'x' 4355int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4356 4357int test (int i, double x); 4358struct s1 {int (*f) (int a);}; 4359struct s2 {int (*f) (double a);}; 4360int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4361int argc; 4362char **argv; 4363int 4364main () 4365{ 4366return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4367 ; 4368 return 0; 4369} 4370_ACEOF 4371for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4372 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4373do 4374 CC="$ac_save_CC $ac_arg" 4375 if ac_fn_c_try_compile "$LINENO"; then : 4376 ac_cv_prog_cc_c89=$ac_arg 4377fi 4378rm -f core conftest.err conftest.$ac_objext 4379 test "x$ac_cv_prog_cc_c89" != "xno" && break 4380done 4381rm -f conftest.$ac_ext 4382CC=$ac_save_CC 4383 4384fi 4385# AC_CACHE_VAL 4386case "x$ac_cv_prog_cc_c89" in 4387 x) 4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4389$as_echo "none needed" >&6; } ;; 4390 xno) 4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4392$as_echo "unsupported" >&6; } ;; 4393 *) 4394 CC="$CC $ac_cv_prog_cc_c89" 4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4396$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4397esac 4398if test "x$ac_cv_prog_cc_c89" != xno; then : 4399 4400fi 4401 4402ac_ext=c 4403ac_cpp='$CPP $CPPFLAGS' 4404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4406ac_compiler_gnu=$ac_cv_c_compiler_gnu 4407 4408ac_ext=c 4409ac_cpp='$CPP $CPPFLAGS' 4410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4412ac_compiler_gnu=$ac_cv_c_compiler_gnu 4413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4414$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4415if ${am_cv_prog_cc_c_o+:} false; then : 4416 $as_echo_n "(cached) " >&6 4417else 4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4419/* end confdefs.h. */ 4420 4421int 4422main () 4423{ 4424 4425 ; 4426 return 0; 4427} 4428_ACEOF 4429 # Make sure it works both with $CC and with simple cc. 4430 # Following AC_PROG_CC_C_O, we do the test twice because some 4431 # compilers refuse to overwrite an existing .o file with -o, 4432 # though they will create one. 4433 am_cv_prog_cc_c_o=yes 4434 for am_i in 1 2; do 4435 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4436 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4437 ac_status=$? 4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4439 (exit $ac_status); } \ 4440 && test -f conftest2.$ac_objext; then 4441 : OK 4442 else 4443 am_cv_prog_cc_c_o=no 4444 break 4445 fi 4446 done 4447 rm -f core conftest* 4448 unset am_i 4449fi 4450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4451$as_echo "$am_cv_prog_cc_c_o" >&6; } 4452if test "$am_cv_prog_cc_c_o" != yes; then 4453 # Losing compiler, so override with the script. 4454 # FIXME: It is wrong to rewrite CC. 4455 # But if we don't then we get into trouble of one sort or another. 4456 # A longer-term fix would be to have automake use am__CC in this case, 4457 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4458 CC="$am_aux_dir/compile $CC" 4459fi 4460ac_ext=c 4461ac_cpp='$CPP $CPPFLAGS' 4462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4464ac_compiler_gnu=$ac_cv_c_compiler_gnu 4465 4466DEPDIR="${am__leading_dot}deps" 4467 4468ac_config_commands="$ac_config_commands depfiles" 4469 4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4471$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 4472cat > confinc.mk << 'END' 4473am__doit: 4474 @echo this is the am__doit target >confinc.out 4475.PHONY: am__doit 4476END 4477am__include="#" 4478am__quote= 4479# BSD make does it like this. 4480echo '.include "confinc.mk" # ignored' > confmf.BSD 4481# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4482echo 'include confinc.mk # ignored' > confmf.GNU 4483_am_result=no 4484for s in GNU BSD; do 4485 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4486 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4487 ac_status=$? 4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4489 (exit $ac_status); } 4490 case $?:`cat confinc.out 2>/dev/null` in #( 4491 '0:this is the am__doit target') : 4492 case $s in #( 4493 BSD) : 4494 am__include='.include' am__quote='"' ;; #( 4495 *) : 4496 am__include='include' am__quote='' ;; 4497esac ;; #( 4498 *) : 4499 ;; 4500esac 4501 if test "$am__include" != "#"; then 4502 _am_result="yes ($s style)" 4503 break 4504 fi 4505done 4506rm -f confinc.* confmf.* 4507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4508$as_echo "${_am_result}" >&6; } 4509 4510# Check whether --enable-dependency-tracking was given. 4511if test "${enable_dependency_tracking+set}" = set; then : 4512 enableval=$enable_dependency_tracking; 4513fi 4514 4515if test "x$enable_dependency_tracking" != xno; then 4516 am_depcomp="$ac_aux_dir/depcomp" 4517 AMDEPBACKSLASH='\' 4518 am__nodep='_no' 4519fi 4520 if test "x$enable_dependency_tracking" != xno; then 4521 AMDEP_TRUE= 4522 AMDEP_FALSE='#' 4523else 4524 AMDEP_TRUE='#' 4525 AMDEP_FALSE= 4526fi 4527 4528 4529 4530depcc="$CC" am_compiler_list= 4531 4532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4533$as_echo_n "checking dependency style of $depcc... " >&6; } 4534if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4535 $as_echo_n "(cached) " >&6 4536else 4537 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4538 # We make a subdir and do the tests there. Otherwise we can end up 4539 # making bogus files that we don't know about and never remove. For 4540 # instance it was reported that on HP-UX the gcc test will end up 4541 # making a dummy file named 'D' -- because '-MD' means "put the output 4542 # in D". 4543 rm -rf conftest.dir 4544 mkdir conftest.dir 4545 # Copy depcomp to subdir because otherwise we won't find it if we're 4546 # using a relative directory. 4547 cp "$am_depcomp" conftest.dir 4548 cd conftest.dir 4549 # We will build objects and dependencies in a subdirectory because 4550 # it helps to detect inapplicable dependency modes. For instance 4551 # both Tru64's cc and ICC support -MD to output dependencies as a 4552 # side effect of compilation, but ICC will put the dependencies in 4553 # the current directory while Tru64 will put them in the object 4554 # directory. 4555 mkdir sub 4556 4557 am_cv_CC_dependencies_compiler_type=none 4558 if test "$am_compiler_list" = ""; then 4559 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4560 fi 4561 am__universal=false 4562 case " $depcc " in #( 4563 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4564 esac 4565 4566 for depmode in $am_compiler_list; do 4567 # Setup a source with many dependencies, because some compilers 4568 # like to wrap large dependency lists on column 80 (with \), and 4569 # we should not choose a depcomp mode which is confused by this. 4570 # 4571 # We need to recreate these files for each test, as the compiler may 4572 # overwrite some of them when testing with obscure command lines. 4573 # This happens at least with the AIX C compiler. 4574 : > sub/conftest.c 4575 for i in 1 2 3 4 5 6; do 4576 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4577 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4578 # Solaris 10 /bin/sh. 4579 echo '/* dummy */' > sub/conftst$i.h 4580 done 4581 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4582 4583 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4584 # mode. It turns out that the SunPro C++ compiler does not properly 4585 # handle '-M -o', and we need to detect this. Also, some Intel 4586 # versions had trouble with output in subdirs. 4587 am__obj=sub/conftest.${OBJEXT-o} 4588 am__minus_obj="-o $am__obj" 4589 case $depmode in 4590 gcc) 4591 # This depmode causes a compiler race in universal mode. 4592 test "$am__universal" = false || continue 4593 ;; 4594 nosideeffect) 4595 # After this tag, mechanisms are not by side-effect, so they'll 4596 # only be used when explicitly requested. 4597 if test "x$enable_dependency_tracking" = xyes; then 4598 continue 4599 else 4600 break 4601 fi 4602 ;; 4603 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4604 # This compiler won't grok '-c -o', but also, the minuso test has 4605 # not run yet. These depmodes are late enough in the game, and 4606 # so weak that their functioning should not be impacted. 4607 am__obj=conftest.${OBJEXT-o} 4608 am__minus_obj= 4609 ;; 4610 none) break ;; 4611 esac 4612 if depmode=$depmode \ 4613 source=sub/conftest.c object=$am__obj \ 4614 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4615 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4616 >/dev/null 2>conftest.err && 4617 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4618 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4619 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4620 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4621 # icc doesn't choke on unknown options, it will just issue warnings 4622 # or remarks (even with -Werror). So we grep stderr for any message 4623 # that says an option was ignored or not supported. 4624 # When given -MP, icc 7.0 and 7.1 complain thusly: 4625 # icc: Command line warning: ignoring option '-M'; no argument required 4626 # The diagnosis changed in icc 8.0: 4627 # icc: Command line remark: option '-MP' not supported 4628 if (grep 'ignoring option' conftest.err || 4629 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4630 am_cv_CC_dependencies_compiler_type=$depmode 4631 break 4632 fi 4633 fi 4634 done 4635 4636 cd .. 4637 rm -rf conftest.dir 4638else 4639 am_cv_CC_dependencies_compiler_type=none 4640fi 4641 4642fi 4643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4644$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4645CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4646 4647 if 4648 test "x$enable_dependency_tracking" != xno \ 4649 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4650 am__fastdepCC_TRUE= 4651 am__fastdepCC_FALSE='#' 4652else 4653 am__fastdepCC_TRUE='#' 4654 am__fastdepCC_FALSE= 4655fi 4656 4657 4658ac_ext=c 4659ac_cpp='$CPP $CPPFLAGS' 4660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4662ac_compiler_gnu=$ac_cv_c_compiler_gnu 4663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4664$as_echo_n "checking how to run the C preprocessor... " >&6; } 4665# On Suns, sometimes $CPP names a directory. 4666if test -n "$CPP" && test -d "$CPP"; then 4667 CPP= 4668fi 4669if test -z "$CPP"; then 4670 if ${ac_cv_prog_CPP+:} false; then : 4671 $as_echo_n "(cached) " >&6 4672else 4673 # Double quotes because CPP needs to be expanded 4674 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4675 do 4676 ac_preproc_ok=false 4677for ac_c_preproc_warn_flag in '' yes 4678do 4679 # Use a header file that comes with gcc, so configuring glibc 4680 # with a fresh cross-compiler works. 4681 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4682 # <limits.h> exists even on freestanding compilers. 4683 # On the NeXT, cc -E runs the code through the compiler's parser, 4684 # not just through cpp. "Syntax error" is here to catch this case. 4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4686/* end confdefs.h. */ 4687#ifdef __STDC__ 4688# include <limits.h> 4689#else 4690# include <assert.h> 4691#endif 4692 Syntax error 4693_ACEOF 4694if ac_fn_c_try_cpp "$LINENO"; then : 4695 4696else 4697 # Broken: fails on valid input. 4698continue 4699fi 4700rm -f conftest.err conftest.i conftest.$ac_ext 4701 4702 # OK, works on sane cases. Now check whether nonexistent headers 4703 # can be detected and how. 4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4705/* end confdefs.h. */ 4706#include <ac_nonexistent.h> 4707_ACEOF 4708if ac_fn_c_try_cpp "$LINENO"; then : 4709 # Broken: success on invalid input. 4710continue 4711else 4712 # Passes both tests. 4713ac_preproc_ok=: 4714break 4715fi 4716rm -f conftest.err conftest.i conftest.$ac_ext 4717 4718done 4719# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4720rm -f conftest.i conftest.err conftest.$ac_ext 4721if $ac_preproc_ok; then : 4722 break 4723fi 4724 4725 done 4726 ac_cv_prog_CPP=$CPP 4727 4728fi 4729 CPP=$ac_cv_prog_CPP 4730else 4731 ac_cv_prog_CPP=$CPP 4732fi 4733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4734$as_echo "$CPP" >&6; } 4735ac_preproc_ok=false 4736for ac_c_preproc_warn_flag in '' yes 4737do 4738 # Use a header file that comes with gcc, so configuring glibc 4739 # with a fresh cross-compiler works. 4740 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4741 # <limits.h> exists even on freestanding compilers. 4742 # On the NeXT, cc -E runs the code through the compiler's parser, 4743 # not just through cpp. "Syntax error" is here to catch this case. 4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4745/* end confdefs.h. */ 4746#ifdef __STDC__ 4747# include <limits.h> 4748#else 4749# include <assert.h> 4750#endif 4751 Syntax error 4752_ACEOF 4753if ac_fn_c_try_cpp "$LINENO"; then : 4754 4755else 4756 # Broken: fails on valid input. 4757continue 4758fi 4759rm -f conftest.err conftest.i conftest.$ac_ext 4760 4761 # OK, works on sane cases. Now check whether nonexistent headers 4762 # can be detected and how. 4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4764/* end confdefs.h. */ 4765#include <ac_nonexistent.h> 4766_ACEOF 4767if ac_fn_c_try_cpp "$LINENO"; then : 4768 # Broken: success on invalid input. 4769continue 4770else 4771 # Passes both tests. 4772ac_preproc_ok=: 4773break 4774fi 4775rm -f conftest.err conftest.i conftest.$ac_ext 4776 4777done 4778# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4779rm -f conftest.i conftest.err conftest.$ac_ext 4780if $ac_preproc_ok; then : 4781 4782else 4783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4784$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4785as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4786See \`config.log' for more details" "$LINENO" 5; } 4787fi 4788 4789ac_ext=c 4790ac_cpp='$CPP $CPPFLAGS' 4791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4793ac_compiler_gnu=$ac_cv_c_compiler_gnu 4794 4795 4796 4797 4798save_cross_compiling=$cross_compiling 4799save_ac_tool_prefix=$ac_tool_prefix 4800cross_compiling=no 4801ac_tool_prefix= 4802 4803ac_ext=c 4804ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 4805ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 4806ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 4807ac_compiler_gnu=$ac_cv_c_compiler_gnu 4808if test -n "$ac_tool_prefix"; then 4809 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4810set dummy ${ac_tool_prefix}gcc; ac_word=$2 4811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4812$as_echo_n "checking for $ac_word... " >&6; } 4813if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : 4814 $as_echo_n "(cached) " >&6 4815else 4816 if test -n "$CC_FOR_BUILD"; then 4817 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 4818else 4819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4820for as_dir in $PATH 4821do 4822 IFS=$as_save_IFS 4823 test -z "$as_dir" && as_dir=. 4824 for ac_exec_ext in '' $ac_executable_extensions; do 4825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4826 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc" 4827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4828 break 2 4829 fi 4830done 4831 done 4832IFS=$as_save_IFS 4833 4834fi 4835fi 4836CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 4837if test -n "$CC_FOR_BUILD"; then 4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 4839$as_echo "$CC_FOR_BUILD" >&6; } 4840else 4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4842$as_echo "no" >&6; } 4843fi 4844 4845 4846fi 4847if test -z "$ac_cv_prog_CC_FOR_BUILD"; then 4848 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD 4849 # Extract the first word of "gcc", so it can be a program name with args. 4850set dummy gcc; ac_word=$2 4851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4852$as_echo_n "checking for $ac_word... " >&6; } 4853if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then : 4854 $as_echo_n "(cached) " >&6 4855else 4856 if test -n "$ac_ct_CC_FOR_BUILD"; then 4857 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test. 4858else 4859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4860for as_dir in $PATH 4861do 4862 IFS=$as_save_IFS 4863 test -z "$as_dir" && as_dir=. 4864 for ac_exec_ext in '' $ac_executable_extensions; do 4865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4866 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc" 4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4868 break 2 4869 fi 4870done 4871 done 4872IFS=$as_save_IFS 4873 4874fi 4875fi 4876ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD 4877if test -n "$ac_ct_CC_FOR_BUILD"; then 4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5 4879$as_echo "$ac_ct_CC_FOR_BUILD" >&6; } 4880else 4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4882$as_echo "no" >&6; } 4883fi 4884 4885 if test "x$ac_ct_CC_FOR_BUILD" = x; then 4886 CC_FOR_BUILD="" 4887 else 4888 case $cross_compiling:$ac_tool_warned in 4889yes:) 4890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5 4891$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;} 4892ac_tool_warned=yes ;; 4893esac 4894 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD 4895 fi 4896else 4897 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD" 4898fi 4899 4900if test -z "$CC_FOR_BUILD"; then 4901 if test -n "$ac_tool_prefix"; then 4902 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4903set dummy ${ac_tool_prefix}cc; ac_word=$2 4904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4905$as_echo_n "checking for $ac_word... " >&6; } 4906if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : 4907 $as_echo_n "(cached) " >&6 4908else 4909 if test -n "$CC_FOR_BUILD"; then 4910 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 4911else 4912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4913for as_dir in $PATH 4914do 4915 IFS=$as_save_IFS 4916 test -z "$as_dir" && as_dir=. 4917 for ac_exec_ext in '' $ac_executable_extensions; do 4918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4919 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc" 4920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4921 break 2 4922 fi 4923done 4924 done 4925IFS=$as_save_IFS 4926 4927fi 4928fi 4929CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 4930if test -n "$CC_FOR_BUILD"; then 4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 4932$as_echo "$CC_FOR_BUILD" >&6; } 4933else 4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4935$as_echo "no" >&6; } 4936fi 4937 4938 4939 fi 4940fi 4941if test -z "$CC_FOR_BUILD"; then 4942 # Extract the first word of "cc", so it can be a program name with args. 4943set dummy cc; ac_word=$2 4944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4945$as_echo_n "checking for $ac_word... " >&6; } 4946if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : 4947 $as_echo_n "(cached) " >&6 4948else 4949 if test -n "$CC_FOR_BUILD"; then 4950 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 4951else 4952 ac_prog_rejected=no 4953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4954for as_dir in $PATH 4955do 4956 IFS=$as_save_IFS 4957 test -z "$as_dir" && as_dir=. 4958 for ac_exec_ext in '' $ac_executable_extensions; do 4959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4960 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4961 ac_prog_rejected=yes 4962 continue 4963 fi 4964 ac_cv_prog_CC_FOR_BUILD="cc" 4965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4966 break 2 4967 fi 4968done 4969 done 4970IFS=$as_save_IFS 4971 4972if test $ac_prog_rejected = yes; then 4973 # We found a bogon in the path, so make sure we never use it. 4974 set dummy $ac_cv_prog_CC_FOR_BUILD 4975 shift 4976 if test $# != 0; then 4977 # We chose a different compiler from the bogus one. 4978 # However, it has the same basename, so the bogon will be chosen 4979 # first if we set CC_FOR_BUILD to just the basename; use the full file name. 4980 shift 4981 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@" 4982 fi 4983fi 4984fi 4985fi 4986CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 4987if test -n "$CC_FOR_BUILD"; then 4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 4989$as_echo "$CC_FOR_BUILD" >&6; } 4990else 4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4992$as_echo "no" >&6; } 4993fi 4994 4995 4996fi 4997if test -z "$CC_FOR_BUILD"; then 4998 if test -n "$ac_tool_prefix"; then 4999 for ac_prog in cl.exe 5000 do 5001 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5002set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5004$as_echo_n "checking for $ac_word... " >&6; } 5005if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : 5006 $as_echo_n "(cached) " >&6 5007else 5008 if test -n "$CC_FOR_BUILD"; then 5009 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 5010else 5011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5012for as_dir in $PATH 5013do 5014 IFS=$as_save_IFS 5015 test -z "$as_dir" && as_dir=. 5016 for ac_exec_ext in '' $ac_executable_extensions; do 5017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5018 ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog" 5019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5020 break 2 5021 fi 5022done 5023 done 5024IFS=$as_save_IFS 5025 5026fi 5027fi 5028CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 5029if test -n "$CC_FOR_BUILD"; then 5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 5031$as_echo "$CC_FOR_BUILD" >&6; } 5032else 5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5034$as_echo "no" >&6; } 5035fi 5036 5037 5038 test -n "$CC_FOR_BUILD" && break 5039 done 5040fi 5041if test -z "$CC_FOR_BUILD"; then 5042 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD 5043 for ac_prog in cl.exe 5044do 5045 # Extract the first word of "$ac_prog", so it can be a program name with args. 5046set dummy $ac_prog; ac_word=$2 5047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5048$as_echo_n "checking for $ac_word... " >&6; } 5049if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then : 5050 $as_echo_n "(cached) " >&6 5051else 5052 if test -n "$ac_ct_CC_FOR_BUILD"; then 5053 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test. 5054else 5055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5056for as_dir in $PATH 5057do 5058 IFS=$as_save_IFS 5059 test -z "$as_dir" && as_dir=. 5060 for ac_exec_ext in '' $ac_executable_extensions; do 5061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5062 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog" 5063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5064 break 2 5065 fi 5066done 5067 done 5068IFS=$as_save_IFS 5069 5070fi 5071fi 5072ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD 5073if test -n "$ac_ct_CC_FOR_BUILD"; then 5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5 5075$as_echo "$ac_ct_CC_FOR_BUILD" >&6; } 5076else 5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5078$as_echo "no" >&6; } 5079fi 5080 5081 5082 test -n "$ac_ct_CC_FOR_BUILD" && break 5083done 5084 5085 if test "x$ac_ct_CC_FOR_BUILD" = x; then 5086 CC_FOR_BUILD="" 5087 else 5088 case $cross_compiling:$ac_tool_warned in 5089yes:) 5090{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5 5091$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;} 5092ac_tool_warned=yes ;; 5093esac 5094 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD 5095 fi 5096fi 5097 5098fi 5099 5100 5101test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5103as_fn_error $? "no acceptable C compiler found in \$PATH 5104See \`config.log' for more details" "$LINENO" 5; } 5105 5106# Provide some information about the compiler. 5107$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5108set X $ac_build_compile 5109ac_compiler=$2 5110for ac_option in --version -v -V -qversion; do 5111 { { ac_try="$ac_compiler $ac_option >&5" 5112case "(($ac_try" in 5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5114 *) ac_try_echo=$ac_try;; 5115esac 5116eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5117$as_echo "$ac_try_echo"; } >&5 5118 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5119 ac_status=$? 5120 if test -s conftest.err; then 5121 sed '10a\ 5122... rest of stderr output deleted ... 5123 10q' conftest.err >conftest.er1 5124 cat conftest.er1 >&5 5125 fi 5126 rm -f conftest.er1 conftest.err 5127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5128 test $ac_status = 0; } 5129done 5130 5131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5132$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5133if ${ac_cv_c_compiler_gnu+:} false; then : 5134 $as_echo_n "(cached) " >&6 5135else 5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5137/* end confdefs.h. */ 5138 5139int 5140main () 5141{ 5142#ifndef __GNUC__ 5143 choke me 5144#endif 5145 5146 ; 5147 return 0; 5148} 5149_ACEOF 5150if ac_fn_c_try_compile "$LINENO"; then : 5151 ac_compiler_gnu=yes 5152else 5153 ac_compiler_gnu=no 5154fi 5155rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext 5156ac_cv_c_compiler_gnu=$ac_compiler_gnu 5157 5158fi 5159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5160$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5161if test $ac_compiler_gnu = yes; then 5162 GCC=yes 5163else 5164 GCC= 5165fi 5166ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set} 5167ac_save_CFLAGS=$CFLAGS_FOR_BUILD 5168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5 5169$as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; } 5170if ${ac_cv_build_prog_cc_g+:} false; then : 5171 $as_echo_n "(cached) " >&6 5172else 5173 ac_save_c_werror_flag=$ac_c_werror_flag 5174 ac_c_werror_flag=yes 5175 ac_cv_build_prog_cc_g=no 5176 CFLAGS_FOR_BUILD="-g" 5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5178/* end confdefs.h. */ 5179 5180int 5181main () 5182{ 5183 5184 ; 5185 return 0; 5186} 5187_ACEOF 5188if ac_fn_c_try_compile "$LINENO"; then : 5189 ac_cv_build_prog_cc_g=yes 5190else 5191 CFLAGS_FOR_BUILD="" 5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5193/* end confdefs.h. */ 5194 5195int 5196main () 5197{ 5198 5199 ; 5200 return 0; 5201} 5202_ACEOF 5203if ac_fn_c_try_compile "$LINENO"; then : 5204 5205else 5206 ac_c_werror_flag=$ac_save_c_werror_flag 5207 CFLAGS_FOR_BUILD="-g" 5208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5209/* end confdefs.h. */ 5210 5211int 5212main () 5213{ 5214 5215 ; 5216 return 0; 5217} 5218_ACEOF 5219if ac_fn_c_try_compile "$LINENO"; then : 5220 ac_cv_build_prog_cc_g=yes 5221fi 5222rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext 5223fi 5224rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext 5225fi 5226rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext 5227 ac_c_werror_flag=$ac_save_c_werror_flag 5228fi 5229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5 5230$as_echo "$ac_cv_build_prog_cc_g" >&6; } 5231if test "$ac_test_CFLAGS" = set; then 5232 CFLAGS_FOR_BUILD=$ac_save_CFLAGS 5233elif test $ac_cv_build_prog_cc_g = yes; then 5234 if test "$GCC" = yes; then 5235 CFLAGS_FOR_BUILD="-g -O2" 5236 else 5237 CFLAGS_FOR_BUILD="-g" 5238 fi 5239else 5240 if test "$GCC" = yes; then 5241 CFLAGS_FOR_BUILD="-O2" 5242 else 5243 CFLAGS_FOR_BUILD= 5244 fi 5245fi 5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5 5247$as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; } 5248if ${ac_cv_prog_cc_c89+:} false; then : 5249 $as_echo_n "(cached) " >&6 5250else 5251 ac_cv_prog_cc_c89=no 5252ac_save_CC=$CC_FOR_BUILD 5253cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5254/* end confdefs.h. */ 5255#include <stdarg.h> 5256#include <stdio.h> 5257struct stat; 5258/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5259struct buf { int x; }; 5260FILE * (*rcsopen) (struct buf *, struct stat *, int); 5261static char *e (p, i) 5262 char **p; 5263 int i; 5264{ 5265 return p[i]; 5266} 5267static char *f (char * (*g) (char **, int), char **p, ...) 5268{ 5269 char *s; 5270 va_list v; 5271 va_start (v,p); 5272 s = g (p, va_arg (v,int)); 5273 va_end (v); 5274 return s; 5275} 5276 5277/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5278 function prototypes and stuff, but not '\xHH' hex character constants. 5279 These don't provoke an error unfortunately, instead are silently treated 5280 as 'x'. The following induces an error, until -std is added to get 5281 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5282 array size at least. It's necessary to write '\x00'==0 to get something 5283 that's true only with -std. */ 5284int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5285 5286/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5287 inside strings and character constants. */ 5288#define FOO(x) 'x' 5289int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5290 5291int test (int i, double x); 5292struct s1 {int (*f) (int a);}; 5293struct s2 {int (*f) (double a);}; 5294int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5295int argc; 5296char **argv; 5297int 5298main () 5299{ 5300return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5301 ; 5302 return 0; 5303} 5304_ACEOF 5305for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5306 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5307do 5308 CC_FOR_BUILD="$ac_save_CC $ac_arg" 5309 if ac_fn_c_try_compile "$LINENO"; then : 5310 ac_cv_prog_cc_c89=$ac_arg 5311fi 5312rm -f core conftest.err conftest.$ac_build_objext 5313 test "x$ac_cv_prog_cc_c89" != "xno" && break 5314done 5315rm -f conftest.$ac_ext 5316CC_FOR_BUILD=$ac_save_CC 5317 5318fi 5319# AC_CACHE_VAL 5320case "x$ac_cv_prog_cc_c89" in 5321 x) 5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5323$as_echo "none needed" >&6; } ;; 5324 xno) 5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5326$as_echo "unsupported" >&6; } ;; 5327 *) 5328 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89" 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5330$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5331esac 5332if test "x$ac_cv_prog_cc_c89" != xno; then : 5333 5334fi 5335 5336ac_ext=c 5337ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 5338ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 5339ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 5340ac_compiler_gnu=$ac_cv_c_compiler_gnu 5341 5342ac_ext=c 5343ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 5344ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 5345ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 5346ac_compiler_gnu=$ac_cv_c_compiler_gnu 5347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5 5348$as_echo_n "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; } 5349if ${am_cv_prog_cc_c_o+:} false; then : 5350 $as_echo_n "(cached) " >&6 5351else 5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5353/* end confdefs.h. */ 5354 5355int 5356main () 5357{ 5358 5359 ; 5360 return 0; 5361} 5362_ACEOF 5363 # Make sure it works both with $CC and with simple cc. 5364 # Following AC_PROG_CC_C_O, we do the test twice because some 5365 # compilers refuse to overwrite an existing .o file with -o, 5366 # though they will create one. 5367 am_cv_prog_cc_c_o=yes 5368 for am_i in 1 2; do 5369 if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5 5370 ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5 5371 ac_status=$? 5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5373 (exit $ac_status); } \ 5374 && test -f conftest2.$ac_build_objext; then 5375 : OK 5376 else 5377 am_cv_prog_cc_c_o=no 5378 break 5379 fi 5380 done 5381 rm -f core conftest* 5382 unset am_i 5383fi 5384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5385$as_echo "$am_cv_prog_cc_c_o" >&6; } 5386if test "$am_cv_prog_cc_c_o" != yes; then 5387 # Losing compiler, so override with the script. 5388 # FIXME: It is wrong to rewrite CC. 5389 # But if we don't then we get into trouble of one sort or another. 5390 # A longer-term fix would be to have automake use am__CC in this case, 5391 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5392 CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD" 5393fi 5394ac_ext=c 5395ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 5396ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 5397ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 5398ac_compiler_gnu=$ac_cv_c_compiler_gnu 5399 5400 5401depcc="$CC_FOR_BUILD" am_compiler_list= 5402 5403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5404$as_echo_n "checking dependency style of $depcc... " >&6; } 5405if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5406 $as_echo_n "(cached) " >&6 5407else 5408 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5409 # We make a subdir and do the tests there. Otherwise we can end up 5410 # making bogus files that we don't know about and never remove. For 5411 # instance it was reported that on HP-UX the gcc test will end up 5412 # making a dummy file named 'D' -- because '-MD' means "put the output 5413 # in D". 5414 rm -rf conftest.dir 5415 mkdir conftest.dir 5416 # Copy depcomp to subdir because otherwise we won't find it if we're 5417 # using a relative directory. 5418 cp "$am_depcomp" conftest.dir 5419 cd conftest.dir 5420 # We will build objects and dependencies in a subdirectory because 5421 # it helps to detect inapplicable dependency modes. For instance 5422 # both Tru64's cc and ICC support -MD to output dependencies as a 5423 # side effect of compilation, but ICC will put the dependencies in 5424 # the current directory while Tru64 will put them in the object 5425 # directory. 5426 mkdir sub 5427 5428 am_cv_CC_dependencies_compiler_type=none 5429 if test "$am_compiler_list" = ""; then 5430 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5431 fi 5432 am__universal=false 5433 case " $depcc " in #( 5434 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5435 esac 5436 5437 for depmode in $am_compiler_list; do 5438 # Setup a source with many dependencies, because some compilers 5439 # like to wrap large dependency lists on column 80 (with \), and 5440 # we should not choose a depcomp mode which is confused by this. 5441 # 5442 # We need to recreate these files for each test, as the compiler may 5443 # overwrite some of them when testing with obscure command lines. 5444 # This happens at least with the AIX C compiler. 5445 : > sub/conftest.c 5446 for i in 1 2 3 4 5 6; do 5447 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5448 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5449 # Solaris 10 /bin/sh. 5450 echo '/* dummy */' > sub/conftst$i.h 5451 done 5452 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5453 5454 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5455 # mode. It turns out that the SunPro C++ compiler does not properly 5456 # handle '-M -o', and we need to detect this. Also, some Intel 5457 # versions had trouble with output in subdirs. 5458 am__obj=sub/conftest.${OBJEXT-o} 5459 am__minus_obj="-o $am__obj" 5460 case $depmode in 5461 gcc) 5462 # This depmode causes a compiler race in universal mode. 5463 test "$am__universal" = false || continue 5464 ;; 5465 nosideeffect) 5466 # After this tag, mechanisms are not by side-effect, so they'll 5467 # only be used when explicitly requested. 5468 if test "x$enable_dependency_tracking" = xyes; then 5469 continue 5470 else 5471 break 5472 fi 5473 ;; 5474 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5475 # This compiler won't grok '-c -o', but also, the minuso test has 5476 # not run yet. These depmodes are late enough in the game, and 5477 # so weak that their functioning should not be impacted. 5478 am__obj=conftest.${OBJEXT-o} 5479 am__minus_obj= 5480 ;; 5481 none) break ;; 5482 esac 5483 if depmode=$depmode \ 5484 source=sub/conftest.c object=$am__obj \ 5485 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5486 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5487 >/dev/null 2>conftest.err && 5488 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5489 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5490 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5491 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5492 # icc doesn't choke on unknown options, it will just issue warnings 5493 # or remarks (even with -Werror). So we grep stderr for any message 5494 # that says an option was ignored or not supported. 5495 # When given -MP, icc 7.0 and 7.1 complain thusly: 5496 # icc: Command line warning: ignoring option '-M'; no argument required 5497 # The diagnosis changed in icc 8.0: 5498 # icc: Command line remark: option '-MP' not supported 5499 if (grep 'ignoring option' conftest.err || 5500 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5501 am_cv_CC_dependencies_compiler_type=$depmode 5502 break 5503 fi 5504 fi 5505 done 5506 5507 cd .. 5508 rm -rf conftest.dir 5509else 5510 am_cv_CC_dependencies_compiler_type=none 5511fi 5512 5513fi 5514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5515$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5516CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5517 5518 if 5519 test "x$enable_dependency_tracking" != xno \ 5520 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5521 am__fastdepCC_TRUE= 5522 am__fastdepCC_FALSE='#' 5523else 5524 am__fastdepCC_TRUE='#' 5525 am__fastdepCC_FALSE= 5526fi 5527 5528 5529ac_ext=c 5530ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 5531ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 5532ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 5533ac_compiler_gnu=$ac_cv_c_compiler_gnu 5534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5535$as_echo_n "checking how to run the C preprocessor... " >&6; } 5536# On Suns, sometimes $CPP names a directory. 5537if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then 5538 CPP_FOR_BUILD= 5539fi 5540if test -z "$CPP_FOR_BUILD"; then 5541 if ${ac_cv_build_prog_CPP+:} false; then : 5542 $as_echo_n "(cached) " >&6 5543else 5544 # Double quotes because CPP needs to be expanded 5545 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp" 5546 do 5547 ac_preproc_ok=false 5548for ac_c_preproc_warn_flag in '' yes 5549do 5550 # Use a header file that comes with gcc, so configuring glibc 5551 # with a fresh cross-compiler works. 5552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5553 # <limits.h> exists even on freestanding compilers. 5554 # On the NeXT, cc -E runs the code through the compiler's parser, 5555 # not just through cpp. "Syntax error" is here to catch this case. 5556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5557/* end confdefs.h. */ 5558#ifdef __STDC__ 5559# include <limits.h> 5560#else 5561# include <assert.h> 5562#endif 5563 Syntax error 5564_ACEOF 5565if ac_fn_c_try_cpp "$LINENO"; then : 5566 5567else 5568 # Broken: fails on valid input. 5569continue 5570fi 5571rm -f conftest.err conftest.i conftest.$ac_ext 5572 5573 # OK, works on sane cases. Now check whether nonexistent headers 5574 # can be detected and how. 5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5576/* end confdefs.h. */ 5577#include <ac_nonexistent.h> 5578_ACEOF 5579if ac_fn_c_try_cpp "$LINENO"; then : 5580 # Broken: success on invalid input. 5581continue 5582else 5583 # Passes both tests. 5584ac_preproc_ok=: 5585break 5586fi 5587rm -f conftest.err conftest.i conftest.$ac_ext 5588 5589done 5590# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5591rm -f conftest.i conftest.err conftest.$ac_ext 5592if $ac_preproc_ok; then : 5593 break 5594fi 5595 5596 done 5597 ac_cv_build_prog_CPP=$CPP_FOR_BUILD 5598 5599fi 5600 CPP_FOR_BUILD=$ac_cv_build_prog_CPP 5601else 5602 ac_cv_build_prog_CPP=$CPP_FOR_BUILD 5603fi 5604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5 5605$as_echo "$CPP_FOR_BUILD" >&6; } 5606ac_preproc_ok=false 5607for ac_c_preproc_warn_flag in '' yes 5608do 5609 # Use a header file that comes with gcc, so configuring glibc 5610 # with a fresh cross-compiler works. 5611 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5612 # <limits.h> exists even on freestanding compilers. 5613 # On the NeXT, cc -E runs the code through the compiler's parser, 5614 # not just through cpp. "Syntax error" is here to catch this case. 5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5616/* end confdefs.h. */ 5617#ifdef __STDC__ 5618# include <limits.h> 5619#else 5620# include <assert.h> 5621#endif 5622 Syntax error 5623_ACEOF 5624if ac_fn_c_try_cpp "$LINENO"; then : 5625 5626else 5627 # Broken: fails on valid input. 5628continue 5629fi 5630rm -f conftest.err conftest.i conftest.$ac_ext 5631 5632 # OK, works on sane cases. Now check whether nonexistent headers 5633 # can be detected and how. 5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5635/* end confdefs.h. */ 5636#include <ac_nonexistent.h> 5637_ACEOF 5638if ac_fn_c_try_cpp "$LINENO"; then : 5639 # Broken: success on invalid input. 5640continue 5641else 5642 # Passes both tests. 5643ac_preproc_ok=: 5644break 5645fi 5646rm -f conftest.err conftest.i conftest.$ac_ext 5647 5648done 5649# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5650rm -f conftest.i conftest.err conftest.$ac_ext 5651if $ac_preproc_ok; then : 5652 5653else 5654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5656as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check 5657See \`config.log' for more details" "$LINENO" 5; } 5658fi 5659 5660ac_ext=c 5661ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 5662ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 5663ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 5664ac_compiler_gnu=$ac_cv_c_compiler_gnu 5665 5666 5667 5668ac_tool_prefix=$save_ac_tool_prefix 5669cross_compiling=$save_cross_compiling 5670 5671 5672BUILD_EXEEXT=$ac_build_exeext 5673BUILD_OBJEXT=$ac_build_objext 5674 5675ac_ext=c 5676ac_cpp='$CPP $CPPFLAGS' 5677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5679ac_compiler_gnu=$ac_cv_c_compiler_gnu 5680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5681$as_echo_n "checking how to run the C preprocessor... " >&6; } 5682# On Suns, sometimes $CPP names a directory. 5683if test -n "$CPP" && test -d "$CPP"; then 5684 CPP= 5685fi 5686if test -z "$CPP"; then 5687 if ${ac_cv_prog_CPP+:} false; then : 5688 $as_echo_n "(cached) " >&6 5689else 5690 # Double quotes because CPP needs to be expanded 5691 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5692 do 5693 ac_preproc_ok=false 5694for ac_c_preproc_warn_flag in '' yes 5695do 5696 # Use a header file that comes with gcc, so configuring glibc 5697 # with a fresh cross-compiler works. 5698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5699 # <limits.h> exists even on freestanding compilers. 5700 # On the NeXT, cc -E runs the code through the compiler's parser, 5701 # not just through cpp. "Syntax error" is here to catch this case. 5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5703/* end confdefs.h. */ 5704#ifdef __STDC__ 5705# include <limits.h> 5706#else 5707# include <assert.h> 5708#endif 5709 Syntax error 5710_ACEOF 5711if ac_fn_c_try_cpp "$LINENO"; then : 5712 5713else 5714 # Broken: fails on valid input. 5715continue 5716fi 5717rm -f conftest.err conftest.i conftest.$ac_ext 5718 5719 # OK, works on sane cases. Now check whether nonexistent headers 5720 # can be detected and how. 5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5722/* end confdefs.h. */ 5723#include <ac_nonexistent.h> 5724_ACEOF 5725if ac_fn_c_try_cpp "$LINENO"; then : 5726 # Broken: success on invalid input. 5727continue 5728else 5729 # Passes both tests. 5730ac_preproc_ok=: 5731break 5732fi 5733rm -f conftest.err conftest.i conftest.$ac_ext 5734 5735done 5736# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5737rm -f conftest.i conftest.err conftest.$ac_ext 5738if $ac_preproc_ok; then : 5739 break 5740fi 5741 5742 done 5743 ac_cv_prog_CPP=$CPP 5744 5745fi 5746 CPP=$ac_cv_prog_CPP 5747else 5748 ac_cv_prog_CPP=$CPP 5749fi 5750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5751$as_echo "$CPP" >&6; } 5752ac_preproc_ok=false 5753for ac_c_preproc_warn_flag in '' yes 5754do 5755 # Use a header file that comes with gcc, so configuring glibc 5756 # with a fresh cross-compiler works. 5757 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5758 # <limits.h> exists even on freestanding compilers. 5759 # On the NeXT, cc -E runs the code through the compiler's parser, 5760 # not just through cpp. "Syntax error" is here to catch this case. 5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5762/* end confdefs.h. */ 5763#ifdef __STDC__ 5764# include <limits.h> 5765#else 5766# include <assert.h> 5767#endif 5768 Syntax error 5769_ACEOF 5770if ac_fn_c_try_cpp "$LINENO"; then : 5771 5772else 5773 # Broken: fails on valid input. 5774continue 5775fi 5776rm -f conftest.err conftest.i conftest.$ac_ext 5777 5778 # OK, works on sane cases. Now check whether nonexistent headers 5779 # can be detected and how. 5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5781/* end confdefs.h. */ 5782#include <ac_nonexistent.h> 5783_ACEOF 5784if ac_fn_c_try_cpp "$LINENO"; then : 5785 # Broken: success on invalid input. 5786continue 5787else 5788 # Passes both tests. 5789ac_preproc_ok=: 5790break 5791fi 5792rm -f conftest.err conftest.i conftest.$ac_ext 5793 5794done 5795# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5796rm -f conftest.i conftest.err conftest.$ac_ext 5797if $ac_preproc_ok; then : 5798 5799else 5800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5802as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5803See \`config.log' for more details" "$LINENO" 5; } 5804fi 5805 5806ac_ext=c 5807ac_cpp='$CPP $CPPFLAGS' 5808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5810ac_compiler_gnu=$ac_cv_c_compiler_gnu 5811 5812for ac_prog in gawk mawk nawk awk 5813do 5814 # Extract the first word of "$ac_prog", so it can be a program name with args. 5815set dummy $ac_prog; ac_word=$2 5816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5817$as_echo_n "checking for $ac_word... " >&6; } 5818if ${ac_cv_prog_AWK+:} false; then : 5819 $as_echo_n "(cached) " >&6 5820else 5821 if test -n "$AWK"; then 5822 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5823else 5824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5825for as_dir in $PATH 5826do 5827 IFS=$as_save_IFS 5828 test -z "$as_dir" && as_dir=. 5829 for ac_exec_ext in '' $ac_executable_extensions; do 5830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5831 ac_cv_prog_AWK="$ac_prog" 5832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5833 break 2 5834 fi 5835done 5836 done 5837IFS=$as_save_IFS 5838 5839fi 5840fi 5841AWK=$ac_cv_prog_AWK 5842if test -n "$AWK"; then 5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5844$as_echo "$AWK" >&6; } 5845else 5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5847$as_echo "no" >&6; } 5848fi 5849 5850 5851 test -n "$AWK" && break 5852done 5853 5854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5855$as_echo_n "checking whether ln -s works... " >&6; } 5856LN_S=$as_ln_s 5857if test "$LN_S" = "ln -s"; then 5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5859$as_echo "yes" >&6; } 5860else 5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5862$as_echo "no, using $LN_S" >&6; } 5863fi 5864 5865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 5866$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 5867set x ${MAKE-make} 5868ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 5869if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 5870 $as_echo_n "(cached) " >&6 5871else 5872 cat >conftest.make <<\_ACEOF 5873SHELL = /bin/sh 5874all: 5875 @echo '@@@%%%=$(MAKE)=@@@%%%' 5876_ACEOF 5877# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 5878case `${MAKE-make} -f conftest.make 2>/dev/null` in 5879 *@@@%%%=?*=@@@%%%*) 5880 eval ac_cv_prog_make_${ac_make}_set=yes;; 5881 *) 5882 eval ac_cv_prog_make_${ac_make}_set=no;; 5883esac 5884rm -f conftest.make 5885fi 5886if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5888$as_echo "yes" >&6; } 5889 SET_MAKE= 5890else 5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5892$as_echo "no" >&6; } 5893 SET_MAKE="MAKE=${MAKE-make}" 5894fi 5895 5896 5897 5898 5899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5900$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5901if ${ac_cv_path_GREP+:} false; then : 5902 $as_echo_n "(cached) " >&6 5903else 5904 if test -z "$GREP"; then 5905 ac_path_GREP_found=false 5906 # Loop through the user's path and test for each of PROGNAME-LIST 5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5908for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5909do 5910 IFS=$as_save_IFS 5911 test -z "$as_dir" && as_dir=. 5912 for ac_prog in grep ggrep; do 5913 for ac_exec_ext in '' $ac_executable_extensions; do 5914 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5915 as_fn_executable_p "$ac_path_GREP" || continue 5916# Check for GNU ac_path_GREP and select it if it is found. 5917 # Check for GNU $ac_path_GREP 5918case `"$ac_path_GREP" --version 2>&1` in 5919*GNU*) 5920 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5921*) 5922 ac_count=0 5923 $as_echo_n 0123456789 >"conftest.in" 5924 while : 5925 do 5926 cat "conftest.in" "conftest.in" >"conftest.tmp" 5927 mv "conftest.tmp" "conftest.in" 5928 cp "conftest.in" "conftest.nl" 5929 $as_echo 'GREP' >> "conftest.nl" 5930 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5931 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5932 as_fn_arith $ac_count + 1 && ac_count=$as_val 5933 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5934 # Best one so far, save it but keep looking for a better one 5935 ac_cv_path_GREP="$ac_path_GREP" 5936 ac_path_GREP_max=$ac_count 5937 fi 5938 # 10*(2^10) chars as input seems more than enough 5939 test $ac_count -gt 10 && break 5940 done 5941 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5942esac 5943 5944 $ac_path_GREP_found && break 3 5945 done 5946 done 5947 done 5948IFS=$as_save_IFS 5949 if test -z "$ac_cv_path_GREP"; then 5950 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5951 fi 5952else 5953 ac_cv_path_GREP=$GREP 5954fi 5955 5956fi 5957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5958$as_echo "$ac_cv_path_GREP" >&6; } 5959 GREP="$ac_cv_path_GREP" 5960 5961 5962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5963$as_echo_n "checking for egrep... " >&6; } 5964if ${ac_cv_path_EGREP+:} false; then : 5965 $as_echo_n "(cached) " >&6 5966else 5967 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5968 then ac_cv_path_EGREP="$GREP -E" 5969 else 5970 if test -z "$EGREP"; then 5971 ac_path_EGREP_found=false 5972 # Loop through the user's path and test for each of PROGNAME-LIST 5973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5974for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5975do 5976 IFS=$as_save_IFS 5977 test -z "$as_dir" && as_dir=. 5978 for ac_prog in egrep; do 5979 for ac_exec_ext in '' $ac_executable_extensions; do 5980 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5981 as_fn_executable_p "$ac_path_EGREP" || continue 5982# Check for GNU ac_path_EGREP and select it if it is found. 5983 # Check for GNU $ac_path_EGREP 5984case `"$ac_path_EGREP" --version 2>&1` in 5985*GNU*) 5986 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5987*) 5988 ac_count=0 5989 $as_echo_n 0123456789 >"conftest.in" 5990 while : 5991 do 5992 cat "conftest.in" "conftest.in" >"conftest.tmp" 5993 mv "conftest.tmp" "conftest.in" 5994 cp "conftest.in" "conftest.nl" 5995 $as_echo 'EGREP' >> "conftest.nl" 5996 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5997 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5998 as_fn_arith $ac_count + 1 && ac_count=$as_val 5999 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6000 # Best one so far, save it but keep looking for a better one 6001 ac_cv_path_EGREP="$ac_path_EGREP" 6002 ac_path_EGREP_max=$ac_count 6003 fi 6004 # 10*(2^10) chars as input seems more than enough 6005 test $ac_count -gt 10 && break 6006 done 6007 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6008esac 6009 6010 $ac_path_EGREP_found && break 3 6011 done 6012 done 6013 done 6014IFS=$as_save_IFS 6015 if test -z "$ac_cv_path_EGREP"; then 6016 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6017 fi 6018else 6019 ac_cv_path_EGREP=$EGREP 6020fi 6021 6022 fi 6023fi 6024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6025$as_echo "$ac_cv_path_EGREP" >&6; } 6026 EGREP="$ac_cv_path_EGREP" 6027 6028 6029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6030$as_echo_n "checking for ANSI C header files... " >&6; } 6031if ${ac_cv_header_stdc+:} false; then : 6032 $as_echo_n "(cached) " >&6 6033else 6034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6035/* end confdefs.h. */ 6036#include <stdlib.h> 6037#include <stdarg.h> 6038#include <string.h> 6039#include <float.h> 6040 6041int 6042main () 6043{ 6044 6045 ; 6046 return 0; 6047} 6048_ACEOF 6049if ac_fn_c_try_compile "$LINENO"; then : 6050 ac_cv_header_stdc=yes 6051else 6052 ac_cv_header_stdc=no 6053fi 6054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6055 6056if test $ac_cv_header_stdc = yes; then 6057 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6059/* end confdefs.h. */ 6060#include <string.h> 6061 6062_ACEOF 6063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6064 $EGREP "memchr" >/dev/null 2>&1; then : 6065 6066else 6067 ac_cv_header_stdc=no 6068fi 6069rm -f conftest* 6070 6071fi 6072 6073if test $ac_cv_header_stdc = yes; then 6074 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6076/* end confdefs.h. */ 6077#include <stdlib.h> 6078 6079_ACEOF 6080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6081 $EGREP "free" >/dev/null 2>&1; then : 6082 6083else 6084 ac_cv_header_stdc=no 6085fi 6086rm -f conftest* 6087 6088fi 6089 6090if test $ac_cv_header_stdc = yes; then 6091 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6092 if test "$cross_compiling" = yes; then : 6093 : 6094else 6095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6096/* end confdefs.h. */ 6097#include <ctype.h> 6098#include <stdlib.h> 6099#if ((' ' & 0x0FF) == 0x020) 6100# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6101# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6102#else 6103# define ISLOWER(c) \ 6104 (('a' <= (c) && (c) <= 'i') \ 6105 || ('j' <= (c) && (c) <= 'r') \ 6106 || ('s' <= (c) && (c) <= 'z')) 6107# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6108#endif 6109 6110#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6111int 6112main () 6113{ 6114 int i; 6115 for (i = 0; i < 256; i++) 6116 if (XOR (islower (i), ISLOWER (i)) 6117 || toupper (i) != TOUPPER (i)) 6118 return 2; 6119 return 0; 6120} 6121_ACEOF 6122if ac_fn_c_try_run "$LINENO"; then : 6123 6124else 6125 ac_cv_header_stdc=no 6126fi 6127rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6128 conftest.$ac_objext conftest.beam conftest.$ac_ext 6129fi 6130 6131fi 6132fi 6133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6134$as_echo "$ac_cv_header_stdc" >&6; } 6135if test $ac_cv_header_stdc = yes; then 6136 6137$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6138 6139fi 6140 6141# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6142for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6143 inttypes.h stdint.h unistd.h 6144do : 6145 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6146ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6147" 6148if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6149 cat >>confdefs.h <<_ACEOF 6150#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6151_ACEOF 6152 6153fi 6154 6155done 6156 6157 6158 6159 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 6160if test "x$ac_cv_header_minix_config_h" = xyes; then : 6161 MINIX=yes 6162else 6163 MINIX= 6164fi 6165 6166 6167 if test "$MINIX" = yes; then 6168 6169$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 6170 6171 6172$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 6173 6174 6175$as_echo "#define _MINIX 1" >>confdefs.h 6176 6177 fi 6178 6179 6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 6181$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 6182if ${ac_cv_safe_to_define___extensions__+:} false; then : 6183 $as_echo_n "(cached) " >&6 6184else 6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6186/* end confdefs.h. */ 6187 6188# define __EXTENSIONS__ 1 6189 $ac_includes_default 6190int 6191main () 6192{ 6193 6194 ; 6195 return 0; 6196} 6197_ACEOF 6198if ac_fn_c_try_compile "$LINENO"; then : 6199 ac_cv_safe_to_define___extensions__=yes 6200else 6201 ac_cv_safe_to_define___extensions__=no 6202fi 6203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6204fi 6205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 6206$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 6207 test $ac_cv_safe_to_define___extensions__ = yes && 6208 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 6209 6210 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 6211 6212 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 6213 6214 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 6215 6216 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 6217 6218 6219 6220 6221 # CMU GUESS RUNPATH SWITCH 6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for runpath switch" >&5 6223$as_echo_n "checking for runpath switch... " >&6; } 6224if ${andrew_cv_runpath_switch+:} false; then : 6225 $as_echo_n "(cached) " >&6 6226else 6227 6228 # first, try -R 6229 SAVE_LDFLAGS="${LDFLAGS}" 6230 LDFLAGS="-R /usr/lib" 6231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6232/* end confdefs.h. */ 6233 6234int 6235main () 6236{ 6237 6238 ; 6239 return 0; 6240} 6241_ACEOF 6242if ac_fn_c_try_link "$LINENO"; then : 6243 andrew_cv_runpath_switch="-R" 6244else 6245 6246 LDFLAGS="-Wl,-rpath,/usr/lib" 6247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6248/* end confdefs.h. */ 6249 6250int 6251main () 6252{ 6253 6254 ; 6255 return 0; 6256} 6257_ACEOF 6258if ac_fn_c_try_link "$LINENO"; then : 6259 andrew_cv_runpath_switch="-Wl,-rpath," 6260else 6261 andrew_cv_runpath_switch="none" 6262fi 6263rm -f core conftest.err conftest.$ac_objext \ 6264 conftest$ac_exeext conftest.$ac_ext 6265 6266fi 6267rm -f core conftest.err conftest.$ac_objext \ 6268 conftest$ac_exeext conftest.$ac_ext 6269 LDFLAGS="${SAVE_LDFLAGS}" 6270 6271fi 6272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $andrew_cv_runpath_switch" >&5 6273$as_echo "$andrew_cv_runpath_switch" >&6; } 6274 6275 6276# Check whether --with-staticsasl was given. 6277if test "${with_staticsasl+set}" = set; then : 6278 withval=$with_staticsasl; 6279fi 6280 6281if test "$with_staticsasl" = yes; then 6282 enable_shared=yes 6283 enable_static=yes 6284fi 6285 6286save_target=$target 6287if test -z "$target"; then 6288 target="NONE" 6289fi 6290 6291# new libtool 6292# Check whether --enable-static was given. 6293if test "${enable_static+set}" = set; then : 6294 enableval=$enable_static; p=${PACKAGE-default} 6295 case $enableval in 6296 yes) enable_static=yes ;; 6297 no) enable_static=no ;; 6298 *) 6299 enable_static=no 6300 # Look at the argument we got. We use all the common list separators. 6301 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 6302 for pkg in $enableval; do 6303 IFS=$lt_save_ifs 6304 if test "X$pkg" = "X$p"; then 6305 enable_static=yes 6306 fi 6307 done 6308 IFS=$lt_save_ifs 6309 ;; 6310 esac 6311else 6312 enable_static=no 6313fi 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323case `pwd` in 6324 *\ * | *\ *) 6325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6326$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6327esac 6328 6329 6330 6331macro_version='2.4.6' 6332macro_revision='2.4.6' 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346ltmain=$ac_aux_dir/ltmain.sh 6347 6348# Backslashify metacharacters that are still active within 6349# double-quoted strings. 6350sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6351 6352# Same as above, but do not quote variable references. 6353double_quote_subst='s/\(["`\\]\)/\\\1/g' 6354 6355# Sed substitution to delay expansion of an escaped shell variable in a 6356# double_quote_subst'ed string. 6357delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6358 6359# Sed substitution to delay expansion of an escaped single quote. 6360delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6361 6362# Sed substitution to avoid accidental globbing in evaled expressions 6363no_glob_subst='s/\*/\\\*/g' 6364 6365ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6366ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6367ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6368 6369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6370$as_echo_n "checking how to print strings... " >&6; } 6371# Test print first, because it will be a builtin if present. 6372if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6373 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6374 ECHO='print -r --' 6375elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6376 ECHO='printf %s\n' 6377else 6378 # Use this function as a fallback that always works. 6379 func_fallback_echo () 6380 { 6381 eval 'cat <<_LTECHO_EOF 6382$1 6383_LTECHO_EOF' 6384 } 6385 ECHO='func_fallback_echo' 6386fi 6387 6388# func_echo_all arg... 6389# Invoke $ECHO with all args, space-separated. 6390func_echo_all () 6391{ 6392 $ECHO "" 6393} 6394 6395case $ECHO in 6396 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6397$as_echo "printf" >&6; } ;; 6398 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6399$as_echo "print -r" >&6; } ;; 6400 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6401$as_echo "cat" >&6; } ;; 6402esac 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6418$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6419if ${ac_cv_path_SED+:} false; then : 6420 $as_echo_n "(cached) " >&6 6421else 6422 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6423 for ac_i in 1 2 3 4 5 6 7; do 6424 ac_script="$ac_script$as_nl$ac_script" 6425 done 6426 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6427 { ac_script=; unset ac_script;} 6428 if test -z "$SED"; then 6429 ac_path_SED_found=false 6430 # Loop through the user's path and test for each of PROGNAME-LIST 6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6432for as_dir in $PATH 6433do 6434 IFS=$as_save_IFS 6435 test -z "$as_dir" && as_dir=. 6436 for ac_prog in sed gsed; do 6437 for ac_exec_ext in '' $ac_executable_extensions; do 6438 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6439 as_fn_executable_p "$ac_path_SED" || continue 6440# Check for GNU ac_path_SED and select it if it is found. 6441 # Check for GNU $ac_path_SED 6442case `"$ac_path_SED" --version 2>&1` in 6443*GNU*) 6444 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6445*) 6446 ac_count=0 6447 $as_echo_n 0123456789 >"conftest.in" 6448 while : 6449 do 6450 cat "conftest.in" "conftest.in" >"conftest.tmp" 6451 mv "conftest.tmp" "conftest.in" 6452 cp "conftest.in" "conftest.nl" 6453 $as_echo '' >> "conftest.nl" 6454 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6455 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6456 as_fn_arith $ac_count + 1 && ac_count=$as_val 6457 if test $ac_count -gt ${ac_path_SED_max-0}; then 6458 # Best one so far, save it but keep looking for a better one 6459 ac_cv_path_SED="$ac_path_SED" 6460 ac_path_SED_max=$ac_count 6461 fi 6462 # 10*(2^10) chars as input seems more than enough 6463 test $ac_count -gt 10 && break 6464 done 6465 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6466esac 6467 6468 $ac_path_SED_found && break 3 6469 done 6470 done 6471 done 6472IFS=$as_save_IFS 6473 if test -z "$ac_cv_path_SED"; then 6474 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6475 fi 6476else 6477 ac_cv_path_SED=$SED 6478fi 6479 6480fi 6481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6482$as_echo "$ac_cv_path_SED" >&6; } 6483 SED="$ac_cv_path_SED" 6484 rm -f conftest.sed 6485 6486test -z "$SED" && SED=sed 6487Xsed="$SED -e 1s/^X//" 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6500$as_echo_n "checking for fgrep... " >&6; } 6501if ${ac_cv_path_FGREP+:} false; then : 6502 $as_echo_n "(cached) " >&6 6503else 6504 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6505 then ac_cv_path_FGREP="$GREP -F" 6506 else 6507 if test -z "$FGREP"; then 6508 ac_path_FGREP_found=false 6509 # Loop through the user's path and test for each of PROGNAME-LIST 6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6511for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6512do 6513 IFS=$as_save_IFS 6514 test -z "$as_dir" && as_dir=. 6515 for ac_prog in fgrep; do 6516 for ac_exec_ext in '' $ac_executable_extensions; do 6517 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6518 as_fn_executable_p "$ac_path_FGREP" || continue 6519# Check for GNU ac_path_FGREP and select it if it is found. 6520 # Check for GNU $ac_path_FGREP 6521case `"$ac_path_FGREP" --version 2>&1` in 6522*GNU*) 6523 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6524*) 6525 ac_count=0 6526 $as_echo_n 0123456789 >"conftest.in" 6527 while : 6528 do 6529 cat "conftest.in" "conftest.in" >"conftest.tmp" 6530 mv "conftest.tmp" "conftest.in" 6531 cp "conftest.in" "conftest.nl" 6532 $as_echo 'FGREP' >> "conftest.nl" 6533 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6534 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6535 as_fn_arith $ac_count + 1 && ac_count=$as_val 6536 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6537 # Best one so far, save it but keep looking for a better one 6538 ac_cv_path_FGREP="$ac_path_FGREP" 6539 ac_path_FGREP_max=$ac_count 6540 fi 6541 # 10*(2^10) chars as input seems more than enough 6542 test $ac_count -gt 10 && break 6543 done 6544 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6545esac 6546 6547 $ac_path_FGREP_found && break 3 6548 done 6549 done 6550 done 6551IFS=$as_save_IFS 6552 if test -z "$ac_cv_path_FGREP"; then 6553 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6554 fi 6555else 6556 ac_cv_path_FGREP=$FGREP 6557fi 6558 6559 fi 6560fi 6561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6562$as_echo "$ac_cv_path_FGREP" >&6; } 6563 FGREP="$ac_cv_path_FGREP" 6564 6565 6566test -z "$GREP" && GREP=grep 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586# Check whether --with-gnu-ld was given. 6587if test "${with_gnu_ld+set}" = set; then : 6588 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 6589else 6590 with_gnu_ld=no 6591fi 6592 6593ac_prog=ld 6594if test yes = "$GCC"; then 6595 # Check if gcc -print-prog-name=ld gives a path. 6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6597$as_echo_n "checking for ld used by $CC... " >&6; } 6598 case $host in 6599 *-*-mingw*) 6600 # gcc leaves a trailing carriage return, which upsets mingw 6601 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6602 *) 6603 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6604 esac 6605 case $ac_prog in 6606 # Accept absolute paths. 6607 [\\/]* | ?:[\\/]*) 6608 re_direlt='/[^/][^/]*/\.\./' 6609 # Canonicalize the pathname of ld 6610 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6611 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6612 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6613 done 6614 test -z "$LD" && LD=$ac_prog 6615 ;; 6616 "") 6617 # If it fails, then pretend we aren't using GCC. 6618 ac_prog=ld 6619 ;; 6620 *) 6621 # If it is relative, then search for the first ld in PATH. 6622 with_gnu_ld=unknown 6623 ;; 6624 esac 6625elif test yes = "$with_gnu_ld"; then 6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6627$as_echo_n "checking for GNU ld... " >&6; } 6628else 6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6630$as_echo_n "checking for non-GNU ld... " >&6; } 6631fi 6632if ${lt_cv_path_LD+:} false; then : 6633 $as_echo_n "(cached) " >&6 6634else 6635 if test -z "$LD"; then 6636 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6637 for ac_dir in $PATH; do 6638 IFS=$lt_save_ifs 6639 test -z "$ac_dir" && ac_dir=. 6640 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6641 lt_cv_path_LD=$ac_dir/$ac_prog 6642 # Check to see if the program is GNU ld. I'd rather use --version, 6643 # but apparently some variants of GNU ld only accept -v. 6644 # Break only if it was the GNU/non-GNU ld that we prefer. 6645 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6646 *GNU* | *'with BFD'*) 6647 test no != "$with_gnu_ld" && break 6648 ;; 6649 *) 6650 test yes != "$with_gnu_ld" && break 6651 ;; 6652 esac 6653 fi 6654 done 6655 IFS=$lt_save_ifs 6656else 6657 lt_cv_path_LD=$LD # Let the user override the test with a path. 6658fi 6659fi 6660 6661LD=$lt_cv_path_LD 6662if test -n "$LD"; then 6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6664$as_echo "$LD" >&6; } 6665else 6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6667$as_echo "no" >&6; } 6668fi 6669test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6671$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6672if ${lt_cv_prog_gnu_ld+:} false; then : 6673 $as_echo_n "(cached) " >&6 6674else 6675 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6676case `$LD -v 2>&1 </dev/null` in 6677*GNU* | *'with BFD'*) 6678 lt_cv_prog_gnu_ld=yes 6679 ;; 6680*) 6681 lt_cv_prog_gnu_ld=no 6682 ;; 6683esac 6684fi 6685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6686$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6687with_gnu_ld=$lt_cv_prog_gnu_ld 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6698$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6699if ${lt_cv_path_NM+:} false; then : 6700 $as_echo_n "(cached) " >&6 6701else 6702 if test -n "$NM"; then 6703 # Let the user override the test. 6704 lt_cv_path_NM=$NM 6705else 6706 lt_nm_to_check=${ac_tool_prefix}nm 6707 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6708 lt_nm_to_check="$lt_nm_to_check nm" 6709 fi 6710 for lt_tmp_nm in $lt_nm_to_check; do 6711 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6712 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6713 IFS=$lt_save_ifs 6714 test -z "$ac_dir" && ac_dir=. 6715 tmp_nm=$ac_dir/$lt_tmp_nm 6716 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6717 # Check to see if the nm accepts a BSD-compat flag. 6718 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6719 # nm: unknown option "B" ignored 6720 # Tru64's nm complains that /dev/null is an invalid object file 6721 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 6722 case $build_os in 6723 mingw*) lt_bad_file=conftest.nm/nofile ;; 6724 *) lt_bad_file=/dev/null ;; 6725 esac 6726 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 6727 *$lt_bad_file* | *'Invalid file or object type'*) 6728 lt_cv_path_NM="$tmp_nm -B" 6729 break 2 6730 ;; 6731 *) 6732 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6733 */dev/null*) 6734 lt_cv_path_NM="$tmp_nm -p" 6735 break 2 6736 ;; 6737 *) 6738 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6739 continue # so that we can try to find one that supports BSD flags 6740 ;; 6741 esac 6742 ;; 6743 esac 6744 fi 6745 done 6746 IFS=$lt_save_ifs 6747 done 6748 : ${lt_cv_path_NM=no} 6749fi 6750fi 6751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6752$as_echo "$lt_cv_path_NM" >&6; } 6753if test no != "$lt_cv_path_NM"; then 6754 NM=$lt_cv_path_NM 6755else 6756 # Didn't find any BSD compatible name lister, look for dumpbin. 6757 if test -n "$DUMPBIN"; then : 6758 # Let the user override the test. 6759 else 6760 if test -n "$ac_tool_prefix"; then 6761 for ac_prog in dumpbin "link -dump" 6762 do 6763 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6764set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6766$as_echo_n "checking for $ac_word... " >&6; } 6767if ${ac_cv_prog_DUMPBIN+:} false; then : 6768 $as_echo_n "(cached) " >&6 6769else 6770 if test -n "$DUMPBIN"; then 6771 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6772else 6773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6774for as_dir in $PATH 6775do 6776 IFS=$as_save_IFS 6777 test -z "$as_dir" && as_dir=. 6778 for ac_exec_ext in '' $ac_executable_extensions; do 6779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6780 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6782 break 2 6783 fi 6784done 6785 done 6786IFS=$as_save_IFS 6787 6788fi 6789fi 6790DUMPBIN=$ac_cv_prog_DUMPBIN 6791if test -n "$DUMPBIN"; then 6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6793$as_echo "$DUMPBIN" >&6; } 6794else 6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6796$as_echo "no" >&6; } 6797fi 6798 6799 6800 test -n "$DUMPBIN" && break 6801 done 6802fi 6803if test -z "$DUMPBIN"; then 6804 ac_ct_DUMPBIN=$DUMPBIN 6805 for ac_prog in dumpbin "link -dump" 6806do 6807 # Extract the first word of "$ac_prog", so it can be a program name with args. 6808set dummy $ac_prog; ac_word=$2 6809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6810$as_echo_n "checking for $ac_word... " >&6; } 6811if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6812 $as_echo_n "(cached) " >&6 6813else 6814 if test -n "$ac_ct_DUMPBIN"; then 6815 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6816else 6817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6818for as_dir in $PATH 6819do 6820 IFS=$as_save_IFS 6821 test -z "$as_dir" && as_dir=. 6822 for ac_exec_ext in '' $ac_executable_extensions; do 6823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6824 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6826 break 2 6827 fi 6828done 6829 done 6830IFS=$as_save_IFS 6831 6832fi 6833fi 6834ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6835if test -n "$ac_ct_DUMPBIN"; then 6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6837$as_echo "$ac_ct_DUMPBIN" >&6; } 6838else 6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6840$as_echo "no" >&6; } 6841fi 6842 6843 6844 test -n "$ac_ct_DUMPBIN" && break 6845done 6846 6847 if test "x$ac_ct_DUMPBIN" = x; then 6848 DUMPBIN=":" 6849 else 6850 case $cross_compiling:$ac_tool_warned in 6851yes:) 6852{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6854ac_tool_warned=yes ;; 6855esac 6856 DUMPBIN=$ac_ct_DUMPBIN 6857 fi 6858fi 6859 6860 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 6861 *COFF*) 6862 DUMPBIN="$DUMPBIN -symbols -headers" 6863 ;; 6864 *) 6865 DUMPBIN=: 6866 ;; 6867 esac 6868 fi 6869 6870 if test : != "$DUMPBIN"; then 6871 NM=$DUMPBIN 6872 fi 6873fi 6874test -z "$NM" && NM=nm 6875 6876 6877 6878 6879 6880 6881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6882$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6883if ${lt_cv_nm_interface+:} false; then : 6884 $as_echo_n "(cached) " >&6 6885else 6886 lt_cv_nm_interface="BSD nm" 6887 echo "int some_variable = 0;" > conftest.$ac_ext 6888 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6889 (eval "$ac_compile" 2>conftest.err) 6890 cat conftest.err >&5 6891 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6892 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6893 cat conftest.err >&5 6894 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6895 cat conftest.out >&5 6896 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6897 lt_cv_nm_interface="MS dumpbin" 6898 fi 6899 rm -f conftest* 6900fi 6901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6902$as_echo "$lt_cv_nm_interface" >&6; } 6903 6904# find the maximum length of command line arguments 6905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6906$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6907if ${lt_cv_sys_max_cmd_len+:} false; then : 6908 $as_echo_n "(cached) " >&6 6909else 6910 i=0 6911 teststring=ABCD 6912 6913 case $build_os in 6914 msdosdjgpp*) 6915 # On DJGPP, this test can blow up pretty badly due to problems in libc 6916 # (any single argument exceeding 2000 bytes causes a buffer overrun 6917 # during glob expansion). Even if it were fixed, the result of this 6918 # check would be larger than it should be. 6919 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6920 ;; 6921 6922 gnu*) 6923 # Under GNU Hurd, this test is not required because there is 6924 # no limit to the length of command line arguments. 6925 # Libtool will interpret -1 as no limit whatsoever 6926 lt_cv_sys_max_cmd_len=-1; 6927 ;; 6928 6929 cygwin* | mingw* | cegcc*) 6930 # On Win9x/ME, this test blows up -- it succeeds, but takes 6931 # about 5 minutes as the teststring grows exponentially. 6932 # Worse, since 9x/ME are not pre-emptively multitasking, 6933 # you end up with a "frozen" computer, even though with patience 6934 # the test eventually succeeds (with a max line length of 256k). 6935 # Instead, let's just punt: use the minimum linelength reported by 6936 # all of the supported platforms: 8192 (on NT/2K/XP). 6937 lt_cv_sys_max_cmd_len=8192; 6938 ;; 6939 6940 mint*) 6941 # On MiNT this can take a long time and run out of memory. 6942 lt_cv_sys_max_cmd_len=8192; 6943 ;; 6944 6945 amigaos*) 6946 # On AmigaOS with pdksh, this test takes hours, literally. 6947 # So we just punt and use a minimum line length of 8192. 6948 lt_cv_sys_max_cmd_len=8192; 6949 ;; 6950 6951 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6952 # This has been around since 386BSD, at least. Likely further. 6953 if test -x /sbin/sysctl; then 6954 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6955 elif test -x /usr/sbin/sysctl; then 6956 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6957 else 6958 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6959 fi 6960 # And add a safety zone 6961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6962 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6963 ;; 6964 6965 interix*) 6966 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6967 lt_cv_sys_max_cmd_len=196608 6968 ;; 6969 6970 os2*) 6971 # The test takes a long time on OS/2. 6972 lt_cv_sys_max_cmd_len=8192 6973 ;; 6974 6975 osf*) 6976 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6977 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6978 # nice to cause kernel panics so lets avoid the loop below. 6979 # First set a reasonable default. 6980 lt_cv_sys_max_cmd_len=16384 6981 # 6982 if test -x /sbin/sysconfig; then 6983 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6984 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6985 esac 6986 fi 6987 ;; 6988 sco3.2v5*) 6989 lt_cv_sys_max_cmd_len=102400 6990 ;; 6991 sysv5* | sco5v6* | sysv4.2uw2*) 6992 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6993 if test -n "$kargmax"; then 6994 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6995 else 6996 lt_cv_sys_max_cmd_len=32768 6997 fi 6998 ;; 6999 *) 7000 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7001 if test -n "$lt_cv_sys_max_cmd_len" && \ 7002 test undefined != "$lt_cv_sys_max_cmd_len"; then 7003 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7004 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7005 else 7006 # Make teststring a little bigger before we do anything with it. 7007 # a 1K string should be a reasonable start. 7008 for i in 1 2 3 4 5 6 7 8; do 7009 teststring=$teststring$teststring 7010 done 7011 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7012 # If test is not a shell built-in, we'll probably end up computing a 7013 # maximum length that is only half of the actual maximum length, but 7014 # we can't tell. 7015 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 7016 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7017 test 17 != "$i" # 1/2 MB should be enough 7018 do 7019 i=`expr $i + 1` 7020 teststring=$teststring$teststring 7021 done 7022 # Only check the string length outside the loop. 7023 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7024 teststring= 7025 # Add a significant safety factor because C++ compilers can tack on 7026 # massive amounts of additional arguments before passing them to the 7027 # linker. It appears as though 1/2 is a usable value. 7028 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7029 fi 7030 ;; 7031 esac 7032 7033fi 7034 7035if test -n "$lt_cv_sys_max_cmd_len"; then 7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7037$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7038else 7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7040$as_echo "none" >&6; } 7041fi 7042max_cmd_len=$lt_cv_sys_max_cmd_len 7043 7044 7045 7046 7047 7048 7049: ${CP="cp -f"} 7050: ${MV="mv -f"} 7051: ${RM="rm -f"} 7052 7053if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7054 lt_unset=unset 7055else 7056 lt_unset=false 7057fi 7058 7059 7060 7061 7062 7063# test EBCDIC or ASCII 7064case `echo X|tr X '\101'` in 7065 A) # ASCII based system 7066 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7067 lt_SP2NL='tr \040 \012' 7068 lt_NL2SP='tr \015\012 \040\040' 7069 ;; 7070 *) # EBCDIC based system 7071 lt_SP2NL='tr \100 \n' 7072 lt_NL2SP='tr \r\n \100\100' 7073 ;; 7074esac 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7085$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 7086if ${lt_cv_to_host_file_cmd+:} false; then : 7087 $as_echo_n "(cached) " >&6 7088else 7089 case $host in 7090 *-*-mingw* ) 7091 case $build in 7092 *-*-mingw* ) # actually msys 7093 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7094 ;; 7095 *-*-cygwin* ) 7096 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7097 ;; 7098 * ) # otherwise, assume *nix 7099 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7100 ;; 7101 esac 7102 ;; 7103 *-*-cygwin* ) 7104 case $build in 7105 *-*-mingw* ) # actually msys 7106 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7107 ;; 7108 *-*-cygwin* ) 7109 lt_cv_to_host_file_cmd=func_convert_file_noop 7110 ;; 7111 * ) # otherwise, assume *nix 7112 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7113 ;; 7114 esac 7115 ;; 7116 * ) # unhandled hosts (and "normal" native builds) 7117 lt_cv_to_host_file_cmd=func_convert_file_noop 7118 ;; 7119esac 7120 7121fi 7122 7123to_host_file_cmd=$lt_cv_to_host_file_cmd 7124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7125$as_echo "$lt_cv_to_host_file_cmd" >&6; } 7126 7127 7128 7129 7130 7131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7132$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 7133if ${lt_cv_to_tool_file_cmd+:} false; then : 7134 $as_echo_n "(cached) " >&6 7135else 7136 #assume ordinary cross tools, or native build. 7137lt_cv_to_tool_file_cmd=func_convert_file_noop 7138case $host in 7139 *-*-mingw* ) 7140 case $build in 7141 *-*-mingw* ) # actually msys 7142 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7143 ;; 7144 esac 7145 ;; 7146esac 7147 7148fi 7149 7150to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7152$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 7153 7154 7155 7156 7157 7158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7159$as_echo_n "checking for $LD option to reload object files... " >&6; } 7160if ${lt_cv_ld_reload_flag+:} false; then : 7161 $as_echo_n "(cached) " >&6 7162else 7163 lt_cv_ld_reload_flag='-r' 7164fi 7165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7166$as_echo "$lt_cv_ld_reload_flag" >&6; } 7167reload_flag=$lt_cv_ld_reload_flag 7168case $reload_flag in 7169"" | " "*) ;; 7170*) reload_flag=" $reload_flag" ;; 7171esac 7172reload_cmds='$LD$reload_flag -o $output$reload_objs' 7173case $host_os in 7174 cygwin* | mingw* | pw32* | cegcc*) 7175 if test yes != "$GCC"; then 7176 reload_cmds=false 7177 fi 7178 ;; 7179 darwin*) 7180 if test yes = "$GCC"; then 7181 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 7182 else 7183 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7184 fi 7185 ;; 7186esac 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196if test -n "$ac_tool_prefix"; then 7197 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7198set dummy ${ac_tool_prefix}objdump; ac_word=$2 7199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7200$as_echo_n "checking for $ac_word... " >&6; } 7201if ${ac_cv_prog_OBJDUMP+:} false; then : 7202 $as_echo_n "(cached) " >&6 7203else 7204 if test -n "$OBJDUMP"; then 7205 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7206else 7207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7208for as_dir in $PATH 7209do 7210 IFS=$as_save_IFS 7211 test -z "$as_dir" && as_dir=. 7212 for ac_exec_ext in '' $ac_executable_extensions; do 7213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7214 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7216 break 2 7217 fi 7218done 7219 done 7220IFS=$as_save_IFS 7221 7222fi 7223fi 7224OBJDUMP=$ac_cv_prog_OBJDUMP 7225if test -n "$OBJDUMP"; then 7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7227$as_echo "$OBJDUMP" >&6; } 7228else 7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7230$as_echo "no" >&6; } 7231fi 7232 7233 7234fi 7235if test -z "$ac_cv_prog_OBJDUMP"; then 7236 ac_ct_OBJDUMP=$OBJDUMP 7237 # Extract the first word of "objdump", so it can be a program name with args. 7238set dummy objdump; ac_word=$2 7239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7240$as_echo_n "checking for $ac_word... " >&6; } 7241if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7242 $as_echo_n "(cached) " >&6 7243else 7244 if test -n "$ac_ct_OBJDUMP"; then 7245 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7246else 7247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7248for as_dir in $PATH 7249do 7250 IFS=$as_save_IFS 7251 test -z "$as_dir" && as_dir=. 7252 for ac_exec_ext in '' $ac_executable_extensions; do 7253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7254 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7256 break 2 7257 fi 7258done 7259 done 7260IFS=$as_save_IFS 7261 7262fi 7263fi 7264ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7265if test -n "$ac_ct_OBJDUMP"; then 7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7267$as_echo "$ac_ct_OBJDUMP" >&6; } 7268else 7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7270$as_echo "no" >&6; } 7271fi 7272 7273 if test "x$ac_ct_OBJDUMP" = x; then 7274 OBJDUMP="false" 7275 else 7276 case $cross_compiling:$ac_tool_warned in 7277yes:) 7278{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7279$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7280ac_tool_warned=yes ;; 7281esac 7282 OBJDUMP=$ac_ct_OBJDUMP 7283 fi 7284else 7285 OBJDUMP="$ac_cv_prog_OBJDUMP" 7286fi 7287 7288test -z "$OBJDUMP" && OBJDUMP=objdump 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7299$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7300if ${lt_cv_deplibs_check_method+:} false; then : 7301 $as_echo_n "(cached) " >&6 7302else 7303 lt_cv_file_magic_cmd='$MAGIC_CMD' 7304lt_cv_file_magic_test_file= 7305lt_cv_deplibs_check_method='unknown' 7306# Need to set the preceding variable on all platforms that support 7307# interlibrary dependencies. 7308# 'none' -- dependencies not supported. 7309# 'unknown' -- same as none, but documents that we really don't know. 7310# 'pass_all' -- all dependencies passed with no checks. 7311# 'test_compile' -- check by making test program. 7312# 'file_magic [[regex]]' -- check by looking for files in library path 7313# that responds to the $file_magic_cmd with a given extended regex. 7314# If you have 'file' or equivalent on your system and you're not sure 7315# whether 'pass_all' will *always* work, you probably want this one. 7316 7317case $host_os in 7318aix[4-9]*) 7319 lt_cv_deplibs_check_method=pass_all 7320 ;; 7321 7322beos*) 7323 lt_cv_deplibs_check_method=pass_all 7324 ;; 7325 7326bsdi[45]*) 7327 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7328 lt_cv_file_magic_cmd='/usr/bin/file -L' 7329 lt_cv_file_magic_test_file=/shlib/libc.so 7330 ;; 7331 7332cygwin*) 7333 # func_win32_libid is a shell function defined in ltmain.sh 7334 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7335 lt_cv_file_magic_cmd='func_win32_libid' 7336 ;; 7337 7338mingw* | pw32*) 7339 # Base MSYS/MinGW do not provide the 'file' command needed by 7340 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7341 # unless we find 'file', for example because we are cross-compiling. 7342 if ( file / ) >/dev/null 2>&1; then 7343 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7344 lt_cv_file_magic_cmd='func_win32_libid' 7345 else 7346 # Keep this pattern in sync with the one in func_win32_libid. 7347 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 7348 lt_cv_file_magic_cmd='$OBJDUMP -f' 7349 fi 7350 ;; 7351 7352cegcc*) 7353 # use the weaker test based on 'objdump'. See mingw*. 7354 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7355 lt_cv_file_magic_cmd='$OBJDUMP -f' 7356 ;; 7357 7358darwin* | rhapsody*) 7359 lt_cv_deplibs_check_method=pass_all 7360 ;; 7361 7362freebsd* | dragonfly*) 7363 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7364 case $host_cpu in 7365 i*86 ) 7366 # Not sure whether the presence of OpenBSD here was a mistake. 7367 # Let's accept both of them until this is cleared up. 7368 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7369 lt_cv_file_magic_cmd=/usr/bin/file 7370 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7371 ;; 7372 esac 7373 else 7374 lt_cv_deplibs_check_method=pass_all 7375 fi 7376 ;; 7377 7378haiku*) 7379 lt_cv_deplibs_check_method=pass_all 7380 ;; 7381 7382hpux10.20* | hpux11*) 7383 lt_cv_file_magic_cmd=/usr/bin/file 7384 case $host_cpu in 7385 ia64*) 7386 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7387 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7388 ;; 7389 hppa*64*) 7390 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]' 7391 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7392 ;; 7393 *) 7394 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7395 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7396 ;; 7397 esac 7398 ;; 7399 7400interix[3-9]*) 7401 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7403 ;; 7404 7405irix5* | irix6* | nonstopux*) 7406 case $LD in 7407 *-32|*"-32 ") libmagic=32-bit;; 7408 *-n32|*"-n32 ") libmagic=N32;; 7409 *-64|*"-64 ") libmagic=64-bit;; 7410 *) libmagic=never-match;; 7411 esac 7412 lt_cv_deplibs_check_method=pass_all 7413 ;; 7414 7415# This must be glibc/ELF. 7416linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 7417 lt_cv_deplibs_check_method=pass_all 7418 ;; 7419 7420netbsd* | netbsdelf*-gnu) 7421 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7422 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7423 else 7424 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7425 fi 7426 ;; 7427 7428newos6*) 7429 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7430 lt_cv_file_magic_cmd=/usr/bin/file 7431 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7432 ;; 7433 7434*nto* | *qnx*) 7435 lt_cv_deplibs_check_method=pass_all 7436 ;; 7437 7438openbsd* | bitrig*) 7439 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 7440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7441 else 7442 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7443 fi 7444 ;; 7445 7446osf3* | osf4* | osf5*) 7447 lt_cv_deplibs_check_method=pass_all 7448 ;; 7449 7450rdos*) 7451 lt_cv_deplibs_check_method=pass_all 7452 ;; 7453 7454solaris*) 7455 lt_cv_deplibs_check_method=pass_all 7456 ;; 7457 7458sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7459 lt_cv_deplibs_check_method=pass_all 7460 ;; 7461 7462sysv4 | sysv4.3*) 7463 case $host_vendor in 7464 motorola) 7465 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]' 7466 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7467 ;; 7468 ncr) 7469 lt_cv_deplibs_check_method=pass_all 7470 ;; 7471 sequent) 7472 lt_cv_file_magic_cmd='/bin/file' 7473 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7474 ;; 7475 sni) 7476 lt_cv_file_magic_cmd='/bin/file' 7477 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7478 lt_cv_file_magic_test_file=/lib/libc.so 7479 ;; 7480 siemens) 7481 lt_cv_deplibs_check_method=pass_all 7482 ;; 7483 pc) 7484 lt_cv_deplibs_check_method=pass_all 7485 ;; 7486 esac 7487 ;; 7488 7489tpf*) 7490 lt_cv_deplibs_check_method=pass_all 7491 ;; 7492os2*) 7493 lt_cv_deplibs_check_method=pass_all 7494 ;; 7495esac 7496 7497fi 7498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7499$as_echo "$lt_cv_deplibs_check_method" >&6; } 7500 7501file_magic_glob= 7502want_nocaseglob=no 7503if test "$build" = "$host"; then 7504 case $host_os in 7505 mingw* | pw32*) 7506 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7507 want_nocaseglob=yes 7508 else 7509 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7510 fi 7511 ;; 7512 esac 7513fi 7514 7515file_magic_cmd=$lt_cv_file_magic_cmd 7516deplibs_check_method=$lt_cv_deplibs_check_method 7517test -z "$deplibs_check_method" && deplibs_check_method=unknown 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540if test -n "$ac_tool_prefix"; then 7541 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7542set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7544$as_echo_n "checking for $ac_word... " >&6; } 7545if ${ac_cv_prog_DLLTOOL+:} false; then : 7546 $as_echo_n "(cached) " >&6 7547else 7548 if test -n "$DLLTOOL"; then 7549 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7550else 7551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7552for as_dir in $PATH 7553do 7554 IFS=$as_save_IFS 7555 test -z "$as_dir" && as_dir=. 7556 for ac_exec_ext in '' $ac_executable_extensions; do 7557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7558 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7560 break 2 7561 fi 7562done 7563 done 7564IFS=$as_save_IFS 7565 7566fi 7567fi 7568DLLTOOL=$ac_cv_prog_DLLTOOL 7569if test -n "$DLLTOOL"; then 7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7571$as_echo "$DLLTOOL" >&6; } 7572else 7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7574$as_echo "no" >&6; } 7575fi 7576 7577 7578fi 7579if test -z "$ac_cv_prog_DLLTOOL"; then 7580 ac_ct_DLLTOOL=$DLLTOOL 7581 # Extract the first word of "dlltool", so it can be a program name with args. 7582set dummy dlltool; ac_word=$2 7583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7584$as_echo_n "checking for $ac_word... " >&6; } 7585if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7586 $as_echo_n "(cached) " >&6 7587else 7588 if test -n "$ac_ct_DLLTOOL"; then 7589 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7590else 7591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7592for as_dir in $PATH 7593do 7594 IFS=$as_save_IFS 7595 test -z "$as_dir" && as_dir=. 7596 for ac_exec_ext in '' $ac_executable_extensions; do 7597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7598 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7600 break 2 7601 fi 7602done 7603 done 7604IFS=$as_save_IFS 7605 7606fi 7607fi 7608ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7609if test -n "$ac_ct_DLLTOOL"; then 7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7611$as_echo "$ac_ct_DLLTOOL" >&6; } 7612else 7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7614$as_echo "no" >&6; } 7615fi 7616 7617 if test "x$ac_ct_DLLTOOL" = x; then 7618 DLLTOOL="false" 7619 else 7620 case $cross_compiling:$ac_tool_warned in 7621yes:) 7622{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7624ac_tool_warned=yes ;; 7625esac 7626 DLLTOOL=$ac_ct_DLLTOOL 7627 fi 7628else 7629 DLLTOOL="$ac_cv_prog_DLLTOOL" 7630fi 7631 7632test -z "$DLLTOOL" && DLLTOOL=dlltool 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7644$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 7645if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 7646 $as_echo_n "(cached) " >&6 7647else 7648 lt_cv_sharedlib_from_linklib_cmd='unknown' 7649 7650case $host_os in 7651cygwin* | mingw* | pw32* | cegcc*) 7652 # two different shell functions defined in ltmain.sh; 7653 # decide which one to use based on capabilities of $DLLTOOL 7654 case `$DLLTOOL --help 2>&1` in 7655 *--identify-strict*) 7656 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7657 ;; 7658 *) 7659 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7660 ;; 7661 esac 7662 ;; 7663*) 7664 # fallback: assume linklib IS sharedlib 7665 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7666 ;; 7667esac 7668 7669fi 7670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7671$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7672sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7673test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7674 7675 7676 7677 7678 7679 7680 7681if test -n "$ac_tool_prefix"; then 7682 for ac_prog in ar 7683 do 7684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7685set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7687$as_echo_n "checking for $ac_word... " >&6; } 7688if ${ac_cv_prog_AR+:} false; then : 7689 $as_echo_n "(cached) " >&6 7690else 7691 if test -n "$AR"; then 7692 ac_cv_prog_AR="$AR" # Let the user override the test. 7693else 7694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7695for as_dir in $PATH 7696do 7697 IFS=$as_save_IFS 7698 test -z "$as_dir" && as_dir=. 7699 for ac_exec_ext in '' $ac_executable_extensions; do 7700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7701 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7703 break 2 7704 fi 7705done 7706 done 7707IFS=$as_save_IFS 7708 7709fi 7710fi 7711AR=$ac_cv_prog_AR 7712if test -n "$AR"; then 7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7714$as_echo "$AR" >&6; } 7715else 7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7717$as_echo "no" >&6; } 7718fi 7719 7720 7721 test -n "$AR" && break 7722 done 7723fi 7724if test -z "$AR"; then 7725 ac_ct_AR=$AR 7726 for ac_prog in ar 7727do 7728 # Extract the first word of "$ac_prog", so it can be a program name with args. 7729set dummy $ac_prog; ac_word=$2 7730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7731$as_echo_n "checking for $ac_word... " >&6; } 7732if ${ac_cv_prog_ac_ct_AR+:} false; then : 7733 $as_echo_n "(cached) " >&6 7734else 7735 if test -n "$ac_ct_AR"; then 7736 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7737else 7738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7739for as_dir in $PATH 7740do 7741 IFS=$as_save_IFS 7742 test -z "$as_dir" && as_dir=. 7743 for ac_exec_ext in '' $ac_executable_extensions; do 7744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7745 ac_cv_prog_ac_ct_AR="$ac_prog" 7746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7747 break 2 7748 fi 7749done 7750 done 7751IFS=$as_save_IFS 7752 7753fi 7754fi 7755ac_ct_AR=$ac_cv_prog_ac_ct_AR 7756if test -n "$ac_ct_AR"; then 7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7758$as_echo "$ac_ct_AR" >&6; } 7759else 7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7761$as_echo "no" >&6; } 7762fi 7763 7764 7765 test -n "$ac_ct_AR" && break 7766done 7767 7768 if test "x$ac_ct_AR" = x; then 7769 AR="false" 7770 else 7771 case $cross_compiling:$ac_tool_warned in 7772yes:) 7773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7775ac_tool_warned=yes ;; 7776esac 7777 AR=$ac_ct_AR 7778 fi 7779fi 7780 7781: ${AR=ar} 7782: ${AR_FLAGS=cr} 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7795$as_echo_n "checking for archiver @FILE support... " >&6; } 7796if ${lt_cv_ar_at_file+:} false; then : 7797 $as_echo_n "(cached) " >&6 7798else 7799 lt_cv_ar_at_file=no 7800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7801/* end confdefs.h. */ 7802 7803int 7804main () 7805{ 7806 7807 ; 7808 return 0; 7809} 7810_ACEOF 7811if ac_fn_c_try_compile "$LINENO"; then : 7812 echo conftest.$ac_objext > conftest.lst 7813 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7815 (eval $lt_ar_try) 2>&5 7816 ac_status=$? 7817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7818 test $ac_status = 0; } 7819 if test 0 -eq "$ac_status"; then 7820 # Ensure the archiver fails upon bogus file names. 7821 rm -f conftest.$ac_objext libconftest.a 7822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7823 (eval $lt_ar_try) 2>&5 7824 ac_status=$? 7825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7826 test $ac_status = 0; } 7827 if test 0 -ne "$ac_status"; then 7828 lt_cv_ar_at_file=@ 7829 fi 7830 fi 7831 rm -f conftest.* libconftest.a 7832 7833fi 7834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7835 7836fi 7837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7838$as_echo "$lt_cv_ar_at_file" >&6; } 7839 7840if test no = "$lt_cv_ar_at_file"; then 7841 archiver_list_spec= 7842else 7843 archiver_list_spec=$lt_cv_ar_at_file 7844fi 7845 7846 7847 7848 7849 7850 7851 7852if test -n "$ac_tool_prefix"; then 7853 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7854set dummy ${ac_tool_prefix}strip; ac_word=$2 7855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7856$as_echo_n "checking for $ac_word... " >&6; } 7857if ${ac_cv_prog_STRIP+:} false; then : 7858 $as_echo_n "(cached) " >&6 7859else 7860 if test -n "$STRIP"; then 7861 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7862else 7863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7864for as_dir in $PATH 7865do 7866 IFS=$as_save_IFS 7867 test -z "$as_dir" && as_dir=. 7868 for ac_exec_ext in '' $ac_executable_extensions; do 7869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7870 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7872 break 2 7873 fi 7874done 7875 done 7876IFS=$as_save_IFS 7877 7878fi 7879fi 7880STRIP=$ac_cv_prog_STRIP 7881if test -n "$STRIP"; then 7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7883$as_echo "$STRIP" >&6; } 7884else 7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7886$as_echo "no" >&6; } 7887fi 7888 7889 7890fi 7891if test -z "$ac_cv_prog_STRIP"; then 7892 ac_ct_STRIP=$STRIP 7893 # Extract the first word of "strip", so it can be a program name with args. 7894set dummy strip; ac_word=$2 7895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7896$as_echo_n "checking for $ac_word... " >&6; } 7897if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7898 $as_echo_n "(cached) " >&6 7899else 7900 if test -n "$ac_ct_STRIP"; then 7901 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7902else 7903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7904for as_dir in $PATH 7905do 7906 IFS=$as_save_IFS 7907 test -z "$as_dir" && as_dir=. 7908 for ac_exec_ext in '' $ac_executable_extensions; do 7909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7910 ac_cv_prog_ac_ct_STRIP="strip" 7911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7912 break 2 7913 fi 7914done 7915 done 7916IFS=$as_save_IFS 7917 7918fi 7919fi 7920ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7921if test -n "$ac_ct_STRIP"; then 7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7923$as_echo "$ac_ct_STRIP" >&6; } 7924else 7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7926$as_echo "no" >&6; } 7927fi 7928 7929 if test "x$ac_ct_STRIP" = x; then 7930 STRIP=":" 7931 else 7932 case $cross_compiling:$ac_tool_warned in 7933yes:) 7934{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7935$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7936ac_tool_warned=yes ;; 7937esac 7938 STRIP=$ac_ct_STRIP 7939 fi 7940else 7941 STRIP="$ac_cv_prog_STRIP" 7942fi 7943 7944test -z "$STRIP" && STRIP=: 7945 7946 7947 7948 7949 7950 7951if test -n "$ac_tool_prefix"; then 7952 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7953set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7955$as_echo_n "checking for $ac_word... " >&6; } 7956if ${ac_cv_prog_RANLIB+:} false; then : 7957 $as_echo_n "(cached) " >&6 7958else 7959 if test -n "$RANLIB"; then 7960 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7961else 7962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7963for as_dir in $PATH 7964do 7965 IFS=$as_save_IFS 7966 test -z "$as_dir" && as_dir=. 7967 for ac_exec_ext in '' $ac_executable_extensions; do 7968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7969 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7971 break 2 7972 fi 7973done 7974 done 7975IFS=$as_save_IFS 7976 7977fi 7978fi 7979RANLIB=$ac_cv_prog_RANLIB 7980if test -n "$RANLIB"; then 7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7982$as_echo "$RANLIB" >&6; } 7983else 7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7985$as_echo "no" >&6; } 7986fi 7987 7988 7989fi 7990if test -z "$ac_cv_prog_RANLIB"; then 7991 ac_ct_RANLIB=$RANLIB 7992 # Extract the first word of "ranlib", so it can be a program name with args. 7993set dummy ranlib; ac_word=$2 7994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7995$as_echo_n "checking for $ac_word... " >&6; } 7996if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7997 $as_echo_n "(cached) " >&6 7998else 7999 if test -n "$ac_ct_RANLIB"; then 8000 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8001else 8002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8003for as_dir in $PATH 8004do 8005 IFS=$as_save_IFS 8006 test -z "$as_dir" && as_dir=. 8007 for ac_exec_ext in '' $ac_executable_extensions; do 8008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8009 ac_cv_prog_ac_ct_RANLIB="ranlib" 8010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8011 break 2 8012 fi 8013done 8014 done 8015IFS=$as_save_IFS 8016 8017fi 8018fi 8019ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8020if test -n "$ac_ct_RANLIB"; then 8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8022$as_echo "$ac_ct_RANLIB" >&6; } 8023else 8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8025$as_echo "no" >&6; } 8026fi 8027 8028 if test "x$ac_ct_RANLIB" = x; then 8029 RANLIB=":" 8030 else 8031 case $cross_compiling:$ac_tool_warned in 8032yes:) 8033{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8034$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8035ac_tool_warned=yes ;; 8036esac 8037 RANLIB=$ac_ct_RANLIB 8038 fi 8039else 8040 RANLIB="$ac_cv_prog_RANLIB" 8041fi 8042 8043test -z "$RANLIB" && RANLIB=: 8044 8045 8046 8047 8048 8049 8050# Determine commands to create old-style static archives. 8051old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8052old_postinstall_cmds='chmod 644 $oldlib' 8053old_postuninstall_cmds= 8054 8055if test -n "$RANLIB"; then 8056 case $host_os in 8057 bitrig* | openbsd*) 8058 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8059 ;; 8060 *) 8061 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8062 ;; 8063 esac 8064 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8065fi 8066 8067case $host_os in 8068 darwin*) 8069 lock_old_archive_extraction=yes ;; 8070 *) 8071 lock_old_archive_extraction=no ;; 8072esac 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112# If no C compiler was specified, use CC. 8113LTCC=${LTCC-"$CC"} 8114 8115# If no C compiler flags were specified, use CFLAGS. 8116LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8117 8118# Allow CC to be a program name with arguments. 8119compiler=$CC 8120 8121 8122# Check for command to grab the raw symbol name followed by C symbol from nm. 8123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8124$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 8125if ${lt_cv_sys_global_symbol_pipe+:} false; then : 8126 $as_echo_n "(cached) " >&6 8127else 8128 8129# These are sane defaults that work on at least a few old systems. 8130# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8131 8132# Character class describing NM global symbol codes. 8133symcode='[BCDEGRST]' 8134 8135# Regexp to match symbols that can be accessed directly from C. 8136sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8137 8138# Define system-specific variables. 8139case $host_os in 8140aix*) 8141 symcode='[BCDT]' 8142 ;; 8143cygwin* | mingw* | pw32* | cegcc*) 8144 symcode='[ABCDGISTW]' 8145 ;; 8146hpux*) 8147 if test ia64 = "$host_cpu"; then 8148 symcode='[ABCDEGRST]' 8149 fi 8150 ;; 8151irix* | nonstopux*) 8152 symcode='[BCDEGRST]' 8153 ;; 8154osf*) 8155 symcode='[BCDEGQRST]' 8156 ;; 8157solaris*) 8158 symcode='[BDRT]' 8159 ;; 8160sco3.2v5*) 8161 symcode='[DT]' 8162 ;; 8163sysv4.2uw2*) 8164 symcode='[DT]' 8165 ;; 8166sysv5* | sco5v6* | unixware* | OpenUNIX*) 8167 symcode='[ABDT]' 8168 ;; 8169sysv4) 8170 symcode='[DFNSTU]' 8171 ;; 8172esac 8173 8174# If we're using GNU nm, then use its standard symbol codes. 8175case `$NM -V 2>&1` in 8176*GNU* | *'with BFD'*) 8177 symcode='[ABCDGIRSTW]' ;; 8178esac 8179 8180if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8181 # Gets list of data symbols to import. 8182 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 8183 # Adjust the below global symbol transforms to fixup imported variables. 8184 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 8185 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 8186 lt_c_name_lib_hook="\ 8187 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 8188 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 8189else 8190 # Disable hooks by default. 8191 lt_cv_sys_global_symbol_to_import= 8192 lt_cdecl_hook= 8193 lt_c_name_hook= 8194 lt_c_name_lib_hook= 8195fi 8196 8197# Transform an extracted symbol line into a proper C declaration. 8198# Some systems (esp. on ia64) link data and code symbols differently, 8199# so use this general approach. 8200lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 8201$lt_cdecl_hook\ 8202" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 8203" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 8204 8205# Transform an extracted symbol line into symbol name and symbol address 8206lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 8207$lt_c_name_hook\ 8208" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8209" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 8210 8211# Transform an extracted symbol line into symbol name with lib prefix and 8212# symbol address. 8213lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 8214$lt_c_name_lib_hook\ 8215" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8216" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 8217" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 8218 8219# Handle CRLF in mingw tool chain 8220opt_cr= 8221case $build_os in 8222mingw*) 8223 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8224 ;; 8225esac 8226 8227# Try without a prefix underscore, then with it. 8228for ac_symprfx in "" "_"; do 8229 8230 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8231 symxfrm="\\1 $ac_symprfx\\2 \\2" 8232 8233 # Write the raw and C identifiers. 8234 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8235 # Fake it for dumpbin and say T for any non-static function, 8236 # D for any global variable and I for any imported variable. 8237 # Also find C++ and __fastcall symbols from MSVC++, 8238 # which start with @ or ?. 8239 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8240" {last_section=section; section=\$ 3};"\ 8241" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8242" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8243" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 8244" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 8245" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 8246" \$ 0!~/External *\|/{next};"\ 8247" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8248" {if(hide[section]) next};"\ 8249" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 8250" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 8251" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 8252" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 8253" ' prfx=^$ac_symprfx" 8254 else 8255 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8256 fi 8257 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 8258 8259 # Check to see that the pipe works correctly. 8260 pipe_works=no 8261 8262 rm -f conftest* 8263 cat > conftest.$ac_ext <<_LT_EOF 8264#ifdef __cplusplus 8265extern "C" { 8266#endif 8267char nm_test_var; 8268void nm_test_func(void); 8269void nm_test_func(void){} 8270#ifdef __cplusplus 8271} 8272#endif 8273int main(){nm_test_var='a';nm_test_func();return(0);} 8274_LT_EOF 8275 8276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8277 (eval $ac_compile) 2>&5 8278 ac_status=$? 8279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8280 test $ac_status = 0; }; then 8281 # Now try to grab the symbols. 8282 nlist=conftest.nm 8283 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 8284 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 8285 # Try sorting and uniquifying the output. 8286 if sort "$nlist" | uniq > "$nlist"T; then 8287 mv -f "$nlist"T "$nlist" 8288 else 8289 rm -f "$nlist"T 8290 fi 8291 8292 # Make sure that we snagged all the symbols we need. 8293 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8294 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8295 cat <<_LT_EOF > conftest.$ac_ext 8296/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8297#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 8298/* DATA imports from DLLs on WIN32 can't be const, because runtime 8299 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8300# define LT_DLSYM_CONST 8301#elif defined __osf__ 8302/* This system does not cope well with relocations in const data. */ 8303# define LT_DLSYM_CONST 8304#else 8305# define LT_DLSYM_CONST const 8306#endif 8307 8308#ifdef __cplusplus 8309extern "C" { 8310#endif 8311 8312_LT_EOF 8313 # Now generate the symbol file. 8314 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8315 8316 cat <<_LT_EOF >> conftest.$ac_ext 8317 8318/* The mapping between symbol names and symbols. */ 8319LT_DLSYM_CONST struct { 8320 const char *name; 8321 void *address; 8322} 8323lt__PROGRAM__LTX_preloaded_symbols[] = 8324{ 8325 { "@PROGRAM@", (void *) 0 }, 8326_LT_EOF 8327 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8328 cat <<\_LT_EOF >> conftest.$ac_ext 8329 {0, (void *) 0} 8330}; 8331 8332/* This works around a problem in FreeBSD linker */ 8333#ifdef FREEBSD_WORKAROUND 8334static const void *lt_preloaded_setup() { 8335 return lt__PROGRAM__LTX_preloaded_symbols; 8336} 8337#endif 8338 8339#ifdef __cplusplus 8340} 8341#endif 8342_LT_EOF 8343 # Now try linking the two files. 8344 mv conftest.$ac_objext conftstm.$ac_objext 8345 lt_globsym_save_LIBS=$LIBS 8346 lt_globsym_save_CFLAGS=$CFLAGS 8347 LIBS=conftstm.$ac_objext 8348 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8350 (eval $ac_link) 2>&5 8351 ac_status=$? 8352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8353 test $ac_status = 0; } && test -s conftest$ac_exeext; then 8354 pipe_works=yes 8355 fi 8356 LIBS=$lt_globsym_save_LIBS 8357 CFLAGS=$lt_globsym_save_CFLAGS 8358 else 8359 echo "cannot find nm_test_func in $nlist" >&5 8360 fi 8361 else 8362 echo "cannot find nm_test_var in $nlist" >&5 8363 fi 8364 else 8365 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8366 fi 8367 else 8368 echo "$progname: failed program was:" >&5 8369 cat conftest.$ac_ext >&5 8370 fi 8371 rm -rf conftest* conftst* 8372 8373 # Do not use the global_symbol_pipe unless it works. 8374 if test yes = "$pipe_works"; then 8375 break 8376 else 8377 lt_cv_sys_global_symbol_pipe= 8378 fi 8379done 8380 8381fi 8382 8383if test -z "$lt_cv_sys_global_symbol_pipe"; then 8384 lt_cv_sys_global_symbol_to_cdecl= 8385fi 8386if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8388$as_echo "failed" >&6; } 8389else 8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8391$as_echo "ok" >&6; } 8392fi 8393 8394# Response file support. 8395if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8396 nm_file_list_spec='@' 8397elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8398 nm_file_list_spec='@' 8399fi 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8438$as_echo_n "checking for sysroot... " >&6; } 8439 8440# Check whether --with-sysroot was given. 8441if test "${with_sysroot+set}" = set; then : 8442 withval=$with_sysroot; 8443else 8444 with_sysroot=no 8445fi 8446 8447 8448lt_sysroot= 8449case $with_sysroot in #( 8450 yes) 8451 if test yes = "$GCC"; then 8452 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8453 fi 8454 ;; #( 8455 /*) 8456 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 8457 ;; #( 8458 no|'') 8459 ;; #( 8460 *) 8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 8462$as_echo "$with_sysroot" >&6; } 8463 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8464 ;; 8465esac 8466 8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8468$as_echo "${lt_sysroot:-no}" >&6; } 8469 8470 8471 8472 8473 8474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 8475$as_echo_n "checking for a working dd... " >&6; } 8476if ${ac_cv_path_lt_DD+:} false; then : 8477 $as_echo_n "(cached) " >&6 8478else 8479 printf 0123456789abcdef0123456789abcdef >conftest.i 8480cat conftest.i conftest.i >conftest2.i 8481: ${lt_DD:=$DD} 8482if test -z "$lt_DD"; then 8483 ac_path_lt_DD_found=false 8484 # Loop through the user's path and test for each of PROGNAME-LIST 8485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8486for as_dir in $PATH 8487do 8488 IFS=$as_save_IFS 8489 test -z "$as_dir" && as_dir=. 8490 for ac_prog in dd; do 8491 for ac_exec_ext in '' $ac_executable_extensions; do 8492 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 8493 as_fn_executable_p "$ac_path_lt_DD" || continue 8494if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8495 cmp -s conftest.i conftest.out \ 8496 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 8497fi 8498 $ac_path_lt_DD_found && break 3 8499 done 8500 done 8501 done 8502IFS=$as_save_IFS 8503 if test -z "$ac_cv_path_lt_DD"; then 8504 : 8505 fi 8506else 8507 ac_cv_path_lt_DD=$lt_DD 8508fi 8509 8510rm -f conftest.i conftest2.i conftest.out 8511fi 8512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 8513$as_echo "$ac_cv_path_lt_DD" >&6; } 8514 8515 8516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 8517$as_echo_n "checking how to truncate binary pipes... " >&6; } 8518if ${lt_cv_truncate_bin+:} false; then : 8519 $as_echo_n "(cached) " >&6 8520else 8521 printf 0123456789abcdef0123456789abcdef >conftest.i 8522cat conftest.i conftest.i >conftest2.i 8523lt_cv_truncate_bin= 8524if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8525 cmp -s conftest.i conftest.out \ 8526 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 8527fi 8528rm -f conftest.i conftest2.i conftest.out 8529test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 8530fi 8531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 8532$as_echo "$lt_cv_truncate_bin" >&6; } 8533 8534 8535 8536 8537 8538 8539 8540# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 8541func_cc_basename () 8542{ 8543 for cc_temp in $*""; do 8544 case $cc_temp in 8545 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8546 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8547 \-*) ;; 8548 *) break;; 8549 esac 8550 done 8551 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8552} 8553 8554# Check whether --enable-libtool-lock was given. 8555if test "${enable_libtool_lock+set}" = set; then : 8556 enableval=$enable_libtool_lock; 8557fi 8558 8559test no = "$enable_libtool_lock" || enable_libtool_lock=yes 8560 8561# Some flags need to be propagated to the compiler or linker for good 8562# libtool support. 8563case $host in 8564ia64-*-hpux*) 8565 # Find out what ABI is being produced by ac_compile, and set mode 8566 # options accordingly. 8567 echo 'int i;' > conftest.$ac_ext 8568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8569 (eval $ac_compile) 2>&5 8570 ac_status=$? 8571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8572 test $ac_status = 0; }; then 8573 case `/usr/bin/file conftest.$ac_objext` in 8574 *ELF-32*) 8575 HPUX_IA64_MODE=32 8576 ;; 8577 *ELF-64*) 8578 HPUX_IA64_MODE=64 8579 ;; 8580 esac 8581 fi 8582 rm -rf conftest* 8583 ;; 8584*-*-irix6*) 8585 # Find out what ABI is being produced by ac_compile, and set linker 8586 # options accordingly. 8587 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8589 (eval $ac_compile) 2>&5 8590 ac_status=$? 8591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8592 test $ac_status = 0; }; then 8593 if test yes = "$lt_cv_prog_gnu_ld"; then 8594 case `/usr/bin/file conftest.$ac_objext` in 8595 *32-bit*) 8596 LD="${LD-ld} -melf32bsmip" 8597 ;; 8598 *N32*) 8599 LD="${LD-ld} -melf32bmipn32" 8600 ;; 8601 *64-bit*) 8602 LD="${LD-ld} -melf64bmip" 8603 ;; 8604 esac 8605 else 8606 case `/usr/bin/file conftest.$ac_objext` in 8607 *32-bit*) 8608 LD="${LD-ld} -32" 8609 ;; 8610 *N32*) 8611 LD="${LD-ld} -n32" 8612 ;; 8613 *64-bit*) 8614 LD="${LD-ld} -64" 8615 ;; 8616 esac 8617 fi 8618 fi 8619 rm -rf conftest* 8620 ;; 8621 8622mips64*-*linux*) 8623 # Find out what ABI is being produced by ac_compile, and set linker 8624 # options accordingly. 8625 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8627 (eval $ac_compile) 2>&5 8628 ac_status=$? 8629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8630 test $ac_status = 0; }; then 8631 emul=elf 8632 case `/usr/bin/file conftest.$ac_objext` in 8633 *32-bit*) 8634 emul="${emul}32" 8635 ;; 8636 *64-bit*) 8637 emul="${emul}64" 8638 ;; 8639 esac 8640 case `/usr/bin/file conftest.$ac_objext` in 8641 *MSB*) 8642 emul="${emul}btsmip" 8643 ;; 8644 *LSB*) 8645 emul="${emul}ltsmip" 8646 ;; 8647 esac 8648 case `/usr/bin/file conftest.$ac_objext` in 8649 *N32*) 8650 emul="${emul}n32" 8651 ;; 8652 esac 8653 LD="${LD-ld} -m $emul" 8654 fi 8655 rm -rf conftest* 8656 ;; 8657 8658x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8659s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8660 # Find out what ABI is being produced by ac_compile, and set linker 8661 # options accordingly. Note that the listed cases only cover the 8662 # situations where additional linker options are needed (such as when 8663 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8664 # vice versa); the common cases where no linker options are needed do 8665 # not appear in the list. 8666 echo 'int i;' > conftest.$ac_ext 8667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8668 (eval $ac_compile) 2>&5 8669 ac_status=$? 8670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8671 test $ac_status = 0; }; then 8672 case `/usr/bin/file conftest.o` in 8673 *32-bit*) 8674 case $host in 8675 x86_64-*kfreebsd*-gnu) 8676 LD="${LD-ld} -m elf_i386_fbsd" 8677 ;; 8678 x86_64-*linux*) 8679 case `/usr/bin/file conftest.o` in 8680 *x86-64*) 8681 LD="${LD-ld} -m elf32_x86_64" 8682 ;; 8683 *) 8684 LD="${LD-ld} -m elf_i386" 8685 ;; 8686 esac 8687 ;; 8688 powerpc64le-*linux*) 8689 LD="${LD-ld} -m elf32lppclinux" 8690 ;; 8691 powerpc64-*linux*) 8692 LD="${LD-ld} -m elf32ppclinux" 8693 ;; 8694 s390x-*linux*) 8695 LD="${LD-ld} -m elf_s390" 8696 ;; 8697 sparc64-*linux*) 8698 LD="${LD-ld} -m elf32_sparc" 8699 ;; 8700 esac 8701 ;; 8702 *64-bit*) 8703 case $host in 8704 x86_64-*kfreebsd*-gnu) 8705 LD="${LD-ld} -m elf_x86_64_fbsd" 8706 ;; 8707 x86_64-*linux*) 8708 LD="${LD-ld} -m elf_x86_64" 8709 ;; 8710 powerpcle-*linux*) 8711 LD="${LD-ld} -m elf64lppc" 8712 ;; 8713 powerpc-*linux*) 8714 LD="${LD-ld} -m elf64ppc" 8715 ;; 8716 s390*-*linux*|s390*-*tpf*) 8717 LD="${LD-ld} -m elf64_s390" 8718 ;; 8719 sparc*-*linux*) 8720 LD="${LD-ld} -m elf64_sparc" 8721 ;; 8722 esac 8723 ;; 8724 esac 8725 fi 8726 rm -rf conftest* 8727 ;; 8728 8729*-*-sco3.2v5*) 8730 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8731 SAVE_CFLAGS=$CFLAGS 8732 CFLAGS="$CFLAGS -belf" 8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8734$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8735if ${lt_cv_cc_needs_belf+:} false; then : 8736 $as_echo_n "(cached) " >&6 8737else 8738 ac_ext=c 8739ac_cpp='$CPP $CPPFLAGS' 8740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8742ac_compiler_gnu=$ac_cv_c_compiler_gnu 8743 8744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8745/* end confdefs.h. */ 8746 8747int 8748main () 8749{ 8750 8751 ; 8752 return 0; 8753} 8754_ACEOF 8755if ac_fn_c_try_link "$LINENO"; then : 8756 lt_cv_cc_needs_belf=yes 8757else 8758 lt_cv_cc_needs_belf=no 8759fi 8760rm -f core conftest.err conftest.$ac_objext \ 8761 conftest$ac_exeext conftest.$ac_ext 8762 ac_ext=c 8763ac_cpp='$CPP $CPPFLAGS' 8764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8766ac_compiler_gnu=$ac_cv_c_compiler_gnu 8767 8768fi 8769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8770$as_echo "$lt_cv_cc_needs_belf" >&6; } 8771 if test yes != "$lt_cv_cc_needs_belf"; then 8772 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8773 CFLAGS=$SAVE_CFLAGS 8774 fi 8775 ;; 8776*-*solaris*) 8777 # Find out what ABI is being produced by ac_compile, and set linker 8778 # options accordingly. 8779 echo 'int i;' > conftest.$ac_ext 8780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8781 (eval $ac_compile) 2>&5 8782 ac_status=$? 8783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8784 test $ac_status = 0; }; then 8785 case `/usr/bin/file conftest.o` in 8786 *64-bit*) 8787 case $lt_cv_prog_gnu_ld in 8788 yes*) 8789 case $host in 8790 i?86-*-solaris*|x86_64-*-solaris*) 8791 LD="${LD-ld} -m elf_x86_64" 8792 ;; 8793 sparc*-*-solaris*) 8794 LD="${LD-ld} -m elf64_sparc" 8795 ;; 8796 esac 8797 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8798 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8799 LD=${LD-ld}_sol2 8800 fi 8801 ;; 8802 *) 8803 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8804 LD="${LD-ld} -64" 8805 fi 8806 ;; 8807 esac 8808 ;; 8809 esac 8810 fi 8811 rm -rf conftest* 8812 ;; 8813esac 8814 8815need_locks=$enable_libtool_lock 8816 8817if test -n "$ac_tool_prefix"; then 8818 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8819set dummy ${ac_tool_prefix}mt; ac_word=$2 8820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8821$as_echo_n "checking for $ac_word... " >&6; } 8822if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8823 $as_echo_n "(cached) " >&6 8824else 8825 if test -n "$MANIFEST_TOOL"; then 8826 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8827else 8828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8829for as_dir in $PATH 8830do 8831 IFS=$as_save_IFS 8832 test -z "$as_dir" && as_dir=. 8833 for ac_exec_ext in '' $ac_executable_extensions; do 8834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8835 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8837 break 2 8838 fi 8839done 8840 done 8841IFS=$as_save_IFS 8842 8843fi 8844fi 8845MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8846if test -n "$MANIFEST_TOOL"; then 8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8848$as_echo "$MANIFEST_TOOL" >&6; } 8849else 8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8851$as_echo "no" >&6; } 8852fi 8853 8854 8855fi 8856if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8857 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8858 # Extract the first word of "mt", so it can be a program name with args. 8859set dummy mt; ac_word=$2 8860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8861$as_echo_n "checking for $ac_word... " >&6; } 8862if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8863 $as_echo_n "(cached) " >&6 8864else 8865 if test -n "$ac_ct_MANIFEST_TOOL"; then 8866 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8867else 8868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8869for as_dir in $PATH 8870do 8871 IFS=$as_save_IFS 8872 test -z "$as_dir" && as_dir=. 8873 for ac_exec_ext in '' $ac_executable_extensions; do 8874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8875 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8877 break 2 8878 fi 8879done 8880 done 8881IFS=$as_save_IFS 8882 8883fi 8884fi 8885ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8886if test -n "$ac_ct_MANIFEST_TOOL"; then 8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8888$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8889else 8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8891$as_echo "no" >&6; } 8892fi 8893 8894 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8895 MANIFEST_TOOL=":" 8896 else 8897 case $cross_compiling:$ac_tool_warned in 8898yes:) 8899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8901ac_tool_warned=yes ;; 8902esac 8903 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8904 fi 8905else 8906 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8907fi 8908 8909test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8911$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8912if ${lt_cv_path_mainfest_tool+:} false; then : 8913 $as_echo_n "(cached) " >&6 8914else 8915 lt_cv_path_mainfest_tool=no 8916 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8917 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8918 cat conftest.err >&5 8919 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8920 lt_cv_path_mainfest_tool=yes 8921 fi 8922 rm -f conftest* 8923fi 8924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8925$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8926if test yes != "$lt_cv_path_mainfest_tool"; then 8927 MANIFEST_TOOL=: 8928fi 8929 8930 8931 8932 8933 8934 8935 case $host_os in 8936 rhapsody* | darwin*) 8937 if test -n "$ac_tool_prefix"; then 8938 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8939set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8941$as_echo_n "checking for $ac_word... " >&6; } 8942if ${ac_cv_prog_DSYMUTIL+:} false; then : 8943 $as_echo_n "(cached) " >&6 8944else 8945 if test -n "$DSYMUTIL"; then 8946 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8947else 8948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8949for as_dir in $PATH 8950do 8951 IFS=$as_save_IFS 8952 test -z "$as_dir" && as_dir=. 8953 for ac_exec_ext in '' $ac_executable_extensions; do 8954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8955 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8957 break 2 8958 fi 8959done 8960 done 8961IFS=$as_save_IFS 8962 8963fi 8964fi 8965DSYMUTIL=$ac_cv_prog_DSYMUTIL 8966if test -n "$DSYMUTIL"; then 8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8968$as_echo "$DSYMUTIL" >&6; } 8969else 8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8971$as_echo "no" >&6; } 8972fi 8973 8974 8975fi 8976if test -z "$ac_cv_prog_DSYMUTIL"; then 8977 ac_ct_DSYMUTIL=$DSYMUTIL 8978 # Extract the first word of "dsymutil", so it can be a program name with args. 8979set dummy dsymutil; ac_word=$2 8980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8981$as_echo_n "checking for $ac_word... " >&6; } 8982if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8983 $as_echo_n "(cached) " >&6 8984else 8985 if test -n "$ac_ct_DSYMUTIL"; then 8986 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8987else 8988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8989for as_dir in $PATH 8990do 8991 IFS=$as_save_IFS 8992 test -z "$as_dir" && as_dir=. 8993 for ac_exec_ext in '' $ac_executable_extensions; do 8994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8995 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8997 break 2 8998 fi 8999done 9000 done 9001IFS=$as_save_IFS 9002 9003fi 9004fi 9005ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9006if test -n "$ac_ct_DSYMUTIL"; then 9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9008$as_echo "$ac_ct_DSYMUTIL" >&6; } 9009else 9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9011$as_echo "no" >&6; } 9012fi 9013 9014 if test "x$ac_ct_DSYMUTIL" = x; then 9015 DSYMUTIL=":" 9016 else 9017 case $cross_compiling:$ac_tool_warned in 9018yes:) 9019{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9020$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9021ac_tool_warned=yes ;; 9022esac 9023 DSYMUTIL=$ac_ct_DSYMUTIL 9024 fi 9025else 9026 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9027fi 9028 9029 if test -n "$ac_tool_prefix"; then 9030 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9031set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9033$as_echo_n "checking for $ac_word... " >&6; } 9034if ${ac_cv_prog_NMEDIT+:} false; then : 9035 $as_echo_n "(cached) " >&6 9036else 9037 if test -n "$NMEDIT"; then 9038 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9039else 9040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9041for as_dir in $PATH 9042do 9043 IFS=$as_save_IFS 9044 test -z "$as_dir" && as_dir=. 9045 for ac_exec_ext in '' $ac_executable_extensions; do 9046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9047 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9049 break 2 9050 fi 9051done 9052 done 9053IFS=$as_save_IFS 9054 9055fi 9056fi 9057NMEDIT=$ac_cv_prog_NMEDIT 9058if test -n "$NMEDIT"; then 9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9060$as_echo "$NMEDIT" >&6; } 9061else 9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9063$as_echo "no" >&6; } 9064fi 9065 9066 9067fi 9068if test -z "$ac_cv_prog_NMEDIT"; then 9069 ac_ct_NMEDIT=$NMEDIT 9070 # Extract the first word of "nmedit", so it can be a program name with args. 9071set dummy nmedit; ac_word=$2 9072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9073$as_echo_n "checking for $ac_word... " >&6; } 9074if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 9075 $as_echo_n "(cached) " >&6 9076else 9077 if test -n "$ac_ct_NMEDIT"; then 9078 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9079else 9080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9081for as_dir in $PATH 9082do 9083 IFS=$as_save_IFS 9084 test -z "$as_dir" && as_dir=. 9085 for ac_exec_ext in '' $ac_executable_extensions; do 9086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9087 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9089 break 2 9090 fi 9091done 9092 done 9093IFS=$as_save_IFS 9094 9095fi 9096fi 9097ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9098if test -n "$ac_ct_NMEDIT"; then 9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9100$as_echo "$ac_ct_NMEDIT" >&6; } 9101else 9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9103$as_echo "no" >&6; } 9104fi 9105 9106 if test "x$ac_ct_NMEDIT" = x; then 9107 NMEDIT=":" 9108 else 9109 case $cross_compiling:$ac_tool_warned in 9110yes:) 9111{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9112$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9113ac_tool_warned=yes ;; 9114esac 9115 NMEDIT=$ac_ct_NMEDIT 9116 fi 9117else 9118 NMEDIT="$ac_cv_prog_NMEDIT" 9119fi 9120 9121 if test -n "$ac_tool_prefix"; then 9122 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9123set dummy ${ac_tool_prefix}lipo; ac_word=$2 9124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9125$as_echo_n "checking for $ac_word... " >&6; } 9126if ${ac_cv_prog_LIPO+:} false; then : 9127 $as_echo_n "(cached) " >&6 9128else 9129 if test -n "$LIPO"; then 9130 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9131else 9132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9133for as_dir in $PATH 9134do 9135 IFS=$as_save_IFS 9136 test -z "$as_dir" && as_dir=. 9137 for ac_exec_ext in '' $ac_executable_extensions; do 9138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9139 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9141 break 2 9142 fi 9143done 9144 done 9145IFS=$as_save_IFS 9146 9147fi 9148fi 9149LIPO=$ac_cv_prog_LIPO 9150if test -n "$LIPO"; then 9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9152$as_echo "$LIPO" >&6; } 9153else 9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9155$as_echo "no" >&6; } 9156fi 9157 9158 9159fi 9160if test -z "$ac_cv_prog_LIPO"; then 9161 ac_ct_LIPO=$LIPO 9162 # Extract the first word of "lipo", so it can be a program name with args. 9163set dummy lipo; ac_word=$2 9164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9165$as_echo_n "checking for $ac_word... " >&6; } 9166if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 9167 $as_echo_n "(cached) " >&6 9168else 9169 if test -n "$ac_ct_LIPO"; then 9170 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9171else 9172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9173for as_dir in $PATH 9174do 9175 IFS=$as_save_IFS 9176 test -z "$as_dir" && as_dir=. 9177 for ac_exec_ext in '' $ac_executable_extensions; do 9178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9179 ac_cv_prog_ac_ct_LIPO="lipo" 9180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9181 break 2 9182 fi 9183done 9184 done 9185IFS=$as_save_IFS 9186 9187fi 9188fi 9189ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9190if test -n "$ac_ct_LIPO"; then 9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9192$as_echo "$ac_ct_LIPO" >&6; } 9193else 9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9195$as_echo "no" >&6; } 9196fi 9197 9198 if test "x$ac_ct_LIPO" = x; then 9199 LIPO=":" 9200 else 9201 case $cross_compiling:$ac_tool_warned in 9202yes:) 9203{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9204$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9205ac_tool_warned=yes ;; 9206esac 9207 LIPO=$ac_ct_LIPO 9208 fi 9209else 9210 LIPO="$ac_cv_prog_LIPO" 9211fi 9212 9213 if test -n "$ac_tool_prefix"; then 9214 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9215set dummy ${ac_tool_prefix}otool; ac_word=$2 9216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9217$as_echo_n "checking for $ac_word... " >&6; } 9218if ${ac_cv_prog_OTOOL+:} false; then : 9219 $as_echo_n "(cached) " >&6 9220else 9221 if test -n "$OTOOL"; then 9222 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9223else 9224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9225for as_dir in $PATH 9226do 9227 IFS=$as_save_IFS 9228 test -z "$as_dir" && as_dir=. 9229 for ac_exec_ext in '' $ac_executable_extensions; do 9230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9231 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9233 break 2 9234 fi 9235done 9236 done 9237IFS=$as_save_IFS 9238 9239fi 9240fi 9241OTOOL=$ac_cv_prog_OTOOL 9242if test -n "$OTOOL"; then 9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9244$as_echo "$OTOOL" >&6; } 9245else 9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9247$as_echo "no" >&6; } 9248fi 9249 9250 9251fi 9252if test -z "$ac_cv_prog_OTOOL"; then 9253 ac_ct_OTOOL=$OTOOL 9254 # Extract the first word of "otool", so it can be a program name with args. 9255set dummy otool; ac_word=$2 9256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9257$as_echo_n "checking for $ac_word... " >&6; } 9258if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9259 $as_echo_n "(cached) " >&6 9260else 9261 if test -n "$ac_ct_OTOOL"; then 9262 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9263else 9264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9265for as_dir in $PATH 9266do 9267 IFS=$as_save_IFS 9268 test -z "$as_dir" && as_dir=. 9269 for ac_exec_ext in '' $ac_executable_extensions; do 9270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9271 ac_cv_prog_ac_ct_OTOOL="otool" 9272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9273 break 2 9274 fi 9275done 9276 done 9277IFS=$as_save_IFS 9278 9279fi 9280fi 9281ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9282if test -n "$ac_ct_OTOOL"; then 9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9284$as_echo "$ac_ct_OTOOL" >&6; } 9285else 9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9287$as_echo "no" >&6; } 9288fi 9289 9290 if test "x$ac_ct_OTOOL" = x; then 9291 OTOOL=":" 9292 else 9293 case $cross_compiling:$ac_tool_warned in 9294yes:) 9295{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9297ac_tool_warned=yes ;; 9298esac 9299 OTOOL=$ac_ct_OTOOL 9300 fi 9301else 9302 OTOOL="$ac_cv_prog_OTOOL" 9303fi 9304 9305 if test -n "$ac_tool_prefix"; then 9306 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9307set dummy ${ac_tool_prefix}otool64; ac_word=$2 9308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9309$as_echo_n "checking for $ac_word... " >&6; } 9310if ${ac_cv_prog_OTOOL64+:} false; then : 9311 $as_echo_n "(cached) " >&6 9312else 9313 if test -n "$OTOOL64"; then 9314 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9315else 9316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9317for as_dir in $PATH 9318do 9319 IFS=$as_save_IFS 9320 test -z "$as_dir" && as_dir=. 9321 for ac_exec_ext in '' $ac_executable_extensions; do 9322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9323 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9325 break 2 9326 fi 9327done 9328 done 9329IFS=$as_save_IFS 9330 9331fi 9332fi 9333OTOOL64=$ac_cv_prog_OTOOL64 9334if test -n "$OTOOL64"; then 9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9336$as_echo "$OTOOL64" >&6; } 9337else 9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9339$as_echo "no" >&6; } 9340fi 9341 9342 9343fi 9344if test -z "$ac_cv_prog_OTOOL64"; then 9345 ac_ct_OTOOL64=$OTOOL64 9346 # Extract the first word of "otool64", so it can be a program name with args. 9347set dummy otool64; ac_word=$2 9348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9349$as_echo_n "checking for $ac_word... " >&6; } 9350if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 9351 $as_echo_n "(cached) " >&6 9352else 9353 if test -n "$ac_ct_OTOOL64"; then 9354 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9355else 9356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9357for as_dir in $PATH 9358do 9359 IFS=$as_save_IFS 9360 test -z "$as_dir" && as_dir=. 9361 for ac_exec_ext in '' $ac_executable_extensions; do 9362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9363 ac_cv_prog_ac_ct_OTOOL64="otool64" 9364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9365 break 2 9366 fi 9367done 9368 done 9369IFS=$as_save_IFS 9370 9371fi 9372fi 9373ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9374if test -n "$ac_ct_OTOOL64"; then 9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9376$as_echo "$ac_ct_OTOOL64" >&6; } 9377else 9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9379$as_echo "no" >&6; } 9380fi 9381 9382 if test "x$ac_ct_OTOOL64" = x; then 9383 OTOOL64=":" 9384 else 9385 case $cross_compiling:$ac_tool_warned in 9386yes:) 9387{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9388$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9389ac_tool_warned=yes ;; 9390esac 9391 OTOOL64=$ac_ct_OTOOL64 9392 fi 9393else 9394 OTOOL64="$ac_cv_prog_OTOOL64" 9395fi 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9424$as_echo_n "checking for -single_module linker flag... " >&6; } 9425if ${lt_cv_apple_cc_single_mod+:} false; then : 9426 $as_echo_n "(cached) " >&6 9427else 9428 lt_cv_apple_cc_single_mod=no 9429 if test -z "$LT_MULTI_MODULE"; then 9430 # By default we will add the -single_module flag. You can override 9431 # by either setting the environment variable LT_MULTI_MODULE 9432 # non-empty at configure time, or by adding -multi_module to the 9433 # link flags. 9434 rm -rf libconftest.dylib* 9435 echo "int foo(void){return 1;}" > conftest.c 9436 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9437-dynamiclib -Wl,-single_module conftest.c" >&5 9438 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9439 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9440 _lt_result=$? 9441 # If there is a non-empty error log, and "single_module" 9442 # appears in it, assume the flag caused a linker warning 9443 if test -s conftest.err && $GREP single_module conftest.err; then 9444 cat conftest.err >&5 9445 # Otherwise, if the output was created with a 0 exit code from 9446 # the compiler, it worked. 9447 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 9448 lt_cv_apple_cc_single_mod=yes 9449 else 9450 cat conftest.err >&5 9451 fi 9452 rm -rf libconftest.dylib* 9453 rm -f conftest.* 9454 fi 9455fi 9456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9457$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 9458 9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9460$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 9461if ${lt_cv_ld_exported_symbols_list+:} false; then : 9462 $as_echo_n "(cached) " >&6 9463else 9464 lt_cv_ld_exported_symbols_list=no 9465 save_LDFLAGS=$LDFLAGS 9466 echo "_main" > conftest.sym 9467 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9469/* end confdefs.h. */ 9470 9471int 9472main () 9473{ 9474 9475 ; 9476 return 0; 9477} 9478_ACEOF 9479if ac_fn_c_try_link "$LINENO"; then : 9480 lt_cv_ld_exported_symbols_list=yes 9481else 9482 lt_cv_ld_exported_symbols_list=no 9483fi 9484rm -f core conftest.err conftest.$ac_objext \ 9485 conftest$ac_exeext conftest.$ac_ext 9486 LDFLAGS=$save_LDFLAGS 9487 9488fi 9489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9490$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 9491 9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9493$as_echo_n "checking for -force_load linker flag... " >&6; } 9494if ${lt_cv_ld_force_load+:} false; then : 9495 $as_echo_n "(cached) " >&6 9496else 9497 lt_cv_ld_force_load=no 9498 cat > conftest.c << _LT_EOF 9499int forced_loaded() { return 2;} 9500_LT_EOF 9501 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9502 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9503 echo "$AR cr libconftest.a conftest.o" >&5 9504 $AR cr libconftest.a conftest.o 2>&5 9505 echo "$RANLIB libconftest.a" >&5 9506 $RANLIB libconftest.a 2>&5 9507 cat > conftest.c << _LT_EOF 9508int main() { return 0;} 9509_LT_EOF 9510 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9511 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9512 _lt_result=$? 9513 if test -s conftest.err && $GREP force_load conftest.err; then 9514 cat conftest.err >&5 9515 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 9516 lt_cv_ld_force_load=yes 9517 else 9518 cat conftest.err >&5 9519 fi 9520 rm -f conftest.err libconftest.a conftest conftest.c 9521 rm -rf conftest.dSYM 9522 9523fi 9524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9525$as_echo "$lt_cv_ld_force_load" >&6; } 9526 case $host_os in 9527 rhapsody* | darwin1.[012]) 9528 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 9529 darwin1.*) 9530 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9531 darwin*) # darwin 5.x on 9532 # if running on 10.5 or later, the deployment target defaults 9533 # to the OS version, if on x86, and 10.4, the deployment 9534 # target defaults to 10.4. Don't you love it? 9535 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9536 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9537 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9538 10.[012][,.]*) 9539 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9540 10.*) 9541 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9542 esac 9543 ;; 9544 esac 9545 if test yes = "$lt_cv_apple_cc_single_mod"; then 9546 _lt_dar_single_mod='$single_module' 9547 fi 9548 if test yes = "$lt_cv_ld_exported_symbols_list"; then 9549 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 9550 else 9551 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 9552 fi 9553 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 9554 _lt_dsymutil='~$DSYMUTIL $lib || :' 9555 else 9556 _lt_dsymutil= 9557 fi 9558 ;; 9559 esac 9560 9561# func_munge_path_list VARIABLE PATH 9562# ----------------------------------- 9563# VARIABLE is name of variable containing _space_ separated list of 9564# directories to be munged by the contents of PATH, which is string 9565# having a format: 9566# "DIR[:DIR]:" 9567# string "DIR[ DIR]" will be prepended to VARIABLE 9568# ":DIR[:DIR]" 9569# string "DIR[ DIR]" will be appended to VARIABLE 9570# "DIRP[:DIRP]::[DIRA:]DIRA" 9571# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9572# "DIRA[ DIRA]" will be appended to VARIABLE 9573# "DIR[:DIR]" 9574# VARIABLE will be replaced by "DIR[ DIR]" 9575func_munge_path_list () 9576{ 9577 case x$2 in 9578 x) 9579 ;; 9580 *:) 9581 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9582 ;; 9583 x:*) 9584 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9585 ;; 9586 *::*) 9587 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9588 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9589 ;; 9590 *) 9591 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9592 ;; 9593 esac 9594} 9595 9596for ac_header in dlfcn.h 9597do : 9598 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9599" 9600if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9601 cat >>confdefs.h <<_ACEOF 9602#define HAVE_DLFCN_H 1 9603_ACEOF 9604 9605fi 9606 9607done 9608 9609 9610 9611 9612 9613# Set options 9614 9615 9616 9617 enable_dlopen=no 9618 9619 9620 enable_win32_dll=no 9621 9622 9623 # Check whether --enable-shared was given. 9624if test "${enable_shared+set}" = set; then : 9625 enableval=$enable_shared; p=${PACKAGE-default} 9626 case $enableval in 9627 yes) enable_shared=yes ;; 9628 no) enable_shared=no ;; 9629 *) 9630 enable_shared=no 9631 # Look at the argument we got. We use all the common list separators. 9632 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9633 for pkg in $enableval; do 9634 IFS=$lt_save_ifs 9635 if test "X$pkg" = "X$p"; then 9636 enable_shared=yes 9637 fi 9638 done 9639 IFS=$lt_save_ifs 9640 ;; 9641 esac 9642else 9643 enable_shared=yes 9644fi 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656# Check whether --with-pic was given. 9657if test "${with_pic+set}" = set; then : 9658 withval=$with_pic; lt_p=${PACKAGE-default} 9659 case $withval in 9660 yes|no) pic_mode=$withval ;; 9661 *) 9662 pic_mode=default 9663 # Look at the argument we got. We use all the common list separators. 9664 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9665 for lt_pkg in $withval; do 9666 IFS=$lt_save_ifs 9667 if test "X$lt_pkg" = "X$lt_p"; then 9668 pic_mode=yes 9669 fi 9670 done 9671 IFS=$lt_save_ifs 9672 ;; 9673 esac 9674else 9675 pic_mode=default 9676fi 9677 9678 9679 9680 9681 9682 9683 9684 9685 # Check whether --enable-fast-install was given. 9686if test "${enable_fast_install+set}" = set; then : 9687 enableval=$enable_fast_install; p=${PACKAGE-default} 9688 case $enableval in 9689 yes) enable_fast_install=yes ;; 9690 no) enable_fast_install=no ;; 9691 *) 9692 enable_fast_install=no 9693 # Look at the argument we got. We use all the common list separators. 9694 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9695 for pkg in $enableval; do 9696 IFS=$lt_save_ifs 9697 if test "X$pkg" = "X$p"; then 9698 enable_fast_install=yes 9699 fi 9700 done 9701 IFS=$lt_save_ifs 9702 ;; 9703 esac 9704else 9705 enable_fast_install=yes 9706fi 9707 9708 9709 9710 9711 9712 9713 9714 9715 shared_archive_member_spec= 9716case $host,$enable_shared in 9717power*-*-aix[5-9]*,yes) 9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9719$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 9720 9721# Check whether --with-aix-soname was given. 9722if test "${with_aix_soname+set}" = set; then : 9723 withval=$with_aix_soname; case $withval in 9724 aix|svr4|both) 9725 ;; 9726 *) 9727 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9728 ;; 9729 esac 9730 lt_cv_with_aix_soname=$with_aix_soname 9731else 9732 if ${lt_cv_with_aix_soname+:} false; then : 9733 $as_echo_n "(cached) " >&6 9734else 9735 lt_cv_with_aix_soname=aix 9736fi 9737 9738 with_aix_soname=$lt_cv_with_aix_soname 9739fi 9740 9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9742$as_echo "$with_aix_soname" >&6; } 9743 if test aix != "$with_aix_soname"; then 9744 # For the AIX way of multilib, we name the shared archive member 9745 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9746 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9747 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9748 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9749 if test 64 = "${OBJECT_MODE-32}"; then 9750 shared_archive_member_spec=shr_64 9751 else 9752 shared_archive_member_spec=shr 9753 fi 9754 fi 9755 ;; 9756*) 9757 with_aix_soname=aix 9758 ;; 9759esac 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770# This can be used to rebuild libtool when needed 9771LIBTOOL_DEPS=$ltmain 9772 9773# Always use our own libtool. 9774LIBTOOL='$(SHELL) /usr/local/bin/libtool' 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805test -z "$LN_S" && LN_S="ln -s" 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820if test -n "${ZSH_VERSION+set}"; then 9821 setopt NO_GLOB_SUBST 9822fi 9823 9824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9825$as_echo_n "checking for objdir... " >&6; } 9826if ${lt_cv_objdir+:} false; then : 9827 $as_echo_n "(cached) " >&6 9828else 9829 rm -f .libs 2>/dev/null 9830mkdir .libs 2>/dev/null 9831if test -d .libs; then 9832 lt_cv_objdir=.libs 9833else 9834 # MS-DOS does not allow filenames that begin with a dot. 9835 lt_cv_objdir=_libs 9836fi 9837rmdir .libs 2>/dev/null 9838fi 9839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9840$as_echo "$lt_cv_objdir" >&6; } 9841objdir=$lt_cv_objdir 9842 9843 9844 9845 9846 9847cat >>confdefs.h <<_ACEOF 9848#define LT_OBJDIR "$lt_cv_objdir/" 9849_ACEOF 9850 9851 9852 9853 9854case $host_os in 9855aix3*) 9856 # AIX sometimes has problems with the GCC collect2 program. For some 9857 # reason, if we set the COLLECT_NAMES environment variable, the problems 9858 # vanish in a puff of smoke. 9859 if test set != "${COLLECT_NAMES+set}"; then 9860 COLLECT_NAMES= 9861 export COLLECT_NAMES 9862 fi 9863 ;; 9864esac 9865 9866# Global variables: 9867ofile=libtool 9868can_build_shared=yes 9869 9870# All known linkers require a '.a' archive for static linking (except MSVC, 9871# which needs '.lib'). 9872libext=a 9873 9874with_gnu_ld=$lt_cv_prog_gnu_ld 9875 9876old_CC=$CC 9877old_CFLAGS=$CFLAGS 9878 9879# Set sane defaults for various variables 9880test -z "$CC" && CC=cc 9881test -z "$LTCC" && LTCC=$CC 9882test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9883test -z "$LD" && LD=ld 9884test -z "$ac_objext" && ac_objext=o 9885 9886func_cc_basename $compiler 9887cc_basename=$func_cc_basename_result 9888 9889 9890# Only perform the check for file, if the check method requires it 9891test -z "$MAGIC_CMD" && MAGIC_CMD=file 9892case $deplibs_check_method in 9893file_magic*) 9894 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9896$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9897if ${lt_cv_path_MAGIC_CMD+:} false; then : 9898 $as_echo_n "(cached) " >&6 9899else 9900 case $MAGIC_CMD in 9901[\\/*] | ?:[\\/]*) 9902 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9903 ;; 9904*) 9905 lt_save_MAGIC_CMD=$MAGIC_CMD 9906 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9907 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9908 for ac_dir in $ac_dummy; do 9909 IFS=$lt_save_ifs 9910 test -z "$ac_dir" && ac_dir=. 9911 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9912 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9913 if test -n "$file_magic_test_file"; then 9914 case $deplibs_check_method in 9915 "file_magic "*) 9916 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9917 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9918 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9919 $EGREP "$file_magic_regex" > /dev/null; then 9920 : 9921 else 9922 cat <<_LT_EOF 1>&2 9923 9924*** Warning: the command libtool uses to detect shared libraries, 9925*** $file_magic_cmd, produces output that libtool cannot recognize. 9926*** The result is that libtool may fail to recognize shared libraries 9927*** as such. This will affect the creation of libtool libraries that 9928*** depend on shared libraries, but programs linked with such libtool 9929*** libraries will work regardless of this problem. Nevertheless, you 9930*** may want to report the problem to your system manager and/or to 9931*** bug-libtool@gnu.org 9932 9933_LT_EOF 9934 fi ;; 9935 esac 9936 fi 9937 break 9938 fi 9939 done 9940 IFS=$lt_save_ifs 9941 MAGIC_CMD=$lt_save_MAGIC_CMD 9942 ;; 9943esac 9944fi 9945 9946MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9947if test -n "$MAGIC_CMD"; then 9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9949$as_echo "$MAGIC_CMD" >&6; } 9950else 9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9952$as_echo "no" >&6; } 9953fi 9954 9955 9956 9957 9958 9959if test -z "$lt_cv_path_MAGIC_CMD"; then 9960 if test -n "$ac_tool_prefix"; then 9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9962$as_echo_n "checking for file... " >&6; } 9963if ${lt_cv_path_MAGIC_CMD+:} false; then : 9964 $as_echo_n "(cached) " >&6 9965else 9966 case $MAGIC_CMD in 9967[\\/*] | ?:[\\/]*) 9968 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9969 ;; 9970*) 9971 lt_save_MAGIC_CMD=$MAGIC_CMD 9972 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9973 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9974 for ac_dir in $ac_dummy; do 9975 IFS=$lt_save_ifs 9976 test -z "$ac_dir" && ac_dir=. 9977 if test -f "$ac_dir/file"; then 9978 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9979 if test -n "$file_magic_test_file"; then 9980 case $deplibs_check_method in 9981 "file_magic "*) 9982 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9983 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9984 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9985 $EGREP "$file_magic_regex" > /dev/null; then 9986 : 9987 else 9988 cat <<_LT_EOF 1>&2 9989 9990*** Warning: the command libtool uses to detect shared libraries, 9991*** $file_magic_cmd, produces output that libtool cannot recognize. 9992*** The result is that libtool may fail to recognize shared libraries 9993*** as such. This will affect the creation of libtool libraries that 9994*** depend on shared libraries, but programs linked with such libtool 9995*** libraries will work regardless of this problem. Nevertheless, you 9996*** may want to report the problem to your system manager and/or to 9997*** bug-libtool@gnu.org 9998 9999_LT_EOF 10000 fi ;; 10001 esac 10002 fi 10003 break 10004 fi 10005 done 10006 IFS=$lt_save_ifs 10007 MAGIC_CMD=$lt_save_MAGIC_CMD 10008 ;; 10009esac 10010fi 10011 10012MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10013if test -n "$MAGIC_CMD"; then 10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10015$as_echo "$MAGIC_CMD" >&6; } 10016else 10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10018$as_echo "no" >&6; } 10019fi 10020 10021 10022 else 10023 MAGIC_CMD=: 10024 fi 10025fi 10026 10027 fi 10028 ;; 10029esac 10030 10031# Use C for the default configuration in the libtool script 10032 10033lt_save_CC=$CC 10034ac_ext=c 10035ac_cpp='$CPP $CPPFLAGS' 10036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10038ac_compiler_gnu=$ac_cv_c_compiler_gnu 10039 10040 10041# Source file extension for C test sources. 10042ac_ext=c 10043 10044# Object file extension for compiled C test sources. 10045objext=o 10046objext=$objext 10047 10048# Code to be used in simple compile tests 10049lt_simple_compile_test_code="int some_variable = 0;" 10050 10051# Code to be used in simple link tests 10052lt_simple_link_test_code='int main(){return(0);}' 10053 10054 10055 10056 10057 10058 10059 10060# If no C compiler was specified, use CC. 10061LTCC=${LTCC-"$CC"} 10062 10063# If no C compiler flags were specified, use CFLAGS. 10064LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10065 10066# Allow CC to be a program name with arguments. 10067compiler=$CC 10068 10069# Save the default compiler, since it gets overwritten when the other 10070# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10071compiler_DEFAULT=$CC 10072 10073# save warnings/boilerplate of simple test code 10074ac_outfile=conftest.$ac_objext 10075echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10076eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10077_lt_compiler_boilerplate=`cat conftest.err` 10078$RM conftest* 10079 10080ac_outfile=conftest.$ac_objext 10081echo "$lt_simple_link_test_code" >conftest.$ac_ext 10082eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10083_lt_linker_boilerplate=`cat conftest.err` 10084$RM -r conftest* 10085 10086 10087## CAVEAT EMPTOR: 10088## There is no encapsulation within the following macros, do not change 10089## the running order or otherwise move them around unless you know exactly 10090## what you are doing... 10091if test -n "$compiler"; then 10092 10093lt_prog_compiler_no_builtin_flag= 10094 10095if test yes = "$GCC"; then 10096 case $cc_basename in 10097 nvcc*) 10098 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10099 *) 10100 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10101 esac 10102 10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10104$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10105if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10106 $as_echo_n "(cached) " >&6 10107else 10108 lt_cv_prog_compiler_rtti_exceptions=no 10109 ac_outfile=conftest.$ac_objext 10110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10111 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 10112 # Insert the option either (1) after the last *FLAGS variable, or 10113 # (2) before a word containing "conftest.", or (3) at the end. 10114 # Note that $ac_compile itself does not contain backslashes and begins 10115 # with a dollar sign (not a hyphen), so the echo should work correctly. 10116 # The option is referenced via a variable to avoid confusing sed. 10117 lt_compile=`echo "$ac_compile" | $SED \ 10118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10120 -e 's:$: $lt_compiler_flag:'` 10121 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10122 (eval "$lt_compile" 2>conftest.err) 10123 ac_status=$? 10124 cat conftest.err >&5 10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10126 if (exit $ac_status) && test -s "$ac_outfile"; then 10127 # The compiler can only warn and ignore the option if not recognized 10128 # So say no if there are warnings other than the usual output. 10129 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10131 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10132 lt_cv_prog_compiler_rtti_exceptions=yes 10133 fi 10134 fi 10135 $RM conftest* 10136 10137fi 10138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10139$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10140 10141if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 10142 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10143else 10144 : 10145fi 10146 10147fi 10148 10149 10150 10151 10152 10153 10154 lt_prog_compiler_wl= 10155lt_prog_compiler_pic= 10156lt_prog_compiler_static= 10157 10158 10159 if test yes = "$GCC"; then 10160 lt_prog_compiler_wl='-Wl,' 10161 lt_prog_compiler_static='-static' 10162 10163 case $host_os in 10164 aix*) 10165 # All AIX code is PIC. 10166 if test ia64 = "$host_cpu"; then 10167 # AIX 5 now supports IA64 processor 10168 lt_prog_compiler_static='-Bstatic' 10169 fi 10170 lt_prog_compiler_pic='-fPIC' 10171 ;; 10172 10173 amigaos*) 10174 case $host_cpu in 10175 powerpc) 10176 # see comment about AmigaOS4 .so support 10177 lt_prog_compiler_pic='-fPIC' 10178 ;; 10179 m68k) 10180 # FIXME: we need at least 68020 code to build shared libraries, but 10181 # adding the '-m68020' flag to GCC prevents building anything better, 10182 # like '-m68040'. 10183 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10184 ;; 10185 esac 10186 ;; 10187 10188 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10189 # PIC is the default for these OSes. 10190 ;; 10191 10192 mingw* | cygwin* | pw32* | os2* | cegcc*) 10193 # This hack is so that the source file can tell whether it is being 10194 # built for inclusion in a dll (and should export symbols for example). 10195 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10196 # (--disable-auto-import) libraries 10197 lt_prog_compiler_pic='-DDLL_EXPORT' 10198 case $host_os in 10199 os2*) 10200 lt_prog_compiler_static='$wl-static' 10201 ;; 10202 esac 10203 ;; 10204 10205 darwin* | rhapsody*) 10206 # PIC is the default on this platform 10207 # Common symbols not allowed in MH_DYLIB files 10208 lt_prog_compiler_pic='-fno-common' 10209 ;; 10210 10211 haiku*) 10212 # PIC is the default for Haiku. 10213 # The "-static" flag exists, but is broken. 10214 lt_prog_compiler_static= 10215 ;; 10216 10217 hpux*) 10218 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10219 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10220 # sets the default TLS model and affects inlining. 10221 case $host_cpu in 10222 hppa*64*) 10223 # +Z the default 10224 ;; 10225 *) 10226 lt_prog_compiler_pic='-fPIC' 10227 ;; 10228 esac 10229 ;; 10230 10231 interix[3-9]*) 10232 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10233 # Instead, we relocate shared libraries at runtime. 10234 ;; 10235 10236 msdosdjgpp*) 10237 # Just because we use GCC doesn't mean we suddenly get shared libraries 10238 # on systems that don't support them. 10239 lt_prog_compiler_can_build_shared=no 10240 enable_shared=no 10241 ;; 10242 10243 *nto* | *qnx*) 10244 # QNX uses GNU C++, but need to define -shared option too, otherwise 10245 # it will coredump. 10246 lt_prog_compiler_pic='-fPIC -shared' 10247 ;; 10248 10249 sysv4*MP*) 10250 if test -d /usr/nec; then 10251 lt_prog_compiler_pic=-Kconform_pic 10252 fi 10253 ;; 10254 10255 *) 10256 lt_prog_compiler_pic='-fPIC' 10257 ;; 10258 esac 10259 10260 case $cc_basename in 10261 nvcc*) # Cuda Compiler Driver 2.2 10262 lt_prog_compiler_wl='-Xlinker ' 10263 if test -n "$lt_prog_compiler_pic"; then 10264 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10265 fi 10266 ;; 10267 esac 10268 else 10269 # PORTME Check for flag to pass linker flags through the system compiler. 10270 case $host_os in 10271 aix*) 10272 lt_prog_compiler_wl='-Wl,' 10273 if test ia64 = "$host_cpu"; then 10274 # AIX 5 now supports IA64 processor 10275 lt_prog_compiler_static='-Bstatic' 10276 else 10277 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10278 fi 10279 ;; 10280 10281 darwin* | rhapsody*) 10282 # PIC is the default on this platform 10283 # Common symbols not allowed in MH_DYLIB files 10284 lt_prog_compiler_pic='-fno-common' 10285 case $cc_basename in 10286 nagfor*) 10287 # NAG Fortran compiler 10288 lt_prog_compiler_wl='-Wl,-Wl,,' 10289 lt_prog_compiler_pic='-PIC' 10290 lt_prog_compiler_static='-Bstatic' 10291 ;; 10292 esac 10293 ;; 10294 10295 mingw* | cygwin* | pw32* | os2* | cegcc*) 10296 # This hack is so that the source file can tell whether it is being 10297 # built for inclusion in a dll (and should export symbols for example). 10298 lt_prog_compiler_pic='-DDLL_EXPORT' 10299 case $host_os in 10300 os2*) 10301 lt_prog_compiler_static='$wl-static' 10302 ;; 10303 esac 10304 ;; 10305 10306 hpux9* | hpux10* | hpux11*) 10307 lt_prog_compiler_wl='-Wl,' 10308 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10309 # not for PA HP-UX. 10310 case $host_cpu in 10311 hppa*64*|ia64*) 10312 # +Z the default 10313 ;; 10314 *) 10315 lt_prog_compiler_pic='+Z' 10316 ;; 10317 esac 10318 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10319 lt_prog_compiler_static='$wl-a ${wl}archive' 10320 ;; 10321 10322 irix5* | irix6* | nonstopux*) 10323 lt_prog_compiler_wl='-Wl,' 10324 # PIC (with -KPIC) is the default. 10325 lt_prog_compiler_static='-non_shared' 10326 ;; 10327 10328 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10329 case $cc_basename in 10330 # old Intel for x86_64, which still supported -KPIC. 10331 ecc*) 10332 lt_prog_compiler_wl='-Wl,' 10333 lt_prog_compiler_pic='-KPIC' 10334 lt_prog_compiler_static='-static' 10335 ;; 10336 # flang / f18. f95 an alias for gfortran or flang on Debian 10337 flang* | f18* | f95*) 10338 lt_prog_compiler_wl='-Wl,' 10339 lt_prog_compiler_pic='-fPIC' 10340 lt_prog_compiler_static='-static' 10341 ;; 10342 # icc used to be incompatible with GCC. 10343 # ICC 10 doesn't accept -KPIC any more. 10344 icc* | ifort*) 10345 lt_prog_compiler_wl='-Wl,' 10346 lt_prog_compiler_pic='-fPIC' 10347 lt_prog_compiler_static='-static' 10348 ;; 10349 # Lahey Fortran 8.1. 10350 lf95*) 10351 lt_prog_compiler_wl='-Wl,' 10352 lt_prog_compiler_pic='--shared' 10353 lt_prog_compiler_static='--static' 10354 ;; 10355 nagfor*) 10356 # NAG Fortran compiler 10357 lt_prog_compiler_wl='-Wl,-Wl,,' 10358 lt_prog_compiler_pic='-PIC' 10359 lt_prog_compiler_static='-Bstatic' 10360 ;; 10361 tcc*) 10362 # Fabrice Bellard et al's Tiny C Compiler 10363 lt_prog_compiler_wl='-Wl,' 10364 lt_prog_compiler_pic='-fPIC' 10365 lt_prog_compiler_static='-static' 10366 ;; 10367 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10368 # Portland Group compilers (*not* the Pentium gcc compiler, 10369 # which looks to be a dead project) 10370 lt_prog_compiler_wl='-Wl,' 10371 lt_prog_compiler_pic='-fpic' 10372 lt_prog_compiler_static='-Bstatic' 10373 ;; 10374 ccc*) 10375 lt_prog_compiler_wl='-Wl,' 10376 # All Alpha code is PIC. 10377 lt_prog_compiler_static='-non_shared' 10378 ;; 10379 xl* | bgxl* | bgf* | mpixl*) 10380 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10381 lt_prog_compiler_wl='-Wl,' 10382 lt_prog_compiler_pic='-qpic' 10383 lt_prog_compiler_static='-qstaticlink' 10384 ;; 10385 *) 10386 case `$CC -V 2>&1 | sed 5q` in 10387 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10388 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10389 lt_prog_compiler_pic='-KPIC' 10390 lt_prog_compiler_static='-Bstatic' 10391 lt_prog_compiler_wl='' 10392 ;; 10393 *Sun\ F* | *Sun*Fortran*) 10394 lt_prog_compiler_pic='-KPIC' 10395 lt_prog_compiler_static='-Bstatic' 10396 lt_prog_compiler_wl='-Qoption ld ' 10397 ;; 10398 *Sun\ C*) 10399 # Sun C 5.9 10400 lt_prog_compiler_pic='-KPIC' 10401 lt_prog_compiler_static='-Bstatic' 10402 lt_prog_compiler_wl='-Wl,' 10403 ;; 10404 *Intel*\ [CF]*Compiler*) 10405 lt_prog_compiler_wl='-Wl,' 10406 lt_prog_compiler_pic='-fPIC' 10407 lt_prog_compiler_static='-static' 10408 ;; 10409 *Portland\ Group*) 10410 lt_prog_compiler_wl='-Wl,' 10411 lt_prog_compiler_pic='-fpic' 10412 lt_prog_compiler_static='-Bstatic' 10413 ;; 10414 esac 10415 ;; 10416 esac 10417 ;; 10418 10419 newsos6) 10420 lt_prog_compiler_pic='-KPIC' 10421 lt_prog_compiler_static='-Bstatic' 10422 ;; 10423 10424 *nto* | *qnx*) 10425 # QNX uses GNU C++, but need to define -shared option too, otherwise 10426 # it will coredump. 10427 lt_prog_compiler_pic='-fPIC -shared' 10428 ;; 10429 10430 osf3* | osf4* | osf5*) 10431 lt_prog_compiler_wl='-Wl,' 10432 # All OSF/1 code is PIC. 10433 lt_prog_compiler_static='-non_shared' 10434 ;; 10435 10436 rdos*) 10437 lt_prog_compiler_static='-non_shared' 10438 ;; 10439 10440 solaris*) 10441 lt_prog_compiler_pic='-KPIC' 10442 lt_prog_compiler_static='-Bstatic' 10443 case $cc_basename in 10444 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10445 lt_prog_compiler_wl='-Qoption ld ';; 10446 *) 10447 lt_prog_compiler_wl='-Wl,';; 10448 esac 10449 ;; 10450 10451 sunos4*) 10452 lt_prog_compiler_wl='-Qoption ld ' 10453 lt_prog_compiler_pic='-PIC' 10454 lt_prog_compiler_static='-Bstatic' 10455 ;; 10456 10457 sysv4 | sysv4.2uw2* | sysv4.3*) 10458 lt_prog_compiler_wl='-Wl,' 10459 lt_prog_compiler_pic='-KPIC' 10460 lt_prog_compiler_static='-Bstatic' 10461 ;; 10462 10463 sysv4*MP*) 10464 if test -d /usr/nec; then 10465 lt_prog_compiler_pic='-Kconform_pic' 10466 lt_prog_compiler_static='-Bstatic' 10467 fi 10468 ;; 10469 10470 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10471 lt_prog_compiler_wl='-Wl,' 10472 lt_prog_compiler_pic='-KPIC' 10473 lt_prog_compiler_static='-Bstatic' 10474 ;; 10475 10476 unicos*) 10477 lt_prog_compiler_wl='-Wl,' 10478 lt_prog_compiler_can_build_shared=no 10479 ;; 10480 10481 uts4*) 10482 lt_prog_compiler_pic='-pic' 10483 lt_prog_compiler_static='-Bstatic' 10484 ;; 10485 10486 *) 10487 lt_prog_compiler_can_build_shared=no 10488 ;; 10489 esac 10490 fi 10491 10492case $host_os in 10493 # For platforms that do not support PIC, -DPIC is meaningless: 10494 *djgpp*) 10495 lt_prog_compiler_pic= 10496 ;; 10497 *) 10498 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10499 ;; 10500esac 10501 10502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10503$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10504if ${lt_cv_prog_compiler_pic+:} false; then : 10505 $as_echo_n "(cached) " >&6 10506else 10507 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10508fi 10509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10510$as_echo "$lt_cv_prog_compiler_pic" >&6; } 10511lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10512 10513# 10514# Check to make sure the PIC flag actually works. 10515# 10516if test -n "$lt_prog_compiler_pic"; then 10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10518$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10519if ${lt_cv_prog_compiler_pic_works+:} false; then : 10520 $as_echo_n "(cached) " >&6 10521else 10522 lt_cv_prog_compiler_pic_works=no 10523 ac_outfile=conftest.$ac_objext 10524 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10525 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10526 # Insert the option either (1) after the last *FLAGS variable, or 10527 # (2) before a word containing "conftest.", or (3) at the end. 10528 # Note that $ac_compile itself does not contain backslashes and begins 10529 # with a dollar sign (not a hyphen), so the echo should work correctly. 10530 # The option is referenced via a variable to avoid confusing sed. 10531 lt_compile=`echo "$ac_compile" | $SED \ 10532 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10534 -e 's:$: $lt_compiler_flag:'` 10535 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10536 (eval "$lt_compile" 2>conftest.err) 10537 ac_status=$? 10538 cat conftest.err >&5 10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10540 if (exit $ac_status) && test -s "$ac_outfile"; then 10541 # The compiler can only warn and ignore the option if not recognized 10542 # So say no if there are warnings other than the usual output. 10543 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10544 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10545 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10546 lt_cv_prog_compiler_pic_works=yes 10547 fi 10548 fi 10549 $RM conftest* 10550 10551fi 10552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10553$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10554 10555if test yes = "$lt_cv_prog_compiler_pic_works"; then 10556 case $lt_prog_compiler_pic in 10557 "" | " "*) ;; 10558 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10559 esac 10560else 10561 lt_prog_compiler_pic= 10562 lt_prog_compiler_can_build_shared=no 10563fi 10564 10565fi 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577# 10578# Check to make sure the static flag actually works. 10579# 10580wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10582$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10583if ${lt_cv_prog_compiler_static_works+:} false; then : 10584 $as_echo_n "(cached) " >&6 10585else 10586 lt_cv_prog_compiler_static_works=no 10587 save_LDFLAGS=$LDFLAGS 10588 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10589 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10590 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10591 # The linker can only warn and ignore the option if not recognized 10592 # So say no if there are warnings 10593 if test -s conftest.err; then 10594 # Append any errors to the config.log. 10595 cat conftest.err 1>&5 10596 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10597 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10598 if diff conftest.exp conftest.er2 >/dev/null; then 10599 lt_cv_prog_compiler_static_works=yes 10600 fi 10601 else 10602 lt_cv_prog_compiler_static_works=yes 10603 fi 10604 fi 10605 $RM -r conftest* 10606 LDFLAGS=$save_LDFLAGS 10607 10608fi 10609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10610$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10611 10612if test yes = "$lt_cv_prog_compiler_static_works"; then 10613 : 10614else 10615 lt_prog_compiler_static= 10616fi 10617 10618 10619 10620 10621 10622 10623 10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10625$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10626if ${lt_cv_prog_compiler_c_o+:} false; then : 10627 $as_echo_n "(cached) " >&6 10628else 10629 lt_cv_prog_compiler_c_o=no 10630 $RM -r conftest 2>/dev/null 10631 mkdir conftest 10632 cd conftest 10633 mkdir out 10634 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10635 10636 lt_compiler_flag="-o out/conftest2.$ac_objext" 10637 # Insert the option either (1) after the last *FLAGS variable, or 10638 # (2) before a word containing "conftest.", or (3) at the end. 10639 # Note that $ac_compile itself does not contain backslashes and begins 10640 # with a dollar sign (not a hyphen), so the echo should work correctly. 10641 lt_compile=`echo "$ac_compile" | $SED \ 10642 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10644 -e 's:$: $lt_compiler_flag:'` 10645 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10646 (eval "$lt_compile" 2>out/conftest.err) 10647 ac_status=$? 10648 cat out/conftest.err >&5 10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10650 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10651 then 10652 # The compiler can only warn and ignore the option if not recognized 10653 # So say no if there are warnings 10654 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10655 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10656 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10657 lt_cv_prog_compiler_c_o=yes 10658 fi 10659 fi 10660 chmod u+w . 2>&5 10661 $RM conftest* 10662 # SGI C++ compiler will create directory out/ii_files/ for 10663 # template instantiation 10664 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10665 $RM out/* && rmdir out 10666 cd .. 10667 $RM -r conftest 10668 $RM conftest* 10669 10670fi 10671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10672$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10673 10674 10675 10676 10677 10678 10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10680$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10681if ${lt_cv_prog_compiler_c_o+:} false; then : 10682 $as_echo_n "(cached) " >&6 10683else 10684 lt_cv_prog_compiler_c_o=no 10685 $RM -r conftest 2>/dev/null 10686 mkdir conftest 10687 cd conftest 10688 mkdir out 10689 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10690 10691 lt_compiler_flag="-o out/conftest2.$ac_objext" 10692 # Insert the option either (1) after the last *FLAGS variable, or 10693 # (2) before a word containing "conftest.", or (3) at the end. 10694 # Note that $ac_compile itself does not contain backslashes and begins 10695 # with a dollar sign (not a hyphen), so the echo should work correctly. 10696 lt_compile=`echo "$ac_compile" | $SED \ 10697 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10698 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10699 -e 's:$: $lt_compiler_flag:'` 10700 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10701 (eval "$lt_compile" 2>out/conftest.err) 10702 ac_status=$? 10703 cat out/conftest.err >&5 10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10705 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10706 then 10707 # The compiler can only warn and ignore the option if not recognized 10708 # So say no if there are warnings 10709 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10710 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10711 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10712 lt_cv_prog_compiler_c_o=yes 10713 fi 10714 fi 10715 chmod u+w . 2>&5 10716 $RM conftest* 10717 # SGI C++ compiler will create directory out/ii_files/ for 10718 # template instantiation 10719 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10720 $RM out/* && rmdir out 10721 cd .. 10722 $RM -r conftest 10723 $RM conftest* 10724 10725fi 10726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10727$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10728 10729 10730 10731 10732hard_links=nottested 10733if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10734 # do not overwrite the value of need_locks provided by the user 10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10736$as_echo_n "checking if we can lock with hard links... " >&6; } 10737 hard_links=yes 10738 $RM conftest* 10739 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10740 touch conftest.a 10741 ln conftest.a conftest.b 2>&5 || hard_links=no 10742 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10744$as_echo "$hard_links" >&6; } 10745 if test no = "$hard_links"; then 10746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10747$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10748 need_locks=warn 10749 fi 10750else 10751 need_locks=no 10752fi 10753 10754 10755 10756 10757 10758 10759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10760$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10761 10762 runpath_var= 10763 allow_undefined_flag= 10764 always_export_symbols=no 10765 archive_cmds= 10766 archive_expsym_cmds= 10767 compiler_needs_object=no 10768 enable_shared_with_static_runtimes=no 10769 export_dynamic_flag_spec= 10770 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10771 hardcode_automatic=no 10772 hardcode_direct=no 10773 hardcode_direct_absolute=no 10774 hardcode_libdir_flag_spec= 10775 hardcode_libdir_separator= 10776 hardcode_minus_L=no 10777 hardcode_shlibpath_var=unsupported 10778 inherit_rpath=no 10779 link_all_deplibs=unknown 10780 module_cmds= 10781 module_expsym_cmds= 10782 old_archive_from_new_cmds= 10783 old_archive_from_expsyms_cmds= 10784 thread_safe_flag_spec= 10785 whole_archive_flag_spec= 10786 # include_expsyms should be a list of space-separated symbols to be *always* 10787 # included in the symbol list 10788 include_expsyms= 10789 # exclude_expsyms can be an extended regexp of symbols to exclude 10790 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10791 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10792 # as well as any symbol that contains 'd'. 10793 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10794 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10795 # platforms (ab)use it in PIC code, but their linkers get confused if 10796 # the symbol is explicitly referenced. Since portable code cannot 10797 # rely on this symbol name, it's probably fine to never include it in 10798 # preloaded symbol tables. 10799 # Exclude shared library initialization/finalization symbols. 10800 extract_expsyms_cmds= 10801 10802 case $host_os in 10803 cygwin* | mingw* | pw32* | cegcc*) 10804 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10805 # When not using gcc, we currently assume that we are using 10806 # Microsoft Visual C++. 10807 if test yes != "$GCC"; then 10808 with_gnu_ld=no 10809 fi 10810 ;; 10811 interix*) 10812 # we just hope/assume this is gcc and not c89 (= MSVC++) 10813 with_gnu_ld=yes 10814 ;; 10815 openbsd* | bitrig*) 10816 with_gnu_ld=no 10817 ;; 10818 linux* | k*bsd*-gnu | gnu*) 10819 link_all_deplibs=no 10820 ;; 10821 esac 10822 10823 ld_shlibs=yes 10824 10825 # On some targets, GNU ld is compatible enough with the native linker 10826 # that we're better off using the native interface for both. 10827 lt_use_gnu_ld_interface=no 10828 if test yes = "$with_gnu_ld"; then 10829 case $host_os in 10830 aix*) 10831 # The AIX port of GNU ld has always aspired to compatibility 10832 # with the native linker. However, as the warning in the GNU ld 10833 # block says, versions before 2.19.5* couldn't really create working 10834 # shared libraries, regardless of the interface used. 10835 case `$LD -v 2>&1` in 10836 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10837 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10838 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10839 *) 10840 lt_use_gnu_ld_interface=yes 10841 ;; 10842 esac 10843 ;; 10844 *) 10845 lt_use_gnu_ld_interface=yes 10846 ;; 10847 esac 10848 fi 10849 10850 if test yes = "$lt_use_gnu_ld_interface"; then 10851 # If archive_cmds runs LD, not CC, wlarc should be empty 10852 wlarc='$wl' 10853 10854 # Set some defaults for GNU ld with shared library support. These 10855 # are reset later if shared libraries are not supported. Putting them 10856 # here allows them to be overridden if necessary. 10857 runpath_var=LD_RUN_PATH 10858 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10859 export_dynamic_flag_spec='$wl--export-dynamic' 10860 # ancient GNU ld didn't support --whole-archive et. al. 10861 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10862 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10863 else 10864 whole_archive_flag_spec= 10865 fi 10866 supports_anon_versioning=no 10867 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10868 *GNU\ gold*) supports_anon_versioning=yes ;; 10869 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10870 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10871 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10872 *\ 2.11.*) ;; # other 2.11 versions 10873 *) supports_anon_versioning=yes ;; 10874 esac 10875 10876 # See if GNU ld supports shared libraries. 10877 case $host_os in 10878 aix[3-9]*) 10879 # On AIX/PPC, the GNU linker is very broken 10880 if test ia64 != "$host_cpu"; then 10881 ld_shlibs=no 10882 cat <<_LT_EOF 1>&2 10883 10884*** Warning: the GNU linker, at least up to release 2.19, is reported 10885*** to be unable to reliably create shared libraries on AIX. 10886*** Therefore, libtool is disabling shared libraries support. If you 10887*** really care for shared libraries, you may want to install binutils 10888*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10889*** You will then need to restart the configuration process. 10890 10891_LT_EOF 10892 fi 10893 ;; 10894 10895 amigaos*) 10896 case $host_cpu in 10897 powerpc) 10898 # see comment about AmigaOS4 .so support 10899 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10900 archive_expsym_cmds='' 10901 ;; 10902 m68k) 10903 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)' 10904 hardcode_libdir_flag_spec='-L$libdir' 10905 hardcode_minus_L=yes 10906 ;; 10907 esac 10908 ;; 10909 10910 beos*) 10911 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10912 allow_undefined_flag=unsupported 10913 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10914 # support --undefined. This deserves some investigation. FIXME 10915 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10916 else 10917 ld_shlibs=no 10918 fi 10919 ;; 10920 10921 cygwin* | mingw* | pw32* | cegcc*) 10922 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10923 # as there is no search path for DLLs. 10924 hardcode_libdir_flag_spec='-L$libdir' 10925 export_dynamic_flag_spec='$wl--export-all-symbols' 10926 allow_undefined_flag=unsupported 10927 always_export_symbols=no 10928 enable_shared_with_static_runtimes=yes 10929 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 10930 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10931 10932 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10933 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10934 # If the export-symbols file already is a .def file, use it as 10935 # is; otherwise, prepend EXPORTS... 10936 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10937 cp $export_symbols $output_objdir/$soname.def; 10938 else 10939 echo EXPORTS > $output_objdir/$soname.def; 10940 cat $export_symbols >> $output_objdir/$soname.def; 10941 fi~ 10942 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10943 else 10944 ld_shlibs=no 10945 fi 10946 ;; 10947 10948 haiku*) 10949 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10950 link_all_deplibs=yes 10951 ;; 10952 10953 os2*) 10954 hardcode_libdir_flag_spec='-L$libdir' 10955 hardcode_minus_L=yes 10956 allow_undefined_flag=unsupported 10957 shrext_cmds=.dll 10958 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10959 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10960 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10961 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10962 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10963 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10964 emximp -o $lib $output_objdir/$libname.def' 10965 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10966 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10967 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10968 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10969 prefix_cmds="$SED"~ 10970 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10971 prefix_cmds="$prefix_cmds -e 1d"; 10972 fi~ 10973 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10974 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10975 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10976 emximp -o $lib $output_objdir/$libname.def' 10977 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10978 enable_shared_with_static_runtimes=yes 10979 ;; 10980 10981 interix[3-9]*) 10982 hardcode_direct=no 10983 hardcode_shlibpath_var=no 10984 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10985 export_dynamic_flag_spec='$wl-E' 10986 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10987 # Instead, shared libraries are loaded at an image base (0x10000000 by 10988 # default) and relocated if they conflict, which is a slow very memory 10989 # consuming and fragmenting process. To avoid this, we pick a random, 10990 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10991 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10992 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10993 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' 10994 ;; 10995 10996 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10997 tmp_diet=no 10998 if test linux-dietlibc = "$host_os"; then 10999 case $cc_basename in 11000 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11001 esac 11002 fi 11003 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11004 && test no = "$tmp_diet" 11005 then 11006 tmp_addflag=' $pic_flag' 11007 tmp_sharedflag='-shared' 11008 case $cc_basename,$host_cpu in 11009 pgcc*) # Portland Group C compiler 11010 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' 11011 tmp_addflag=' $pic_flag' 11012 ;; 11013 pgf77* | pgf90* | pgf95* | pgfortran*) 11014 # Portland Group f77 and f90 compilers 11015 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' 11016 tmp_addflag=' $pic_flag -Mnomain' ;; 11017 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11018 tmp_addflag=' -i_dynamic' ;; 11019 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11020 tmp_addflag=' -i_dynamic -nofor_main' ;; 11021 ifc* | ifort*) # Intel Fortran compiler 11022 tmp_addflag=' -nofor_main' ;; 11023 lf95*) # Lahey Fortran 8.1 11024 whole_archive_flag_spec= 11025 tmp_sharedflag='--shared' ;; 11026 nagfor*) # NAGFOR 5.3 11027 tmp_sharedflag='-Wl,-shared' ;; 11028 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11029 tmp_sharedflag='-qmkshrobj' 11030 tmp_addflag= ;; 11031 nvcc*) # Cuda Compiler Driver 2.2 11032 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' 11033 compiler_needs_object=yes 11034 ;; 11035 esac 11036 case `$CC -V 2>&1 | sed 5q` in 11037 *Sun\ C*) # Sun C 5.9 11038 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' 11039 compiler_needs_object=yes 11040 tmp_sharedflag='-G' ;; 11041 *Sun\ F*) # Sun Fortran 8.3 11042 tmp_sharedflag='-G' ;; 11043 esac 11044 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11045 11046 if test yes = "$supports_anon_versioning"; then 11047 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11048 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11049 echo "local: *; };" >> $output_objdir/$libname.ver~ 11050 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 11051 fi 11052 11053 case $cc_basename in 11054 tcc*) 11055 export_dynamic_flag_spec='-rdynamic' 11056 ;; 11057 xlf* | bgf* | bgxlf* | mpixlf*) 11058 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11059 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11060 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11061 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11062 if test yes = "$supports_anon_versioning"; then 11063 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11064 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11065 echo "local: *; };" >> $output_objdir/$libname.ver~ 11066 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11067 fi 11068 ;; 11069 esac 11070 else 11071 ld_shlibs=no 11072 fi 11073 ;; 11074 11075 netbsd* | netbsdelf*-gnu) 11076 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11077 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11078 wlarc= 11079 else 11080 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11081 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11082 fi 11083 ;; 11084 11085 solaris*) 11086 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11087 ld_shlibs=no 11088 cat <<_LT_EOF 1>&2 11089 11090*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11091*** create shared libraries on Solaris systems. Therefore, libtool 11092*** is disabling shared libraries support. We urge you to upgrade GNU 11093*** binutils to release 2.9.1 or newer. Another option is to modify 11094*** your PATH or compiler configuration so that the native linker is 11095*** used, and then restart. 11096 11097_LT_EOF 11098 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11099 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11100 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11101 else 11102 ld_shlibs=no 11103 fi 11104 ;; 11105 11106 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11107 case `$LD -v 2>&1` in 11108 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11109 ld_shlibs=no 11110 cat <<_LT_EOF 1>&2 11111 11112*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 11113*** reliably create shared libraries on SCO systems. Therefore, libtool 11114*** is disabling shared libraries support. We urge you to upgrade GNU 11115*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11116*** your PATH or compiler configuration so that the native linker is 11117*** used, and then restart. 11118 11119_LT_EOF 11120 ;; 11121 *) 11122 # For security reasons, it is highly recommended that you always 11123 # use absolute paths for naming shared libraries, and exclude the 11124 # DT_RUNPATH tag from executables and libraries. But doing so 11125 # requires that you compile everything twice, which is a pain. 11126 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11127 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11129 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11130 else 11131 ld_shlibs=no 11132 fi 11133 ;; 11134 esac 11135 ;; 11136 11137 sunos4*) 11138 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11139 wlarc= 11140 hardcode_direct=yes 11141 hardcode_shlibpath_var=no 11142 ;; 11143 11144 *) 11145 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11146 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11147 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11148 else 11149 ld_shlibs=no 11150 fi 11151 ;; 11152 esac 11153 11154 if test no = "$ld_shlibs"; then 11155 runpath_var= 11156 hardcode_libdir_flag_spec= 11157 export_dynamic_flag_spec= 11158 whole_archive_flag_spec= 11159 fi 11160 else 11161 # PORTME fill in a description of your system's linker (not GNU ld) 11162 case $host_os in 11163 aix3*) 11164 allow_undefined_flag=unsupported 11165 always_export_symbols=yes 11166 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' 11167 # Note: this linker hardcodes the directories in LIBPATH if there 11168 # are no directories specified by -L. 11169 hardcode_minus_L=yes 11170 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 11171 # Neither direct hardcoding nor static linking is supported with a 11172 # broken collect2. 11173 hardcode_direct=unsupported 11174 fi 11175 ;; 11176 11177 aix[4-9]*) 11178 if test ia64 = "$host_cpu"; then 11179 # On IA64, the linker does run time linking by default, so we don't 11180 # have to do anything special. 11181 aix_use_runtimelinking=no 11182 exp_sym_flag='-Bexport' 11183 no_entry_flag= 11184 else 11185 # If we're using GNU nm, then we don't want the "-C" option. 11186 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 11187 # Without the "-l" option, or with the "-B" option, AIX nm treats 11188 # weak defined symbols like other global defined symbols, whereas 11189 # GNU nm marks them as "W". 11190 # While the 'weak' keyword is ignored in the Export File, we need 11191 # it in the Import File for the 'aix-soname' feature, so we have 11192 # to replace the "-B" option with "-P" for AIX nm. 11193 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11194 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 11195 else 11196 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 11197 fi 11198 aix_use_runtimelinking=no 11199 11200 # Test if we are trying to use run time linking or normal 11201 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11202 # have runtime linking enabled, and use it for executables. 11203 # For shared libraries, we enable/disable runtime linking 11204 # depending on the kind of the shared library created - 11205 # when "with_aix_soname,aix_use_runtimelinking" is: 11206 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 11207 # "aix,yes" lib.so shared, rtl:yes, for executables 11208 # lib.a static archive 11209 # "both,no" lib.so.V(shr.o) shared, rtl:yes 11210 # lib.a(lib.so.V) shared, rtl:no, for executables 11211 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 11212 # lib.a(lib.so.V) shared, rtl:no 11213 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 11214 # lib.a static archive 11215 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11216 for ld_flag in $LDFLAGS; do 11217 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 11218 aix_use_runtimelinking=yes 11219 break 11220 fi 11221 done 11222 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 11223 # With aix-soname=svr4, we create the lib.so.V shared archives only, 11224 # so we don't have lib.a shared libs to link our executables. 11225 # We have to force runtime linking in this case. 11226 aix_use_runtimelinking=yes 11227 LDFLAGS="$LDFLAGS -Wl,-brtl" 11228 fi 11229 ;; 11230 esac 11231 11232 exp_sym_flag='-bexport' 11233 no_entry_flag='-bnoentry' 11234 fi 11235 11236 # When large executables or shared objects are built, AIX ld can 11237 # have problems creating the table of contents. If linking a library 11238 # or program results in "error TOC overflow" add -mminimal-toc to 11239 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11240 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11241 11242 archive_cmds='' 11243 hardcode_direct=yes 11244 hardcode_direct_absolute=yes 11245 hardcode_libdir_separator=':' 11246 link_all_deplibs=yes 11247 file_list_spec='$wl-f,' 11248 case $with_aix_soname,$aix_use_runtimelinking in 11249 aix,*) ;; # traditional, no import file 11250 svr4,* | *,yes) # use import file 11251 # The Import File defines what to hardcode. 11252 hardcode_direct=no 11253 hardcode_direct_absolute=no 11254 ;; 11255 esac 11256 11257 if test yes = "$GCC"; then 11258 case $host_os in aix4.[012]|aix4.[012].*) 11259 # We only want to do this on AIX 4.2 and lower, the check 11260 # below for broken collect2 doesn't work under 4.3+ 11261 collect2name=`$CC -print-prog-name=collect2` 11262 if test -f "$collect2name" && 11263 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11264 then 11265 # We have reworked collect2 11266 : 11267 else 11268 # We have old collect2 11269 hardcode_direct=unsupported 11270 # It fails to find uninstalled libraries when the uninstalled 11271 # path is not listed in the libpath. Setting hardcode_minus_L 11272 # to unsupported forces relinking 11273 hardcode_minus_L=yes 11274 hardcode_libdir_flag_spec='-L$libdir' 11275 hardcode_libdir_separator= 11276 fi 11277 ;; 11278 esac 11279 shared_flag='-shared' 11280 if test yes = "$aix_use_runtimelinking"; then 11281 shared_flag="$shared_flag "'$wl-G' 11282 fi 11283 # Need to ensure runtime linking is disabled for the traditional 11284 # shared library, or the linker may eventually find shared libraries 11285 # /with/ Import File - we do not want to mix them. 11286 shared_flag_aix='-shared' 11287 shared_flag_svr4='-shared $wl-G' 11288 else 11289 # not using gcc 11290 if test ia64 = "$host_cpu"; then 11291 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11292 # chokes on -Wl,-G. The following line is correct: 11293 shared_flag='-G' 11294 else 11295 if test yes = "$aix_use_runtimelinking"; then 11296 shared_flag='$wl-G' 11297 else 11298 shared_flag='$wl-bM:SRE' 11299 fi 11300 shared_flag_aix='$wl-bM:SRE' 11301 shared_flag_svr4='$wl-G' 11302 fi 11303 fi 11304 11305 export_dynamic_flag_spec='$wl-bexpall' 11306 # It seems that -bexpall does not export symbols beginning with 11307 # underscore (_), so it is better to generate a list of symbols to export. 11308 always_export_symbols=yes 11309 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 11310 # Warning - without using the other runtime loading flags (-brtl), 11311 # -berok will link without error, but may produce a broken library. 11312 allow_undefined_flag='-berok' 11313 # Determine the default libpath from the value encoded in an 11314 # empty executable. 11315 if test set = "${lt_cv_aix_libpath+set}"; then 11316 aix_libpath=$lt_cv_aix_libpath 11317else 11318 if ${lt_cv_aix_libpath_+:} false; then : 11319 $as_echo_n "(cached) " >&6 11320else 11321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11322/* end confdefs.h. */ 11323 11324int 11325main () 11326{ 11327 11328 ; 11329 return 0; 11330} 11331_ACEOF 11332if ac_fn_c_try_link "$LINENO"; then : 11333 11334 lt_aix_libpath_sed=' 11335 /Import File Strings/,/^$/ { 11336 /^0/ { 11337 s/^0 *\([^ ]*\) *$/\1/ 11338 p 11339 } 11340 }' 11341 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11342 # Check for a 64-bit object if we didn't find anything. 11343 if test -z "$lt_cv_aix_libpath_"; then 11344 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11345 fi 11346fi 11347rm -f core conftest.err conftest.$ac_objext \ 11348 conftest$ac_exeext conftest.$ac_ext 11349 if test -z "$lt_cv_aix_libpath_"; then 11350 lt_cv_aix_libpath_=/usr/lib:/lib 11351 fi 11352 11353fi 11354 11355 aix_libpath=$lt_cv_aix_libpath_ 11356fi 11357 11358 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11359 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 11360 else 11361 if test ia64 = "$host_cpu"; then 11362 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 11363 allow_undefined_flag="-z nodefs" 11364 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" 11365 else 11366 # Determine the default libpath from the value encoded in an 11367 # empty executable. 11368 if test set = "${lt_cv_aix_libpath+set}"; then 11369 aix_libpath=$lt_cv_aix_libpath 11370else 11371 if ${lt_cv_aix_libpath_+:} false; then : 11372 $as_echo_n "(cached) " >&6 11373else 11374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11375/* end confdefs.h. */ 11376 11377int 11378main () 11379{ 11380 11381 ; 11382 return 0; 11383} 11384_ACEOF 11385if ac_fn_c_try_link "$LINENO"; then : 11386 11387 lt_aix_libpath_sed=' 11388 /Import File Strings/,/^$/ { 11389 /^0/ { 11390 s/^0 *\([^ ]*\) *$/\1/ 11391 p 11392 } 11393 }' 11394 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11395 # Check for a 64-bit object if we didn't find anything. 11396 if test -z "$lt_cv_aix_libpath_"; then 11397 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11398 fi 11399fi 11400rm -f core conftest.err conftest.$ac_objext \ 11401 conftest$ac_exeext conftest.$ac_ext 11402 if test -z "$lt_cv_aix_libpath_"; then 11403 lt_cv_aix_libpath_=/usr/lib:/lib 11404 fi 11405 11406fi 11407 11408 aix_libpath=$lt_cv_aix_libpath_ 11409fi 11410 11411 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11412 # Warning - without using the other run time loading flags, 11413 # -berok will link without error, but may produce a broken library. 11414 no_undefined_flag=' $wl-bernotok' 11415 allow_undefined_flag=' $wl-berok' 11416 if test yes = "$with_gnu_ld"; then 11417 # We only use this code for GNU lds that support --whole-archive. 11418 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11419 else 11420 # Exported symbols can be pulled into shared objects from archives 11421 whole_archive_flag_spec='$convenience' 11422 fi 11423 archive_cmds_need_lc=yes 11424 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11425 # -brtl affects multiple linker settings, -berok does not and is overridden later 11426 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11427 if test svr4 != "$with_aix_soname"; then 11428 # This is similar to how AIX traditionally builds its shared libraries. 11429 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 11430 fi 11431 if test aix != "$with_aix_soname"; then 11432 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 11433 else 11434 # used by -dlpreopen to get the symbols 11435 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11436 fi 11437 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11438 fi 11439 fi 11440 ;; 11441 11442 amigaos*) 11443 case $host_cpu in 11444 powerpc) 11445 # see comment about AmigaOS4 .so support 11446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11447 archive_expsym_cmds='' 11448 ;; 11449 m68k) 11450 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)' 11451 hardcode_libdir_flag_spec='-L$libdir' 11452 hardcode_minus_L=yes 11453 ;; 11454 esac 11455 ;; 11456 11457 bsdi[45]*) 11458 export_dynamic_flag_spec=-rdynamic 11459 ;; 11460 11461 cygwin* | mingw* | pw32* | cegcc*) 11462 # When not using gcc, we currently assume that we are using 11463 # Microsoft Visual C++. 11464 # hardcode_libdir_flag_spec is actually meaningless, as there is 11465 # no search path for DLLs. 11466 case $cc_basename in 11467 cl*) 11468 # Native MSVC 11469 hardcode_libdir_flag_spec=' ' 11470 allow_undefined_flag=unsupported 11471 always_export_symbols=yes 11472 file_list_spec='@' 11473 # Tell ltmain to make .lib files, not .a files. 11474 libext=lib 11475 # Tell ltmain to make .dll files, not .so files. 11476 shrext_cmds=.dll 11477 # FIXME: Setting linknames here is a bad hack. 11478 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11479 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11480 cp "$export_symbols" "$output_objdir/$soname.def"; 11481 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11482 else 11483 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11484 fi~ 11485 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11486 linknames=' 11487 # The linker will not automatically build a static lib if we build a DLL. 11488 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11489 enable_shared_with_static_runtimes=yes 11490 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11491 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11492 # Don't use ranlib 11493 old_postinstall_cmds='chmod 644 $oldlib' 11494 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11495 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11496 case $lt_outputfile in 11497 *.exe|*.EXE) ;; 11498 *) 11499 lt_outputfile=$lt_outputfile.exe 11500 lt_tool_outputfile=$lt_tool_outputfile.exe 11501 ;; 11502 esac~ 11503 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11504 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11505 $RM "$lt_outputfile.manifest"; 11506 fi' 11507 ;; 11508 *) 11509 # Assume MSVC wrapper 11510 hardcode_libdir_flag_spec=' ' 11511 allow_undefined_flag=unsupported 11512 # Tell ltmain to make .lib files, not .a files. 11513 libext=lib 11514 # Tell ltmain to make .dll files, not .so files. 11515 shrext_cmds=.dll 11516 # FIXME: Setting linknames here is a bad hack. 11517 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11518 # The linker will automatically build a .lib file if we build a DLL. 11519 old_archive_from_new_cmds='true' 11520 # FIXME: Should let the user specify the lib program. 11521 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11522 enable_shared_with_static_runtimes=yes 11523 ;; 11524 esac 11525 ;; 11526 11527 darwin* | rhapsody*) 11528 11529 11530 archive_cmds_need_lc=no 11531 hardcode_direct=no 11532 hardcode_automatic=yes 11533 hardcode_shlibpath_var=unsupported 11534 if test yes = "$lt_cv_ld_force_load"; then 11535 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\"`' 11536 11537 else 11538 whole_archive_flag_spec='' 11539 fi 11540 link_all_deplibs=yes 11541 allow_undefined_flag=$_lt_dar_allow_undefined 11542 case $cc_basename in 11543 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11544 *) _lt_dar_can_shared=$GCC ;; 11545 esac 11546 if test yes = "$_lt_dar_can_shared"; then 11547 output_verbose_link_cmd=func_echo_all 11548 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11549 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11550 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" 11551 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" 11552 11553 else 11554 ld_shlibs=no 11555 fi 11556 11557 ;; 11558 11559 dgux*) 11560 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11561 hardcode_libdir_flag_spec='-L$libdir' 11562 hardcode_shlibpath_var=no 11563 ;; 11564 11565 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11566 # support. Future versions do this automatically, but an explicit c++rt0.o 11567 # does not break anything, and helps significantly (at the cost of a little 11568 # extra space). 11569 freebsd2.2*) 11570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11571 hardcode_libdir_flag_spec='-R$libdir' 11572 hardcode_direct=yes 11573 hardcode_shlibpath_var=no 11574 ;; 11575 11576 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11577 freebsd2.*) 11578 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11579 hardcode_direct=yes 11580 hardcode_minus_L=yes 11581 hardcode_shlibpath_var=no 11582 ;; 11583 11584 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11585 freebsd* | dragonfly*) 11586 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11587 hardcode_libdir_flag_spec='-R$libdir' 11588 hardcode_direct=yes 11589 hardcode_shlibpath_var=no 11590 ;; 11591 11592 hpux9*) 11593 if test yes = "$GCC"; then 11594 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11595 else 11596 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11597 fi 11598 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11599 hardcode_libdir_separator=: 11600 hardcode_direct=yes 11601 11602 # hardcode_minus_L: Not really in the search PATH, 11603 # but as the default location of the library. 11604 hardcode_minus_L=yes 11605 export_dynamic_flag_spec='$wl-E' 11606 ;; 11607 11608 hpux10*) 11609 if test yes,no = "$GCC,$with_gnu_ld"; then 11610 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11611 else 11612 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11613 fi 11614 if test no = "$with_gnu_ld"; then 11615 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11616 hardcode_libdir_separator=: 11617 hardcode_direct=yes 11618 hardcode_direct_absolute=yes 11619 export_dynamic_flag_spec='$wl-E' 11620 # hardcode_minus_L: Not really in the search PATH, 11621 # but as the default location of the library. 11622 hardcode_minus_L=yes 11623 fi 11624 ;; 11625 11626 hpux11*) 11627 if test yes,no = "$GCC,$with_gnu_ld"; then 11628 case $host_cpu in 11629 hppa*64*) 11630 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11631 ;; 11632 ia64*) 11633 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11634 ;; 11635 *) 11636 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11637 ;; 11638 esac 11639 else 11640 case $host_cpu in 11641 hppa*64*) 11642 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11643 ;; 11644 ia64*) 11645 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11646 ;; 11647 *) 11648 11649 # Older versions of the 11.00 compiler do not understand -b yet 11650 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11652$as_echo_n "checking if $CC understands -b... " >&6; } 11653if ${lt_cv_prog_compiler__b+:} false; then : 11654 $as_echo_n "(cached) " >&6 11655else 11656 lt_cv_prog_compiler__b=no 11657 save_LDFLAGS=$LDFLAGS 11658 LDFLAGS="$LDFLAGS -b" 11659 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11660 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11661 # The linker can only warn and ignore the option if not recognized 11662 # So say no if there are warnings 11663 if test -s conftest.err; then 11664 # Append any errors to the config.log. 11665 cat conftest.err 1>&5 11666 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11668 if diff conftest.exp conftest.er2 >/dev/null; then 11669 lt_cv_prog_compiler__b=yes 11670 fi 11671 else 11672 lt_cv_prog_compiler__b=yes 11673 fi 11674 fi 11675 $RM -r conftest* 11676 LDFLAGS=$save_LDFLAGS 11677 11678fi 11679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11680$as_echo "$lt_cv_prog_compiler__b" >&6; } 11681 11682if test yes = "$lt_cv_prog_compiler__b"; then 11683 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11684else 11685 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11686fi 11687 11688 ;; 11689 esac 11690 fi 11691 if test no = "$with_gnu_ld"; then 11692 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11693 hardcode_libdir_separator=: 11694 11695 case $host_cpu in 11696 hppa*64*|ia64*) 11697 hardcode_direct=no 11698 hardcode_shlibpath_var=no 11699 ;; 11700 *) 11701 hardcode_direct=yes 11702 hardcode_direct_absolute=yes 11703 export_dynamic_flag_spec='$wl-E' 11704 11705 # hardcode_minus_L: Not really in the search PATH, 11706 # but as the default location of the library. 11707 hardcode_minus_L=yes 11708 ;; 11709 esac 11710 fi 11711 ;; 11712 11713 irix5* | irix6* | nonstopux*) 11714 if test yes = "$GCC"; then 11715 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 11716 # Try to use the -exported_symbol ld option, if it does not 11717 # work, assume that -exports_file does not work either and 11718 # implicitly export all symbols. 11719 # This should be the same for all languages, so no per-tag cache variable. 11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11721$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11722if ${lt_cv_irix_exported_symbol+:} false; then : 11723 $as_echo_n "(cached) " >&6 11724else 11725 save_LDFLAGS=$LDFLAGS 11726 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11728/* end confdefs.h. */ 11729int foo (void) { return 0; } 11730_ACEOF 11731if ac_fn_c_try_link "$LINENO"; then : 11732 lt_cv_irix_exported_symbol=yes 11733else 11734 lt_cv_irix_exported_symbol=no 11735fi 11736rm -f core conftest.err conftest.$ac_objext \ 11737 conftest$ac_exeext conftest.$ac_ext 11738 LDFLAGS=$save_LDFLAGS 11739fi 11740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11741$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11742 if test yes = "$lt_cv_irix_exported_symbol"; then 11743 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 11744 fi 11745 link_all_deplibs=no 11746 else 11747 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' 11748 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' 11749 fi 11750 archive_cmds_need_lc='no' 11751 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11752 hardcode_libdir_separator=: 11753 inherit_rpath=yes 11754 link_all_deplibs=yes 11755 ;; 11756 11757 linux*) 11758 case $cc_basename in 11759 tcc*) 11760 # Fabrice Bellard et al's Tiny C Compiler 11761 ld_shlibs=yes 11762 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11763 ;; 11764 esac 11765 ;; 11766 11767 netbsd* | netbsdelf*-gnu) 11768 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11770 else 11771 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11772 fi 11773 hardcode_libdir_flag_spec='-R$libdir' 11774 hardcode_direct=yes 11775 hardcode_shlibpath_var=no 11776 ;; 11777 11778 newsos6) 11779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11780 hardcode_direct=yes 11781 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11782 hardcode_libdir_separator=: 11783 hardcode_shlibpath_var=no 11784 ;; 11785 11786 *nto* | *qnx*) 11787 ;; 11788 11789 openbsd* | bitrig*) 11790 if test -f /usr/libexec/ld.so; then 11791 hardcode_direct=yes 11792 hardcode_shlibpath_var=no 11793 hardcode_direct_absolute=yes 11794 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11795 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11796 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11797 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11798 export_dynamic_flag_spec='$wl-E' 11799 else 11800 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11801 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11802 fi 11803 else 11804 ld_shlibs=no 11805 fi 11806 ;; 11807 11808 os2*) 11809 hardcode_libdir_flag_spec='-L$libdir' 11810 hardcode_minus_L=yes 11811 allow_undefined_flag=unsupported 11812 shrext_cmds=.dll 11813 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11814 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11815 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11816 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11817 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11818 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11819 emximp -o $lib $output_objdir/$libname.def' 11820 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11821 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11822 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11823 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11824 prefix_cmds="$SED"~ 11825 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11826 prefix_cmds="$prefix_cmds -e 1d"; 11827 fi~ 11828 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11829 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11830 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11831 emximp -o $lib $output_objdir/$libname.def' 11832 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11833 enable_shared_with_static_runtimes=yes 11834 ;; 11835 11836 osf3*) 11837 if test yes = "$GCC"; then 11838 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11839 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' 11840 else 11841 allow_undefined_flag=' -expect_unresolved \*' 11842 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' 11843 fi 11844 archive_cmds_need_lc='no' 11845 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11846 hardcode_libdir_separator=: 11847 ;; 11848 11849 osf4* | osf5*) # as osf3* with the addition of -msym flag 11850 if test yes = "$GCC"; then 11851 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11852 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 11853 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11854 else 11855 allow_undefined_flag=' -expect_unresolved \*' 11856 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' 11857 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~ 11858 $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' 11859 11860 # Both c and cxx compiler support -rpath directly 11861 hardcode_libdir_flag_spec='-rpath $libdir' 11862 fi 11863 archive_cmds_need_lc='no' 11864 hardcode_libdir_separator=: 11865 ;; 11866 11867 solaris*) 11868 no_undefined_flag=' -z defs' 11869 if test yes = "$GCC"; then 11870 wlarc='$wl' 11871 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11872 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11873 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11874 else 11875 case `$CC -V 2>&1` in 11876 *"Compilers 5.0"*) 11877 wlarc='' 11878 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11879 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11880 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11881 ;; 11882 *) 11883 wlarc='$wl' 11884 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11885 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11886 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11887 ;; 11888 esac 11889 fi 11890 hardcode_libdir_flag_spec='-R$libdir' 11891 hardcode_shlibpath_var=no 11892 case $host_os in 11893 solaris2.[0-5] | solaris2.[0-5].*) ;; 11894 *) 11895 # The compiler driver will combine and reorder linker options, 11896 # but understands '-z linker_flag'. GCC discards it without '$wl', 11897 # but is careful enough not to reorder. 11898 # Supported since Solaris 2.6 (maybe 2.5.1?) 11899 if test yes = "$GCC"; then 11900 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11901 else 11902 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11903 fi 11904 ;; 11905 esac 11906 link_all_deplibs=yes 11907 ;; 11908 11909 sunos4*) 11910 if test sequent = "$host_vendor"; then 11911 # Use $CC to link under sequent, because it throws in some extra .o 11912 # files that make .init and .fini sections work. 11913 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11914 else 11915 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11916 fi 11917 hardcode_libdir_flag_spec='-L$libdir' 11918 hardcode_direct=yes 11919 hardcode_minus_L=yes 11920 hardcode_shlibpath_var=no 11921 ;; 11922 11923 sysv4) 11924 case $host_vendor in 11925 sni) 11926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11927 hardcode_direct=yes # is this really true??? 11928 ;; 11929 siemens) 11930 ## LD is ld it makes a PLAMLIB 11931 ## CC just makes a GrossModule. 11932 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11933 reload_cmds='$CC -r -o $output$reload_objs' 11934 hardcode_direct=no 11935 ;; 11936 motorola) 11937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11938 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11939 ;; 11940 esac 11941 runpath_var='LD_RUN_PATH' 11942 hardcode_shlibpath_var=no 11943 ;; 11944 11945 sysv4.3*) 11946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11947 hardcode_shlibpath_var=no 11948 export_dynamic_flag_spec='-Bexport' 11949 ;; 11950 11951 sysv4*MP*) 11952 if test -d /usr/nec; then 11953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11954 hardcode_shlibpath_var=no 11955 runpath_var=LD_RUN_PATH 11956 hardcode_runpath_var=yes 11957 ld_shlibs=yes 11958 fi 11959 ;; 11960 11961 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11962 no_undefined_flag='$wl-z,text' 11963 archive_cmds_need_lc=no 11964 hardcode_shlibpath_var=no 11965 runpath_var='LD_RUN_PATH' 11966 11967 if test yes = "$GCC"; then 11968 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11969 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11970 else 11971 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11972 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11973 fi 11974 ;; 11975 11976 sysv5* | sco3.2v5* | sco5v6*) 11977 # Note: We CANNOT use -z defs as we might desire, because we do not 11978 # link with -lc, and that would cause any symbols used from libc to 11979 # always be unresolved, which means just about no library would 11980 # ever link correctly. If we're not using GNU ld we use -z text 11981 # though, which does catch some bad symbols but isn't as heavy-handed 11982 # as -z defs. 11983 no_undefined_flag='$wl-z,text' 11984 allow_undefined_flag='$wl-z,nodefs' 11985 archive_cmds_need_lc=no 11986 hardcode_shlibpath_var=no 11987 hardcode_libdir_flag_spec='$wl-R,$libdir' 11988 hardcode_libdir_separator=':' 11989 link_all_deplibs=yes 11990 export_dynamic_flag_spec='$wl-Bexport' 11991 runpath_var='LD_RUN_PATH' 11992 11993 if test yes = "$GCC"; then 11994 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11995 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11996 else 11997 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11998 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11999 fi 12000 ;; 12001 12002 uts4*) 12003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12004 hardcode_libdir_flag_spec='-L$libdir' 12005 hardcode_shlibpath_var=no 12006 ;; 12007 12008 *) 12009 ld_shlibs=no 12010 ;; 12011 esac 12012 12013 if test sni = "$host_vendor"; then 12014 case $host in 12015 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12016 export_dynamic_flag_spec='$wl-Blargedynsym' 12017 ;; 12018 esac 12019 fi 12020 fi 12021 12022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12023$as_echo "$ld_shlibs" >&6; } 12024test no = "$ld_shlibs" && can_build_shared=no 12025 12026with_gnu_ld=$with_gnu_ld 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042# 12043# Do we need to explicitly link libc? 12044# 12045case "x$archive_cmds_need_lc" in 12046x|xyes) 12047 # Assume -lc should be added 12048 archive_cmds_need_lc=yes 12049 12050 if test yes,yes = "$GCC,$enable_shared"; then 12051 case $archive_cmds in 12052 *'~'*) 12053 # FIXME: we may have to deal with multi-command sequences. 12054 ;; 12055 '$CC '*) 12056 # Test whether the compiler implicitly links with -lc since on some 12057 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12058 # to ld, don't add -lc before -lgcc. 12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12060$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12061if ${lt_cv_archive_cmds_need_lc+:} false; then : 12062 $as_echo_n "(cached) " >&6 12063else 12064 $RM conftest* 12065 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12066 12067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12068 (eval $ac_compile) 2>&5 12069 ac_status=$? 12070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12071 test $ac_status = 0; } 2>conftest.err; then 12072 soname=conftest 12073 lib=conftest 12074 libobjs=conftest.$ac_objext 12075 deplibs= 12076 wl=$lt_prog_compiler_wl 12077 pic_flag=$lt_prog_compiler_pic 12078 compiler_flags=-v 12079 linker_flags=-v 12080 verstring= 12081 output_objdir=. 12082 libname=conftest 12083 lt_save_allow_undefined_flag=$allow_undefined_flag 12084 allow_undefined_flag= 12085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12086 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12087 ac_status=$? 12088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12089 test $ac_status = 0; } 12090 then 12091 lt_cv_archive_cmds_need_lc=no 12092 else 12093 lt_cv_archive_cmds_need_lc=yes 12094 fi 12095 allow_undefined_flag=$lt_save_allow_undefined_flag 12096 else 12097 cat conftest.err 1>&5 12098 fi 12099 $RM conftest* 12100 12101fi 12102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12103$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12104 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12105 ;; 12106 esac 12107 fi 12108 ;; 12109esac 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12263$as_echo_n "checking dynamic linker characteristics... " >&6; } 12264 12265if test yes = "$GCC"; then 12266 case $host_os in 12267 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 12268 *) lt_awk_arg='/^libraries:/' ;; 12269 esac 12270 case $host_os in 12271 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 12272 *) lt_sed_strip_eq='s|=/|/|g' ;; 12273 esac 12274 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12275 case $lt_search_path_spec in 12276 *\;*) 12277 # if the path contains ";" then we assume it to be the separator 12278 # otherwise default to the standard path separator (i.e. ":") - it is 12279 # assumed that no part of a normal pathname contains ";" but that should 12280 # okay in the real world where ";" in dirpaths is itself problematic. 12281 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12282 ;; 12283 *) 12284 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12285 ;; 12286 esac 12287 # Ok, now we have the path, separated by spaces, we can step through it 12288 # and add multilib dir if necessary... 12289 lt_tmp_lt_search_path_spec= 12290 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12291 # ...but if some path component already ends with the multilib dir we assume 12292 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 12293 case "$lt_multi_os_dir; $lt_search_path_spec " in 12294 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 12295 lt_multi_os_dir= 12296 ;; 12297 esac 12298 for lt_sys_path in $lt_search_path_spec; do 12299 if test -d "$lt_sys_path$lt_multi_os_dir"; then 12300 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 12301 elif test -n "$lt_multi_os_dir"; then 12302 test -d "$lt_sys_path" && \ 12303 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12304 fi 12305 done 12306 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12307BEGIN {RS = " "; FS = "/|\n";} { 12308 lt_foo = ""; 12309 lt_count = 0; 12310 for (lt_i = NF; lt_i > 0; lt_i--) { 12311 if ($lt_i != "" && $lt_i != ".") { 12312 if ($lt_i == "..") { 12313 lt_count++; 12314 } else { 12315 if (lt_count == 0) { 12316 lt_foo = "/" $lt_i lt_foo; 12317 } else { 12318 lt_count--; 12319 } 12320 } 12321 } 12322 } 12323 if (lt_foo != "") { lt_freq[lt_foo]++; } 12324 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12325}'` 12326 # AWK program above erroneously prepends '/' to C:/dos/paths 12327 # for these hosts. 12328 case $host_os in 12329 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12330 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 12331 esac 12332 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12333else 12334 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12335fi 12336library_names_spec= 12337libname_spec='lib$name' 12338soname_spec= 12339shrext_cmds=.so 12340postinstall_cmds= 12341postuninstall_cmds= 12342finish_cmds= 12343finish_eval= 12344shlibpath_var= 12345shlibpath_overrides_runpath=unknown 12346version_type=none 12347dynamic_linker="$host_os ld.so" 12348sys_lib_dlsearch_path_spec="/lib /usr/lib" 12349need_lib_prefix=unknown 12350hardcode_into_libs=no 12351 12352# when you set need_version to no, make sure it does not cause -set_version 12353# flags to be left without arguments 12354need_version=unknown 12355 12356 12357 12358case $host_os in 12359aix3*) 12360 version_type=linux # correct to gnu/linux during the next big refactor 12361 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 12362 shlibpath_var=LIBPATH 12363 12364 # AIX 3 has no versioning support, so we append a major version to the name. 12365 soname_spec='$libname$release$shared_ext$major' 12366 ;; 12367 12368aix[4-9]*) 12369 version_type=linux # correct to gnu/linux during the next big refactor 12370 need_lib_prefix=no 12371 need_version=no 12372 hardcode_into_libs=yes 12373 if test ia64 = "$host_cpu"; then 12374 # AIX 5 supports IA64 12375 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 12376 shlibpath_var=LD_LIBRARY_PATH 12377 else 12378 # With GCC up to 2.95.x, collect2 would create an import file 12379 # for dependence libraries. The import file would start with 12380 # the line '#! .'. This would cause the generated library to 12381 # depend on '.', always an invalid library. This was fixed in 12382 # development snapshots of GCC prior to 3.0. 12383 case $host_os in 12384 aix4 | aix4.[01] | aix4.[01].*) 12385 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12386 echo ' yes ' 12387 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 12388 : 12389 else 12390 can_build_shared=no 12391 fi 12392 ;; 12393 esac 12394 # Using Import Files as archive members, it is possible to support 12395 # filename-based versioning of shared library archives on AIX. While 12396 # this would work for both with and without runtime linking, it will 12397 # prevent static linking of such archives. So we do filename-based 12398 # shared library versioning with .so extension only, which is used 12399 # when both runtime linking and shared linking is enabled. 12400 # Unfortunately, runtime linking may impact performance, so we do 12401 # not want this to be the default eventually. Also, we use the 12402 # versioned .so libs for executables only if there is the -brtl 12403 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 12404 # To allow for filename-based versioning support, we need to create 12405 # libNAME.so.V as an archive file, containing: 12406 # *) an Import File, referring to the versioned filename of the 12407 # archive as well as the shared archive member, telling the 12408 # bitwidth (32 or 64) of that shared object, and providing the 12409 # list of exported symbols of that shared object, eventually 12410 # decorated with the 'weak' keyword 12411 # *) the shared object with the F_LOADONLY flag set, to really avoid 12412 # it being seen by the linker. 12413 # At run time we better use the real file rather than another symlink, 12414 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12415 12416 case $with_aix_soname,$aix_use_runtimelinking in 12417 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12418 # soname into executable. Probably we can add versioning support to 12419 # collect2, so additional links can be useful in future. 12420 aix,yes) # traditional libtool 12421 dynamic_linker='AIX unversionable lib.so' 12422 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12423 # instead of lib<name>.a to let people know that these are not 12424 # typical AIX shared libraries. 12425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12426 ;; 12427 aix,no) # traditional AIX only 12428 dynamic_linker='AIX lib.a(lib.so.V)' 12429 # We preserve .a as extension for shared libraries through AIX4.2 12430 # and later when we are not doing run time linking. 12431 library_names_spec='$libname$release.a $libname.a' 12432 soname_spec='$libname$release$shared_ext$major' 12433 ;; 12434 svr4,*) # full svr4 only 12435 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12436 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12437 # We do not specify a path in Import Files, so LIBPATH fires. 12438 shlibpath_overrides_runpath=yes 12439 ;; 12440 *,yes) # both, prefer svr4 12441 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12442 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12443 # unpreferred sharedlib libNAME.a needs extra handling 12444 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 12445 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 12446 # We do not specify a path in Import Files, so LIBPATH fires. 12447 shlibpath_overrides_runpath=yes 12448 ;; 12449 *,no) # both, prefer aix 12450 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12451 library_names_spec='$libname$release.a $libname.a' 12452 soname_spec='$libname$release$shared_ext$major' 12453 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12454 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 12455 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 12456 ;; 12457 esac 12458 shlibpath_var=LIBPATH 12459 fi 12460 ;; 12461 12462amigaos*) 12463 case $host_cpu in 12464 powerpc) 12465 # Since July 2007 AmigaOS4 officially supports .so libraries. 12466 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12468 ;; 12469 m68k) 12470 library_names_spec='$libname.ixlibrary $libname.a' 12471 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12472 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 12473 ;; 12474 esac 12475 ;; 12476 12477beos*) 12478 library_names_spec='$libname$shared_ext' 12479 dynamic_linker="$host_os ld.so" 12480 shlibpath_var=LIBRARY_PATH 12481 ;; 12482 12483bsdi[45]*) 12484 version_type=linux # correct to gnu/linux during the next big refactor 12485 need_version=no 12486 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12487 soname_spec='$libname$release$shared_ext$major' 12488 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12489 shlibpath_var=LD_LIBRARY_PATH 12490 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12491 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12492 # the default ld.so.conf also contains /usr/contrib/lib and 12493 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12494 # libtool to hard-code these into programs 12495 ;; 12496 12497cygwin* | mingw* | pw32* | cegcc*) 12498 version_type=windows 12499 shrext_cmds=.dll 12500 need_version=no 12501 need_lib_prefix=no 12502 12503 case $GCC,$cc_basename in 12504 yes,*) 12505 # gcc 12506 library_names_spec='$libname.dll.a' 12507 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12508 postinstall_cmds='base_file=`basename \$file`~ 12509 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12510 dldir=$destdir/`dirname \$dlpath`~ 12511 test -d \$dldir || mkdir -p \$dldir~ 12512 $install_prog $dir/$dlname \$dldir/$dlname~ 12513 chmod a+x \$dldir/$dlname~ 12514 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12515 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12516 fi' 12517 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12518 dlpath=$dir/\$dldll~ 12519 $RM \$dlpath' 12520 shlibpath_overrides_runpath=yes 12521 12522 case $host_os in 12523 cygwin*) 12524 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12525 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12526 12527 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12528 ;; 12529 mingw* | cegcc*) 12530 # MinGW DLLs use traditional 'lib' prefix 12531 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12532 ;; 12533 pw32*) 12534 # pw32 DLLs use 'pw' prefix rather than 'lib' 12535 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12536 ;; 12537 esac 12538 dynamic_linker='Win32 ld.exe' 12539 ;; 12540 12541 *,cl*) 12542 # Native MSVC 12543 libname_spec='$name' 12544 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12545 library_names_spec='$libname.dll.lib' 12546 12547 case $build_os in 12548 mingw*) 12549 sys_lib_search_path_spec= 12550 lt_save_ifs=$IFS 12551 IFS=';' 12552 for lt_path in $LIB 12553 do 12554 IFS=$lt_save_ifs 12555 # Let DOS variable expansion print the short 8.3 style file name. 12556 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12557 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12558 done 12559 IFS=$lt_save_ifs 12560 # Convert to MSYS style. 12561 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12562 ;; 12563 cygwin*) 12564 # Convert to unix form, then to dos form, then back to unix form 12565 # but this time dos style (no spaces!) so that the unix form looks 12566 # like /cygdrive/c/PROGRA~1:/cygdr... 12567 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12568 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12569 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12570 ;; 12571 *) 12572 sys_lib_search_path_spec=$LIB 12573 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12574 # It is most probably a Windows format PATH. 12575 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12576 else 12577 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12578 fi 12579 # FIXME: find the short name or the path components, as spaces are 12580 # common. (e.g. "Program Files" -> "PROGRA~1") 12581 ;; 12582 esac 12583 12584 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12585 postinstall_cmds='base_file=`basename \$file`~ 12586 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12587 dldir=$destdir/`dirname \$dlpath`~ 12588 test -d \$dldir || mkdir -p \$dldir~ 12589 $install_prog $dir/$dlname \$dldir/$dlname' 12590 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12591 dlpath=$dir/\$dldll~ 12592 $RM \$dlpath' 12593 shlibpath_overrides_runpath=yes 12594 dynamic_linker='Win32 link.exe' 12595 ;; 12596 12597 *) 12598 # Assume MSVC wrapper 12599 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12600 dynamic_linker='Win32 ld.exe' 12601 ;; 12602 esac 12603 # FIXME: first we should search . and the directory the executable is in 12604 shlibpath_var=PATH 12605 ;; 12606 12607darwin* | rhapsody*) 12608 dynamic_linker="$host_os dyld" 12609 version_type=darwin 12610 need_lib_prefix=no 12611 need_version=no 12612 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12613 soname_spec='$libname$release$major$shared_ext' 12614 shlibpath_overrides_runpath=yes 12615 shlibpath_var=DYLD_LIBRARY_PATH 12616 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12617 12618 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12619 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12620 ;; 12621 12622dgux*) 12623 version_type=linux # correct to gnu/linux during the next big refactor 12624 need_lib_prefix=no 12625 need_version=no 12626 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12627 soname_spec='$libname$release$shared_ext$major' 12628 shlibpath_var=LD_LIBRARY_PATH 12629 ;; 12630 12631freebsd* | dragonfly*) 12632 # DragonFly does not have aout. When/if they implement a new 12633 # versioning mechanism, adjust this. 12634 if test -x /usr/bin/objformat; then 12635 objformat=`/usr/bin/objformat` 12636 else 12637 case $host_os in 12638 freebsd[23].*) objformat=aout ;; 12639 *) objformat=elf ;; 12640 esac 12641 fi 12642 version_type=freebsd-$objformat 12643 case $version_type in 12644 freebsd-elf*) 12645 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12646 soname_spec='$libname$release$shared_ext$major' 12647 need_version=no 12648 need_lib_prefix=no 12649 ;; 12650 freebsd-*) 12651 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12652 need_version=yes 12653 ;; 12654 esac 12655 shlibpath_var=LD_LIBRARY_PATH 12656 case $host_os in 12657 freebsd2.*) 12658 shlibpath_overrides_runpath=yes 12659 ;; 12660 freebsd3.[01]* | freebsdelf3.[01]*) 12661 shlibpath_overrides_runpath=yes 12662 hardcode_into_libs=yes 12663 ;; 12664 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12665 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12666 shlibpath_overrides_runpath=no 12667 hardcode_into_libs=yes 12668 ;; 12669 *) # from 4.6 on, and DragonFly 12670 shlibpath_overrides_runpath=yes 12671 hardcode_into_libs=yes 12672 ;; 12673 esac 12674 ;; 12675 12676haiku*) 12677 version_type=linux # correct to gnu/linux during the next big refactor 12678 need_lib_prefix=no 12679 need_version=no 12680 dynamic_linker="$host_os runtime_loader" 12681 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12682 soname_spec='$libname$release$shared_ext$major' 12683 shlibpath_var=LIBRARY_PATH 12684 shlibpath_overrides_runpath=no 12685 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12686 hardcode_into_libs=yes 12687 ;; 12688 12689hpux9* | hpux10* | hpux11*) 12690 # Give a soname corresponding to the major version so that dld.sl refuses to 12691 # link against other versions. 12692 version_type=sunos 12693 need_lib_prefix=no 12694 need_version=no 12695 case $host_cpu in 12696 ia64*) 12697 shrext_cmds='.so' 12698 hardcode_into_libs=yes 12699 dynamic_linker="$host_os dld.so" 12700 shlibpath_var=LD_LIBRARY_PATH 12701 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12703 soname_spec='$libname$release$shared_ext$major' 12704 if test 32 = "$HPUX_IA64_MODE"; then 12705 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12706 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12707 else 12708 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12709 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12710 fi 12711 ;; 12712 hppa*64*) 12713 shrext_cmds='.sl' 12714 hardcode_into_libs=yes 12715 dynamic_linker="$host_os dld.sl" 12716 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12717 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12718 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12719 soname_spec='$libname$release$shared_ext$major' 12720 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12721 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12722 ;; 12723 *) 12724 shrext_cmds='.sl' 12725 dynamic_linker="$host_os dld.sl" 12726 shlibpath_var=SHLIB_PATH 12727 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12728 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12729 soname_spec='$libname$release$shared_ext$major' 12730 ;; 12731 esac 12732 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12733 postinstall_cmds='chmod 555 $lib' 12734 # or fails outright, so override atomically: 12735 install_override_mode=555 12736 ;; 12737 12738interix[3-9]*) 12739 version_type=linux # correct to gnu/linux during the next big refactor 12740 need_lib_prefix=no 12741 need_version=no 12742 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12743 soname_spec='$libname$release$shared_ext$major' 12744 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12745 shlibpath_var=LD_LIBRARY_PATH 12746 shlibpath_overrides_runpath=no 12747 hardcode_into_libs=yes 12748 ;; 12749 12750irix5* | irix6* | nonstopux*) 12751 case $host_os in 12752 nonstopux*) version_type=nonstopux ;; 12753 *) 12754 if test yes = "$lt_cv_prog_gnu_ld"; then 12755 version_type=linux # correct to gnu/linux during the next big refactor 12756 else 12757 version_type=irix 12758 fi ;; 12759 esac 12760 need_lib_prefix=no 12761 need_version=no 12762 soname_spec='$libname$release$shared_ext$major' 12763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12764 case $host_os in 12765 irix5* | nonstopux*) 12766 libsuff= shlibsuff= 12767 ;; 12768 *) 12769 case $LD in # libtool.m4 will add one of these switches to LD 12770 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12771 libsuff= shlibsuff= libmagic=32-bit;; 12772 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12773 libsuff=32 shlibsuff=N32 libmagic=N32;; 12774 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12775 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12776 *) libsuff= shlibsuff= libmagic=never-match;; 12777 esac 12778 ;; 12779 esac 12780 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12781 shlibpath_overrides_runpath=no 12782 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12783 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12784 hardcode_into_libs=yes 12785 ;; 12786 12787# No shared lib support for Linux oldld, aout, or coff. 12788linux*oldld* | linux*aout* | linux*coff*) 12789 dynamic_linker=no 12790 ;; 12791 12792linux*android*) 12793 version_type=none # Android doesn't support versioned libraries. 12794 need_lib_prefix=no 12795 need_version=no 12796 library_names_spec='$libname$release$shared_ext' 12797 soname_spec='$libname$release$shared_ext' 12798 finish_cmds= 12799 shlibpath_var=LD_LIBRARY_PATH 12800 shlibpath_overrides_runpath=yes 12801 12802 # This implies no fast_install, which is unacceptable. 12803 # Some rework will be needed to allow for fast_install 12804 # before this can be enabled. 12805 hardcode_into_libs=yes 12806 12807 dynamic_linker='Android linker' 12808 # Don't embed -rpath directories since the linker doesn't support them. 12809 hardcode_libdir_flag_spec='-L$libdir' 12810 ;; 12811 12812# This must be glibc/ELF. 12813linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12814 version_type=linux # correct to gnu/linux during the next big refactor 12815 need_lib_prefix=no 12816 need_version=no 12817 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12818 soname_spec='$libname$release$shared_ext$major' 12819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12820 shlibpath_var=LD_LIBRARY_PATH 12821 shlibpath_overrides_runpath=no 12822 12823 # Some binutils ld are patched to set DT_RUNPATH 12824 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12825 $as_echo_n "(cached) " >&6 12826else 12827 lt_cv_shlibpath_overrides_runpath=no 12828 save_LDFLAGS=$LDFLAGS 12829 save_libdir=$libdir 12830 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12831 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12833/* end confdefs.h. */ 12834 12835int 12836main () 12837{ 12838 12839 ; 12840 return 0; 12841} 12842_ACEOF 12843if ac_fn_c_try_link "$LINENO"; then : 12844 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12845 lt_cv_shlibpath_overrides_runpath=yes 12846fi 12847fi 12848rm -f core conftest.err conftest.$ac_objext \ 12849 conftest$ac_exeext conftest.$ac_ext 12850 LDFLAGS=$save_LDFLAGS 12851 libdir=$save_libdir 12852 12853fi 12854 12855 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12856 12857 # This implies no fast_install, which is unacceptable. 12858 # Some rework will be needed to allow for fast_install 12859 # before this can be enabled. 12860 hardcode_into_libs=yes 12861 12862 # Ideally, we could use ldconfig to report *all* directores which are 12863 # searched for libraries, however this is still not possible. Aside from not 12864 # being certain /sbin/ldconfig is available, command 12865 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12866 # even though it is searched at run-time. Try to do the best guess by 12867 # appending ld.so.conf contents (and includes) to the search path. 12868 if test -f /etc/ld.so.conf; then 12869 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' ' '` 12870 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12871 fi 12872 12873 # We used to test for /lib/ld.so.1 and disable shared libraries on 12874 # powerpc, because MkLinux only supported shared libraries with the 12875 # GNU dynamic linker. Since this was broken with cross compilers, 12876 # most powerpc-linux boxes support dynamic linking these days and 12877 # people can always --disable-shared, the test was removed, and we 12878 # assume the GNU/Linux dynamic linker is in use. 12879 dynamic_linker='GNU/Linux ld.so' 12880 ;; 12881 12882netbsdelf*-gnu) 12883 version_type=linux 12884 need_lib_prefix=no 12885 need_version=no 12886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12887 soname_spec='${libname}${release}${shared_ext}$major' 12888 shlibpath_var=LD_LIBRARY_PATH 12889 shlibpath_overrides_runpath=no 12890 hardcode_into_libs=yes 12891 dynamic_linker='NetBSD ld.elf_so' 12892 ;; 12893 12894netbsd*) 12895 version_type=sunos 12896 need_lib_prefix=no 12897 need_version=no 12898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12899 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12901 dynamic_linker='NetBSD (a.out) ld.so' 12902 else 12903 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12904 soname_spec='$libname$release$shared_ext$major' 12905 dynamic_linker='NetBSD ld.elf_so' 12906 fi 12907 shlibpath_var=LD_LIBRARY_PATH 12908 shlibpath_overrides_runpath=yes 12909 hardcode_into_libs=yes 12910 ;; 12911 12912newsos6) 12913 version_type=linux # correct to gnu/linux during the next big refactor 12914 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12915 shlibpath_var=LD_LIBRARY_PATH 12916 shlibpath_overrides_runpath=yes 12917 ;; 12918 12919*nto* | *qnx*) 12920 version_type=qnx 12921 need_lib_prefix=no 12922 need_version=no 12923 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12924 soname_spec='$libname$release$shared_ext$major' 12925 shlibpath_var=LD_LIBRARY_PATH 12926 shlibpath_overrides_runpath=no 12927 hardcode_into_libs=yes 12928 dynamic_linker='ldqnx.so' 12929 ;; 12930 12931openbsd* | bitrig*) 12932 version_type=sunos 12933 sys_lib_dlsearch_path_spec=/usr/lib 12934 need_lib_prefix=no 12935 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12936 need_version=no 12937 else 12938 need_version=yes 12939 fi 12940 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12942 shlibpath_var=LD_LIBRARY_PATH 12943 shlibpath_overrides_runpath=yes 12944 ;; 12945 12946os2*) 12947 libname_spec='$name' 12948 version_type=windows 12949 shrext_cmds=.dll 12950 need_version=no 12951 need_lib_prefix=no 12952 # OS/2 can only load a DLL with a base name of 8 characters or less. 12953 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12954 v=$($ECHO $release$versuffix | tr -d .-); 12955 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12956 $ECHO $n$v`$shared_ext' 12957 library_names_spec='${libname}_dll.$libext' 12958 dynamic_linker='OS/2 ld.exe' 12959 shlibpath_var=BEGINLIBPATH 12960 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12961 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12962 postinstall_cmds='base_file=`basename \$file`~ 12963 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12964 dldir=$destdir/`dirname \$dlpath`~ 12965 test -d \$dldir || mkdir -p \$dldir~ 12966 $install_prog $dir/$dlname \$dldir/$dlname~ 12967 chmod a+x \$dldir/$dlname~ 12968 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12969 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12970 fi' 12971 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12972 dlpath=$dir/\$dldll~ 12973 $RM \$dlpath' 12974 ;; 12975 12976osf3* | osf4* | osf5*) 12977 version_type=osf 12978 need_lib_prefix=no 12979 need_version=no 12980 soname_spec='$libname$release$shared_ext$major' 12981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12982 shlibpath_var=LD_LIBRARY_PATH 12983 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12984 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12985 ;; 12986 12987rdos*) 12988 dynamic_linker=no 12989 ;; 12990 12991solaris*) 12992 version_type=linux # correct to gnu/linux during the next big refactor 12993 need_lib_prefix=no 12994 need_version=no 12995 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12996 soname_spec='$libname$release$shared_ext$major' 12997 shlibpath_var=LD_LIBRARY_PATH 12998 shlibpath_overrides_runpath=yes 12999 hardcode_into_libs=yes 13000 # ldd complains unless libraries are executable 13001 postinstall_cmds='chmod +x $lib' 13002 ;; 13003 13004sunos4*) 13005 version_type=sunos 13006 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13007 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13008 shlibpath_var=LD_LIBRARY_PATH 13009 shlibpath_overrides_runpath=yes 13010 if test yes = "$with_gnu_ld"; then 13011 need_lib_prefix=no 13012 fi 13013 need_version=yes 13014 ;; 13015 13016sysv4 | sysv4.3*) 13017 version_type=linux # correct to gnu/linux during the next big refactor 13018 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13019 soname_spec='$libname$release$shared_ext$major' 13020 shlibpath_var=LD_LIBRARY_PATH 13021 case $host_vendor in 13022 sni) 13023 shlibpath_overrides_runpath=no 13024 need_lib_prefix=no 13025 runpath_var=LD_RUN_PATH 13026 ;; 13027 siemens) 13028 need_lib_prefix=no 13029 ;; 13030 motorola) 13031 need_lib_prefix=no 13032 need_version=no 13033 shlibpath_overrides_runpath=no 13034 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13035 ;; 13036 esac 13037 ;; 13038 13039sysv4*MP*) 13040 if test -d /usr/nec; then 13041 version_type=linux # correct to gnu/linux during the next big refactor 13042 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 13043 soname_spec='$libname$shared_ext.$major' 13044 shlibpath_var=LD_LIBRARY_PATH 13045 fi 13046 ;; 13047 13048sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13049 version_type=sco 13050 need_lib_prefix=no 13051 need_version=no 13052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 13053 soname_spec='$libname$release$shared_ext$major' 13054 shlibpath_var=LD_LIBRARY_PATH 13055 shlibpath_overrides_runpath=yes 13056 hardcode_into_libs=yes 13057 if test yes = "$with_gnu_ld"; then 13058 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13059 else 13060 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13061 case $host_os in 13062 sco3.2v5*) 13063 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13064 ;; 13065 esac 13066 fi 13067 sys_lib_dlsearch_path_spec='/usr/lib' 13068 ;; 13069 13070tpf*) 13071 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13072 version_type=linux # correct to gnu/linux during the next big refactor 13073 need_lib_prefix=no 13074 need_version=no 13075 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13076 shlibpath_var=LD_LIBRARY_PATH 13077 shlibpath_overrides_runpath=no 13078 hardcode_into_libs=yes 13079 ;; 13080 13081uts4*) 13082 version_type=linux # correct to gnu/linux during the next big refactor 13083 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13084 soname_spec='$libname$release$shared_ext$major' 13085 shlibpath_var=LD_LIBRARY_PATH 13086 ;; 13087 13088*) 13089 dynamic_linker=no 13090 ;; 13091esac 13092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13093$as_echo "$dynamic_linker" >&6; } 13094test no = "$dynamic_linker" && can_build_shared=no 13095 13096variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13097if test yes = "$GCC"; then 13098 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13099fi 13100 13101if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 13102 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 13103fi 13104 13105if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 13106 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 13107fi 13108 13109# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 13110configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 13111 13112# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 13113func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 13114 13115# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 13116configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13215$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13216hardcode_action= 13217if test -n "$hardcode_libdir_flag_spec" || 13218 test -n "$runpath_var" || 13219 test yes = "$hardcode_automatic"; then 13220 13221 # We can hardcode non-existent directories. 13222 if test no != "$hardcode_direct" && 13223 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13224 # have to relink, otherwise we might link with an installed library 13225 # when we should be linking with a yet-to-be-installed one 13226 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13227 test no != "$hardcode_minus_L"; then 13228 # Linking always hardcodes the temporary library directory. 13229 hardcode_action=relink 13230 else 13231 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13232 hardcode_action=immediate 13233 fi 13234else 13235 # We cannot hardcode anything, or else we can only hardcode existing 13236 # directories. 13237 hardcode_action=unsupported 13238fi 13239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13240$as_echo "$hardcode_action" >&6; } 13241 13242if test relink = "$hardcode_action" || 13243 test yes = "$inherit_rpath"; then 13244 # Fast installation is not supported 13245 enable_fast_install=no 13246elif test yes = "$shlibpath_overrides_runpath" || 13247 test no = "$enable_shared"; then 13248 # Fast installation is not necessary 13249 enable_fast_install=needless 13250fi 13251 13252 13253 13254 13255 13256 13257 if test yes != "$enable_dlopen"; then 13258 enable_dlopen=unknown 13259 enable_dlopen_self=unknown 13260 enable_dlopen_self_static=unknown 13261else 13262 lt_cv_dlopen=no 13263 lt_cv_dlopen_libs= 13264 13265 case $host_os in 13266 beos*) 13267 lt_cv_dlopen=load_add_on 13268 lt_cv_dlopen_libs= 13269 lt_cv_dlopen_self=yes 13270 ;; 13271 13272 mingw* | pw32* | cegcc*) 13273 lt_cv_dlopen=LoadLibrary 13274 lt_cv_dlopen_libs= 13275 ;; 13276 13277 cygwin*) 13278 lt_cv_dlopen=dlopen 13279 lt_cv_dlopen_libs= 13280 ;; 13281 13282 darwin*) 13283 # if libdl is installed we need to link against it 13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13285$as_echo_n "checking for dlopen in -ldl... " >&6; } 13286if ${ac_cv_lib_dl_dlopen+:} false; then : 13287 $as_echo_n "(cached) " >&6 13288else 13289 ac_check_lib_save_LIBS=$LIBS 13290LIBS="-ldl $LIBS" 13291cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13292/* end confdefs.h. */ 13293 13294/* Override any GCC internal prototype to avoid an error. 13295 Use char because int might match the return type of a GCC 13296 builtin and then its argument prototype would still apply. */ 13297#ifdef __cplusplus 13298extern "C" 13299#endif 13300char dlopen (); 13301int 13302main () 13303{ 13304return dlopen (); 13305 ; 13306 return 0; 13307} 13308_ACEOF 13309if ac_fn_c_try_link "$LINENO"; then : 13310 ac_cv_lib_dl_dlopen=yes 13311else 13312 ac_cv_lib_dl_dlopen=no 13313fi 13314rm -f core conftest.err conftest.$ac_objext \ 13315 conftest$ac_exeext conftest.$ac_ext 13316LIBS=$ac_check_lib_save_LIBS 13317fi 13318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13319$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13320if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13321 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13322else 13323 13324 lt_cv_dlopen=dyld 13325 lt_cv_dlopen_libs= 13326 lt_cv_dlopen_self=yes 13327 13328fi 13329 13330 ;; 13331 13332 tpf*) 13333 # Don't try to run any link tests for TPF. We know it's impossible 13334 # because TPF is a cross-compiler, and we know how we open DSOs. 13335 lt_cv_dlopen=dlopen 13336 lt_cv_dlopen_libs= 13337 lt_cv_dlopen_self=no 13338 ;; 13339 13340 *) 13341 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13342if test "x$ac_cv_func_shl_load" = xyes; then : 13343 lt_cv_dlopen=shl_load 13344else 13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13346$as_echo_n "checking for shl_load in -ldld... " >&6; } 13347if ${ac_cv_lib_dld_shl_load+:} false; then : 13348 $as_echo_n "(cached) " >&6 13349else 13350 ac_check_lib_save_LIBS=$LIBS 13351LIBS="-ldld $LIBS" 13352cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13353/* end confdefs.h. */ 13354 13355/* Override any GCC internal prototype to avoid an error. 13356 Use char because int might match the return type of a GCC 13357 builtin and then its argument prototype would still apply. */ 13358#ifdef __cplusplus 13359extern "C" 13360#endif 13361char shl_load (); 13362int 13363main () 13364{ 13365return shl_load (); 13366 ; 13367 return 0; 13368} 13369_ACEOF 13370if ac_fn_c_try_link "$LINENO"; then : 13371 ac_cv_lib_dld_shl_load=yes 13372else 13373 ac_cv_lib_dld_shl_load=no 13374fi 13375rm -f core conftest.err conftest.$ac_objext \ 13376 conftest$ac_exeext conftest.$ac_ext 13377LIBS=$ac_check_lib_save_LIBS 13378fi 13379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13380$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13381if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13382 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13383else 13384 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13385if test "x$ac_cv_func_dlopen" = xyes; then : 13386 lt_cv_dlopen=dlopen 13387else 13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13389$as_echo_n "checking for dlopen in -ldl... " >&6; } 13390if ${ac_cv_lib_dl_dlopen+:} false; then : 13391 $as_echo_n "(cached) " >&6 13392else 13393 ac_check_lib_save_LIBS=$LIBS 13394LIBS="-ldl $LIBS" 13395cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13396/* end confdefs.h. */ 13397 13398/* Override any GCC internal prototype to avoid an error. 13399 Use char because int might match the return type of a GCC 13400 builtin and then its argument prototype would still apply. */ 13401#ifdef __cplusplus 13402extern "C" 13403#endif 13404char dlopen (); 13405int 13406main () 13407{ 13408return dlopen (); 13409 ; 13410 return 0; 13411} 13412_ACEOF 13413if ac_fn_c_try_link "$LINENO"; then : 13414 ac_cv_lib_dl_dlopen=yes 13415else 13416 ac_cv_lib_dl_dlopen=no 13417fi 13418rm -f core conftest.err conftest.$ac_objext \ 13419 conftest$ac_exeext conftest.$ac_ext 13420LIBS=$ac_check_lib_save_LIBS 13421fi 13422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13423$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13424if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13425 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13426else 13427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13428$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13429if ${ac_cv_lib_svld_dlopen+:} false; then : 13430 $as_echo_n "(cached) " >&6 13431else 13432 ac_check_lib_save_LIBS=$LIBS 13433LIBS="-lsvld $LIBS" 13434cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13435/* end confdefs.h. */ 13436 13437/* Override any GCC internal prototype to avoid an error. 13438 Use char because int might match the return type of a GCC 13439 builtin and then its argument prototype would still apply. */ 13440#ifdef __cplusplus 13441extern "C" 13442#endif 13443char dlopen (); 13444int 13445main () 13446{ 13447return dlopen (); 13448 ; 13449 return 0; 13450} 13451_ACEOF 13452if ac_fn_c_try_link "$LINENO"; then : 13453 ac_cv_lib_svld_dlopen=yes 13454else 13455 ac_cv_lib_svld_dlopen=no 13456fi 13457rm -f core conftest.err conftest.$ac_objext \ 13458 conftest$ac_exeext conftest.$ac_ext 13459LIBS=$ac_check_lib_save_LIBS 13460fi 13461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13462$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13463if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13464 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13465else 13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13467$as_echo_n "checking for dld_link in -ldld... " >&6; } 13468if ${ac_cv_lib_dld_dld_link+:} false; then : 13469 $as_echo_n "(cached) " >&6 13470else 13471 ac_check_lib_save_LIBS=$LIBS 13472LIBS="-ldld $LIBS" 13473cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13474/* end confdefs.h. */ 13475 13476/* Override any GCC internal prototype to avoid an error. 13477 Use char because int might match the return type of a GCC 13478 builtin and then its argument prototype would still apply. */ 13479#ifdef __cplusplus 13480extern "C" 13481#endif 13482char dld_link (); 13483int 13484main () 13485{ 13486return dld_link (); 13487 ; 13488 return 0; 13489} 13490_ACEOF 13491if ac_fn_c_try_link "$LINENO"; then : 13492 ac_cv_lib_dld_dld_link=yes 13493else 13494 ac_cv_lib_dld_dld_link=no 13495fi 13496rm -f core conftest.err conftest.$ac_objext \ 13497 conftest$ac_exeext conftest.$ac_ext 13498LIBS=$ac_check_lib_save_LIBS 13499fi 13500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13501$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13502if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13503 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13504fi 13505 13506 13507fi 13508 13509 13510fi 13511 13512 13513fi 13514 13515 13516fi 13517 13518 13519fi 13520 13521 ;; 13522 esac 13523 13524 if test no = "$lt_cv_dlopen"; then 13525 enable_dlopen=no 13526 else 13527 enable_dlopen=yes 13528 fi 13529 13530 case $lt_cv_dlopen in 13531 dlopen) 13532 save_CPPFLAGS=$CPPFLAGS 13533 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13534 13535 save_LDFLAGS=$LDFLAGS 13536 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13537 13538 save_LIBS=$LIBS 13539 LIBS="$lt_cv_dlopen_libs $LIBS" 13540 13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13542$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13543if ${lt_cv_dlopen_self+:} false; then : 13544 $as_echo_n "(cached) " >&6 13545else 13546 if test yes = "$cross_compiling"; then : 13547 lt_cv_dlopen_self=cross 13548else 13549 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13550 lt_status=$lt_dlunknown 13551 cat > conftest.$ac_ext <<_LT_EOF 13552#line $LINENO "configure" 13553#include "confdefs.h" 13554 13555#if HAVE_DLFCN_H 13556#include <dlfcn.h> 13557#endif 13558 13559#include <stdio.h> 13560 13561#ifdef RTLD_GLOBAL 13562# define LT_DLGLOBAL RTLD_GLOBAL 13563#else 13564# ifdef DL_GLOBAL 13565# define LT_DLGLOBAL DL_GLOBAL 13566# else 13567# define LT_DLGLOBAL 0 13568# endif 13569#endif 13570 13571/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13572 find out it does not work in some platform. */ 13573#ifndef LT_DLLAZY_OR_NOW 13574# ifdef RTLD_LAZY 13575# define LT_DLLAZY_OR_NOW RTLD_LAZY 13576# else 13577# ifdef DL_LAZY 13578# define LT_DLLAZY_OR_NOW DL_LAZY 13579# else 13580# ifdef RTLD_NOW 13581# define LT_DLLAZY_OR_NOW RTLD_NOW 13582# else 13583# ifdef DL_NOW 13584# define LT_DLLAZY_OR_NOW DL_NOW 13585# else 13586# define LT_DLLAZY_OR_NOW 0 13587# endif 13588# endif 13589# endif 13590# endif 13591#endif 13592 13593/* When -fvisibility=hidden is used, assume the code has been annotated 13594 correspondingly for the symbols needed. */ 13595#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13596int fnord () __attribute__((visibility("default"))); 13597#endif 13598 13599int fnord () { return 42; } 13600int main () 13601{ 13602 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13603 int status = $lt_dlunknown; 13604 13605 if (self) 13606 { 13607 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13608 else 13609 { 13610 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13611 else puts (dlerror ()); 13612 } 13613 /* dlclose (self); */ 13614 } 13615 else 13616 puts (dlerror ()); 13617 13618 return status; 13619} 13620_LT_EOF 13621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13622 (eval $ac_link) 2>&5 13623 ac_status=$? 13624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13625 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13626 (./conftest; exit; ) >&5 2>/dev/null 13627 lt_status=$? 13628 case x$lt_status in 13629 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13630 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13631 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13632 esac 13633 else : 13634 # compilation failed 13635 lt_cv_dlopen_self=no 13636 fi 13637fi 13638rm -fr conftest* 13639 13640 13641fi 13642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13643$as_echo "$lt_cv_dlopen_self" >&6; } 13644 13645 if test yes = "$lt_cv_dlopen_self"; then 13646 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13648$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13649if ${lt_cv_dlopen_self_static+:} false; then : 13650 $as_echo_n "(cached) " >&6 13651else 13652 if test yes = "$cross_compiling"; then : 13653 lt_cv_dlopen_self_static=cross 13654else 13655 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13656 lt_status=$lt_dlunknown 13657 cat > conftest.$ac_ext <<_LT_EOF 13658#line $LINENO "configure" 13659#include "confdefs.h" 13660 13661#if HAVE_DLFCN_H 13662#include <dlfcn.h> 13663#endif 13664 13665#include <stdio.h> 13666 13667#ifdef RTLD_GLOBAL 13668# define LT_DLGLOBAL RTLD_GLOBAL 13669#else 13670# ifdef DL_GLOBAL 13671# define LT_DLGLOBAL DL_GLOBAL 13672# else 13673# define LT_DLGLOBAL 0 13674# endif 13675#endif 13676 13677/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13678 find out it does not work in some platform. */ 13679#ifndef LT_DLLAZY_OR_NOW 13680# ifdef RTLD_LAZY 13681# define LT_DLLAZY_OR_NOW RTLD_LAZY 13682# else 13683# ifdef DL_LAZY 13684# define LT_DLLAZY_OR_NOW DL_LAZY 13685# else 13686# ifdef RTLD_NOW 13687# define LT_DLLAZY_OR_NOW RTLD_NOW 13688# else 13689# ifdef DL_NOW 13690# define LT_DLLAZY_OR_NOW DL_NOW 13691# else 13692# define LT_DLLAZY_OR_NOW 0 13693# endif 13694# endif 13695# endif 13696# endif 13697#endif 13698 13699/* When -fvisibility=hidden is used, assume the code has been annotated 13700 correspondingly for the symbols needed. */ 13701#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13702int fnord () __attribute__((visibility("default"))); 13703#endif 13704 13705int fnord () { return 42; } 13706int main () 13707{ 13708 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13709 int status = $lt_dlunknown; 13710 13711 if (self) 13712 { 13713 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13714 else 13715 { 13716 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13717 else puts (dlerror ()); 13718 } 13719 /* dlclose (self); */ 13720 } 13721 else 13722 puts (dlerror ()); 13723 13724 return status; 13725} 13726_LT_EOF 13727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13728 (eval $ac_link) 2>&5 13729 ac_status=$? 13730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13731 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13732 (./conftest; exit; ) >&5 2>/dev/null 13733 lt_status=$? 13734 case x$lt_status in 13735 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13736 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13737 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13738 esac 13739 else : 13740 # compilation failed 13741 lt_cv_dlopen_self_static=no 13742 fi 13743fi 13744rm -fr conftest* 13745 13746 13747fi 13748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13749$as_echo "$lt_cv_dlopen_self_static" >&6; } 13750 fi 13751 13752 CPPFLAGS=$save_CPPFLAGS 13753 LDFLAGS=$save_LDFLAGS 13754 LIBS=$save_LIBS 13755 ;; 13756 esac 13757 13758 case $lt_cv_dlopen_self in 13759 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13760 *) enable_dlopen_self=unknown ;; 13761 esac 13762 13763 case $lt_cv_dlopen_self_static in 13764 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13765 *) enable_dlopen_self_static=unknown ;; 13766 esac 13767fi 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785striplib= 13786old_striplib= 13787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13788$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13789if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13790 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13791 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13793$as_echo "yes" >&6; } 13794else 13795# FIXME - insert some real tests, host_os isn't really good enough 13796 case $host_os in 13797 darwin*) 13798 if test -n "$STRIP"; then 13799 striplib="$STRIP -x" 13800 old_striplib="$STRIP -S" 13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13802$as_echo "yes" >&6; } 13803 else 13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13805$as_echo "no" >&6; } 13806 fi 13807 ;; 13808 *) 13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13810$as_echo "no" >&6; } 13811 ;; 13812 esac 13813fi 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 # Report what library types will actually be built 13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13828$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13830$as_echo "$can_build_shared" >&6; } 13831 13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13833$as_echo_n "checking whether to build shared libraries... " >&6; } 13834 test no = "$can_build_shared" && enable_shared=no 13835 13836 # On AIX, shared libraries and static libraries use the same namespace, and 13837 # are all built from PIC. 13838 case $host_os in 13839 aix3*) 13840 test yes = "$enable_shared" && enable_static=no 13841 if test -n "$RANLIB"; then 13842 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13843 postinstall_cmds='$RANLIB $lib' 13844 fi 13845 ;; 13846 13847 aix[4-9]*) 13848 if test ia64 != "$host_cpu"; then 13849 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13850 yes,aix,yes) ;; # shared object as lib.so file only 13851 yes,svr4,*) ;; # shared object as lib.so archive member only 13852 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13853 esac 13854 fi 13855 ;; 13856 esac 13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13858$as_echo "$enable_shared" >&6; } 13859 13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13861$as_echo_n "checking whether to build static libraries... " >&6; } 13862 # Make sure either enable_shared or enable_static is yes. 13863 test yes = "$enable_shared" || enable_static=yes 13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13865$as_echo "$enable_static" >&6; } 13866 13867 13868 13869 13870fi 13871ac_ext=c 13872ac_cpp='$CPP $CPPFLAGS' 13873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13875ac_compiler_gnu=$ac_cv_c_compiler_gnu 13876 13877CC=$lt_save_CC 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 ac_config_commands="$ac_config_commands libtool" 13894 13895 13896 13897 13898# Only expand once: 13899 13900 13901 13902target=$save_target 13903 13904if test "$enable_static" = yes; then 13905 SASL_STATIC_LIB=libsasl2.a 13906else 13907 SASL_STATIC_LIB= 13908fi 13909 13910SASL_STATIC_LIBS= 13911 13912# Check whether --enable-staticdlopen was given. 13913if test "${enable_staticdlopen+set}" = set; then : 13914 enableval=$enable_staticdlopen; enable_staticdlopen=$enableval 13915else 13916 enable_staticdlopen=no 13917fi 13918 13919 13920if test "$enable_staticdlopen" = yes; then 13921 13922$as_echo "#define TRY_DLOPEN_WHEN_STATIC /**/" >>confdefs.h 13923 13924fi 13925 13926if test "$ac_cv_c_compiler_gnu" = yes; then 13927 CFLAGS="-Wall -W ${CFLAGS}" 13928fi 13929 13930 13931# Check whether --with-purecov was given. 13932if test "${with_purecov+set}" = set; then : 13933 withval=$with_purecov; 13934fi 13935 13936if test "$with_purecov" = yes; then 13937 for ac_prog in purecov 13938do 13939 # Extract the first word of "$ac_prog", so it can be a program name with args. 13940set dummy $ac_prog; ac_word=$2 13941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13942$as_echo_n "checking for $ac_word... " >&6; } 13943if ${ac_cv_prog_PURECOV+:} false; then : 13944 $as_echo_n "(cached) " >&6 13945else 13946 if test -n "$PURECOV"; then 13947 ac_cv_prog_PURECOV="$PURECOV" # Let the user override the test. 13948else 13949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13950for as_dir in $PATH 13951do 13952 IFS=$as_save_IFS 13953 test -z "$as_dir" && as_dir=. 13954 for ac_exec_ext in '' $ac_executable_extensions; do 13955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13956 ac_cv_prog_PURECOV="$ac_prog" 13957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13958 break 2 13959 fi 13960done 13961 done 13962IFS=$as_save_IFS 13963 13964fi 13965fi 13966PURECOV=$ac_cv_prog_PURECOV 13967if test -n "$PURECOV"; then 13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PURECOV" >&5 13969$as_echo "$PURECOV" >&6; } 13970else 13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13972$as_echo "no" >&6; } 13973fi 13974 13975 13976 test -n "$PURECOV" && break 13977done 13978 13979fi 13980 13981# Check whether --with-purify was given. 13982if test "${with_purify+set}" = set; then : 13983 withval=$with_purify; 13984fi 13985 13986if test "$with_purify" = yes; then 13987 for ac_prog in purify 13988do 13989 # Extract the first word of "$ac_prog", so it can be a program name with args. 13990set dummy $ac_prog; ac_word=$2 13991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13992$as_echo_n "checking for $ac_word... " >&6; } 13993if ${ac_cv_prog_PURIFY+:} false; then : 13994 $as_echo_n "(cached) " >&6 13995else 13996 if test -n "$PURIFY"; then 13997 ac_cv_prog_PURIFY="$PURIFY" # Let the user override the test. 13998else 13999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14000for as_dir in $PATH 14001do 14002 IFS=$as_save_IFS 14003 test -z "$as_dir" && as_dir=. 14004 for ac_exec_ext in '' $ac_executable_extensions; do 14005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14006 ac_cv_prog_PURIFY="$ac_prog" 14007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14008 break 2 14009 fi 14010done 14011 done 14012IFS=$as_save_IFS 14013 14014fi 14015fi 14016PURIFY=$ac_cv_prog_PURIFY 14017if test -n "$PURIFY"; then 14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PURIFY" >&5 14019$as_echo "$PURIFY" >&6; } 14020else 14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14022$as_echo "no" >&6; } 14023fi 14024 14025 14026 test -n "$PURIFY" && break 14027done 14028 14029fi 14030 14031 if test "$enable_sample" = yes; then 14032 SAMPLE_TRUE= 14033 SAMPLE_FALSE='#' 14034else 14035 SAMPLE_TRUE='#' 14036 SAMPLE_FALSE= 14037fi 14038 14039 14040 14041 save_LIBS="$LIBS" 14042 for ac_header in sys/socket.h ws2tcpip.h 14043do : 14044 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14045ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14046if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14047 cat >>confdefs.h <<_ACEOF 14048#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14049_ACEOF 14050 14051fi 14052 14053done 14054 14055 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 14056if test "x$ac_cv_func_socket" = xyes; then : 14057 14058else 14059 14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 14061$as_echo_n "checking for socket in -lsocket... " >&6; } 14062if ${ac_cv_lib_socket_socket+:} false; then : 14063 $as_echo_n "(cached) " >&6 14064else 14065 ac_check_lib_save_LIBS=$LIBS 14066LIBS="-lsocket $LIBS" 14067cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14068/* end confdefs.h. */ 14069 14070/* Override any GCC internal prototype to avoid an error. 14071 Use char because int might match the return type of a GCC 14072 builtin and then its argument prototype would still apply. */ 14073#ifdef __cplusplus 14074extern "C" 14075#endif 14076char socket (); 14077int 14078main () 14079{ 14080return socket (); 14081 ; 14082 return 0; 14083} 14084_ACEOF 14085if ac_fn_c_try_link "$LINENO"; then : 14086 ac_cv_lib_socket_socket=yes 14087else 14088 ac_cv_lib_socket_socket=no 14089fi 14090rm -f core conftest.err conftest.$ac_objext \ 14091 conftest$ac_exeext conftest.$ac_ext 14092LIBS=$ac_check_lib_save_LIBS 14093fi 14094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 14095$as_echo "$ac_cv_lib_socket_socket" >&6; } 14096if test "x$ac_cv_lib_socket_socket" = xyes; then : 14097 LIB_SOCKET=-lsocket 14098else 14099 14100 LIBS="$LIBS -lws2_32" 14101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14102/* end confdefs.h. */ 14103 14104 14105 #ifdef HAVE_SYS_SOCKET_H 14106 # include <sys/socket.h> 14107 #endif 14108 #ifdef HAVE_WS2TCPIP_H 14109 # include <ws2tcpip.h> 14110 #endif 14111 14112int 14113main () 14114{ 14115return socket(0, 0, 0); 14116 ; 14117 return 0; 14118} 14119 14120_ACEOF 14121if ac_fn_c_try_link "$LINENO"; then : 14122 LIB_SOCKET=-lws2_32 14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14124$as_echo "yes" >&6; } 14125else 14126 as_fn_error $? "socket not found" "$LINENO" 5 14127fi 14128rm -f core conftest.err conftest.$ac_objext \ 14129 conftest$ac_exeext conftest.$ac_ext 14130 14131fi 14132 14133 14134fi 14135 14136 LIBS="$save_LIBS" 14137 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 14138if test "x$ac_cv_func_connect" = xyes; then : 14139 : 14140else 14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 14142$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 14143if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 14144 $as_echo_n "(cached) " >&6 14145else 14146 ac_check_lib_save_LIBS=$LIBS 14147LIBS="-lnsl $LIBS" 14148cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14149/* end confdefs.h. */ 14150 14151/* Override any GCC internal prototype to avoid an error. 14152 Use char because int might match the return type of a GCC 14153 builtin and then its argument prototype would still apply. */ 14154#ifdef __cplusplus 14155extern "C" 14156#endif 14157char gethostbyname (); 14158int 14159main () 14160{ 14161return gethostbyname (); 14162 ; 14163 return 0; 14164} 14165_ACEOF 14166if ac_fn_c_try_link "$LINENO"; then : 14167 ac_cv_lib_nsl_gethostbyname=yes 14168else 14169 ac_cv_lib_nsl_gethostbyname=no 14170fi 14171rm -f core conftest.err conftest.$ac_objext \ 14172 conftest$ac_exeext conftest.$ac_ext 14173LIBS=$ac_check_lib_save_LIBS 14174fi 14175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 14176$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 14177if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 14178 LIB_SOCKET="-lnsl $LIB_SOCKET" 14179fi 14180 14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 14182$as_echo_n "checking for connect in -lsocket... " >&6; } 14183if ${ac_cv_lib_socket_connect+:} false; then : 14184 $as_echo_n "(cached) " >&6 14185else 14186 ac_check_lib_save_LIBS=$LIBS 14187LIBS="-lsocket $LIBS" 14188cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14189/* end confdefs.h. */ 14190 14191/* Override any GCC internal prototype to avoid an error. 14192 Use char because int might match the return type of a GCC 14193 builtin and then its argument prototype would still apply. */ 14194#ifdef __cplusplus 14195extern "C" 14196#endif 14197char connect (); 14198int 14199main () 14200{ 14201return connect (); 14202 ; 14203 return 0; 14204} 14205_ACEOF 14206if ac_fn_c_try_link "$LINENO"; then : 14207 ac_cv_lib_socket_connect=yes 14208else 14209 ac_cv_lib_socket_connect=no 14210fi 14211rm -f core conftest.err conftest.$ac_objext \ 14212 conftest$ac_exeext conftest.$ac_ext 14213LIBS=$ac_check_lib_save_LIBS 14214fi 14215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 14216$as_echo "$ac_cv_lib_socket_connect" >&6; } 14217if test "x$ac_cv_lib_socket_connect" = xyes; then : 14218 LIB_SOCKET="-lsocket $LIB_SOCKET" 14219fi 14220 14221 14222fi 14223 14224 LIBS="$LIB_SOCKET $save_LIBS" 14225 ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search" 14226if test "x$ac_cv_func_res_search" = xyes; then : 14227 : 14228else 14229 LIBS="-lresolv $LIB_SOCKET $save_LIBS" 14230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14231/* end confdefs.h. */ 14232[ 14233#include <sys/types.h> 14234#include <netinet/in.h> 14235#include <arpa/nameser.h> 14236#ifdef HAVE_ARPA_NAMESER_COMPAT_H 14237#include <arpa/nameser_compat.h> 14238#endif 14239#include <resolv.h>] 14240int 14241main () 14242{ 14243[ 14244const char host[12]="openafs.org"; 14245u_char ans[1024]; 14246res_search( host, C_IN, T_MX, (u_char *)&ans, sizeof(ans)); 14247return 0; 14248] 14249 ; 14250 return 0; 14251} 14252_ACEOF 14253if ac_fn_c_try_link "$LINENO"; then : 14254 LIB_SOCKET="-lresolv $LIB_SOCKET" 14255fi 14256rm -f core conftest.err conftest.$ac_objext \ 14257 conftest$ac_exeext conftest.$ac_ext 14258 14259fi 14260 14261 LIBS="$LIB_SOCKET $save_LIBS" 14262 for ac_func in dn_expand dns_lookup 14263do : 14264 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14265ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14266if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14267 cat >>confdefs.h <<_ACEOF 14268#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14269_ACEOF 14270 14271fi 14272done 14273 14274 LIBS="$save_LIBS" 14275 14276 14277 14278 14279 14280# Check whether --with-dbpath was given. 14281if test "${with_dbpath+set}" = set; then : 14282 withval=$with_dbpath; dbpath=$withval 14283else 14284 dbpath=/etc/sasldb2 14285fi 14286 14287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DB path to use" >&5 14288$as_echo_n "checking DB path to use... " >&6; } 14289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbpath" >&5 14290$as_echo "$dbpath" >&6; } 14291 14292cat >>confdefs.h <<_ACEOF 14293#define SASL_DB_PATH "$dbpath" 14294_ACEOF 14295 14296 14297cmu_save_LIBS="$LIBS" 14298 14299# Check whether --with-dblib was given. 14300if test "${with_dblib+set}" = set; then : 14301 withval=$with_dblib; dblib=$withval 14302else 14303 dblib=auto_detect 14304fi 14305 14306 14307 14308 14309# Check whether --with-bdb-libdir was given. 14310if test "${with_bdb_libdir+set}" = set; then : 14311 withval=$with_bdb_libdir; with_bdb_lib=$withval 14312else 14313 test "${with_bdb_lib+set}" = set || with_bdb_lib=none 14314fi 14315 14316 14317# Check whether --with-bdb-incdir was given. 14318if test "${with_bdb_incdir+set}" = set; then : 14319 withval=$with_bdb_incdir; with_bdb_inc=$withval 14320else 14321 test "${with_bdb_inc+set}" = set || with_bdb_inc=none 14322fi 14323 14324 14325 14326SASL_DB_LIB="" 14327 14328case "$dblib" in 14329 berkeley) 14330 14331 14332 14333 cmu_save_CPPFLAGS=$CPPFLAGS 14334 14335 if test -d $with_bdb_inc; then 14336 CPPFLAGS="$CPPFLAGS -I$with_bdb_inc" 14337 BDB_INCADD="-I$with_bdb_inc" 14338 else 14339 BDB_INCADD="" 14340 fi 14341 14342 ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default" 14343if test "x$ac_cv_header_db_h" = xyes; then : 14344 14345 BDB_SAVE_LDFLAGS=$LDFLAGS 14346 14347 if test -d $with_bdb_lib; then 14348 14349 # this is CMU ADD LIBPATH TO 14350 if test "$andrew_cv_runpath_switch" = "none" ; then 14351 LDFLAGS="-L$with_bdb_lib ${LDFLAGS}" 14352 else 14353 LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_cv_runpath_switch$with_bdb_lib" 14354 fi 14355 14356 14357 # this is CMU ADD LIBPATH TO 14358 if test "$andrew_cv_runpath_switch" = "none" ; then 14359 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}" 14360 else 14361 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_cv_runpath_switch$with_bdb_lib" 14362 fi 14363 14364 else 14365 BDB_LIBADD="" 14366 fi 14367 14368 saved_LIBS=$LIBS 14369 for dbname in ${with_bdb} \ 14370 db-5.2 db5.2 db52 \ 14371 db-5.1 db5.2 db51 \ 14372 db-5.0 db5.2 db50 \ 14373 db-4.8 db4.8 db48 \ 14374 db-4.7 db4.7 db47 \ 14375 db-4.6 db4.6 db46 \ 14376 db-4.5 db4.5 db45 \ 14377 db-4.4 db4.4 db44 \ 14378 db-4.3 db4.3 db43 \ 14379 db-4.2 db4.2 db42 \ 14380 db-4.1 db4.1 db41 \ 14381 db-4.0 db4.0 db40 db-4 db4 \ 14382 db-3.3 db3.3 db33 \ 14383 db-3.2 db3.2 db32 \ 14384 db-3.1 db3.1 db31 \ 14385 db-3.0 db3.0 db30 db-3 db3 \ 14386 db 14387 do 14388 LIBS="$saved_LIBS -l$dbname" 14389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14390/* end confdefs.h. */ 14391#include <stdio.h> 14392#include <db.h> 14393int 14394main () 14395{ 14396db_create(NULL, NULL, 0); 14397 ; 14398 return 0; 14399} 14400_ACEOF 14401if ac_fn_c_try_link "$LINENO"; then : 14402 BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db 14403else 14404 dblib="no" 14405fi 14406rm -f core conftest.err conftest.$ac_objext \ 14407 conftest$ac_exeext conftest.$ac_ext 14408 if test "$dblib" = "berkeley"; then break; fi 14409 done 14410 if test "$dblib" = "no"; then 14411 LIBS="$saved_LIBS -ldb" 14412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14413/* end confdefs.h. */ 14414#include <stdio.h> 14415#include <db.h> 14416int 14417main () 14418{ 14419db_open(NULL, 0, 0, 0, NULL, NULL, NULL); 14420 ; 14421 return 0; 14422} 14423_ACEOF 14424if ac_fn_c_try_link "$LINENO"; then : 14425 BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db 14426else 14427 dblib="no" 14428fi 14429rm -f core conftest.err conftest.$ac_objext \ 14430 conftest$ac_exeext conftest.$ac_ext 14431 fi 14432 LIBS=$saved_LIBS 14433 14434 LDFLAGS=$BDB_SAVE_LDFLAGS 14435 14436else 14437 dblib="no" 14438fi 14439 14440 14441 14442 CPPFLAGS=$cmu_save_CPPFLAGS 14443 14444 CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}" 14445 SASL_DB_INC=$BDB_INCADD 14446 SASL_DB_LIB="${BDB_LIBADD}" 14447 ;; 14448 gdbm) 14449 14450# Check whether --with-gdbm was given. 14451if test "${with_gdbm+set}" = set; then : 14452 withval=$with_gdbm; with_gdbm="${withval}" 14453fi 14454 14455 14456 case "$with_gdbm" in 14457 ""|yes) 14458 ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default" 14459if test "x$ac_cv_header_gdbm_h" = xyes; then : 14460 14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5 14462$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; } 14463if ${ac_cv_lib_gdbm_gdbm_open+:} false; then : 14464 $as_echo_n "(cached) " >&6 14465else 14466 ac_check_lib_save_LIBS=$LIBS 14467LIBS="-lgdbm $LIBS" 14468cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14469/* end confdefs.h. */ 14470 14471/* Override any GCC internal prototype to avoid an error. 14472 Use char because int might match the return type of a GCC 14473 builtin and then its argument prototype would still apply. */ 14474#ifdef __cplusplus 14475extern "C" 14476#endif 14477char gdbm_open (); 14478int 14479main () 14480{ 14481return gdbm_open (); 14482 ; 14483 return 0; 14484} 14485_ACEOF 14486if ac_fn_c_try_link "$LINENO"; then : 14487 ac_cv_lib_gdbm_gdbm_open=yes 14488else 14489 ac_cv_lib_gdbm_gdbm_open=no 14490fi 14491rm -f core conftest.err conftest.$ac_objext \ 14492 conftest$ac_exeext conftest.$ac_ext 14493LIBS=$ac_check_lib_save_LIBS 14494fi 14495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5 14496$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; } 14497if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then : 14498 SASL_DB_LIB="-lgdbm" 14499else 14500 dblib="no" 14501fi 14502 14503else 14504 dblib="no" 14505fi 14506 14507 14508 ;; 14509 *) 14510 if test -d $with_gdbm; then 14511 CPPFLAGS="${CPPFLAGS} -I${with_gdbm}/include" 14512 LDFLAGS="${LDFLAGS} -L${with_gdbm}/lib" 14513 SASL_DB_LIB="-lgdbm" 14514 else 14515 with_gdbm="no" 14516 fi 14517 esac 14518 ;; 14519 lmdb) 14520 ac_fn_c_check_header_mongrel "$LINENO" "lmdb.h" "ac_cv_header_lmdb_h" "$ac_includes_default" 14521if test "x$ac_cv_header_lmdb_h" = xyes; then : 14522 14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mdb_env_create in -llmdb" >&5 14524$as_echo_n "checking for mdb_env_create in -llmdb... " >&6; } 14525if ${ac_cv_lib_lmdb_mdb_env_create+:} false; then : 14526 $as_echo_n "(cached) " >&6 14527else 14528 ac_check_lib_save_LIBS=$LIBS 14529LIBS="-llmdb $LIBS" 14530cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14531/* end confdefs.h. */ 14532 14533/* Override any GCC internal prototype to avoid an error. 14534 Use char because int might match the return type of a GCC 14535 builtin and then its argument prototype would still apply. */ 14536#ifdef __cplusplus 14537extern "C" 14538#endif 14539char mdb_env_create (); 14540int 14541main () 14542{ 14543return mdb_env_create (); 14544 ; 14545 return 0; 14546} 14547_ACEOF 14548if ac_fn_c_try_link "$LINENO"; then : 14549 ac_cv_lib_lmdb_mdb_env_create=yes 14550else 14551 ac_cv_lib_lmdb_mdb_env_create=no 14552fi 14553rm -f core conftest.err conftest.$ac_objext \ 14554 conftest$ac_exeext conftest.$ac_ext 14555LIBS=$ac_check_lib_save_LIBS 14556fi 14557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lmdb_mdb_env_create" >&5 14558$as_echo "$ac_cv_lib_lmdb_mdb_env_create" >&6; } 14559if test "x$ac_cv_lib_lmdb_mdb_env_create" = xyes; then : 14560 SASL_DB_LIB="-llmdb"; enable_keep_db_open=yes 14561else 14562 dblib="no" 14563fi 14564 14565else 14566 dblib="no" 14567fi 14568 14569 14570 ;; 14571 ndbm) 14572 ac_fn_c_check_header_mongrel "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default" 14573if test "x$ac_cv_header_ndbm_h" = xyes; then : 14574 14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lndbm" >&5 14576$as_echo_n "checking for dbm_open in -lndbm... " >&6; } 14577if ${ac_cv_lib_ndbm_dbm_open+:} false; then : 14578 $as_echo_n "(cached) " >&6 14579else 14580 ac_check_lib_save_LIBS=$LIBS 14581LIBS="-lndbm $LIBS" 14582cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14583/* end confdefs.h. */ 14584 14585/* Override any GCC internal prototype to avoid an error. 14586 Use char because int might match the return type of a GCC 14587 builtin and then its argument prototype would still apply. */ 14588#ifdef __cplusplus 14589extern "C" 14590#endif 14591char dbm_open (); 14592int 14593main () 14594{ 14595return dbm_open (); 14596 ; 14597 return 0; 14598} 14599_ACEOF 14600if ac_fn_c_try_link "$LINENO"; then : 14601 ac_cv_lib_ndbm_dbm_open=yes 14602else 14603 ac_cv_lib_ndbm_dbm_open=no 14604fi 14605rm -f core conftest.err conftest.$ac_objext \ 14606 conftest$ac_exeext conftest.$ac_ext 14607LIBS=$ac_check_lib_save_LIBS 14608fi 14609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbm_dbm_open" >&5 14610$as_echo "$ac_cv_lib_ndbm_dbm_open" >&6; } 14611if test "x$ac_cv_lib_ndbm_dbm_open" = xyes; then : 14612 SASL_DB_LIB="-lndbm" 14613else 14614 14615 ac_fn_c_check_func "$LINENO" "dbm_open" "ac_cv_func_dbm_open" 14616if test "x$ac_cv_func_dbm_open" = xyes; then : 14617 14618else 14619 dblib="no" 14620fi 14621 14622fi 14623 14624else 14625 dblib="no" 14626fi 14627 14628 14629 ;; 14630 auto_detect) 14631 14632 14633 14634 cmu_save_CPPFLAGS=$CPPFLAGS 14635 14636 if test -d $with_bdb_inc; then 14637 CPPFLAGS="$CPPFLAGS -I$with_bdb_inc" 14638 BDB_INCADD="-I$with_bdb_inc" 14639 else 14640 BDB_INCADD="" 14641 fi 14642 14643 ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default" 14644if test "x$ac_cv_header_db_h" = xyes; then : 14645 14646 BDB_SAVE_LDFLAGS=$LDFLAGS 14647 14648 if test -d $with_bdb_lib; then 14649 14650 # this is CMU ADD LIBPATH TO 14651 if test "$andrew_cv_runpath_switch" = "none" ; then 14652 LDFLAGS="-L$with_bdb_lib ${LDFLAGS}" 14653 else 14654 LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_cv_runpath_switch$with_bdb_lib" 14655 fi 14656 14657 14658 # this is CMU ADD LIBPATH TO 14659 if test "$andrew_cv_runpath_switch" = "none" ; then 14660 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}" 14661 else 14662 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_cv_runpath_switch$with_bdb_lib" 14663 fi 14664 14665 else 14666 BDB_LIBADD="" 14667 fi 14668 14669 saved_LIBS=$LIBS 14670 for dbname in ${with_bdb} \ 14671 db-5.2 db5.2 db52 \ 14672 db-5.1 db5.2 db51 \ 14673 db-5.0 db5.2 db50 \ 14674 db-4.8 db4.8 db48 \ 14675 db-4.7 db4.7 db47 \ 14676 db-4.6 db4.6 db46 \ 14677 db-4.5 db4.5 db45 \ 14678 db-4.4 db4.4 db44 \ 14679 db-4.3 db4.3 db43 \ 14680 db-4.2 db4.2 db42 \ 14681 db-4.1 db4.1 db41 \ 14682 db-4.0 db4.0 db40 db-4 db4 \ 14683 db-3.3 db3.3 db33 \ 14684 db-3.2 db3.2 db32 \ 14685 db-3.1 db3.1 db31 \ 14686 db-3.0 db3.0 db30 db-3 db3 \ 14687 db 14688 do 14689 LIBS="$saved_LIBS -l$dbname" 14690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14691/* end confdefs.h. */ 14692#include <stdio.h> 14693#include <db.h> 14694int 14695main () 14696{ 14697db_create(NULL, NULL, 0); 14698 ; 14699 return 0; 14700} 14701_ACEOF 14702if ac_fn_c_try_link "$LINENO"; then : 14703 BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db 14704else 14705 dblib="no" 14706fi 14707rm -f core conftest.err conftest.$ac_objext \ 14708 conftest$ac_exeext conftest.$ac_ext 14709 if test "$dblib" = "berkeley"; then break; fi 14710 done 14711 if test "$dblib" = "no"; then 14712 LIBS="$saved_LIBS -ldb" 14713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14714/* end confdefs.h. */ 14715#include <stdio.h> 14716#include <db.h> 14717int 14718main () 14719{ 14720db_open(NULL, 0, 0, 0, NULL, NULL, NULL); 14721 ; 14722 return 0; 14723} 14724_ACEOF 14725if ac_fn_c_try_link "$LINENO"; then : 14726 BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db 14727else 14728 dblib="no" 14729fi 14730rm -f core conftest.err conftest.$ac_objext \ 14731 conftest$ac_exeext conftest.$ac_ext 14732 fi 14733 LIBS=$saved_LIBS 14734 14735 LDFLAGS=$BDB_SAVE_LDFLAGS 14736 14737else 14738 dblib="no" 14739fi 14740 14741 14742 14743 CPPFLAGS=$cmu_save_CPPFLAGS 14744 14745 if test "$dblib" = no; then 14746 ac_fn_c_check_header_mongrel "$LINENO" "lmdb.h" "ac_cv_header_lmdb_h" "$ac_includes_default" 14747if test "x$ac_cv_header_lmdb_h" = xyes; then : 14748 14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mdb_env_create in -llmdb" >&5 14750$as_echo_n "checking for mdb_env_create in -llmdb... " >&6; } 14751if ${ac_cv_lib_lmdb_mdb_env_create+:} false; then : 14752 $as_echo_n "(cached) " >&6 14753else 14754 ac_check_lib_save_LIBS=$LIBS 14755LIBS="-llmdb $LIBS" 14756cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14757/* end confdefs.h. */ 14758 14759/* Override any GCC internal prototype to avoid an error. 14760 Use char because int might match the return type of a GCC 14761 builtin and then its argument prototype would still apply. */ 14762#ifdef __cplusplus 14763extern "C" 14764#endif 14765char mdb_env_create (); 14766int 14767main () 14768{ 14769return mdb_env_create (); 14770 ; 14771 return 0; 14772} 14773_ACEOF 14774if ac_fn_c_try_link "$LINENO"; then : 14775 ac_cv_lib_lmdb_mdb_env_create=yes 14776else 14777 ac_cv_lib_lmdb_mdb_env_create=no 14778fi 14779rm -f core conftest.err conftest.$ac_objext \ 14780 conftest$ac_exeext conftest.$ac_ext 14781LIBS=$ac_check_lib_save_LIBS 14782fi 14783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lmdb_mdb_env_create" >&5 14784$as_echo "$ac_cv_lib_lmdb_mdb_env_create" >&6; } 14785if test "x$ac_cv_lib_lmdb_mdb_env_create" = xyes; then : 14786 SASL_DB_LIB="-llmdb"; enable_keep_db_open=yes 14787else 14788 dblib="no" 14789fi 14790 14791else 14792 dblib="no" 14793fi 14794 14795 14796 fi 14797 if test "$dblib" = no; then 14798 ac_fn_c_check_header_mongrel "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default" 14799if test "x$ac_cv_header_ndbm_h" = xyes; then : 14800 14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lndbm" >&5 14802$as_echo_n "checking for dbm_open in -lndbm... " >&6; } 14803if ${ac_cv_lib_ndbm_dbm_open+:} false; then : 14804 $as_echo_n "(cached) " >&6 14805else 14806 ac_check_lib_save_LIBS=$LIBS 14807LIBS="-lndbm $LIBS" 14808cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14809/* end confdefs.h. */ 14810 14811/* Override any GCC internal prototype to avoid an error. 14812 Use char because int might match the return type of a GCC 14813 builtin and then its argument prototype would still apply. */ 14814#ifdef __cplusplus 14815extern "C" 14816#endif 14817char dbm_open (); 14818int 14819main () 14820{ 14821return dbm_open (); 14822 ; 14823 return 0; 14824} 14825_ACEOF 14826if ac_fn_c_try_link "$LINENO"; then : 14827 ac_cv_lib_ndbm_dbm_open=yes 14828else 14829 ac_cv_lib_ndbm_dbm_open=no 14830fi 14831rm -f core conftest.err conftest.$ac_objext \ 14832 conftest$ac_exeext conftest.$ac_ext 14833LIBS=$ac_check_lib_save_LIBS 14834fi 14835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbm_dbm_open" >&5 14836$as_echo "$ac_cv_lib_ndbm_dbm_open" >&6; } 14837if test "x$ac_cv_lib_ndbm_dbm_open" = xyes; then : 14838 dblib="ndbm"; SASL_DB_LIB="-lndbm" 14839else 14840 dblib="weird" 14841fi 14842 14843else 14844 dblib="no" 14845fi 14846 14847 14848 if test "$dblib" = "weird"; then 14849 ac_fn_c_check_func "$LINENO" "dbm_open" "ac_cv_func_dbm_open" 14850if test "x$ac_cv_func_dbm_open" = xyes; then : 14851 dblib="ndbm" 14852else 14853 dblib="no" 14854fi 14855 14856 fi 14857 14858 if test "$dblib" = no; then 14859 ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default" 14860if test "x$ac_cv_header_gdbm_h" = xyes; then : 14861 14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5 14863$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; } 14864if ${ac_cv_lib_gdbm_gdbm_open+:} false; then : 14865 $as_echo_n "(cached) " >&6 14866else 14867 ac_check_lib_save_LIBS=$LIBS 14868LIBS="-lgdbm $LIBS" 14869cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14870/* end confdefs.h. */ 14871 14872/* Override any GCC internal prototype to avoid an error. 14873 Use char because int might match the return type of a GCC 14874 builtin and then its argument prototype would still apply. */ 14875#ifdef __cplusplus 14876extern "C" 14877#endif 14878char gdbm_open (); 14879int 14880main () 14881{ 14882return gdbm_open (); 14883 ; 14884 return 0; 14885} 14886_ACEOF 14887if ac_fn_c_try_link "$LINENO"; then : 14888 ac_cv_lib_gdbm_gdbm_open=yes 14889else 14890 ac_cv_lib_gdbm_gdbm_open=no 14891fi 14892rm -f core conftest.err conftest.$ac_objext \ 14893 conftest$ac_exeext conftest.$ac_ext 14894LIBS=$ac_check_lib_save_LIBS 14895fi 14896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5 14897$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; } 14898if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then : 14899 dblib="gdbm"; 14900 SASL_DB_LIB="-lgdbm" 14901else 14902 dblib="no" 14903fi 14904 14905else 14906 dblib="no" 14907fi 14908 14909 14910 fi 14911 else 14912 CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}" 14913 SASL_DB_INC=$BDB_INCADD 14914 SASL_DB_LIB="${BDB_LIBADD}" 14915 fi 14916 ;; 14917 none) 14918 ;; 14919 no) 14920 ;; 14921 *) 14922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Bad DB library implementation specified;" >&5 14923$as_echo "$as_me: WARNING: Bad DB library implementation specified;" >&2;} 14924 as_fn_error $? "Use either \"berkeley\", \"gdbm\", \"lmdb\", \"ndbm\" or \"none\"" "$LINENO" 5 14925 dblib=no 14926 ;; 14927esac 14928LIBS="$cmu_save_LIBS" 14929 14930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DB library to use" >&5 14931$as_echo_n "checking DB library to use... " >&6; } 14932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dblib" >&5 14933$as_echo "$dblib" >&6; } 14934 14935SASL_DB_BACKEND="db_${dblib}.lo" 14936SASL_DB_BACKEND_STATIC="db_${dblib}.o allockey.o" 14937SASL_DB_BACKEND_STATIC_SRCS="\$(top_srcdir)/sasldb/db_${dblib}.c \$(top_srcdir)/sasldb/allockey.c" 14938SASL_DB_UTILS="saslpasswd2\$(EXEEXT) sasldblistusers2\$(EXEEXT)" 14939SASL_DB_MANS="saslpasswd2.8 sasldblistusers2.8" 14940 14941case "$dblib" in 14942 gdbm) 14943 SASL_MECHS="$SASL_MECHS libsasldb.la" 14944 14945$as_echo "#define SASL_GDBM /**/" >>confdefs.h 14946 14947 ;; 14948 lmdb) 14949 SASL_MECHS="$SASL_MECHS libsasldb.la" 14950 14951$as_echo "#define SASL_LMDB /**/" >>confdefs.h 14952 14953 ;; 14954 ndbm) 14955 SASL_MECHS="$SASL_MECHS libsasldb.la" 14956 14957$as_echo "#define SASL_NDBM /**/" >>confdefs.h 14958 14959 ;; 14960 berkeley) 14961 SASL_MECHS="$SASL_MECHS libsasldb.la" 14962 14963$as_echo "#define SASL_BERKELEYDB /**/" >>confdefs.h 14964 14965 ;; 14966 *) 14967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling SASL authentication database support" >&5 14968$as_echo "$as_me: WARNING: Disabling SASL authentication database support" >&2;} 14969 SASL_DB_BACKEND="db_none.lo" 14970 SASL_DB_BACKEND_STATIC="db_none.o" 14971 SASL_DB_BACKEND_STATIC_SRCS="\$(top_srcdir)/sasldb/db_none.c" 14972 SASL_DB_UTILS="" 14973 SASL_DB_MANS="" 14974 SASL_DB_LIB="" 14975 ;; 14976esac 14977 14978if test "$enable_static" = yes; then 14979 if test "$dblib" != "none"; then 14980 SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/sasldb.c $SASL_DB_BACKEND_STATIC_SRCS" 14981 SASL_STATIC_OBJS="$SASL_STATIC_OBJS sasldb.o $SASL_DB_BACKEND_STATIC" 14982 14983$as_echo "#define STATIC_SASLDB /**/" >>confdefs.h 14984 14985 else 14986 SASL_STATIC_OBJS="$SASL_STATIC_OBJS $SASL_DB_BACKEND_STATIC" 14987 SASL_STATIC_SRCS="$SASL_STATIC_SRCS $SASL_DB_BACKEND_STATIC_SRCS" 14988 fi 14989fi 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999# Do we not install the SASL DB man pages? 15000 if test "x$SASL_DB_MANS" = "x"; then 15001 NO_SASL_DB_MANS_TRUE= 15002 NO_SASL_DB_MANS_FALSE='#' 15003else 15004 NO_SASL_DB_MANS_TRUE='#' 15005 NO_SASL_DB_MANS_FALSE= 15006fi 15007 15008 15009# Check whether --enable-keep_db_open was given. 15010if test "${enable_keep_db_open+set}" = set; then : 15011 enableval=$enable_keep_db_open; keep_db_open=$enableval 15012else 15013 keep_db_open=no 15014fi 15015 15016 15017# Disable if Berkeley DB and LMDB are not used 15018if test "$dblib" != berkeley -a "$dblib" != lmdb; then 15019 keep_db_open=no 15020fi 15021 15022if test "$keep_db_open" = yes; then 15023 15024$as_echo "#define KEEP_DB_OPEN /**/" >>confdefs.h 15025 15026fi 15027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DB handle is kept open in SASLDB" >&5 15028$as_echo_n "checking if DB handle is kept open in SASLDB... " >&6; } 15029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $keep_db_open" >&5 15030$as_echo "$keep_db_open" >&6; } 15031 15032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 15033$as_echo_n "checking for dlopen in -ldl... " >&6; } 15034if ${ac_cv_lib_dl_dlopen+:} false; then : 15035 $as_echo_n "(cached) " >&6 15036else 15037 ac_check_lib_save_LIBS=$LIBS 15038LIBS="-ldl $LIBS" 15039cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15040/* end confdefs.h. */ 15041 15042/* Override any GCC internal prototype to avoid an error. 15043 Use char because int might match the return type of a GCC 15044 builtin and then its argument prototype would still apply. */ 15045#ifdef __cplusplus 15046extern "C" 15047#endif 15048char dlopen (); 15049int 15050main () 15051{ 15052return dlopen (); 15053 ; 15054 return 0; 15055} 15056_ACEOF 15057if ac_fn_c_try_link "$LINENO"; then : 15058 ac_cv_lib_dl_dlopen=yes 15059else 15060 ac_cv_lib_dl_dlopen=no 15061fi 15062rm -f core conftest.err conftest.$ac_objext \ 15063 conftest$ac_exeext conftest.$ac_ext 15064LIBS=$ac_check_lib_save_LIBS 15065fi 15066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 15067$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 15068if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 15069 SASL_DL_LIB="-ldl" 15070else 15071 SASL_DL_LIB="" 15072fi 15073 15074 15075 15076 15077 15078# Check whether --with-devrandom was given. 15079if test "${with_devrandom+set}" = set; then : 15080 withval=$with_devrandom; devrandom=$withval 15081else 15082 devrandom=/dev/urandom 15083fi 15084 15085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PRNG to use" >&5 15086$as_echo_n "checking PRNG to use... " >&6; } 15087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $devrandom" >&5 15088$as_echo "$devrandom" >&6; } 15089 15090cat >>confdefs.h <<_ACEOF 15091#define SASL_DEV_RANDOM "$devrandom" 15092_ACEOF 15093 15094 15095 15096for ac_prog in nm 15097do 15098 # Extract the first word of "$ac_prog", so it can be a program name with args. 15099set dummy $ac_prog; ac_word=$2 15100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15101$as_echo_n "checking for $ac_word... " >&6; } 15102if ${ac_cv_prog_NM+:} false; then : 15103 $as_echo_n "(cached) " >&6 15104else 15105 if test -n "$NM"; then 15106 ac_cv_prog_NM="$NM" # Let the user override the test. 15107else 15108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15109for as_dir in $PATH 15110do 15111 IFS=$as_save_IFS 15112 test -z "$as_dir" && as_dir=. 15113 for ac_exec_ext in '' $ac_executable_extensions; do 15114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15115 ac_cv_prog_NM="$ac_prog" 15116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15117 break 2 15118 fi 15119done 15120 done 15121IFS=$as_save_IFS 15122 15123fi 15124fi 15125NM=$ac_cv_prog_NM 15126if test -n "$NM"; then 15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 15128$as_echo "$NM" >&6; } 15129else 15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15131$as_echo "no" >&6; } 15132fi 15133 15134 15135 test -n "$NM" && break 15136done 15137 15138 15139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for underscore before symbols" >&5 15140$as_echo_n "checking for underscore before symbols... " >&6; } 15141if ${sasl_cv_uscore+:} false; then : 15142 $as_echo_n "(cached) " >&6 15143else 15144 15145 echo "int main(){int i=1; return 0;} 15146 void foo(){int i=6;}" > conftest.c 15147 ${CC} -o a.out conftest.c > /dev/null 15148 if (${NM} a.out | grep _foo) > /dev/null; then 15149 sasl_cv_uscore=yes 15150 else 15151 sasl_cv_uscore=no 15152 fi 15153fi 15154 15155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sasl_cv_uscore" >&5 15156$as_echo "$sasl_cv_uscore" >&6; } 15157rm -f conftest.c a.out 15158 15159if test $sasl_cv_uscore = yes; then 15160 if test $ac_cv_lib_dl_dlopen = yes ; then 15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dlsym adds the underscore for us" >&5 15162$as_echo_n "checking whether dlsym adds the underscore for us... " >&6; } 15163 cmu_save_LIBS="$LIBS" 15164 LIBS="$LIBS $SASL_DL_LIB" 15165 if ${sasl_cv_dlsym_adds_uscore+:} false; then : 15166 $as_echo_n "(cached) " >&6 15167else 15168 if test "$cross_compiling" = yes; then : 15169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiler" >&5 15170$as_echo "$as_me: WARNING: cross-compiler" >&2;} 15171else 15172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15173/* end confdefs.h. */ 15174 15175#include <dlfcn.h> 15176#include <stdio.h> 15177#include <stdlib.h> 15178void foo() { int i=0;} 15179int main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY); 15180 if(self) { ptr1=dlsym(self,"foo"); ptr2=dlsym(self,"_foo"); 15181 if(ptr1 && !ptr2) exit(0); } exit(1); } 15182 15183_ACEOF 15184if ac_fn_c_try_run "$LINENO"; then : 15185 sasl_cv_dlsym_adds_uscore=yes 15186else 15187 sasl_cv_dlsym_adds_uscore=no 15188fi 15189rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15190 conftest.$ac_objext conftest.beam conftest.$ac_ext 15191fi 15192 15193fi 15194 15195 LIBS="$cmu_save_LIBS" 15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sasl_cv_dlsym_adds_uscore" >&5 15197$as_echo "$sasl_cv_dlsym_adds_uscore" >&6; } 15198 15199 if test "$sasl_cv_dlsym_adds_uscore" = no; then 15200 15201$as_echo "#define DLSYM_NEEDS_UNDERSCORE /**/" >>confdefs.h 15202 15203 fi 15204 fi 15205fi 15206 15207for ac_func in syslog 15208do : 15209 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog" 15210if test "x$ac_cv_func_syslog" = xyes; then : 15211 cat >>confdefs.h <<_ACEOF 15212#define HAVE_SYSLOG 1 15213_ACEOF 15214 15215fi 15216done 15217 15218 15219 15220# Check whether --with-saslauthd was given. 15221if test "${with_saslauthd+set}" = set; then : 15222 withval=$with_saslauthd; with_saslauthd=$withval 15223else 15224 with_saslauthd=yes 15225fi 15226 15227if test "$with_saslauthd" != no; then 15228 if test "$with_saslauthd" = yes; then 15229 with_saslauthd="/var/state/saslauthd" 15230 fi 15231 15232$as_echo "#define HAVE_SASLAUTHD /**/" >>confdefs.h 15233 15234 15235cat >>confdefs.h <<_ACEOF 15236#define PATH_SASLAUTHD_RUNDIR "$with_saslauthd" 15237_ACEOF 15238 15239fi 15240 if test "$with_saslauthd" != no; then 15241 SASLAUTHD_TRUE= 15242 SASLAUTHD_FALSE='#' 15243else 15244 SASLAUTHD_TRUE='#' 15245 SASLAUTHD_FALSE= 15246fi 15247SASLAUTHD_TRUE='#' 15248SASLAUTHD_FALSE= 15249 15250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if I should include saslauthd" >&5 15251$as_echo_n "checking if I should include saslauthd... " >&6; } 15252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_saslauthd" >&5 15253$as_echo "$with_saslauthd" >&6; } 15254 15255 15256# Check whether --with-authdaemond was given. 15257if test "${with_authdaemond+set}" = set; then : 15258 withval=$with_authdaemond; with_authdaemon=$withval 15259else 15260 with_authdaemon=yes 15261fi 15262 15263if test "$with_authdaemon" != no; then 15264 if test "$with_authdaemon" = yes; then 15265 with_authdaemon="/dev/null" 15266 fi 15267 15268$as_echo "#define HAVE_AUTHDAEMON /**/" >>confdefs.h 15269 15270 15271cat >>confdefs.h <<_ACEOF 15272#define PATH_AUTHDAEMON_SOCKET "$with_authdaemon" 15273_ACEOF 15274 15275fi 15276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to include Courier authdaemond support" >&5 15277$as_echo_n "checking to include Courier authdaemond support... " >&6; } 15278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_authdaemon" >&5 15279$as_echo "$with_authdaemon" >&6; } 15280 15281 15282# Check whether --with-pwcheck was given. 15283if test "${with_pwcheck+set}" = set; then : 15284 withval=$with_pwcheck; with_pwcheck=$withval 15285else 15286 with_pwcheck=no 15287fi 15288 15289if test "$with_pwcheck" != no; then 15290 if test "$with_pwcheck" = yes; then 15291 with_pwcheck=/var/pwcheck 15292 fi 15293 15294$as_echo "#define HAVE_PWCHECK /**/" >>confdefs.h 15295 15296 15297cat >>confdefs.h <<_ACEOF 15298#define PWCHECKDIR "$with_pwcheck" 15299_ACEOF 15300 15301 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam" 15302if test "x$ac_cv_func_getspnam" = xyes; then : 15303 PWCHECKMETH="getspnam" 15304else 15305 PWCHECKMETH="getpwnam" 15306fi 15307 15308 15309fi 15310 if test "$with_pwcheck" != no; then 15311 PWCHECK_TRUE= 15312 PWCHECK_FALSE='#' 15313else 15314 PWCHECK_TRUE='#' 15315 PWCHECK_FALSE= 15316fi 15317 15318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if I should include pwcheck" >&5 15319$as_echo_n "checking if I should include pwcheck... " >&6; } 15320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pwcheck" >&5 15321$as_echo "$with_pwcheck" >&6; } 15322 15323 15324# Check whether --with-ipctype was given. 15325if test "${with_ipctype+set}" = set; then : 15326 withval=$with_ipctype; with_ipctype=$withval 15327else 15328 with_ipctype="unix" 15329fi 15330 15331IPCTYPE=$with_ipctype 15332 15333LIB_DOOR= 15334if test "$with_ipctype" = "doors"; then 15335 LIB_DOOR="-ldoor" 15336 15337$as_echo "#define USE_DOORS /**/" >>confdefs.h 15338 15339fi 15340 15341 15342# Check whether --enable-alwaystrue was given. 15343if test "${enable_alwaystrue+set}" = set; then : 15344 enableval=$enable_alwaystrue; enable_alwaystrue=$enableval 15345else 15346 enable_alwaystrue=no 15347fi 15348 15349if test "$enable_alwaystrue" = yes; then 15350 15351$as_echo "#define HAVE_ALWAYSTRUE /**/" >>confdefs.h 15352 15353fi 15354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if I should include the alwaystrue verifier" >&5 15355$as_echo_n "checking if I should include the alwaystrue verifier... " >&6; } 15356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_alwaystrue" >&5 15357$as_echo "$enable_alwaystrue" >&6; } 15358 15359# Check whether --enable-checkapop was given. 15360if test "${enable_checkapop+set}" = set; then : 15361 enableval=$enable_checkapop; checkapop=$enableval 15362else 15363 checkapop=yes 15364fi 15365 15366 15367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable sasl_checkapop" >&5 15368$as_echo_n "checking if we should enable sasl_checkapop... " >&6; } 15369if test "$checkapop" != no; then 15370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 15371$as_echo "enabled" >&6; } 15372 15373$as_echo "#define DO_SASL_CHECKAPOP /**/" >>confdefs.h 15374 15375else 15376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15377$as_echo "disabled" >&6; } 15378fi 15379 15380# Check whether --enable-cram was given. 15381if test "${enable_cram+set}" = set; then : 15382 enableval=$enable_cram; cram=$enableval 15383else 15384 cram=yes 15385fi 15386 15387 15388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CRAM-MD5" >&5 15389$as_echo_n "checking CRAM-MD5... " >&6; } 15390if test "$cram" != no; then 15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 15392$as_echo "enabled" >&6; } 15393 SASL_MECHS="$SASL_MECHS libcrammd5.la" 15394 if test "$enable_obsolete_cram_attr" = yes; then 15395 CPPFLAGS="$CPPFLAGS -DOBSOLETE_CRAM_ATTR=1" 15396 fi 15397 if test "$enable_static" = yes; then 15398 SASL_STATIC_OBJS="$SASL_STATIC_OBJS cram.o" 15399 SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/cram.c" 15400 15401$as_echo "#define STATIC_CRAMMD5 /**/" >>confdefs.h 15402 15403 fi 15404else 15405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15406$as_echo "disabled" >&6; } 15407fi 15408 15409 15410# Check whether --with-lib-subdir was given. 15411if test "${with_lib_subdir+set}" = set; then : 15412 withval=$with_lib_subdir; 15413fi 15414 15415# The cast to long int works around a bug in the HP C Compiler 15416# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15417# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15418# This bug is HP SR number 8606223364. 15419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 15420$as_echo_n "checking size of long... " >&6; } 15421if ${ac_cv_sizeof_long+:} false; then : 15422 $as_echo_n "(cached) " >&6 15423else 15424 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 15425 15426else 15427 if test "$ac_cv_type_long" = yes; then 15428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15430as_fn_error 77 "cannot compute sizeof (long) 15431See \`config.log' for more details" "$LINENO" 5; } 15432 else 15433 ac_cv_sizeof_long=0 15434 fi 15435fi 15436 15437fi 15438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 15439$as_echo "$ac_cv_sizeof_long" >&6; } 15440 15441 15442 15443cat >>confdefs.h <<_ACEOF 15444#define SIZEOF_LONG $ac_cv_sizeof_long 15445_ACEOF 15446 15447 15448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what directory libraries are found in" >&5 15449$as_echo_n "checking what directory libraries are found in... " >&6; } 15450if ${ac_cv_cmu_lib_subdir+:} false; then : 15451 $as_echo_n "(cached) " >&6 15452else 15453 test "X$with_lib_subdir" = "Xyes" && with_lib_subdir= 15454test "X$with_lib_subdir" = "Xno" && with_lib_subdir= 15455if test "X$with_lib_subdir" = "X" ; then 15456 ac_cv_cmu_lib_subdir=lib 15457 if test $ac_cv_sizeof_long -eq 4 ; then 15458 test -d /usr/lib32 && ac_cv_cmu_lib_subdir=lib32 15459 fi 15460 if test $ac_cv_sizeof_long -eq 8 ; then 15461 test -d /usr/lib64 && ac_cv_cmu_lib_subdir=lib64 15462 fi 15463else 15464 ac_cv_cmu_lib_subdir=$with_lib_subdir 15465fi 15466fi 15467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cmu_lib_subdir" >&5 15468$as_echo "$ac_cv_cmu_lib_subdir" >&6; } 15469CMU_LIB_SUBDIR=$ac_cv_cmu_lib_subdir 15470 15471 15472 15473 15474 15475# Check whether --with-openssl was given. 15476if test "${with_openssl+set}" = set; then : 15477 withval=$with_openssl; with_openssl=$withval 15478else 15479 with_openssl="yes" 15480fi 15481 15482 15483 save_CPPFLAGS=$CPPFLAGS 15484 save_LDFLAGS=$LDFLAGS 15485 15486 if test -d $with_openssl; then 15487 CPPFLAGS="${CPPFLAGS} -I${with_openssl}/include" 15488 15489 # this is CMU ADD LIBPATH 15490 if test "$andrew_cv_runpath_switch" = "none" ; then 15491 LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}" 15492 else 15493 LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR $andrew_cv_runpath_switch${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}" 15494 fi 15495 15496 fi 15497 15498case "$with_openssl" in 15499 no) 15500 with_openssl="no";; 15501 *) 15502 with_openssl="yes" 15503 LIB_RSAREF="" 15504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSAPublicEncrypt in -lrsaref" >&5 15505$as_echo_n "checking for RSAPublicEncrypt in -lrsaref... " >&6; } 15506if ${ac_cv_lib_rsaref_RSAPublicEncrypt+:} false; then : 15507 $as_echo_n "(cached) " >&6 15508else 15509 ac_check_lib_save_LIBS=$LIBS 15510LIBS="-lrsaref $LIBS" 15511cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15512/* end confdefs.h. */ 15513 15514/* Override any GCC internal prototype to avoid an error. 15515 Use char because int might match the return type of a GCC 15516 builtin and then its argument prototype would still apply. */ 15517#ifdef __cplusplus 15518extern "C" 15519#endif 15520char RSAPublicEncrypt (); 15521int 15522main () 15523{ 15524return RSAPublicEncrypt (); 15525 ; 15526 return 0; 15527} 15528_ACEOF 15529if ac_fn_c_try_link "$LINENO"; then : 15530 ac_cv_lib_rsaref_RSAPublicEncrypt=yes 15531else 15532 ac_cv_lib_rsaref_RSAPublicEncrypt=no 15533fi 15534rm -f core conftest.err conftest.$ac_objext \ 15535 conftest$ac_exeext conftest.$ac_ext 15536LIBS=$ac_check_lib_save_LIBS 15537fi 15538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5 15539$as_echo "$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6; } 15540if test "x$ac_cv_lib_rsaref_RSAPublicEncrypt" = xyes; then : 15541 cmu_have_rsaref=yes; 15542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSAPublicEncrypt in -lRSAglue" >&5 15543$as_echo_n "checking for RSAPublicEncrypt in -lRSAglue... " >&6; } 15544if ${ac_cv_lib_RSAglue_RSAPublicEncrypt+:} false; then : 15545 $as_echo_n "(cached) " >&6 15546else 15547 ac_check_lib_save_LIBS=$LIBS 15548LIBS="-lRSAglue $LIBS" 15549cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15550/* end confdefs.h. */ 15551 15552/* Override any GCC internal prototype to avoid an error. 15553 Use char because int might match the return type of a GCC 15554 builtin and then its argument prototype would still apply. */ 15555#ifdef __cplusplus 15556extern "C" 15557#endif 15558char RSAPublicEncrypt (); 15559int 15560main () 15561{ 15562return RSAPublicEncrypt (); 15563 ; 15564 return 0; 15565} 15566_ACEOF 15567if ac_fn_c_try_link "$LINENO"; then : 15568 ac_cv_lib_RSAglue_RSAPublicEncrypt=yes 15569else 15570 ac_cv_lib_RSAglue_RSAPublicEncrypt=no 15571fi 15572rm -f core conftest.err conftest.$ac_objext \ 15573 conftest$ac_exeext conftest.$ac_ext 15574LIBS=$ac_check_lib_save_LIBS 15575fi 15576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_RSAglue_RSAPublicEncrypt" >&5 15577$as_echo "$ac_cv_lib_RSAglue_RSAPublicEncrypt" >&6; } 15578if test "x$ac_cv_lib_RSAglue_RSAPublicEncrypt" = xyes; then : 15579 LIB_RSAREF="-lRSAglue -lrsaref" 15580else 15581 LIB_RSAREF="-lrsaref" 15582fi 15583 15584else 15585 cmu_have_rsaref=no 15586fi 15587 15588 15589 ac_fn_c_check_header_mongrel "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default" 15590if test "x$ac_cv_header_openssl_evp_h" = xyes; then : 15591 15592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_DigestInit in -lcrypto" >&5 15593$as_echo_n "checking for EVP_DigestInit in -lcrypto... " >&6; } 15594if ${ac_cv_lib_crypto_EVP_DigestInit+:} false; then : 15595 $as_echo_n "(cached) " >&6 15596else 15597 ac_check_lib_save_LIBS=$LIBS 15598LIBS="-lcrypto $LIB_RSAREF $LIBS" 15599cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15600/* end confdefs.h. */ 15601 15602/* Override any GCC internal prototype to avoid an error. 15603 Use char because int might match the return type of a GCC 15604 builtin and then its argument prototype would still apply. */ 15605#ifdef __cplusplus 15606extern "C" 15607#endif 15608char EVP_DigestInit (); 15609int 15610main () 15611{ 15612return EVP_DigestInit (); 15613 ; 15614 return 0; 15615} 15616_ACEOF 15617if ac_fn_c_try_link "$LINENO"; then : 15618 ac_cv_lib_crypto_EVP_DigestInit=yes 15619else 15620 ac_cv_lib_crypto_EVP_DigestInit=no 15621fi 15622rm -f core conftest.err conftest.$ac_objext \ 15623 conftest$ac_exeext conftest.$ac_ext 15624LIBS=$ac_check_lib_save_LIBS 15625fi 15626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_DigestInit" >&5 15627$as_echo "$ac_cv_lib_crypto_EVP_DigestInit" >&6; } 15628if test "x$ac_cv_lib_crypto_EVP_DigestInit" = xyes; then : 15629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA512 in -lcrypto" >&5 15630$as_echo_n "checking for SHA512 in -lcrypto... " >&6; } 15631if ${ac_cv_lib_crypto_SHA512+:} false; then : 15632 $as_echo_n "(cached) " >&6 15633else 15634 ac_check_lib_save_LIBS=$LIBS 15635LIBS="-lcrypto $LIBS" 15636cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15637/* end confdefs.h. */ 15638 15639/* Override any GCC internal prototype to avoid an error. 15640 Use char because int might match the return type of a GCC 15641 builtin and then its argument prototype would still apply. */ 15642#ifdef __cplusplus 15643extern "C" 15644#endif 15645char SHA512 (); 15646int 15647main () 15648{ 15649return SHA512 (); 15650 ; 15651 return 0; 15652} 15653_ACEOF 15654if ac_fn_c_try_link "$LINENO"; then : 15655 ac_cv_lib_crypto_SHA512=yes 15656else 15657 ac_cv_lib_crypto_SHA512=no 15658fi 15659rm -f core conftest.err conftest.$ac_objext \ 15660 conftest$ac_exeext conftest.$ac_ext 15661LIBS=$ac_check_lib_save_LIBS 15662fi 15663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA512" >&5 15664$as_echo "$ac_cv_lib_crypto_SHA512" >&6; } 15665if test "x$ac_cv_lib_crypto_SHA512" = xyes; then : 15666 15667$as_echo "#define HAVE_SHA512 /**/" >>confdefs.h 15668 15669fi 15670 15671else 15672 with_openssl="no" 15673fi 15674 15675else 15676 with_openssl="no" 15677fi 15678 15679 15680 ;; 15681esac 15682 15683 if test "$with_openssl" != "no"; then 15684 15685$as_echo "#define HAVE_OPENSSL /**/" >>confdefs.h 15686 15687 else 15688 CPPFLAGS=$save_CPPFLAGS 15689 LDFLAGS=$save_LDFLAGS 15690 fi 15691 15692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 15693$as_echo_n "checking for OpenSSL... " >&6; } 15694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl" >&5 15695$as_echo "$with_openssl" >&6; } 15696 15697 15698 15699# Check whether --with-des was given. 15700if test "${with_des+set}" = set; then : 15701 withval=$with_des; with_des=$withval 15702else 15703 with_des=yes 15704fi 15705 15706 15707LIB_DES="" 15708if test "$with_des" != no; then 15709 if test -d $with_des; then 15710 CPPFLAGS="$CPPFLAGS -I${with_des}/include" 15711 LDFLAGS="$LDFLAGS -L${with_des}/lib" 15712 fi 15713 15714 if test "$with_openssl" != no; then 15715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -lcrypto" >&5 15716$as_echo_n "checking for des_cbc_encrypt in -lcrypto... " >&6; } 15717if ${ac_cv_lib_crypto_des_cbc_encrypt+:} false; then : 15718 $as_echo_n "(cached) " >&6 15719else 15720 ac_check_lib_save_LIBS=$LIBS 15721LIBS="-lcrypto $LIB_RSAREF $LIBS" 15722cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15723/* end confdefs.h. */ 15724 15725/* Override any GCC internal prototype to avoid an error. 15726 Use char because int might match the return type of a GCC 15727 builtin and then its argument prototype would still apply. */ 15728#ifdef __cplusplus 15729extern "C" 15730#endif 15731char des_cbc_encrypt (); 15732int 15733main () 15734{ 15735return des_cbc_encrypt (); 15736 ; 15737 return 0; 15738} 15739_ACEOF 15740if ac_fn_c_try_link "$LINENO"; then : 15741 ac_cv_lib_crypto_des_cbc_encrypt=yes 15742else 15743 ac_cv_lib_crypto_des_cbc_encrypt=no 15744fi 15745rm -f core conftest.err conftest.$ac_objext \ 15746 conftest$ac_exeext conftest.$ac_ext 15747LIBS=$ac_check_lib_save_LIBS 15748fi 15749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5 15750$as_echo "$ac_cv_lib_crypto_des_cbc_encrypt" >&6; } 15751if test "x$ac_cv_lib_crypto_des_cbc_encrypt" = xyes; then : 15752 15753 ac_fn_c_check_header_mongrel "$LINENO" "openssl/des.h" "ac_cv_header_openssl_des_h" "$ac_includes_default" 15754if test "x$ac_cv_header_openssl_des_h" = xyes; then : 15755 15756$as_echo "#define WITH_SSL_DES /**/" >>confdefs.h 15757 15758 LIB_DES="-lcrypto"; 15759 with_des=yes 15760else 15761 with_des=no 15762fi 15763 15764 15765else 15766 with_des=no 15767fi 15768 15769 15770 if test "$with_des" = no; then 15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DES_cbc_encrypt in -lcrypto" >&5 15772$as_echo_n "checking for DES_cbc_encrypt in -lcrypto... " >&6; } 15773if ${ac_cv_lib_crypto_DES_cbc_encrypt+:} false; then : 15774 $as_echo_n "(cached) " >&6 15775else 15776 ac_check_lib_save_LIBS=$LIBS 15777LIBS="-lcrypto $LIB_RSAREF $LIBS" 15778cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15779/* end confdefs.h. */ 15780 15781/* Override any GCC internal prototype to avoid an error. 15782 Use char because int might match the return type of a GCC 15783 builtin and then its argument prototype would still apply. */ 15784#ifdef __cplusplus 15785extern "C" 15786#endif 15787char DES_cbc_encrypt (); 15788int 15789main () 15790{ 15791return DES_cbc_encrypt (); 15792 ; 15793 return 0; 15794} 15795_ACEOF 15796if ac_fn_c_try_link "$LINENO"; then : 15797 ac_cv_lib_crypto_DES_cbc_encrypt=yes 15798else 15799 ac_cv_lib_crypto_DES_cbc_encrypt=no 15800fi 15801rm -f core conftest.err conftest.$ac_objext \ 15802 conftest$ac_exeext conftest.$ac_ext 15803LIBS=$ac_check_lib_save_LIBS 15804fi 15805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5 15806$as_echo "$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; } 15807if test "x$ac_cv_lib_crypto_DES_cbc_encrypt" = xyes; then : 15808 15809 ac_fn_c_check_header_mongrel "$LINENO" "openssl/des.h" "ac_cv_header_openssl_des_h" "$ac_includes_default" 15810if test "x$ac_cv_header_openssl_des_h" = xyes; then : 15811 15812$as_echo "#define WITH_SSL_DES /**/" >>confdefs.h 15813 15814 LIB_DES="-lcrypto"; 15815 with_des=yes 15816else 15817 with_des=no 15818fi 15819 15820 15821else 15822 with_des=no 15823fi 15824 15825 fi 15826 else 15827 with_des=no 15828 fi 15829 15830 if test "$with_des" = no; then 15831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5 15832$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } 15833if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then : 15834 $as_echo_n "(cached) " >&6 15835else 15836 ac_check_lib_save_LIBS=$LIBS 15837LIBS="-ldes $LIBS" 15838cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15839/* end confdefs.h. */ 15840 15841/* Override any GCC internal prototype to avoid an error. 15842 Use char because int might match the return type of a GCC 15843 builtin and then its argument prototype would still apply. */ 15844#ifdef __cplusplus 15845extern "C" 15846#endif 15847char des_cbc_encrypt (); 15848int 15849main () 15850{ 15851return des_cbc_encrypt (); 15852 ; 15853 return 0; 15854} 15855_ACEOF 15856if ac_fn_c_try_link "$LINENO"; then : 15857 ac_cv_lib_des_des_cbc_encrypt=yes 15858else 15859 ac_cv_lib_des_des_cbc_encrypt=no 15860fi 15861rm -f core conftest.err conftest.$ac_objext \ 15862 conftest$ac_exeext conftest.$ac_ext 15863LIBS=$ac_check_lib_save_LIBS 15864fi 15865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 15866$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } 15867if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then : 15868 LIB_DES="-ldes"; 15869 with_des=yes 15870else 15871 with_des=no 15872fi 15873 15874 fi 15875 15876 if test "$with_des" = no; then 15877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5 15878$as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; } 15879if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then : 15880 $as_echo_n "(cached) " >&6 15881else 15882 ac_check_lib_save_LIBS=$LIBS 15883LIBS="-ldes425 $LIBS" 15884cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15885/* end confdefs.h. */ 15886 15887/* Override any GCC internal prototype to avoid an error. 15888 Use char because int might match the return type of a GCC 15889 builtin and then its argument prototype would still apply. */ 15890#ifdef __cplusplus 15891extern "C" 15892#endif 15893char des_cbc_encrypt (); 15894int 15895main () 15896{ 15897return des_cbc_encrypt (); 15898 ; 15899 return 0; 15900} 15901_ACEOF 15902if ac_fn_c_try_link "$LINENO"; then : 15903 ac_cv_lib_des425_des_cbc_encrypt=yes 15904else 15905 ac_cv_lib_des425_des_cbc_encrypt=no 15906fi 15907rm -f core conftest.err conftest.$ac_objext \ 15908 conftest$ac_exeext conftest.$ac_ext 15909LIBS=$ac_check_lib_save_LIBS 15910fi 15911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 15912$as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; } 15913if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then : 15914 LIB_DES="-ldes425"; 15915 with_des=yes 15916else 15917 with_des=no 15918fi 15919 15920 fi 15921 15922 if test "$with_des" = no; then 15923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes524" >&5 15924$as_echo_n "checking for des_cbc_encrypt in -ldes524... " >&6; } 15925if ${ac_cv_lib_des524_des_cbc_encrypt+:} false; then : 15926 $as_echo_n "(cached) " >&6 15927else 15928 ac_check_lib_save_LIBS=$LIBS 15929LIBS="-ldes524 $LIBS" 15930cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15931/* end confdefs.h. */ 15932 15933/* Override any GCC internal prototype to avoid an error. 15934 Use char because int might match the return type of a GCC 15935 builtin and then its argument prototype would still apply. */ 15936#ifdef __cplusplus 15937extern "C" 15938#endif 15939char des_cbc_encrypt (); 15940int 15941main () 15942{ 15943return des_cbc_encrypt (); 15944 ; 15945 return 0; 15946} 15947_ACEOF 15948if ac_fn_c_try_link "$LINENO"; then : 15949 ac_cv_lib_des524_des_cbc_encrypt=yes 15950else 15951 ac_cv_lib_des524_des_cbc_encrypt=no 15952fi 15953rm -f core conftest.err conftest.$ac_objext \ 15954 conftest$ac_exeext conftest.$ac_ext 15955LIBS=$ac_check_lib_save_LIBS 15956fi 15957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des524_des_cbc_encrypt" >&5 15958$as_echo "$ac_cv_lib_des524_des_cbc_encrypt" >&6; } 15959if test "x$ac_cv_lib_des524_des_cbc_encrypt" = xyes; then : 15960 LIB_DES="-ldes524"; 15961 with_des=yes 15962else 15963 with_des=no 15964fi 15965 15966 fi 15967 15968 if test "$with_des" = no; then 15969 15970 LIB_RSAREF="" 15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSAPublicEncrypt in -lrsaref" >&5 15972$as_echo_n "checking for RSAPublicEncrypt in -lrsaref... " >&6; } 15973if ${ac_cv_lib_rsaref_RSAPublicEncrypt+:} false; then : 15974 $as_echo_n "(cached) " >&6 15975else 15976 ac_check_lib_save_LIBS=$LIBS 15977LIBS="-lrsaref $LIBS" 15978cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15979/* end confdefs.h. */ 15980 15981/* Override any GCC internal prototype to avoid an error. 15982 Use char because int might match the return type of a GCC 15983 builtin and then its argument prototype would still apply. */ 15984#ifdef __cplusplus 15985extern "C" 15986#endif 15987char RSAPublicEncrypt (); 15988int 15989main () 15990{ 15991return RSAPublicEncrypt (); 15992 ; 15993 return 0; 15994} 15995_ACEOF 15996if ac_fn_c_try_link "$LINENO"; then : 15997 ac_cv_lib_rsaref_RSAPublicEncrypt=yes 15998else 15999 ac_cv_lib_rsaref_RSAPublicEncrypt=no 16000fi 16001rm -f core conftest.err conftest.$ac_objext \ 16002 conftest$ac_exeext conftest.$ac_ext 16003LIBS=$ac_check_lib_save_LIBS 16004fi 16005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5 16006$as_echo "$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6; } 16007if test "x$ac_cv_lib_rsaref_RSAPublicEncrypt" = xyes; then : 16008 LIB_RSAREF="-lRSAglue -lrsaref"; cmu_have_rsaref=yes 16009else 16010 cmu_have_rsaref=no 16011fi 16012 16013 16014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -lcrypto" >&5 16015$as_echo_n "checking for des_cbc_encrypt in -lcrypto... " >&6; } 16016if ${ac_cv_lib_crypto_des_cbc_encrypt+:} false; then : 16017 $as_echo_n "(cached) " >&6 16018else 16019 ac_check_lib_save_LIBS=$LIBS 16020LIBS="-lcrypto $LIB_RSAREF $LIBS" 16021cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16022/* end confdefs.h. */ 16023 16024/* Override any GCC internal prototype to avoid an error. 16025 Use char because int might match the return type of a GCC 16026 builtin and then its argument prototype would still apply. */ 16027#ifdef __cplusplus 16028extern "C" 16029#endif 16030char des_cbc_encrypt (); 16031int 16032main () 16033{ 16034return des_cbc_encrypt (); 16035 ; 16036 return 0; 16037} 16038_ACEOF 16039if ac_fn_c_try_link "$LINENO"; then : 16040 ac_cv_lib_crypto_des_cbc_encrypt=yes 16041else 16042 ac_cv_lib_crypto_des_cbc_encrypt=no 16043fi 16044rm -f core conftest.err conftest.$ac_objext \ 16045 conftest$ac_exeext conftest.$ac_ext 16046LIBS=$ac_check_lib_save_LIBS 16047fi 16048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5 16049$as_echo "$ac_cv_lib_crypto_des_cbc_encrypt" >&6; } 16050if test "x$ac_cv_lib_crypto_des_cbc_encrypt" = xyes; then : 16051 16052 ac_fn_c_check_header_mongrel "$LINENO" "openssl/des.h" "ac_cv_header_openssl_des_h" "$ac_includes_default" 16053if test "x$ac_cv_header_openssl_des_h" = xyes; then : 16054 16055$as_echo "#define WITH_SSL_DES /**/" >>confdefs.h 16056 16057 LIB_DES="-lcrypto"; 16058 with_des=yes 16059else 16060 with_des=no 16061fi 16062 16063 16064else 16065 with_des=no 16066fi 16067 16068 fi 16069fi 16070 16071if test "$with_des" != no; then 16072 16073$as_echo "#define WITH_DES /**/" >>confdefs.h 16074 16075fi 16076 16077 16078 16079 16080# Check whether --enable-digest was given. 16081if test "${enable_digest+set}" = set; then : 16082 enableval=$enable_digest; digest=$enableval 16083else 16084 digest=yes 16085fi 16086 16087 16088if test "$digest" != no; then 16089 if test -d $digest; then 16090 CPPFLAGS="$CPPFLAGS -I$digest/include" 16091 LDFLAGS="$LDFLAGS -L$digest/lib" 16092 fi 16093 if test "$with_des" = no; then 16094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No DES support for DIGEST-MD5" >&5 16095$as_echo "$as_me: WARNING: No DES support for DIGEST-MD5" >&2;} 16096 fi 16097fi 16098 16099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DIGEST-MD5" >&5 16100$as_echo_n "checking DIGEST-MD5... " >&6; } 16101if test "$digest" != no; then 16102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 16103$as_echo "enabled" >&6; } 16104 SASL_MECHS="$SASL_MECHS libdigestmd5.la" 16105 if test "$enable_obsolete_digest_attr" = yes; then 16106 CPPFLAGS="$CPPFLAGS -DOBSOLETE_DIGEST_ATTR=1" 16107 fi 16108 if test "$enable_static" = yes; then 16109 SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/digestmd5.c" 16110 SASL_STATIC_OBJS="$SASL_STATIC_OBJS digestmd5.o" 16111 SASL_STATIC_LIBS="$SASL_STATIC_LIBS $LIB_DES" 16112 16113$as_echo "#define STATIC_DIGESTMD5 /**/" >>confdefs.h 16114 16115 fi 16116else 16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 16118$as_echo "disabled" >&6; } 16119fi 16120 16121# Check whether --enable-scram was given. 16122if test "${enable_scram+set}" = set; then : 16123 enableval=$enable_scram; scram=$enableval 16124else 16125 scram=yes 16126fi 16127 16128 16129if test "$with_openssl" = no; then 16130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not found -- SCRAM will be disabled" >&5 16131$as_echo "$as_me: WARNING: OpenSSL not found -- SCRAM will be disabled" >&2;} 16132 scram=no 16133fi 16134 16135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SCRAM" >&5 16136$as_echo_n "checking SCRAM... " >&6; } 16137if test "$scram" != no; then 16138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 16139$as_echo "enabled" >&6; } 16140 SCRAM_LIBS="-lcrypto $LIB_RSAREF" 16141 16142 SASL_MECHS="$SASL_MECHS libscram.la" 16143 if test "$enable_static" = yes; then 16144 SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/scram.c" 16145 SASL_STATIC_OBJS="$SASL_STATIC_OBJS scram.o" 16146 16147$as_echo "#define STATIC_SCRAM /**/" >>confdefs.h 16148 16149 fi 16150 16151 16152else 16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 16154$as_echo "disabled" >&6; } 16155fi 16156 16157# Check whether --enable-otp was given. 16158if test "${enable_otp+set}" = set; then : 16159 enableval=$enable_otp; otp=$enableval 16160else 16161 otp=yes 16162fi 16163 16164 16165if test "$with_openssl" = no; then 16166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not found -- OTP will be disabled" >&5 16167$as_echo "$as_me: WARNING: OpenSSL not found -- OTP will be disabled" >&2;} 16168 otp=no 16169fi 16170 16171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OTP" >&5 16172$as_echo_n "checking OTP... " >&6; } 16173if test "$otp" != no; then 16174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 16175$as_echo "enabled" >&6; } 16176 OTP_LIBS="-lcrypto $LIB_RSAREF" 16177 16178 SASL_MECHS="$SASL_MECHS libotp.la" 16179 if test "$enable_static" = yes; then 16180 SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/otp.c" 16181 SASL_STATIC_OBJS="$SASL_STATIC_OBJS otp.o" 16182 16183$as_echo "#define STATIC_OTP /**/" >>confdefs.h 16184 16185 fi 16186 16187 16188# Check whether --with-opie was given. 16189if test "${with_opie+set}" = set; then : 16190 withval=$with_opie; 16191fi 16192 16193 16194 case "$with_opie" in 16195 ""|yes) 16196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opiechallenge in -lopie" >&5 16197$as_echo_n "checking for opiechallenge in -lopie... " >&6; } 16198if ${ac_cv_lib_opie_opiechallenge+:} false; then : 16199 $as_echo_n "(cached) " >&6 16200else 16201 ac_check_lib_save_LIBS=$LIBS 16202LIBS="-lopie $LIBS" 16203cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16204/* end confdefs.h. */ 16205 16206/* Override any GCC internal prototype to avoid an error. 16207 Use char because int might match the return type of a GCC 16208 builtin and then its argument prototype would still apply. */ 16209#ifdef __cplusplus 16210extern "C" 16211#endif 16212char opiechallenge (); 16213int 16214main () 16215{ 16216return opiechallenge (); 16217 ; 16218 return 0; 16219} 16220_ACEOF 16221if ac_fn_c_try_link "$LINENO"; then : 16222 ac_cv_lib_opie_opiechallenge=yes 16223else 16224 ac_cv_lib_opie_opiechallenge=no 16225fi 16226rm -f core conftest.err conftest.$ac_objext \ 16227 conftest$ac_exeext conftest.$ac_ext 16228LIBS=$ac_check_lib_save_LIBS 16229fi 16230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opie_opiechallenge" >&5 16231$as_echo "$ac_cv_lib_opie_opiechallenge" >&6; } 16232if test "x$ac_cv_lib_opie_opiechallenge" = xyes; then : 16233 16234 ac_fn_c_check_header_mongrel "$LINENO" "opie.h" "ac_cv_header_opie_h" "$ac_includes_default" 16235if test "x$ac_cv_header_opie_h" = xyes; then : 16236 with_opie="yes" 16237else 16238 with_opie="no" 16239fi 16240 16241 16242else 16243 with_opie="no" 16244fi 16245 16246 ;; 16247 *) 16248 if test -d $with_opie; then 16249 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include" 16250 LDFLAGS="${LDFLAGS} -L${with_opie}/lib" 16251 else 16252 with_opie="no" 16253 fi 16254 ;; 16255 esac 16256 16257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPIE" >&5 16258$as_echo_n "checking for OPIE... " >&6; } 16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_opie" >&5 16260$as_echo "$with_opie" >&6; } 16261 16262 if test "$with_opie" != no; then 16263 16264$as_echo "#define HAVE_OPIE /**/" >>confdefs.h 16265 16266 OTP_LIBS="$OTP_LIBS -lopie" 16267 fi 16268 16269 16270 16271else 16272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 16273$as_echo "disabled" >&6; } 16274fi 16275 16276# Check whether --enable-srp was given. 16277if test "${enable_srp+set}" = set; then : 16278 enableval=$enable_srp; srp=$enableval 16279else 16280 srp=no 16281fi 16282 16283 16284if test "$with_openssl" = no; then 16285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not found -- SRP will be disabled" >&5 16286$as_echo "$as_me: WARNING: OpenSSL not found -- SRP will be disabled" >&2;} 16287 srp=no 16288fi 16289 16290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SRP" >&5 16291$as_echo_n "checking SRP... " >&6; } 16292if test "$srp" != no; then 16293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 16294$as_echo "enabled" >&6; } 16295 SRP_LIBS="-lcrypto $LIB_RSAREF" 16296 16297 SASL_MECHS="$SASL_MECHS libsrp.la" 16298 if test "$enable_static" = yes; then 16299 SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/srp.c" 16300 SASL_STATIC_OBJS="$SASL_STATIC_OBJS srp.o" 16301 16302$as_echo "#define STATIC_SRP /**/" >>confdefs.h 16303 16304 fi 16305 16306 # Check whether --enable-srp_setpass was given. 16307if test "${enable_srp_setpass+set}" = set; then : 16308 enableval=$enable_srp_setpass; srp_setpass=$enableval 16309else 16310 srp_setpass=no 16311fi 16312 16313 16314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable setting SRP secrets with saslpasswd" >&5 16315$as_echo_n "checking if we should enable setting SRP secrets with saslpasswd... " >&6; } 16316 if test "$srp_setpass" != no; then 16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 16318$as_echo "enabled" >&6; } 16319 16320$as_echo "#define DO_SRP_SETPASS /**/" >>confdefs.h 16321 16322 else 16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 16324$as_echo "disabled" >&6; } 16325 fi 16326 16327 16328else 16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 16330$as_echo "disabled" >&6; } 16331fi 16332 16333 16334 16335 16336 # Check whether --enable-krb4 was given. 16337if test "${enable_krb4+set}" = set; then : 16338 enableval=$enable_krb4; krb4=$enableval 16339else 16340 krb4=no 16341fi 16342 16343 16344 if test "$krb4" != no; then 16345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5 16346$as_echo_n "checking for res_search in -lresolv... " >&6; } 16347if ${ac_cv_lib_resolv_res_search+:} false; then : 16348 $as_echo_n "(cached) " >&6 16349else 16350 ac_check_lib_save_LIBS=$LIBS 16351LIBS="-lresolv $LIBS" 16352cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16353/* end confdefs.h. */ 16354 16355/* Override any GCC internal prototype to avoid an error. 16356 Use char because int might match the return type of a GCC 16357 builtin and then its argument prototype would still apply. */ 16358#ifdef __cplusplus 16359extern "C" 16360#endif 16361char res_search (); 16362int 16363main () 16364{ 16365return res_search (); 16366 ; 16367 return 0; 16368} 16369_ACEOF 16370if ac_fn_c_try_link "$LINENO"; then : 16371 ac_cv_lib_resolv_res_search=yes 16372else 16373 ac_cv_lib_resolv_res_search=no 16374fi 16375rm -f core conftest.err conftest.$ac_objext \ 16376 conftest$ac_exeext conftest.$ac_ext 16377LIBS=$ac_check_lib_save_LIBS 16378fi 16379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5 16380$as_echo "$ac_cv_lib_resolv_res_search" >&6; } 16381if test "x$ac_cv_lib_resolv_res_search" = xyes; then : 16382 cat >>confdefs.h <<_ACEOF 16383#define HAVE_LIBRESOLV 1 16384_ACEOF 16385 16386 LIBS="-lresolv $LIBS" 16387 16388fi 16389 16390 16391 if test -d ${krb4}; then 16392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos includes" >&5 16393$as_echo_n "checking for Kerberos includes... " >&6; } 16394if ${cyrus_cv_krbinclude+:} false; then : 16395 $as_echo_n "(cached) " >&6 16396else 16397 16398 for krbhloc in include/kerberosIV include/kerberos include 16399 do 16400 if test -f ${krb4}/${krbhloc}/krb.h ; then 16401 cyrus_cv_krbinclude=${krb4}/${krbhloc} 16402 break 16403 fi 16404 done 16405 16406fi 16407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyrus_cv_krbinclude" >&5 16408$as_echo "$cyrus_cv_krbinclude" >&6; } 16409 16410 if test -n "${cyrus_cv_krbinclude}"; then 16411 CPPFLAGS="$CPPFLAGS -I${cyrus_cv_krbinclude}" 16412 fi 16413 LDFLAGS="$LDFLAGS -L$krb4/lib" 16414 fi 16415 16416 if test "$with_des" != no; then 16417 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default" 16418if test "x$ac_cv_header_krb_h" = xyes; then : 16419 16420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5 16421$as_echo_n "checking for com_err in -lcom_err... " >&6; } 16422if ${ac_cv_lib_com_err_com_err+:} false; then : 16423 $as_echo_n "(cached) " >&6 16424else 16425 ac_check_lib_save_LIBS=$LIBS 16426LIBS="-lcom_err $LIBS" 16427cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16428/* end confdefs.h. */ 16429 16430/* Override any GCC internal prototype to avoid an error. 16431 Use char because int might match the return type of a GCC 16432 builtin and then its argument prototype would still apply. */ 16433#ifdef __cplusplus 16434extern "C" 16435#endif 16436char com_err (); 16437int 16438main () 16439{ 16440return com_err (); 16441 ; 16442 return 0; 16443} 16444_ACEOF 16445if ac_fn_c_try_link "$LINENO"; then : 16446 ac_cv_lib_com_err_com_err=yes 16447else 16448 ac_cv_lib_com_err_com_err=no 16449fi 16450rm -f core conftest.err conftest.$ac_objext \ 16451 conftest$ac_exeext conftest.$ac_ext 16452LIBS=$ac_check_lib_save_LIBS 16453fi 16454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5 16455$as_echo "$ac_cv_lib_com_err_com_err" >&6; } 16456if test "x$ac_cv_lib_com_err_com_err" = xyes; then : 16457 16458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_mk_priv in -lkrb" >&5 16459$as_echo_n "checking for krb_mk_priv in -lkrb... " >&6; } 16460if ${ac_cv_lib_krb_krb_mk_priv+:} false; then : 16461 $as_echo_n "(cached) " >&6 16462else 16463 ac_check_lib_save_LIBS=$LIBS 16464LIBS="-lkrb $LIB_DES -lcom_err $LIBS" 16465cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16466/* end confdefs.h. */ 16467 16468/* Override any GCC internal prototype to avoid an error. 16469 Use char because int might match the return type of a GCC 16470 builtin and then its argument prototype would still apply. */ 16471#ifdef __cplusplus 16472extern "C" 16473#endif 16474char krb_mk_priv (); 16475int 16476main () 16477{ 16478return krb_mk_priv (); 16479 ; 16480 return 0; 16481} 16482_ACEOF 16483if ac_fn_c_try_link "$LINENO"; then : 16484 ac_cv_lib_krb_krb_mk_priv=yes 16485else 16486 ac_cv_lib_krb_krb_mk_priv=no 16487fi 16488rm -f core conftest.err conftest.$ac_objext \ 16489 conftest$ac_exeext conftest.$ac_ext 16490LIBS=$ac_check_lib_save_LIBS 16491fi 16492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_mk_priv" >&5 16493$as_echo "$ac_cv_lib_krb_krb_mk_priv" >&6; } 16494if test "x$ac_cv_lib_krb_krb_mk_priv" = xyes; then : 16495 COM_ERR="-lcom_err"; SASL_KRB_LIB="-lkrb"; krb4lib="yes" 16496else 16497 krb4lib=no 16498fi 16499 16500else 16501 16502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_mk_priv in -lkrb" >&5 16503$as_echo_n "checking for krb_mk_priv in -lkrb... " >&6; } 16504if ${ac_cv_lib_krb_krb_mk_priv+:} false; then : 16505 $as_echo_n "(cached) " >&6 16506else 16507 ac_check_lib_save_LIBS=$LIBS 16508LIBS="-lkrb $LIB_DES $LIBS" 16509cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16510/* end confdefs.h. */ 16511 16512/* Override any GCC internal prototype to avoid an error. 16513 Use char because int might match the return type of a GCC 16514 builtin and then its argument prototype would still apply. */ 16515#ifdef __cplusplus 16516extern "C" 16517#endif 16518char krb_mk_priv (); 16519int 16520main () 16521{ 16522return krb_mk_priv (); 16523 ; 16524 return 0; 16525} 16526_ACEOF 16527if ac_fn_c_try_link "$LINENO"; then : 16528 ac_cv_lib_krb_krb_mk_priv=yes 16529else 16530 ac_cv_lib_krb_krb_mk_priv=no 16531fi 16532rm -f core conftest.err conftest.$ac_objext \ 16533 conftest$ac_exeext conftest.$ac_ext 16534LIBS=$ac_check_lib_save_LIBS 16535fi 16536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_mk_priv" >&5 16537$as_echo "$ac_cv_lib_krb_krb_mk_priv" >&6; } 16538if test "x$ac_cv_lib_krb_krb_mk_priv" = xyes; then : 16539 COM_ERR=""; SASL_KRB_LIB="-lkrb"; krb4lib="yes" 16540else 16541 krb4lib=no 16542fi 16543 16544fi 16545 16546else 16547 krb4="no" 16548fi 16549 16550 16551 16552 if test "$krb4" != "no" -a "$krb4lib" = "no"; then 16553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_mk_priv in -lkrb4" >&5 16554$as_echo_n "checking for krb_mk_priv in -lkrb4... " >&6; } 16555if ${ac_cv_lib_krb4_krb_mk_priv+:} false; then : 16556 $as_echo_n "(cached) " >&6 16557else 16558 ac_check_lib_save_LIBS=$LIBS 16559LIBS="-lkrb4 $LIB_DES $LIBS" 16560cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16561/* end confdefs.h. */ 16562 16563/* Override any GCC internal prototype to avoid an error. 16564 Use char because int might match the return type of a GCC 16565 builtin and then its argument prototype would still apply. */ 16566#ifdef __cplusplus 16567extern "C" 16568#endif 16569char krb_mk_priv (); 16570int 16571main () 16572{ 16573return krb_mk_priv (); 16574 ; 16575 return 0; 16576} 16577_ACEOF 16578if ac_fn_c_try_link "$LINENO"; then : 16579 ac_cv_lib_krb4_krb_mk_priv=yes 16580else 16581 ac_cv_lib_krb4_krb_mk_priv=no 16582fi 16583rm -f core conftest.err conftest.$ac_objext \ 16584 conftest$ac_exeext conftest.$ac_ext 16585LIBS=$ac_check_lib_save_LIBS 16586fi 16587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_mk_priv" >&5 16588$as_echo "$ac_cv_lib_krb4_krb_mk_priv" >&6; } 16589if test "x$ac_cv_lib_krb4_krb_mk_priv" = xyes; then : 16590 COM_ERR=""; SASL_KRB_LIB="-lkrb4"; krb4=yes 16591else 16592 krb4=no 16593fi 16594 16595 fi 16596 if test "$krb4" = no; then 16597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Kerberos V4 found" >&5 16598$as_echo "$as_me: WARNING: No Kerberos V4 found" >&2;} 16599 fi 16600 else 16601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No DES library found for Kerberos V4 support" >&5 16602$as_echo "$as_me: WARNING: No DES library found for Kerberos V4 support" >&2;} 16603 krb4=no 16604 fi 16605 fi 16606 16607 if test "$krb4" != no; then 16608 cmu_save_LIBS="$LIBS" 16609 LIBS="$LIBS $SASL_KRB_LIB" 16610 for ac_func in krb_get_err_text 16611do : 16612 ac_fn_c_check_func "$LINENO" "krb_get_err_text" "ac_cv_func_krb_get_err_text" 16613if test "x$ac_cv_func_krb_get_err_text" = xyes; then : 16614 cat >>confdefs.h <<_ACEOF 16615#define HAVE_KRB_GET_ERR_TEXT 1 16616_ACEOF 16617 16618fi 16619done 16620 16621 LIBS="$cmu_save_LIBS" 16622 fi 16623 16624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking KERBEROS_V4" >&5 16625$as_echo_n "checking KERBEROS_V4... " >&6; } 16626 if test "$krb4" != no; then 16627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 16628$as_echo "enabled" >&6; } 16629 SASL_MECHS="$SASL_MECHS libkerberos4.la" 16630 SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/kerberos4.c" 16631 SASL_STATIC_OBJS="$SASL_STATIC_OBJS kerberos4.o" 16632 16633$as_echo "#define STATIC_KERBEROS4 /**/" >>confdefs.h 16634 16635 16636$as_echo "#define HAVE_KRB /**/" >>confdefs.h 16637 16638 SASL_KRB_LIB="$SASL_KRB_LIB $LIB_DES $COM_ERR" 16639 else 16640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 16641$as_echo "disabled" >&6; } 16642 fi 16643 16644 16645ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" 16646if test "x$ac_cv_func_crypt" = xyes; then : 16647 cmu_have_crypt=yes 16648else 16649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 16650$as_echo_n "checking for crypt in -lcrypt... " >&6; } 16651if ${ac_cv_lib_crypt_crypt+:} false; then : 16652 $as_echo_n "(cached) " >&6 16653else 16654 ac_check_lib_save_LIBS=$LIBS 16655LIBS="-lcrypt $LIBS" 16656cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16657/* end confdefs.h. */ 16658 16659/* Override any GCC internal prototype to avoid an error. 16660 Use char because int might match the return type of a GCC 16661 builtin and then its argument prototype would still apply. */ 16662#ifdef __cplusplus 16663extern "C" 16664#endif 16665char crypt (); 16666int 16667main () 16668{ 16669return crypt (); 16670 ; 16671 return 0; 16672} 16673_ACEOF 16674if ac_fn_c_try_link "$LINENO"; then : 16675 ac_cv_lib_crypt_crypt=yes 16676else 16677 ac_cv_lib_crypt_crypt=no 16678fi 16679rm -f core conftest.err conftest.$ac_objext \ 16680 conftest$ac_exeext conftest.$ac_ext 16681LIBS=$ac_check_lib_save_LIBS 16682fi 16683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 16684$as_echo "$ac_cv_lib_crypt_crypt" >&6; } 16685if test "x$ac_cv_lib_crypt_crypt" = xyes; then : 16686 LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes 16687else 16688 cmu_have_crypt=no 16689fi 16690 16691fi 16692 16693 16694 16695 16696 16697# Check whether --enable-gssapi was given. 16698if test "${enable_gssapi+set}" = set; then : 16699 enableval=$enable_gssapi; gssapi=$enableval 16700else 16701 gssapi=yes 16702fi 16703 16704 16705# Check whether --with-gss_impl was given. 16706if test "${with_gss_impl+set}" = set; then : 16707 withval=$with_gss_impl; gss_impl=$withval 16708else 16709 gss_impl=auto 16710fi 16711 16712 16713gs2="no" 16714if test "$gssapi" != no; then 16715 platform= 16716 case "${host}" in 16717 *-*-linux*) 16718 platform=__linux 16719 ;; 16720 *-*-hpux*) 16721 platform=__hpux 16722 ;; 16723 *-*-irix*) 16724 platform=__irix 16725 ;; 16726 *-*-solaris2*) 16727# When should we use __sunos? 16728 platform=__solaris 16729 ;; 16730 *-*-aix*) 16731###_AIX 16732 platform=__aix 16733 ;; 16734 *-*-darwin*) 16735 platform=__darwin 16736 ;; 16737 *) 16738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The system type is not recognized. If you believe that CyberSafe GSSAPI works on this platform, please update the configure script" >&5 16739$as_echo "$as_me: WARNING: The system type is not recognized. If you believe that CyberSafe GSSAPI works on this platform, please update the configure script" >&2;} 16740 if test "$gss_impl" = "cybersafe"; then 16741 as_fn_error $? "CyberSafe was forced, cannot continue as platform is not supported" "$LINENO" 5 16742 fi 16743 ;; 16744 esac 16745 16746 cmu_saved_CPPFLAGS=$CPPFLAGS 16747 16748 if test -d ${gssapi}; then 16749 CPPFLAGS="$CPPFLAGS -I$gssapi/include" 16750# We want to keep -I in our CPPFLAGS, but only if we succeed 16751 cmu_saved_CPPFLAGS=$CPPFLAGS 16752### I am not sure how useful is this (and whether this is required at all 16753### especially when we have to provide two -L flags for new CyberSafe 16754 LDFLAGS="$LDFLAGS -L$gssapi/lib" 16755 16756 if test -n "$platform"; then 16757 if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then 16758 CPPFLAGS="$CPPFLAGS -D$platform" 16759 if test -d "${gssapi}/appsec-sdk/include"; then 16760 CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include" 16761 fi 16762 fi 16763 fi 16764 fi 16765 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" 16766if test "x$ac_cv_header_gssapi_h" = xyes; then : 16767 16768else 16769 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default" 16770if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then : 16771 16772else 16773 gssapi=no 16774fi 16775 16776 16777fi 16778 16779 16780 for ac_header in gssapi/gssapi_ext.h 16781do : 16782 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_ext.h" "ac_cv_header_gssapi_gssapi_ext_h" "$ac_includes_default" 16783if test "x$ac_cv_header_gssapi_gssapi_ext_h" = xyes; then : 16784 cat >>confdefs.h <<_ACEOF 16785#define HAVE_GSSAPI_GSSAPI_EXT_H 1 16786_ACEOF 16787 16788fi 16789 16790done 16791 16792 CPPFLAGS=$cmu_saved_CPPFLAGS 16793 16794fi 16795 16796if test "$gssapi" != no; then 16797 if test "$ac_cv_header_gssapi_h" = "yes"; then 16798 16799$as_echo "#define HAVE_GSSAPI_H /**/" >>confdefs.h 16800 16801 elif test "$ac_cv_header_gssapi_gssapi_h" = "yes"; then 16802 16803$as_echo "#define HAVE_GSSAPI_GSSAPI_H /**/" >>confdefs.h 16804 16805 fi 16806 16807 # We need to find out which gssapi implementation we are 16808 # using. Supported alternatives are: MIT Kerberos 5, 16809 # Heimdal Kerberos 5 (http://www.pdc.kth.se/heimdal), 16810 # CyberSafe Kerberos 5 (http://www.cybersafe.com/) 16811 # and Sun SEAM (http://wwws.sun.com/software/security/kerberos/) 16812 # 16813 # The choice is reflected in GSSAPIBASE_LIBS 16814 16815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5 16816$as_echo_n "checking for res_search in -lresolv... " >&6; } 16817if ${ac_cv_lib_resolv_res_search+:} false; then : 16818 $as_echo_n "(cached) " >&6 16819else 16820 ac_check_lib_save_LIBS=$LIBS 16821LIBS="-lresolv $LIBS" 16822cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16823/* end confdefs.h. */ 16824 16825/* Override any GCC internal prototype to avoid an error. 16826 Use char because int might match the return type of a GCC 16827 builtin and then its argument prototype would still apply. */ 16828#ifdef __cplusplus 16829extern "C" 16830#endif 16831char res_search (); 16832int 16833main () 16834{ 16835return res_search (); 16836 ; 16837 return 0; 16838} 16839_ACEOF 16840if ac_fn_c_try_link "$LINENO"; then : 16841 ac_cv_lib_resolv_res_search=yes 16842else 16843 ac_cv_lib_resolv_res_search=no 16844fi 16845rm -f core conftest.err conftest.$ac_objext \ 16846 conftest$ac_exeext conftest.$ac_ext 16847LIBS=$ac_check_lib_save_LIBS 16848fi 16849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5 16850$as_echo "$ac_cv_lib_resolv_res_search" >&6; } 16851if test "x$ac_cv_lib_resolv_res_search" = xyes; then : 16852 cat >>confdefs.h <<_ACEOF 16853#define HAVE_LIBRESOLV 1 16854_ACEOF 16855 16856 LIBS="-lresolv $LIBS" 16857 16858fi 16859 16860 if test -d ${gssapi}; then 16861 gssapi_dir="${gssapi}/lib" 16862 GSSAPIBASE_LIBS="-L$gssapi_dir" 16863 GSSAPIBASE_STATIC_LIBS="-L$gssapi_dir" 16864 gssapi_bindir="${gssapi}/bin/" 16865 else 16866 # FIXME: This is only used for building cyrus, and then only as 16867 # a real hack. it needs to be fixed. 16868 gssapi_dir="/usr/local/lib" 16869 fi 16870 16871 # Check a full link against the Heimdal libraries. 16872 # If this fails, check a full link against the MIT libraries. 16873 # If this fails, check a full link against the CyberSafe libraries. 16874 # If this fails, check a full link against the Solaris 8 and up libgss. 16875 16876 if test "$gss_impl" = "auto" -o "$gss_impl" = "heimdal"; then 16877 gss_failed=0 16878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_unwrap in -lgssapi" >&5 16879$as_echo_n "checking for gss_unwrap in -lgssapi... " >&6; } 16880if ${ac_cv_lib_gssapi_gss_unwrap+:} false; then : 16881 $as_echo_n "(cached) " >&6 16882else 16883 ac_check_lib_save_LIBS=$LIBS 16884LIBS="${GSSAPIBASE_LIBS} `${gssapi_bindir}krb5-config --libs gssapi` $LIBS" 16885cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16886/* end confdefs.h. */ 16887 16888/* Override any GCC internal prototype to avoid an error. 16889 Use char because int might match the return type of a GCC 16890 builtin and then its argument prototype would still apply. */ 16891#ifdef __cplusplus 16892extern "C" 16893#endif 16894char gss_unwrap (); 16895int 16896main () 16897{ 16898return gss_unwrap (); 16899 ; 16900 return 0; 16901} 16902_ACEOF 16903if ac_fn_c_try_link "$LINENO"; then : 16904 ac_cv_lib_gssapi_gss_unwrap=yes 16905else 16906 ac_cv_lib_gssapi_gss_unwrap=no 16907fi 16908rm -f core conftest.err conftest.$ac_objext \ 16909 conftest$ac_exeext conftest.$ac_ext 16910LIBS=$ac_check_lib_save_LIBS 16911fi 16912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_unwrap" >&5 16913$as_echo "$ac_cv_lib_gssapi_gss_unwrap" >&6; } 16914if test "x$ac_cv_lib_gssapi_gss_unwrap" = xyes; then : 16915 gss_impl="heimdal" 16916else 16917 gss_failed=1 16918fi 16919 16920 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then 16921 gss_impl="failed" 16922 fi 16923 fi 16924 16925 if test "$gss_impl" = "auto" -o "$gss_impl" = "mit"; then 16926 gss_failed=0 16927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_unwrap in -lgssapi_krb5" >&5 16928$as_echo_n "checking for gss_unwrap in -lgssapi_krb5... " >&6; } 16929if ${ac_cv_lib_gssapi_krb5_gss_unwrap+:} false; then : 16930 $as_echo_n "(cached) " >&6 16931else 16932 ac_check_lib_save_LIBS=$LIBS 16933LIBS="-lgssapi_krb5 ${GSSAPIBASE_LIBS} -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${LIB_SOCKET} $LIBS" 16934cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16935/* end confdefs.h. */ 16936 16937/* Override any GCC internal prototype to avoid an error. 16938 Use char because int might match the return type of a GCC 16939 builtin and then its argument prototype would still apply. */ 16940#ifdef __cplusplus 16941extern "C" 16942#endif 16943char gss_unwrap (); 16944int 16945main () 16946{ 16947return gss_unwrap (); 16948 ; 16949 return 0; 16950} 16951_ACEOF 16952if ac_fn_c_try_link "$LINENO"; then : 16953 ac_cv_lib_gssapi_krb5_gss_unwrap=yes 16954else 16955 ac_cv_lib_gssapi_krb5_gss_unwrap=no 16956fi 16957rm -f core conftest.err conftest.$ac_objext \ 16958 conftest$ac_exeext conftest.$ac_ext 16959LIBS=$ac_check_lib_save_LIBS 16960fi 16961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_unwrap" >&5 16962$as_echo "$ac_cv_lib_gssapi_krb5_gss_unwrap" >&6; } 16963if test "x$ac_cv_lib_gssapi_krb5_gss_unwrap" = xyes; then : 16964 gss_impl="mit" 16965else 16966 gss_failed=1 16967fi 16968 16969 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then 16970 gss_impl="failed" 16971 fi 16972 fi 16973 16974 # For Cybersafe one has to set a platform define in order to make compilation work 16975 if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then 16976 16977 cmu_saved_CPPFLAGS=$CPPFLAGS 16978 cmu_saved_GSSAPIBASE_LIBS=$GSSAPIBASE_LIBS 16979# FIXME - Note that the libraries are in .../lib64 for 64bit kernels 16980 if test -d "${gssapi}/appsec-rt/lib"; then 16981 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -L${gssapi}/appsec-rt/lib" 16982 fi 16983 CPPFLAGS="$CPPFLAGS -D$platform" 16984 if test -d "${gssapi}/appsec-sdk/include"; then 16985 CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include" 16986 fi 16987 16988 gss_failed=0 16989 16990# Check for CyberSafe with two libraries first, than fall back to a single 16991# library (older CyberSafe) 16992 16993 unset ac_cv_lib_gss_csf_gss_acq_user 16994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csf_gss_acq_user in -lgss" >&5 16995$as_echo_n "checking for csf_gss_acq_user in -lgss... " >&6; } 16996if ${ac_cv_lib_gss_csf_gss_acq_user+:} false; then : 16997 $as_echo_n "(cached) " >&6 16998else 16999 ac_check_lib_save_LIBS=$LIBS 17000LIBS="-lgss ${GSSAPIBASE_LIBS} -lgss -lcstbk5 $LIBS" 17001cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17002/* end confdefs.h. */ 17003 17004/* Override any GCC internal prototype to avoid an error. 17005 Use char because int might match the return type of a GCC 17006 builtin and then its argument prototype would still apply. */ 17007#ifdef __cplusplus 17008extern "C" 17009#endif 17010char csf_gss_acq_user (); 17011int 17012main () 17013{ 17014return csf_gss_acq_user (); 17015 ; 17016 return 0; 17017} 17018_ACEOF 17019if ac_fn_c_try_link "$LINENO"; then : 17020 ac_cv_lib_gss_csf_gss_acq_user=yes 17021else 17022 ac_cv_lib_gss_csf_gss_acq_user=no 17023fi 17024rm -f core conftest.err conftest.$ac_objext \ 17025 conftest$ac_exeext conftest.$ac_ext 17026LIBS=$ac_check_lib_save_LIBS 17027fi 17028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5 17029$as_echo "$ac_cv_lib_gss_csf_gss_acq_user" >&6; } 17030if test "x$ac_cv_lib_gss_csf_gss_acq_user" = xyes; then : 17031 gss_impl="cybersafe03" 17032else 17033 unset ac_cv_lib_gss_csf_gss_acq_user; 17034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csf_gss_acq_user in -lgss" >&5 17035$as_echo_n "checking for csf_gss_acq_user in -lgss... " >&6; } 17036if ${ac_cv_lib_gss_csf_gss_acq_user+:} false; then : 17037 $as_echo_n "(cached) " >&6 17038else 17039 ac_check_lib_save_LIBS=$LIBS 17040LIBS="-lgss $GSSAPIBASE_LIBS -lgss $LIBS" 17041cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17042/* end confdefs.h. */ 17043 17044/* Override any GCC internal prototype to avoid an error. 17045 Use char because int might match the return type of a GCC 17046 builtin and then its argument prototype would still apply. */ 17047#ifdef __cplusplus 17048extern "C" 17049#endif 17050char csf_gss_acq_user (); 17051int 17052main () 17053{ 17054return csf_gss_acq_user (); 17055 ; 17056 return 0; 17057} 17058_ACEOF 17059if ac_fn_c_try_link "$LINENO"; then : 17060 ac_cv_lib_gss_csf_gss_acq_user=yes 17061else 17062 ac_cv_lib_gss_csf_gss_acq_user=no 17063fi 17064rm -f core conftest.err conftest.$ac_objext \ 17065 conftest$ac_exeext conftest.$ac_ext 17066LIBS=$ac_check_lib_save_LIBS 17067fi 17068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5 17069$as_echo "$ac_cv_lib_gss_csf_gss_acq_user" >&6; } 17070if test "x$ac_cv_lib_gss_csf_gss_acq_user" = xyes; then : 17071 gss_impl="cybersafe" 17072else 17073 gss_failed=1 17074fi 17075 17076fi 17077 17078 17079 if test "$gss_failed" = "1"; then 17080# Restore variables 17081 GSSAPIBASE_LIBS=$cmu_saved_GSSAPIBASE_LIBS 17082 CPPFLAGS=$cmu_saved_CPPFLAGS 17083 17084 if test "$gss_impl" != "auto"; then 17085 gss_impl="failed" 17086 fi 17087 fi 17088 fi 17089 17090 if test "$gss_impl" = "auto" -o "$gss_impl" = "seam"; then 17091 gss_failed=0 17092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_unwrap in -lgss" >&5 17093$as_echo_n "checking for gss_unwrap in -lgss... " >&6; } 17094if ${ac_cv_lib_gss_gss_unwrap+:} false; then : 17095 $as_echo_n "(cached) " >&6 17096else 17097 ac_check_lib_save_LIBS=$LIBS 17098LIBS="-lgss -lgss $LIBS" 17099cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17100/* end confdefs.h. */ 17101 17102/* Override any GCC internal prototype to avoid an error. 17103 Use char because int might match the return type of a GCC 17104 builtin and then its argument prototype would still apply. */ 17105#ifdef __cplusplus 17106extern "C" 17107#endif 17108char gss_unwrap (); 17109int 17110main () 17111{ 17112return gss_unwrap (); 17113 ; 17114 return 0; 17115} 17116_ACEOF 17117if ac_fn_c_try_link "$LINENO"; then : 17118 ac_cv_lib_gss_gss_unwrap=yes 17119else 17120 ac_cv_lib_gss_gss_unwrap=no 17121fi 17122rm -f core conftest.err conftest.$ac_objext \ 17123 conftest$ac_exeext conftest.$ac_ext 17124LIBS=$ac_check_lib_save_LIBS 17125fi 17126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_unwrap" >&5 17127$as_echo "$ac_cv_lib_gss_gss_unwrap" >&6; } 17128if test "x$ac_cv_lib_gss_gss_unwrap" = xyes; then : 17129 gss_impl="seam" 17130else 17131 gss_failed=1 17132fi 17133 17134 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then 17135 gss_impl="failed" 17136 fi 17137 fi 17138 17139 if test "$gss_impl" = "mit"; then 17140 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" 17141 GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_LIBS $gssapi_dir/libgssapi_krb5.a $gssapi_dir/libkrb5.a $gssapi_dir/libk5crypto.a $gssapi_dir/libcom_err.a" 17142 elif test "$gss_impl" = "heimdal"; then 17143 CPPFLAGS="$CPPFLAGS" 17144 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS `${gssapi_bindir}krb5-config --libs gssapi`" 17145 GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_STATIC_LIBS $gssapi_dir/libgssapi.a $gssapi_dir/libkrb5.a $gssapi_dir/libasn1.a $gssapi_dir/libroken.a $gssapi_dir/libcom_err.a ${LIB_CRYPT}" 17146 elif test "$gss_impl" = "cybersafe03"; then 17147# Version of CyberSafe with two libraries 17148 CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include" 17149 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss -lcstbk5" 17150 # there is no static libgss for CyberSafe 17151 GSSAPIBASE_STATIC_LIBS=none 17152 elif test "$gss_impl" = "cybersafe"; then 17153 CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include" 17154 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss" 17155 # there is no static libgss for CyberSafe 17156 GSSAPIBASE_STATIC_LIBS=none 17157 elif test "$gss_impl" = "seam"; then 17158 GSSAPIBASE_LIBS=-lgss 17159 # there is no static libgss on Solaris 8 and up 17160 GSSAPIBASE_STATIC_LIBS=none 17161 elif test "$gss_impl" = "failed"; then 17162 gssapi="no" 17163 GSSAPIBASE_LIBS= 17164 GSSAPIBASE_STATIC_LIBS= 17165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling GSSAPI - specified library not found" >&5 17166$as_echo "$as_me: WARNING: Disabling GSSAPI - specified library not found" >&2;} 17167 else 17168 gssapi="no" 17169 GSSAPIBASE_LIBS= 17170 GSSAPIBASE_STATIC_LIBS= 17171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling GSSAPI - no library" >&5 17172$as_echo "$as_me: WARNING: Disabling GSSAPI - no library" >&2;} 17173 fi 17174fi 17175 17176# 17177# Cybersafe defines both GSS_C_NT_HOSTBASED_SERVICE and GSS_C_NT_USER_NAME 17178# in gssapi\rfckrb5.h 17179# 17180if test "$gssapi" != "no"; then 17181 if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then 17182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17183/* end confdefs.h. */ 17184#include <gssapi/gssapi.h> 17185 #ifdef GSS_C_NT_HOSTBASED_SERVICE 17186 hostbased_service_gss_nt_yes 17187 #endif 17188_ACEOF 17189if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17190 $EGREP "hostbased_service_gss_nt_yes" >/dev/null 2>&1; then : 17191 17192$as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/" >>confdefs.h 17193 17194else 17195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cybersafe define not found" >&5 17196$as_echo "$as_me: WARNING: Cybersafe define not found" >&2;} 17197fi 17198rm -f conftest* 17199 17200 17201 elif test "$ac_cv_header_gssapi_h" = "yes"; then 17202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17203/* end confdefs.h. */ 17204#include <gssapi.h> 17205 17206_ACEOF 17207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17208 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then : 17209 17210$as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/" >>confdefs.h 17211 17212fi 17213rm -f conftest* 17214 17215 elif test "$ac_cv_header_gssapi_gssapi_h"; then 17216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17217/* end confdefs.h. */ 17218#include <gssapi/gssapi.h> 17219 17220_ACEOF 17221if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17222 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then : 17223 17224$as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/" >>confdefs.h 17225 17226fi 17227rm -f conftest* 17228 17229 fi 17230 17231 if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then 17232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17233/* end confdefs.h. */ 17234#include <gssapi/gssapi.h> 17235 #ifdef GSS_C_NT_USER_NAME 17236 user_name_yes_gss_nt 17237 #endif 17238_ACEOF 17239if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17240 $EGREP "user_name_yes_gss_nt" >/dev/null 2>&1; then : 17241 17242$as_echo "#define HAVE_GSS_C_NT_USER_NAME /**/" >>confdefs.h 17243 17244else 17245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cybersafe define not found" >&5 17246$as_echo "$as_me: WARNING: Cybersafe define not found" >&2;} 17247fi 17248rm -f conftest* 17249 17250 elif test "$ac_cv_header_gssapi_h" = "yes"; then 17251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17252/* end confdefs.h. */ 17253#include <gssapi.h> 17254 17255_ACEOF 17256if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17257 $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then : 17258 17259$as_echo "#define HAVE_GSS_C_NT_USER_NAME /**/" >>confdefs.h 17260 17261fi 17262rm -f conftest* 17263 17264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17265/* end confdefs.h. */ 17266#include <gssapi.h> 17267 17268_ACEOF 17269if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17270 $EGREP "gss_inquire_attrs_for_mech" >/dev/null 2>&1; then : 17271 rfc5587=yes 17272fi 17273rm -f conftest* 17274 17275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17276/* end confdefs.h. */ 17277#include <gssapi.h> 17278 17279_ACEOF 17280if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17281 $EGREP "gss_inquire_mech_for_saslname" >/dev/null 2>&1; then : 17282 rfc5801=yes 17283fi 17284rm -f conftest* 17285 17286 elif test "$ac_cv_header_gssapi_gssapi_h"; then 17287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17288/* end confdefs.h. */ 17289#include <gssapi/gssapi.h> 17290 17291_ACEOF 17292if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17293 $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then : 17294 17295$as_echo "#define HAVE_GSS_C_NT_USER_NAME /**/" >>confdefs.h 17296 17297fi 17298rm -f conftest* 17299 17300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17301/* end confdefs.h. */ 17302#include <gssapi/gssapi.h> 17303 17304_ACEOF 17305if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17306 $EGREP "gss_inquire_attrs_for_mech" >/dev/null 2>&1; then : 17307 rfc5587=yes 17308fi 17309rm -f conftest* 17310 17311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17312/* end confdefs.h. */ 17313#include <gssapi.h> 17314 17315_ACEOF 17316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17317 $EGREP "gss_inquire_mech_for_saslname" >/dev/null 2>&1; then : 17318 rfc5801=yes 17319fi 17320rm -f conftest* 17321 17322 fi 17323fi 17324 17325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking GSSAPI" >&5 17326$as_echo_n "checking GSSAPI... " >&6; } 17327if test "$gssapi" != no; then 17328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: with implementation ${gss_impl}" >&5 17329$as_echo "with implementation ${gss_impl}" >&6; } 17330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5 17331$as_echo_n "checking for res_search in -lresolv... " >&6; } 17332if ${ac_cv_lib_resolv_res_search+:} false; then : 17333 $as_echo_n "(cached) " >&6 17334else 17335 ac_check_lib_save_LIBS=$LIBS 17336LIBS="-lresolv $LIBS" 17337cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17338/* end confdefs.h. */ 17339 17340/* Override any GCC internal prototype to avoid an error. 17341 Use char because int might match the return type of a GCC 17342 builtin and then its argument prototype would still apply. */ 17343#ifdef __cplusplus 17344extern "C" 17345#endif 17346char res_search (); 17347int 17348main () 17349{ 17350return res_search (); 17351 ; 17352 return 0; 17353} 17354_ACEOF 17355if ac_fn_c_try_link "$LINENO"; then : 17356 ac_cv_lib_resolv_res_search=yes 17357else 17358 ac_cv_lib_resolv_res_search=no 17359fi 17360rm -f core conftest.err conftest.$ac_objext \ 17361 conftest$ac_exeext conftest.$ac_ext 17362LIBS=$ac_check_lib_save_LIBS 17363fi 17364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5 17365$as_echo "$ac_cv_lib_resolv_res_search" >&6; } 17366if test "x$ac_cv_lib_resolv_res_search" = xyes; then : 17367 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lresolv" 17368fi 17369 17370 SASL_MECHS="$SASL_MECHS libgssapiv2.la" 17371 SASL_STATIC_OBJS="$SASL_STATIC_OBJS gssapi.o" 17372 SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/gssapi.c" 17373 if test "$rfc5587" = "yes" -a "$rfc5801" = "yes"; then 17374 gs2="yes" 17375 SASL_MECHS="$SASL_MECHS libgs2.la" 17376 SASL_STATIC_OBJS="$SASL_STATIC_OBJS gs2.o" 17377 SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/gs2.c" 17378 fi 17379 17380 cmu_save_LIBS="$LIBS" 17381 LIBS="$LIBS $GSSAPIBASE_LIBS" 17382 for ac_func in gsskrb5_register_acceptor_identity 17383do : 17384 ac_fn_c_check_func "$LINENO" "gsskrb5_register_acceptor_identity" "ac_cv_func_gsskrb5_register_acceptor_identity" 17385if test "x$ac_cv_func_gsskrb5_register_acceptor_identity" = xyes; then : 17386 cat >>confdefs.h <<_ACEOF 17387#define HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY 1 17388_ACEOF 17389 17390fi 17391done 17392 17393 if test "$ac_cv_func_gsskrb5_register_acceptor_identity" = no ; then 17394 for ac_header in gssapi/gssapi_krb5.h 17395do : 17396 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default" 17397if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = xyes; then : 17398 cat >>confdefs.h <<_ACEOF 17399#define HAVE_GSSAPI_GSSAPI_KRB5_H 1 17400_ACEOF 17401 17402fi 17403 17404done 17405 17406 if test "$ac_cv_header_gssapi_gssapi_krb5_h" = "yes"; then 17407 ac_fn_c_check_decl "$LINENO" "gsskrb5_register_acceptor_identity" "ac_cv_have_decl_gsskrb5_register_acceptor_identity" " 17408 $ac_includes_default 17409 #include <gssapi/gssapi_krb5.h> 17410 17411" 17412if test "x$ac_cv_have_decl_gsskrb5_register_acceptor_identity" = xyes; then : 17413 17414$as_echo "#define HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY 1" >>confdefs.h 17415 17416fi 17417 17418 fi 17419 fi 17420 for ac_func in gss_decapsulate_token 17421do : 17422 ac_fn_c_check_func "$LINENO" "gss_decapsulate_token" "ac_cv_func_gss_decapsulate_token" 17423if test "x$ac_cv_func_gss_decapsulate_token" = xyes; then : 17424 cat >>confdefs.h <<_ACEOF 17425#define HAVE_GSS_DECAPSULATE_TOKEN 1 17426_ACEOF 17427 17428fi 17429done 17430 17431 for ac_func in gss_encapsulate_token 17432do : 17433 ac_fn_c_check_func "$LINENO" "gss_encapsulate_token" "ac_cv_func_gss_encapsulate_token" 17434if test "x$ac_cv_func_gss_encapsulate_token" = xyes; then : 17435 cat >>confdefs.h <<_ACEOF 17436#define HAVE_GSS_ENCAPSULATE_TOKEN 1 17437_ACEOF 17438 17439fi 17440done 17441 17442 for ac_func in gss_oid_equal 17443do : 17444 ac_fn_c_check_func "$LINENO" "gss_oid_equal" "ac_cv_func_gss_oid_equal" 17445if test "x$ac_cv_func_gss_oid_equal" = xyes; then : 17446 cat >>confdefs.h <<_ACEOF 17447#define HAVE_GSS_OID_EQUAL 1 17448_ACEOF 17449 17450fi 17451done 17452 17453 LIBS="$cmu_save_LIBS" 17454 17455 cmu_save_LIBS="$LIBS" 17456 LIBS="$LIBS $GSSAPIBASE_LIBS" 17457 for ac_func in gss_get_name_attribute 17458do : 17459 ac_fn_c_check_func "$LINENO" "gss_get_name_attribute" "ac_cv_func_gss_get_name_attribute" 17460if test "x$ac_cv_func_gss_get_name_attribute" = xyes; then : 17461 cat >>confdefs.h <<_ACEOF 17462#define HAVE_GSS_GET_NAME_ATTRIBUTE 1 17463_ACEOF 17464 17465fi 17466done 17467 17468 LIBS="$cmu_save_LIBS" 17469 17470 cmu_save_LIBS="$LIBS" 17471 LIBS="$LIBS $GSSAPIBASE_LIBS" 17472 for ac_func in gss_inquire_sec_context_by_oid 17473do : 17474 ac_fn_c_check_func "$LINENO" "gss_inquire_sec_context_by_oid" "ac_cv_func_gss_inquire_sec_context_by_oid" 17475if test "x$ac_cv_func_gss_inquire_sec_context_by_oid" = xyes; then : 17476 cat >>confdefs.h <<_ACEOF 17477#define HAVE_GSS_INQUIRE_SEC_CONTEXT_BY_OID 1 17478_ACEOF 17479 17480fi 17481done 17482 17483 if test "$ac_cv_func_gss_inquire_sec_context_by_oid" = no ; then 17484 if test "$ac_cv_header_gssapi_gssapi_ext_h" = "yes"; then 17485 ac_fn_c_check_decl "$LINENO" "gss_inquire_sec_context_by_oid" "ac_cv_have_decl_gss_inquire_sec_context_by_oid" " 17486 $ac_includes_default 17487 #include <gssapi/gssapi_ext.h> 17488 17489" 17490if test "x$ac_cv_have_decl_gss_inquire_sec_context_by_oid" = xyes; then : 17491 17492$as_echo "#define HAVE_GSS_INQUIRE_SEC_CONTEXT_BY_OID 1" >>confdefs.h 17493 17494fi 17495 17496 fi 17497 fi 17498 if test "$ac_cv_header_gssapi_gssapi_ext_h" = "yes"; then 17499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17500/* end confdefs.h. */ 17501#include <gssapi/gssapi_ext.h> 17502 17503_ACEOF 17504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17505 $EGREP "GSS_C_SEC_CONTEXT_SASL_SSF" >/dev/null 2>&1; then : 17506 17507$as_echo "#define HAVE_GSS_C_SEC_CONTEXT_SASL_SSF /**/" >>confdefs.h 17508 17509fi 17510rm -f conftest* 17511 17512 fi 17513 LIBS="$cmu_save_LIBS" 17514 17515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SPNEGO support in GSSAPI libraries" >&5 17516$as_echo_n "checking for SPNEGO support in GSSAPI libraries... " >&6; } 17517if ${ac_cv_gssapi_supports_spnego+:} false; then : 17518 $as_echo_n "(cached) " >&6 17519else 17520 17521 cmu_save_LIBS="$LIBS" 17522 LIBS="$LIBS $GSSAPIBASE_LIBS" 17523 if test "$cross_compiling" = yes; then : 17524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17525$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17526as_fn_error $? "cannot run test program while cross compiling 17527See \`config.log' for more details" "$LINENO" 5; } 17528else 17529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17530/* end confdefs.h. */ 17531 17532#ifdef HAVE_GSSAPI_H 17533#include <gssapi.h> 17534#else 17535#include <gssapi/gssapi.h> 17536#endif 17537 17538int main(void) 17539{ 17540 gss_OID_desc spnego_oid = { 6, (void *) "\x2b\x06\x01\x05\x05\x02" }; 17541 gss_OID_set mech_set; 17542 OM_uint32 min_stat; 17543 int have_spnego = 0; 17544 17545 if (gss_indicate_mechs(&min_stat, &mech_set) == GSS_S_COMPLETE) { 17546 gss_test_oid_set_member(&min_stat, &spnego_oid, mech_set, &have_spnego); 17547 gss_release_oid_set(&min_stat, &mech_set); 17548 } 17549 17550 return (!have_spnego); // 0 = success, 1 = failure 17551} 17552 17553_ACEOF 17554if ac_fn_c_try_run "$LINENO"; then : 17555 ac_cv_gssapi_supports_spnego=yes 17556else 17557 ac_cv_gssapi_supports_spnego=no 17558fi 17559rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17560 conftest.$ac_objext conftest.beam conftest.$ac_ext 17561fi 17562 17563 LIBS="$cmu_save_LIBS" 17564 17565fi 17566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gssapi_supports_spnego" >&5 17567$as_echo "$ac_cv_gssapi_supports_spnego" >&6; } 17568 if test "$ac_cv_gssapi_supports_spnego" = yes; then : 17569 17570 17571$as_echo "#define HAVE_GSS_SPNEGO /**/" >>confdefs.h 17572 17573 17574fi 17575 17576else 17577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 17578$as_echo "disabled" >&6; } 17579fi 17580 17581 17582 17583if test "$gssapi" != "no"; then 17584 17585$as_echo "#define STATIC_GSSAPIV2 /**/" >>confdefs.h 17586 17587 17588$as_echo "#define HAVE_GSSAPI /**/" >>confdefs.h 17589 17590 17591 mutex_default="no" 17592 if test "$gss_impl" = "mit"; then 17593 mutex_default="yes" 17594 elif test "$gss_impl" = "heimdal"; then 17595 17596$as_echo "#define KRB5_HEIMDAL /**/" >>confdefs.h 17597 17598 fi 17599 17600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to use mutexes aroung GSS calls" >&5 17601$as_echo_n "checking to use mutexes aroung GSS calls... " >&6; } 17602 # Check whether --enable-gss_mutexes was given. 17603if test "${enable_gss_mutexes+set}" = set; then : 17604 enableval=$enable_gss_mutexes; use_gss_mutexes=$enableval 17605else 17606 use_gss_mutexes=$mutex_default 17607fi 17608 17609 if test $use_gss_mutexes = "yes"; then 17610 17611$as_echo "#define GSS_USE_MUTEXES /**/" >>confdefs.h 17612 17613 fi 17614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gss_mutexes" >&5 17615$as_echo "$use_gss_mutexes" >&6; } 17616fi 17617 17618ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" 17619if test "x$ac_cv_func_crypt" = xyes; then : 17620 cmu_have_crypt=yes 17621else 17622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 17623$as_echo_n "checking for crypt in -lcrypt... " >&6; } 17624if ${ac_cv_lib_crypt_crypt+:} false; then : 17625 $as_echo_n "(cached) " >&6 17626else 17627 ac_check_lib_save_LIBS=$LIBS 17628LIBS="-lcrypt $LIBS" 17629cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17630/* end confdefs.h. */ 17631 17632/* Override any GCC internal prototype to avoid an error. 17633 Use char because int might match the return type of a GCC 17634 builtin and then its argument prototype would still apply. */ 17635#ifdef __cplusplus 17636extern "C" 17637#endif 17638char crypt (); 17639int 17640main () 17641{ 17642return crypt (); 17643 ; 17644 return 0; 17645} 17646_ACEOF 17647if ac_fn_c_try_link "$LINENO"; then : 17648 ac_cv_lib_crypt_crypt=yes 17649else 17650 ac_cv_lib_crypt_crypt=no 17651fi 17652rm -f core conftest.err conftest.$ac_objext \ 17653 conftest$ac_exeext conftest.$ac_ext 17654LIBS=$ac_check_lib_save_LIBS 17655fi 17656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 17657$as_echo "$ac_cv_lib_crypt_crypt" >&6; } 17658if test "x$ac_cv_lib_crypt_crypt" = xyes; then : 17659 LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes 17660else 17661 cmu_have_crypt=no 17662fi 17663 17664fi 17665 17666 17667 17668 17669# Check whether --enable-sia was given. 17670if test "${enable_sia+set}" = set; then : 17671 enableval=$enable_sia; sia=$enableval 17672else 17673 sia=no 17674fi 17675 17676LIB_SIA="" 17677if test "$sia" != no; then 17678 if test -f /etc/sia/matrix.conf; then 17679 17680$as_echo "#define HAVE_SIA /**/" >>confdefs.h 17681 17682 LIB_SIA="-lsecurity -ldb -lm -laud" 17683 else 17684 as_fn_error $? "No support for SIA found" "$LINENO" 5 17685 fi 17686fi 17687 17688 17689# Check whether --enable-auth-sasldb was given. 17690if test "${enable_auth_sasldb+set}" = set; then : 17691 enableval=$enable_auth_sasldb; authsasldb=$enableval 17692else 17693 authsasldb=no 17694fi 17695 17696if test "$authsasldb" != no; then 17697 17698$as_echo "#define AUTH_SASLDB /**/" >>confdefs.h 17699 17700 17701 17702# Check whether --with-dbpath was given. 17703if test "${with_dbpath+set}" = set; then : 17704 withval=$with_dbpath; dbpath=$withval 17705else 17706 dbpath=/etc/sasldb2 17707fi 17708 17709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DB path to use" >&5 17710$as_echo_n "checking DB path to use... " >&6; } 17711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbpath" >&5 17712$as_echo "$dbpath" >&6; } 17713 17714cat >>confdefs.h <<_ACEOF 17715#define SASL_DB_PATH "$dbpath" 17716_ACEOF 17717 17718 17719cmu_save_LIBS="$LIBS" 17720 17721# Check whether --with-dblib was given. 17722if test "${with_dblib+set}" = set; then : 17723 withval=$with_dblib; dblib=$withval 17724else 17725 dblib=auto_detect 17726fi 17727 17728 17729 17730 17731# Check whether --with-bdb-libdir was given. 17732if test "${with_bdb_libdir+set}" = set; then : 17733 withval=$with_bdb_libdir; with_bdb_lib=$withval 17734else 17735 test "${with_bdb_lib+set}" = set || with_bdb_lib=none 17736fi 17737 17738 17739# Check whether --with-bdb-incdir was given. 17740if test "${with_bdb_incdir+set}" = set; then : 17741 withval=$with_bdb_incdir; with_bdb_inc=$withval 17742else 17743 test "${with_bdb_inc+set}" = set || with_bdb_inc=none 17744fi 17745 17746 17747 17748SASL_DB_LIB="" 17749 17750case "$dblib" in 17751 berkeley) 17752 17753 17754 17755 cmu_save_CPPFLAGS=$CPPFLAGS 17756 17757 if test -d $with_bdb_inc; then 17758 CPPFLAGS="$CPPFLAGS -I$with_bdb_inc" 17759 BDB_INCADD="-I$with_bdb_inc" 17760 else 17761 BDB_INCADD="" 17762 fi 17763 17764 ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default" 17765if test "x$ac_cv_header_db_h" = xyes; then : 17766 17767 BDB_SAVE_LDFLAGS=$LDFLAGS 17768 17769 if test -d $with_bdb_lib; then 17770 17771 # this is CMU ADD LIBPATH TO 17772 if test "$andrew_cv_runpath_switch" = "none" ; then 17773 LDFLAGS="-L$with_bdb_lib ${LDFLAGS}" 17774 else 17775 LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_cv_runpath_switch$with_bdb_lib" 17776 fi 17777 17778 17779 # this is CMU ADD LIBPATH TO 17780 if test "$andrew_cv_runpath_switch" = "none" ; then 17781 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}" 17782 else 17783 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_cv_runpath_switch$with_bdb_lib" 17784 fi 17785 17786 else 17787 BDB_LIBADD="" 17788 fi 17789 17790 saved_LIBS=$LIBS 17791 for dbname in ${with_bdb} \ 17792 db-5.2 db5.2 db52 \ 17793 db-5.1 db5.2 db51 \ 17794 db-5.0 db5.2 db50 \ 17795 db-4.8 db4.8 db48 \ 17796 db-4.7 db4.7 db47 \ 17797 db-4.6 db4.6 db46 \ 17798 db-4.5 db4.5 db45 \ 17799 db-4.4 db4.4 db44 \ 17800 db-4.3 db4.3 db43 \ 17801 db-4.2 db4.2 db42 \ 17802 db-4.1 db4.1 db41 \ 17803 db-4.0 db4.0 db40 db-4 db4 \ 17804 db-3.3 db3.3 db33 \ 17805 db-3.2 db3.2 db32 \ 17806 db-3.1 db3.1 db31 \ 17807 db-3.0 db3.0 db30 db-3 db3 \ 17808 db 17809 do 17810 LIBS="$saved_LIBS -l$dbname" 17811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17812/* end confdefs.h. */ 17813#include <stdio.h> 17814#include <db.h> 17815int 17816main () 17817{ 17818db_create(NULL, NULL, 0); 17819 ; 17820 return 0; 17821} 17822_ACEOF 17823if ac_fn_c_try_link "$LINENO"; then : 17824 BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db 17825else 17826 dblib="no" 17827fi 17828rm -f core conftest.err conftest.$ac_objext \ 17829 conftest$ac_exeext conftest.$ac_ext 17830 if test "$dblib" = "berkeley"; then break; fi 17831 done 17832 if test "$dblib" = "no"; then 17833 LIBS="$saved_LIBS -ldb" 17834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17835/* end confdefs.h. */ 17836#include <stdio.h> 17837#include <db.h> 17838int 17839main () 17840{ 17841db_open(NULL, 0, 0, 0, NULL, NULL, NULL); 17842 ; 17843 return 0; 17844} 17845_ACEOF 17846if ac_fn_c_try_link "$LINENO"; then : 17847 BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db 17848else 17849 dblib="no" 17850fi 17851rm -f core conftest.err conftest.$ac_objext \ 17852 conftest$ac_exeext conftest.$ac_ext 17853 fi 17854 LIBS=$saved_LIBS 17855 17856 LDFLAGS=$BDB_SAVE_LDFLAGS 17857 17858else 17859 dblib="no" 17860fi 17861 17862 17863 17864 CPPFLAGS=$cmu_save_CPPFLAGS 17865 17866 CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}" 17867 SASL_DB_INC=$BDB_INCADD 17868 SASL_DB_LIB="${BDB_LIBADD}" 17869 ;; 17870 gdbm) 17871 17872# Check whether --with-gdbm was given. 17873if test "${with_gdbm+set}" = set; then : 17874 withval=$with_gdbm; with_gdbm="${withval}" 17875fi 17876 17877 17878 case "$with_gdbm" in 17879 ""|yes) 17880 ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default" 17881if test "x$ac_cv_header_gdbm_h" = xyes; then : 17882 17883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5 17884$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; } 17885if ${ac_cv_lib_gdbm_gdbm_open+:} false; then : 17886 $as_echo_n "(cached) " >&6 17887else 17888 ac_check_lib_save_LIBS=$LIBS 17889LIBS="-lgdbm $LIBS" 17890cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17891/* end confdefs.h. */ 17892 17893/* Override any GCC internal prototype to avoid an error. 17894 Use char because int might match the return type of a GCC 17895 builtin and then its argument prototype would still apply. */ 17896#ifdef __cplusplus 17897extern "C" 17898#endif 17899char gdbm_open (); 17900int 17901main () 17902{ 17903return gdbm_open (); 17904 ; 17905 return 0; 17906} 17907_ACEOF 17908if ac_fn_c_try_link "$LINENO"; then : 17909 ac_cv_lib_gdbm_gdbm_open=yes 17910else 17911 ac_cv_lib_gdbm_gdbm_open=no 17912fi 17913rm -f core conftest.err conftest.$ac_objext \ 17914 conftest$ac_exeext conftest.$ac_ext 17915LIBS=$ac_check_lib_save_LIBS 17916fi 17917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5 17918$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; } 17919if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then : 17920 SASL_DB_LIB="-lgdbm" 17921else 17922 dblib="no" 17923fi 17924 17925else 17926 dblib="no" 17927fi 17928 17929 17930 ;; 17931 *) 17932 if test -d $with_gdbm; then 17933 CPPFLAGS="${CPPFLAGS} -I${with_gdbm}/include" 17934 LDFLAGS="${LDFLAGS} -L${with_gdbm}/lib" 17935 SASL_DB_LIB="-lgdbm" 17936 else 17937 with_gdbm="no" 17938 fi 17939 esac 17940 ;; 17941 lmdb) 17942 ac_fn_c_check_header_mongrel "$LINENO" "lmdb.h" "ac_cv_header_lmdb_h" "$ac_includes_default" 17943if test "x$ac_cv_header_lmdb_h" = xyes; then : 17944 17945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mdb_env_create in -llmdb" >&5 17946$as_echo_n "checking for mdb_env_create in -llmdb... " >&6; } 17947if ${ac_cv_lib_lmdb_mdb_env_create+:} false; then : 17948 $as_echo_n "(cached) " >&6 17949else 17950 ac_check_lib_save_LIBS=$LIBS 17951LIBS="-llmdb $LIBS" 17952cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17953/* end confdefs.h. */ 17954 17955/* Override any GCC internal prototype to avoid an error. 17956 Use char because int might match the return type of a GCC 17957 builtin and then its argument prototype would still apply. */ 17958#ifdef __cplusplus 17959extern "C" 17960#endif 17961char mdb_env_create (); 17962int 17963main () 17964{ 17965return mdb_env_create (); 17966 ; 17967 return 0; 17968} 17969_ACEOF 17970if ac_fn_c_try_link "$LINENO"; then : 17971 ac_cv_lib_lmdb_mdb_env_create=yes 17972else 17973 ac_cv_lib_lmdb_mdb_env_create=no 17974fi 17975rm -f core conftest.err conftest.$ac_objext \ 17976 conftest$ac_exeext conftest.$ac_ext 17977LIBS=$ac_check_lib_save_LIBS 17978fi 17979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lmdb_mdb_env_create" >&5 17980$as_echo "$ac_cv_lib_lmdb_mdb_env_create" >&6; } 17981if test "x$ac_cv_lib_lmdb_mdb_env_create" = xyes; then : 17982 SASL_DB_LIB="-llmdb"; enable_keep_db_open=yes 17983else 17984 dblib="no" 17985fi 17986 17987else 17988 dblib="no" 17989fi 17990 17991 17992 ;; 17993 ndbm) 17994 ac_fn_c_check_header_mongrel "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default" 17995if test "x$ac_cv_header_ndbm_h" = xyes; then : 17996 17997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lndbm" >&5 17998$as_echo_n "checking for dbm_open in -lndbm... " >&6; } 17999if ${ac_cv_lib_ndbm_dbm_open+:} false; then : 18000 $as_echo_n "(cached) " >&6 18001else 18002 ac_check_lib_save_LIBS=$LIBS 18003LIBS="-lndbm $LIBS" 18004cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18005/* end confdefs.h. */ 18006 18007/* Override any GCC internal prototype to avoid an error. 18008 Use char because int might match the return type of a GCC 18009 builtin and then its argument prototype would still apply. */ 18010#ifdef __cplusplus 18011extern "C" 18012#endif 18013char dbm_open (); 18014int 18015main () 18016{ 18017return dbm_open (); 18018 ; 18019 return 0; 18020} 18021_ACEOF 18022if ac_fn_c_try_link "$LINENO"; then : 18023 ac_cv_lib_ndbm_dbm_open=yes 18024else 18025 ac_cv_lib_ndbm_dbm_open=no 18026fi 18027rm -f core conftest.err conftest.$ac_objext \ 18028 conftest$ac_exeext conftest.$ac_ext 18029LIBS=$ac_check_lib_save_LIBS 18030fi 18031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbm_dbm_open" >&5 18032$as_echo "$ac_cv_lib_ndbm_dbm_open" >&6; } 18033if test "x$ac_cv_lib_ndbm_dbm_open" = xyes; then : 18034 SASL_DB_LIB="-lndbm" 18035else 18036 18037 ac_fn_c_check_func "$LINENO" "dbm_open" "ac_cv_func_dbm_open" 18038if test "x$ac_cv_func_dbm_open" = xyes; then : 18039 18040else 18041 dblib="no" 18042fi 18043 18044fi 18045 18046else 18047 dblib="no" 18048fi 18049 18050 18051 ;; 18052 auto_detect) 18053 18054 18055 18056 cmu_save_CPPFLAGS=$CPPFLAGS 18057 18058 if test -d $with_bdb_inc; then 18059 CPPFLAGS="$CPPFLAGS -I$with_bdb_inc" 18060 BDB_INCADD="-I$with_bdb_inc" 18061 else 18062 BDB_INCADD="" 18063 fi 18064 18065 ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default" 18066if test "x$ac_cv_header_db_h" = xyes; then : 18067 18068 BDB_SAVE_LDFLAGS=$LDFLAGS 18069 18070 if test -d $with_bdb_lib; then 18071 18072 # this is CMU ADD LIBPATH TO 18073 if test "$andrew_cv_runpath_switch" = "none" ; then 18074 LDFLAGS="-L$with_bdb_lib ${LDFLAGS}" 18075 else 18076 LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_cv_runpath_switch$with_bdb_lib" 18077 fi 18078 18079 18080 # this is CMU ADD LIBPATH TO 18081 if test "$andrew_cv_runpath_switch" = "none" ; then 18082 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}" 18083 else 18084 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_cv_runpath_switch$with_bdb_lib" 18085 fi 18086 18087 else 18088 BDB_LIBADD="" 18089 fi 18090 18091 saved_LIBS=$LIBS 18092 for dbname in ${with_bdb} \ 18093 db-5.2 db5.2 db52 \ 18094 db-5.1 db5.2 db51 \ 18095 db-5.0 db5.2 db50 \ 18096 db-4.8 db4.8 db48 \ 18097 db-4.7 db4.7 db47 \ 18098 db-4.6 db4.6 db46 \ 18099 db-4.5 db4.5 db45 \ 18100 db-4.4 db4.4 db44 \ 18101 db-4.3 db4.3 db43 \ 18102 db-4.2 db4.2 db42 \ 18103 db-4.1 db4.1 db41 \ 18104 db-4.0 db4.0 db40 db-4 db4 \ 18105 db-3.3 db3.3 db33 \ 18106 db-3.2 db3.2 db32 \ 18107 db-3.1 db3.1 db31 \ 18108 db-3.0 db3.0 db30 db-3 db3 \ 18109 db 18110 do 18111 LIBS="$saved_LIBS -l$dbname" 18112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18113/* end confdefs.h. */ 18114#include <stdio.h> 18115#include <db.h> 18116int 18117main () 18118{ 18119db_create(NULL, NULL, 0); 18120 ; 18121 return 0; 18122} 18123_ACEOF 18124if ac_fn_c_try_link "$LINENO"; then : 18125 BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db 18126else 18127 dblib="no" 18128fi 18129rm -f core conftest.err conftest.$ac_objext \ 18130 conftest$ac_exeext conftest.$ac_ext 18131 if test "$dblib" = "berkeley"; then break; fi 18132 done 18133 if test "$dblib" = "no"; then 18134 LIBS="$saved_LIBS -ldb" 18135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18136/* end confdefs.h. */ 18137#include <stdio.h> 18138#include <db.h> 18139int 18140main () 18141{ 18142db_open(NULL, 0, 0, 0, NULL, NULL, NULL); 18143 ; 18144 return 0; 18145} 18146_ACEOF 18147if ac_fn_c_try_link "$LINENO"; then : 18148 BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db 18149else 18150 dblib="no" 18151fi 18152rm -f core conftest.err conftest.$ac_objext \ 18153 conftest$ac_exeext conftest.$ac_ext 18154 fi 18155 LIBS=$saved_LIBS 18156 18157 LDFLAGS=$BDB_SAVE_LDFLAGS 18158 18159else 18160 dblib="no" 18161fi 18162 18163 18164 18165 CPPFLAGS=$cmu_save_CPPFLAGS 18166 18167 if test "$dblib" = no; then 18168 ac_fn_c_check_header_mongrel "$LINENO" "lmdb.h" "ac_cv_header_lmdb_h" "$ac_includes_default" 18169if test "x$ac_cv_header_lmdb_h" = xyes; then : 18170 18171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mdb_env_create in -llmdb" >&5 18172$as_echo_n "checking for mdb_env_create in -llmdb... " >&6; } 18173if ${ac_cv_lib_lmdb_mdb_env_create+:} false; then : 18174 $as_echo_n "(cached) " >&6 18175else 18176 ac_check_lib_save_LIBS=$LIBS 18177LIBS="-llmdb $LIBS" 18178cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18179/* end confdefs.h. */ 18180 18181/* Override any GCC internal prototype to avoid an error. 18182 Use char because int might match the return type of a GCC 18183 builtin and then its argument prototype would still apply. */ 18184#ifdef __cplusplus 18185extern "C" 18186#endif 18187char mdb_env_create (); 18188int 18189main () 18190{ 18191return mdb_env_create (); 18192 ; 18193 return 0; 18194} 18195_ACEOF 18196if ac_fn_c_try_link "$LINENO"; then : 18197 ac_cv_lib_lmdb_mdb_env_create=yes 18198else 18199 ac_cv_lib_lmdb_mdb_env_create=no 18200fi 18201rm -f core conftest.err conftest.$ac_objext \ 18202 conftest$ac_exeext conftest.$ac_ext 18203LIBS=$ac_check_lib_save_LIBS 18204fi 18205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lmdb_mdb_env_create" >&5 18206$as_echo "$ac_cv_lib_lmdb_mdb_env_create" >&6; } 18207if test "x$ac_cv_lib_lmdb_mdb_env_create" = xyes; then : 18208 SASL_DB_LIB="-llmdb"; enable_keep_db_open=yes 18209else 18210 dblib="no" 18211fi 18212 18213else 18214 dblib="no" 18215fi 18216 18217 18218 fi 18219 if test "$dblib" = no; then 18220 ac_fn_c_check_header_mongrel "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default" 18221if test "x$ac_cv_header_ndbm_h" = xyes; then : 18222 18223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lndbm" >&5 18224$as_echo_n "checking for dbm_open in -lndbm... " >&6; } 18225if ${ac_cv_lib_ndbm_dbm_open+:} false; then : 18226 $as_echo_n "(cached) " >&6 18227else 18228 ac_check_lib_save_LIBS=$LIBS 18229LIBS="-lndbm $LIBS" 18230cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18231/* end confdefs.h. */ 18232 18233/* Override any GCC internal prototype to avoid an error. 18234 Use char because int might match the return type of a GCC 18235 builtin and then its argument prototype would still apply. */ 18236#ifdef __cplusplus 18237extern "C" 18238#endif 18239char dbm_open (); 18240int 18241main () 18242{ 18243return dbm_open (); 18244 ; 18245 return 0; 18246} 18247_ACEOF 18248if ac_fn_c_try_link "$LINENO"; then : 18249 ac_cv_lib_ndbm_dbm_open=yes 18250else 18251 ac_cv_lib_ndbm_dbm_open=no 18252fi 18253rm -f core conftest.err conftest.$ac_objext \ 18254 conftest$ac_exeext conftest.$ac_ext 18255LIBS=$ac_check_lib_save_LIBS 18256fi 18257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbm_dbm_open" >&5 18258$as_echo "$ac_cv_lib_ndbm_dbm_open" >&6; } 18259if test "x$ac_cv_lib_ndbm_dbm_open" = xyes; then : 18260 dblib="ndbm"; SASL_DB_LIB="-lndbm" 18261else 18262 dblib="weird" 18263fi 18264 18265else 18266 dblib="no" 18267fi 18268 18269 18270 if test "$dblib" = "weird"; then 18271 ac_fn_c_check_func "$LINENO" "dbm_open" "ac_cv_func_dbm_open" 18272if test "x$ac_cv_func_dbm_open" = xyes; then : 18273 dblib="ndbm" 18274else 18275 dblib="no" 18276fi 18277 18278 fi 18279 18280 if test "$dblib" = no; then 18281 ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default" 18282if test "x$ac_cv_header_gdbm_h" = xyes; then : 18283 18284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5 18285$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; } 18286if ${ac_cv_lib_gdbm_gdbm_open+:} false; then : 18287 $as_echo_n "(cached) " >&6 18288else 18289 ac_check_lib_save_LIBS=$LIBS 18290LIBS="-lgdbm $LIBS" 18291cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18292/* end confdefs.h. */ 18293 18294/* Override any GCC internal prototype to avoid an error. 18295 Use char because int might match the return type of a GCC 18296 builtin and then its argument prototype would still apply. */ 18297#ifdef __cplusplus 18298extern "C" 18299#endif 18300char gdbm_open (); 18301int 18302main () 18303{ 18304return gdbm_open (); 18305 ; 18306 return 0; 18307} 18308_ACEOF 18309if ac_fn_c_try_link "$LINENO"; then : 18310 ac_cv_lib_gdbm_gdbm_open=yes 18311else 18312 ac_cv_lib_gdbm_gdbm_open=no 18313fi 18314rm -f core conftest.err conftest.$ac_objext \ 18315 conftest$ac_exeext conftest.$ac_ext 18316LIBS=$ac_check_lib_save_LIBS 18317fi 18318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5 18319$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; } 18320if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then : 18321 dblib="gdbm"; 18322 SASL_DB_LIB="-lgdbm" 18323else 18324 dblib="no" 18325fi 18326 18327else 18328 dblib="no" 18329fi 18330 18331 18332 fi 18333 else 18334 CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}" 18335 SASL_DB_INC=$BDB_INCADD 18336 SASL_DB_LIB="${BDB_LIBADD}" 18337 fi 18338 ;; 18339 none) 18340 ;; 18341 no) 18342 ;; 18343 *) 18344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Bad DB library implementation specified;" >&5 18345$as_echo "$as_me: WARNING: Bad DB library implementation specified;" >&2;} 18346 as_fn_error $? "Use either \"berkeley\", \"gdbm\", \"lmdb\", \"ndbm\" or \"none\"" "$LINENO" 5 18347 dblib=no 18348 ;; 18349esac 18350LIBS="$cmu_save_LIBS" 18351 18352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DB library to use" >&5 18353$as_echo_n "checking DB library to use... " >&6; } 18354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dblib" >&5 18355$as_echo "$dblib" >&6; } 18356 18357SASL_DB_BACKEND="db_${dblib}.lo" 18358SASL_DB_BACKEND_STATIC="db_${dblib}.o allockey.o" 18359SASL_DB_BACKEND_STATIC_SRCS="\$(top_srcdir)/sasldb/db_${dblib}.c \$(top_srcdir)/sasldb/allockey.c" 18360SASL_DB_UTILS="saslpasswd2\$(EXEEXT) sasldblistusers2\$(EXEEXT)" 18361SASL_DB_MANS="saslpasswd2.8 sasldblistusers2.8" 18362 18363case "$dblib" in 18364 gdbm) 18365 SASL_MECHS="$SASL_MECHS libsasldb.la" 18366 18367$as_echo "#define SASL_GDBM /**/" >>confdefs.h 18368 18369 ;; 18370 lmdb) 18371 SASL_MECHS="$SASL_MECHS libsasldb.la" 18372 18373$as_echo "#define SASL_LMDB /**/" >>confdefs.h 18374 18375 ;; 18376 ndbm) 18377 SASL_MECHS="$SASL_MECHS libsasldb.la" 18378 18379$as_echo "#define SASL_NDBM /**/" >>confdefs.h 18380 18381 ;; 18382 berkeley) 18383 SASL_MECHS="$SASL_MECHS libsasldb.la" 18384 18385$as_echo "#define SASL_BERKELEYDB /**/" >>confdefs.h 18386 18387 ;; 18388 *) 18389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling SASL authentication database support" >&5 18390$as_echo "$as_me: WARNING: Disabling SASL authentication database support" >&2;} 18391 SASL_DB_BACKEND="db_none.lo" 18392 SASL_DB_BACKEND_STATIC="db_none.o" 18393 SASL_DB_BACKEND_STATIC_SRCS="\$(top_srcdir)/sasldb/db_none.c" 18394 SASL_DB_UTILS="" 18395 SASL_DB_MANS="" 18396 SASL_DB_LIB="" 18397 ;; 18398esac 18399 18400if test "$enable_static" = yes; then 18401 if test "$dblib" != "none"; then 18402 SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/sasldb.c $SASL_DB_BACKEND_STATIC_SRCS" 18403 SASL_STATIC_OBJS="$SASL_STATIC_OBJS sasldb.o $SASL_DB_BACKEND_STATIC" 18404 18405$as_echo "#define STATIC_SASLDB /**/" >>confdefs.h 18406 18407 else 18408 SASL_STATIC_OBJS="$SASL_STATIC_OBJS $SASL_DB_BACKEND_STATIC" 18409 SASL_STATIC_SRCS="$SASL_STATIC_SRCS $SASL_DB_BACKEND_STATIC_SRCS" 18410 fi 18411fi 18412 18413 18414 18415 18416 18417 18418 18419 18420fi 18421 if test "$authsasldb" != no; then 18422 AUTH_SASLDB_TRUE= 18423 AUTH_SASLDB_FALSE='#' 18424else 18425 AUTH_SASLDB_TRUE='#' 18426 AUTH_SASLDB_FALSE= 18427fi 18428 18429 18430# Check whether --enable-httpform was given. 18431if test "${enable_httpform+set}" = set; then : 18432 enableval=$enable_httpform; httpform=$enableval 18433else 18434 httpform=no 18435fi 18436 18437if test "$httpform" != no; then 18438 18439$as_echo "#define HAVE_HTTPFORM /**/" >>confdefs.h 18440 18441fi 18442 18443 18444# Check whether --with-pam was given. 18445if test "${with_pam+set}" = set; then : 18446 withval=$with_pam; 18447else 18448 with_pam=yes 18449fi 18450 18451if test "$with_pam" != no; then 18452 if test -d $with_pam; then 18453 CPPFLAGS="$CPPFLAGS -I${with_pam}/include" 18454 LDFLAGS="$LDFLAGS -L${with_pam}/lib" 18455 fi 18456 cmu_save_LIBS="$LIBS" 18457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 18458$as_echo_n "checking for pam_start in -lpam... " >&6; } 18459if ${ac_cv_lib_pam_pam_start+:} false; then : 18460 $as_echo_n "(cached) " >&6 18461else 18462 ac_check_lib_save_LIBS=$LIBS 18463LIBS="-lpam $SASL_DL_LIB $LIBS" 18464cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18465/* end confdefs.h. */ 18466 18467/* Override any GCC internal prototype to avoid an error. 18468 Use char because int might match the return type of a GCC 18469 builtin and then its argument prototype would still apply. */ 18470#ifdef __cplusplus 18471extern "C" 18472#endif 18473char pam_start (); 18474int 18475main () 18476{ 18477return pam_start (); 18478 ; 18479 return 0; 18480} 18481_ACEOF 18482if ac_fn_c_try_link "$LINENO"; then : 18483 ac_cv_lib_pam_pam_start=yes 18484else 18485 ac_cv_lib_pam_pam_start=no 18486fi 18487rm -f core conftest.err conftest.$ac_objext \ 18488 conftest$ac_exeext conftest.$ac_ext 18489LIBS=$ac_check_lib_save_LIBS 18490fi 18491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5 18492$as_echo "$ac_cv_lib_pam_pam_start" >&6; } 18493if test "x$ac_cv_lib_pam_pam_start" = xyes; then : 18494 18495 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default" 18496if test "x$ac_cv_header_security_pam_appl_h" = xyes; then : 18497 18498else 18499 with_pam=no 18500fi 18501 18502 18503else 18504 with_pam=no 18505fi 18506 18507 LIBS="$cmu_save_LIBS" 18508fi 18509 18510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAM support" >&5 18511$as_echo_n "checking for PAM support... " >&6; } 18512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pam" >&5 18513$as_echo "$with_pam" >&6; } 18514LIB_PAM="" 18515if test "$with_pam" != no; then 18516 18517$as_echo "#define HAVE_PAM /**/" >>confdefs.h 18518 18519 LIB_PAM="-lpam" 18520fi 18521 18522 18523 18524 18525 18526 # Check whether --enable-plain was given. 18527if test "${enable_plain+set}" = set; then : 18528 enableval=$enable_plain; plain=$enableval 18529else 18530 plain=yes 18531fi 18532 18533 18534 PLAIN_LIBS="" 18535 if test "$plain" != no; then 18536 if test "$cmu_have_crypt" = yes; then 18537 PLAIN_LIBS=$LIB_CRYPT 18538 fi 18539 fi 18540 18541 18542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLAIN" >&5 18543$as_echo_n "checking PLAIN... " >&6; } 18544 if test "$plain" != no; then 18545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 18546$as_echo "enabled" >&6; } 18547 SASL_MECHS="$SASL_MECHS libplain.la" 18548 if test "$enable_static" = yes; then 18549 SASL_STATIC_OBJS="$SASL_STATIC_OBJS plain.o" 18550 SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/plain.c" 18551 18552$as_echo "#define STATIC_PLAIN /**/" >>confdefs.h 18553 18554 fi 18555 else 18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 18557$as_echo "disabled" >&6; } 18558 fi 18559 18560 18561# Check whether --enable-anon was given. 18562if test "${enable_anon+set}" = set; then : 18563 enableval=$enable_anon; anon=$enableval 18564else 18565 anon=yes 18566fi 18567 18568 18569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ANONYMOUS" >&5 18570$as_echo_n "checking ANONYMOUS... " >&6; } 18571if test "$anon" != no; then 18572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 18573$as_echo "enabled" >&6; } 18574 SASL_MECHS="$SASL_MECHS libanonymous.la" 18575 if test "$enable_static" = yes; then 18576 SASL_STATIC_OBJS="$SASL_STATIC_OBJS anonymous.o" 18577 SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/anonymous.c" 18578 18579$as_echo "#define STATIC_ANONYMOUS /**/" >>confdefs.h 18580 18581 fi 18582else 18583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 18584$as_echo "disabled" >&6; } 18585fi 18586 18587# Check whether --enable-login was given. 18588if test "${enable_login+set}" = set; then : 18589 enableval=$enable_login; login=$enableval 18590else 18591 login=no 18592fi 18593 18594 18595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LOGIN" >&5 18596$as_echo_n "checking LOGIN... " >&6; } 18597if test "$login" != no; then 18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 18599$as_echo "enabled" >&6; } 18600 SASL_MECHS="$SASL_MECHS liblogin.la" 18601 if test "$enable_static" = yes; then 18602 SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/login.c" 18603 SASL_STATIC_OBJS="$SASL_STATIC_OBJS login.o" 18604 18605$as_echo "#define STATIC_LOGIN /**/" >>confdefs.h 18606 18607 fi 18608else 18609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 18610$as_echo "disabled" >&6; } 18611fi 18612 18613# Check whether --enable-ntlm was given. 18614if test "${enable_ntlm+set}" = set; then : 18615 enableval=$enable_ntlm; ntlm=$enableval 18616else 18617 ntlm=no 18618fi 18619 18620 18621if test "$with_openssl" = no; then 18622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not found -- NTLM will be disabled" >&5 18623$as_echo "$as_me: WARNING: OpenSSL not found -- NTLM will be disabled" >&2;} 18624 ntlm=no 18625fi 18626 18627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking NTLM" >&5 18628$as_echo_n "checking NTLM... " >&6; } 18629if test "$ntlm" != no; then 18630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 18631$as_echo "enabled" >&6; } 18632 NTLM_LIBS="-lcrypto $LIB_RSAREF" 18633 18634 18635 SASL_MECHS="$SASL_MECHS libntlm.la" 18636 if test "$enable_static" = yes; then 18637 SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/ntlm.c" 18638 SASL_STATIC_OBJS="$SASL_STATIC_OBJS ntlm.o" 18639 18640$as_echo "#define STATIC_NTLM /**/" >>confdefs.h 18641 18642 fi 18643else 18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 18645$as_echo "disabled" >&6; } 18646fi 18647 18648# Check whether --enable-passdss was given. 18649if test "${enable_passdss+set}" = set; then : 18650 enableval=$enable_passdss; passdss=$enableval 18651else 18652 passdss=no 18653fi 18654 18655 18656if test "$with_openssl" = no; then 18657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not found -- PASSDSS will be disabled" >&5 18658$as_echo "$as_me: WARNING: OpenSSL not found -- PASSDSS will be disabled" >&2;} 18659 passdss=no 18660fi 18661 18662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PASSDSS" >&5 18663$as_echo_n "checking PASSDSS... " >&6; } 18664if test "$passdss" != no; then 18665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 18666$as_echo "enabled" >&6; } 18667 PASSDSS_LIBS="-lcrypto $LIB_RSAREF" 18668 18669 18670 SASL_MECHS="$SASL_MECHS libpassdss.la" 18671 if test "$enable_static" = yes; then 18672 SASL_STATIC_OBJS="$SASL_STATIC_OBJS passdss.o" 18673 SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/passdss.c" 18674 18675$as_echo "#define STATIC_PASSDSS /**/" >>confdefs.h 18676 18677 fi 18678else 18679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 18680$as_echo "disabled" >&6; } 18681fi 18682 18683 18684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to include LDAP support" >&5 18685$as_echo_n "checking to include LDAP support... " >&6; } 18686 18687# Check whether --with-ldap was given. 18688if test "${with_ldap+set}" = set; then : 18689 withval=$with_ldap; with_ldap=$withval 18690else 18691 with_ldap=no 18692fi 18693 18694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ldap" >&5 18695$as_echo "$with_ldap" >&6; } 18696 18697if test -d $with_ldap; then 18698 CPPFLAGS="$CPPFLAGS -I${with_ldap}/include" 18699 18700 # this is CMU ADD LIBPATH 18701 if test "$andrew_cv_runpath_switch" = "none" ; then 18702 LDFLAGS="-L${with_ldap}/lib ${LDFLAGS}" 18703 else 18704 LDFLAGS="-L${with_ldap}/lib $andrew_cv_runpath_switch${with_ldap}/lib ${LDFLAGS}" 18705 fi 18706 18707fi 18708 18709LDAP_LIBS="" 18710if test "$with_ldap" != no; then 18711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5 18712$as_echo_n "checking for ldap_initialize in -lldap... " >&6; } 18713if ${ac_cv_lib_ldap_ldap_initialize+:} false; then : 18714 $as_echo_n "(cached) " >&6 18715else 18716 ac_check_lib_save_LIBS=$LIBS 18717LIBS="-lldap -llber $LIBS" 18718cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18719/* end confdefs.h. */ 18720 18721/* Override any GCC internal prototype to avoid an error. 18722 Use char because int might match the return type of a GCC 18723 builtin and then its argument prototype would still apply. */ 18724#ifdef __cplusplus 18725extern "C" 18726#endif 18727char ldap_initialize (); 18728int 18729main () 18730{ 18731return ldap_initialize (); 18732 ; 18733 return 0; 18734} 18735_ACEOF 18736if ac_fn_c_try_link "$LINENO"; then : 18737 ac_cv_lib_ldap_ldap_initialize=yes 18738else 18739 ac_cv_lib_ldap_ldap_initialize=no 18740fi 18741rm -f core conftest.err conftest.$ac_objext \ 18742 conftest$ac_exeext conftest.$ac_ext 18743LIBS=$ac_check_lib_save_LIBS 18744fi 18745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5 18746$as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; } 18747if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes; then : 18748 18749$as_echo "#define HAVE_LDAP /**/" >>confdefs.h 18750 18751 LDAP_LIBS="-lldap -llber" 18752 if test "$with_openssl" != "no"; then 18753 LDAP_LIBS="$LDAP_LIBS -lcrypto $LIB_RSAREF" 18754 fi 18755fi 18756 18757fi 18758 18759 18760 18761 18762# Check whether --enable-sql was given. 18763if test "${enable_sql+set}" = set; then : 18764 enableval=$enable_sql; sql=$enableval 18765else 18766 sql=no 18767fi 18768 18769 18770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SQL" >&5 18771$as_echo_n "checking SQL... " >&6; } 18772if test "$sql" != no; then 18773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 18774$as_echo "enabled" >&6; } 18775 SASL_MECHS="$SASL_MECHS libsql.la" 18776 if test "$enable_static" = yes; then 18777 SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/sql.c" 18778 SASL_STATIC_OBJS="$SASL_STATIC_OBJS sql.o" 18779 18780$as_echo "#define STATIC_SQL /**/" >>confdefs.h 18781 18782 fi 18783else 18784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 18785$as_echo "disabled" >&6; } 18786fi 18787 18788 18789# Check whether --with-mysql was given. 18790if test "${with_mysql+set}" = set; then : 18791 withval=$with_mysql; with_mysql=$withval 18792else 18793 with_mysql=$sql 18794fi 18795 18796 18797# find location of library 18798# presuming if one given then correct 18799if test "${with_mysql}" = "yes"; then 18800 with_mysql=notfound 18801 for mysqlloc in lib/mysql lib mysql/lib 18802 do 18803 if test -f ${prefix}/${mysqlloc}/libmysqlclient.a; then 18804 with_mysql="${prefix}" 18805 break 18806 elif test -f /usr/local/${mysqlloc}/libmysqlclient.a; then 18807 with_mysql="/usr/local" 18808 break 18809 elif test -f /usr/${mysqlloc}/libmysqlclient.a; then 18810 with_mysql="/usr" 18811 break 18812 fi 18813 done 18814fi 18815 18816LIB_MYSQL="" 18817 18818case "$with_mysql" in 18819 no) true;; 18820 notfound) 18821 save_LDFLAGS=$LDFLAGS 18822 LIB_MYSQL=`mysql_config --libs` 18823 LIB_MYSQL="-lmysqlclient" 18824 LDFLAGS="$LDFLAGS $LIB_MYSQL" 18825 # CPPFLAGS="${CPPFLAGS} `mysql_config --include`" 18826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_select_db in -lmysqlclient" >&5 18827$as_echo_n "checking for mysql_select_db in -lmysqlclient... " >&6; } 18828if ${ac_cv_lib_mysqlclient_mysql_select_db+:} false; then : 18829 $as_echo_n "(cached) " >&6 18830else 18831 ac_check_lib_save_LIBS=$LIBS 18832LIBS="-lmysqlclient $LIBS" 18833cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18834/* end confdefs.h. */ 18835 18836/* Override any GCC internal prototype to avoid an error. 18837 Use char because int might match the return type of a GCC 18838 builtin and then its argument prototype would still apply. */ 18839#ifdef __cplusplus 18840extern "C" 18841#endif 18842char mysql_select_db (); 18843int 18844main () 18845{ 18846return mysql_select_db (); 18847 ; 18848 return 0; 18849} 18850_ACEOF 18851if ac_fn_c_try_link "$LINENO"; then : 18852 ac_cv_lib_mysqlclient_mysql_select_db=yes 18853else 18854 ac_cv_lib_mysqlclient_mysql_select_db=no 18855fi 18856rm -f core conftest.err conftest.$ac_objext \ 18857 conftest$ac_exeext conftest.$ac_ext 18858LIBS=$ac_check_lib_save_LIBS 18859fi 18860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_select_db" >&5 18861$as_echo "$ac_cv_lib_mysqlclient_mysql_select_db" >&6; } 18862if test "x$ac_cv_lib_mysqlclient_mysql_select_db" = xyes; then : 18863 18864$as_echo "#define HAVE_MYSQL /**/" >>confdefs.h 18865 18866else 18867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MySQL library mysqlclient does not work" >&5 18868$as_echo "$as_me: WARNING: MySQL library mysqlclient does not work" >&2;} 18869 with_mysql=no 18870fi 18871 18872 LDFLAGS=$save_LDFLAGS 18873 ;; 18874 *) 18875 if test -d ${with_mysql}/lib/mysql; then 18876 18877 # this is CMU ADD LIBPATH TO 18878 if test "$andrew_cv_runpath_switch" = "none" ; then 18879 LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL}" 18880 else 18881 LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL} $andrew_cv_runpath_switch${with_mysql}/lib/mysql" 18882 fi 18883 18884 elif test -d ${with_mysql}/mysql/lib; then 18885 18886 # this is CMU ADD LIBPATH TO 18887 if test "$andrew_cv_runpath_switch" = "none" ; then 18888 LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL}" 18889 else 18890 LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL} $andrew_cv_runpath_switch${with_mysql}/mysql/lib" 18891 fi 18892 18893 elif test -d ${with_mysql}/lib; then 18894 18895 # this is CMU ADD LIBPATH TO 18896 if test "$andrew_cv_runpath_switch" = "none" ; then 18897 LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL}" 18898 else 18899 LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL} $andrew_cv_runpath_switch${with_mysql}/lib" 18900 fi 18901 18902 else 18903 18904 # this is CMU ADD LIBPATH TO 18905 if test "$andrew_cv_runpath_switch" = "none" ; then 18906 LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL}" 18907 else 18908 LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL} $andrew_cv_runpath_switch${with_mysql}" 18909 fi 18910 18911 fi 18912 18913 LIB_MYSQL_DIR=$LIB_MYSQL 18914 LIB_MYSQL="$LIB_MYSQL -lmysqlclient" 18915 18916 if test -d ${with_mysql}/include/mysql; then 18917 CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include/mysql" 18918 elif test -d ${with_mysql}/mysql/include; then 18919 CPPFLAGS="${CPPFLAGS} -I${with_mysql}/mysql/include" 18920 elif test -d ${with_mysql}/include; then 18921 CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include" 18922 elif test -d ${prefix}/include/mysql; then 18923 CPPFLAGS="${CPPFLAGS} -I${prefix}/include/mysql" 18924 else 18925 CPPFLAGS="${CPPFLAGS} -I${with_mysql}" 18926 fi 18927 18928 save_LDFLAGS=$LDFLAGS 18929 LDFLAGS="$LDFLAGS $LIB_MYSQL_DIR" 18930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_select_db in -lmysqlclient" >&5 18931$as_echo_n "checking for mysql_select_db in -lmysqlclient... " >&6; } 18932if ${ac_cv_lib_mysqlclient_mysql_select_db+:} false; then : 18933 $as_echo_n "(cached) " >&6 18934else 18935 ac_check_lib_save_LIBS=$LIBS 18936LIBS="-lmysqlclient $LIBS" 18937cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18938/* end confdefs.h. */ 18939 18940/* Override any GCC internal prototype to avoid an error. 18941 Use char because int might match the return type of a GCC 18942 builtin and then its argument prototype would still apply. */ 18943#ifdef __cplusplus 18944extern "C" 18945#endif 18946char mysql_select_db (); 18947int 18948main () 18949{ 18950return mysql_select_db (); 18951 ; 18952 return 0; 18953} 18954_ACEOF 18955if ac_fn_c_try_link "$LINENO"; then : 18956 ac_cv_lib_mysqlclient_mysql_select_db=yes 18957else 18958 ac_cv_lib_mysqlclient_mysql_select_db=no 18959fi 18960rm -f core conftest.err conftest.$ac_objext \ 18961 conftest$ac_exeext conftest.$ac_ext 18962LIBS=$ac_check_lib_save_LIBS 18963fi 18964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_select_db" >&5 18965$as_echo "$ac_cv_lib_mysqlclient_mysql_select_db" >&6; } 18966if test "x$ac_cv_lib_mysqlclient_mysql_select_db" = xyes; then : 18967 18968$as_echo "#define HAVE_MYSQL /**/" >>confdefs.h 18969 18970else 18971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MySQL library mysqlclient does not work" >&5 18972$as_echo "$as_me: WARNING: MySQL library mysqlclient does not work" >&2;} 18973 with_mysql=no 18974fi 18975 18976 LDFLAGS=$save_LDFLAGS;; 18977 18978esac 18979 18980 18981 18982# Check whether --with-pgsql was given. 18983if test "${with_pgsql+set}" = set; then : 18984 withval=$with_pgsql; with_pgsql=$withval 18985else 18986 with_pgsql=$sql 18987fi 18988 18989 18990# find location of library 18991# presuing if one given then correct 18992if test "${with_pgsql}" = "yes"; then 18993 with_pgsql=notfound 18994 for pgsqlloc in lib/pgsql lib pgsql/lib 18995 do 18996 if test -f ${prefix}/${pgsqlloc}/libpq.a; then 18997 with_pgsql="${prefix}" 18998 break 18999 elif test -f /usr/local/${pgsqlloc}/libpq.a; then 19000 with_pgsql="/usr/local" 19001 break 19002 elif test -f /usr/${pgsqlloc}/libpq.a; then 19003 with_pgsql="/usr" 19004 break 19005 fi 19006 done 19007fi 19008 19009LIB_PGSQL="" 19010 19011case "$with_pgsql" in 19012 no) true;; 19013 notfound) 19014 LIB_PGSQL="-lpq" 19015 # CPPFLAGS="${CPPFLAGS} -I`pg_config --includedir`" 19016 save_LDFLAGS=$LDFLAGS 19017 LDFLAGS="$LDFLAGS $LIB_PGSQL" 19018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetdbLogin in -lpq" >&5 19019$as_echo_n "checking for PQsetdbLogin in -lpq... " >&6; } 19020if ${ac_cv_lib_pq_PQsetdbLogin+:} false; then : 19021 $as_echo_n "(cached) " >&6 19022else 19023 ac_check_lib_save_LIBS=$LIBS 19024LIBS="-lpq $LIBS" 19025cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19026/* end confdefs.h. */ 19027 19028/* Override any GCC internal prototype to avoid an error. 19029 Use char because int might match the return type of a GCC 19030 builtin and then its argument prototype would still apply. */ 19031#ifdef __cplusplus 19032extern "C" 19033#endif 19034char PQsetdbLogin (); 19035int 19036main () 19037{ 19038return PQsetdbLogin (); 19039 ; 19040 return 0; 19041} 19042_ACEOF 19043if ac_fn_c_try_link "$LINENO"; then : 19044 ac_cv_lib_pq_PQsetdbLogin=yes 19045else 19046 ac_cv_lib_pq_PQsetdbLogin=no 19047fi 19048rm -f core conftest.err conftest.$ac_objext \ 19049 conftest$ac_exeext conftest.$ac_ext 19050LIBS=$ac_check_lib_save_LIBS 19051fi 19052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetdbLogin" >&5 19053$as_echo "$ac_cv_lib_pq_PQsetdbLogin" >&6; } 19054if test "x$ac_cv_lib_pq_PQsetdbLogin" = xyes; then : 19055 19056$as_echo "#define HAVE_PGSQL /**/" >>confdefs.h 19057 19058else 19059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PostgreSQL Library pq does not work" >&5 19060$as_echo "$as_me: WARNING: PostgreSQL Library pq does not work" >&2;} 19061 with_pgsql=no 19062fi 19063 19064 LDFLAGS=$save_LDFLAGS 19065 ;; 19066 *) 19067 if test -d ${with_pgsql}/lib/pgsql; then 19068 19069 # this is CMU ADD LIBPATH TO 19070 if test "$andrew_cv_runpath_switch" = "none" ; then 19071 LIB_PGSQL="-L${with_pgsql}/lib/pgsql ${LIB_PGSQL}" 19072 else 19073 LIB_PGSQL="-L${with_pgsql}/lib/pgsql ${LIB_PGSQL} $andrew_cv_runpath_switch${with_pgsql}/lib/pgsql" 19074 fi 19075 19076 elif test -d ${with_pgsql}/pgsql/lib; then 19077 19078 # this is CMU ADD LIBPATH TO 19079 if test "$andrew_cv_runpath_switch" = "none" ; then 19080 LIB_PGSQL="-L${with_pgsql}/pgsql/lib ${LIB_PGSQL}" 19081 else 19082 LIB_PGSQL="-L${with_pgsql}/pgsql/lib ${LIB_PGSQL} $andrew_cv_runpath_switch${with_pgsql}/pgsql/lib" 19083 fi 19084 19085 elif test -d ${with_pgsql}/lib; then 19086 19087 # this is CMU ADD LIBPATH TO 19088 if test "$andrew_cv_runpath_switch" = "none" ; then 19089 LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL}" 19090 else 19091 LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL} $andrew_cv_runpath_switch${with_pgsql}/lib" 19092 fi 19093 19094 else 19095 19096 # this is CMU ADD LIBPATH TO 19097 if test "$andrew_cv_runpath_switch" = "none" ; then 19098 LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL}" 19099 else 19100 LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL} $andrew_cv_runpath_switch${with_pgsql}" 19101 fi 19102 19103 fi 19104 19105 LIB_PGSQL_DIR=$LIB_PGSQL 19106 LIB_PGSQL="$LIB_PGSQL -lpq" 19107 19108 if test -d ${with_pgsql}/include/pgsql; then 19109 CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include/pgsql" 19110 elif test -d ${with_pgsql}/pgsql/include; then 19111 CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/pgsql/include" 19112 elif test -d ${with_pgsql}/include; then 19113 CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include" 19114 elif test -d ${prefix}/include; then 19115 CPPFLAGS="${CPPFLAGS} -I${prefix}/include" 19116 else 19117 CPPFLAGS="${CPPFLAGS} -I${with_pgsql}" 19118 fi 19119 19120 19121 save_LDFLAGS=$LDFLAGS 19122 LDFLAGS="$LDFLAGS $LIB_PGSQL_DIR" 19123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetdbLogin in -lpq" >&5 19124$as_echo_n "checking for PQsetdbLogin in -lpq... " >&6; } 19125if ${ac_cv_lib_pq_PQsetdbLogin+:} false; then : 19126 $as_echo_n "(cached) " >&6 19127else 19128 ac_check_lib_save_LIBS=$LIBS 19129LIBS="-lpq $LIBS" 19130cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19131/* end confdefs.h. */ 19132 19133/* Override any GCC internal prototype to avoid an error. 19134 Use char because int might match the return type of a GCC 19135 builtin and then its argument prototype would still apply. */ 19136#ifdef __cplusplus 19137extern "C" 19138#endif 19139char PQsetdbLogin (); 19140int 19141main () 19142{ 19143return PQsetdbLogin (); 19144 ; 19145 return 0; 19146} 19147_ACEOF 19148if ac_fn_c_try_link "$LINENO"; then : 19149 ac_cv_lib_pq_PQsetdbLogin=yes 19150else 19151 ac_cv_lib_pq_PQsetdbLogin=no 19152fi 19153rm -f core conftest.err conftest.$ac_objext \ 19154 conftest$ac_exeext conftest.$ac_ext 19155LIBS=$ac_check_lib_save_LIBS 19156fi 19157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetdbLogin" >&5 19158$as_echo "$ac_cv_lib_pq_PQsetdbLogin" >&6; } 19159if test "x$ac_cv_lib_pq_PQsetdbLogin" = xyes; then : 19160 19161$as_echo "#define HAVE_PGSQL /**/" >>confdefs.h 19162 19163else 19164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PostgreSQL Library pq does not work" >&5 19165$as_echo "$as_me: WARNING: PostgreSQL Library pq does not work" >&2;} 19166 with_pgsql=no 19167fi 19168 19169 LDFLAGS=$save_LDFLAGS;; 19170 19171esac 19172 19173 19174 19175# Check whether --with-sqlite was given. 19176if test "${with_sqlite+set}" = set; then : 19177 withval=$with_sqlite; with_sqlite=$withval 19178else 19179 with_sqlite=$sql 19180fi 19181 19182 19183# find location of library 19184# presuing if one given then correct 19185if test "${with_sqlite}" = "yes"; then 19186 with_sqlite=notfound 19187 for sqliteloc in lib 19188 do 19189 if test -f ${prefix}/${sqliteloc}/libsqlite.a; then 19190 with_sqlite="${prefix}" 19191 break 19192 elif test -f /usr/local/${sqliteloc}/libsqlite.a; then 19193 with_sqlite="/usr/local" 19194 break 19195 elif test -f /usr/${sqliteloc}/libsqlite.a; then 19196 with_sqlite="/usr" 19197 break 19198 fi 19199 done 19200fi 19201 19202LIB_SQLITE="" 19203 19204case "$with_sqlite" in 19205 no) true;; 19206 notfound) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SQLite Library not found" >&5 19207$as_echo "$as_me: WARNING: SQLite Library not found" >&2;}; true;; 19208 *) 19209 if test -d ${with_sqlite}/lib; then 19210 19211 # this is CMU ADD LIBPATH TO 19212 if test "$andrew_cv_runpath_switch" = "none" ; then 19213 LIB_SQLITE="-L${with_sqlite}/lib ${LIB_SQLITE}" 19214 else 19215 LIB_SQLITE="-L${with_sqlite}/lib ${LIB_SQLITE} $andrew_cv_runpath_switch${with_sqlite}/lib" 19216 fi 19217 19218 else 19219 19220 # this is CMU ADD LIBPATH TO 19221 if test "$andrew_cv_runpath_switch" = "none" ; then 19222 LIB_SQLITE="-L${with_sqlite} ${LIB_SQLITE}" 19223 else 19224 LIB_SQLITE="-L${with_sqlite} ${LIB_SQLITE} $andrew_cv_runpath_switch${with_sqlite}" 19225 fi 19226 19227 fi 19228 19229 LIB_SQLITE_DIR=$LIB_SQLITE 19230 LIB_SQLITE="$LIB_SQLITE -lsqlite" 19231 19232 if test -d ${with_sqlite}/include; then 19233 CPPFLAGS="${CPPFLAGS} -I${with_sqlite}/include" 19234 else 19235 CPPFLAGS="${CPPFLAGS} -I${with_sqlite}" 19236 fi 19237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_open in -lsqlite" >&5 19238$as_echo_n "checking for sqlite_open in -lsqlite... " >&6; } 19239if ${ac_cv_lib_sqlite_sqlite_open+:} false; then : 19240 $as_echo_n "(cached) " >&6 19241else 19242 ac_check_lib_save_LIBS=$LIBS 19243LIBS="-lsqlite $LIB_SQLITE_DIR $LIBS" 19244cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19245/* end confdefs.h. */ 19246 19247/* Override any GCC internal prototype to avoid an error. 19248 Use char because int might match the return type of a GCC 19249 builtin and then its argument prototype would still apply. */ 19250#ifdef __cplusplus 19251extern "C" 19252#endif 19253char sqlite_open (); 19254int 19255main () 19256{ 19257return sqlite_open (); 19258 ; 19259 return 0; 19260} 19261_ACEOF 19262if ac_fn_c_try_link "$LINENO"; then : 19263 ac_cv_lib_sqlite_sqlite_open=yes 19264else 19265 ac_cv_lib_sqlite_sqlite_open=no 19266fi 19267rm -f core conftest.err conftest.$ac_objext \ 19268 conftest$ac_exeext conftest.$ac_ext 19269LIBS=$ac_check_lib_save_LIBS 19270fi 19271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_open" >&5 19272$as_echo "$ac_cv_lib_sqlite_sqlite_open" >&6; } 19273if test "x$ac_cv_lib_sqlite_sqlite_open" = xyes; then : 19274 19275$as_echo "#define HAVE_SQLITE /**/" >>confdefs.h 19276 19277else 19278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SQLite Library sqlite does not work" >&5 19279$as_echo "$as_me: WARNING: SQLite Library sqlite does not work" >&2;} 19280 with_sqlite=no 19281fi 19282;; 19283 19284esac 19285 19286 19287 19288# Check whether --with-sqlite3 was given. 19289if test "${with_sqlite3+set}" = set; then : 19290 withval=$with_sqlite3; with_sqlite3=$withval 19291else 19292 with_sqlite3=$sql 19293fi 19294 19295 19296# find location of library 19297# we assume that if one given then it is correct 19298if test "${with_sqlite3}" = "yes"; then 19299 with_sqlite3=notfound 19300 for sqlite3loc in lib 19301 do 19302 if test -f ${prefix}/${sqlite3loc}/libsqlite3.a; then 19303 with_sqlite3="${prefix}" 19304 break 19305 elif test -f /usr/local/${sqlite3loc}/libsqlite3.a; then 19306 with_sqlite3="/usr/local" 19307 break 19308 elif test -f /usr/${sqlite3loc}/libsqlite3.a; then 19309 with_sqlite3="/usr" 19310 break 19311 fi 19312 done 19313fi 19314 19315LIB_SQLITE3="" 19316 19317case "$with_sqlite3" in 19318 no) true;; 19319 notfound) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SQLite3 Library not found" >&5 19320$as_echo "$as_me: WARNING: SQLite3 Library not found" >&2;}; true;; 19321 *) 19322 if test -d ${with_sqlite3}/lib; then 19323 19324 # this is CMU ADD LIBPATH TO 19325 if test "$andrew_cv_runpath_switch" = "none" ; then 19326 LIB_SQLITE3="-L${with_sqlite3}/lib ${LIB_SQLITE3}" 19327 else 19328 LIB_SQLITE3="-L${with_sqlite3}/lib ${LIB_SQLITE3} $andrew_cv_runpath_switch${with_sqlite3}/lib" 19329 fi 19330 19331 else 19332 19333 # this is CMU ADD LIBPATH TO 19334 if test "$andrew_cv_runpath_switch" = "none" ; then 19335 LIB_SQLITE3="-L${with_sqlite3} ${LIB_SQLITE3}" 19336 else 19337 LIB_SQLITE3="-L${with_sqlite3} ${LIB_SQLITE3} $andrew_cv_runpath_switch${with_sqlite3}" 19338 fi 19339 19340 fi 19341 19342 LIB_SQLITE3_DIR=$LIB_SQLITE3 19343 LIB_SQLITE3="$LIB_SQLITE3 -lsqlite3" 19344 19345 if test -d ${with_sqlite3}/include; then 19346 CPPFLAGS="${CPPFLAGS} -I${with_sqlite3}/include" 19347 else 19348 CPPFLAGS="${CPPFLAGS} -I${with_sqlite3}" 19349 fi 19350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5 19351$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; } 19352if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then : 19353 $as_echo_n "(cached) " >&6 19354else 19355 ac_check_lib_save_LIBS=$LIBS 19356LIBS="-lsqlite3 $LIB_SQLITE3_DIR $LIBS" 19357cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19358/* end confdefs.h. */ 19359 19360/* Override any GCC internal prototype to avoid an error. 19361 Use char because int might match the return type of a GCC 19362 builtin and then its argument prototype would still apply. */ 19363#ifdef __cplusplus 19364extern "C" 19365#endif 19366char sqlite3_open (); 19367int 19368main () 19369{ 19370return sqlite3_open (); 19371 ; 19372 return 0; 19373} 19374_ACEOF 19375if ac_fn_c_try_link "$LINENO"; then : 19376 ac_cv_lib_sqlite3_sqlite3_open=yes 19377else 19378 ac_cv_lib_sqlite3_sqlite3_open=no 19379fi 19380rm -f core conftest.err conftest.$ac_objext \ 19381 conftest$ac_exeext conftest.$ac_ext 19382LIBS=$ac_check_lib_save_LIBS 19383fi 19384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5 19385$as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; } 19386if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then : 19387 19388$as_echo "#define HAVE_SQLITE3 /**/" >>confdefs.h 19389 19390else 19391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SQLite3 Library sqlite3 does not work" >&5 19392$as_echo "$as_me: WARNING: SQLite3 Library sqlite3 does not work" >&2;} 19393 with_sqlite3=no 19394fi 19395;; 19396 19397esac 19398 19399 19400if test "$sql" = yes -a "$with_pgsql" = no -a "$with_mysql" = no -a "$with_sqlite" = no -a "$with_sqlite3" = no; then 19401 as_fn_error $? "--enable-sql chosen but neither Postgres nor MySQL nor SQLite nor SQLite3 found" "$LINENO" 5 19402fi 19403 19404if test "$enable_shared" = yes; then 19405 19406$as_echo "#define DO_DLOPEN /**/" >>confdefs.h 19407 19408fi 19409 19410# Check whether --enable-ldapdb was given. 19411if test "${enable_ldapdb+set}" = set; then : 19412 enableval=$enable_ldapdb; ldapdb=$enableval 19413else 19414 ldapdb=no 19415fi 19416 19417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDAPDB" >&5 19418$as_echo_n "checking LDAPDB... " >&6; } 19419if test "$ldapdb" != no; then 19420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5 19421$as_echo "enabled" >&6; } 19422 19423 if test "$with_ldap" = no; then 19424 as_fn_error $? "Cannot enable LDAPDB plugin: You need to specify --with-ldap" "$LINENO" 5 19425 fi 19426 19427 save_CPPFLAGS=$CPPFLAGS 19428 save_LDFLAGS=$LDFLAGS 19429 19430 if test -d $with_ldap; then 19431 CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include" 19432 19433 # this is CMU ADD LIBPATH 19434 if test "$andrew_cv_runpath_switch" = "none" ; then 19435 LDFLAGS="-L${with_ldap}/lib ${LDFLAGS}" 19436 else 19437 LDFLAGS="-L${with_ldap}/lib $andrew_cv_runpath_switch${with_ldap}/lib ${LDFLAGS}" 19438 fi 19439 19440 fi 19441 19442 for ac_header in ldap.h lber.h 19443do : 19444 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19445ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19446if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19447 cat >>confdefs.h <<_ACEOF 19448#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19449_ACEOF 19450 19451fi 19452 19453done 19454 19455 19456 if test $ac_cv_header_ldap_h = yes -a $ac_cv_header_lber_h = yes; then 19457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenLDAP api" >&5 19458$as_echo_n "checking OpenLDAP api... " >&6; } 19459if ${cmu_cv_openldap_api+:} false; then : 19460 $as_echo_n "(cached) " >&6 19461else 19462 19463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19464/* end confdefs.h. */ 19465 19466#include <ldap.h> 19467 19468#ifdef LDAP_API_FEATURE_X_OPENLDAP 19469char *__openldap_api = LDAP_API_FEATURE_X_OPENLDAP; 19470#endif 19471 19472_ACEOF 19473if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19474 $EGREP "__openldap_api" >/dev/null 2>&1; then : 19475 cmu_cv_openldap_api=yes 19476else 19477 cmu_cv_openldap_api=no 19478fi 19479rm -f conftest* 19480 19481fi 19482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cmu_cv_openldap_api" >&5 19483$as_echo "$cmu_cv_openldap_api" >&6; } 19484 19485 19486 if test "$cmu_cv_openldap_api" = yes; then 19487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5 19488$as_echo_n "checking for ldap_initialize in -lldap... " >&6; } 19489if ${ac_cv_lib_ldap_ldap_initialize+:} false; then : 19490 $as_echo_n "(cached) " >&6 19491else 19492 ac_check_lib_save_LIBS=$LIBS 19493LIBS="-lldap -llber $LIBS" 19494cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19495/* end confdefs.h. */ 19496 19497/* Override any GCC internal prototype to avoid an error. 19498 Use char because int might match the return type of a GCC 19499 builtin and then its argument prototype would still apply. */ 19500#ifdef __cplusplus 19501extern "C" 19502#endif 19503char ldap_initialize (); 19504int 19505main () 19506{ 19507return ldap_initialize (); 19508 ; 19509 return 0; 19510} 19511_ACEOF 19512if ac_fn_c_try_link "$LINENO"; then : 19513 ac_cv_lib_ldap_ldap_initialize=yes 19514else 19515 ac_cv_lib_ldap_ldap_initialize=no 19516fi 19517rm -f core conftest.err conftest.$ac_objext \ 19518 conftest$ac_exeext conftest.$ac_ext 19519LIBS=$ac_check_lib_save_LIBS 19520fi 19521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5 19522$as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; } 19523if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes; then : 19524 cmu_link_openldap="-lldap -llber" 19525else 19526 cmu_link_openldap=no 19527fi 19528 19529 fi 19530 fi 19531 19532 if test "$cmu_cv_openldap_api" = no -o "$cmu_link_openldap" = no; then 19533 as_fn_error $? "Cannot enable LDAPDB plugin: Could not locate OpenLDAP" "$LINENO" 5 19534 else 19535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenLDAP version" >&5 19536$as_echo_n "checking OpenLDAP version... " >&6; } 19537if ${cmu_cv_openldap_compat+:} false; then : 19538 $as_echo_n "(cached) " >&6 19539else 19540 19541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19542/* end confdefs.h. */ 19543 19544#include <ldap.h> 19545 19546/* Require 2.1.27+ and 2.2.6+ */ 19547#if LDAP_VENDOR_VERSION_MAJOR == 2 && LDAP_VENDOR_VERSION_MINOR == 1 && LDAP_VENDOR_VERSION_PATCH > 26 19548char *__openldap_compat = "2.1.27 or better okay"; 19549#elif LDAP_VENDOR_VERSION_MAJOR == 2 && LDAP_VENDOR_VERSION_MINOR == 2 && LDAP_VENDOR_VERSION_PATCH > 5 19550char *__openldap_compat = "2.2.6 or better okay"; 19551#elif LDAP_VENDOR_VERSION_MAJOR == 2 && LDAP_VENDOR_VERSION_MINOR > 2 19552char *__openldap_compat = "2.3 or better okay" 19553#endif 19554 19555_ACEOF 19556if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19557 $EGREP "__openldap_compat" >/dev/null 2>&1; then : 19558 cmu_cv_openldap_compat=yes 19559else 19560 cmu_cv_openldap_compat=no 19561fi 19562rm -f conftest* 19563 19564fi 19565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cmu_cv_openldap_compat" >&5 19566$as_echo "$cmu_cv_openldap_compat" >&6; } 19567 19568 19569 if test "$cmu_cv_openldap_compat" = no; then 19570 as_fn_error $? "Cannot enable LDAPDB plugin: OpenLDAP library located but incompatible" "$LINENO" 5 19571 else 19572 LIB_LDAP=$cmu_link_openldap 19573 19574 19575 SASL_MECHS="$SASL_MECHS libldapdb.la" 19576 if test "$enable_static" = yes; then 19577 SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/ldapdb.c" 19578 SASL_STATIC_OBJS="$SASL_STATIC_OBJS ldapdb.o" 19579 19580$as_echo "#define STATIC_LDAPDB /**/" >>confdefs.h 19581 19582 fi 19583 fi 19584 fi 19585 19586 if test "$cmu_cv_openldap_compat" != yes; then 19587 CPPFLAGS=$save_CPPFLAGS 19588 LDFLAGS=$save_LDFLAGS 19589 fi 19590else 19591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 19592$as_echo "disabled" >&6; } 19593fi 19594 19595 19596 19597 19598 19599 19600 19601# Check whether --with-plugindir was given. 19602if test "${with_plugindir+set}" = set; then : 19603 withval=$with_plugindir; plugindir=$withval 19604else 19605 plugindir='${libdir}/sasl2' 19606fi 19607 19608 19609 19610 19611# Check whether --with-configdir was given. 19612if test "${with_configdir+set}" = set; then : 19613 withval=$with_configdir; configdir=$withval 19614else 19615 configdir='${plugindir}:${sysconfdir}/sasl2' 19616fi 19617 19618 19619 19620 19621# Check whether --with-rc4 was given. 19622if test "${with_rc4+set}" = set; then : 19623 withval=$with_rc4; with_rc4=$withval 19624else 19625 with_rc4=yes 19626fi 19627 19628 19629if test "$with_rc4" != no; then 19630 19631$as_echo "#define WITH_RC4 /**/" >>confdefs.h 19632 19633fi 19634 19635building_for_macosx=no 19636case "$host_os" in 19637 darwin*) 19638# Check whether --enable-macos-framework was given. 19639if test "${enable_macos_framework+set}" = set; then : 19640 enableval=$enable_macos_framework; building_for_macosx=no 19641else 19642 building_for_macosx=yes 19643fi 19644 19645 ;; 19646esac 19647 if test "$building_for_macosx" = yes; then 19648 MACOSX_TRUE= 19649 MACOSX_FALSE='#' 19650else 19651 MACOSX_TRUE='#' 19652 MACOSX_FALSE= 19653fi 19654 19655 if test "$host_os" = "mingw32"; then 19656 WINDOWS_TRUE= 19657 WINDOWS_FALSE='#' 19658else 19659 WINDOWS_TRUE='#' 19660 WINDOWS_FALSE= 19661fi 19662 19663 19664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc library" >&5 19665$as_echo_n "checking for dmalloc library... " >&6; } 19666 19667# Check whether --with-dmalloc was given. 19668if test "${with_dmalloc+set}" = set; then : 19669 withval=$with_dmalloc; with_dmalloc=$withval 19670else 19671 with_dmalloc=no 19672fi 19673 19674 19675DMALLOC_LIBS="" 19676 19677if test "$with_dmalloc" != "no"; then 19678 if test "$with_dmalloc" = "yes"; then 19679 with_dmalloc="/usr/local" 19680 fi 19681 19682 if test -r "$with_dmalloc/libdmalloc.a"; then 19683 DMALLOC_LIBS="$with_dmalloc/libdmalloc.a" 19684 19685$as_echo "#define WITH_DMALLOC /**/" >>confdefs.h 19686 19687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19688$as_echo "yes" >&6; } 19689 elif test -r "$with_dmalloc/lib/libdmalloc.a"; then 19690 DMALLOC_LIBS="$with_dmalloc/lib/libdmalloc.a" 19691 19692$as_echo "#define WITH_DMALLOC /**/" >>confdefs.h 19693 19694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19695$as_echo "yes" >&6; } 19696 else 19697 as_fn_error please check your installation. "cannot find dmalloc library" "$LINENO" 5 19698 fi 19699else 19700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19701$as_echo "no" >&6; } 19702fi 19703 19704 19705 19706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sfio library" >&5 19707$as_echo_n "checking for sfio library... " >&6; } 19708 19709# Check whether --with-sfio was given. 19710if test "${with_sfio+set}" = set; then : 19711 withval=$with_sfio; with_sfio=$withval 19712else 19713 with_sfio=no 19714fi 19715 19716 19717if test "$with_sfio" != "no"; then 19718 if test "$with_sfio" = "yes"; then 19719 with_sfio="/usr/local" 19720 fi 19721 19722 19723 19724 19725 19726 if test -r "$with_sfio/sfio.h"; then SFIO_DIR=$with_sfio; 19727 SFIO_INC_DIR=$with_sfio 19728 elif test -r "$with_sfio/include/sfio.h"; then SFIO_DIR=$with_sfio; 19729 SFIO_INC_DIR=$with_sfio/include 19730 elif test -r "$with_sfio/include/sfio/sfio.h"; then SFIO_DIR=$with_sfio; 19731 SFIO_INC_DIR=$with_sfio/include/sfio 19732 fi 19733 19734 if test -z "$SFIO_DIR"; then 19735 as_fn_error Please check your SFIO installation. "Cannot find sfio.h" "$LINENO" 5 19736 fi 19737 19738 19739 str="$SFIO_DIR/lib/libsfio.*" 19740 for i in `echo $str`; do 19741 if test -r $i; then 19742 SFIO_LIBDIR=$SFIO_DIR/lib 19743 break 2 19744 fi 19745 done 19746 19747 19748 str="$SFIO_DIR/lib/sfio/libsfio.*" 19749 for i in `echo $str`; do 19750 if test -r $i; then 19751 SFIO_LIBDIR=$SFIO_DIR/lib/sfio 19752 break 2 19753 fi 19754 done 19755 19756 19757 if test -z "$SFIO_LIBDIR"; then 19758 as_fn_error Please check your SFIO installation. "Cannot find sfio library" "$LINENO" 5 19759 fi 19760 19761 SFIO_INC_FLAGS="-I$SFIO_INC_DIR" 19762 SFIO_LIB_FLAGS="-L$SFIO_LIBDIR -lsfio" 19763 SMTPTEST_PROGRAM="smtptest" 19764 SASL_UTIL_LIBS_EXTRA=libsfsasl2.la 19765 SASL_UTIL_HEADERS_EXTRA=sfsasl.h 19766 19767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19768$as_echo "yes" >&6; } 19769else 19770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19771$as_echo "no" >&6; } 19772 SFIO_INC_FLAGS="" 19773 SFIO_LIB_FLAGS="" 19774 SMTPTEST_PROGRAM="" 19775 SASL_UTIL_LIBS_EXTRA="" 19776 SASL_UTIL_HEADERS_EXTRA="" 19777fi 19778 19779 19780 19781 19782 19783 19784 19785sasl_cv_getsubopt=no 19786ac_fn_c_check_func "$LINENO" "getsubopt" "ac_cv_func_getsubopt" 19787if test "x$ac_cv_func_getsubopt" = xyes; then : 19788 19789$as_echo "#define HAVE_GETSUBOPT /**/" >>confdefs.h 19790 19791else 19792 sasl_cv_getsubopt=yes 19793fi 19794 19795if test $sasl_cv_getsubopt = yes; then 19796 case " $LIBOBJS " in 19797 *" getsubopt.$ac_objext "* ) ;; 19798 *) LIBOBJS="$LIBOBJS getsubopt.$ac_objext" 19799 ;; 19800esac 19801 19802 GETSUBOPT="getsubopt.lo" 19803fi 19804 19805 19806sasl_cv_snprintf=no 19807SNPRINTFOBJS="" 19808LTSNPRINTFOBJS="" 19809ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 19810if test "x$ac_cv_func_snprintf" = xyes; then : 19811 19812$as_echo "#define HAVE_SNPRINTF /**/" >>confdefs.h 19813 19814else 19815 sasl_cv_snprintf=yes 19816fi 19817 19818ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 19819if test "x$ac_cv_func_vsnprintf" = xyes; then : 19820 19821$as_echo "#define HAVE_VSNPRINTF /**/" >>confdefs.h 19822 19823else 19824 sasl_cv_snprintf=yes 19825fi 19826 19827if test $sasl_cv_snprintf = yes; then 19828 case " $LIBOBJS " in 19829 *" snprintf.$ac_objext "* ) ;; 19830 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 19831 ;; 19832esac 19833 19834 SNPRINTFOBJS="snprintf.o" 19835 LTSNPRINTFOBJS="snprintf.lo" 19836fi 19837 19838 19839 19840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 19841$as_echo_n "checking for inet_aton in -lresolv... " >&6; } 19842if ${ac_cv_lib_resolv_inet_aton+:} false; then : 19843 $as_echo_n "(cached) " >&6 19844else 19845 ac_check_lib_save_LIBS=$LIBS 19846LIBS="-lresolv $LIBS" 19847cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19848/* end confdefs.h. */ 19849 19850/* Override any GCC internal prototype to avoid an error. 19851 Use char because int might match the return type of a GCC 19852 builtin and then its argument prototype would still apply. */ 19853#ifdef __cplusplus 19854extern "C" 19855#endif 19856char inet_aton (); 19857int 19858main () 19859{ 19860return inet_aton (); 19861 ; 19862 return 0; 19863} 19864_ACEOF 19865if ac_fn_c_try_link "$LINENO"; then : 19866 ac_cv_lib_resolv_inet_aton=yes 19867else 19868 ac_cv_lib_resolv_inet_aton=no 19869fi 19870rm -f core conftest.err conftest.$ac_objext \ 19871 conftest$ac_exeext conftest.$ac_ext 19872LIBS=$ac_check_lib_save_LIBS 19873fi 19874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 19875$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } 19876if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : 19877 cat >>confdefs.h <<_ACEOF 19878#define HAVE_LIBRESOLV 1 19879_ACEOF 19880 19881 LIBS="-lresolv $LIBS" 19882 19883fi 19884 19885 19886GETADDRINFOOBJS="" 19887sasl_cv_getaddrinfo=yes 19888 19889ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 19890if test "x$ac_cv_func_getaddrinfo" = xyes; then : 19891 ac_cv_lib_socket_getaddrinfo=no 19892 ac_cv_lib_inet6_getaddrinfo=no 19893 19894else 19895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5 19896$as_echo_n "checking for getaddrinfo in -lsocket... " >&6; } 19897if ${ac_cv_lib_socket_getaddrinfo+:} false; then : 19898 $as_echo_n "(cached) " >&6 19899else 19900 ac_check_lib_save_LIBS=$LIBS 19901LIBS="-lsocket $LIBS" 19902cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19903/* end confdefs.h. */ 19904 19905/* Override any GCC internal prototype to avoid an error. 19906 Use char because int might match the return type of a GCC 19907 builtin and then its argument prototype would still apply. */ 19908#ifdef __cplusplus 19909extern "C" 19910#endif 19911char getaddrinfo (); 19912int 19913main () 19914{ 19915return getaddrinfo (); 19916 ; 19917 return 0; 19918} 19919_ACEOF 19920if ac_fn_c_try_link "$LINENO"; then : 19921 ac_cv_lib_socket_getaddrinfo=yes 19922else 19923 ac_cv_lib_socket_getaddrinfo=no 19924fi 19925rm -f core conftest.err conftest.$ac_objext \ 19926 conftest$ac_exeext conftest.$ac_ext 19927LIBS=$ac_check_lib_save_LIBS 19928fi 19929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5 19930$as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; } 19931if test "x$ac_cv_lib_socket_getaddrinfo" = xyes; then : 19932 LIBS="$LIBS -lsocket" 19933 ac_cv_lib_inet6_getaddrinfo=no 19934 19935else 19936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5 19937$as_echo_n "checking whether your system has IPv6 directory... " >&6; } 19938 if ${ipv6_cv_dir+:} false; then : 19939 $as_echo_n "(cached) " >&6 19940else 19941 for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do 19942 if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then 19943 break 19944 fi 19945 done 19946fi 19947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5 19948$as_echo "$ipv6_cv_dir" >&6; } 19949 if test $ipv6_cv_dir = no; then 19950 ac_cv_lib_inet6_getaddrinfo=no 19951 else 19952 if test x$ipv6_libinet6 = x; then 19953 ipv6_libinet6=no 19954 SAVELDFLAGS="$LDFLAGS" 19955 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib" 19956 fi 19957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -linet6" >&5 19958$as_echo_n "checking for getaddrinfo in -linet6... " >&6; } 19959if ${ac_cv_lib_inet6_getaddrinfo+:} false; then : 19960 $as_echo_n "(cached) " >&6 19961else 19962 ac_check_lib_save_LIBS=$LIBS 19963LIBS="-linet6 $LIBS" 19964cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19965/* end confdefs.h. */ 19966 19967/* Override any GCC internal prototype to avoid an error. 19968 Use char because int might match the return type of a GCC 19969 builtin and then its argument prototype would still apply. */ 19970#ifdef __cplusplus 19971extern "C" 19972#endif 19973char getaddrinfo (); 19974int 19975main () 19976{ 19977return getaddrinfo (); 19978 ; 19979 return 0; 19980} 19981_ACEOF 19982if ac_fn_c_try_link "$LINENO"; then : 19983 ac_cv_lib_inet6_getaddrinfo=yes 19984else 19985 ac_cv_lib_inet6_getaddrinfo=no 19986fi 19987rm -f core conftest.err conftest.$ac_objext \ 19988 conftest$ac_exeext conftest.$ac_ext 19989LIBS=$ac_check_lib_save_LIBS 19990fi 19991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getaddrinfo" >&5 19992$as_echo "$ac_cv_lib_inet6_getaddrinfo" >&6; } 19993if test "x$ac_cv_lib_inet6_getaddrinfo" = xyes; then : 19994 if test $ipv6_libinet6 = no; then 19995 ipv6_libinet6=yes 19996 LIBS="$LIBS -linet6" 19997 fi 19998fi 19999 if test $ipv6_libinet6 = no; then 20000 LDFLAGS="$SAVELDFLAGS" 20001 fi 20002 fi 20003fi 20004 20005fi 20006ipv6_cv_getaddrinfo=no 20007if test $ac_cv_func_getaddrinfo = yes -o $ac_cv_lib_socket_getaddrinfo = yes \ 20008 -o $ac_cv_lib_inet6_getaddrinfo = yes 20009then 20010 ipv6_cv_getaddrinfo=yes 20011fi 20012if test $ipv6_cv_getaddrinfo = no; then 20013 if test getaddrinfo = getaddrinfo; then 20014 for ipv6_cv_pfx in o n; do 20015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20016/* end confdefs.h. */ 20017#include <netdb.h> 20018 20019_ACEOF 20020if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20021 $EGREP "${ipv6_cv_pfx}getaddrinfo" >/dev/null 2>&1; then : 20022 as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}getaddrinfo" | $as_tr_sh` 20023ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}getaddrinfo" "$as_ac_var" 20024if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20025 20026fi 20027 20028fi 20029rm -f conftest* 20030 20031 if eval test X\$ac_cv_func_${ipv6_cv_pfx}getaddrinfo = Xyes; then 20032 20033$as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h 20034 20035 ipv6_cv_getaddrinfo=yes 20036 break 20037 fi 20038 done 20039 fi 20040fi 20041if test $ipv6_cv_getaddrinfo = yes; then 20042 20043ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror" 20044if test "x$ac_cv_func_gai_strerror" = xyes; then : 20045 ac_cv_lib_socket_gai_strerror=no 20046 ac_cv_lib_inet6_gai_strerror=no 20047 20048else 20049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror in -lsocket" >&5 20050$as_echo_n "checking for gai_strerror in -lsocket... " >&6; } 20051if ${ac_cv_lib_socket_gai_strerror+:} false; then : 20052 $as_echo_n "(cached) " >&6 20053else 20054 ac_check_lib_save_LIBS=$LIBS 20055LIBS="-lsocket $LIBS" 20056cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20057/* end confdefs.h. */ 20058 20059/* Override any GCC internal prototype to avoid an error. 20060 Use char because int might match the return type of a GCC 20061 builtin and then its argument prototype would still apply. */ 20062#ifdef __cplusplus 20063extern "C" 20064#endif 20065char gai_strerror (); 20066int 20067main () 20068{ 20069return gai_strerror (); 20070 ; 20071 return 0; 20072} 20073_ACEOF 20074if ac_fn_c_try_link "$LINENO"; then : 20075 ac_cv_lib_socket_gai_strerror=yes 20076else 20077 ac_cv_lib_socket_gai_strerror=no 20078fi 20079rm -f core conftest.err conftest.$ac_objext \ 20080 conftest$ac_exeext conftest.$ac_ext 20081LIBS=$ac_check_lib_save_LIBS 20082fi 20083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gai_strerror" >&5 20084$as_echo "$ac_cv_lib_socket_gai_strerror" >&6; } 20085if test "x$ac_cv_lib_socket_gai_strerror" = xyes; then : 20086 LIBS="$LIBS -lsocket" 20087 ac_cv_lib_inet6_gai_strerror=no 20088 20089else 20090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5 20091$as_echo_n "checking whether your system has IPv6 directory... " >&6; } 20092 if ${ipv6_cv_dir+:} false; then : 20093 $as_echo_n "(cached) " >&6 20094else 20095 for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do 20096 if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then 20097 break 20098 fi 20099 done 20100fi 20101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5 20102$as_echo "$ipv6_cv_dir" >&6; } 20103 if test $ipv6_cv_dir = no; then 20104 ac_cv_lib_inet6_gai_strerror=no 20105 else 20106 if test x$ipv6_libinet6 = x; then 20107 ipv6_libinet6=no 20108 SAVELDFLAGS="$LDFLAGS" 20109 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib" 20110 fi 20111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror in -linet6" >&5 20112$as_echo_n "checking for gai_strerror in -linet6... " >&6; } 20113if ${ac_cv_lib_inet6_gai_strerror+:} false; then : 20114 $as_echo_n "(cached) " >&6 20115else 20116 ac_check_lib_save_LIBS=$LIBS 20117LIBS="-linet6 $LIBS" 20118cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20119/* end confdefs.h. */ 20120 20121/* Override any GCC internal prototype to avoid an error. 20122 Use char because int might match the return type of a GCC 20123 builtin and then its argument prototype would still apply. */ 20124#ifdef __cplusplus 20125extern "C" 20126#endif 20127char gai_strerror (); 20128int 20129main () 20130{ 20131return gai_strerror (); 20132 ; 20133 return 0; 20134} 20135_ACEOF 20136if ac_fn_c_try_link "$LINENO"; then : 20137 ac_cv_lib_inet6_gai_strerror=yes 20138else 20139 ac_cv_lib_inet6_gai_strerror=no 20140fi 20141rm -f core conftest.err conftest.$ac_objext \ 20142 conftest$ac_exeext conftest.$ac_ext 20143LIBS=$ac_check_lib_save_LIBS 20144fi 20145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_gai_strerror" >&5 20146$as_echo "$ac_cv_lib_inet6_gai_strerror" >&6; } 20147if test "x$ac_cv_lib_inet6_gai_strerror" = xyes; then : 20148 if test $ipv6_libinet6 = no; then 20149 ipv6_libinet6=yes 20150 LIBS="$LIBS -linet6" 20151 fi 20152fi 20153 if test $ipv6_libinet6 = no; then 20154 LDFLAGS="$SAVELDFLAGS" 20155 fi 20156 fi 20157fi 20158 20159fi 20160ipv6_cv_gai_strerror=no 20161if test $ac_cv_func_gai_strerror = yes -o $ac_cv_lib_socket_gai_strerror = yes \ 20162 -o $ac_cv_lib_inet6_gai_strerror = yes 20163then 20164 ipv6_cv_gai_strerror=yes 20165fi 20166if test $ipv6_cv_gai_strerror = no; then 20167 if test gai_strerror = getaddrinfo; then 20168 for ipv6_cv_pfx in o n; do 20169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20170/* end confdefs.h. */ 20171#include <netdb.h> 20172 20173_ACEOF 20174if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20175 $EGREP "${ipv6_cv_pfx}gai_strerror" >/dev/null 2>&1; then : 20176 as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}gai_strerror" | $as_tr_sh` 20177ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}gai_strerror" "$as_ac_var" 20178if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20179 20180fi 20181 20182fi 20183rm -f conftest* 20184 20185 if eval test X\$ac_cv_func_${ipv6_cv_pfx}gai_strerror = Xyes; then 20186 20187$as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h 20188 20189 ipv6_cv_gai_strerror=yes 20190 break 20191 fi 20192 done 20193 fi 20194fi 20195if test $ipv6_cv_gai_strerror = yes; then 20196 20197$as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h 20198 20199 sasl_cv_getaddrinfo=no 20200else 20201 : 20202fi 20203else 20204 : 20205fi 20206if test $sasl_cv_getaddrinfo = yes; then 20207 case " $LIBOBJS " in 20208 *" getaddrinfo.$ac_objext "* ) ;; 20209 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" 20210 ;; 20211esac 20212 20213 GETADDRINFOOBJS="getaddrinfo.o" 20214 LTGETADDRINFOOBJS="getaddrinfo.lo" 20215fi 20216 20217 20218 20219GETNAMEINFOOBJS="" 20220sasl_cv_getnameinfo=no 20221 20222ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" 20223if test "x$ac_cv_func_getnameinfo" = xyes; then : 20224 ac_cv_lib_socket_getnameinfo=no 20225 ac_cv_lib_inet6_getnameinfo=no 20226 20227else 20228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -lsocket" >&5 20229$as_echo_n "checking for getnameinfo in -lsocket... " >&6; } 20230if ${ac_cv_lib_socket_getnameinfo+:} false; then : 20231 $as_echo_n "(cached) " >&6 20232else 20233 ac_check_lib_save_LIBS=$LIBS 20234LIBS="-lsocket $LIBS" 20235cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20236/* end confdefs.h. */ 20237 20238/* Override any GCC internal prototype to avoid an error. 20239 Use char because int might match the return type of a GCC 20240 builtin and then its argument prototype would still apply. */ 20241#ifdef __cplusplus 20242extern "C" 20243#endif 20244char getnameinfo (); 20245int 20246main () 20247{ 20248return getnameinfo (); 20249 ; 20250 return 0; 20251} 20252_ACEOF 20253if ac_fn_c_try_link "$LINENO"; then : 20254 ac_cv_lib_socket_getnameinfo=yes 20255else 20256 ac_cv_lib_socket_getnameinfo=no 20257fi 20258rm -f core conftest.err conftest.$ac_objext \ 20259 conftest$ac_exeext conftest.$ac_ext 20260LIBS=$ac_check_lib_save_LIBS 20261fi 20262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getnameinfo" >&5 20263$as_echo "$ac_cv_lib_socket_getnameinfo" >&6; } 20264if test "x$ac_cv_lib_socket_getnameinfo" = xyes; then : 20265 LIBS="$LIBS -lsocket" 20266 ac_cv_lib_inet6_getnameinfo=no 20267 20268else 20269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5 20270$as_echo_n "checking whether your system has IPv6 directory... " >&6; } 20271 if ${ipv6_cv_dir+:} false; then : 20272 $as_echo_n "(cached) " >&6 20273else 20274 for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do 20275 if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then 20276 break 20277 fi 20278 done 20279fi 20280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5 20281$as_echo "$ipv6_cv_dir" >&6; } 20282 if test $ipv6_cv_dir = no; then 20283 ac_cv_lib_inet6_getnameinfo=no 20284 else 20285 if test x$ipv6_libinet6 = x; then 20286 ipv6_libinet6=no 20287 SAVELDFLAGS="$LDFLAGS" 20288 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib" 20289 fi 20290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -linet6" >&5 20291$as_echo_n "checking for getnameinfo in -linet6... " >&6; } 20292if ${ac_cv_lib_inet6_getnameinfo+:} false; then : 20293 $as_echo_n "(cached) " >&6 20294else 20295 ac_check_lib_save_LIBS=$LIBS 20296LIBS="-linet6 $LIBS" 20297cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20298/* end confdefs.h. */ 20299 20300/* Override any GCC internal prototype to avoid an error. 20301 Use char because int might match the return type of a GCC 20302 builtin and then its argument prototype would still apply. */ 20303#ifdef __cplusplus 20304extern "C" 20305#endif 20306char getnameinfo (); 20307int 20308main () 20309{ 20310return getnameinfo (); 20311 ; 20312 return 0; 20313} 20314_ACEOF 20315if ac_fn_c_try_link "$LINENO"; then : 20316 ac_cv_lib_inet6_getnameinfo=yes 20317else 20318 ac_cv_lib_inet6_getnameinfo=no 20319fi 20320rm -f core conftest.err conftest.$ac_objext \ 20321 conftest$ac_exeext conftest.$ac_ext 20322LIBS=$ac_check_lib_save_LIBS 20323fi 20324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getnameinfo" >&5 20325$as_echo "$ac_cv_lib_inet6_getnameinfo" >&6; } 20326if test "x$ac_cv_lib_inet6_getnameinfo" = xyes; then : 20327 if test $ipv6_libinet6 = no; then 20328 ipv6_libinet6=yes 20329 LIBS="$LIBS -linet6" 20330 fi 20331fi 20332 if test $ipv6_libinet6 = no; then 20333 LDFLAGS="$SAVELDFLAGS" 20334 fi 20335 fi 20336fi 20337 20338fi 20339ipv6_cv_getnameinfo=no 20340if test $ac_cv_func_getnameinfo = yes -o $ac_cv_lib_socket_getnameinfo = yes \ 20341 -o $ac_cv_lib_inet6_getnameinfo = yes 20342then 20343 ipv6_cv_getnameinfo=yes 20344fi 20345if test $ipv6_cv_getnameinfo = no; then 20346 if test getnameinfo = getaddrinfo; then 20347 for ipv6_cv_pfx in o n; do 20348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20349/* end confdefs.h. */ 20350#include <netdb.h> 20351 20352_ACEOF 20353if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20354 $EGREP "${ipv6_cv_pfx}getnameinfo" >/dev/null 2>&1; then : 20355 as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}getnameinfo" | $as_tr_sh` 20356ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}getnameinfo" "$as_ac_var" 20357if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20358 20359fi 20360 20361fi 20362rm -f conftest* 20363 20364 if eval test X\$ac_cv_func_${ipv6_cv_pfx}getnameinfo = Xyes; then 20365 20366$as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h 20367 20368 ipv6_cv_getnameinfo=yes 20369 break 20370 fi 20371 done 20372 fi 20373fi 20374if test $ipv6_cv_getnameinfo = yes; then 20375 20376$as_echo "#define HAVE_GETNAMEINFO /**/" >>confdefs.h 20377 20378else 20379 sasl_cv_getnameinfo=yes 20380fi 20381if test $sasl_cv_getnameinfo = yes; then 20382 case " $LIBOBJS " in 20383 *" getnameinfo.$ac_objext "* ) ;; 20384 *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext" 20385 ;; 20386esac 20387 20388 GETNAMEINFOOBJS="getnameinfo.o" 20389 LTGETNAMEINFOOBJS="getnameinfo.lo" 20390fi 20391 20392 20393 20394LTLIBOBJS=`echo "$LIBOBJS" | sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'` 20395 if test "$LTLIBOBJS" != ""; then 20396 BUILD_LIBOBJ_TRUE= 20397 BUILD_LIBOBJ_FALSE='#' 20398else 20399 BUILD_LIBOBJ_TRUE='#' 20400 BUILD_LIBOBJ_FALSE= 20401fi 20402 20403 20404 20405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 20406$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 20407if ${ac_cv_c_const+:} false; then : 20408 $as_echo_n "(cached) " >&6 20409else 20410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20411/* end confdefs.h. */ 20412 20413int 20414main () 20415{ 20416 20417#ifndef __cplusplus 20418 /* Ultrix mips cc rejects this sort of thing. */ 20419 typedef int charset[2]; 20420 const charset cs = { 0, 0 }; 20421 /* SunOS 4.1.1 cc rejects this. */ 20422 char const *const *pcpcc; 20423 char **ppc; 20424 /* NEC SVR4.0.2 mips cc rejects this. */ 20425 struct point {int x, y;}; 20426 static struct point const zero = {0,0}; 20427 /* AIX XL C 1.02.0.0 rejects this. 20428 It does not let you subtract one const X* pointer from another in 20429 an arm of an if-expression whose if-part is not a constant 20430 expression */ 20431 const char *g = "string"; 20432 pcpcc = &g + (g ? g-g : 0); 20433 /* HPUX 7.0 cc rejects these. */ 20434 ++pcpcc; 20435 ppc = (char**) pcpcc; 20436 pcpcc = (char const *const *) ppc; 20437 { /* SCO 3.2v4 cc rejects this sort of thing. */ 20438 char tx; 20439 char *t = &tx; 20440 char const *s = 0 ? (char *) 0 : (char const *) 0; 20441 20442 *t++ = 0; 20443 if (s) return 0; 20444 } 20445 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20446 int x[] = {25, 17}; 20447 const int *foo = &x[0]; 20448 ++foo; 20449 } 20450 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20451 typedef const int *iptr; 20452 iptr p = 0; 20453 ++p; 20454 } 20455 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 20456 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20457 struct s { int j; const int *ap[3]; } bx; 20458 struct s *b = &bx; b->j = 5; 20459 } 20460 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20461 const int foo = 10; 20462 if (!foo) return 0; 20463 } 20464 return !cs[0] && !zero.x; 20465#endif 20466 20467 ; 20468 return 0; 20469} 20470_ACEOF 20471if ac_fn_c_try_compile "$LINENO"; then : 20472 ac_cv_c_const=yes 20473else 20474 ac_cv_c_const=no 20475fi 20476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20477fi 20478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 20479$as_echo "$ac_cv_c_const" >&6; } 20480if test $ac_cv_c_const = no; then 20481 20482$as_echo "#define const /**/" >>confdefs.h 20483 20484fi 20485 20486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 20487$as_echo_n "checking for inline... " >&6; } 20488if ${ac_cv_c_inline+:} false; then : 20489 $as_echo_n "(cached) " >&6 20490else 20491 ac_cv_c_inline=no 20492for ac_kw in inline __inline__ __inline; do 20493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20494/* end confdefs.h. */ 20495#ifndef __cplusplus 20496typedef int foo_t; 20497static $ac_kw foo_t static_foo () {return 0; } 20498$ac_kw foo_t foo () {return 0; } 20499#endif 20500 20501_ACEOF 20502if ac_fn_c_try_compile "$LINENO"; then : 20503 ac_cv_c_inline=$ac_kw 20504fi 20505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20506 test "$ac_cv_c_inline" != no && break 20507done 20508 20509fi 20510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 20511$as_echo "$ac_cv_c_inline" >&6; } 20512 20513case $ac_cv_c_inline in 20514 inline | yes) ;; 20515 *) 20516 case $ac_cv_c_inline in 20517 no) ac_val=;; 20518 *) ac_val=$ac_cv_c_inline;; 20519 esac 20520 cat >>confdefs.h <<_ACEOF 20521#ifndef __cplusplus 20522#define inline $ac_val 20523#endif 20524_ACEOF 20525 ;; 20526esac 20527 20528ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 20529if test "x$ac_cv_type_mode_t" = xyes; then : 20530 20531else 20532 20533cat >>confdefs.h <<_ACEOF 20534#define mode_t int 20535_ACEOF 20536 20537fi 20538 20539ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 20540if test "x$ac_cv_type_pid_t" = xyes; then : 20541 20542else 20543 20544cat >>confdefs.h <<_ACEOF 20545#define pid_t int 20546_ACEOF 20547 20548fi 20549 20550 20551 20552 20553 20554 for ac_header in $ac_header_list 20555do : 20556 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20557ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 20558" 20559if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20560 cat >>confdefs.h <<_ACEOF 20561#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20562_ACEOF 20563 20564fi 20565 20566done 20567 20568 20569 20570 20571 20572ac_header_dirent=no 20573for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 20574 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 20575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 20576$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 20577if eval \${$as_ac_Header+:} false; then : 20578 $as_echo_n "(cached) " >&6 20579else 20580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20581/* end confdefs.h. */ 20582#include <sys/types.h> 20583#include <$ac_hdr> 20584 20585int 20586main () 20587{ 20588if ((DIR *) 0) 20589return 0; 20590 ; 20591 return 0; 20592} 20593_ACEOF 20594if ac_fn_c_try_compile "$LINENO"; then : 20595 eval "$as_ac_Header=yes" 20596else 20597 eval "$as_ac_Header=no" 20598fi 20599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20600fi 20601eval ac_res=\$$as_ac_Header 20602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 20603$as_echo "$ac_res" >&6; } 20604if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20605 cat >>confdefs.h <<_ACEOF 20606#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 20607_ACEOF 20608 20609ac_header_dirent=$ac_hdr; break 20610fi 20611 20612done 20613# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 20614if test $ac_header_dirent = dirent.h; then 20615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 20616$as_echo_n "checking for library containing opendir... " >&6; } 20617if ${ac_cv_search_opendir+:} false; then : 20618 $as_echo_n "(cached) " >&6 20619else 20620 ac_func_search_save_LIBS=$LIBS 20621cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20622/* end confdefs.h. */ 20623 20624/* Override any GCC internal prototype to avoid an error. 20625 Use char because int might match the return type of a GCC 20626 builtin and then its argument prototype would still apply. */ 20627#ifdef __cplusplus 20628extern "C" 20629#endif 20630char opendir (); 20631int 20632main () 20633{ 20634return opendir (); 20635 ; 20636 return 0; 20637} 20638_ACEOF 20639for ac_lib in '' dir; do 20640 if test -z "$ac_lib"; then 20641 ac_res="none required" 20642 else 20643 ac_res=-l$ac_lib 20644 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20645 fi 20646 if ac_fn_c_try_link "$LINENO"; then : 20647 ac_cv_search_opendir=$ac_res 20648fi 20649rm -f core conftest.err conftest.$ac_objext \ 20650 conftest$ac_exeext 20651 if ${ac_cv_search_opendir+:} false; then : 20652 break 20653fi 20654done 20655if ${ac_cv_search_opendir+:} false; then : 20656 20657else 20658 ac_cv_search_opendir=no 20659fi 20660rm conftest.$ac_ext 20661LIBS=$ac_func_search_save_LIBS 20662fi 20663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 20664$as_echo "$ac_cv_search_opendir" >&6; } 20665ac_res=$ac_cv_search_opendir 20666if test "$ac_res" != no; then : 20667 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20668 20669fi 20670 20671else 20672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 20673$as_echo_n "checking for library containing opendir... " >&6; } 20674if ${ac_cv_search_opendir+:} false; then : 20675 $as_echo_n "(cached) " >&6 20676else 20677 ac_func_search_save_LIBS=$LIBS 20678cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20679/* end confdefs.h. */ 20680 20681/* Override any GCC internal prototype to avoid an error. 20682 Use char because int might match the return type of a GCC 20683 builtin and then its argument prototype would still apply. */ 20684#ifdef __cplusplus 20685extern "C" 20686#endif 20687char opendir (); 20688int 20689main () 20690{ 20691return opendir (); 20692 ; 20693 return 0; 20694} 20695_ACEOF 20696for ac_lib in '' x; do 20697 if test -z "$ac_lib"; then 20698 ac_res="none required" 20699 else 20700 ac_res=-l$ac_lib 20701 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20702 fi 20703 if ac_fn_c_try_link "$LINENO"; then : 20704 ac_cv_search_opendir=$ac_res 20705fi 20706rm -f core conftest.err conftest.$ac_objext \ 20707 conftest$ac_exeext 20708 if ${ac_cv_search_opendir+:} false; then : 20709 break 20710fi 20711done 20712if ${ac_cv_search_opendir+:} false; then : 20713 20714else 20715 ac_cv_search_opendir=no 20716fi 20717rm conftest.$ac_ext 20718LIBS=$ac_func_search_save_LIBS 20719fi 20720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 20721$as_echo "$ac_cv_search_opendir" >&6; } 20722ac_res=$ac_cv_search_opendir 20723if test "$ac_res" != no; then : 20724 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20725 20726fi 20727 20728fi 20729 20730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 20731$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 20732if ${ac_cv_header_sys_wait_h+:} false; then : 20733 $as_echo_n "(cached) " >&6 20734else 20735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20736/* end confdefs.h. */ 20737#include <sys/types.h> 20738#include <sys/wait.h> 20739#ifndef WEXITSTATUS 20740# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 20741#endif 20742#ifndef WIFEXITED 20743# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 20744#endif 20745 20746int 20747main () 20748{ 20749 int s; 20750 wait (&s); 20751 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 20752 ; 20753 return 0; 20754} 20755_ACEOF 20756if ac_fn_c_try_compile "$LINENO"; then : 20757 ac_cv_header_sys_wait_h=yes 20758else 20759 ac_cv_header_sys_wait_h=no 20760fi 20761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20762fi 20763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 20764$as_echo "$ac_cv_header_sys_wait_h" >&6; } 20765if test $ac_cv_header_sys_wait_h = yes; then 20766 20767$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 20768 20769fi 20770 20771for ac_header in crypt.h des.h dlfcn.h fcntl.h limits.h malloc.h paths.h strings.h sys/file.h sys/time.h syslog.h unistd.h inttypes.h sys/uio.h sys/param.h sysexits.h stdarg.h varargs.h krb5.h 20772do : 20773 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20774ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20775if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20776 cat >>confdefs.h <<_ACEOF 20777#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20778_ACEOF 20779 20780fi 20781 20782done 20783 20784 20785 20786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you have ss_family in struct sockaddr_storage" >&5 20787$as_echo_n "checking whether you have ss_family in struct sockaddr_storage... " >&6; } 20788if ${ipv6_cv_ss_family+:} false; then : 20789 $as_echo_n "(cached) " >&6 20790else 20791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20792/* end confdefs.h. */ 20793#include <sys/types.h> 20794#include <sys/socket.h> 20795int 20796main () 20797{ 20798struct sockaddr_storage ss; int i = ss.ss_family; 20799 ; 20800 return 0; 20801} 20802_ACEOF 20803if ac_fn_c_try_compile "$LINENO"; then : 20804 ipv6_cv_ss_family=yes 20805else 20806 ipv6_cv_ss_family=no 20807fi 20808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20809fi 20810if test $ipv6_cv_ss_family = yes; then 20811 20812$as_echo "#define HAVE_SS_FAMILY /**/" >>confdefs.h 20813 20814else 20815 : 20816fi 20817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_ss_family" >&5 20818$as_echo "$ipv6_cv_ss_family" >&6; } 20819 20820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you have sa_len in struct sockaddr" >&5 20821$as_echo_n "checking whether you have sa_len in struct sockaddr... " >&6; } 20822if ${ipv6_cv_sa_len+:} false; then : 20823 $as_echo_n "(cached) " >&6 20824else 20825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20826/* end confdefs.h. */ 20827#include <sys/types.h> 20828#include <sys/socket.h> 20829int 20830main () 20831{ 20832struct sockaddr sa; int i = sa.sa_len; 20833 ; 20834 return 0; 20835} 20836_ACEOF 20837if ac_fn_c_try_compile "$LINENO"; then : 20838 ipv6_cv_sa_len=yes 20839else 20840 ipv6_cv_sa_len=no 20841fi 20842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20843fi 20844if test $ipv6_cv_sa_len = yes; then 20845 20846$as_echo "#define HAVE_SOCKADDR_SA_LEN /**/" >>confdefs.h 20847 20848else 20849 : 20850fi 20851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_sa_len" >&5 20852$as_echo "$ipv6_cv_sa_len" >&6; } 20853 20854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 20855$as_echo_n "checking for socklen_t... " >&6; } 20856if ${ipv6_cv_socklen_t+:} false; then : 20857 $as_echo_n "(cached) " >&6 20858else 20859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20860/* end confdefs.h. */ 20861#include <sys/types.h> 20862#include <sys/socket.h> 20863int 20864main () 20865{ 20866socklen_t len = 0; 20867 ; 20868 return 0; 20869} 20870_ACEOF 20871if ac_fn_c_try_link "$LINENO"; then : 20872 ipv6_cv_socklen_t=yes 20873else 20874 ipv6_cv_socklen_t=no 20875fi 20876rm -f core conftest.err conftest.$ac_objext \ 20877 conftest$ac_exeext conftest.$ac_ext 20878fi 20879if test $ipv6_cv_socklen_t = yes; then 20880 20881$as_echo "#define HAVE_SOCKLEN_T /**/" >>confdefs.h 20882 20883else 20884 : 20885fi 20886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_socklen_t" >&5 20887$as_echo "$ipv6_cv_socklen_t" >&6; } 20888 20889#AC_FUNC_MEMCMP 20890#AC_FUNC_VPRINTF 20891for ac_func in gethostname getdomainname getpwnam getspnam gettimeofday inet_aton memcpy memmem mkdir select socket strchr strdup strerror strspn strstr strtol jrand48 getpassphrase asprintf strlcat strlcpy 20892do : 20893 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20894ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20895if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20896 cat >>confdefs.h <<_ACEOF 20897#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20898_ACEOF 20899 20900fi 20901done 20902 20903 20904if test $ac_cv_func_getspnam = yes; then 20905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpwnam_r/getspnam_r take 5 arguments" >&5 20906$as_echo_n "checking if getpwnam_r/getspnam_r take 5 arguments... " >&6; } 20907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20908/* end confdefs.h. */ 20909 20910#include <sys/types.h> 20911#include <pwd.h> 20912#include <shadow.h> 20913 20914int 20915main () 20916{ 20917 20918struct passwd *pw; 20919struct passwd pwbuf; 20920char pwdata[512]; 20921(void) getpwnam_r("bin", &pwbuf, pwdata, sizeof(pwdata), &pw); 20922 20923 ; 20924 return 0; 20925} 20926_ACEOF 20927if ac_fn_c_try_compile "$LINENO"; then : 20928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20929$as_echo "yes" >&6; } 20930 20931$as_echo "#define GETXXNAM_R_5ARG 1" >>confdefs.h 20932 20933else 20934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20935$as_echo "no" >&6; } 20936 20937fi 20938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20939fi 20940 20941if test $enable_cmulocal = yes; then 20942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling CMU local kludges" >&5 20943$as_echo "$as_me: WARNING: enabling CMU local kludges" >&2;} 20944 20945$as_echo "#define KRB4_IGNORE_IP_ADDRESS /**/" >>confdefs.h 20946 20947 20948cat >>confdefs.h <<_ACEOF 20949#define PREFER_MECH "KERBEROS_V4" 20950_ACEOF 20951 20952fi 20953 20954cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20955/* end confdefs.h. */ 20956#include <sys/socket.h> 20957 20958_ACEOF 20959if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20960 $EGREP "sockaddr_storage" >/dev/null 2>&1; then : 20961 20962 20963$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE /**/" >>confdefs.h 20964 20965fi 20966rm -f conftest* 20967 20968 20969 20970 20971 20972 20973# Check whether --with-sphinx-build was given. 20974if test "${with_sphinx_build+set}" = set; then : 20975 withval=$with_sphinx_build; with_sphinx_build=$withval 20976else 20977 with_sphinx_build=yes 20978fi 20979 20980case $with_sphinx_build in #( 20981 yes) : 20982 # Extract the first word of "sphinx-build", so it can be a program name with args. 20983set dummy sphinx-build; ac_word=$2 20984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20985$as_echo_n "checking for $ac_word... " >&6; } 20986if ${ac_cv_path_SPHINX_BUILD+:} false; then : 20987 $as_echo_n "(cached) " >&6 20988else 20989 case $SPHINX_BUILD in 20990 [\\/]* | ?:[\\/]*) 20991 ac_cv_path_SPHINX_BUILD="$SPHINX_BUILD" # Let the user override the test with a path. 20992 ;; 20993 *) 20994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20995for as_dir in $PATH 20996do 20997 IFS=$as_save_IFS 20998 test -z "$as_dir" && as_dir=. 20999 for ac_exec_ext in '' $ac_executable_extensions; do 21000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21001 ac_cv_path_SPHINX_BUILD="$as_dir/$ac_word$ac_exec_ext" 21002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21003 break 2 21004 fi 21005done 21006 done 21007IFS=$as_save_IFS 21008 21009 ;; 21010esac 21011fi 21012SPHINX_BUILD=$ac_cv_path_SPHINX_BUILD 21013if test -n "$SPHINX_BUILD"; then 21014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPHINX_BUILD" >&5 21015$as_echo "$SPHINX_BUILD" >&6; } 21016else 21017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21018$as_echo "no" >&6; } 21019fi 21020 21021 ;; #( 21022 no) : 21023 SPHINX_BUILD='' ;; #( 21024 *) : 21025 # Extract the first word of "sphinx-build", so it can be a program name with args. 21026set dummy sphinx-build; ac_word=$2 21027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21028$as_echo_n "checking for $ac_word... " >&6; } 21029if ${ac_cv_path_SPHINX_BUILD+:} false; then : 21030 $as_echo_n "(cached) " >&6 21031else 21032 case $SPHINX_BUILD in 21033 [\\/]* | ?:[\\/]*) 21034 ac_cv_path_SPHINX_BUILD="$SPHINX_BUILD" # Let the user override the test with a path. 21035 ;; 21036 *) 21037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21038for as_dir in $with_sphinx_build 21039do 21040 IFS=$as_save_IFS 21041 test -z "$as_dir" && as_dir=. 21042 for ac_exec_ext in '' $ac_executable_extensions; do 21043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21044 ac_cv_path_SPHINX_BUILD="$as_dir/$ac_word$ac_exec_ext" 21045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21046 break 2 21047 fi 21048done 21049 done 21050IFS=$as_save_IFS 21051 21052 ;; 21053esac 21054fi 21055SPHINX_BUILD=$ac_cv_path_SPHINX_BUILD 21056if test -n "$SPHINX_BUILD"; then 21057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPHINX_BUILD" >&5 21058$as_echo "$SPHINX_BUILD" >&6; } 21059else 21060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21061$as_echo "no" >&6; } 21062fi 21063 21064 ;; #( 21065 *) : 21066 ;; 21067esac 21068if test -z "$SPHINX_BUILD"; then : 21069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No sphinx-build, won't be able to regenerate docs" >&5 21070$as_echo "$as_me: WARNING: No sphinx-build, won't be able to regenerate docs" >&2;} 21071fi 21072 21073 21074 21075 21076 21077 21078 21079# Make sure we have perl 21080if test -z "$PERL"; then 21081# Extract the first word of "perl", so it can be a program name with args. 21082set dummy perl; ac_word=$2 21083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21084$as_echo_n "checking for $ac_word... " >&6; } 21085if ${ac_cv_prog_PERL+:} false; then : 21086 $as_echo_n "(cached) " >&6 21087else 21088 if test -n "$PERL"; then 21089 ac_cv_prog_PERL="$PERL" # Let the user override the test. 21090else 21091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21092for as_dir in $PATH 21093do 21094 IFS=$as_save_IFS 21095 test -z "$as_dir" && as_dir=. 21096 for ac_exec_ext in '' $ac_executable_extensions; do 21097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21098 ac_cv_prog_PERL="perl" 21099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21100 break 2 21101 fi 21102done 21103 done 21104IFS=$as_save_IFS 21105 21106fi 21107fi 21108PERL=$ac_cv_prog_PERL 21109if test -n "$PERL"; then 21110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 21111$as_echo "$PERL" >&6; } 21112else 21113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21114$as_echo "no" >&6; } 21115fi 21116 21117 21118fi 21119 21120if test "x$PERL" != x; then 21121 ax_perl_modules_failed=0 21122 for ax_perl_module in 'Pod::POM::View::Restructured' ; do 21123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl module $ax_perl_module" >&5 21124$as_echo_n "checking for perl module $ax_perl_module... " >&6; } 21125 21126 # Would be nice to log result here, but can't rely on autoconf internals 21127 $PERL -e "use $ax_perl_module; exit" > /dev/null 2>&1 21128 if test $? -ne 0; then 21129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21130$as_echo "no" >&6; }; 21131 ax_perl_modules_failed=1 21132 else 21133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 21134$as_echo "ok" >&6; }; 21135 fi 21136 done 21137 21138 # Run optional shell commands 21139 if test "$ax_perl_modules_failed" = 0; then 21140 : 21141 have_ppvr=yes 21142 else 21143 : 21144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Pod::POM::View::Restructured, won't be able to regenerate docs" >&5 21145$as_echo "$as_me: WARNING: No Pod::POM::View::Restructured, won't be able to regenerate docs" >&2;} 21146 fi 21147else 21148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5 21149$as_echo "$as_me: WARNING: could not find perl" >&2;} 21150fi 21151 if test -n "$SPHINX_BUILD" -a x"$have_ppvr" = xyes; then 21152 HAVE_SPHINX_BUILD_TRUE= 21153 HAVE_SPHINX_BUILD_FALSE='#' 21154else 21155 HAVE_SPHINX_BUILD_TRUE='#' 21156 HAVE_SPHINX_BUILD_FALSE= 21157fi 21158 21159 21160 21161 21162 21163 21164 21165 21166 21167ac_config_headers="$ac_config_headers config.h" 21168 21169 21170ac_config_files="$ac_config_files Makefile libsasl2.pc include/Makefile saslauthd/Makefile sasldb/Makefile common/Makefile plugins/Makefile lib/Makefile utils/Makefile sample/Makefile pwcheck/Makefile" 21171 21172cat >confcache <<\_ACEOF 21173# This file is a shell script that caches the results of configure 21174# tests run on this system so they can be shared between configure 21175# scripts and configure runs, see configure's option --config-cache. 21176# It is not useful on other systems. If it contains results you don't 21177# want to keep, you may remove or edit it. 21178# 21179# config.status only pays attention to the cache file if you give it 21180# the --recheck option to rerun configure. 21181# 21182# `ac_cv_env_foo' variables (set or unset) will be overridden when 21183# loading this file, other *unset* `ac_cv_foo' will be assigned the 21184# following values. 21185 21186_ACEOF 21187 21188# The following way of writing the cache mishandles newlines in values, 21189# but we know of no workaround that is simple, portable, and efficient. 21190# So, we kill variables containing newlines. 21191# Ultrix sh set writes to stderr and can't be redirected directly, 21192# and sets the high bit in the cache file unless we assign to the vars. 21193( 21194 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21195 eval ac_val=\$$ac_var 21196 case $ac_val in #( 21197 *${as_nl}*) 21198 case $ac_var in #( 21199 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21200$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21201 esac 21202 case $ac_var in #( 21203 _ | IFS | as_nl) ;; #( 21204 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21205 *) { eval $ac_var=; unset $ac_var;} ;; 21206 esac ;; 21207 esac 21208 done 21209 21210 (set) 2>&1 | 21211 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21212 *${as_nl}ac_space=\ *) 21213 # `set' does not quote correctly, so add quotes: double-quote 21214 # substitution turns \\\\ into \\, and sed turns \\ into \. 21215 sed -n \ 21216 "s/'/'\\\\''/g; 21217 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21218 ;; #( 21219 *) 21220 # `set' quotes correctly as required by POSIX, so do not add quotes. 21221 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21222 ;; 21223 esac | 21224 sort 21225) | 21226 sed ' 21227 /^ac_cv_env_/b end 21228 t clear 21229 :clear 21230 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21231 t end 21232 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21233 :end' >>confcache 21234if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21235 if test -w "$cache_file"; then 21236 if test "x$cache_file" != "x/dev/null"; then 21237 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21238$as_echo "$as_me: updating cache $cache_file" >&6;} 21239 if test ! -f "$cache_file" || test -h "$cache_file"; then 21240 cat confcache >"$cache_file" 21241 else 21242 case $cache_file in #( 21243 */* | ?:*) 21244 mv -f confcache "$cache_file"$$ && 21245 mv -f "$cache_file"$$ "$cache_file" ;; #( 21246 *) 21247 mv -f confcache "$cache_file" ;; 21248 esac 21249 fi 21250 fi 21251 else 21252 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21253$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21254 fi 21255fi 21256rm -f confcache 21257 21258test "x$prefix" = xNONE && prefix=$ac_default_prefix 21259# Let make expand exec_prefix. 21260test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21261 21262DEFS=-DHAVE_CONFIG_H 21263 21264ac_libobjs= 21265ac_ltlibobjs= 21266U= 21267for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21268 # 1. Remove the extension, and $U if already installed. 21269 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21270 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21271 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21272 # will be set to the directory where LIBOBJS objects are built. 21273 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21274 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21275done 21276LIBOBJS=$ac_libobjs 21277 21278LTLIBOBJS=$ac_ltlibobjs 21279 21280 21281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 21282$as_echo_n "checking that generated files are newer than configure... " >&6; } 21283 if test -n "$am_sleep_pid"; then 21284 # Hide warnings about reused PIDs. 21285 wait $am_sleep_pid 2>/dev/null 21286 fi 21287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 21288$as_echo "done" >&6; } 21289 if test -n "$EXEEXT"; then 21290 am__EXEEXT_TRUE= 21291 am__EXEEXT_FALSE='#' 21292else 21293 am__EXEEXT_TRUE='#' 21294 am__EXEEXT_FALSE= 21295fi 21296 21297if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21298 as_fn_error $? "conditional \"AMDEP\" was never defined. 21299Usually this means the macro was only invoked conditionally." "$LINENO" 5 21300fi 21301if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21302 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21303Usually this means the macro was only invoked conditionally." "$LINENO" 5 21304fi 21305if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21306 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21307Usually this means the macro was only invoked conditionally." "$LINENO" 5 21308fi 21309if test -z "${SAMPLE_TRUE}" && test -z "${SAMPLE_FALSE}"; then 21310 as_fn_error $? "conditional \"SAMPLE\" was never defined. 21311Usually this means the macro was only invoked conditionally." "$LINENO" 5 21312fi 21313if test -z "${NO_SASL_DB_MANS_TRUE}" && test -z "${NO_SASL_DB_MANS_FALSE}"; then 21314 as_fn_error $? "conditional \"NO_SASL_DB_MANS\" was never defined. 21315Usually this means the macro was only invoked conditionally." "$LINENO" 5 21316fi 21317if test -z "${SASLAUTHD_TRUE}" && test -z "${SASLAUTHD_FALSE}"; then 21318 as_fn_error $? "conditional \"SASLAUTHD\" was never defined. 21319Usually this means the macro was only invoked conditionally." "$LINENO" 5 21320fi 21321if test -z "${PWCHECK_TRUE}" && test -z "${PWCHECK_FALSE}"; then 21322 as_fn_error $? "conditional \"PWCHECK\" was never defined. 21323Usually this means the macro was only invoked conditionally." "$LINENO" 5 21324fi 21325if test -z "${AUTH_SASLDB_TRUE}" && test -z "${AUTH_SASLDB_FALSE}"; then 21326 as_fn_error $? "conditional \"AUTH_SASLDB\" was never defined. 21327Usually this means the macro was only invoked conditionally." "$LINENO" 5 21328fi 21329if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then 21330 as_fn_error $? "conditional \"MACOSX\" was never defined. 21331Usually this means the macro was only invoked conditionally." "$LINENO" 5 21332fi 21333if test -z "${WINDOWS_TRUE}" && test -z "${WINDOWS_FALSE}"; then 21334 as_fn_error $? "conditional \"WINDOWS\" was never defined. 21335Usually this means the macro was only invoked conditionally." "$LINENO" 5 21336fi 21337if test -z "${BUILD_LIBOBJ_TRUE}" && test -z "${BUILD_LIBOBJ_FALSE}"; then 21338 as_fn_error $? "conditional \"BUILD_LIBOBJ\" was never defined. 21339Usually this means the macro was only invoked conditionally." "$LINENO" 5 21340fi 21341if test -z "${HAVE_SPHINX_BUILD_TRUE}" && test -z "${HAVE_SPHINX_BUILD_FALSE}"; then 21342 as_fn_error $? "conditional \"HAVE_SPHINX_BUILD\" was never defined. 21343Usually this means the macro was only invoked conditionally." "$LINENO" 5 21344fi 21345 21346: "${CONFIG_STATUS=./config.status}" 21347ac_write_fail=0 21348ac_clean_files_save=$ac_clean_files 21349ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21350{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21351$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21352as_write_fail=0 21353cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21354#! $SHELL 21355# Generated by $as_me. 21356# Run this file to recreate the current configuration. 21357# Compiler output produced by configure, useful for debugging 21358# configure, is in config.log if it exists. 21359 21360debug=false 21361ac_cs_recheck=false 21362ac_cs_silent=false 21363 21364SHELL=\${CONFIG_SHELL-$SHELL} 21365export SHELL 21366_ASEOF 21367cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 21368## -------------------- ## 21369## M4sh Initialization. ## 21370## -------------------- ## 21371 21372# Be more Bourne compatible 21373DUALCASE=1; export DUALCASE # for MKS sh 21374if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21375 emulate sh 21376 NULLCMD=: 21377 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21378 # is contrary to our usage. Disable this feature. 21379 alias -g '${1+"$@"}'='"$@"' 21380 setopt NO_GLOB_SUBST 21381else 21382 case `(set -o) 2>/dev/null` in #( 21383 *posix*) : 21384 set -o posix ;; #( 21385 *) : 21386 ;; 21387esac 21388fi 21389 21390 21391as_nl=' 21392' 21393export as_nl 21394# Printing a long string crashes Solaris 7 /usr/bin/printf. 21395as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 21396as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 21397as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 21398# Prefer a ksh shell builtin over an external printf program on Solaris, 21399# but without wasting forks for bash or zsh. 21400if test -z "$BASH_VERSION$ZSH_VERSION" \ 21401 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 21402 as_echo='print -r --' 21403 as_echo_n='print -rn --' 21404elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 21405 as_echo='printf %s\n' 21406 as_echo_n='printf %s' 21407else 21408 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 21409 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 21410 as_echo_n='/usr/ucb/echo -n' 21411 else 21412 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 21413 as_echo_n_body='eval 21414 arg=$1; 21415 case $arg in #( 21416 *"$as_nl"*) 21417 expr "X$arg" : "X\\(.*\\)$as_nl"; 21418 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 21419 esac; 21420 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 21421 ' 21422 export as_echo_n_body 21423 as_echo_n='sh -c $as_echo_n_body as_echo' 21424 fi 21425 export as_echo_body 21426 as_echo='sh -c $as_echo_body as_echo' 21427fi 21428 21429# The user is always right. 21430if test "${PATH_SEPARATOR+set}" != set; then 21431 PATH_SEPARATOR=: 21432 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21433 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21434 PATH_SEPARATOR=';' 21435 } 21436fi 21437 21438 21439# IFS 21440# We need space, tab and new line, in precisely that order. Quoting is 21441# there to prevent editors from complaining about space-tab. 21442# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21443# splitting by setting IFS to empty value.) 21444IFS=" "" $as_nl" 21445 21446# Find who we are. Look in the path if we contain no directory separator. 21447as_myself= 21448case $0 in #(( 21449 *[\\/]* ) as_myself=$0 ;; 21450 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21451for as_dir in $PATH 21452do 21453 IFS=$as_save_IFS 21454 test -z "$as_dir" && as_dir=. 21455 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21456 done 21457IFS=$as_save_IFS 21458 21459 ;; 21460esac 21461# We did not find ourselves, most probably we were run as `sh COMMAND' 21462# in which case we are not to be found in the path. 21463if test "x$as_myself" = x; then 21464 as_myself=$0 21465fi 21466if test ! -f "$as_myself"; then 21467 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21468 exit 1 21469fi 21470 21471# Unset variables that we do not need and which cause bugs (e.g. in 21472# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 21473# suppresses any "Segmentation fault" message there. '((' could 21474# trigger a bug in pdksh 5.2.14. 21475for as_var in BASH_ENV ENV MAIL MAILPATH 21476do eval test x\${$as_var+set} = xset \ 21477 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 21478done 21479PS1='$ ' 21480PS2='> ' 21481PS4='+ ' 21482 21483# NLS nuisances. 21484LC_ALL=C 21485export LC_ALL 21486LANGUAGE=C 21487export LANGUAGE 21488 21489# CDPATH. 21490(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21491 21492 21493# as_fn_error STATUS ERROR [LINENO LOG_FD] 21494# ---------------------------------------- 21495# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 21496# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 21497# script with STATUS, using 1 if that was 0. 21498as_fn_error () 21499{ 21500 as_status=$1; test $as_status -eq 0 && as_status=1 21501 if test "$4"; then 21502 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21503 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 21504 fi 21505 $as_echo "$as_me: error: $2" >&2 21506 as_fn_exit $as_status 21507} # as_fn_error 21508 21509 21510# as_fn_set_status STATUS 21511# ----------------------- 21512# Set $? to STATUS, without forking. 21513as_fn_set_status () 21514{ 21515 return $1 21516} # as_fn_set_status 21517 21518# as_fn_exit STATUS 21519# ----------------- 21520# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 21521as_fn_exit () 21522{ 21523 set +e 21524 as_fn_set_status $1 21525 exit $1 21526} # as_fn_exit 21527 21528# as_fn_unset VAR 21529# --------------- 21530# Portably unset VAR. 21531as_fn_unset () 21532{ 21533 { eval $1=; unset $1;} 21534} 21535as_unset=as_fn_unset 21536# as_fn_append VAR VALUE 21537# ---------------------- 21538# Append the text in VALUE to the end of the definition contained in VAR. Take 21539# advantage of any shell optimizations that allow amortized linear growth over 21540# repeated appends, instead of the typical quadratic growth present in naive 21541# implementations. 21542if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 21543 eval 'as_fn_append () 21544 { 21545 eval $1+=\$2 21546 }' 21547else 21548 as_fn_append () 21549 { 21550 eval $1=\$$1\$2 21551 } 21552fi # as_fn_append 21553 21554# as_fn_arith ARG... 21555# ------------------ 21556# Perform arithmetic evaluation on the ARGs, and store the result in the 21557# global $as_val. Take advantage of shells that can avoid forks. The arguments 21558# must be portable across $(()) and expr. 21559if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 21560 eval 'as_fn_arith () 21561 { 21562 as_val=$(( $* )) 21563 }' 21564else 21565 as_fn_arith () 21566 { 21567 as_val=`expr "$@" || test $? -eq 1` 21568 } 21569fi # as_fn_arith 21570 21571 21572if expr a : '\(a\)' >/dev/null 2>&1 && 21573 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21574 as_expr=expr 21575else 21576 as_expr=false 21577fi 21578 21579if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21580 as_basename=basename 21581else 21582 as_basename=false 21583fi 21584 21585if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21586 as_dirname=dirname 21587else 21588 as_dirname=false 21589fi 21590 21591as_me=`$as_basename -- "$0" || 21592$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21593 X"$0" : 'X\(//\)$' \| \ 21594 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21595$as_echo X/"$0" | 21596 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21597 s//\1/ 21598 q 21599 } 21600 /^X\/\(\/\/\)$/{ 21601 s//\1/ 21602 q 21603 } 21604 /^X\/\(\/\).*/{ 21605 s//\1/ 21606 q 21607 } 21608 s/.*/./; q'` 21609 21610# Avoid depending upon Character Ranges. 21611as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21612as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21613as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21614as_cr_digits='0123456789' 21615as_cr_alnum=$as_cr_Letters$as_cr_digits 21616 21617ECHO_C= ECHO_N= ECHO_T= 21618case `echo -n x` in #((((( 21619-n*) 21620 case `echo 'xy\c'` in 21621 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21622 xy) ECHO_C='\c';; 21623 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21624 ECHO_T=' ';; 21625 esac;; 21626*) 21627 ECHO_N='-n';; 21628esac 21629 21630rm -f conf$$ conf$$.exe conf$$.file 21631if test -d conf$$.dir; then 21632 rm -f conf$$.dir/conf$$.file 21633else 21634 rm -f conf$$.dir 21635 mkdir conf$$.dir 2>/dev/null 21636fi 21637if (echo >conf$$.file) 2>/dev/null; then 21638 if ln -s conf$$.file conf$$ 2>/dev/null; then 21639 as_ln_s='ln -s' 21640 # ... but there are two gotchas: 21641 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21642 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21643 # In both cases, we have to default to `cp -pR'. 21644 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21645 as_ln_s='cp -pR' 21646 elif ln conf$$.file conf$$ 2>/dev/null; then 21647 as_ln_s=ln 21648 else 21649 as_ln_s='cp -pR' 21650 fi 21651else 21652 as_ln_s='cp -pR' 21653fi 21654rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21655rmdir conf$$.dir 2>/dev/null 21656 21657 21658# as_fn_mkdir_p 21659# ------------- 21660# Create "$as_dir" as a directory, including parents if necessary. 21661as_fn_mkdir_p () 21662{ 21663 21664 case $as_dir in #( 21665 -*) as_dir=./$as_dir;; 21666 esac 21667 test -d "$as_dir" || eval $as_mkdir_p || { 21668 as_dirs= 21669 while :; do 21670 case $as_dir in #( 21671 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21672 *) as_qdir=$as_dir;; 21673 esac 21674 as_dirs="'$as_qdir' $as_dirs" 21675 as_dir=`$as_dirname -- "$as_dir" || 21676$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21677 X"$as_dir" : 'X\(//\)[^/]' \| \ 21678 X"$as_dir" : 'X\(//\)$' \| \ 21679 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21680$as_echo X"$as_dir" | 21681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21682 s//\1/ 21683 q 21684 } 21685 /^X\(\/\/\)[^/].*/{ 21686 s//\1/ 21687 q 21688 } 21689 /^X\(\/\/\)$/{ 21690 s//\1/ 21691 q 21692 } 21693 /^X\(\/\).*/{ 21694 s//\1/ 21695 q 21696 } 21697 s/.*/./; q'` 21698 test -d "$as_dir" && break 21699 done 21700 test -z "$as_dirs" || eval "mkdir $as_dirs" 21701 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21702 21703 21704} # as_fn_mkdir_p 21705if mkdir -p . 2>/dev/null; then 21706 as_mkdir_p='mkdir -p "$as_dir"' 21707else 21708 test -d ./-p && rmdir ./-p 21709 as_mkdir_p=false 21710fi 21711 21712 21713# as_fn_executable_p FILE 21714# ----------------------- 21715# Test if FILE is an executable regular file. 21716as_fn_executable_p () 21717{ 21718 test -f "$1" && test -x "$1" 21719} # as_fn_executable_p 21720as_test_x='test -x' 21721as_executable_p=as_fn_executable_p 21722 21723# Sed expression to map a string onto a valid CPP name. 21724as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21725 21726# Sed expression to map a string onto a valid variable name. 21727as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21728 21729 21730exec 6>&1 21731## ----------------------------------- ## 21732## Main body of $CONFIG_STATUS script. ## 21733## ----------------------------------- ## 21734_ASEOF 21735test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21736 21737cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21738# Save the log message, to keep $0 and so on meaningful, and to 21739# report actual input values of CONFIG_FILES etc. instead of their 21740# values after options handling. 21741ac_log=" 21742This file was extended by cyrus-sasl $as_me 2.1.28, which was 21743generated by GNU Autoconf 2.69. Invocation command line was 21744 21745 CONFIG_FILES = $CONFIG_FILES 21746 CONFIG_HEADERS = $CONFIG_HEADERS 21747 CONFIG_LINKS = $CONFIG_LINKS 21748 CONFIG_COMMANDS = $CONFIG_COMMANDS 21749 $ $0 $@ 21750 21751on `(hostname || uname -n) 2>/dev/null | sed 1q` 21752" 21753 21754_ACEOF 21755 21756case $ac_config_files in *" 21757"*) set x $ac_config_files; shift; ac_config_files=$*;; 21758esac 21759 21760case $ac_config_headers in *" 21761"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21762esac 21763 21764 21765cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21766# Files that config.status was made for. 21767config_files="$ac_config_files" 21768config_headers="$ac_config_headers" 21769config_commands="$ac_config_commands" 21770 21771_ACEOF 21772 21773cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21774ac_cs_usage="\ 21775\`$as_me' instantiates files and other configuration actions 21776from templates according to the current configuration. Unless the files 21777and actions are specified as TAGs, all are instantiated by default. 21778 21779Usage: $0 [OPTION]... [TAG]... 21780 21781 -h, --help print this help, then exit 21782 -V, --version print version number and configuration settings, then exit 21783 --config print configuration, then exit 21784 -q, --quiet, --silent 21785 do not print progress messages 21786 -d, --debug don't remove temporary files 21787 --recheck update $as_me by reconfiguring in the same conditions 21788 --file=FILE[:TEMPLATE] 21789 instantiate the configuration file FILE 21790 --header=FILE[:TEMPLATE] 21791 instantiate the configuration header FILE 21792 21793Configuration files: 21794$config_files 21795 21796Configuration headers: 21797$config_headers 21798 21799Configuration commands: 21800$config_commands 21801 21802Report bugs to <https://github.com/cyrusimap/cyrus-sasl/issues>. 21803cyrus-sasl home page: <https://www.cyrusimap.org>." 21804 21805_ACEOF 21806cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21807ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 21808ac_cs_version="\\ 21809cyrus-sasl config.status 2.1.28 21810configured by $0, generated by GNU Autoconf 2.69, 21811 with options \\"\$ac_cs_config\\" 21812 21813Copyright (C) 2012 Free Software Foundation, Inc. 21814This config.status script is free software; the Free Software Foundation 21815gives unlimited permission to copy, distribute and modify it." 21816 21817ac_pwd='$ac_pwd' 21818srcdir='$srcdir' 21819INSTALL='$INSTALL' 21820MKDIR_P='$MKDIR_P' 21821AWK='$AWK' 21822test -n "\$AWK" || AWK=awk 21823_ACEOF 21824 21825cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21826# The default lists apply if the user does not specify any file. 21827ac_need_defaults=: 21828while test $# != 0 21829do 21830 case $1 in 21831 --*=?*) 21832 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21833 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21834 ac_shift=: 21835 ;; 21836 --*=) 21837 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21838 ac_optarg= 21839 ac_shift=: 21840 ;; 21841 *) 21842 ac_option=$1 21843 ac_optarg=$2 21844 ac_shift=shift 21845 ;; 21846 esac 21847 21848 case $ac_option in 21849 # Handling of the options. 21850 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21851 ac_cs_recheck=: ;; 21852 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21853 $as_echo "$ac_cs_version"; exit ;; 21854 --config | --confi | --conf | --con | --co | --c ) 21855 $as_echo "$ac_cs_config"; exit ;; 21856 --debug | --debu | --deb | --de | --d | -d ) 21857 debug=: ;; 21858 --file | --fil | --fi | --f ) 21859 $ac_shift 21860 case $ac_optarg in 21861 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21862 '') as_fn_error $? "missing file argument" ;; 21863 esac 21864 as_fn_append CONFIG_FILES " '$ac_optarg'" 21865 ac_need_defaults=false;; 21866 --header | --heade | --head | --hea ) 21867 $ac_shift 21868 case $ac_optarg in 21869 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21870 esac 21871 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21872 ac_need_defaults=false;; 21873 --he | --h) 21874 # Conflict between --help and --header 21875 as_fn_error $? "ambiguous option: \`$1' 21876Try \`$0 --help' for more information.";; 21877 --help | --hel | -h ) 21878 $as_echo "$ac_cs_usage"; exit ;; 21879 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21880 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21881 ac_cs_silent=: ;; 21882 21883 # This is an error. 21884 -*) as_fn_error $? "unrecognized option: \`$1' 21885Try \`$0 --help' for more information." ;; 21886 21887 *) as_fn_append ac_config_targets " $1" 21888 ac_need_defaults=false ;; 21889 21890 esac 21891 shift 21892done 21893 21894ac_configure_extra_args= 21895 21896if $ac_cs_silent; then 21897 exec 6>/dev/null 21898 ac_configure_extra_args="$ac_configure_extra_args --silent" 21899fi 21900 21901_ACEOF 21902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21903if \$ac_cs_recheck; then 21904 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21905 shift 21906 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21907 CONFIG_SHELL='$SHELL' 21908 export CONFIG_SHELL 21909 exec "\$@" 21910fi 21911 21912_ACEOF 21913cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21914exec 5>>config.log 21915{ 21916 echo 21917 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21918## Running $as_me. ## 21919_ASBOX 21920 $as_echo "$ac_log" 21921} >&5 21922 21923_ACEOF 21924cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21925# 21926# INIT-COMMANDS 21927# 21928AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21929 21930 21931# The HP-UX ksh and POSIX shell print the target directory to stdout 21932# if CDPATH is set. 21933(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21934 21935sed_quote_subst='$sed_quote_subst' 21936double_quote_subst='$double_quote_subst' 21937delay_variable_subst='$delay_variable_subst' 21938enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21939macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21940macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21941enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21942pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21943enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21944shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21945SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21946ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21947PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21948host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21949host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21950host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21951build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21952build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21953build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21954SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21955Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21956GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21957EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21958FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21959LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21960NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21961LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21962max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21963ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21964exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21965lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21966lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21967lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21968lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21969lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21970reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21971reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21972OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21973deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21974file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21975file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21976want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21977DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21978sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21979AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21980AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21981archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21982STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21983RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21984old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21985old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21986old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21987lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21988CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21989CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21990compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21991GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21992lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21993lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21994lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21995lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21996lt_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"`' 21997lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21998nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21999lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 22000lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 22001objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 22002MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 22003lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 22004lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 22005lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 22006lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 22007lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 22008need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 22009MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 22010DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 22011NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 22012LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 22013OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 22014OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 22015libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 22016shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 22017extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22018archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 22019enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 22020export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 22021whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 22022compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 22023old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 22024old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22025archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 22026archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22027module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 22028module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22029with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 22030allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 22031no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 22032hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 22033hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 22034hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 22035hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 22036hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 22037hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 22038hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 22039inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 22040link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 22041always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 22042export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 22043exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 22044include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 22045prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 22046postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 22047file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 22048variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 22049need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 22050need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 22051version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 22052runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 22053shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 22054shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 22055libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 22056library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 22057soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 22058install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 22059postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22060postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22061finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 22062finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 22063hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 22064sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 22065configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 22066configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 22067hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 22068enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 22069enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 22070enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 22071old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 22072striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 22073 22074LTCC='$LTCC' 22075LTCFLAGS='$LTCFLAGS' 22076compiler='$compiler_DEFAULT' 22077 22078# A function that is used when there is no print builtin or printf. 22079func_fallback_echo () 22080{ 22081 eval 'cat <<_LTECHO_EOF 22082\$1 22083_LTECHO_EOF' 22084} 22085 22086# Quote evaled strings. 22087for var in SHELL \ 22088ECHO \ 22089PATH_SEPARATOR \ 22090SED \ 22091GREP \ 22092EGREP \ 22093FGREP \ 22094LD \ 22095NM \ 22096LN_S \ 22097lt_SP2NL \ 22098lt_NL2SP \ 22099reload_flag \ 22100OBJDUMP \ 22101deplibs_check_method \ 22102file_magic_cmd \ 22103file_magic_glob \ 22104want_nocaseglob \ 22105DLLTOOL \ 22106sharedlib_from_linklib_cmd \ 22107AR \ 22108AR_FLAGS \ 22109archiver_list_spec \ 22110STRIP \ 22111RANLIB \ 22112CC \ 22113CFLAGS \ 22114compiler \ 22115lt_cv_sys_global_symbol_pipe \ 22116lt_cv_sys_global_symbol_to_cdecl \ 22117lt_cv_sys_global_symbol_to_import \ 22118lt_cv_sys_global_symbol_to_c_name_address \ 22119lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22120lt_cv_nm_interface \ 22121nm_file_list_spec \ 22122lt_cv_truncate_bin \ 22123lt_prog_compiler_no_builtin_flag \ 22124lt_prog_compiler_pic \ 22125lt_prog_compiler_wl \ 22126lt_prog_compiler_static \ 22127lt_cv_prog_compiler_c_o \ 22128need_locks \ 22129MANIFEST_TOOL \ 22130DSYMUTIL \ 22131NMEDIT \ 22132LIPO \ 22133OTOOL \ 22134OTOOL64 \ 22135shrext_cmds \ 22136export_dynamic_flag_spec \ 22137whole_archive_flag_spec \ 22138compiler_needs_object \ 22139with_gnu_ld \ 22140allow_undefined_flag \ 22141no_undefined_flag \ 22142hardcode_libdir_flag_spec \ 22143hardcode_libdir_separator \ 22144exclude_expsyms \ 22145include_expsyms \ 22146file_list_spec \ 22147variables_saved_for_relink \ 22148libname_spec \ 22149library_names_spec \ 22150soname_spec \ 22151install_override_mode \ 22152finish_eval \ 22153old_striplib \ 22154striplib; do 22155 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22156 *[\\\\\\\`\\"\\\$]*) 22157 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22158 ;; 22159 *) 22160 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22161 ;; 22162 esac 22163done 22164 22165# Double-quote double-evaled strings. 22166for var in reload_cmds \ 22167old_postinstall_cmds \ 22168old_postuninstall_cmds \ 22169old_archive_cmds \ 22170extract_expsyms_cmds \ 22171old_archive_from_new_cmds \ 22172old_archive_from_expsyms_cmds \ 22173archive_cmds \ 22174archive_expsym_cmds \ 22175module_cmds \ 22176module_expsym_cmds \ 22177export_symbols_cmds \ 22178prelink_cmds \ 22179postlink_cmds \ 22180postinstall_cmds \ 22181postuninstall_cmds \ 22182finish_cmds \ 22183sys_lib_search_path_spec \ 22184configure_time_dlsearch_path \ 22185configure_time_lt_sys_library_path; do 22186 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22187 *[\\\\\\\`\\"\\\$]*) 22188 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22189 ;; 22190 *) 22191 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22192 ;; 22193 esac 22194done 22195 22196ac_aux_dir='$ac_aux_dir' 22197 22198# See if we are running on zsh, and set the options that allow our 22199# commands through without removal of \ escapes INIT. 22200if test -n "\${ZSH_VERSION+set}"; then 22201 setopt NO_GLOB_SUBST 22202fi 22203 22204 22205 PACKAGE='$PACKAGE' 22206 VERSION='$VERSION' 22207 RM='$RM' 22208 ofile='$ofile' 22209 22210 22211 22212 22213_ACEOF 22214 22215cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22216 22217# Handling of arguments. 22218for ac_config_target in $ac_config_targets 22219do 22220 case $ac_config_target in 22221 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22222 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22223 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22224 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22225 "libsasl2.pc") CONFIG_FILES="$CONFIG_FILES libsasl2.pc" ;; 22226 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 22227 "saslauthd/Makefile") CONFIG_FILES="$CONFIG_FILES saslauthd/Makefile" ;; 22228 "sasldb/Makefile") CONFIG_FILES="$CONFIG_FILES sasldb/Makefile" ;; 22229 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; 22230 "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;; 22231 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 22232 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;; 22233 "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;; 22234 "pwcheck/Makefile") CONFIG_FILES="$CONFIG_FILES pwcheck/Makefile" ;; 22235 22236 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 22237 esac 22238done 22239 22240 22241# If the user did not use the arguments to specify the items to instantiate, 22242# then the envvar interface is used. Set only those that are not. 22243# We use the long form for the default assignment because of an extremely 22244# bizarre bug on SunOS 4.1.3. 22245if $ac_need_defaults; then 22246 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22247 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22248 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22249fi 22250 22251# Have a temporary directory for convenience. Make it in the build tree 22252# simply because there is no reason against having it here, and in addition, 22253# creating and moving files from /tmp can sometimes cause problems. 22254# Hook for its removal unless debugging. 22255# Note that there is a small window in which the directory will not be cleaned: 22256# after its creation but before its name has been assigned to `$tmp'. 22257$debug || 22258{ 22259 tmp= ac_tmp= 22260 trap 'exit_status=$? 22261 : "${ac_tmp:=$tmp}" 22262 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22263' 0 22264 trap 'as_fn_exit 1' 1 2 13 15 22265} 22266# Create a (secure) tmp directory for tmp files. 22267 22268{ 22269 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22270 test -d "$tmp" 22271} || 22272{ 22273 tmp=./conf$$-$RANDOM 22274 (umask 077 && mkdir "$tmp") 22275} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22276ac_tmp=$tmp 22277 22278# Set up the scripts for CONFIG_FILES section. 22279# No need to generate them if there are no CONFIG_FILES. 22280# This happens for instance with `./config.status config.h'. 22281if test -n "$CONFIG_FILES"; then 22282 22283 22284ac_cr=`echo X | tr X '\015'` 22285# On cygwin, bash can eat \r inside `` if the user requested igncr. 22286# But we know of no other shell where ac_cr would be empty at this 22287# point, so we can use a bashism as a fallback. 22288if test "x$ac_cr" = x; then 22289 eval ac_cr=\$\'\\r\' 22290fi 22291ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22292if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22293 ac_cs_awk_cr='\\r' 22294else 22295 ac_cs_awk_cr=$ac_cr 22296fi 22297 22298echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 22299_ACEOF 22300 22301 22302{ 22303 echo "cat >conf$$subs.awk <<_ACEOF" && 22304 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22305 echo "_ACEOF" 22306} >conf$$subs.sh || 22307 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22308ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22309ac_delim='%!_!# ' 22310for ac_last_try in false false false false false :; do 22311 . ./conf$$subs.sh || 22312 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22313 22314 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22315 if test $ac_delim_n = $ac_delim_num; then 22316 break 22317 elif $ac_last_try; then 22318 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22319 else 22320 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22321 fi 22322done 22323rm -f conf$$subs.sh 22324 22325cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22326cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22327_ACEOF 22328sed -n ' 22329h 22330s/^/S["/; s/!.*/"]=/ 22331p 22332g 22333s/^[^!]*!// 22334:repl 22335t repl 22336s/'"$ac_delim"'$// 22337t delim 22338:nl 22339h 22340s/\(.\{148\}\)..*/\1/ 22341t more1 22342s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22343p 22344n 22345b repl 22346:more1 22347s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22348p 22349g 22350s/.\{148\}// 22351t nl 22352:delim 22353h 22354s/\(.\{148\}\)..*/\1/ 22355t more2 22356s/["\\]/\\&/g; s/^/"/; s/$/"/ 22357p 22358b 22359:more2 22360s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22361p 22362g 22363s/.\{148\}// 22364t delim 22365' <conf$$subs.awk | sed ' 22366/^[^""]/{ 22367 N 22368 s/\n// 22369} 22370' >>$CONFIG_STATUS || ac_write_fail=1 22371rm -f conf$$subs.awk 22372cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22373_ACAWK 22374cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 22375 for (key in S) S_is_set[key] = 1 22376 FS = "" 22377 22378} 22379{ 22380 line = $ 0 22381 nfields = split(line, field, "@") 22382 substed = 0 22383 len = length(field[1]) 22384 for (i = 2; i < nfields; i++) { 22385 key = field[i] 22386 keylen = length(key) 22387 if (S_is_set[key]) { 22388 value = S[key] 22389 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22390 len += length(value) + length(field[++i]) 22391 substed = 1 22392 } else 22393 len += 1 + keylen 22394 } 22395 22396 print line 22397} 22398 22399_ACAWK 22400_ACEOF 22401cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22402if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22403 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22404else 22405 cat 22406fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 22407 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 22408_ACEOF 22409 22410# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 22411# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 22412# trailing colons and then remove the whole line if VPATH becomes empty 22413# (actually we leave an empty line to preserve line numbers). 22414if test "x$srcdir" = x.; then 22415 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 22416h 22417s/// 22418s/^/:/ 22419s/[ ]*$/:/ 22420s/:\$(srcdir):/:/g 22421s/:\${srcdir}:/:/g 22422s/:@srcdir@:/:/g 22423s/^:*// 22424s/:*$// 22425x 22426s/\(=[ ]*\).*/\1/ 22427G 22428s/\n// 22429s/^[^=]*=[ ]*$// 22430}' 22431fi 22432 22433cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22434fi # test -n "$CONFIG_FILES" 22435 22436# Set up the scripts for CONFIG_HEADERS section. 22437# No need to generate them if there are no CONFIG_HEADERS. 22438# This happens for instance with `./config.status Makefile'. 22439if test -n "$CONFIG_HEADERS"; then 22440cat >"$ac_tmp/defines.awk" <<\_ACAWK || 22441BEGIN { 22442_ACEOF 22443 22444# Transform confdefs.h into an awk script `defines.awk', embedded as 22445# here-document in config.status, that substitutes the proper values into 22446# config.h.in to produce config.h. 22447 22448# Create a delimiter string that does not exist in confdefs.h, to ease 22449# handling of long lines. 22450ac_delim='%!_!# ' 22451for ac_last_try in false false :; do 22452 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 22453 if test -z "$ac_tt"; then 22454 break 22455 elif $ac_last_try; then 22456 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 22457 else 22458 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22459 fi 22460done 22461 22462# For the awk script, D is an array of macro values keyed by name, 22463# likewise P contains macro parameters if any. Preserve backslash 22464# newline sequences. 22465 22466ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22467sed -n ' 22468s/.\{148\}/&'"$ac_delim"'/g 22469t rset 22470:rset 22471s/^[ ]*#[ ]*define[ ][ ]*/ / 22472t def 22473d 22474:def 22475s/\\$// 22476t bsnl 22477s/["\\]/\\&/g 22478s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22479D["\1"]=" \3"/p 22480s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22481d 22482:bsnl 22483s/["\\]/\\&/g 22484s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22485D["\1"]=" \3\\\\\\n"\\/p 22486t cont 22487s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22488t cont 22489d 22490:cont 22491n 22492s/.\{148\}/&'"$ac_delim"'/g 22493t clear 22494:clear 22495s/\\$// 22496t bsnlc 22497s/["\\]/\\&/g; s/^/"/; s/$/"/p 22498d 22499:bsnlc 22500s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22501b cont 22502' <confdefs.h | sed ' 22503s/'"$ac_delim"'/"\\\ 22504"/g' >>$CONFIG_STATUS || ac_write_fail=1 22505 22506cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22507 for (key in D) D_is_set[key] = 1 22508 FS = "" 22509} 22510/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22511 line = \$ 0 22512 split(line, arg, " ") 22513 if (arg[1] == "#") { 22514 defundef = arg[2] 22515 mac1 = arg[3] 22516 } else { 22517 defundef = substr(arg[1], 2) 22518 mac1 = arg[2] 22519 } 22520 split(mac1, mac2, "(") #) 22521 macro = mac2[1] 22522 prefix = substr(line, 1, index(line, defundef) - 1) 22523 if (D_is_set[macro]) { 22524 # Preserve the white space surrounding the "#". 22525 print prefix "define", macro P[macro] D[macro] 22526 next 22527 } else { 22528 # Replace #undef with comments. This is necessary, for example, 22529 # in the case of _POSIX_SOURCE, which is predefined and required 22530 # on some systems where configure will not decide to define it. 22531 if (defundef == "undef") { 22532 print "/*", prefix defundef, macro, "*/" 22533 next 22534 } 22535 } 22536} 22537{ print } 22538_ACAWK 22539_ACEOF 22540cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22541 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22542fi # test -n "$CONFIG_HEADERS" 22543 22544 22545eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22546shift 22547for ac_tag 22548do 22549 case $ac_tag in 22550 :[FHLC]) ac_mode=$ac_tag; continue;; 22551 esac 22552 case $ac_mode$ac_tag in 22553 :[FHL]*:*);; 22554 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 22555 :[FH]-) ac_tag=-:-;; 22556 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22557 esac 22558 ac_save_IFS=$IFS 22559 IFS=: 22560 set x $ac_tag 22561 IFS=$ac_save_IFS 22562 shift 22563 ac_file=$1 22564 shift 22565 22566 case $ac_mode in 22567 :L) ac_source=$1;; 22568 :[FH]) 22569 ac_file_inputs= 22570 for ac_f 22571 do 22572 case $ac_f in 22573 -) ac_f="$ac_tmp/stdin";; 22574 *) # Look for the file first in the build tree, then in the source tree 22575 # (if the path is not absolute). The absolute path cannot be DOS-style, 22576 # because $ac_f cannot contain `:'. 22577 test -f "$ac_f" || 22578 case $ac_f in 22579 [\\/$]*) false;; 22580 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22581 esac || 22582 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 22583 esac 22584 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22585 as_fn_append ac_file_inputs " '$ac_f'" 22586 done 22587 22588 # Let's still pretend it is `configure' which instantiates (i.e., don't 22589 # use $as_me), people would be surprised to read: 22590 # /* config.h. Generated by config.status. */ 22591 configure_input='Generated from '` 22592 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22593 `' by configure.' 22594 if test x"$ac_file" != x-; then 22595 configure_input="$ac_file. $configure_input" 22596 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22597$as_echo "$as_me: creating $ac_file" >&6;} 22598 fi 22599 # Neutralize special characters interpreted by sed in replacement strings. 22600 case $configure_input in #( 22601 *\&* | *\|* | *\\* ) 22602 ac_sed_conf_input=`$as_echo "$configure_input" | 22603 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22604 *) ac_sed_conf_input=$configure_input;; 22605 esac 22606 22607 case $ac_tag in 22608 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22609 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22610 esac 22611 ;; 22612 esac 22613 22614 ac_dir=`$as_dirname -- "$ac_file" || 22615$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22616 X"$ac_file" : 'X\(//\)[^/]' \| \ 22617 X"$ac_file" : 'X\(//\)$' \| \ 22618 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22619$as_echo X"$ac_file" | 22620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22621 s//\1/ 22622 q 22623 } 22624 /^X\(\/\/\)[^/].*/{ 22625 s//\1/ 22626 q 22627 } 22628 /^X\(\/\/\)$/{ 22629 s//\1/ 22630 q 22631 } 22632 /^X\(\/\).*/{ 22633 s//\1/ 22634 q 22635 } 22636 s/.*/./; q'` 22637 as_dir="$ac_dir"; as_fn_mkdir_p 22638 ac_builddir=. 22639 22640case "$ac_dir" in 22641.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22642*) 22643 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22644 # A ".." for each directory in $ac_dir_suffix. 22645 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22646 case $ac_top_builddir_sub in 22647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22649 esac ;; 22650esac 22651ac_abs_top_builddir=$ac_pwd 22652ac_abs_builddir=$ac_pwd$ac_dir_suffix 22653# for backward compatibility: 22654ac_top_builddir=$ac_top_build_prefix 22655 22656case $srcdir in 22657 .) # We are building in place. 22658 ac_srcdir=. 22659 ac_top_srcdir=$ac_top_builddir_sub 22660 ac_abs_top_srcdir=$ac_pwd ;; 22661 [\\/]* | ?:[\\/]* ) # Absolute name. 22662 ac_srcdir=$srcdir$ac_dir_suffix; 22663 ac_top_srcdir=$srcdir 22664 ac_abs_top_srcdir=$srcdir ;; 22665 *) # Relative name. 22666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22667 ac_top_srcdir=$ac_top_build_prefix$srcdir 22668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22669esac 22670ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22671 22672 22673 case $ac_mode in 22674 :F) 22675 # 22676 # CONFIG_FILE 22677 # 22678 22679 case $INSTALL in 22680 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22681 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22682 esac 22683 ac_MKDIR_P=$MKDIR_P 22684 case $MKDIR_P in 22685 [\\/$]* | ?:[\\/]* ) ;; 22686 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22687 esac 22688_ACEOF 22689 22690cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22691# If the template does not know about datarootdir, expand it. 22692# FIXME: This hack should be removed a few years after 2.60. 22693ac_datarootdir_hack=; ac_datarootdir_seen= 22694ac_sed_dataroot=' 22695/datarootdir/ { 22696 p 22697 q 22698} 22699/@datadir@/p 22700/@docdir@/p 22701/@infodir@/p 22702/@localedir@/p 22703/@mandir@/p' 22704case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22705*datarootdir*) ac_datarootdir_seen=yes;; 22706*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22708$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22709_ACEOF 22710cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22711 ac_datarootdir_hack=' 22712 s&@datadir@&$datadir&g 22713 s&@docdir@&$docdir&g 22714 s&@infodir@&$infodir&g 22715 s&@localedir@&$localedir&g 22716 s&@mandir@&$mandir&g 22717 s&\\\${datarootdir}&$datarootdir&g' ;; 22718esac 22719_ACEOF 22720 22721# Neutralize VPATH when `$srcdir' = `.'. 22722# Shell code in configure.ac might set extrasub. 22723# FIXME: do we really want to maintain this feature? 22724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22725ac_sed_extra="$ac_vpsub 22726$extrasub 22727_ACEOF 22728cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22729:t 22730/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22731s|@configure_input@|$ac_sed_conf_input|;t t 22732s&@top_builddir@&$ac_top_builddir_sub&;t t 22733s&@top_build_prefix@&$ac_top_build_prefix&;t t 22734s&@srcdir@&$ac_srcdir&;t t 22735s&@abs_srcdir@&$ac_abs_srcdir&;t t 22736s&@top_srcdir@&$ac_top_srcdir&;t t 22737s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22738s&@builddir@&$ac_builddir&;t t 22739s&@abs_builddir@&$ac_abs_builddir&;t t 22740s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22741s&@INSTALL@&$ac_INSTALL&;t t 22742s&@MKDIR_P@&$ac_MKDIR_P&;t t 22743$ac_datarootdir_hack 22744" 22745eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22746 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22747 22748test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22749 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22750 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22751 "$ac_tmp/out"`; test -z "$ac_out"; } && 22752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22753which seems to be undefined. Please make sure it is defined" >&5 22754$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22755which seems to be undefined. Please make sure it is defined" >&2;} 22756 22757 rm -f "$ac_tmp/stdin" 22758 case $ac_file in 22759 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22760 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22761 esac \ 22762 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22763 ;; 22764 :H) 22765 # 22766 # CONFIG_HEADER 22767 # 22768 if test x"$ac_file" != x-; then 22769 { 22770 $as_echo "/* $configure_input */" \ 22771 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22772 } >"$ac_tmp/config.h" \ 22773 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22774 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22775 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22776$as_echo "$as_me: $ac_file is unchanged" >&6;} 22777 else 22778 rm -f "$ac_file" 22779 mv "$ac_tmp/config.h" "$ac_file" \ 22780 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22781 fi 22782 else 22783 $as_echo "/* $configure_input */" \ 22784 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22785 || as_fn_error $? "could not create -" "$LINENO" 5 22786 fi 22787# Compute "$ac_file"'s index in $config_headers. 22788_am_arg="$ac_file" 22789_am_stamp_count=1 22790for _am_header in $config_headers :; do 22791 case $_am_header in 22792 $_am_arg | $_am_arg:* ) 22793 break ;; 22794 * ) 22795 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22796 esac 22797done 22798echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22799$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22800 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22801 X"$_am_arg" : 'X\(//\)$' \| \ 22802 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22803$as_echo X"$_am_arg" | 22804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22805 s//\1/ 22806 q 22807 } 22808 /^X\(\/\/\)[^/].*/{ 22809 s//\1/ 22810 q 22811 } 22812 /^X\(\/\/\)$/{ 22813 s//\1/ 22814 q 22815 } 22816 /^X\(\/\).*/{ 22817 s//\1/ 22818 q 22819 } 22820 s/.*/./; q'`/stamp-h$_am_stamp_count 22821 ;; 22822 22823 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22824$as_echo "$as_me: executing $ac_file commands" >&6;} 22825 ;; 22826 esac 22827 22828 22829 case $ac_file$ac_mode in 22830 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22831 # Older Autoconf quotes --file arguments for eval, but not when files 22832 # are listed without --file. Let's play safe and only enable the eval 22833 # if we detect the quoting. 22834 # TODO: see whether this extra hack can be removed once we start 22835 # requiring Autoconf 2.70 or later. 22836 case $CONFIG_FILES in #( 22837 *\'*) : 22838 eval set x "$CONFIG_FILES" ;; #( 22839 *) : 22840 set x $CONFIG_FILES ;; #( 22841 *) : 22842 ;; 22843esac 22844 shift 22845 # Used to flag and report bootstrapping failures. 22846 am_rc=0 22847 for am_mf 22848 do 22849 # Strip MF so we end up with the name of the file. 22850 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 22851 # Check whether this is an Automake generated Makefile which includes 22852 # dependency-tracking related rules and includes. 22853 # Grep'ing the whole file directly is not great: AIX grep has a line 22854 # limit of 2048, but all sed's we know have understand at least 4000. 22855 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22856 || continue 22857 am_dirpart=`$as_dirname -- "$am_mf" || 22858$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22859 X"$am_mf" : 'X\(//\)[^/]' \| \ 22860 X"$am_mf" : 'X\(//\)$' \| \ 22861 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22862$as_echo X"$am_mf" | 22863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22864 s//\1/ 22865 q 22866 } 22867 /^X\(\/\/\)[^/].*/{ 22868 s//\1/ 22869 q 22870 } 22871 /^X\(\/\/\)$/{ 22872 s//\1/ 22873 q 22874 } 22875 /^X\(\/\).*/{ 22876 s//\1/ 22877 q 22878 } 22879 s/.*/./; q'` 22880 am_filepart=`$as_basename -- "$am_mf" || 22881$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22882 X"$am_mf" : 'X\(//\)$' \| \ 22883 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22884$as_echo X/"$am_mf" | 22885 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22886 s//\1/ 22887 q 22888 } 22889 /^X\/\(\/\/\)$/{ 22890 s//\1/ 22891 q 22892 } 22893 /^X\/\(\/\).*/{ 22894 s//\1/ 22895 q 22896 } 22897 s/.*/./; q'` 22898 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22899 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22900 | $MAKE -f - am--depfiles" >&5 22901 (cd "$am_dirpart" \ 22902 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22903 | $MAKE -f - am--depfiles) >&5 2>&5 22904 ac_status=$? 22905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22906 (exit $ac_status); } || am_rc=$? 22907 done 22908 if test $am_rc -ne 0; then 22909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22910$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22911as_fn_error $? "Something went wrong bootstrapping makefile fragments 22912 for automatic dependency tracking. Try re-running configure with the 22913 '--disable-dependency-tracking' option to at least be able to build 22914 the package (albeit without support for automatic dependency tracking). 22915See \`config.log' for more details" "$LINENO" 5; } 22916 fi 22917 { am_dirpart=; unset am_dirpart;} 22918 { am_filepart=; unset am_filepart;} 22919 { am_mf=; unset am_mf;} 22920 { am_rc=; unset am_rc;} 22921 rm -f conftest-deps.mk 22922} 22923 ;; 22924 "libtool":C) 22925 22926 # See if we are running on zsh, and set the options that allow our 22927 # commands through without removal of \ escapes. 22928 if test -n "${ZSH_VERSION+set}"; then 22929 setopt NO_GLOB_SUBST 22930 fi 22931 22932 cfgfile=${ofile}T 22933 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22934 $RM "$cfgfile" 22935 22936 cat <<_LT_EOF >> "$cfgfile" 22937#! $SHELL 22938# Generated automatically by $as_me ($PACKAGE) $VERSION 22939# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22940 22941# Provide generalized library-building support services. 22942# Written by Gordon Matzigkeit, 1996 22943 22944# Copyright (C) 2014 Free Software Foundation, Inc. 22945# This is free software; see the source for copying conditions. There is NO 22946# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22947 22948# GNU Libtool is free software; you can redistribute it and/or modify 22949# it under the terms of the GNU General Public License as published by 22950# the Free Software Foundation; either version 2 of of the License, or 22951# (at your option) any later version. 22952# 22953# As a special exception to the GNU General Public License, if you 22954# distribute this file as part of a program or library that is built 22955# using GNU Libtool, you may include this file under the same 22956# distribution terms that you use for the rest of that program. 22957# 22958# GNU Libtool is distributed in the hope that it will be useful, but 22959# WITHOUT ANY WARRANTY; without even the implied warranty of 22960# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22961# GNU General Public License for more details. 22962# 22963# You should have received a copy of the GNU General Public License 22964# along with this program. If not, see <http://www.gnu.org/licenses/>. 22965 22966 22967# The names of the tagged configurations supported by this script. 22968available_tags='' 22969 22970# Configured defaults for sys_lib_dlsearch_path munging. 22971: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22972 22973# ### BEGIN LIBTOOL CONFIG 22974 22975# Whether or not to build static libraries. 22976build_old_libs=$enable_static 22977 22978# Which release of libtool.m4 was used? 22979macro_version=$macro_version 22980macro_revision=$macro_revision 22981 22982# Whether or not to build shared libraries. 22983build_libtool_libs=$enable_shared 22984 22985# What type of objects to build. 22986pic_mode=$pic_mode 22987 22988# Whether or not to optimize for fast installation. 22989fast_install=$enable_fast_install 22990 22991# Shared archive member basename,for filename based shared library versioning on AIX. 22992shared_archive_member_spec=$shared_archive_member_spec 22993 22994# Shell to use when invoking shell scripts. 22995SHELL=$lt_SHELL 22996 22997# An echo program that protects backslashes. 22998ECHO=$lt_ECHO 22999 23000# The PATH separator for the build system. 23001PATH_SEPARATOR=$lt_PATH_SEPARATOR 23002 23003# The host system. 23004host_alias=$host_alias 23005host=$host 23006host_os=$host_os 23007 23008# The build system. 23009build_alias=$build_alias 23010build=$build 23011build_os=$build_os 23012 23013# A sed program that does not truncate output. 23014SED=$lt_SED 23015 23016# Sed that helps us avoid accidentally triggering echo(1) options like -n. 23017Xsed="\$SED -e 1s/^X//" 23018 23019# A grep program that handles long lines. 23020GREP=$lt_GREP 23021 23022# An ERE matcher. 23023EGREP=$lt_EGREP 23024 23025# A literal string matcher. 23026FGREP=$lt_FGREP 23027 23028# A BSD- or MS-compatible name lister. 23029NM=$lt_NM 23030 23031# Whether we need soft or hard links. 23032LN_S=$lt_LN_S 23033 23034# What is the maximum length of a command? 23035max_cmd_len=$max_cmd_len 23036 23037# Object file suffix (normally "o"). 23038objext=$ac_objext 23039 23040# Executable file suffix (normally ""). 23041exeext=$exeext 23042 23043# whether the shell understands "unset". 23044lt_unset=$lt_unset 23045 23046# turn spaces into newlines. 23047SP2NL=$lt_lt_SP2NL 23048 23049# turn newlines into spaces. 23050NL2SP=$lt_lt_NL2SP 23051 23052# convert \$build file names to \$host format. 23053to_host_file_cmd=$lt_cv_to_host_file_cmd 23054 23055# convert \$build files to toolchain format. 23056to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23057 23058# An object symbol dumper. 23059OBJDUMP=$lt_OBJDUMP 23060 23061# Method to check whether dependent libraries are shared objects. 23062deplibs_check_method=$lt_deplibs_check_method 23063 23064# Command to use when deplibs_check_method = "file_magic". 23065file_magic_cmd=$lt_file_magic_cmd 23066 23067# How to find potential files when deplibs_check_method = "file_magic". 23068file_magic_glob=$lt_file_magic_glob 23069 23070# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23071want_nocaseglob=$lt_want_nocaseglob 23072 23073# DLL creation program. 23074DLLTOOL=$lt_DLLTOOL 23075 23076# Command to associate shared and link libraries. 23077sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23078 23079# The archiver. 23080AR=$lt_AR 23081 23082# Flags to create an archive. 23083AR_FLAGS=$lt_AR_FLAGS 23084 23085# How to feed a file listing to the archiver. 23086archiver_list_spec=$lt_archiver_list_spec 23087 23088# A symbol stripping program. 23089STRIP=$lt_STRIP 23090 23091# Commands used to install an old-style archive. 23092RANLIB=$lt_RANLIB 23093old_postinstall_cmds=$lt_old_postinstall_cmds 23094old_postuninstall_cmds=$lt_old_postuninstall_cmds 23095 23096# Whether to use a lock for old archive extraction. 23097lock_old_archive_extraction=$lock_old_archive_extraction 23098 23099# A C compiler. 23100LTCC=$lt_CC 23101 23102# LTCC compiler flags. 23103LTCFLAGS=$lt_CFLAGS 23104 23105# Take the output of nm and produce a listing of raw symbols and C names. 23106global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23107 23108# Transform the output of nm in a proper C declaration. 23109global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23110 23111# Transform the output of nm into a list of symbols to manually relocate. 23112global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 23113 23114# Transform the output of nm in a C name address pair. 23115global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23116 23117# Transform the output of nm in a C name address pair when lib prefix is needed. 23118global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23119 23120# The name lister interface. 23121nm_interface=$lt_lt_cv_nm_interface 23122 23123# Specify filename containing input files for \$NM. 23124nm_file_list_spec=$lt_nm_file_list_spec 23125 23126# The root where to search for dependent libraries,and where our libraries should be installed. 23127lt_sysroot=$lt_sysroot 23128 23129# Command to truncate a binary pipe. 23130lt_truncate_bin=$lt_lt_cv_truncate_bin 23131 23132# The name of the directory that contains temporary libtool files. 23133objdir=$objdir 23134 23135# Used to examine libraries when file_magic_cmd begins with "file". 23136MAGIC_CMD=$MAGIC_CMD 23137 23138# Must we lock files when doing compilation? 23139need_locks=$lt_need_locks 23140 23141# Manifest tool. 23142MANIFEST_TOOL=$lt_MANIFEST_TOOL 23143 23144# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23145DSYMUTIL=$lt_DSYMUTIL 23146 23147# Tool to change global to local symbols on Mac OS X. 23148NMEDIT=$lt_NMEDIT 23149 23150# Tool to manipulate fat objects and archives on Mac OS X. 23151LIPO=$lt_LIPO 23152 23153# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23154OTOOL=$lt_OTOOL 23155 23156# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23157OTOOL64=$lt_OTOOL64 23158 23159# Old archive suffix (normally "a"). 23160libext=$libext 23161 23162# Shared library suffix (normally ".so"). 23163shrext_cmds=$lt_shrext_cmds 23164 23165# The commands to extract the exported symbol list from a shared archive. 23166extract_expsyms_cmds=$lt_extract_expsyms_cmds 23167 23168# Variables whose values should be saved in libtool wrapper scripts and 23169# restored at link time. 23170variables_saved_for_relink=$lt_variables_saved_for_relink 23171 23172# Do we need the "lib" prefix for modules? 23173need_lib_prefix=$need_lib_prefix 23174 23175# Do we need a version for libraries? 23176need_version=$need_version 23177 23178# Library versioning type. 23179version_type=$version_type 23180 23181# Shared library runtime path variable. 23182runpath_var=$runpath_var 23183 23184# Shared library path variable. 23185shlibpath_var=$shlibpath_var 23186 23187# Is shlibpath searched before the hard-coded library search path? 23188shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23189 23190# Format of library name prefix. 23191libname_spec=$lt_libname_spec 23192 23193# List of archive names. First name is the real one, the rest are links. 23194# The last name is the one that the linker finds with -lNAME 23195library_names_spec=$lt_library_names_spec 23196 23197# The coded name of the library, if different from the real name. 23198soname_spec=$lt_soname_spec 23199 23200# Permission mode override for installation of shared libraries. 23201install_override_mode=$lt_install_override_mode 23202 23203# Command to use after installation of a shared archive. 23204postinstall_cmds=$lt_postinstall_cmds 23205 23206# Command to use after uninstallation of a shared archive. 23207postuninstall_cmds=$lt_postuninstall_cmds 23208 23209# Commands used to finish a libtool library installation in a directory. 23210finish_cmds=$lt_finish_cmds 23211 23212# As "finish_cmds", except a single script fragment to be evaled but 23213# not shown. 23214finish_eval=$lt_finish_eval 23215 23216# Whether we should hardcode library paths into libraries. 23217hardcode_into_libs=$hardcode_into_libs 23218 23219# Compile-time system search path for libraries. 23220sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23221 23222# Detected run-time system search path for libraries. 23223sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 23224 23225# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 23226configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 23227 23228# Whether dlopen is supported. 23229dlopen_support=$enable_dlopen 23230 23231# Whether dlopen of programs is supported. 23232dlopen_self=$enable_dlopen_self 23233 23234# Whether dlopen of statically linked programs is supported. 23235dlopen_self_static=$enable_dlopen_self_static 23236 23237# Commands to strip libraries. 23238old_striplib=$lt_old_striplib 23239striplib=$lt_striplib 23240 23241 23242# The linker used to build libraries. 23243LD=$lt_LD 23244 23245# How to create reloadable object files. 23246reload_flag=$lt_reload_flag 23247reload_cmds=$lt_reload_cmds 23248 23249# Commands used to build an old-style archive. 23250old_archive_cmds=$lt_old_archive_cmds 23251 23252# A language specific compiler. 23253CC=$lt_compiler 23254 23255# Is the compiler the GNU compiler? 23256with_gcc=$GCC 23257 23258# Compiler flag to turn off builtin functions. 23259no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23260 23261# Additional compiler flags for building library objects. 23262pic_flag=$lt_lt_prog_compiler_pic 23263 23264# How to pass a linker flag through the compiler. 23265wl=$lt_lt_prog_compiler_wl 23266 23267# Compiler flag to prevent dynamic linking. 23268link_static_flag=$lt_lt_prog_compiler_static 23269 23270# Does compiler simultaneously support -c and -o options? 23271compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23272 23273# Whether or not to add -lc for building shared libraries. 23274build_libtool_need_lc=$archive_cmds_need_lc 23275 23276# Whether or not to disallow shared libs when runtime libs are static. 23277allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23278 23279# Compiler flag to allow reflexive dlopens. 23280export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23281 23282# Compiler flag to generate shared objects directly from archives. 23283whole_archive_flag_spec=$lt_whole_archive_flag_spec 23284 23285# Whether the compiler copes with passing no objects directly. 23286compiler_needs_object=$lt_compiler_needs_object 23287 23288# Create an old-style archive from a shared archive. 23289old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23290 23291# Create a temporary old-style archive to link instead of a shared archive. 23292old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23293 23294# Commands used to build a shared archive. 23295archive_cmds=$lt_archive_cmds 23296archive_expsym_cmds=$lt_archive_expsym_cmds 23297 23298# Commands used to build a loadable module if different from building 23299# a shared archive. 23300module_cmds=$lt_module_cmds 23301module_expsym_cmds=$lt_module_expsym_cmds 23302 23303# Whether we are building with GNU ld or not. 23304with_gnu_ld=$lt_with_gnu_ld 23305 23306# Flag that allows shared libraries with undefined symbols to be built. 23307allow_undefined_flag=$lt_allow_undefined_flag 23308 23309# Flag that enforces no undefined symbols. 23310no_undefined_flag=$lt_no_undefined_flag 23311 23312# Flag to hardcode \$libdir into a binary during linking. 23313# This must work even if \$libdir does not exist 23314hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23315 23316# Whether we need a single "-rpath" flag with a separated argument. 23317hardcode_libdir_separator=$lt_hardcode_libdir_separator 23318 23319# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23320# DIR into the resulting binary. 23321hardcode_direct=$hardcode_direct 23322 23323# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23324# DIR into the resulting binary and the resulting library dependency is 23325# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23326# library is relocated. 23327hardcode_direct_absolute=$hardcode_direct_absolute 23328 23329# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23330# into the resulting binary. 23331hardcode_minus_L=$hardcode_minus_L 23332 23333# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23334# into the resulting binary. 23335hardcode_shlibpath_var=$hardcode_shlibpath_var 23336 23337# Set to "yes" if building a shared library automatically hardcodes DIR 23338# into the library and all subsequent libraries and executables linked 23339# against it. 23340hardcode_automatic=$hardcode_automatic 23341 23342# Set to yes if linker adds runtime paths of dependent libraries 23343# to runtime path list. 23344inherit_rpath=$inherit_rpath 23345 23346# Whether libtool must link a program against all its dependency libraries. 23347link_all_deplibs=$link_all_deplibs 23348 23349# Set to "yes" if exported symbols are required. 23350always_export_symbols=$always_export_symbols 23351 23352# The commands to list exported symbols. 23353export_symbols_cmds=$lt_export_symbols_cmds 23354 23355# Symbols that should not be listed in the preloaded symbols. 23356exclude_expsyms=$lt_exclude_expsyms 23357 23358# Symbols that must always be exported. 23359include_expsyms=$lt_include_expsyms 23360 23361# Commands necessary for linking programs (against libraries) with templates. 23362prelink_cmds=$lt_prelink_cmds 23363 23364# Commands necessary for finishing linking programs. 23365postlink_cmds=$lt_postlink_cmds 23366 23367# Specify filename containing input files. 23368file_list_spec=$lt_file_list_spec 23369 23370# How to hardcode a shared library path into an executable. 23371hardcode_action=$hardcode_action 23372 23373# ### END LIBTOOL CONFIG 23374 23375_LT_EOF 23376 23377 cat <<'_LT_EOF' >> "$cfgfile" 23378 23379# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 23380 23381# func_munge_path_list VARIABLE PATH 23382# ----------------------------------- 23383# VARIABLE is name of variable containing _space_ separated list of 23384# directories to be munged by the contents of PATH, which is string 23385# having a format: 23386# "DIR[:DIR]:" 23387# string "DIR[ DIR]" will be prepended to VARIABLE 23388# ":DIR[:DIR]" 23389# string "DIR[ DIR]" will be appended to VARIABLE 23390# "DIRP[:DIRP]::[DIRA:]DIRA" 23391# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 23392# "DIRA[ DIRA]" will be appended to VARIABLE 23393# "DIR[:DIR]" 23394# VARIABLE will be replaced by "DIR[ DIR]" 23395func_munge_path_list () 23396{ 23397 case x$2 in 23398 x) 23399 ;; 23400 *:) 23401 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 23402 ;; 23403 x:*) 23404 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 23405 ;; 23406 *::*) 23407 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 23408 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 23409 ;; 23410 *) 23411 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 23412 ;; 23413 esac 23414} 23415 23416 23417# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 23418func_cc_basename () 23419{ 23420 for cc_temp in $*""; do 23421 case $cc_temp in 23422 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 23423 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 23424 \-*) ;; 23425 *) break;; 23426 esac 23427 done 23428 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 23429} 23430 23431 23432# ### END FUNCTIONS SHARED WITH CONFIGURE 23433 23434_LT_EOF 23435 23436 case $host_os in 23437 aix3*) 23438 cat <<\_LT_EOF >> "$cfgfile" 23439# AIX sometimes has problems with the GCC collect2 program. For some 23440# reason, if we set the COLLECT_NAMES environment variable, the problems 23441# vanish in a puff of smoke. 23442if test set != "${COLLECT_NAMES+set}"; then 23443 COLLECT_NAMES= 23444 export COLLECT_NAMES 23445fi 23446_LT_EOF 23447 ;; 23448 esac 23449 23450 23451ltmain=$ac_aux_dir/ltmain.sh 23452 23453 23454 # We use sed instead of cat because bash on DJGPP gets confused if 23455 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23456 # text mode, it properly converts lines to CR/LF. This bash problem 23457 # is reportedly fixed, but why not run on old versions too? 23458 sed '$q' "$ltmain" >> "$cfgfile" \ 23459 || (rm -f "$cfgfile"; exit 1) 23460 23461 mv -f "$cfgfile" "$ofile" || 23462 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23463 chmod +x "$ofile" 23464 23465 ;; 23466 23467 esac 23468done # for ac_tag 23469 23470 23471as_fn_exit 0 23472_ACEOF 23473ac_clean_files=$ac_clean_files_save 23474 23475test $ac_write_fail = 0 || 23476 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23477 23478 23479# configure is writing to config.log, and then calls config.status. 23480# config.status does its own redirection, appending to config.log. 23481# Unfortunately, on DOS this fails, as config.log is still kept open 23482# by configure, so config.status won't be able to write to it; its 23483# output is simply discarded. So we exec the FD to /dev/null, 23484# effectively closing config.log, so it can be properly (re)opened and 23485# appended to by config.status. When coming back to configure, we 23486# need to make the FD available again. 23487if test "$no_create" != yes; then 23488 ac_cs_success=: 23489 ac_config_status_args= 23490 test "$silent" = yes && 23491 ac_config_status_args="$ac_config_status_args --quiet" 23492 exec 5>/dev/null 23493 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23494 exec 5>>config.log 23495 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23496 # would make configure fail if this is the last instruction. 23497 $ac_cs_success || as_fn_exit 1 23498fi 23499if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23501$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23502fi 23503 23504 23505{ $as_echo "$as_me:${as_lineno-$LINENO}: 23506 23507cyrus-sasl - $VERSION 23508 23509• Prefix: $prefix 23510• Plugins: $SASL_MECHS 23511 23512Now type 'make' to build $PACKAGE 23513" >&5 23514$as_echo "$as_me: 23515 23516cyrus-sasl - $VERSION 23517 23518• Prefix: $prefix 23519• Plugins: $SASL_MECHS 23520 23521Now type 'make' to build $PACKAGE 23522" >&6;} 23523