1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for courier-authlib 0.71.4. 4# 5# Report bugs to <courier-users@lists.sourceforge.net>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: courier-users@lists.sourceforge.net about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569lt_ltdl_dir='libltdl' 570 571lt_dlopen_dir=$lt_ltdl_dir 572 573 574test -n "$DJDIR" || exec 7<&0 </dev/null 575exec 6>&1 576 577# Name of the host. 578# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 579# so uname gets run too. 580ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 581 582# 583# Initializations. 584# 585ac_default_prefix=/usr/local 586ac_clean_files= 587ac_config_libobj_dir=. 588LIBOBJS= 589cross_compiling=no 590subdirs= 591MFLAGS= 592MAKEFLAGS= 593 594# Identity of this package. 595PACKAGE_NAME='courier-authlib' 596PACKAGE_TARNAME='courier-authlib' 597PACKAGE_VERSION='0.71.4' 598PACKAGE_STRING='courier-authlib 0.71.4' 599PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' 600PACKAGE_URL='' 601 602ac_unique_file="courierauth.h" 603# Factoring default headers for most tests. 604ac_includes_default="\ 605#include <stdio.h> 606#ifdef HAVE_SYS_TYPES_H 607# include <sys/types.h> 608#endif 609#ifdef HAVE_SYS_STAT_H 610# include <sys/stat.h> 611#endif 612#ifdef STDC_HEADERS 613# include <stdlib.h> 614# include <stddef.h> 615#else 616# ifdef HAVE_STDLIB_H 617# include <stdlib.h> 618# endif 619#endif 620#ifdef HAVE_STRING_H 621# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 622# include <memory.h> 623# endif 624# include <string.h> 625#endif 626#ifdef HAVE_STRINGS_H 627# include <strings.h> 628#endif 629#ifdef HAVE_INTTYPES_H 630# include <inttypes.h> 631#endif 632#ifdef HAVE_STDINT_H 633# include <stdint.h> 634#endif 635#ifdef HAVE_UNISTD_H 636# include <unistd.h> 637#endif" 638 639enable_option_checking=no 640ac_subst_vars='ltdl_LTLIBOBJS 641ltdl_LIBOBJS 642am__EXEEXT_FALSE 643am__EXEEXT_TRUE 644LTLIBOBJS 645HAVE_BASE_TRUE 646HAVE_BASE_FALSE 647HAVE_USERDB_TRUE 648HAVE_USERDB_FALSE 649LIBOBJS 650VERSION_INFO 651courierauth_ldflags 652HAVE_SGML_FALSE 653HAVE_SGML_TRUE 654REPOSITORY 655mailgroup 656mailuser 657LIBM 658authdaemonvar 659authdaemonrc 660CRYPTLIBS 661LIBAUTHPIPE 662HAVE_PIPE_FALSE 663HAVE_PIPE_TRUE 664authProg 665LIBAUTHCUSTOM 666HAVE_CUSTOM_FALSE 667HAVE_CUSTOM_TRUE 668HAVE_AUTHSQLITE_FALSE 669HAVE_AUTHSQLITE_TRUE 670LIBAUTHSQLITE 671SQLITE_LIBS 672authsqliterc 673HAVE_AUTHMYSQL_FALSE 674HAVE_AUTHMYSQL_TRUE 675MYSQL_LIBS 676LIBAUTHMYSQL 677MYSQL_CONFIG 678authmysqlrc 679HAVE_AUTHPGSQL_FALSE 680HAVE_AUTHPGSQL_TRUE 681LIBAUTHPGSQL 682PGSQL_LIBS 683PG_CONFIG 684authpgsqlrc 685vpopmail_home 686VPOPMAILLIBS 687LIBAUTHVCHKPW 688LIBAUTHPWD 689LIBAUTHSHADOW 690SHADOWLIBS 691HAVE_LDAP_FALSE 692HAVE_LDAP_TRUE 693LIBAUTHLDAP 694LDAPLIBS 695authldaprc 696LIBAUTHPAM 697AUTHPAMCRYPT 698LIBDL 699userdb 700LIBAUTHUSERDB 701LIBDB 702LIBGDBM 703dblibrary 704USE_DB 705USE_GDBM 706NETLIBS 707PASSWD 708EXPECT 709COURIERCONFIG 710PERL 711LTDLOPEN 712LT_CONFIG_H 713subdirs 714CONVENIENCE_LTDL_FALSE 715CONVENIENCE_LTDL_TRUE 716INSTALL_LTDL_FALSE 717INSTALL_LTDL_TRUE 718LT_ARGZ_H 719sys_symbol_underscore 720LIBADD_DL 721LT_DLPREOPEN 722LIBADD_DLD_LINK 723LIBADD_SHL_LOAD 724LIBADD_DLOPEN 725LT_DLLOADERS 726INCLTDL 727LTDLINCL 728LTDLDEPS 729LIBLTDL 730CXXCPP 731LT_SYS_LIBRARY_PATH 732OTOOL64 733OTOOL 734LIPO 735NMEDIT 736DSYMUTIL 737MANIFEST_TOOL 738RANLIB 739ac_ct_AR 740AR 741DLLTOOL 742OBJDUMP 743NM 744ac_ct_DUMPBIN 745DUMPBIN 746LD 747FGREP 748EGREP 749GREP 750SED 751host_os 752host_vendor 753host_cpu 754host 755build_os 756build_vendor 757build_cpu 758build 759LIBTOOL 760SYSCONFTOOL 761SYSCONFTOOL_PERL 762LN_S 763CPP 764am__fastdepCXX_FALSE 765am__fastdepCXX_TRUE 766CXXDEPMODE 767ac_ct_CXX 768CXXFLAGS 769CXX 770am__fastdepCC_FALSE 771am__fastdepCC_TRUE 772CCDEPMODE 773am__nodep 774AMDEPBACKSLASH 775AMDEP_FALSE 776AMDEP_TRUE 777am__include 778DEPDIR 779OBJEXT 780EXEEXT 781ac_ct_CC 782CPPFLAGS 783LDFLAGS 784CFLAGS 785CC 786AM_BACKSLASH 787AM_DEFAULT_VERBOSITY 788AM_DEFAULT_V 789AM_V 790am__untar 791am__tar 792AMTAR 793am__leading_dot 794SET_MAKE 795AWK 796mkdir_p 797MKDIR_P 798INSTALL_STRIP_PROGRAM 799STRIP 800install_sh 801MAKEINFO 802AUTOHEADER 803AUTOMAKE 804AUTOCONF 805ACLOCAL 806VERSION 807PACKAGE 808CYGPATH_W 809am__isrc 810INSTALL_DATA 811INSTALL_SCRIPT 812INSTALL_PROGRAM 813target_alias 814host_alias 815build_alias 816LIBS 817ECHO_T 818ECHO_N 819ECHO_C 820DEFS 821mandir 822localedir 823libdir 824psdir 825pdfdir 826dvidir 827htmldir 828infodir 829docdir 830oldincludedir 831includedir 832runstatedir 833localstatedir 834sharedstatedir 835sysconfdir 836datadir 837datarootdir 838libexecdir 839sbindir 840bindir 841program_transform_name 842prefix 843exec_prefix 844PACKAGE_URL 845PACKAGE_BUGREPORT 846PACKAGE_STRING 847PACKAGE_VERSION 848PACKAGE_TARNAME 849PACKAGE_NAME 850PATH_SEPARATOR 851SHELL 852am__quote' 853ac_subst_files='' 854ac_user_opts=' 855enable_option_checking 856enable_silent_rules 857enable_dependency_tracking 858enable_shared 859enable_static 860with_pic 861enable_fast_install 862with_aix_soname 863with_gnu_ld 864with_sysroot 865enable_libtool_lock 866with_included_ltdl 867with_ltdl_include 868with_ltdl_lib 869enable_ltdl_install 870with_pkgconfdir 871with_db 872with_authuserdb 873with_makedatprog 874with_userdb 875with_authpam 876with_authpam_libraries 877with_authldap 878with_authldaprc 879with_authpwd 880with_authshadow 881with_authpgsqlrc 882with_authpgsql 883with_pgsql_libs 884with_pgsql_includes 885with_authmysqlrc 886with_authmysql 887with_mysql_libs 888with_mysql_includes 889with_authsqliterc 890with_authsqlite 891with_sqlite_libs 892with_sqlite_includes 893with_authcustom 894with_pipeprog 895with_authpipe 896with_authdaemonrc 897with_authdaemonvar 898with_mailuser 899with_mailgroup 900with_stdheaderdir 901with_repository 902' 903 ac_precious_vars='build_alias 904host_alias 905target_alias 906CC 907CFLAGS 908LDFLAGS 909LIBS 910CPPFLAGS 911CXX 912CXXFLAGS 913CCC 914CPP 915LT_SYS_LIBRARY_PATH 916CXXCPP' 917ac_subdirs_all='libltdl 918libs/bdbobj libs/gdbmobj libs/md5 libs/sha1 libs/libhmac libs/numlib libs/makedat userdb libs/rfc822 libs/random128 libs/liblock liblog' 919 920# Initialize some variables set by options. 921ac_init_help= 922ac_init_version=false 923ac_unrecognized_opts= 924ac_unrecognized_sep= 925# The variables have the same names as the options, with 926# dashes changed to underlines. 927cache_file=/dev/null 928exec_prefix=NONE 929no_create= 930no_recursion= 931prefix=NONE 932program_prefix=NONE 933program_suffix=NONE 934program_transform_name=s,x,x, 935silent= 936site= 937srcdir= 938verbose= 939x_includes=NONE 940x_libraries=NONE 941 942# Installation directory options. 943# These are left unexpanded so users can "make install exec_prefix=/foo" 944# and all the variables that are supposed to be based on exec_prefix 945# by default will actually change. 946# Use braces instead of parens because sh, perl, etc. also accept them. 947# (The list follows the same order as the GNU Coding Standards.) 948bindir='${exec_prefix}/bin' 949sbindir='${exec_prefix}/sbin' 950libexecdir='${exec_prefix}/libexec' 951datarootdir='${prefix}/share' 952datadir='${datarootdir}' 953sysconfdir='${prefix}/etc' 954sharedstatedir='${prefix}/com' 955localstatedir='${prefix}/var' 956runstatedir='${localstatedir}/run' 957includedir='${prefix}/include' 958oldincludedir='/usr/include' 959docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 960infodir='${datarootdir}/info' 961htmldir='${docdir}' 962dvidir='${docdir}' 963pdfdir='${docdir}' 964psdir='${docdir}' 965libdir='${exec_prefix}/lib' 966localedir='${datarootdir}/locale' 967mandir='${datarootdir}/man' 968 969ac_prev= 970ac_dashdash= 971for ac_option 972do 973 # If the previous option needs an argument, assign it. 974 if test -n "$ac_prev"; then 975 eval $ac_prev=\$ac_option 976 ac_prev= 977 continue 978 fi 979 980 case $ac_option in 981 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 982 *=) ac_optarg= ;; 983 *) ac_optarg=yes ;; 984 esac 985 986 # Accept the important Cygnus configure options, so we can diagnose typos. 987 988 case $ac_dashdash$ac_option in 989 --) 990 ac_dashdash=yes ;; 991 992 -bindir | --bindir | --bindi | --bind | --bin | --bi) 993 ac_prev=bindir ;; 994 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 995 bindir=$ac_optarg ;; 996 997 -build | --build | --buil | --bui | --bu) 998 ac_prev=build_alias ;; 999 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1000 build_alias=$ac_optarg ;; 1001 1002 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1003 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1004 ac_prev=cache_file ;; 1005 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1006 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1007 cache_file=$ac_optarg ;; 1008 1009 --config-cache | -C) 1010 cache_file=config.cache ;; 1011 1012 -datadir | --datadir | --datadi | --datad) 1013 ac_prev=datadir ;; 1014 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1015 datadir=$ac_optarg ;; 1016 1017 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1018 | --dataroo | --dataro | --datar) 1019 ac_prev=datarootdir ;; 1020 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1021 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1022 datarootdir=$ac_optarg ;; 1023 1024 -disable-* | --disable-*) 1025 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1026 # Reject names that are not valid shell variable names. 1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1028 as_fn_error $? "invalid feature name: $ac_useropt" 1029 ac_useropt_orig=$ac_useropt 1030 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1031 case $ac_user_opts in 1032 *" 1033"enable_$ac_useropt" 1034"*) ;; 1035 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1036 ac_unrecognized_sep=', ';; 1037 esac 1038 eval enable_$ac_useropt=no ;; 1039 1040 -docdir | --docdir | --docdi | --doc | --do) 1041 ac_prev=docdir ;; 1042 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1043 docdir=$ac_optarg ;; 1044 1045 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1046 ac_prev=dvidir ;; 1047 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1048 dvidir=$ac_optarg ;; 1049 1050 -enable-* | --enable-*) 1051 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1052 # Reject names that are not valid shell variable names. 1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1054 as_fn_error $? "invalid feature name: $ac_useropt" 1055 ac_useropt_orig=$ac_useropt 1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1057 case $ac_user_opts in 1058 *" 1059"enable_$ac_useropt" 1060"*) ;; 1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1062 ac_unrecognized_sep=', ';; 1063 esac 1064 eval enable_$ac_useropt=\$ac_optarg ;; 1065 1066 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1067 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1068 | --exec | --exe | --ex) 1069 ac_prev=exec_prefix ;; 1070 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1071 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1072 | --exec=* | --exe=* | --ex=*) 1073 exec_prefix=$ac_optarg ;; 1074 1075 -gas | --gas | --ga | --g) 1076 # Obsolete; use --with-gas. 1077 with_gas=yes ;; 1078 1079 -help | --help | --hel | --he | -h) 1080 ac_init_help=long ;; 1081 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1082 ac_init_help=recursive ;; 1083 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1084 ac_init_help=short ;; 1085 1086 -host | --host | --hos | --ho) 1087 ac_prev=host_alias ;; 1088 -host=* | --host=* | --hos=* | --ho=*) 1089 host_alias=$ac_optarg ;; 1090 1091 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1092 ac_prev=htmldir ;; 1093 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1094 | --ht=*) 1095 htmldir=$ac_optarg ;; 1096 1097 -includedir | --includedir | --includedi | --included | --include \ 1098 | --includ | --inclu | --incl | --inc) 1099 ac_prev=includedir ;; 1100 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1101 | --includ=* | --inclu=* | --incl=* | --inc=*) 1102 includedir=$ac_optarg ;; 1103 1104 -infodir | --infodir | --infodi | --infod | --info | --inf) 1105 ac_prev=infodir ;; 1106 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1107 infodir=$ac_optarg ;; 1108 1109 -libdir | --libdir | --libdi | --libd) 1110 ac_prev=libdir ;; 1111 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1112 libdir=$ac_optarg ;; 1113 1114 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1115 | --libexe | --libex | --libe) 1116 ac_prev=libexecdir ;; 1117 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1118 | --libexe=* | --libex=* | --libe=*) 1119 libexecdir=$ac_optarg ;; 1120 1121 -localedir | --localedir | --localedi | --localed | --locale) 1122 ac_prev=localedir ;; 1123 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1124 localedir=$ac_optarg ;; 1125 1126 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1127 | --localstate | --localstat | --localsta | --localst | --locals) 1128 ac_prev=localstatedir ;; 1129 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1130 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1131 localstatedir=$ac_optarg ;; 1132 1133 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1134 ac_prev=mandir ;; 1135 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1136 mandir=$ac_optarg ;; 1137 1138 -nfp | --nfp | --nf) 1139 # Obsolete; use --without-fp. 1140 with_fp=no ;; 1141 1142 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1143 | --no-cr | --no-c | -n) 1144 no_create=yes ;; 1145 1146 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1147 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1148 no_recursion=yes ;; 1149 1150 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1151 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1152 | --oldin | --oldi | --old | --ol | --o) 1153 ac_prev=oldincludedir ;; 1154 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1155 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1156 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1157 oldincludedir=$ac_optarg ;; 1158 1159 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1160 ac_prev=prefix ;; 1161 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1162 prefix=$ac_optarg ;; 1163 1164 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1165 | --program-pre | --program-pr | --program-p) 1166 ac_prev=program_prefix ;; 1167 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1168 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1169 program_prefix=$ac_optarg ;; 1170 1171 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1172 | --program-suf | --program-su | --program-s) 1173 ac_prev=program_suffix ;; 1174 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1175 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1176 program_suffix=$ac_optarg ;; 1177 1178 -program-transform-name | --program-transform-name \ 1179 | --program-transform-nam | --program-transform-na \ 1180 | --program-transform-n | --program-transform- \ 1181 | --program-transform | --program-transfor \ 1182 | --program-transfo | --program-transf \ 1183 | --program-trans | --program-tran \ 1184 | --progr-tra | --program-tr | --program-t) 1185 ac_prev=program_transform_name ;; 1186 -program-transform-name=* | --program-transform-name=* \ 1187 | --program-transform-nam=* | --program-transform-na=* \ 1188 | --program-transform-n=* | --program-transform-=* \ 1189 | --program-transform=* | --program-transfor=* \ 1190 | --program-transfo=* | --program-transf=* \ 1191 | --program-trans=* | --program-tran=* \ 1192 | --progr-tra=* | --program-tr=* | --program-t=*) 1193 program_transform_name=$ac_optarg ;; 1194 1195 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1196 ac_prev=pdfdir ;; 1197 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1198 pdfdir=$ac_optarg ;; 1199 1200 -psdir | --psdir | --psdi | --psd | --ps) 1201 ac_prev=psdir ;; 1202 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1203 psdir=$ac_optarg ;; 1204 1205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1206 | -silent | --silent | --silen | --sile | --sil) 1207 silent=yes ;; 1208 1209 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1210 | --runstate | --runstat | --runsta | --runst | --runs \ 1211 | --run | --ru | --r) 1212 ac_prev=runstatedir ;; 1213 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1214 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1215 | --run=* | --ru=* | --r=*) 1216 runstatedir=$ac_optarg ;; 1217 1218 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1219 ac_prev=sbindir ;; 1220 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1221 | --sbi=* | --sb=*) 1222 sbindir=$ac_optarg ;; 1223 1224 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1225 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1226 | --sharedst | --shareds | --shared | --share | --shar \ 1227 | --sha | --sh) 1228 ac_prev=sharedstatedir ;; 1229 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1230 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1231 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1232 | --sha=* | --sh=*) 1233 sharedstatedir=$ac_optarg ;; 1234 1235 -site | --site | --sit) 1236 ac_prev=site ;; 1237 -site=* | --site=* | --sit=*) 1238 site=$ac_optarg ;; 1239 1240 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1241 ac_prev=srcdir ;; 1242 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1243 srcdir=$ac_optarg ;; 1244 1245 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1246 | --syscon | --sysco | --sysc | --sys | --sy) 1247 ac_prev=sysconfdir ;; 1248 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1249 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1250 sysconfdir=$ac_optarg ;; 1251 1252 -target | --target | --targe | --targ | --tar | --ta | --t) 1253 ac_prev=target_alias ;; 1254 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1255 target_alias=$ac_optarg ;; 1256 1257 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1258 verbose=yes ;; 1259 1260 -version | --version | --versio | --versi | --vers | -V) 1261 ac_init_version=: ;; 1262 1263 -with-* | --with-*) 1264 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1265 # Reject names that are not valid shell variable names. 1266 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1267 as_fn_error $? "invalid package name: $ac_useropt" 1268 ac_useropt_orig=$ac_useropt 1269 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1270 case $ac_user_opts in 1271 *" 1272"with_$ac_useropt" 1273"*) ;; 1274 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1275 ac_unrecognized_sep=', ';; 1276 esac 1277 eval with_$ac_useropt=\$ac_optarg ;; 1278 1279 -without-* | --without-*) 1280 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1281 # Reject names that are not valid shell variable names. 1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1283 as_fn_error $? "invalid package name: $ac_useropt" 1284 ac_useropt_orig=$ac_useropt 1285 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1286 case $ac_user_opts in 1287 *" 1288"with_$ac_useropt" 1289"*) ;; 1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1291 ac_unrecognized_sep=', ';; 1292 esac 1293 eval with_$ac_useropt=no ;; 1294 1295 --x) 1296 # Obsolete; use --with-x. 1297 with_x=yes ;; 1298 1299 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1300 | --x-incl | --x-inc | --x-in | --x-i) 1301 ac_prev=x_includes ;; 1302 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1303 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1304 x_includes=$ac_optarg ;; 1305 1306 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1307 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1308 ac_prev=x_libraries ;; 1309 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1310 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1311 x_libraries=$ac_optarg ;; 1312 1313 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1314Try \`$0 --help' for more information" 1315 ;; 1316 1317 *=*) 1318 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1319 # Reject names that are not valid shell variable names. 1320 case $ac_envvar in #( 1321 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1322 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1323 esac 1324 eval $ac_envvar=\$ac_optarg 1325 export $ac_envvar ;; 1326 1327 *) 1328 # FIXME: should be removed in autoconf 3.0. 1329 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1330 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1331 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1332 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1333 ;; 1334 1335 esac 1336done 1337 1338if test -n "$ac_prev"; then 1339 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1340 as_fn_error $? "missing argument to $ac_option" 1341fi 1342 1343if test -n "$ac_unrecognized_opts"; then 1344 case $enable_option_checking in 1345 no) ;; 1346 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1347 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1348 esac 1349fi 1350 1351# Check all directory arguments for consistency. 1352for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1353 datadir sysconfdir sharedstatedir localstatedir includedir \ 1354 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1355 libdir localedir mandir runstatedir 1356do 1357 eval ac_val=\$$ac_var 1358 # Remove trailing slashes. 1359 case $ac_val in 1360 */ ) 1361 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1362 eval $ac_var=\$ac_val;; 1363 esac 1364 # Be sure to have absolute directory names. 1365 case $ac_val in 1366 [\\/$]* | ?:[\\/]* ) continue;; 1367 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1368 esac 1369 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1370done 1371 1372# There might be people who depend on the old broken behavior: `$host' 1373# used to hold the argument of --host etc. 1374# FIXME: To remove some day. 1375build=$build_alias 1376host=$host_alias 1377target=$target_alias 1378 1379# FIXME: To remove some day. 1380if test "x$host_alias" != x; then 1381 if test "x$build_alias" = x; then 1382 cross_compiling=maybe 1383 elif test "x$build_alias" != "x$host_alias"; then 1384 cross_compiling=yes 1385 fi 1386fi 1387 1388ac_tool_prefix= 1389test -n "$host_alias" && ac_tool_prefix=$host_alias- 1390 1391test "$silent" = yes && exec 6>/dev/null 1392 1393 1394ac_pwd=`pwd` && test -n "$ac_pwd" && 1395ac_ls_di=`ls -di .` && 1396ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1397 as_fn_error $? "working directory cannot be determined" 1398test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1399 as_fn_error $? "pwd does not report name of working directory" 1400 1401 1402# Find the source files, if location was not specified. 1403if test -z "$srcdir"; then 1404 ac_srcdir_defaulted=yes 1405 # Try the directory containing this script, then the parent directory. 1406 ac_confdir=`$as_dirname -- "$as_myself" || 1407$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1408 X"$as_myself" : 'X\(//\)[^/]' \| \ 1409 X"$as_myself" : 'X\(//\)$' \| \ 1410 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1411$as_echo X"$as_myself" | 1412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1413 s//\1/ 1414 q 1415 } 1416 /^X\(\/\/\)[^/].*/{ 1417 s//\1/ 1418 q 1419 } 1420 /^X\(\/\/\)$/{ 1421 s//\1/ 1422 q 1423 } 1424 /^X\(\/\).*/{ 1425 s//\1/ 1426 q 1427 } 1428 s/.*/./; q'` 1429 srcdir=$ac_confdir 1430 if test ! -r "$srcdir/$ac_unique_file"; then 1431 srcdir=.. 1432 fi 1433else 1434 ac_srcdir_defaulted=no 1435fi 1436if test ! -r "$srcdir/$ac_unique_file"; then 1437 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1438 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1439fi 1440ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1441ac_abs_confdir=`( 1442 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1443 pwd)` 1444# When building in place, set srcdir=. 1445if test "$ac_abs_confdir" = "$ac_pwd"; then 1446 srcdir=. 1447fi 1448# Remove unnecessary trailing slashes from srcdir. 1449# Double slashes in file names in object file debugging info 1450# mess up M-x gdb in Emacs. 1451case $srcdir in 1452*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1453esac 1454for ac_var in $ac_precious_vars; do 1455 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1456 eval ac_env_${ac_var}_value=\$${ac_var} 1457 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1458 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1459done 1460 1461# 1462# Report the --help message. 1463# 1464if test "$ac_init_help" = "long"; then 1465 # Omit some internal or obsolete options to make the list less imposing. 1466 # This message is too long to be a string in the A/UX 3.1 sh. 1467 cat <<_ACEOF 1468\`configure' configures courier-authlib 0.71.4 to adapt to many kinds of systems. 1469 1470Usage: $0 [OPTION]... [VAR=VALUE]... 1471 1472To assign environment variables (e.g., CC, CFLAGS...), specify them as 1473VAR=VALUE. See below for descriptions of some of the useful variables. 1474 1475Defaults for the options are specified in brackets. 1476 1477Configuration: 1478 -h, --help display this help and exit 1479 --help=short display options specific to this package 1480 --help=recursive display the short help of all the included packages 1481 -V, --version display version information and exit 1482 -q, --quiet, --silent do not print \`checking ...' messages 1483 --cache-file=FILE cache test results in FILE [disabled] 1484 -C, --config-cache alias for \`--cache-file=config.cache' 1485 -n, --no-create do not create output files 1486 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1487 1488Installation directories: 1489 --prefix=PREFIX install architecture-independent files in PREFIX 1490 [$ac_default_prefix] 1491 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1492 [PREFIX] 1493 1494By default, \`make install' will install all the files in 1495\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1496an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1497for instance \`--prefix=\$HOME'. 1498 1499For better control, use the options below. 1500 1501Fine tuning of the installation directories: 1502 --bindir=DIR user executables [EPREFIX/bin] 1503 --sbindir=DIR system admin executables [EPREFIX/sbin] 1504 --libexecdir=DIR program executables [EPREFIX/libexec] 1505 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1506 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1507 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1508 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1509 --libdir=DIR object code libraries [EPREFIX/lib] 1510 --includedir=DIR C header files [PREFIX/include] 1511 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1512 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1513 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1514 --infodir=DIR info documentation [DATAROOTDIR/info] 1515 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1516 --mandir=DIR man documentation [DATAROOTDIR/man] 1517 --docdir=DIR documentation root [DATAROOTDIR/doc/courier-authlib] 1518 --htmldir=DIR html documentation [DOCDIR] 1519 --dvidir=DIR dvi documentation [DOCDIR] 1520 --pdfdir=DIR pdf documentation [DOCDIR] 1521 --psdir=DIR ps documentation [DOCDIR] 1522_ACEOF 1523 1524 cat <<\_ACEOF 1525 1526Program names: 1527 --program-prefix=PREFIX prepend PREFIX to installed program names 1528 --program-suffix=SUFFIX append SUFFIX to installed program names 1529 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1530 1531System types: 1532 --build=BUILD configure for building on BUILD [guessed] 1533 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1534_ACEOF 1535fi 1536 1537if test -n "$ac_init_help"; then 1538 case $ac_init_help in 1539 short | recursive ) echo "Configuration of courier-authlib 0.71.4:";; 1540 esac 1541 cat <<\_ACEOF 1542 1543Optional Features: 1544 --disable-option-checking ignore unrecognized --enable/--with options 1545 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1546 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1547 --enable-silent-rules less verbose build output (undo: "make V=1") 1548 --disable-silent-rules verbose build output (undo: "make V=0") 1549 --enable-dependency-tracking 1550 do not reject slow dependency extractors 1551 --disable-dependency-tracking 1552 speeds up one-time build 1553 --enable-shared[=PKGS] build shared libraries [default=yes] 1554 --enable-static[=PKGS] build static libraries [default=yes] 1555 --enable-fast-install[=PKGS] 1556 optimize for fast installation [default=yes] 1557 --disable-libtool-lock avoid locking (might break parallel builds) 1558 --enable-ltdl-install install libltdl 1559 1560Optional Packages: 1561 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1562 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1563 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1564 both] 1565 --with-aix-soname=aix|svr4|both 1566 shared library versioning (aka "SONAME") variant to 1567 provide on AIX, [default=aix]. 1568 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1569 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1570 compiler's sysroot if not specified). 1571 --with-included-ltdl use the GNU ltdl sources included here 1572 --with-ltdl-include=DIR use the ltdl headers installed in DIR 1573 --with-ltdl-lib=DIR use the libltdl.la installed in DIR 1574 --with-pkgconfdir=d Install config files in directory 1575 --with-db=gdbm Use the GDBM library. 1576 --with-db=db Use the libdb.a library. 1577 --without-authuserdb Do not include the authuserdb module 1578 1579 1580 --without-authpam Do not include the authpam module 1581 --with-authpam-libraries="libs" Link 'libs' with authpam, this may be 1582 required for FreeBSD 3.3 1583 --without-authldap Do not include the authldap module 1584 --with-authldaprc=filename Expect to find authldaprc here 1585 --without-authpwd Do not include the authpwd module 1586 --without-authshadow Do not include the authshadow module 1587 --without-authvchkpw Do not include the authvchkpw module 1588 --with-authpgsqlrc=filename Expect to find authpgsql here 1589 --without-authpgsql Do not include the authpgsql module 1590 --with-pgsql-libs=DIR Look for pgsql libs in this dir 1591 --with-pgsql-includes=DIR Look for pgsql includes in this dir 1592 --with-authmysqlrc=filename Expect to find authmysql here 1593 --without-authmysql Do not include the authmysql module 1594 --with-mysql-libs=DIR Look for mysql libs in this dir 1595 --with-mysql-includes=DIR Look for mysql includes in this dir 1596 --with-authsqliterc=filename Expect to find authmysql here 1597 --without-authsqlite Do not include the authsqlite module 1598 --with-sqlite-libs=DIR Look for sqlite libs in this dir 1599 --with-sqlite-includes=DIR Look for sqlite includes in this dir 1600 --without-authcustom Do not include the authcustom module 1601 --with-pipeprog=filename Expect to find the pipe-prog here 1602 --without-authpipe Do not include the authpipe module 1603 --with-authdaemonrc=filename Expect to find authdaemonrc here 1604 --with-authdaemonvar=directory Directory where authdaemon.pid and 1605 the listening socket is created 1606 --with-mailuser=user Specify mail user name (defaults to 1607 courier, daemon, admin, bin, or root) 1608 --with-mailgroup=group Specify mail group name (defaults to courier, 1609 daemon, sys, adm, or root) 1610 --without-stdheaderdir Header files will be installed into a directory 1611 not in the compiler's default search path. 1612 1613Some influential environment variables: 1614 CC C compiler command 1615 CFLAGS C compiler flags 1616 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1617 nonstandard directory <lib dir> 1618 LIBS libraries to pass to the linker, e.g. -l<library> 1619 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1620 you have headers in a nonstandard directory <include dir> 1621 CXX C++ compiler command 1622 CXXFLAGS C++ compiler flags 1623 CPP C preprocessor 1624 LT_SYS_LIBRARY_PATH 1625 User-defined run-time library search path. 1626 CXXCPP C++ preprocessor 1627 1628Use these variables to override the choices made by `configure' or to help 1629it to find libraries and programs with nonstandard names/locations. 1630 1631Report bugs to <courier-users@lists.sourceforge.net>. 1632_ACEOF 1633ac_status=$? 1634fi 1635 1636if test "$ac_init_help" = "recursive"; then 1637 # If there are subdirs, report their specific --help. 1638 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1639 test -d "$ac_dir" || 1640 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1641 continue 1642 ac_builddir=. 1643 1644case "$ac_dir" in 1645.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1646*) 1647 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1648 # A ".." for each directory in $ac_dir_suffix. 1649 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1650 case $ac_top_builddir_sub in 1651 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1652 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1653 esac ;; 1654esac 1655ac_abs_top_builddir=$ac_pwd 1656ac_abs_builddir=$ac_pwd$ac_dir_suffix 1657# for backward compatibility: 1658ac_top_builddir=$ac_top_build_prefix 1659 1660case $srcdir in 1661 .) # We are building in place. 1662 ac_srcdir=. 1663 ac_top_srcdir=$ac_top_builddir_sub 1664 ac_abs_top_srcdir=$ac_pwd ;; 1665 [\\/]* | ?:[\\/]* ) # Absolute name. 1666 ac_srcdir=$srcdir$ac_dir_suffix; 1667 ac_top_srcdir=$srcdir 1668 ac_abs_top_srcdir=$srcdir ;; 1669 *) # Relative name. 1670 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1671 ac_top_srcdir=$ac_top_build_prefix$srcdir 1672 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1673esac 1674ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1675 1676 cd "$ac_dir" || { ac_status=$?; continue; } 1677 # Check for guested configure. 1678 if test -f "$ac_srcdir/configure.gnu"; then 1679 echo && 1680 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1681 elif test -f "$ac_srcdir/configure"; then 1682 echo && 1683 $SHELL "$ac_srcdir/configure" --help=recursive 1684 else 1685 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1686 fi || ac_status=$? 1687 cd "$ac_pwd" || { ac_status=$?; break; } 1688 done 1689fi 1690 1691test -n "$ac_init_help" && exit $ac_status 1692if $ac_init_version; then 1693 cat <<\_ACEOF 1694courier-authlib configure 0.71.4 1695generated by GNU Autoconf 2.69 1696 1697Copyright (C) 2012 Free Software Foundation, Inc. 1698This configure script is free software; the Free Software Foundation 1699gives unlimited permission to copy, distribute and modify it. 1700_ACEOF 1701 exit 1702fi 1703 1704## ------------------------ ## 1705## Autoconf initialization. ## 1706## ------------------------ ## 1707 1708# ac_fn_c_try_compile LINENO 1709# -------------------------- 1710# Try to compile conftest.$ac_ext, and return whether this succeeded. 1711ac_fn_c_try_compile () 1712{ 1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1714 rm -f conftest.$ac_objext 1715 if { { ac_try="$ac_compile" 1716case "(($ac_try" in 1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1718 *) ac_try_echo=$ac_try;; 1719esac 1720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1721$as_echo "$ac_try_echo"; } >&5 1722 (eval "$ac_compile") 2>conftest.err 1723 ac_status=$? 1724 if test -s conftest.err; then 1725 grep -v '^ *+' conftest.err >conftest.er1 1726 cat conftest.er1 >&5 1727 mv -f conftest.er1 conftest.err 1728 fi 1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1730 test $ac_status = 0; } && { 1731 test -z "$ac_c_werror_flag" || 1732 test ! -s conftest.err 1733 } && test -s conftest.$ac_objext; then : 1734 ac_retval=0 1735else 1736 $as_echo "$as_me: failed program was:" >&5 1737sed 's/^/| /' conftest.$ac_ext >&5 1738 1739 ac_retval=1 1740fi 1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1742 as_fn_set_status $ac_retval 1743 1744} # ac_fn_c_try_compile 1745 1746# ac_fn_cxx_try_compile LINENO 1747# ---------------------------- 1748# Try to compile conftest.$ac_ext, and return whether this succeeded. 1749ac_fn_cxx_try_compile () 1750{ 1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1752 rm -f conftest.$ac_objext 1753 if { { ac_try="$ac_compile" 1754case "(($ac_try" in 1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1756 *) ac_try_echo=$ac_try;; 1757esac 1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1759$as_echo "$ac_try_echo"; } >&5 1760 (eval "$ac_compile") 2>conftest.err 1761 ac_status=$? 1762 if test -s conftest.err; then 1763 grep -v '^ *+' conftest.err >conftest.er1 1764 cat conftest.er1 >&5 1765 mv -f conftest.er1 conftest.err 1766 fi 1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1768 test $ac_status = 0; } && { 1769 test -z "$ac_cxx_werror_flag" || 1770 test ! -s conftest.err 1771 } && test -s conftest.$ac_objext; then : 1772 ac_retval=0 1773else 1774 $as_echo "$as_me: failed program was:" >&5 1775sed 's/^/| /' conftest.$ac_ext >&5 1776 1777 ac_retval=1 1778fi 1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1780 as_fn_set_status $ac_retval 1781 1782} # ac_fn_cxx_try_compile 1783 1784# ac_fn_c_try_cpp LINENO 1785# ---------------------- 1786# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1787ac_fn_c_try_cpp () 1788{ 1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1790 if { { ac_try="$ac_cpp conftest.$ac_ext" 1791case "(($ac_try" in 1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1793 *) ac_try_echo=$ac_try;; 1794esac 1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1796$as_echo "$ac_try_echo"; } >&5 1797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1798 ac_status=$? 1799 if test -s conftest.err; then 1800 grep -v '^ *+' conftest.err >conftest.er1 1801 cat conftest.er1 >&5 1802 mv -f conftest.er1 conftest.err 1803 fi 1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1805 test $ac_status = 0; } > conftest.i && { 1806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1807 test ! -s conftest.err 1808 }; then : 1809 ac_retval=0 1810else 1811 $as_echo "$as_me: failed program was:" >&5 1812sed 's/^/| /' conftest.$ac_ext >&5 1813 1814 ac_retval=1 1815fi 1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1817 as_fn_set_status $ac_retval 1818 1819} # ac_fn_c_try_cpp 1820 1821# ac_fn_c_try_link LINENO 1822# ----------------------- 1823# Try to link conftest.$ac_ext, and return whether this succeeded. 1824ac_fn_c_try_link () 1825{ 1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1827 rm -f conftest.$ac_objext conftest$ac_exeext 1828 if { { ac_try="$ac_link" 1829case "(($ac_try" in 1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1831 *) ac_try_echo=$ac_try;; 1832esac 1833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1834$as_echo "$ac_try_echo"; } >&5 1835 (eval "$ac_link") 2>conftest.err 1836 ac_status=$? 1837 if test -s conftest.err; then 1838 grep -v '^ *+' conftest.err >conftest.er1 1839 cat conftest.er1 >&5 1840 mv -f conftest.er1 conftest.err 1841 fi 1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1843 test $ac_status = 0; } && { 1844 test -z "$ac_c_werror_flag" || 1845 test ! -s conftest.err 1846 } && test -s conftest$ac_exeext && { 1847 test "$cross_compiling" = yes || 1848 test -x conftest$ac_exeext 1849 }; then : 1850 ac_retval=0 1851else 1852 $as_echo "$as_me: failed program was:" >&5 1853sed 's/^/| /' conftest.$ac_ext >&5 1854 1855 ac_retval=1 1856fi 1857 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1858 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1859 # interfere with the next link command; also delete a directory that is 1860 # left behind by Apple's compiler. We do this before executing the actions. 1861 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1863 as_fn_set_status $ac_retval 1864 1865} # ac_fn_c_try_link 1866 1867# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1868# ------------------------------------------------------- 1869# Tests whether HEADER exists and can be compiled using the include files in 1870# INCLUDES, setting the cache variable VAR accordingly. 1871ac_fn_c_check_header_compile () 1872{ 1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1875$as_echo_n "checking for $2... " >&6; } 1876if eval \${$3+:} false; then : 1877 $as_echo_n "(cached) " >&6 1878else 1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1880/* end confdefs.h. */ 1881$4 1882#include <$2> 1883_ACEOF 1884if ac_fn_c_try_compile "$LINENO"; then : 1885 eval "$3=yes" 1886else 1887 eval "$3=no" 1888fi 1889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1890fi 1891eval ac_res=\$$3 1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1893$as_echo "$ac_res" >&6; } 1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1895 1896} # ac_fn_c_check_header_compile 1897 1898# ac_fn_c_try_run LINENO 1899# ---------------------- 1900# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1901# that executables *can* be run. 1902ac_fn_c_try_run () 1903{ 1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1905 if { { ac_try="$ac_link" 1906case "(($ac_try" in 1907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1908 *) ac_try_echo=$ac_try;; 1909esac 1910eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1911$as_echo "$ac_try_echo"; } >&5 1912 (eval "$ac_link") 2>&5 1913 ac_status=$? 1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1915 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1916 { { case "(($ac_try" in 1917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1918 *) ac_try_echo=$ac_try;; 1919esac 1920eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1921$as_echo "$ac_try_echo"; } >&5 1922 (eval "$ac_try") 2>&5 1923 ac_status=$? 1924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1925 test $ac_status = 0; }; }; then : 1926 ac_retval=0 1927else 1928 $as_echo "$as_me: program exited with status $ac_status" >&5 1929 $as_echo "$as_me: failed program was:" >&5 1930sed 's/^/| /' conftest.$ac_ext >&5 1931 1932 ac_retval=$ac_status 1933fi 1934 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1936 as_fn_set_status $ac_retval 1937 1938} # ac_fn_c_try_run 1939 1940# ac_fn_c_check_func LINENO FUNC VAR 1941# ---------------------------------- 1942# Tests whether FUNC exists, setting the cache variable VAR accordingly 1943ac_fn_c_check_func () 1944{ 1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1947$as_echo_n "checking for $2... " >&6; } 1948if eval \${$3+:} false; then : 1949 $as_echo_n "(cached) " >&6 1950else 1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1952/* end confdefs.h. */ 1953/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1954 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1955#define $2 innocuous_$2 1956 1957/* System header to define __stub macros and hopefully few prototypes, 1958 which can conflict with char $2 (); below. 1959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1960 <limits.h> exists even on freestanding compilers. */ 1961 1962#ifdef __STDC__ 1963# include <limits.h> 1964#else 1965# include <assert.h> 1966#endif 1967 1968#undef $2 1969 1970/* Override any GCC internal prototype to avoid an error. 1971 Use char because int might match the return type of a GCC 1972 builtin and then its argument prototype would still apply. */ 1973#ifdef __cplusplus 1974extern "C" 1975#endif 1976char $2 (); 1977/* The GNU C library defines this for functions which it implements 1978 to always fail with ENOSYS. Some functions are actually named 1979 something starting with __ and the normal name is an alias. */ 1980#if defined __stub_$2 || defined __stub___$2 1981choke me 1982#endif 1983 1984int 1985main () 1986{ 1987return $2 (); 1988 ; 1989 return 0; 1990} 1991_ACEOF 1992if ac_fn_c_try_link "$LINENO"; then : 1993 eval "$3=yes" 1994else 1995 eval "$3=no" 1996fi 1997rm -f core conftest.err conftest.$ac_objext \ 1998 conftest$ac_exeext conftest.$ac_ext 1999fi 2000eval ac_res=\$$3 2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2002$as_echo "$ac_res" >&6; } 2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2004 2005} # ac_fn_c_check_func 2006 2007# ac_fn_cxx_try_cpp LINENO 2008# ------------------------ 2009# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2010ac_fn_cxx_try_cpp () 2011{ 2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2013 if { { ac_try="$ac_cpp conftest.$ac_ext" 2014case "(($ac_try" in 2015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2016 *) ac_try_echo=$ac_try;; 2017esac 2018eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2019$as_echo "$ac_try_echo"; } >&5 2020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2021 ac_status=$? 2022 if test -s conftest.err; then 2023 grep -v '^ *+' conftest.err >conftest.er1 2024 cat conftest.er1 >&5 2025 mv -f conftest.er1 conftest.err 2026 fi 2027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2028 test $ac_status = 0; } > conftest.i && { 2029 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2030 test ! -s conftest.err 2031 }; then : 2032 ac_retval=0 2033else 2034 $as_echo "$as_me: failed program was:" >&5 2035sed 's/^/| /' conftest.$ac_ext >&5 2036 2037 ac_retval=1 2038fi 2039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2040 as_fn_set_status $ac_retval 2041 2042} # ac_fn_cxx_try_cpp 2043 2044# ac_fn_cxx_try_link LINENO 2045# ------------------------- 2046# Try to link conftest.$ac_ext, and return whether this succeeded. 2047ac_fn_cxx_try_link () 2048{ 2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2050 rm -f conftest.$ac_objext conftest$ac_exeext 2051 if { { ac_try="$ac_link" 2052case "(($ac_try" in 2053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2054 *) ac_try_echo=$ac_try;; 2055esac 2056eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2057$as_echo "$ac_try_echo"; } >&5 2058 (eval "$ac_link") 2>conftest.err 2059 ac_status=$? 2060 if test -s conftest.err; then 2061 grep -v '^ *+' conftest.err >conftest.er1 2062 cat conftest.er1 >&5 2063 mv -f conftest.er1 conftest.err 2064 fi 2065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2066 test $ac_status = 0; } && { 2067 test -z "$ac_cxx_werror_flag" || 2068 test ! -s conftest.err 2069 } && test -s conftest$ac_exeext && { 2070 test "$cross_compiling" = yes || 2071 test -x conftest$ac_exeext 2072 }; then : 2073 ac_retval=0 2074else 2075 $as_echo "$as_me: failed program was:" >&5 2076sed 's/^/| /' conftest.$ac_ext >&5 2077 2078 ac_retval=1 2079fi 2080 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2081 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2082 # interfere with the next link command; also delete a directory that is 2083 # left behind by Apple's compiler. We do this before executing the actions. 2084 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2085 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2086 as_fn_set_status $ac_retval 2087 2088} # ac_fn_cxx_try_link 2089 2090# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2091# --------------------------------------------- 2092# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2093# accordingly. 2094ac_fn_c_check_decl () 2095{ 2096 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2097 as_decl_name=`echo $2|sed 's/ *(.*//'` 2098 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2100$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2101if eval \${$3+:} false; then : 2102 $as_echo_n "(cached) " >&6 2103else 2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2105/* end confdefs.h. */ 2106$4 2107int 2108main () 2109{ 2110#ifndef $as_decl_name 2111#ifdef __cplusplus 2112 (void) $as_decl_use; 2113#else 2114 (void) $as_decl_name; 2115#endif 2116#endif 2117 2118 ; 2119 return 0; 2120} 2121_ACEOF 2122if ac_fn_c_try_compile "$LINENO"; then : 2123 eval "$3=yes" 2124else 2125 eval "$3=no" 2126fi 2127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2128fi 2129eval ac_res=\$$3 2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2131$as_echo "$ac_res" >&6; } 2132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2133 2134} # ac_fn_c_check_decl 2135 2136# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2137# ------------------------------------------- 2138# Tests whether TYPE exists after having included INCLUDES, setting cache 2139# variable VAR accordingly. 2140ac_fn_c_check_type () 2141{ 2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2144$as_echo_n "checking for $2... " >&6; } 2145if eval \${$3+:} false; then : 2146 $as_echo_n "(cached) " >&6 2147else 2148 eval "$3=no" 2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2150/* end confdefs.h. */ 2151$4 2152int 2153main () 2154{ 2155if (sizeof ($2)) 2156 return 0; 2157 ; 2158 return 0; 2159} 2160_ACEOF 2161if ac_fn_c_try_compile "$LINENO"; then : 2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2163/* end confdefs.h. */ 2164$4 2165int 2166main () 2167{ 2168if (sizeof (($2))) 2169 return 0; 2170 ; 2171 return 0; 2172} 2173_ACEOF 2174if ac_fn_c_try_compile "$LINENO"; then : 2175 2176else 2177 eval "$3=yes" 2178fi 2179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2180fi 2181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2182fi 2183eval ac_res=\$$3 2184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2185$as_echo "$ac_res" >&6; } 2186 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2187 2188} # ac_fn_c_check_type 2189 2190# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2191# ------------------------------------------------------- 2192# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2193# the include files in INCLUDES and setting the cache variable VAR 2194# accordingly. 2195ac_fn_c_check_header_mongrel () 2196{ 2197 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2198 if eval \${$3+:} false; then : 2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2200$as_echo_n "checking for $2... " >&6; } 2201if eval \${$3+:} false; then : 2202 $as_echo_n "(cached) " >&6 2203fi 2204eval ac_res=\$$3 2205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2206$as_echo "$ac_res" >&6; } 2207else 2208 # Is the header compilable? 2209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2210$as_echo_n "checking $2 usability... " >&6; } 2211cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2212/* end confdefs.h. */ 2213$4 2214#include <$2> 2215_ACEOF 2216if ac_fn_c_try_compile "$LINENO"; then : 2217 ac_header_compiler=yes 2218else 2219 ac_header_compiler=no 2220fi 2221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2223$as_echo "$ac_header_compiler" >&6; } 2224 2225# Is the header present? 2226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2227$as_echo_n "checking $2 presence... " >&6; } 2228cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2229/* end confdefs.h. */ 2230#include <$2> 2231_ACEOF 2232if ac_fn_c_try_cpp "$LINENO"; then : 2233 ac_header_preproc=yes 2234else 2235 ac_header_preproc=no 2236fi 2237rm -f conftest.err conftest.i conftest.$ac_ext 2238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2239$as_echo "$ac_header_preproc" >&6; } 2240 2241# So? What about this header? 2242case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2243 yes:no: ) 2244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2245$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2247$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2248 ;; 2249 no:yes:* ) 2250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2251$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2253$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2255$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2257$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2259$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2260( $as_echo "## -------------------------------------------------- ## 2261## Report this to courier-users@lists.sourceforge.net ## 2262## -------------------------------------------------- ##" 2263 ) | sed "s/^/$as_me: WARNING: /" >&2 2264 ;; 2265esac 2266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2267$as_echo_n "checking for $2... " >&6; } 2268if eval \${$3+:} false; then : 2269 $as_echo_n "(cached) " >&6 2270else 2271 eval "$3=\$ac_header_compiler" 2272fi 2273eval ac_res=\$$3 2274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2275$as_echo "$ac_res" >&6; } 2276fi 2277 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2278 2279} # ac_fn_c_check_header_mongrel 2280cat >config.log <<_ACEOF 2281This file contains any messages produced by compilers while 2282running configure, to aid debugging if configure makes a mistake. 2283 2284It was created by courier-authlib $as_me 0.71.4, which was 2285generated by GNU Autoconf 2.69. Invocation command line was 2286 2287 $ $0 $@ 2288 2289_ACEOF 2290exec 5>>config.log 2291{ 2292cat <<_ASUNAME 2293## --------- ## 2294## Platform. ## 2295## --------- ## 2296 2297hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2298uname -m = `(uname -m) 2>/dev/null || echo unknown` 2299uname -r = `(uname -r) 2>/dev/null || echo unknown` 2300uname -s = `(uname -s) 2>/dev/null || echo unknown` 2301uname -v = `(uname -v) 2>/dev/null || echo unknown` 2302 2303/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2304/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2305 2306/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2307/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2308/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2309/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2310/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2311/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2312/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2313 2314_ASUNAME 2315 2316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2317for as_dir in $PATH 2318do 2319 IFS=$as_save_IFS 2320 test -z "$as_dir" && as_dir=. 2321 $as_echo "PATH: $as_dir" 2322 done 2323IFS=$as_save_IFS 2324 2325} >&5 2326 2327cat >&5 <<_ACEOF 2328 2329 2330## ----------- ## 2331## Core tests. ## 2332## ----------- ## 2333 2334_ACEOF 2335 2336 2337# Keep a trace of the command line. 2338# Strip out --no-create and --no-recursion so they do not pile up. 2339# Strip out --silent because we don't want to record it for future runs. 2340# Also quote any args containing shell meta-characters. 2341# Make two passes to allow for proper duplicate-argument suppression. 2342ac_configure_args= 2343ac_configure_args0= 2344ac_configure_args1= 2345ac_must_keep_next=false 2346for ac_pass in 1 2 2347do 2348 for ac_arg 2349 do 2350 case $ac_arg in 2351 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2352 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2353 | -silent | --silent | --silen | --sile | --sil) 2354 continue ;; 2355 *\'*) 2356 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2357 esac 2358 case $ac_pass in 2359 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2360 2) 2361 as_fn_append ac_configure_args1 " '$ac_arg'" 2362 if test $ac_must_keep_next = true; then 2363 ac_must_keep_next=false # Got value, back to normal. 2364 else 2365 case $ac_arg in 2366 *=* | --config-cache | -C | -disable-* | --disable-* \ 2367 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2368 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2369 | -with-* | --with-* | -without-* | --without-* | --x) 2370 case "$ac_configure_args0 " in 2371 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2372 esac 2373 ;; 2374 -* ) ac_must_keep_next=true ;; 2375 esac 2376 fi 2377 as_fn_append ac_configure_args " '$ac_arg'" 2378 ;; 2379 esac 2380 done 2381done 2382{ ac_configure_args0=; unset ac_configure_args0;} 2383{ ac_configure_args1=; unset ac_configure_args1;} 2384 2385# When interrupted or exit'd, cleanup temporary files, and complete 2386# config.log. We remove comments because anyway the quotes in there 2387# would cause problems or look ugly. 2388# WARNING: Use '\'' to represent an apostrophe within the trap. 2389# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2390trap 'exit_status=$? 2391 # Save into config.log some information that might help in debugging. 2392 { 2393 echo 2394 2395 $as_echo "## ---------------- ## 2396## Cache variables. ## 2397## ---------------- ##" 2398 echo 2399 # The following way of writing the cache mishandles newlines in values, 2400( 2401 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2402 eval ac_val=\$$ac_var 2403 case $ac_val in #( 2404 *${as_nl}*) 2405 case $ac_var in #( 2406 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2407$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2408 esac 2409 case $ac_var in #( 2410 _ | IFS | as_nl) ;; #( 2411 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2412 *) { eval $ac_var=; unset $ac_var;} ;; 2413 esac ;; 2414 esac 2415 done 2416 (set) 2>&1 | 2417 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2418 *${as_nl}ac_space=\ *) 2419 sed -n \ 2420 "s/'\''/'\''\\\\'\'''\''/g; 2421 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2422 ;; #( 2423 *) 2424 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2425 ;; 2426 esac | 2427 sort 2428) 2429 echo 2430 2431 $as_echo "## ----------------- ## 2432## Output variables. ## 2433## ----------------- ##" 2434 echo 2435 for ac_var in $ac_subst_vars 2436 do 2437 eval ac_val=\$$ac_var 2438 case $ac_val in 2439 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2440 esac 2441 $as_echo "$ac_var='\''$ac_val'\''" 2442 done | sort 2443 echo 2444 2445 if test -n "$ac_subst_files"; then 2446 $as_echo "## ------------------- ## 2447## File substitutions. ## 2448## ------------------- ##" 2449 echo 2450 for ac_var in $ac_subst_files 2451 do 2452 eval ac_val=\$$ac_var 2453 case $ac_val in 2454 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2455 esac 2456 $as_echo "$ac_var='\''$ac_val'\''" 2457 done | sort 2458 echo 2459 fi 2460 2461 if test -s confdefs.h; then 2462 $as_echo "## ----------- ## 2463## confdefs.h. ## 2464## ----------- ##" 2465 echo 2466 cat confdefs.h 2467 echo 2468 fi 2469 test "$ac_signal" != 0 && 2470 $as_echo "$as_me: caught signal $ac_signal" 2471 $as_echo "$as_me: exit $exit_status" 2472 } >&5 2473 rm -f core *.core core.conftest.* && 2474 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2475 exit $exit_status 2476' 0 2477for ac_signal in 1 2 13 15; do 2478 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2479done 2480ac_signal=0 2481 2482# confdefs.h avoids OS command line length limits that DEFS can exceed. 2483rm -f -r conftest* confdefs.h 2484 2485$as_echo "/* confdefs.h */" > confdefs.h 2486 2487# Predefined preprocessor variables. 2488 2489cat >>confdefs.h <<_ACEOF 2490#define PACKAGE_NAME "$PACKAGE_NAME" 2491_ACEOF 2492 2493cat >>confdefs.h <<_ACEOF 2494#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2495_ACEOF 2496 2497cat >>confdefs.h <<_ACEOF 2498#define PACKAGE_VERSION "$PACKAGE_VERSION" 2499_ACEOF 2500 2501cat >>confdefs.h <<_ACEOF 2502#define PACKAGE_STRING "$PACKAGE_STRING" 2503_ACEOF 2504 2505cat >>confdefs.h <<_ACEOF 2506#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2507_ACEOF 2508 2509cat >>confdefs.h <<_ACEOF 2510#define PACKAGE_URL "$PACKAGE_URL" 2511_ACEOF 2512 2513 2514# Let the site file select an alternate cache file if it wants to. 2515# Prefer an explicitly selected file to automatically selected ones. 2516ac_site_file1=NONE 2517ac_site_file2=NONE 2518if test -n "$CONFIG_SITE"; then 2519 # We do not want a PATH search for config.site. 2520 case $CONFIG_SITE in #(( 2521 -*) ac_site_file1=./$CONFIG_SITE;; 2522 */*) ac_site_file1=$CONFIG_SITE;; 2523 *) ac_site_file1=./$CONFIG_SITE;; 2524 esac 2525elif test "x$prefix" != xNONE; then 2526 ac_site_file1=$prefix/share/config.site 2527 ac_site_file2=$prefix/etc/config.site 2528else 2529 ac_site_file1=$ac_default_prefix/share/config.site 2530 ac_site_file2=$ac_default_prefix/etc/config.site 2531fi 2532for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2533do 2534 test "x$ac_site_file" = xNONE && continue 2535 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2536 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2537$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2538 sed 's/^/| /' "$ac_site_file" >&5 2539 . "$ac_site_file" \ 2540 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2542as_fn_error $? "failed to load site script $ac_site_file 2543See \`config.log' for more details" "$LINENO" 5; } 2544 fi 2545done 2546 2547if test -r "$cache_file"; then 2548 # Some versions of bash will fail to source /dev/null (special files 2549 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2550 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2551 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2552$as_echo "$as_me: loading cache $cache_file" >&6;} 2553 case $cache_file in 2554 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2555 *) . "./$cache_file";; 2556 esac 2557 fi 2558else 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2560$as_echo "$as_me: creating cache $cache_file" >&6;} 2561 >$cache_file 2562fi 2563 2564# Check that the precious variables saved in the cache have kept the same 2565# value. 2566ac_cache_corrupted=false 2567for ac_var in $ac_precious_vars; do 2568 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2569 eval ac_new_set=\$ac_env_${ac_var}_set 2570 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2571 eval ac_new_val=\$ac_env_${ac_var}_value 2572 case $ac_old_set,$ac_new_set in 2573 set,) 2574 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2575$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2576 ac_cache_corrupted=: ;; 2577 ,set) 2578 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2579$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2580 ac_cache_corrupted=: ;; 2581 ,);; 2582 *) 2583 if test "x$ac_old_val" != "x$ac_new_val"; then 2584 # differences in whitespace do not lead to failure. 2585 ac_old_val_w=`echo x $ac_old_val` 2586 ac_new_val_w=`echo x $ac_new_val` 2587 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2589$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2590 ac_cache_corrupted=: 2591 else 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2593$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2594 eval $ac_var=\$ac_old_val 2595 fi 2596 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2597$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2598 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2599$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2600 fi;; 2601 esac 2602 # Pass precious variables to config.status. 2603 if test "$ac_new_set" = set; then 2604 case $ac_new_val in 2605 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2606 *) ac_arg=$ac_var=$ac_new_val ;; 2607 esac 2608 case " $ac_configure_args " in 2609 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2610 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2611 esac 2612 fi 2613done 2614if $ac_cache_corrupted; then 2615 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2618$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2619 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2620fi 2621## -------------------- ## 2622## Main body of script. ## 2623## -------------------- ## 2624 2625ac_ext=c 2626ac_cpp='$CPP $CPPFLAGS' 2627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2629ac_compiler_gnu=$ac_cv_c_compiler_gnu 2630 2631 2632 2633 2634 2635am__api_version='1.16' 2636 2637ac_aux_dir= 2638for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2639 if test -f "$ac_dir/install-sh"; then 2640 ac_aux_dir=$ac_dir 2641 ac_install_sh="$ac_aux_dir/install-sh -c" 2642 break 2643 elif test -f "$ac_dir/install.sh"; then 2644 ac_aux_dir=$ac_dir 2645 ac_install_sh="$ac_aux_dir/install.sh -c" 2646 break 2647 elif test -f "$ac_dir/shtool"; then 2648 ac_aux_dir=$ac_dir 2649 ac_install_sh="$ac_aux_dir/shtool install -c" 2650 break 2651 fi 2652done 2653if test -z "$ac_aux_dir"; then 2654 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2655fi 2656 2657# These three variables are undocumented and unsupported, 2658# and are intended to be withdrawn in a future Autoconf release. 2659# They can cause serious problems if a builder's source tree is in a directory 2660# whose full name contains unusual characters. 2661ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2662ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2663ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2664 2665 2666# Find a good install program. We prefer a C program (faster), 2667# so one script is as good as another. But avoid the broken or 2668# incompatible versions: 2669# SysV /etc/install, /usr/sbin/install 2670# SunOS /usr/etc/install 2671# IRIX /sbin/install 2672# AIX /bin/install 2673# AmigaOS /C/install, which installs bootblocks on floppy discs 2674# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2675# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2676# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2677# OS/2's system install, which has a completely different semantic 2678# ./install, which can be erroneously created by make from ./install.sh. 2679# Reject install programs that cannot install multiple files. 2680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2681$as_echo_n "checking for a BSD-compatible install... " >&6; } 2682if test -z "$INSTALL"; then 2683if ${ac_cv_path_install+:} false; then : 2684 $as_echo_n "(cached) " >&6 2685else 2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2687for as_dir in $PATH 2688do 2689 IFS=$as_save_IFS 2690 test -z "$as_dir" && as_dir=. 2691 # Account for people who put trailing slashes in PATH elements. 2692case $as_dir/ in #(( 2693 ./ | .// | /[cC]/* | \ 2694 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2695 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2696 /usr/ucb/* ) ;; 2697 *) 2698 # OSF1 and SCO ODT 3.0 have their own names for install. 2699 # Don't use installbsd from OSF since it installs stuff as root 2700 # by default. 2701 for ac_prog in ginstall scoinst install; do 2702 for ac_exec_ext in '' $ac_executable_extensions; do 2703 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2704 if test $ac_prog = install && 2705 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2706 # AIX install. It has an incompatible calling convention. 2707 : 2708 elif test $ac_prog = install && 2709 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2710 # program-specific install script used by HP pwplus--don't use. 2711 : 2712 else 2713 rm -rf conftest.one conftest.two conftest.dir 2714 echo one > conftest.one 2715 echo two > conftest.two 2716 mkdir conftest.dir 2717 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2718 test -s conftest.one && test -s conftest.two && 2719 test -s conftest.dir/conftest.one && 2720 test -s conftest.dir/conftest.two 2721 then 2722 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2723 break 3 2724 fi 2725 fi 2726 fi 2727 done 2728 done 2729 ;; 2730esac 2731 2732 done 2733IFS=$as_save_IFS 2734 2735rm -rf conftest.one conftest.two conftest.dir 2736 2737fi 2738 if test "${ac_cv_path_install+set}" = set; then 2739 INSTALL=$ac_cv_path_install 2740 else 2741 # As a last resort, use the slow shell script. Don't cache a 2742 # value for INSTALL within a source directory, because that will 2743 # break other packages using the cache if that directory is 2744 # removed, or if the value is a relative name. 2745 INSTALL=$ac_install_sh 2746 fi 2747fi 2748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2749$as_echo "$INSTALL" >&6; } 2750 2751# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2752# It thinks the first close brace ends the variable substitution. 2753test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2754 2755test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2756 2757test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2758 2759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2760$as_echo_n "checking whether build environment is sane... " >&6; } 2761# Reject unsafe characters in $srcdir or the absolute working directory 2762# name. Accept space and tab only in the latter. 2763am_lf=' 2764' 2765case `pwd` in 2766 *[\\\"\#\$\&\'\`$am_lf]*) 2767 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2768esac 2769case $srcdir in 2770 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2771 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2772esac 2773 2774# Do 'set' in a subshell so we don't clobber the current shell's 2775# arguments. Must try -L first in case configure is actually a 2776# symlink; some systems play weird games with the mod time of symlinks 2777# (eg FreeBSD returns the mod time of the symlink's containing 2778# directory). 2779if ( 2780 am_has_slept=no 2781 for am_try in 1 2; do 2782 echo "timestamp, slept: $am_has_slept" > conftest.file 2783 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2784 if test "$*" = "X"; then 2785 # -L didn't work. 2786 set X `ls -t "$srcdir/configure" conftest.file` 2787 fi 2788 if test "$*" != "X $srcdir/configure conftest.file" \ 2789 && test "$*" != "X conftest.file $srcdir/configure"; then 2790 2791 # If neither matched, then we have a broken ls. This can happen 2792 # if, for instance, CONFIG_SHELL is bash and it inherits a 2793 # broken ls alias from the environment. This has actually 2794 # happened. Such a system could not be considered "sane". 2795 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2796 alias in your environment" "$LINENO" 5 2797 fi 2798 if test "$2" = conftest.file || test $am_try -eq 2; then 2799 break 2800 fi 2801 # Just in case. 2802 sleep 1 2803 am_has_slept=yes 2804 done 2805 test "$2" = conftest.file 2806 ) 2807then 2808 # Ok. 2809 : 2810else 2811 as_fn_error $? "newly created file is older than distributed files! 2812Check your system clock" "$LINENO" 5 2813fi 2814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2815$as_echo "yes" >&6; } 2816# If we didn't sleep, we still need to ensure time stamps of config.status and 2817# generated files are strictly newer. 2818am_sleep_pid= 2819if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2820 ( sleep 1 ) & 2821 am_sleep_pid=$! 2822fi 2823 2824rm -f conftest.file 2825 2826test "$program_prefix" != NONE && 2827 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2828# Use a double $ so make ignores it. 2829test "$program_suffix" != NONE && 2830 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2831# Double any \ or $. 2832# By default was `s,x,x', remove it if useless. 2833ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2834program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2835 2836# Expand $ac_aux_dir to an absolute path. 2837am_aux_dir=`cd "$ac_aux_dir" && pwd` 2838 2839if test x"${MISSING+set}" != xset; then 2840 case $am_aux_dir in 2841 *\ * | *\ *) 2842 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2843 *) 2844 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2845 esac 2846fi 2847# Use eval to expand $SHELL 2848if eval "$MISSING --is-lightweight"; then 2849 am_missing_run="$MISSING " 2850else 2851 am_missing_run= 2852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2853$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2854fi 2855 2856if test x"${install_sh+set}" != xset; then 2857 case $am_aux_dir in 2858 *\ * | *\ *) 2859 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2860 *) 2861 install_sh="\${SHELL} $am_aux_dir/install-sh" 2862 esac 2863fi 2864 2865# Installed binaries are usually stripped using 'strip' when the user 2866# run "make install-strip". However 'strip' might not be the right 2867# tool to use in cross-compilation environments, therefore Automake 2868# will honor the 'STRIP' environment variable to overrule this program. 2869if test "$cross_compiling" != no; then 2870 if test -n "$ac_tool_prefix"; then 2871 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2872set dummy ${ac_tool_prefix}strip; ac_word=$2 2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2874$as_echo_n "checking for $ac_word... " >&6; } 2875if ${ac_cv_prog_STRIP+:} false; then : 2876 $as_echo_n "(cached) " >&6 2877else 2878 if test -n "$STRIP"; then 2879 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2880else 2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2882for as_dir in $PATH 2883do 2884 IFS=$as_save_IFS 2885 test -z "$as_dir" && as_dir=. 2886 for ac_exec_ext in '' $ac_executable_extensions; do 2887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2888 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2890 break 2 2891 fi 2892done 2893 done 2894IFS=$as_save_IFS 2895 2896fi 2897fi 2898STRIP=$ac_cv_prog_STRIP 2899if test -n "$STRIP"; then 2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2901$as_echo "$STRIP" >&6; } 2902else 2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2904$as_echo "no" >&6; } 2905fi 2906 2907 2908fi 2909if test -z "$ac_cv_prog_STRIP"; then 2910 ac_ct_STRIP=$STRIP 2911 # Extract the first word of "strip", so it can be a program name with args. 2912set dummy strip; ac_word=$2 2913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2914$as_echo_n "checking for $ac_word... " >&6; } 2915if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2916 $as_echo_n "(cached) " >&6 2917else 2918 if test -n "$ac_ct_STRIP"; then 2919 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2920else 2921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2922for as_dir in $PATH 2923do 2924 IFS=$as_save_IFS 2925 test -z "$as_dir" && as_dir=. 2926 for ac_exec_ext in '' $ac_executable_extensions; do 2927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2928 ac_cv_prog_ac_ct_STRIP="strip" 2929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2930 break 2 2931 fi 2932done 2933 done 2934IFS=$as_save_IFS 2935 2936fi 2937fi 2938ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2939if test -n "$ac_ct_STRIP"; then 2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2941$as_echo "$ac_ct_STRIP" >&6; } 2942else 2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2944$as_echo "no" >&6; } 2945fi 2946 2947 if test "x$ac_ct_STRIP" = x; then 2948 STRIP=":" 2949 else 2950 case $cross_compiling:$ac_tool_warned in 2951yes:) 2952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2954ac_tool_warned=yes ;; 2955esac 2956 STRIP=$ac_ct_STRIP 2957 fi 2958else 2959 STRIP="$ac_cv_prog_STRIP" 2960fi 2961 2962fi 2963INSTALL_STRIP_PROGRAM="${INSTALL_PROGRAM} -s" 2964 2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2966$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2967if test -z "$MKDIR_P"; then 2968 if ${ac_cv_path_mkdir+:} false; then : 2969 $as_echo_n "(cached) " >&6 2970else 2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2972for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2973do 2974 IFS=$as_save_IFS 2975 test -z "$as_dir" && as_dir=. 2976 for ac_prog in mkdir gmkdir; do 2977 for ac_exec_ext in '' $ac_executable_extensions; do 2978 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2979 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2980 'mkdir (GNU coreutils) '* | \ 2981 'mkdir (coreutils) '* | \ 2982 'mkdir (fileutils) '4.1*) 2983 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2984 break 3;; 2985 esac 2986 done 2987 done 2988 done 2989IFS=$as_save_IFS 2990 2991fi 2992 2993 test -d ./--version && rmdir ./--version 2994 if test "${ac_cv_path_mkdir+set}" = set; then 2995 MKDIR_P="$ac_cv_path_mkdir -p" 2996 else 2997 # As a last resort, use the slow shell script. Don't cache a 2998 # value for MKDIR_P within a source directory, because that will 2999 # break other packages using the cache if that directory is 3000 # removed, or if the value is a relative name. 3001 MKDIR_P="$ac_install_sh -d" 3002 fi 3003fi 3004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3005$as_echo "$MKDIR_P" >&6; } 3006 3007for ac_prog in gawk mawk nawk awk 3008do 3009 # Extract the first word of "$ac_prog", so it can be a program name with args. 3010set dummy $ac_prog; ac_word=$2 3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3012$as_echo_n "checking for $ac_word... " >&6; } 3013if ${ac_cv_prog_AWK+:} false; then : 3014 $as_echo_n "(cached) " >&6 3015else 3016 if test -n "$AWK"; then 3017 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3018else 3019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3020for as_dir in $PATH 3021do 3022 IFS=$as_save_IFS 3023 test -z "$as_dir" && as_dir=. 3024 for ac_exec_ext in '' $ac_executable_extensions; do 3025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3026 ac_cv_prog_AWK="$ac_prog" 3027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3028 break 2 3029 fi 3030done 3031 done 3032IFS=$as_save_IFS 3033 3034fi 3035fi 3036AWK=$ac_cv_prog_AWK 3037if test -n "$AWK"; then 3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3039$as_echo "$AWK" >&6; } 3040else 3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3042$as_echo "no" >&6; } 3043fi 3044 3045 3046 test -n "$AWK" && break 3047done 3048 3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3050$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3051set x ${MAKE-make} 3052ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3053if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3054 $as_echo_n "(cached) " >&6 3055else 3056 cat >conftest.make <<\_ACEOF 3057SHELL = /bin/sh 3058all: 3059 @echo '@@@%%%=$(MAKE)=@@@%%%' 3060_ACEOF 3061# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3062case `${MAKE-make} -f conftest.make 2>/dev/null` in 3063 *@@@%%%=?*=@@@%%%*) 3064 eval ac_cv_prog_make_${ac_make}_set=yes;; 3065 *) 3066 eval ac_cv_prog_make_${ac_make}_set=no;; 3067esac 3068rm -f conftest.make 3069fi 3070if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3072$as_echo "yes" >&6; } 3073 SET_MAKE= 3074else 3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3076$as_echo "no" >&6; } 3077 SET_MAKE="MAKE=${MAKE-make}" 3078fi 3079 3080rm -rf .tst 2>/dev/null 3081mkdir .tst 2>/dev/null 3082if test -d .tst; then 3083 am__leading_dot=. 3084else 3085 am__leading_dot=_ 3086fi 3087rmdir .tst 2>/dev/null 3088 3089# Check whether --enable-silent-rules was given. 3090if test "${enable_silent_rules+set}" = set; then : 3091 enableval=$enable_silent_rules; 3092fi 3093 3094case $enable_silent_rules in # ((( 3095 yes) AM_DEFAULT_VERBOSITY=0;; 3096 no) AM_DEFAULT_VERBOSITY=1;; 3097 *) AM_DEFAULT_VERBOSITY=1;; 3098esac 3099am_make=${MAKE-make} 3100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3101$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3102if ${am_cv_make_support_nested_variables+:} false; then : 3103 $as_echo_n "(cached) " >&6 3104else 3105 if $as_echo 'TRUE=$(BAR$(V)) 3106BAR0=false 3107BAR1=true 3108V=1 3109am__doit: 3110 @$(TRUE) 3111.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3112 am_cv_make_support_nested_variables=yes 3113else 3114 am_cv_make_support_nested_variables=no 3115fi 3116fi 3117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3118$as_echo "$am_cv_make_support_nested_variables" >&6; } 3119if test $am_cv_make_support_nested_variables = yes; then 3120 AM_V='$(V)' 3121 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3122else 3123 AM_V=$AM_DEFAULT_VERBOSITY 3124 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3125fi 3126AM_BACKSLASH='\' 3127 3128if test "`cd $srcdir && pwd`" != "`pwd`"; then 3129 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3130 # is not polluted with repeated "-I." 3131 am__isrc=' -I$(srcdir)' 3132 # test to see if srcdir already configured 3133 if test -f $srcdir/config.status; then 3134 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3135 fi 3136fi 3137 3138# test whether we have cygpath 3139if test -z "$CYGPATH_W"; then 3140 if (cygpath --version) >/dev/null 2>/dev/null; then 3141 CYGPATH_W='cygpath -w' 3142 else 3143 CYGPATH_W=echo 3144 fi 3145fi 3146 3147 3148# Define the identity of the package. 3149 PACKAGE='courier-authlib' 3150 VERSION='0.71.4' 3151 3152 3153cat >>confdefs.h <<_ACEOF 3154#define PACKAGE "$PACKAGE" 3155_ACEOF 3156 3157 3158cat >>confdefs.h <<_ACEOF 3159#define VERSION "$VERSION" 3160_ACEOF 3161 3162# Some tools Automake needs. 3163 3164ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3165 3166 3167AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3168 3169 3170AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3171 3172 3173AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3174 3175 3176MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3177 3178# For better backward compatibility. To be removed once Automake 1.9.x 3179# dies out for good. For more background, see: 3180# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3181# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3182mkdir_p='$(MKDIR_P)' 3183 3184# We need awk for the "check" target (and possibly the TAP driver). The 3185# system "awk" is bad on some platforms. 3186# Always define AMTAR for backward compatibility. Yes, it's still used 3187# in the wild :-( We should find a proper way to deprecate it ... 3188AMTAR='$${TAR-tar}' 3189 3190 3191# We'll loop over all known methods to create a tar archive until one works. 3192_am_tools='gnutar pax cpio none' 3193 3194am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3195 3196 3197 3198 3199 3200 3201# POSIX will say in a future version that running "rm -f" with no argument 3202# is OK; and we want to be able to make that assumption in our Makefile 3203# recipes. So use an aggressive probe to check that the usage we want is 3204# actually supported "in the wild" to an acceptable degree. 3205# See automake bug#10828. 3206# To make any issue more visible, cause the running configure to be aborted 3207# by default if the 'rm' program in use doesn't match our expectations; the 3208# user can still override this though. 3209if rm -f && rm -fr && rm -rf; then : OK; else 3210 cat >&2 <<'END' 3211Oops! 3212 3213Your 'rm' program seems unable to run without file operands specified 3214on the command line, even when the '-f' option is present. This is contrary 3215to the behaviour of most rm programs out there, and not conforming with 3216the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3217 3218Please tell bug-automake@gnu.org about your system, including the value 3219of your $PATH and any error possibly output before this message. This 3220can help us improve future automake versions. 3221 3222END 3223 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3224 echo 'Configuration will proceed anyway, since you have set the' >&2 3225 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3226 echo >&2 3227 else 3228 cat >&2 <<'END' 3229Aborting the configuration process, to ensure you take notice of the issue. 3230 3231You can download and install GNU coreutils to get an 'rm' implementation 3232that behaves properly: <https://www.gnu.org/software/coreutils/>. 3233 3234If you want to complete the configuration process using your problematic 3235'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3236to "yes", and re-run configure. 3237 3238END 3239 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3240 fi 3241fi 3242 3243ac_config_headers="$ac_config_headers courier_auth_config.h" 3244 3245>confdefs.h # Kill PACKAGE_ macros 3246 3247LPATH="$PATH:/usr/local/bin" 3248 3249for ac_prog in gawk mawk nawk awk 3250do 3251 # Extract the first word of "$ac_prog", so it can be a program name with args. 3252set dummy $ac_prog; ac_word=$2 3253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3254$as_echo_n "checking for $ac_word... " >&6; } 3255if ${ac_cv_prog_AWK+:} false; then : 3256 $as_echo_n "(cached) " >&6 3257else 3258 if test -n "$AWK"; then 3259 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3260else 3261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3262for as_dir in $PATH 3263do 3264 IFS=$as_save_IFS 3265 test -z "$as_dir" && as_dir=. 3266 for ac_exec_ext in '' $ac_executable_extensions; do 3267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3268 ac_cv_prog_AWK="$ac_prog" 3269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3270 break 2 3271 fi 3272done 3273 done 3274IFS=$as_save_IFS 3275 3276fi 3277fi 3278AWK=$ac_cv_prog_AWK 3279if test -n "$AWK"; then 3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3281$as_echo "$AWK" >&6; } 3282else 3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3284$as_echo "no" >&6; } 3285fi 3286 3287 3288 test -n "$AWK" && break 3289done 3290 3291ac_ext=c 3292ac_cpp='$CPP $CPPFLAGS' 3293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3295ac_compiler_gnu=$ac_cv_c_compiler_gnu 3296if test -n "$ac_tool_prefix"; then 3297 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3298set dummy ${ac_tool_prefix}gcc; ac_word=$2 3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3300$as_echo_n "checking for $ac_word... " >&6; } 3301if ${ac_cv_prog_CC+:} false; then : 3302 $as_echo_n "(cached) " >&6 3303else 3304 if test -n "$CC"; then 3305 ac_cv_prog_CC="$CC" # Let the user override the test. 3306else 3307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3308for as_dir in $PATH 3309do 3310 IFS=$as_save_IFS 3311 test -z "$as_dir" && as_dir=. 3312 for ac_exec_ext in '' $ac_executable_extensions; do 3313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3314 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3316 break 2 3317 fi 3318done 3319 done 3320IFS=$as_save_IFS 3321 3322fi 3323fi 3324CC=$ac_cv_prog_CC 3325if test -n "$CC"; then 3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3327$as_echo "$CC" >&6; } 3328else 3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3330$as_echo "no" >&6; } 3331fi 3332 3333 3334fi 3335if test -z "$ac_cv_prog_CC"; then 3336 ac_ct_CC=$CC 3337 # Extract the first word of "gcc", so it can be a program name with args. 3338set dummy gcc; ac_word=$2 3339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3340$as_echo_n "checking for $ac_word... " >&6; } 3341if ${ac_cv_prog_ac_ct_CC+:} false; then : 3342 $as_echo_n "(cached) " >&6 3343else 3344 if test -n "$ac_ct_CC"; then 3345 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3346else 3347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3348for as_dir in $PATH 3349do 3350 IFS=$as_save_IFS 3351 test -z "$as_dir" && as_dir=. 3352 for ac_exec_ext in '' $ac_executable_extensions; do 3353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3354 ac_cv_prog_ac_ct_CC="gcc" 3355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3356 break 2 3357 fi 3358done 3359 done 3360IFS=$as_save_IFS 3361 3362fi 3363fi 3364ac_ct_CC=$ac_cv_prog_ac_ct_CC 3365if test -n "$ac_ct_CC"; then 3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3367$as_echo "$ac_ct_CC" >&6; } 3368else 3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3370$as_echo "no" >&6; } 3371fi 3372 3373 if test "x$ac_ct_CC" = x; then 3374 CC="" 3375 else 3376 case $cross_compiling:$ac_tool_warned in 3377yes:) 3378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3380ac_tool_warned=yes ;; 3381esac 3382 CC=$ac_ct_CC 3383 fi 3384else 3385 CC="$ac_cv_prog_CC" 3386fi 3387 3388if test -z "$CC"; then 3389 if test -n "$ac_tool_prefix"; then 3390 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3391set dummy ${ac_tool_prefix}cc; ac_word=$2 3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3393$as_echo_n "checking for $ac_word... " >&6; } 3394if ${ac_cv_prog_CC+:} false; then : 3395 $as_echo_n "(cached) " >&6 3396else 3397 if test -n "$CC"; then 3398 ac_cv_prog_CC="$CC" # Let the user override the test. 3399else 3400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3401for as_dir in $PATH 3402do 3403 IFS=$as_save_IFS 3404 test -z "$as_dir" && as_dir=. 3405 for ac_exec_ext in '' $ac_executable_extensions; do 3406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3407 ac_cv_prog_CC="${ac_tool_prefix}cc" 3408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3409 break 2 3410 fi 3411done 3412 done 3413IFS=$as_save_IFS 3414 3415fi 3416fi 3417CC=$ac_cv_prog_CC 3418if test -n "$CC"; then 3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3420$as_echo "$CC" >&6; } 3421else 3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3423$as_echo "no" >&6; } 3424fi 3425 3426 3427 fi 3428fi 3429if test -z "$CC"; then 3430 # Extract the first word of "cc", so it can be a program name with args. 3431set dummy cc; ac_word=$2 3432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3433$as_echo_n "checking for $ac_word... " >&6; } 3434if ${ac_cv_prog_CC+:} false; then : 3435 $as_echo_n "(cached) " >&6 3436else 3437 if test -n "$CC"; then 3438 ac_cv_prog_CC="$CC" # Let the user override the test. 3439else 3440 ac_prog_rejected=no 3441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3442for as_dir in $PATH 3443do 3444 IFS=$as_save_IFS 3445 test -z "$as_dir" && as_dir=. 3446 for ac_exec_ext in '' $ac_executable_extensions; do 3447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3448 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3449 ac_prog_rejected=yes 3450 continue 3451 fi 3452 ac_cv_prog_CC="cc" 3453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3454 break 2 3455 fi 3456done 3457 done 3458IFS=$as_save_IFS 3459 3460if test $ac_prog_rejected = yes; then 3461 # We found a bogon in the path, so make sure we never use it. 3462 set dummy $ac_cv_prog_CC 3463 shift 3464 if test $# != 0; then 3465 # We chose a different compiler from the bogus one. 3466 # However, it has the same basename, so the bogon will be chosen 3467 # first if we set CC to just the basename; use the full file name. 3468 shift 3469 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3470 fi 3471fi 3472fi 3473fi 3474CC=$ac_cv_prog_CC 3475if test -n "$CC"; then 3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3477$as_echo "$CC" >&6; } 3478else 3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3480$as_echo "no" >&6; } 3481fi 3482 3483 3484fi 3485if test -z "$CC"; then 3486 if test -n "$ac_tool_prefix"; then 3487 for ac_prog in cl.exe 3488 do 3489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3490set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3492$as_echo_n "checking for $ac_word... " >&6; } 3493if ${ac_cv_prog_CC+:} false; then : 3494 $as_echo_n "(cached) " >&6 3495else 3496 if test -n "$CC"; then 3497 ac_cv_prog_CC="$CC" # Let the user override the test. 3498else 3499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3500for as_dir in $PATH 3501do 3502 IFS=$as_save_IFS 3503 test -z "$as_dir" && as_dir=. 3504 for ac_exec_ext in '' $ac_executable_extensions; do 3505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3506 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3508 break 2 3509 fi 3510done 3511 done 3512IFS=$as_save_IFS 3513 3514fi 3515fi 3516CC=$ac_cv_prog_CC 3517if test -n "$CC"; then 3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3519$as_echo "$CC" >&6; } 3520else 3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3522$as_echo "no" >&6; } 3523fi 3524 3525 3526 test -n "$CC" && break 3527 done 3528fi 3529if test -z "$CC"; then 3530 ac_ct_CC=$CC 3531 for ac_prog in cl.exe 3532do 3533 # Extract the first word of "$ac_prog", so it can be a program name with args. 3534set dummy $ac_prog; ac_word=$2 3535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3536$as_echo_n "checking for $ac_word... " >&6; } 3537if ${ac_cv_prog_ac_ct_CC+:} false; then : 3538 $as_echo_n "(cached) " >&6 3539else 3540 if test -n "$ac_ct_CC"; then 3541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3542else 3543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3544for as_dir in $PATH 3545do 3546 IFS=$as_save_IFS 3547 test -z "$as_dir" && as_dir=. 3548 for ac_exec_ext in '' $ac_executable_extensions; do 3549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3550 ac_cv_prog_ac_ct_CC="$ac_prog" 3551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3552 break 2 3553 fi 3554done 3555 done 3556IFS=$as_save_IFS 3557 3558fi 3559fi 3560ac_ct_CC=$ac_cv_prog_ac_ct_CC 3561if test -n "$ac_ct_CC"; then 3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3563$as_echo "$ac_ct_CC" >&6; } 3564else 3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3566$as_echo "no" >&6; } 3567fi 3568 3569 3570 test -n "$ac_ct_CC" && break 3571done 3572 3573 if test "x$ac_ct_CC" = x; then 3574 CC="" 3575 else 3576 case $cross_compiling:$ac_tool_warned in 3577yes:) 3578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3580ac_tool_warned=yes ;; 3581esac 3582 CC=$ac_ct_CC 3583 fi 3584fi 3585 3586fi 3587 3588 3589test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3590$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3591as_fn_error $? "no acceptable C compiler found in \$PATH 3592See \`config.log' for more details" "$LINENO" 5; } 3593 3594# Provide some information about the compiler. 3595$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3596set X $ac_compile 3597ac_compiler=$2 3598for ac_option in --version -v -V -qversion; do 3599 { { ac_try="$ac_compiler $ac_option >&5" 3600case "(($ac_try" in 3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3602 *) ac_try_echo=$ac_try;; 3603esac 3604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3605$as_echo "$ac_try_echo"; } >&5 3606 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3607 ac_status=$? 3608 if test -s conftest.err; then 3609 sed '10a\ 3610... rest of stderr output deleted ... 3611 10q' conftest.err >conftest.er1 3612 cat conftest.er1 >&5 3613 fi 3614 rm -f conftest.er1 conftest.err 3615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3616 test $ac_status = 0; } 3617done 3618 3619cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3620/* end confdefs.h. */ 3621 3622int 3623main () 3624{ 3625 3626 ; 3627 return 0; 3628} 3629_ACEOF 3630ac_clean_files_save=$ac_clean_files 3631ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3632# Try to create an executable without -o first, disregard a.out. 3633# It will help us diagnose broken compilers, and finding out an intuition 3634# of exeext. 3635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3636$as_echo_n "checking whether the C compiler works... " >&6; } 3637ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3638 3639# The possible output files: 3640ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3641 3642ac_rmfiles= 3643for ac_file in $ac_files 3644do 3645 case $ac_file in 3646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3647 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3648 esac 3649done 3650rm -f $ac_rmfiles 3651 3652if { { ac_try="$ac_link_default" 3653case "(($ac_try" in 3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3655 *) ac_try_echo=$ac_try;; 3656esac 3657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3658$as_echo "$ac_try_echo"; } >&5 3659 (eval "$ac_link_default") 2>&5 3660 ac_status=$? 3661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3662 test $ac_status = 0; }; then : 3663 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3664# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3665# in a Makefile. We should not override ac_cv_exeext if it was cached, 3666# so that the user can short-circuit this test for compilers unknown to 3667# Autoconf. 3668for ac_file in $ac_files '' 3669do 3670 test -f "$ac_file" || continue 3671 case $ac_file in 3672 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3673 ;; 3674 [ab].out ) 3675 # We found the default executable, but exeext='' is most 3676 # certainly right. 3677 break;; 3678 *.* ) 3679 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3680 then :; else 3681 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3682 fi 3683 # We set ac_cv_exeext here because the later test for it is not 3684 # safe: cross compilers may not add the suffix if given an `-o' 3685 # argument, so we may need to know it at that point already. 3686 # Even if this section looks crufty: it has the advantage of 3687 # actually working. 3688 break;; 3689 * ) 3690 break;; 3691 esac 3692done 3693test "$ac_cv_exeext" = no && ac_cv_exeext= 3694 3695else 3696 ac_file='' 3697fi 3698if test -z "$ac_file"; then : 3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3700$as_echo "no" >&6; } 3701$as_echo "$as_me: failed program was:" >&5 3702sed 's/^/| /' conftest.$ac_ext >&5 3703 3704{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3705$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3706as_fn_error 77 "C compiler cannot create executables 3707See \`config.log' for more details" "$LINENO" 5; } 3708else 3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3710$as_echo "yes" >&6; } 3711fi 3712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3713$as_echo_n "checking for C compiler default output file name... " >&6; } 3714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3715$as_echo "$ac_file" >&6; } 3716ac_exeext=$ac_cv_exeext 3717 3718rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3719ac_clean_files=$ac_clean_files_save 3720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3721$as_echo_n "checking for suffix of executables... " >&6; } 3722if { { ac_try="$ac_link" 3723case "(($ac_try" in 3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3725 *) ac_try_echo=$ac_try;; 3726esac 3727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3728$as_echo "$ac_try_echo"; } >&5 3729 (eval "$ac_link") 2>&5 3730 ac_status=$? 3731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3732 test $ac_status = 0; }; then : 3733 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3734# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3735# work properly (i.e., refer to `conftest.exe'), while it won't with 3736# `rm'. 3737for ac_file in conftest.exe conftest conftest.*; do 3738 test -f "$ac_file" || continue 3739 case $ac_file in 3740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3741 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3742 break;; 3743 * ) break;; 3744 esac 3745done 3746else 3747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3749as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3750See \`config.log' for more details" "$LINENO" 5; } 3751fi 3752rm -f conftest conftest$ac_cv_exeext 3753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3754$as_echo "$ac_cv_exeext" >&6; } 3755 3756rm -f conftest.$ac_ext 3757EXEEXT=$ac_cv_exeext 3758ac_exeext=$EXEEXT 3759cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3760/* end confdefs.h. */ 3761#include <stdio.h> 3762int 3763main () 3764{ 3765FILE *f = fopen ("conftest.out", "w"); 3766 return ferror (f) || fclose (f) != 0; 3767 3768 ; 3769 return 0; 3770} 3771_ACEOF 3772ac_clean_files="$ac_clean_files conftest.out" 3773# Check that the compiler produces executables we can run. If not, either 3774# the compiler is broken, or we cross compile. 3775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3776$as_echo_n "checking whether we are cross compiling... " >&6; } 3777if test "$cross_compiling" != yes; then 3778 { { ac_try="$ac_link" 3779case "(($ac_try" in 3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3781 *) ac_try_echo=$ac_try;; 3782esac 3783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3784$as_echo "$ac_try_echo"; } >&5 3785 (eval "$ac_link") 2>&5 3786 ac_status=$? 3787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3788 test $ac_status = 0; } 3789 if { ac_try='./conftest$ac_cv_exeext' 3790 { { case "(($ac_try" in 3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3792 *) ac_try_echo=$ac_try;; 3793esac 3794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3795$as_echo "$ac_try_echo"; } >&5 3796 (eval "$ac_try") 2>&5 3797 ac_status=$? 3798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3799 test $ac_status = 0; }; }; then 3800 cross_compiling=no 3801 else 3802 if test "$cross_compiling" = maybe; then 3803 cross_compiling=yes 3804 else 3805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3806$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3807as_fn_error $? "cannot run C compiled programs. 3808If you meant to cross compile, use \`--host'. 3809See \`config.log' for more details" "$LINENO" 5; } 3810 fi 3811 fi 3812fi 3813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3814$as_echo "$cross_compiling" >&6; } 3815 3816rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3817ac_clean_files=$ac_clean_files_save 3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3819$as_echo_n "checking for suffix of object files... " >&6; } 3820if ${ac_cv_objext+:} false; then : 3821 $as_echo_n "(cached) " >&6 3822else 3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3824/* end confdefs.h. */ 3825 3826int 3827main () 3828{ 3829 3830 ; 3831 return 0; 3832} 3833_ACEOF 3834rm -f conftest.o conftest.obj 3835if { { ac_try="$ac_compile" 3836case "(($ac_try" in 3837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3838 *) ac_try_echo=$ac_try;; 3839esac 3840eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3841$as_echo "$ac_try_echo"; } >&5 3842 (eval "$ac_compile") 2>&5 3843 ac_status=$? 3844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3845 test $ac_status = 0; }; then : 3846 for ac_file in conftest.o conftest.obj conftest.*; do 3847 test -f "$ac_file" || continue; 3848 case $ac_file in 3849 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3850 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3851 break;; 3852 esac 3853done 3854else 3855 $as_echo "$as_me: failed program was:" >&5 3856sed 's/^/| /' conftest.$ac_ext >&5 3857 3858{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3859$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3860as_fn_error $? "cannot compute suffix of object files: cannot compile 3861See \`config.log' for more details" "$LINENO" 5; } 3862fi 3863rm -f conftest.$ac_cv_objext conftest.$ac_ext 3864fi 3865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3866$as_echo "$ac_cv_objext" >&6; } 3867OBJEXT=$ac_cv_objext 3868ac_objext=$OBJEXT 3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3870$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3871if ${ac_cv_c_compiler_gnu+:} false; then : 3872 $as_echo_n "(cached) " >&6 3873else 3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3875/* end confdefs.h. */ 3876 3877int 3878main () 3879{ 3880#ifndef __GNUC__ 3881 choke me 3882#endif 3883 3884 ; 3885 return 0; 3886} 3887_ACEOF 3888if ac_fn_c_try_compile "$LINENO"; then : 3889 ac_compiler_gnu=yes 3890else 3891 ac_compiler_gnu=no 3892fi 3893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3894ac_cv_c_compiler_gnu=$ac_compiler_gnu 3895 3896fi 3897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3898$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3899if test $ac_compiler_gnu = yes; then 3900 GCC=yes 3901else 3902 GCC= 3903fi 3904ac_test_CFLAGS=${CFLAGS+set} 3905ac_save_CFLAGS=$CFLAGS 3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3907$as_echo_n "checking whether $CC accepts -g... " >&6; } 3908if ${ac_cv_prog_cc_g+:} false; then : 3909 $as_echo_n "(cached) " >&6 3910else 3911 ac_save_c_werror_flag=$ac_c_werror_flag 3912 ac_c_werror_flag=yes 3913 ac_cv_prog_cc_g=no 3914 CFLAGS="-g" 3915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3916/* end confdefs.h. */ 3917 3918int 3919main () 3920{ 3921 3922 ; 3923 return 0; 3924} 3925_ACEOF 3926if ac_fn_c_try_compile "$LINENO"; then : 3927 ac_cv_prog_cc_g=yes 3928else 3929 CFLAGS="" 3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3931/* end confdefs.h. */ 3932 3933int 3934main () 3935{ 3936 3937 ; 3938 return 0; 3939} 3940_ACEOF 3941if ac_fn_c_try_compile "$LINENO"; then : 3942 3943else 3944 ac_c_werror_flag=$ac_save_c_werror_flag 3945 CFLAGS="-g" 3946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3947/* end confdefs.h. */ 3948 3949int 3950main () 3951{ 3952 3953 ; 3954 return 0; 3955} 3956_ACEOF 3957if ac_fn_c_try_compile "$LINENO"; then : 3958 ac_cv_prog_cc_g=yes 3959fi 3960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3961fi 3962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3963fi 3964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3965 ac_c_werror_flag=$ac_save_c_werror_flag 3966fi 3967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3968$as_echo "$ac_cv_prog_cc_g" >&6; } 3969if test "$ac_test_CFLAGS" = set; then 3970 CFLAGS=$ac_save_CFLAGS 3971elif test $ac_cv_prog_cc_g = yes; then 3972 if test "$GCC" = yes; then 3973 CFLAGS="-g -O2" 3974 else 3975 CFLAGS="-g" 3976 fi 3977else 3978 if test "$GCC" = yes; then 3979 CFLAGS="-O2" 3980 else 3981 CFLAGS= 3982 fi 3983fi 3984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3985$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3986if ${ac_cv_prog_cc_c89+:} false; then : 3987 $as_echo_n "(cached) " >&6 3988else 3989 ac_cv_prog_cc_c89=no 3990ac_save_CC=$CC 3991cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3992/* end confdefs.h. */ 3993#include <stdarg.h> 3994#include <stdio.h> 3995struct stat; 3996/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3997struct buf { int x; }; 3998FILE * (*rcsopen) (struct buf *, struct stat *, int); 3999static char *e (p, i) 4000 char **p; 4001 int i; 4002{ 4003 return p[i]; 4004} 4005static char *f (char * (*g) (char **, int), char **p, ...) 4006{ 4007 char *s; 4008 va_list v; 4009 va_start (v,p); 4010 s = g (p, va_arg (v,int)); 4011 va_end (v); 4012 return s; 4013} 4014 4015/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4016 function prototypes and stuff, but not '\xHH' hex character constants. 4017 These don't provoke an error unfortunately, instead are silently treated 4018 as 'x'. The following induces an error, until -std is added to get 4019 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4020 array size at least. It's necessary to write '\x00'==0 to get something 4021 that's true only with -std. */ 4022int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4023 4024/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4025 inside strings and character constants. */ 4026#define FOO(x) 'x' 4027int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4028 4029int test (int i, double x); 4030struct s1 {int (*f) (int a);}; 4031struct s2 {int (*f) (double a);}; 4032int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4033int argc; 4034char **argv; 4035int 4036main () 4037{ 4038return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4039 ; 4040 return 0; 4041} 4042_ACEOF 4043for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4044 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4045do 4046 CC="$ac_save_CC $ac_arg" 4047 if ac_fn_c_try_compile "$LINENO"; then : 4048 ac_cv_prog_cc_c89=$ac_arg 4049fi 4050rm -f core conftest.err conftest.$ac_objext 4051 test "x$ac_cv_prog_cc_c89" != "xno" && break 4052done 4053rm -f conftest.$ac_ext 4054CC=$ac_save_CC 4055 4056fi 4057# AC_CACHE_VAL 4058case "x$ac_cv_prog_cc_c89" in 4059 x) 4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4061$as_echo "none needed" >&6; } ;; 4062 xno) 4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4064$as_echo "unsupported" >&6; } ;; 4065 *) 4066 CC="$CC $ac_cv_prog_cc_c89" 4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4068$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4069esac 4070if test "x$ac_cv_prog_cc_c89" != xno; then : 4071 4072fi 4073 4074ac_ext=c 4075ac_cpp='$CPP $CPPFLAGS' 4076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4078ac_compiler_gnu=$ac_cv_c_compiler_gnu 4079 4080ac_ext=c 4081ac_cpp='$CPP $CPPFLAGS' 4082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4084ac_compiler_gnu=$ac_cv_c_compiler_gnu 4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4086$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4087if ${am_cv_prog_cc_c_o+:} false; then : 4088 $as_echo_n "(cached) " >&6 4089else 4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4091/* end confdefs.h. */ 4092 4093int 4094main () 4095{ 4096 4097 ; 4098 return 0; 4099} 4100_ACEOF 4101 # Make sure it works both with $CC and with simple cc. 4102 # Following AC_PROG_CC_C_O, we do the test twice because some 4103 # compilers refuse to overwrite an existing .o file with -o, 4104 # though they will create one. 4105 am_cv_prog_cc_c_o=yes 4106 for am_i in 1 2; do 4107 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4108 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4109 ac_status=$? 4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4111 (exit $ac_status); } \ 4112 && test -f conftest2.$ac_objext; then 4113 : OK 4114 else 4115 am_cv_prog_cc_c_o=no 4116 break 4117 fi 4118 done 4119 rm -f core conftest* 4120 unset am_i 4121fi 4122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4123$as_echo "$am_cv_prog_cc_c_o" >&6; } 4124if test "$am_cv_prog_cc_c_o" != yes; then 4125 # Losing compiler, so override with the script. 4126 # FIXME: It is wrong to rewrite CC. 4127 # But if we don't then we get into trouble of one sort or another. 4128 # A longer-term fix would be to have automake use am__CC in this case, 4129 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4130 CC="$am_aux_dir/compile $CC" 4131fi 4132ac_ext=c 4133ac_cpp='$CPP $CPPFLAGS' 4134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4136ac_compiler_gnu=$ac_cv_c_compiler_gnu 4137 4138DEPDIR="${am__leading_dot}deps" 4139 4140ac_config_commands="$ac_config_commands depfiles" 4141 4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4143$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 4144cat > confinc.mk << 'END' 4145am__doit: 4146 @echo this is the am__doit target >confinc.out 4147.PHONY: am__doit 4148END 4149am__include="#" 4150am__quote= 4151# BSD make does it like this. 4152echo '.include "confinc.mk" # ignored' > confmf.BSD 4153# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4154echo 'include confinc.mk # ignored' > confmf.GNU 4155_am_result=no 4156for s in GNU BSD; do 4157 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4158 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4159 ac_status=$? 4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4161 (exit $ac_status); } 4162 case $?:`cat confinc.out 2>/dev/null` in #( 4163 '0:this is the am__doit target') : 4164 case $s in #( 4165 BSD) : 4166 am__include='.include' am__quote='"' ;; #( 4167 *) : 4168 am__include='include' am__quote='' ;; 4169esac ;; #( 4170 *) : 4171 ;; 4172esac 4173 if test "$am__include" != "#"; then 4174 _am_result="yes ($s style)" 4175 break 4176 fi 4177done 4178rm -f confinc.* confmf.* 4179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4180$as_echo "${_am_result}" >&6; } 4181 4182# Check whether --enable-dependency-tracking was given. 4183if test "${enable_dependency_tracking+set}" = set; then : 4184 enableval=$enable_dependency_tracking; 4185fi 4186 4187if test "x$enable_dependency_tracking" != xno; then 4188 am_depcomp="$ac_aux_dir/depcomp" 4189 AMDEPBACKSLASH='\' 4190 am__nodep='_no' 4191fi 4192 if test "x$enable_dependency_tracking" != xno; then 4193 AMDEP_TRUE= 4194 AMDEP_FALSE='#' 4195else 4196 AMDEP_TRUE='#' 4197 AMDEP_FALSE= 4198fi 4199 4200 4201 4202depcc="$CC" am_compiler_list= 4203 4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4205$as_echo_n "checking dependency style of $depcc... " >&6; } 4206if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4207 $as_echo_n "(cached) " >&6 4208else 4209 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4210 # We make a subdir and do the tests there. Otherwise we can end up 4211 # making bogus files that we don't know about and never remove. For 4212 # instance it was reported that on HP-UX the gcc test will end up 4213 # making a dummy file named 'D' -- because '-MD' means "put the output 4214 # in D". 4215 rm -rf conftest.dir 4216 mkdir conftest.dir 4217 # Copy depcomp to subdir because otherwise we won't find it if we're 4218 # using a relative directory. 4219 cp "$am_depcomp" conftest.dir 4220 cd conftest.dir 4221 # We will build objects and dependencies in a subdirectory because 4222 # it helps to detect inapplicable dependency modes. For instance 4223 # both Tru64's cc and ICC support -MD to output dependencies as a 4224 # side effect of compilation, but ICC will put the dependencies in 4225 # the current directory while Tru64 will put them in the object 4226 # directory. 4227 mkdir sub 4228 4229 am_cv_CC_dependencies_compiler_type=none 4230 if test "$am_compiler_list" = ""; then 4231 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4232 fi 4233 am__universal=false 4234 case " $depcc " in #( 4235 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4236 esac 4237 4238 for depmode in $am_compiler_list; do 4239 # Setup a source with many dependencies, because some compilers 4240 # like to wrap large dependency lists on column 80 (with \), and 4241 # we should not choose a depcomp mode which is confused by this. 4242 # 4243 # We need to recreate these files for each test, as the compiler may 4244 # overwrite some of them when testing with obscure command lines. 4245 # This happens at least with the AIX C compiler. 4246 : > sub/conftest.c 4247 for i in 1 2 3 4 5 6; do 4248 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4249 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4250 # Solaris 10 /bin/sh. 4251 echo '/* dummy */' > sub/conftst$i.h 4252 done 4253 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4254 4255 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4256 # mode. It turns out that the SunPro C++ compiler does not properly 4257 # handle '-M -o', and we need to detect this. Also, some Intel 4258 # versions had trouble with output in subdirs. 4259 am__obj=sub/conftest.${OBJEXT-o} 4260 am__minus_obj="-o $am__obj" 4261 case $depmode in 4262 gcc) 4263 # This depmode causes a compiler race in universal mode. 4264 test "$am__universal" = false || continue 4265 ;; 4266 nosideeffect) 4267 # After this tag, mechanisms are not by side-effect, so they'll 4268 # only be used when explicitly requested. 4269 if test "x$enable_dependency_tracking" = xyes; then 4270 continue 4271 else 4272 break 4273 fi 4274 ;; 4275 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4276 # This compiler won't grok '-c -o', but also, the minuso test has 4277 # not run yet. These depmodes are late enough in the game, and 4278 # so weak that their functioning should not be impacted. 4279 am__obj=conftest.${OBJEXT-o} 4280 am__minus_obj= 4281 ;; 4282 none) break ;; 4283 esac 4284 if depmode=$depmode \ 4285 source=sub/conftest.c object=$am__obj \ 4286 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4287 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4288 >/dev/null 2>conftest.err && 4289 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4290 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4291 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4292 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4293 # icc doesn't choke on unknown options, it will just issue warnings 4294 # or remarks (even with -Werror). So we grep stderr for any message 4295 # that says an option was ignored or not supported. 4296 # When given -MP, icc 7.0 and 7.1 complain thusly: 4297 # icc: Command line warning: ignoring option '-M'; no argument required 4298 # The diagnosis changed in icc 8.0: 4299 # icc: Command line remark: option '-MP' not supported 4300 if (grep 'ignoring option' conftest.err || 4301 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4302 am_cv_CC_dependencies_compiler_type=$depmode 4303 break 4304 fi 4305 fi 4306 done 4307 4308 cd .. 4309 rm -rf conftest.dir 4310else 4311 am_cv_CC_dependencies_compiler_type=none 4312fi 4313 4314fi 4315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4316$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4317CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4318 4319 if 4320 test "x$enable_dependency_tracking" != xno \ 4321 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4322 am__fastdepCC_TRUE= 4323 am__fastdepCC_FALSE='#' 4324else 4325 am__fastdepCC_TRUE='#' 4326 am__fastdepCC_FALSE= 4327fi 4328 4329 4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4331$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4332if ${ac_cv_prog_cc_c99+:} false; then : 4333 $as_echo_n "(cached) " >&6 4334else 4335 ac_cv_prog_cc_c99=no 4336ac_save_CC=$CC 4337cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4338/* end confdefs.h. */ 4339#include <stdarg.h> 4340#include <stdbool.h> 4341#include <stdlib.h> 4342#include <wchar.h> 4343#include <stdio.h> 4344 4345// Check varargs macros. These examples are taken from C99 6.10.3.5. 4346#define debug(...) fprintf (stderr, __VA_ARGS__) 4347#define showlist(...) puts (#__VA_ARGS__) 4348#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4349static void 4350test_varargs_macros (void) 4351{ 4352 int x = 1234; 4353 int y = 5678; 4354 debug ("Flag"); 4355 debug ("X = %d\n", x); 4356 showlist (The first, second, and third items.); 4357 report (x>y, "x is %d but y is %d", x, y); 4358} 4359 4360// Check long long types. 4361#define BIG64 18446744073709551615ull 4362#define BIG32 4294967295ul 4363#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4364#if !BIG_OK 4365 your preprocessor is broken; 4366#endif 4367#if BIG_OK 4368#else 4369 your preprocessor is broken; 4370#endif 4371static long long int bignum = -9223372036854775807LL; 4372static unsigned long long int ubignum = BIG64; 4373 4374struct incomplete_array 4375{ 4376 int datasize; 4377 double data[]; 4378}; 4379 4380struct named_init { 4381 int number; 4382 const wchar_t *name; 4383 double average; 4384}; 4385 4386typedef const char *ccp; 4387 4388static inline int 4389test_restrict (ccp restrict text) 4390{ 4391 // See if C++-style comments work. 4392 // Iterate through items via the restricted pointer. 4393 // Also check for declarations in for loops. 4394 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4395 continue; 4396 return 0; 4397} 4398 4399// Check varargs and va_copy. 4400static void 4401test_varargs (const char *format, ...) 4402{ 4403 va_list args; 4404 va_start (args, format); 4405 va_list args_copy; 4406 va_copy (args_copy, args); 4407 4408 const char *str; 4409 int number; 4410 float fnumber; 4411 4412 while (*format) 4413 { 4414 switch (*format++) 4415 { 4416 case 's': // string 4417 str = va_arg (args_copy, const char *); 4418 break; 4419 case 'd': // int 4420 number = va_arg (args_copy, int); 4421 break; 4422 case 'f': // float 4423 fnumber = va_arg (args_copy, double); 4424 break; 4425 default: 4426 break; 4427 } 4428 } 4429 va_end (args_copy); 4430 va_end (args); 4431} 4432 4433int 4434main () 4435{ 4436 4437 // Check bool. 4438 _Bool success = false; 4439 4440 // Check restrict. 4441 if (test_restrict ("String literal") == 0) 4442 success = true; 4443 char *restrict newvar = "Another string"; 4444 4445 // Check varargs. 4446 test_varargs ("s, d' f .", "string", 65, 34.234); 4447 test_varargs_macros (); 4448 4449 // Check flexible array members. 4450 struct incomplete_array *ia = 4451 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4452 ia->datasize = 10; 4453 for (int i = 0; i < ia->datasize; ++i) 4454 ia->data[i] = i * 1.234; 4455 4456 // Check named initializers. 4457 struct named_init ni = { 4458 .number = 34, 4459 .name = L"Test wide string", 4460 .average = 543.34343, 4461 }; 4462 4463 ni.number = 58; 4464 4465 int dynamic_array[ni.number]; 4466 dynamic_array[ni.number - 1] = 543; 4467 4468 // work around unused variable warnings 4469 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4470 || dynamic_array[ni.number - 1] != 543); 4471 4472 ; 4473 return 0; 4474} 4475_ACEOF 4476for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4477do 4478 CC="$ac_save_CC $ac_arg" 4479 if ac_fn_c_try_compile "$LINENO"; then : 4480 ac_cv_prog_cc_c99=$ac_arg 4481fi 4482rm -f core conftest.err conftest.$ac_objext 4483 test "x$ac_cv_prog_cc_c99" != "xno" && break 4484done 4485rm -f conftest.$ac_ext 4486CC=$ac_save_CC 4487 4488fi 4489# AC_CACHE_VAL 4490case "x$ac_cv_prog_cc_c99" in 4491 x) 4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4493$as_echo "none needed" >&6; } ;; 4494 xno) 4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4496$as_echo "unsupported" >&6; } ;; 4497 *) 4498 CC="$CC $ac_cv_prog_cc_c99" 4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4500$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4501esac 4502if test "x$ac_cv_prog_cc_c99" != xno; then : 4503 4504fi 4505 4506 4507ac_ext=cpp 4508ac_cpp='$CXXCPP $CPPFLAGS' 4509ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4510ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4511ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4512if test -z "$CXX"; then 4513 if test -n "$CCC"; then 4514 CXX=$CCC 4515 else 4516 if test -n "$ac_tool_prefix"; then 4517 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4518 do 4519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4520set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4522$as_echo_n "checking for $ac_word... " >&6; } 4523if ${ac_cv_prog_CXX+:} false; then : 4524 $as_echo_n "(cached) " >&6 4525else 4526 if test -n "$CXX"; then 4527 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4528else 4529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4530for as_dir in $PATH 4531do 4532 IFS=$as_save_IFS 4533 test -z "$as_dir" && as_dir=. 4534 for ac_exec_ext in '' $ac_executable_extensions; do 4535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4536 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4538 break 2 4539 fi 4540done 4541 done 4542IFS=$as_save_IFS 4543 4544fi 4545fi 4546CXX=$ac_cv_prog_CXX 4547if test -n "$CXX"; then 4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4549$as_echo "$CXX" >&6; } 4550else 4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4552$as_echo "no" >&6; } 4553fi 4554 4555 4556 test -n "$CXX" && break 4557 done 4558fi 4559if test -z "$CXX"; then 4560 ac_ct_CXX=$CXX 4561 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4562do 4563 # Extract the first word of "$ac_prog", so it can be a program name with args. 4564set dummy $ac_prog; ac_word=$2 4565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4566$as_echo_n "checking for $ac_word... " >&6; } 4567if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4568 $as_echo_n "(cached) " >&6 4569else 4570 if test -n "$ac_ct_CXX"; then 4571 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4572else 4573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4574for as_dir in $PATH 4575do 4576 IFS=$as_save_IFS 4577 test -z "$as_dir" && as_dir=. 4578 for ac_exec_ext in '' $ac_executable_extensions; do 4579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4580 ac_cv_prog_ac_ct_CXX="$ac_prog" 4581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4582 break 2 4583 fi 4584done 4585 done 4586IFS=$as_save_IFS 4587 4588fi 4589fi 4590ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4591if test -n "$ac_ct_CXX"; then 4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4593$as_echo "$ac_ct_CXX" >&6; } 4594else 4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4596$as_echo "no" >&6; } 4597fi 4598 4599 4600 test -n "$ac_ct_CXX" && break 4601done 4602 4603 if test "x$ac_ct_CXX" = x; then 4604 CXX="g++" 4605 else 4606 case $cross_compiling:$ac_tool_warned in 4607yes:) 4608{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4609$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4610ac_tool_warned=yes ;; 4611esac 4612 CXX=$ac_ct_CXX 4613 fi 4614fi 4615 4616 fi 4617fi 4618# Provide some information about the compiler. 4619$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4620set X $ac_compile 4621ac_compiler=$2 4622for ac_option in --version -v -V -qversion; do 4623 { { ac_try="$ac_compiler $ac_option >&5" 4624case "(($ac_try" in 4625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4626 *) ac_try_echo=$ac_try;; 4627esac 4628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4629$as_echo "$ac_try_echo"; } >&5 4630 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4631 ac_status=$? 4632 if test -s conftest.err; then 4633 sed '10a\ 4634... rest of stderr output deleted ... 4635 10q' conftest.err >conftest.er1 4636 cat conftest.er1 >&5 4637 fi 4638 rm -f conftest.er1 conftest.err 4639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4640 test $ac_status = 0; } 4641done 4642 4643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4644$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4645if ${ac_cv_cxx_compiler_gnu+:} false; then : 4646 $as_echo_n "(cached) " >&6 4647else 4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4649/* end confdefs.h. */ 4650 4651int 4652main () 4653{ 4654#ifndef __GNUC__ 4655 choke me 4656#endif 4657 4658 ; 4659 return 0; 4660} 4661_ACEOF 4662if ac_fn_cxx_try_compile "$LINENO"; then : 4663 ac_compiler_gnu=yes 4664else 4665 ac_compiler_gnu=no 4666fi 4667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4668ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4669 4670fi 4671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4672$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4673if test $ac_compiler_gnu = yes; then 4674 GXX=yes 4675else 4676 GXX= 4677fi 4678ac_test_CXXFLAGS=${CXXFLAGS+set} 4679ac_save_CXXFLAGS=$CXXFLAGS 4680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4681$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4682if ${ac_cv_prog_cxx_g+:} false; then : 4683 $as_echo_n "(cached) " >&6 4684else 4685 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4686 ac_cxx_werror_flag=yes 4687 ac_cv_prog_cxx_g=no 4688 CXXFLAGS="-g" 4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4690/* end confdefs.h. */ 4691 4692int 4693main () 4694{ 4695 4696 ; 4697 return 0; 4698} 4699_ACEOF 4700if ac_fn_cxx_try_compile "$LINENO"; then : 4701 ac_cv_prog_cxx_g=yes 4702else 4703 CXXFLAGS="" 4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4705/* end confdefs.h. */ 4706 4707int 4708main () 4709{ 4710 4711 ; 4712 return 0; 4713} 4714_ACEOF 4715if ac_fn_cxx_try_compile "$LINENO"; then : 4716 4717else 4718 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4719 CXXFLAGS="-g" 4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4721/* end confdefs.h. */ 4722 4723int 4724main () 4725{ 4726 4727 ; 4728 return 0; 4729} 4730_ACEOF 4731if ac_fn_cxx_try_compile "$LINENO"; then : 4732 ac_cv_prog_cxx_g=yes 4733fi 4734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4735fi 4736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4737fi 4738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4739 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4740fi 4741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4742$as_echo "$ac_cv_prog_cxx_g" >&6; } 4743if test "$ac_test_CXXFLAGS" = set; then 4744 CXXFLAGS=$ac_save_CXXFLAGS 4745elif test $ac_cv_prog_cxx_g = yes; then 4746 if test "$GXX" = yes; then 4747 CXXFLAGS="-g -O2" 4748 else 4749 CXXFLAGS="-g" 4750 fi 4751else 4752 if test "$GXX" = yes; then 4753 CXXFLAGS="-O2" 4754 else 4755 CXXFLAGS= 4756 fi 4757fi 4758ac_ext=c 4759ac_cpp='$CPP $CPPFLAGS' 4760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4762ac_compiler_gnu=$ac_cv_c_compiler_gnu 4763 4764depcc="$CXX" am_compiler_list= 4765 4766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4767$as_echo_n "checking dependency style of $depcc... " >&6; } 4768if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4769 $as_echo_n "(cached) " >&6 4770else 4771 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4772 # We make a subdir and do the tests there. Otherwise we can end up 4773 # making bogus files that we don't know about and never remove. For 4774 # instance it was reported that on HP-UX the gcc test will end up 4775 # making a dummy file named 'D' -- because '-MD' means "put the output 4776 # in D". 4777 rm -rf conftest.dir 4778 mkdir conftest.dir 4779 # Copy depcomp to subdir because otherwise we won't find it if we're 4780 # using a relative directory. 4781 cp "$am_depcomp" conftest.dir 4782 cd conftest.dir 4783 # We will build objects and dependencies in a subdirectory because 4784 # it helps to detect inapplicable dependency modes. For instance 4785 # both Tru64's cc and ICC support -MD to output dependencies as a 4786 # side effect of compilation, but ICC will put the dependencies in 4787 # the current directory while Tru64 will put them in the object 4788 # directory. 4789 mkdir sub 4790 4791 am_cv_CXX_dependencies_compiler_type=none 4792 if test "$am_compiler_list" = ""; then 4793 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4794 fi 4795 am__universal=false 4796 case " $depcc " in #( 4797 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4798 esac 4799 4800 for depmode in $am_compiler_list; do 4801 # Setup a source with many dependencies, because some compilers 4802 # like to wrap large dependency lists on column 80 (with \), and 4803 # we should not choose a depcomp mode which is confused by this. 4804 # 4805 # We need to recreate these files for each test, as the compiler may 4806 # overwrite some of them when testing with obscure command lines. 4807 # This happens at least with the AIX C compiler. 4808 : > sub/conftest.c 4809 for i in 1 2 3 4 5 6; do 4810 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4811 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4812 # Solaris 10 /bin/sh. 4813 echo '/* dummy */' > sub/conftst$i.h 4814 done 4815 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4816 4817 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4818 # mode. It turns out that the SunPro C++ compiler does not properly 4819 # handle '-M -o', and we need to detect this. Also, some Intel 4820 # versions had trouble with output in subdirs. 4821 am__obj=sub/conftest.${OBJEXT-o} 4822 am__minus_obj="-o $am__obj" 4823 case $depmode in 4824 gcc) 4825 # This depmode causes a compiler race in universal mode. 4826 test "$am__universal" = false || continue 4827 ;; 4828 nosideeffect) 4829 # After this tag, mechanisms are not by side-effect, so they'll 4830 # only be used when explicitly requested. 4831 if test "x$enable_dependency_tracking" = xyes; then 4832 continue 4833 else 4834 break 4835 fi 4836 ;; 4837 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4838 # This compiler won't grok '-c -o', but also, the minuso test has 4839 # not run yet. These depmodes are late enough in the game, and 4840 # so weak that their functioning should not be impacted. 4841 am__obj=conftest.${OBJEXT-o} 4842 am__minus_obj= 4843 ;; 4844 none) break ;; 4845 esac 4846 if depmode=$depmode \ 4847 source=sub/conftest.c object=$am__obj \ 4848 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4849 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4850 >/dev/null 2>conftest.err && 4851 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4852 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4853 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4854 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4855 # icc doesn't choke on unknown options, it will just issue warnings 4856 # or remarks (even with -Werror). So we grep stderr for any message 4857 # that says an option was ignored or not supported. 4858 # When given -MP, icc 7.0 and 7.1 complain thusly: 4859 # icc: Command line warning: ignoring option '-M'; no argument required 4860 # The diagnosis changed in icc 8.0: 4861 # icc: Command line remark: option '-MP' not supported 4862 if (grep 'ignoring option' conftest.err || 4863 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4864 am_cv_CXX_dependencies_compiler_type=$depmode 4865 break 4866 fi 4867 fi 4868 done 4869 4870 cd .. 4871 rm -rf conftest.dir 4872else 4873 am_cv_CXX_dependencies_compiler_type=none 4874fi 4875 4876fi 4877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4878$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4879CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4880 4881 if 4882 test "x$enable_dependency_tracking" != xno \ 4883 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4884 am__fastdepCXX_TRUE= 4885 am__fastdepCXX_FALSE='#' 4886else 4887 am__fastdepCXX_TRUE='#' 4888 am__fastdepCXX_FALSE= 4889fi 4890 4891 4892ac_ext=c 4893ac_cpp='$CPP $CPPFLAGS' 4894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4896ac_compiler_gnu=$ac_cv_c_compiler_gnu 4897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4898$as_echo_n "checking how to run the C preprocessor... " >&6; } 4899# On Suns, sometimes $CPP names a directory. 4900if test -n "$CPP" && test -d "$CPP"; then 4901 CPP= 4902fi 4903if test -z "$CPP"; then 4904 if ${ac_cv_prog_CPP+:} false; then : 4905 $as_echo_n "(cached) " >&6 4906else 4907 # Double quotes because CPP needs to be expanded 4908 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4909 do 4910 ac_preproc_ok=false 4911for ac_c_preproc_warn_flag in '' yes 4912do 4913 # Use a header file that comes with gcc, so configuring glibc 4914 # with a fresh cross-compiler works. 4915 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4916 # <limits.h> exists even on freestanding compilers. 4917 # On the NeXT, cc -E runs the code through the compiler's parser, 4918 # not just through cpp. "Syntax error" is here to catch this case. 4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4920/* end confdefs.h. */ 4921#ifdef __STDC__ 4922# include <limits.h> 4923#else 4924# include <assert.h> 4925#endif 4926 Syntax error 4927_ACEOF 4928if ac_fn_c_try_cpp "$LINENO"; then : 4929 4930else 4931 # Broken: fails on valid input. 4932continue 4933fi 4934rm -f conftest.err conftest.i conftest.$ac_ext 4935 4936 # OK, works on sane cases. Now check whether nonexistent headers 4937 # can be detected and how. 4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4939/* end confdefs.h. */ 4940#include <ac_nonexistent.h> 4941_ACEOF 4942if ac_fn_c_try_cpp "$LINENO"; then : 4943 # Broken: success on invalid input. 4944continue 4945else 4946 # Passes both tests. 4947ac_preproc_ok=: 4948break 4949fi 4950rm -f conftest.err conftest.i conftest.$ac_ext 4951 4952done 4953# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4954rm -f conftest.i conftest.err conftest.$ac_ext 4955if $ac_preproc_ok; then : 4956 break 4957fi 4958 4959 done 4960 ac_cv_prog_CPP=$CPP 4961 4962fi 4963 CPP=$ac_cv_prog_CPP 4964else 4965 ac_cv_prog_CPP=$CPP 4966fi 4967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4968$as_echo "$CPP" >&6; } 4969ac_preproc_ok=false 4970for ac_c_preproc_warn_flag in '' yes 4971do 4972 # Use a header file that comes with gcc, so configuring glibc 4973 # with a fresh cross-compiler works. 4974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4975 # <limits.h> exists even on freestanding compilers. 4976 # On the NeXT, cc -E runs the code through the compiler's parser, 4977 # not just through cpp. "Syntax error" is here to catch this case. 4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4979/* end confdefs.h. */ 4980#ifdef __STDC__ 4981# include <limits.h> 4982#else 4983# include <assert.h> 4984#endif 4985 Syntax error 4986_ACEOF 4987if ac_fn_c_try_cpp "$LINENO"; then : 4988 4989else 4990 # Broken: fails on valid input. 4991continue 4992fi 4993rm -f conftest.err conftest.i conftest.$ac_ext 4994 4995 # OK, works on sane cases. Now check whether nonexistent headers 4996 # can be detected and how. 4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4998/* end confdefs.h. */ 4999#include <ac_nonexistent.h> 5000_ACEOF 5001if ac_fn_c_try_cpp "$LINENO"; then : 5002 # Broken: success on invalid input. 5003continue 5004else 5005 # Passes both tests. 5006ac_preproc_ok=: 5007break 5008fi 5009rm -f conftest.err conftest.i conftest.$ac_ext 5010 5011done 5012# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5013rm -f conftest.i conftest.err conftest.$ac_ext 5014if $ac_preproc_ok; then : 5015 5016else 5017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5018$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5019as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5020See \`config.log' for more details" "$LINENO" 5; } 5021fi 5022 5023ac_ext=c 5024ac_cpp='$CPP $CPPFLAGS' 5025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5027ac_compiler_gnu=$ac_cv_c_compiler_gnu 5028 5029 5030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5031$as_echo_n "checking whether ln -s works... " >&6; } 5032LN_S=$as_ln_s 5033if test "$LN_S" = "ln -s"; then 5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5035$as_echo "yes" >&6; } 5036else 5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5038$as_echo "no, using $LN_S" >&6; } 5039fi 5040 5041 5042 5043 for ac_prog in perl5 perl 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_path_SYSCONFTOOL_PERL+:} false; then : 5050 $as_echo_n "(cached) " >&6 5051else 5052 case $SYSCONFTOOL_PERL in 5053 [\\/]* | ?:[\\/]*) 5054 ac_cv_path_SYSCONFTOOL_PERL="$SYSCONFTOOL_PERL" # Let the user override the test with a path. 5055 ;; 5056 *) 5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5058for as_dir in $PATH 5059do 5060 IFS=$as_save_IFS 5061 test -z "$as_dir" && as_dir=. 5062 for ac_exec_ext in '' $ac_executable_extensions; do 5063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5064 ac_cv_path_SYSCONFTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" 5065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5066 break 2 5067 fi 5068done 5069 done 5070IFS=$as_save_IFS 5071 5072 ;; 5073esac 5074fi 5075SYSCONFTOOL_PERL=$ac_cv_path_SYSCONFTOOL_PERL 5076if test -n "$SYSCONFTOOL_PERL"; then 5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSCONFTOOL_PERL" >&5 5078$as_echo "$SYSCONFTOOL_PERL" >&6; } 5079else 5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5081$as_echo "no" >&6; } 5082fi 5083 5084 5085 test -n "$SYSCONFTOOL_PERL" && break 5086done 5087test -n "$SYSCONFTOOL_PERL" || SYSCONFTOOL_PERL="perl" 5088 5089 5090 if test "$SYSCONFTOOL_PERL" = "perl" 5091 then 5092 as_fn_error $? "perl not found - please install perl" "$LINENO" 5 5093 fi 5094 5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconftool..." >&5 5096$as_echo_n "checking for sysconftool...... " >&6; } 5097 SYSCONFTOOL="" 5098 for sysconf_dir in $ac_aux_dir . .. ../.. 5099 do 5100 if test -f $srcdir/$sysconf_dir/sysconftool 5101 then 5102 SYSCONFTOOL=$srcdir/$sysconf_dir/sysconftool 5103 break 5104 fi 5105 done 5106 5107 if test "$SYSCONFTOOL" = "" 5108 then 5109 as_fn_error $? "sysconftool missing - not in the package" "$LINENO" 5 5110 fi 5111 5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSCONFTOOL" >&5 5113$as_echo "$SYSCONFTOOL" >&6; } 5114 SYSCONFTOOL="$SYSCONFTOOL_PERL $SYSCONFTOOL" 5115 5116 5117 5118case `pwd` in 5119 *\ * | *\ *) 5120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5121$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5122esac 5123 5124 5125 5126macro_version='2.4.6' 5127macro_revision='2.4.6' 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141ltmain=$ac_aux_dir/ltmain.sh 5142 5143# Make sure we can run config.sub. 5144$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5145 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5146 5147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5148$as_echo_n "checking build system type... " >&6; } 5149if ${ac_cv_build+:} false; then : 5150 $as_echo_n "(cached) " >&6 5151else 5152 ac_build_alias=$build_alias 5153test "x$ac_build_alias" = x && 5154 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5155test "x$ac_build_alias" = x && 5156 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5157ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5158 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5159 5160fi 5161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5162$as_echo "$ac_cv_build" >&6; } 5163case $ac_cv_build in 5164*-*-*) ;; 5165*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5166esac 5167build=$ac_cv_build 5168ac_save_IFS=$IFS; IFS='-' 5169set x $ac_cv_build 5170shift 5171build_cpu=$1 5172build_vendor=$2 5173shift; shift 5174# Remember, the first character of IFS is used to create $*, 5175# except with old shells: 5176build_os=$* 5177IFS=$ac_save_IFS 5178case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5179 5180 5181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5182$as_echo_n "checking host system type... " >&6; } 5183if ${ac_cv_host+:} false; then : 5184 $as_echo_n "(cached) " >&6 5185else 5186 if test "x$host_alias" = x; then 5187 ac_cv_host=$ac_cv_build 5188else 5189 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5190 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5191fi 5192 5193fi 5194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5195$as_echo "$ac_cv_host" >&6; } 5196case $ac_cv_host in 5197*-*-*) ;; 5198*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5199esac 5200host=$ac_cv_host 5201ac_save_IFS=$IFS; IFS='-' 5202set x $ac_cv_host 5203shift 5204host_cpu=$1 5205host_vendor=$2 5206shift; shift 5207# Remember, the first character of IFS is used to create $*, 5208# except with old shells: 5209host_os=$* 5210IFS=$ac_save_IFS 5211case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5212 5213 5214# Backslashify metacharacters that are still active within 5215# double-quoted strings. 5216sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5217 5218# Same as above, but do not quote variable references. 5219double_quote_subst='s/\(["`\\]\)/\\\1/g' 5220 5221# Sed substitution to delay expansion of an escaped shell variable in a 5222# double_quote_subst'ed string. 5223delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5224 5225# Sed substitution to delay expansion of an escaped single quote. 5226delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5227 5228# Sed substitution to avoid accidental globbing in evaled expressions 5229no_glob_subst='s/\*/\\\*/g' 5230 5231ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5232ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5233ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5234 5235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5236$as_echo_n "checking how to print strings... " >&6; } 5237# Test print first, because it will be a builtin if present. 5238if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5239 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5240 ECHO='print -r --' 5241elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5242 ECHO='printf %s\n' 5243else 5244 # Use this function as a fallback that always works. 5245 func_fallback_echo () 5246 { 5247 eval 'cat <<_LTECHO_EOF 5248$1 5249_LTECHO_EOF' 5250 } 5251 ECHO='func_fallback_echo' 5252fi 5253 5254# func_echo_all arg... 5255# Invoke $ECHO with all args, space-separated. 5256func_echo_all () 5257{ 5258 $ECHO "" 5259} 5260 5261case $ECHO in 5262 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5263$as_echo "printf" >&6; } ;; 5264 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5265$as_echo "print -r" >&6; } ;; 5266 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5267$as_echo "cat" >&6; } ;; 5268esac 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5284$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5285if ${ac_cv_path_SED+:} false; then : 5286 $as_echo_n "(cached) " >&6 5287else 5288 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5289 for ac_i in 1 2 3 4 5 6 7; do 5290 ac_script="$ac_script$as_nl$ac_script" 5291 done 5292 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5293 { ac_script=; unset ac_script;} 5294 if test -z "$SED"; then 5295 ac_path_SED_found=false 5296 # Loop through the user's path and test for each of PROGNAME-LIST 5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5298for as_dir in $PATH 5299do 5300 IFS=$as_save_IFS 5301 test -z "$as_dir" && as_dir=. 5302 for ac_prog in sed gsed; do 5303 for ac_exec_ext in '' $ac_executable_extensions; do 5304 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5305 as_fn_executable_p "$ac_path_SED" || continue 5306# Check for GNU ac_path_SED and select it if it is found. 5307 # Check for GNU $ac_path_SED 5308case `"$ac_path_SED" --version 2>&1` in 5309*GNU*) 5310 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5311*) 5312 ac_count=0 5313 $as_echo_n 0123456789 >"conftest.in" 5314 while : 5315 do 5316 cat "conftest.in" "conftest.in" >"conftest.tmp" 5317 mv "conftest.tmp" "conftest.in" 5318 cp "conftest.in" "conftest.nl" 5319 $as_echo '' >> "conftest.nl" 5320 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5321 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5322 as_fn_arith $ac_count + 1 && ac_count=$as_val 5323 if test $ac_count -gt ${ac_path_SED_max-0}; then 5324 # Best one so far, save it but keep looking for a better one 5325 ac_cv_path_SED="$ac_path_SED" 5326 ac_path_SED_max=$ac_count 5327 fi 5328 # 10*(2^10) chars as input seems more than enough 5329 test $ac_count -gt 10 && break 5330 done 5331 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5332esac 5333 5334 $ac_path_SED_found && break 3 5335 done 5336 done 5337 done 5338IFS=$as_save_IFS 5339 if test -z "$ac_cv_path_SED"; then 5340 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5341 fi 5342else 5343 ac_cv_path_SED=$SED 5344fi 5345 5346fi 5347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5348$as_echo "$ac_cv_path_SED" >&6; } 5349 SED="$ac_cv_path_SED" 5350 rm -f conftest.sed 5351 5352test -z "$SED" && SED=sed 5353Xsed="$SED -e 1s/^X//" 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5366$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5367if ${ac_cv_path_GREP+:} false; then : 5368 $as_echo_n "(cached) " >&6 5369else 5370 if test -z "$GREP"; then 5371 ac_path_GREP_found=false 5372 # Loop through the user's path and test for each of PROGNAME-LIST 5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5374for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5375do 5376 IFS=$as_save_IFS 5377 test -z "$as_dir" && as_dir=. 5378 for ac_prog in grep ggrep; do 5379 for ac_exec_ext in '' $ac_executable_extensions; do 5380 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5381 as_fn_executable_p "$ac_path_GREP" || continue 5382# Check for GNU ac_path_GREP and select it if it is found. 5383 # Check for GNU $ac_path_GREP 5384case `"$ac_path_GREP" --version 2>&1` in 5385*GNU*) 5386 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5387*) 5388 ac_count=0 5389 $as_echo_n 0123456789 >"conftest.in" 5390 while : 5391 do 5392 cat "conftest.in" "conftest.in" >"conftest.tmp" 5393 mv "conftest.tmp" "conftest.in" 5394 cp "conftest.in" "conftest.nl" 5395 $as_echo 'GREP' >> "conftest.nl" 5396 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5397 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5398 as_fn_arith $ac_count + 1 && ac_count=$as_val 5399 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5400 # Best one so far, save it but keep looking for a better one 5401 ac_cv_path_GREP="$ac_path_GREP" 5402 ac_path_GREP_max=$ac_count 5403 fi 5404 # 10*(2^10) chars as input seems more than enough 5405 test $ac_count -gt 10 && break 5406 done 5407 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5408esac 5409 5410 $ac_path_GREP_found && break 3 5411 done 5412 done 5413 done 5414IFS=$as_save_IFS 5415 if test -z "$ac_cv_path_GREP"; then 5416 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5417 fi 5418else 5419 ac_cv_path_GREP=$GREP 5420fi 5421 5422fi 5423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5424$as_echo "$ac_cv_path_GREP" >&6; } 5425 GREP="$ac_cv_path_GREP" 5426 5427 5428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5429$as_echo_n "checking for egrep... " >&6; } 5430if ${ac_cv_path_EGREP+:} false; then : 5431 $as_echo_n "(cached) " >&6 5432else 5433 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5434 then ac_cv_path_EGREP="$GREP -E" 5435 else 5436 if test -z "$EGREP"; then 5437 ac_path_EGREP_found=false 5438 # Loop through the user's path and test for each of PROGNAME-LIST 5439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5440for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5441do 5442 IFS=$as_save_IFS 5443 test -z "$as_dir" && as_dir=. 5444 for ac_prog in egrep; do 5445 for ac_exec_ext in '' $ac_executable_extensions; do 5446 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5447 as_fn_executable_p "$ac_path_EGREP" || continue 5448# Check for GNU ac_path_EGREP and select it if it is found. 5449 # Check for GNU $ac_path_EGREP 5450case `"$ac_path_EGREP" --version 2>&1` in 5451*GNU*) 5452 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5453*) 5454 ac_count=0 5455 $as_echo_n 0123456789 >"conftest.in" 5456 while : 5457 do 5458 cat "conftest.in" "conftest.in" >"conftest.tmp" 5459 mv "conftest.tmp" "conftest.in" 5460 cp "conftest.in" "conftest.nl" 5461 $as_echo 'EGREP' >> "conftest.nl" 5462 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5463 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5464 as_fn_arith $ac_count + 1 && ac_count=$as_val 5465 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5466 # Best one so far, save it but keep looking for a better one 5467 ac_cv_path_EGREP="$ac_path_EGREP" 5468 ac_path_EGREP_max=$ac_count 5469 fi 5470 # 10*(2^10) chars as input seems more than enough 5471 test $ac_count -gt 10 && break 5472 done 5473 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5474esac 5475 5476 $ac_path_EGREP_found && break 3 5477 done 5478 done 5479 done 5480IFS=$as_save_IFS 5481 if test -z "$ac_cv_path_EGREP"; then 5482 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5483 fi 5484else 5485 ac_cv_path_EGREP=$EGREP 5486fi 5487 5488 fi 5489fi 5490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5491$as_echo "$ac_cv_path_EGREP" >&6; } 5492 EGREP="$ac_cv_path_EGREP" 5493 5494 5495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5496$as_echo_n "checking for fgrep... " >&6; } 5497if ${ac_cv_path_FGREP+:} false; then : 5498 $as_echo_n "(cached) " >&6 5499else 5500 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5501 then ac_cv_path_FGREP="$GREP -F" 5502 else 5503 if test -z "$FGREP"; then 5504 ac_path_FGREP_found=false 5505 # Loop through the user's path and test for each of PROGNAME-LIST 5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5507for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5508do 5509 IFS=$as_save_IFS 5510 test -z "$as_dir" && as_dir=. 5511 for ac_prog in fgrep; do 5512 for ac_exec_ext in '' $ac_executable_extensions; do 5513 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5514 as_fn_executable_p "$ac_path_FGREP" || continue 5515# Check for GNU ac_path_FGREP and select it if it is found. 5516 # Check for GNU $ac_path_FGREP 5517case `"$ac_path_FGREP" --version 2>&1` in 5518*GNU*) 5519 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5520*) 5521 ac_count=0 5522 $as_echo_n 0123456789 >"conftest.in" 5523 while : 5524 do 5525 cat "conftest.in" "conftest.in" >"conftest.tmp" 5526 mv "conftest.tmp" "conftest.in" 5527 cp "conftest.in" "conftest.nl" 5528 $as_echo 'FGREP' >> "conftest.nl" 5529 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5530 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5531 as_fn_arith $ac_count + 1 && ac_count=$as_val 5532 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5533 # Best one so far, save it but keep looking for a better one 5534 ac_cv_path_FGREP="$ac_path_FGREP" 5535 ac_path_FGREP_max=$ac_count 5536 fi 5537 # 10*(2^10) chars as input seems more than enough 5538 test $ac_count -gt 10 && break 5539 done 5540 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5541esac 5542 5543 $ac_path_FGREP_found && break 3 5544 done 5545 done 5546 done 5547IFS=$as_save_IFS 5548 if test -z "$ac_cv_path_FGREP"; then 5549 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5550 fi 5551else 5552 ac_cv_path_FGREP=$FGREP 5553fi 5554 5555 fi 5556fi 5557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5558$as_echo "$ac_cv_path_FGREP" >&6; } 5559 FGREP="$ac_cv_path_FGREP" 5560 5561 5562test -z "$GREP" && GREP=grep 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582# Check whether --with-gnu-ld was given. 5583if test "${with_gnu_ld+set}" = set; then : 5584 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5585else 5586 with_gnu_ld=no 5587fi 5588 5589ac_prog=ld 5590if test yes = "$GCC"; then 5591 # Check if gcc -print-prog-name=ld gives a path. 5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5593$as_echo_n "checking for ld used by $CC... " >&6; } 5594 case $host in 5595 *-*-mingw*) 5596 # gcc leaves a trailing carriage return, which upsets mingw 5597 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5598 *) 5599 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5600 esac 5601 case $ac_prog in 5602 # Accept absolute paths. 5603 [\\/]* | ?:[\\/]*) 5604 re_direlt='/[^/][^/]*/\.\./' 5605 # Canonicalize the pathname of ld 5606 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5607 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5608 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5609 done 5610 test -z "$LD" && LD=$ac_prog 5611 ;; 5612 "") 5613 # If it fails, then pretend we aren't using GCC. 5614 ac_prog=ld 5615 ;; 5616 *) 5617 # If it is relative, then search for the first ld in PATH. 5618 with_gnu_ld=unknown 5619 ;; 5620 esac 5621elif test yes = "$with_gnu_ld"; then 5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5623$as_echo_n "checking for GNU ld... " >&6; } 5624else 5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5626$as_echo_n "checking for non-GNU ld... " >&6; } 5627fi 5628if ${lt_cv_path_LD+:} false; then : 5629 $as_echo_n "(cached) " >&6 5630else 5631 if test -z "$LD"; then 5632 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5633 for ac_dir in $PATH; do 5634 IFS=$lt_save_ifs 5635 test -z "$ac_dir" && ac_dir=. 5636 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5637 lt_cv_path_LD=$ac_dir/$ac_prog 5638 # Check to see if the program is GNU ld. I'd rather use --version, 5639 # but apparently some variants of GNU ld only accept -v. 5640 # Break only if it was the GNU/non-GNU ld that we prefer. 5641 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5642 *GNU* | *'with BFD'*) 5643 test no != "$with_gnu_ld" && break 5644 ;; 5645 *) 5646 test yes != "$with_gnu_ld" && break 5647 ;; 5648 esac 5649 fi 5650 done 5651 IFS=$lt_save_ifs 5652else 5653 lt_cv_path_LD=$LD # Let the user override the test with a path. 5654fi 5655fi 5656 5657LD=$lt_cv_path_LD 5658if test -n "$LD"; then 5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5660$as_echo "$LD" >&6; } 5661else 5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5663$as_echo "no" >&6; } 5664fi 5665test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5667$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5668if ${lt_cv_prog_gnu_ld+:} false; then : 5669 $as_echo_n "(cached) " >&6 5670else 5671 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5672case `$LD -v 2>&1 </dev/null` in 5673*GNU* | *'with BFD'*) 5674 lt_cv_prog_gnu_ld=yes 5675 ;; 5676*) 5677 lt_cv_prog_gnu_ld=no 5678 ;; 5679esac 5680fi 5681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5682$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5683with_gnu_ld=$lt_cv_prog_gnu_ld 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5694$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5695if ${lt_cv_path_NM+:} false; then : 5696 $as_echo_n "(cached) " >&6 5697else 5698 if test -n "$NM"; then 5699 # Let the user override the test. 5700 lt_cv_path_NM=$NM 5701else 5702 lt_nm_to_check=${ac_tool_prefix}nm 5703 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5704 lt_nm_to_check="$lt_nm_to_check nm" 5705 fi 5706 for lt_tmp_nm in $lt_nm_to_check; do 5707 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5708 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5709 IFS=$lt_save_ifs 5710 test -z "$ac_dir" && ac_dir=. 5711 tmp_nm=$ac_dir/$lt_tmp_nm 5712 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5713 # Check to see if the nm accepts a BSD-compat flag. 5714 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5715 # nm: unknown option "B" ignored 5716 # Tru64's nm complains that /dev/null is an invalid object file 5717 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5718 case $build_os in 5719 mingw*) lt_bad_file=conftest.nm/nofile ;; 5720 *) lt_bad_file=/dev/null ;; 5721 esac 5722 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5723 *$lt_bad_file* | *'Invalid file or object type'*) 5724 lt_cv_path_NM="$tmp_nm -B" 5725 break 2 5726 ;; 5727 *) 5728 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5729 */dev/null*) 5730 lt_cv_path_NM="$tmp_nm -p" 5731 break 2 5732 ;; 5733 *) 5734 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5735 continue # so that we can try to find one that supports BSD flags 5736 ;; 5737 esac 5738 ;; 5739 esac 5740 fi 5741 done 5742 IFS=$lt_save_ifs 5743 done 5744 : ${lt_cv_path_NM=no} 5745fi 5746fi 5747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5748$as_echo "$lt_cv_path_NM" >&6; } 5749if test no != "$lt_cv_path_NM"; then 5750 NM=$lt_cv_path_NM 5751else 5752 # Didn't find any BSD compatible name lister, look for dumpbin. 5753 if test -n "$DUMPBIN"; then : 5754 # Let the user override the test. 5755 else 5756 if test -n "$ac_tool_prefix"; then 5757 for ac_prog in dumpbin "link -dump" 5758 do 5759 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5760set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5762$as_echo_n "checking for $ac_word... " >&6; } 5763if ${ac_cv_prog_DUMPBIN+:} false; then : 5764 $as_echo_n "(cached) " >&6 5765else 5766 if test -n "$DUMPBIN"; then 5767 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5768else 5769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5770for as_dir in $PATH 5771do 5772 IFS=$as_save_IFS 5773 test -z "$as_dir" && as_dir=. 5774 for ac_exec_ext in '' $ac_executable_extensions; do 5775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5776 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5778 break 2 5779 fi 5780done 5781 done 5782IFS=$as_save_IFS 5783 5784fi 5785fi 5786DUMPBIN=$ac_cv_prog_DUMPBIN 5787if test -n "$DUMPBIN"; then 5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5789$as_echo "$DUMPBIN" >&6; } 5790else 5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5792$as_echo "no" >&6; } 5793fi 5794 5795 5796 test -n "$DUMPBIN" && break 5797 done 5798fi 5799if test -z "$DUMPBIN"; then 5800 ac_ct_DUMPBIN=$DUMPBIN 5801 for ac_prog in dumpbin "link -dump" 5802do 5803 # Extract the first word of "$ac_prog", so it can be a program name with args. 5804set dummy $ac_prog; ac_word=$2 5805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5806$as_echo_n "checking for $ac_word... " >&6; } 5807if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5808 $as_echo_n "(cached) " >&6 5809else 5810 if test -n "$ac_ct_DUMPBIN"; then 5811 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5812else 5813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5814for as_dir in $PATH 5815do 5816 IFS=$as_save_IFS 5817 test -z "$as_dir" && as_dir=. 5818 for ac_exec_ext in '' $ac_executable_extensions; do 5819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5820 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5822 break 2 5823 fi 5824done 5825 done 5826IFS=$as_save_IFS 5827 5828fi 5829fi 5830ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5831if test -n "$ac_ct_DUMPBIN"; then 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5833$as_echo "$ac_ct_DUMPBIN" >&6; } 5834else 5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5836$as_echo "no" >&6; } 5837fi 5838 5839 5840 test -n "$ac_ct_DUMPBIN" && break 5841done 5842 5843 if test "x$ac_ct_DUMPBIN" = x; then 5844 DUMPBIN=":" 5845 else 5846 case $cross_compiling:$ac_tool_warned in 5847yes:) 5848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5850ac_tool_warned=yes ;; 5851esac 5852 DUMPBIN=$ac_ct_DUMPBIN 5853 fi 5854fi 5855 5856 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5857 *COFF*) 5858 DUMPBIN="$DUMPBIN -symbols -headers" 5859 ;; 5860 *) 5861 DUMPBIN=: 5862 ;; 5863 esac 5864 fi 5865 5866 if test : != "$DUMPBIN"; then 5867 NM=$DUMPBIN 5868 fi 5869fi 5870test -z "$NM" && NM=nm 5871 5872 5873 5874 5875 5876 5877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5878$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5879if ${lt_cv_nm_interface+:} false; then : 5880 $as_echo_n "(cached) " >&6 5881else 5882 lt_cv_nm_interface="BSD nm" 5883 echo "int some_variable = 0;" > conftest.$ac_ext 5884 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5885 (eval "$ac_compile" 2>conftest.err) 5886 cat conftest.err >&5 5887 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5888 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5889 cat conftest.err >&5 5890 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5891 cat conftest.out >&5 5892 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5893 lt_cv_nm_interface="MS dumpbin" 5894 fi 5895 rm -f conftest* 5896fi 5897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5898$as_echo "$lt_cv_nm_interface" >&6; } 5899 5900# find the maximum length of command line arguments 5901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5902$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5903if ${lt_cv_sys_max_cmd_len+:} false; then : 5904 $as_echo_n "(cached) " >&6 5905else 5906 i=0 5907 teststring=ABCD 5908 5909 case $build_os in 5910 msdosdjgpp*) 5911 # On DJGPP, this test can blow up pretty badly due to problems in libc 5912 # (any single argument exceeding 2000 bytes causes a buffer overrun 5913 # during glob expansion). Even if it were fixed, the result of this 5914 # check would be larger than it should be. 5915 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5916 ;; 5917 5918 gnu*) 5919 # Under GNU Hurd, this test is not required because there is 5920 # no limit to the length of command line arguments. 5921 # Libtool will interpret -1 as no limit whatsoever 5922 lt_cv_sys_max_cmd_len=-1; 5923 ;; 5924 5925 cygwin* | mingw* | cegcc*) 5926 # On Win9x/ME, this test blows up -- it succeeds, but takes 5927 # about 5 minutes as the teststring grows exponentially. 5928 # Worse, since 9x/ME are not pre-emptively multitasking, 5929 # you end up with a "frozen" computer, even though with patience 5930 # the test eventually succeeds (with a max line length of 256k). 5931 # Instead, let's just punt: use the minimum linelength reported by 5932 # all of the supported platforms: 8192 (on NT/2K/XP). 5933 lt_cv_sys_max_cmd_len=8192; 5934 ;; 5935 5936 mint*) 5937 # On MiNT this can take a long time and run out of memory. 5938 lt_cv_sys_max_cmd_len=8192; 5939 ;; 5940 5941 amigaos*) 5942 # On AmigaOS with pdksh, this test takes hours, literally. 5943 # So we just punt and use a minimum line length of 8192. 5944 lt_cv_sys_max_cmd_len=8192; 5945 ;; 5946 5947 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5948 # This has been around since 386BSD, at least. Likely further. 5949 if test -x /sbin/sysctl; then 5950 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5951 elif test -x /usr/sbin/sysctl; then 5952 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5953 else 5954 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5955 fi 5956 # And add a safety zone 5957 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5958 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5959 ;; 5960 5961 interix*) 5962 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5963 lt_cv_sys_max_cmd_len=196608 5964 ;; 5965 5966 os2*) 5967 # The test takes a long time on OS/2. 5968 lt_cv_sys_max_cmd_len=8192 5969 ;; 5970 5971 osf*) 5972 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5973 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5974 # nice to cause kernel panics so lets avoid the loop below. 5975 # First set a reasonable default. 5976 lt_cv_sys_max_cmd_len=16384 5977 # 5978 if test -x /sbin/sysconfig; then 5979 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5980 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5981 esac 5982 fi 5983 ;; 5984 sco3.2v5*) 5985 lt_cv_sys_max_cmd_len=102400 5986 ;; 5987 sysv5* | sco5v6* | sysv4.2uw2*) 5988 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5989 if test -n "$kargmax"; then 5990 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5991 else 5992 lt_cv_sys_max_cmd_len=32768 5993 fi 5994 ;; 5995 *) 5996 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5997 if test -n "$lt_cv_sys_max_cmd_len" && \ 5998 test undefined != "$lt_cv_sys_max_cmd_len"; then 5999 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6000 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6001 else 6002 # Make teststring a little bigger before we do anything with it. 6003 # a 1K string should be a reasonable start. 6004 for i in 1 2 3 4 5 6 7 8; do 6005 teststring=$teststring$teststring 6006 done 6007 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6008 # If test is not a shell built-in, we'll probably end up computing a 6009 # maximum length that is only half of the actual maximum length, but 6010 # we can't tell. 6011 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6012 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6013 test 17 != "$i" # 1/2 MB should be enough 6014 do 6015 i=`expr $i + 1` 6016 teststring=$teststring$teststring 6017 done 6018 # Only check the string length outside the loop. 6019 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6020 teststring= 6021 # Add a significant safety factor because C++ compilers can tack on 6022 # massive amounts of additional arguments before passing them to the 6023 # linker. It appears as though 1/2 is a usable value. 6024 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6025 fi 6026 ;; 6027 esac 6028 6029fi 6030 6031if test -n "$lt_cv_sys_max_cmd_len"; then 6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6033$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6034else 6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6036$as_echo "none" >&6; } 6037fi 6038max_cmd_len=$lt_cv_sys_max_cmd_len 6039 6040 6041 6042 6043 6044 6045: ${CP="cp -f"} 6046: ${MV="mv -f"} 6047: ${RM="rm -f"} 6048 6049if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6050 lt_unset=unset 6051else 6052 lt_unset=false 6053fi 6054 6055 6056 6057 6058 6059# test EBCDIC or ASCII 6060case `echo X|tr X '\101'` in 6061 A) # ASCII based system 6062 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6063 lt_SP2NL='tr \040 \012' 6064 lt_NL2SP='tr \015\012 \040\040' 6065 ;; 6066 *) # EBCDIC based system 6067 lt_SP2NL='tr \100 \n' 6068 lt_NL2SP='tr \r\n \100\100' 6069 ;; 6070esac 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6081$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6082if ${lt_cv_to_host_file_cmd+:} false; then : 6083 $as_echo_n "(cached) " >&6 6084else 6085 case $host in 6086 *-*-mingw* ) 6087 case $build in 6088 *-*-mingw* ) # actually msys 6089 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6090 ;; 6091 *-*-cygwin* ) 6092 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6093 ;; 6094 * ) # otherwise, assume *nix 6095 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6096 ;; 6097 esac 6098 ;; 6099 *-*-cygwin* ) 6100 case $build in 6101 *-*-mingw* ) # actually msys 6102 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6103 ;; 6104 *-*-cygwin* ) 6105 lt_cv_to_host_file_cmd=func_convert_file_noop 6106 ;; 6107 * ) # otherwise, assume *nix 6108 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6109 ;; 6110 esac 6111 ;; 6112 * ) # unhandled hosts (and "normal" native builds) 6113 lt_cv_to_host_file_cmd=func_convert_file_noop 6114 ;; 6115esac 6116 6117fi 6118 6119to_host_file_cmd=$lt_cv_to_host_file_cmd 6120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6121$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6122 6123 6124 6125 6126 6127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6128$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6129if ${lt_cv_to_tool_file_cmd+:} false; then : 6130 $as_echo_n "(cached) " >&6 6131else 6132 #assume ordinary cross tools, or native build. 6133lt_cv_to_tool_file_cmd=func_convert_file_noop 6134case $host in 6135 *-*-mingw* ) 6136 case $build in 6137 *-*-mingw* ) # actually msys 6138 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6139 ;; 6140 esac 6141 ;; 6142esac 6143 6144fi 6145 6146to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6148$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6149 6150 6151 6152 6153 6154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6155$as_echo_n "checking for $LD option to reload object files... " >&6; } 6156if ${lt_cv_ld_reload_flag+:} false; then : 6157 $as_echo_n "(cached) " >&6 6158else 6159 lt_cv_ld_reload_flag='-r' 6160fi 6161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6162$as_echo "$lt_cv_ld_reload_flag" >&6; } 6163reload_flag=$lt_cv_ld_reload_flag 6164case $reload_flag in 6165"" | " "*) ;; 6166*) reload_flag=" $reload_flag" ;; 6167esac 6168reload_cmds='$LD$reload_flag -o $output$reload_objs' 6169case $host_os in 6170 cygwin* | mingw* | pw32* | cegcc*) 6171 if test yes != "$GCC"; then 6172 reload_cmds=false 6173 fi 6174 ;; 6175 darwin*) 6176 if test yes = "$GCC"; then 6177 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6178 else 6179 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6180 fi 6181 ;; 6182esac 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192if test -n "$ac_tool_prefix"; then 6193 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6194set dummy ${ac_tool_prefix}objdump; ac_word=$2 6195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6196$as_echo_n "checking for $ac_word... " >&6; } 6197if ${ac_cv_prog_OBJDUMP+:} false; then : 6198 $as_echo_n "(cached) " >&6 6199else 6200 if test -n "$OBJDUMP"; then 6201 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6202else 6203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6204for as_dir in $PATH 6205do 6206 IFS=$as_save_IFS 6207 test -z "$as_dir" && as_dir=. 6208 for ac_exec_ext in '' $ac_executable_extensions; do 6209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6210 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6212 break 2 6213 fi 6214done 6215 done 6216IFS=$as_save_IFS 6217 6218fi 6219fi 6220OBJDUMP=$ac_cv_prog_OBJDUMP 6221if test -n "$OBJDUMP"; then 6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6223$as_echo "$OBJDUMP" >&6; } 6224else 6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6226$as_echo "no" >&6; } 6227fi 6228 6229 6230fi 6231if test -z "$ac_cv_prog_OBJDUMP"; then 6232 ac_ct_OBJDUMP=$OBJDUMP 6233 # Extract the first word of "objdump", so it can be a program name with args. 6234set dummy objdump; ac_word=$2 6235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6236$as_echo_n "checking for $ac_word... " >&6; } 6237if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6238 $as_echo_n "(cached) " >&6 6239else 6240 if test -n "$ac_ct_OBJDUMP"; then 6241 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6242else 6243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6244for as_dir in $PATH 6245do 6246 IFS=$as_save_IFS 6247 test -z "$as_dir" && as_dir=. 6248 for ac_exec_ext in '' $ac_executable_extensions; do 6249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6250 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6252 break 2 6253 fi 6254done 6255 done 6256IFS=$as_save_IFS 6257 6258fi 6259fi 6260ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6261if test -n "$ac_ct_OBJDUMP"; then 6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6263$as_echo "$ac_ct_OBJDUMP" >&6; } 6264else 6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6266$as_echo "no" >&6; } 6267fi 6268 6269 if test "x$ac_ct_OBJDUMP" = x; then 6270 OBJDUMP="false" 6271 else 6272 case $cross_compiling:$ac_tool_warned in 6273yes:) 6274{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6275$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6276ac_tool_warned=yes ;; 6277esac 6278 OBJDUMP=$ac_ct_OBJDUMP 6279 fi 6280else 6281 OBJDUMP="$ac_cv_prog_OBJDUMP" 6282fi 6283 6284test -z "$OBJDUMP" && OBJDUMP=objdump 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6295$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6296if ${lt_cv_deplibs_check_method+:} false; then : 6297 $as_echo_n "(cached) " >&6 6298else 6299 lt_cv_file_magic_cmd='$MAGIC_CMD' 6300lt_cv_file_magic_test_file= 6301lt_cv_deplibs_check_method='unknown' 6302# Need to set the preceding variable on all platforms that support 6303# interlibrary dependencies. 6304# 'none' -- dependencies not supported. 6305# 'unknown' -- same as none, but documents that we really don't know. 6306# 'pass_all' -- all dependencies passed with no checks. 6307# 'test_compile' -- check by making test program. 6308# 'file_magic [[regex]]' -- check by looking for files in library path 6309# that responds to the $file_magic_cmd with a given extended regex. 6310# If you have 'file' or equivalent on your system and you're not sure 6311# whether 'pass_all' will *always* work, you probably want this one. 6312 6313case $host_os in 6314aix[4-9]*) 6315 lt_cv_deplibs_check_method=pass_all 6316 ;; 6317 6318beos*) 6319 lt_cv_deplibs_check_method=pass_all 6320 ;; 6321 6322bsdi[45]*) 6323 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6324 lt_cv_file_magic_cmd='/usr/bin/file -L' 6325 lt_cv_file_magic_test_file=/shlib/libc.so 6326 ;; 6327 6328cygwin*) 6329 # func_win32_libid is a shell function defined in ltmain.sh 6330 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6331 lt_cv_file_magic_cmd='func_win32_libid' 6332 ;; 6333 6334mingw* | pw32*) 6335 # Base MSYS/MinGW do not provide the 'file' command needed by 6336 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6337 # unless we find 'file', for example because we are cross-compiling. 6338 if ( file / ) >/dev/null 2>&1; then 6339 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6340 lt_cv_file_magic_cmd='func_win32_libid' 6341 else 6342 # Keep this pattern in sync with the one in func_win32_libid. 6343 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6344 lt_cv_file_magic_cmd='$OBJDUMP -f' 6345 fi 6346 ;; 6347 6348cegcc*) 6349 # use the weaker test based on 'objdump'. See mingw*. 6350 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6351 lt_cv_file_magic_cmd='$OBJDUMP -f' 6352 ;; 6353 6354darwin* | rhapsody*) 6355 lt_cv_deplibs_check_method=pass_all 6356 ;; 6357 6358freebsd* | dragonfly*) 6359 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6360 case $host_cpu in 6361 i*86 ) 6362 # Not sure whether the presence of OpenBSD here was a mistake. 6363 # Let's accept both of them until this is cleared up. 6364 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6365 lt_cv_file_magic_cmd=/usr/bin/file 6366 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6367 ;; 6368 esac 6369 else 6370 lt_cv_deplibs_check_method=pass_all 6371 fi 6372 ;; 6373 6374haiku*) 6375 lt_cv_deplibs_check_method=pass_all 6376 ;; 6377 6378hpux10.20* | hpux11*) 6379 lt_cv_file_magic_cmd=/usr/bin/file 6380 case $host_cpu in 6381 ia64*) 6382 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6383 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6384 ;; 6385 hppa*64*) 6386 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]' 6387 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6388 ;; 6389 *) 6390 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6391 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6392 ;; 6393 esac 6394 ;; 6395 6396interix[3-9]*) 6397 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6399 ;; 6400 6401irix5* | irix6* | nonstopux*) 6402 case $LD in 6403 *-32|*"-32 ") libmagic=32-bit;; 6404 *-n32|*"-n32 ") libmagic=N32;; 6405 *-64|*"-64 ") libmagic=64-bit;; 6406 *) libmagic=never-match;; 6407 esac 6408 lt_cv_deplibs_check_method=pass_all 6409 ;; 6410 6411# This must be glibc/ELF. 6412linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6413 lt_cv_deplibs_check_method=pass_all 6414 ;; 6415 6416netbsd*) 6417 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6419 else 6420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6421 fi 6422 ;; 6423 6424newos6*) 6425 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6426 lt_cv_file_magic_cmd=/usr/bin/file 6427 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6428 ;; 6429 6430*nto* | *qnx*) 6431 lt_cv_deplibs_check_method=pass_all 6432 ;; 6433 6434openbsd* | bitrig*) 6435 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6437 else 6438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6439 fi 6440 ;; 6441 6442osf3* | osf4* | osf5*) 6443 lt_cv_deplibs_check_method=pass_all 6444 ;; 6445 6446rdos*) 6447 lt_cv_deplibs_check_method=pass_all 6448 ;; 6449 6450solaris*) 6451 lt_cv_deplibs_check_method=pass_all 6452 ;; 6453 6454sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6455 lt_cv_deplibs_check_method=pass_all 6456 ;; 6457 6458sysv4 | sysv4.3*) 6459 case $host_vendor in 6460 motorola) 6461 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]' 6462 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6463 ;; 6464 ncr) 6465 lt_cv_deplibs_check_method=pass_all 6466 ;; 6467 sequent) 6468 lt_cv_file_magic_cmd='/bin/file' 6469 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6470 ;; 6471 sni) 6472 lt_cv_file_magic_cmd='/bin/file' 6473 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6474 lt_cv_file_magic_test_file=/lib/libc.so 6475 ;; 6476 siemens) 6477 lt_cv_deplibs_check_method=pass_all 6478 ;; 6479 pc) 6480 lt_cv_deplibs_check_method=pass_all 6481 ;; 6482 esac 6483 ;; 6484 6485tpf*) 6486 lt_cv_deplibs_check_method=pass_all 6487 ;; 6488os2*) 6489 lt_cv_deplibs_check_method=pass_all 6490 ;; 6491esac 6492 6493fi 6494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6495$as_echo "$lt_cv_deplibs_check_method" >&6; } 6496 6497file_magic_glob= 6498want_nocaseglob=no 6499if test "$build" = "$host"; then 6500 case $host_os in 6501 mingw* | pw32*) 6502 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6503 want_nocaseglob=yes 6504 else 6505 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6506 fi 6507 ;; 6508 esac 6509fi 6510 6511file_magic_cmd=$lt_cv_file_magic_cmd 6512deplibs_check_method=$lt_cv_deplibs_check_method 6513test -z "$deplibs_check_method" && deplibs_check_method=unknown 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536if test -n "$ac_tool_prefix"; then 6537 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6538set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6540$as_echo_n "checking for $ac_word... " >&6; } 6541if ${ac_cv_prog_DLLTOOL+:} false; then : 6542 $as_echo_n "(cached) " >&6 6543else 6544 if test -n "$DLLTOOL"; then 6545 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6546else 6547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6548for as_dir in $PATH 6549do 6550 IFS=$as_save_IFS 6551 test -z "$as_dir" && as_dir=. 6552 for ac_exec_ext in '' $ac_executable_extensions; do 6553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6554 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6556 break 2 6557 fi 6558done 6559 done 6560IFS=$as_save_IFS 6561 6562fi 6563fi 6564DLLTOOL=$ac_cv_prog_DLLTOOL 6565if test -n "$DLLTOOL"; then 6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6567$as_echo "$DLLTOOL" >&6; } 6568else 6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6570$as_echo "no" >&6; } 6571fi 6572 6573 6574fi 6575if test -z "$ac_cv_prog_DLLTOOL"; then 6576 ac_ct_DLLTOOL=$DLLTOOL 6577 # Extract the first word of "dlltool", so it can be a program name with args. 6578set dummy dlltool; ac_word=$2 6579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6580$as_echo_n "checking for $ac_word... " >&6; } 6581if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6582 $as_echo_n "(cached) " >&6 6583else 6584 if test -n "$ac_ct_DLLTOOL"; then 6585 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6586else 6587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6588for as_dir in $PATH 6589do 6590 IFS=$as_save_IFS 6591 test -z "$as_dir" && as_dir=. 6592 for ac_exec_ext in '' $ac_executable_extensions; do 6593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6594 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6596 break 2 6597 fi 6598done 6599 done 6600IFS=$as_save_IFS 6601 6602fi 6603fi 6604ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6605if test -n "$ac_ct_DLLTOOL"; then 6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6607$as_echo "$ac_ct_DLLTOOL" >&6; } 6608else 6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6610$as_echo "no" >&6; } 6611fi 6612 6613 if test "x$ac_ct_DLLTOOL" = x; then 6614 DLLTOOL="false" 6615 else 6616 case $cross_compiling:$ac_tool_warned in 6617yes:) 6618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6620ac_tool_warned=yes ;; 6621esac 6622 DLLTOOL=$ac_ct_DLLTOOL 6623 fi 6624else 6625 DLLTOOL="$ac_cv_prog_DLLTOOL" 6626fi 6627 6628test -z "$DLLTOOL" && DLLTOOL=dlltool 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6640$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6641if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6642 $as_echo_n "(cached) " >&6 6643else 6644 lt_cv_sharedlib_from_linklib_cmd='unknown' 6645 6646case $host_os in 6647cygwin* | mingw* | pw32* | cegcc*) 6648 # two different shell functions defined in ltmain.sh; 6649 # decide which one to use based on capabilities of $DLLTOOL 6650 case `$DLLTOOL --help 2>&1` in 6651 *--identify-strict*) 6652 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6653 ;; 6654 *) 6655 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6656 ;; 6657 esac 6658 ;; 6659*) 6660 # fallback: assume linklib IS sharedlib 6661 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6662 ;; 6663esac 6664 6665fi 6666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6667$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6668sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6669test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6670 6671 6672 6673 6674 6675 6676 6677 6678if test -n "$ac_tool_prefix"; then 6679 for ac_prog in ar 6680 do 6681 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6682set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6684$as_echo_n "checking for $ac_word... " >&6; } 6685if ${ac_cv_prog_AR+:} false; then : 6686 $as_echo_n "(cached) " >&6 6687else 6688 if test -n "$AR"; then 6689 ac_cv_prog_AR="$AR" # Let the user override the test. 6690else 6691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6692for as_dir in $PATH 6693do 6694 IFS=$as_save_IFS 6695 test -z "$as_dir" && as_dir=. 6696 for ac_exec_ext in '' $ac_executable_extensions; do 6697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6698 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6700 break 2 6701 fi 6702done 6703 done 6704IFS=$as_save_IFS 6705 6706fi 6707fi 6708AR=$ac_cv_prog_AR 6709if test -n "$AR"; then 6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6711$as_echo "$AR" >&6; } 6712else 6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6714$as_echo "no" >&6; } 6715fi 6716 6717 6718 test -n "$AR" && break 6719 done 6720fi 6721if test -z "$AR"; then 6722 ac_ct_AR=$AR 6723 for ac_prog in ar 6724do 6725 # Extract the first word of "$ac_prog", so it can be a program name with args. 6726set dummy $ac_prog; ac_word=$2 6727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6728$as_echo_n "checking for $ac_word... " >&6; } 6729if ${ac_cv_prog_ac_ct_AR+:} false; then : 6730 $as_echo_n "(cached) " >&6 6731else 6732 if test -n "$ac_ct_AR"; then 6733 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6734else 6735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6736for as_dir in $PATH 6737do 6738 IFS=$as_save_IFS 6739 test -z "$as_dir" && as_dir=. 6740 for ac_exec_ext in '' $ac_executable_extensions; do 6741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6742 ac_cv_prog_ac_ct_AR="$ac_prog" 6743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6744 break 2 6745 fi 6746done 6747 done 6748IFS=$as_save_IFS 6749 6750fi 6751fi 6752ac_ct_AR=$ac_cv_prog_ac_ct_AR 6753if test -n "$ac_ct_AR"; then 6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6755$as_echo "$ac_ct_AR" >&6; } 6756else 6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6758$as_echo "no" >&6; } 6759fi 6760 6761 6762 test -n "$ac_ct_AR" && break 6763done 6764 6765 if test "x$ac_ct_AR" = x; then 6766 AR="false" 6767 else 6768 case $cross_compiling:$ac_tool_warned in 6769yes:) 6770{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6772ac_tool_warned=yes ;; 6773esac 6774 AR=$ac_ct_AR 6775 fi 6776fi 6777 6778: ${AR=ar} 6779: ${AR_FLAGS=cru} 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6792$as_echo_n "checking for archiver @FILE support... " >&6; } 6793if ${lt_cv_ar_at_file+:} false; then : 6794 $as_echo_n "(cached) " >&6 6795else 6796 lt_cv_ar_at_file=no 6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6798/* end confdefs.h. */ 6799 6800int 6801main () 6802{ 6803 6804 ; 6805 return 0; 6806} 6807_ACEOF 6808if ac_fn_c_try_compile "$LINENO"; then : 6809 echo conftest.$ac_objext > conftest.lst 6810 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6812 (eval $lt_ar_try) 2>&5 6813 ac_status=$? 6814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6815 test $ac_status = 0; } 6816 if test 0 -eq "$ac_status"; then 6817 # Ensure the archiver fails upon bogus file names. 6818 rm -f conftest.$ac_objext libconftest.a 6819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6820 (eval $lt_ar_try) 2>&5 6821 ac_status=$? 6822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6823 test $ac_status = 0; } 6824 if test 0 -ne "$ac_status"; then 6825 lt_cv_ar_at_file=@ 6826 fi 6827 fi 6828 rm -f conftest.* libconftest.a 6829 6830fi 6831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6832 6833fi 6834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6835$as_echo "$lt_cv_ar_at_file" >&6; } 6836 6837if test no = "$lt_cv_ar_at_file"; then 6838 archiver_list_spec= 6839else 6840 archiver_list_spec=$lt_cv_ar_at_file 6841fi 6842 6843 6844 6845 6846 6847 6848 6849if test -n "$ac_tool_prefix"; then 6850 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6851set dummy ${ac_tool_prefix}strip; ac_word=$2 6852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6853$as_echo_n "checking for $ac_word... " >&6; } 6854if ${ac_cv_prog_STRIP+:} false; then : 6855 $as_echo_n "(cached) " >&6 6856else 6857 if test -n "$STRIP"; then 6858 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6859else 6860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6861for as_dir in $PATH 6862do 6863 IFS=$as_save_IFS 6864 test -z "$as_dir" && as_dir=. 6865 for ac_exec_ext in '' $ac_executable_extensions; do 6866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6867 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6869 break 2 6870 fi 6871done 6872 done 6873IFS=$as_save_IFS 6874 6875fi 6876fi 6877STRIP=$ac_cv_prog_STRIP 6878if test -n "$STRIP"; then 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6880$as_echo "$STRIP" >&6; } 6881else 6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6883$as_echo "no" >&6; } 6884fi 6885 6886 6887fi 6888if test -z "$ac_cv_prog_STRIP"; then 6889 ac_ct_STRIP=$STRIP 6890 # Extract the first word of "strip", so it can be a program name with args. 6891set dummy strip; ac_word=$2 6892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6893$as_echo_n "checking for $ac_word... " >&6; } 6894if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6895 $as_echo_n "(cached) " >&6 6896else 6897 if test -n "$ac_ct_STRIP"; then 6898 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6899else 6900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6901for as_dir in $PATH 6902do 6903 IFS=$as_save_IFS 6904 test -z "$as_dir" && as_dir=. 6905 for ac_exec_ext in '' $ac_executable_extensions; do 6906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6907 ac_cv_prog_ac_ct_STRIP="strip" 6908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6909 break 2 6910 fi 6911done 6912 done 6913IFS=$as_save_IFS 6914 6915fi 6916fi 6917ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6918if test -n "$ac_ct_STRIP"; then 6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6920$as_echo "$ac_ct_STRIP" >&6; } 6921else 6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6923$as_echo "no" >&6; } 6924fi 6925 6926 if test "x$ac_ct_STRIP" = x; then 6927 STRIP=":" 6928 else 6929 case $cross_compiling:$ac_tool_warned in 6930yes:) 6931{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6932$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6933ac_tool_warned=yes ;; 6934esac 6935 STRIP=$ac_ct_STRIP 6936 fi 6937else 6938 STRIP="$ac_cv_prog_STRIP" 6939fi 6940 6941test -z "$STRIP" && STRIP=: 6942 6943 6944 6945 6946 6947 6948if test -n "$ac_tool_prefix"; then 6949 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6950set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6952$as_echo_n "checking for $ac_word... " >&6; } 6953if ${ac_cv_prog_RANLIB+:} false; then : 6954 $as_echo_n "(cached) " >&6 6955else 6956 if test -n "$RANLIB"; then 6957 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6958else 6959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6960for as_dir in $PATH 6961do 6962 IFS=$as_save_IFS 6963 test -z "$as_dir" && as_dir=. 6964 for ac_exec_ext in '' $ac_executable_extensions; do 6965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6966 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6968 break 2 6969 fi 6970done 6971 done 6972IFS=$as_save_IFS 6973 6974fi 6975fi 6976RANLIB=$ac_cv_prog_RANLIB 6977if test -n "$RANLIB"; then 6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6979$as_echo "$RANLIB" >&6; } 6980else 6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6982$as_echo "no" >&6; } 6983fi 6984 6985 6986fi 6987if test -z "$ac_cv_prog_RANLIB"; then 6988 ac_ct_RANLIB=$RANLIB 6989 # Extract the first word of "ranlib", so it can be a program name with args. 6990set dummy ranlib; ac_word=$2 6991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6992$as_echo_n "checking for $ac_word... " >&6; } 6993if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6994 $as_echo_n "(cached) " >&6 6995else 6996 if test -n "$ac_ct_RANLIB"; then 6997 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6998else 6999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7000for as_dir in $PATH 7001do 7002 IFS=$as_save_IFS 7003 test -z "$as_dir" && as_dir=. 7004 for ac_exec_ext in '' $ac_executable_extensions; do 7005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7006 ac_cv_prog_ac_ct_RANLIB="ranlib" 7007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7008 break 2 7009 fi 7010done 7011 done 7012IFS=$as_save_IFS 7013 7014fi 7015fi 7016ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7017if test -n "$ac_ct_RANLIB"; then 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7019$as_echo "$ac_ct_RANLIB" >&6; } 7020else 7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7022$as_echo "no" >&6; } 7023fi 7024 7025 if test "x$ac_ct_RANLIB" = x; then 7026 RANLIB=":" 7027 else 7028 case $cross_compiling:$ac_tool_warned in 7029yes:) 7030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7032ac_tool_warned=yes ;; 7033esac 7034 RANLIB=$ac_ct_RANLIB 7035 fi 7036else 7037 RANLIB="$ac_cv_prog_RANLIB" 7038fi 7039 7040test -z "$RANLIB" && RANLIB=: 7041 7042 7043 7044 7045 7046 7047# Determine commands to create old-style static archives. 7048old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7049old_postinstall_cmds='chmod 644 $oldlib' 7050old_postuninstall_cmds= 7051 7052if test -n "$RANLIB"; then 7053 case $host_os in 7054 bitrig* | openbsd*) 7055 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7056 ;; 7057 *) 7058 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7059 ;; 7060 esac 7061 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7062fi 7063 7064case $host_os in 7065 darwin*) 7066 lock_old_archive_extraction=yes ;; 7067 *) 7068 lock_old_archive_extraction=no ;; 7069esac 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109# If no C compiler was specified, use CC. 7110LTCC=${LTCC-"$CC"} 7111 7112# If no C compiler flags were specified, use CFLAGS. 7113LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7114 7115# Allow CC to be a program name with arguments. 7116compiler=$CC 7117 7118 7119# Check for command to grab the raw symbol name followed by C symbol from nm. 7120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7121$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7122if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7123 $as_echo_n "(cached) " >&6 7124else 7125 7126# These are sane defaults that work on at least a few old systems. 7127# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7128 7129# Character class describing NM global symbol codes. 7130symcode='[BCDEGRST]' 7131 7132# Regexp to match symbols that can be accessed directly from C. 7133sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7134 7135# Define system-specific variables. 7136case $host_os in 7137aix*) 7138 symcode='[BCDT]' 7139 ;; 7140cygwin* | mingw* | pw32* | cegcc*) 7141 symcode='[ABCDGISTW]' 7142 ;; 7143hpux*) 7144 if test ia64 = "$host_cpu"; then 7145 symcode='[ABCDEGRST]' 7146 fi 7147 ;; 7148irix* | nonstopux*) 7149 symcode='[BCDEGRST]' 7150 ;; 7151osf*) 7152 symcode='[BCDEGQRST]' 7153 ;; 7154solaris*) 7155 symcode='[BDRT]' 7156 ;; 7157sco3.2v5*) 7158 symcode='[DT]' 7159 ;; 7160sysv4.2uw2*) 7161 symcode='[DT]' 7162 ;; 7163sysv5* | sco5v6* | unixware* | OpenUNIX*) 7164 symcode='[ABDT]' 7165 ;; 7166sysv4) 7167 symcode='[DFNSTU]' 7168 ;; 7169esac 7170 7171# If we're using GNU nm, then use its standard symbol codes. 7172case `$NM -V 2>&1` in 7173*GNU* | *'with BFD'*) 7174 symcode='[ABCDGIRSTW]' ;; 7175esac 7176 7177if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7178 # Gets list of data symbols to import. 7179 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7180 # Adjust the below global symbol transforms to fixup imported variables. 7181 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7182 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7183 lt_c_name_lib_hook="\ 7184 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7185 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7186else 7187 # Disable hooks by default. 7188 lt_cv_sys_global_symbol_to_import= 7189 lt_cdecl_hook= 7190 lt_c_name_hook= 7191 lt_c_name_lib_hook= 7192fi 7193 7194# Transform an extracted symbol line into a proper C declaration. 7195# Some systems (esp. on ia64) link data and code symbols differently, 7196# so use this general approach. 7197lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7198$lt_cdecl_hook\ 7199" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7200" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7201 7202# Transform an extracted symbol line into symbol name and symbol address 7203lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7204$lt_c_name_hook\ 7205" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7206" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7207 7208# Transform an extracted symbol line into symbol name with lib prefix and 7209# symbol address. 7210lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7211$lt_c_name_lib_hook\ 7212" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7213" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7214" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7215 7216# Handle CRLF in mingw tool chain 7217opt_cr= 7218case $build_os in 7219mingw*) 7220 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7221 ;; 7222esac 7223 7224# Try without a prefix underscore, then with it. 7225for ac_symprfx in "" "_"; do 7226 7227 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7228 symxfrm="\\1 $ac_symprfx\\2 \\2" 7229 7230 # Write the raw and C identifiers. 7231 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7232 # Fake it for dumpbin and say T for any non-static function, 7233 # D for any global variable and I for any imported variable. 7234 # Also find C++ and __fastcall symbols from MSVC++, 7235 # which start with @ or ?. 7236 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7237" {last_section=section; section=\$ 3};"\ 7238" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7239" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7240" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7241" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7242" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7243" \$ 0!~/External *\|/{next};"\ 7244" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7245" {if(hide[section]) next};"\ 7246" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7247" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7248" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7249" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7250" ' prfx=^$ac_symprfx" 7251 else 7252 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7253 fi 7254 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7255 7256 # Check to see that the pipe works correctly. 7257 pipe_works=no 7258 7259 rm -f conftest* 7260 cat > conftest.$ac_ext <<_LT_EOF 7261#ifdef __cplusplus 7262extern "C" { 7263#endif 7264char nm_test_var; 7265void nm_test_func(void); 7266void nm_test_func(void){} 7267#ifdef __cplusplus 7268} 7269#endif 7270int main(){nm_test_var='a';nm_test_func();return(0);} 7271_LT_EOF 7272 7273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7274 (eval $ac_compile) 2>&5 7275 ac_status=$? 7276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7277 test $ac_status = 0; }; then 7278 # Now try to grab the symbols. 7279 nlist=conftest.nm 7280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7281 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7282 ac_status=$? 7283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7284 test $ac_status = 0; } && test -s "$nlist"; then 7285 # Try sorting and uniquifying the output. 7286 if sort "$nlist" | uniq > "$nlist"T; then 7287 mv -f "$nlist"T "$nlist" 7288 else 7289 rm -f "$nlist"T 7290 fi 7291 7292 # Make sure that we snagged all the symbols we need. 7293 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7294 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7295 cat <<_LT_EOF > conftest.$ac_ext 7296/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7297#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7298/* DATA imports from DLLs on WIN32 can't be const, because runtime 7299 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7300# define LT_DLSYM_CONST 7301#elif defined __osf__ 7302/* This system does not cope well with relocations in const data. */ 7303# define LT_DLSYM_CONST 7304#else 7305# define LT_DLSYM_CONST const 7306#endif 7307 7308#ifdef __cplusplus 7309extern "C" { 7310#endif 7311 7312_LT_EOF 7313 # Now generate the symbol file. 7314 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7315 7316 cat <<_LT_EOF >> conftest.$ac_ext 7317 7318/* The mapping between symbol names and symbols. */ 7319LT_DLSYM_CONST struct { 7320 const char *name; 7321 void *address; 7322} 7323lt__PROGRAM__LTX_preloaded_symbols[] = 7324{ 7325 { "@PROGRAM@", (void *) 0 }, 7326_LT_EOF 7327 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7328 cat <<\_LT_EOF >> conftest.$ac_ext 7329 {0, (void *) 0} 7330}; 7331 7332/* This works around a problem in FreeBSD linker */ 7333#ifdef FREEBSD_WORKAROUND 7334static const void *lt_preloaded_setup() { 7335 return lt__PROGRAM__LTX_preloaded_symbols; 7336} 7337#endif 7338 7339#ifdef __cplusplus 7340} 7341#endif 7342_LT_EOF 7343 # Now try linking the two files. 7344 mv conftest.$ac_objext conftstm.$ac_objext 7345 lt_globsym_save_LIBS=$LIBS 7346 lt_globsym_save_CFLAGS=$CFLAGS 7347 LIBS=conftstm.$ac_objext 7348 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7350 (eval $ac_link) 2>&5 7351 ac_status=$? 7352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7353 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7354 pipe_works=yes 7355 fi 7356 LIBS=$lt_globsym_save_LIBS 7357 CFLAGS=$lt_globsym_save_CFLAGS 7358 else 7359 echo "cannot find nm_test_func in $nlist" >&5 7360 fi 7361 else 7362 echo "cannot find nm_test_var in $nlist" >&5 7363 fi 7364 else 7365 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7366 fi 7367 else 7368 echo "$progname: failed program was:" >&5 7369 cat conftest.$ac_ext >&5 7370 fi 7371 rm -rf conftest* conftst* 7372 7373 # Do not use the global_symbol_pipe unless it works. 7374 if test yes = "$pipe_works"; then 7375 break 7376 else 7377 lt_cv_sys_global_symbol_pipe= 7378 fi 7379done 7380 7381fi 7382 7383if test -z "$lt_cv_sys_global_symbol_pipe"; then 7384 lt_cv_sys_global_symbol_to_cdecl= 7385fi 7386if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7388$as_echo "failed" >&6; } 7389else 7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7391$as_echo "ok" >&6; } 7392fi 7393 7394# Response file support. 7395if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7396 nm_file_list_spec='@' 7397elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7398 nm_file_list_spec='@' 7399fi 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7438$as_echo_n "checking for sysroot... " >&6; } 7439 7440# Check whether --with-sysroot was given. 7441if test "${with_sysroot+set}" = set; then : 7442 withval=$with_sysroot; 7443else 7444 with_sysroot=no 7445fi 7446 7447 7448lt_sysroot= 7449case $with_sysroot in #( 7450 yes) 7451 if test yes = "$GCC"; then 7452 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7453 fi 7454 ;; #( 7455 /*) 7456 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7457 ;; #( 7458 no|'') 7459 ;; #( 7460 *) 7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7462$as_echo "$with_sysroot" >&6; } 7463 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7464 ;; 7465esac 7466 7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7468$as_echo "${lt_sysroot:-no}" >&6; } 7469 7470 7471 7472 7473 7474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7475$as_echo_n "checking for a working dd... " >&6; } 7476if ${ac_cv_path_lt_DD+:} false; then : 7477 $as_echo_n "(cached) " >&6 7478else 7479 printf 0123456789abcdef0123456789abcdef >conftest.i 7480cat conftest.i conftest.i >conftest2.i 7481: ${lt_DD:=$DD} 7482if test -z "$lt_DD"; then 7483 ac_path_lt_DD_found=false 7484 # Loop through the user's path and test for each of PROGNAME-LIST 7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7486for as_dir in $PATH 7487do 7488 IFS=$as_save_IFS 7489 test -z "$as_dir" && as_dir=. 7490 for ac_prog in dd; do 7491 for ac_exec_ext in '' $ac_executable_extensions; do 7492 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7493 as_fn_executable_p "$ac_path_lt_DD" || continue 7494if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7495 cmp -s conftest.i conftest.out \ 7496 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7497fi 7498 $ac_path_lt_DD_found && break 3 7499 done 7500 done 7501 done 7502IFS=$as_save_IFS 7503 if test -z "$ac_cv_path_lt_DD"; then 7504 : 7505 fi 7506else 7507 ac_cv_path_lt_DD=$lt_DD 7508fi 7509 7510rm -f conftest.i conftest2.i conftest.out 7511fi 7512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7513$as_echo "$ac_cv_path_lt_DD" >&6; } 7514 7515 7516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7517$as_echo_n "checking how to truncate binary pipes... " >&6; } 7518if ${lt_cv_truncate_bin+:} false; then : 7519 $as_echo_n "(cached) " >&6 7520else 7521 printf 0123456789abcdef0123456789abcdef >conftest.i 7522cat conftest.i conftest.i >conftest2.i 7523lt_cv_truncate_bin= 7524if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7525 cmp -s conftest.i conftest.out \ 7526 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7527fi 7528rm -f conftest.i conftest2.i conftest.out 7529test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7530fi 7531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7532$as_echo "$lt_cv_truncate_bin" >&6; } 7533 7534 7535 7536 7537 7538 7539 7540# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7541func_cc_basename () 7542{ 7543 for cc_temp in $*""; do 7544 case $cc_temp in 7545 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7546 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7547 \-*) ;; 7548 *) break;; 7549 esac 7550 done 7551 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7552} 7553 7554# Check whether --enable-libtool-lock was given. 7555if test "${enable_libtool_lock+set}" = set; then : 7556 enableval=$enable_libtool_lock; 7557fi 7558 7559test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7560 7561# Some flags need to be propagated to the compiler or linker for good 7562# libtool support. 7563case $host in 7564ia64-*-hpux*) 7565 # Find out what ABI is being produced by ac_compile, and set mode 7566 # options accordingly. 7567 echo 'int i;' > conftest.$ac_ext 7568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7569 (eval $ac_compile) 2>&5 7570 ac_status=$? 7571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7572 test $ac_status = 0; }; then 7573 case `/usr/bin/file conftest.$ac_objext` in 7574 *ELF-32*) 7575 HPUX_IA64_MODE=32 7576 ;; 7577 *ELF-64*) 7578 HPUX_IA64_MODE=64 7579 ;; 7580 esac 7581 fi 7582 rm -rf conftest* 7583 ;; 7584*-*-irix6*) 7585 # Find out what ABI is being produced by ac_compile, and set linker 7586 # options accordingly. 7587 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7589 (eval $ac_compile) 2>&5 7590 ac_status=$? 7591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7592 test $ac_status = 0; }; then 7593 if test yes = "$lt_cv_prog_gnu_ld"; then 7594 case `/usr/bin/file conftest.$ac_objext` in 7595 *32-bit*) 7596 LD="${LD-ld} -melf32bsmip" 7597 ;; 7598 *N32*) 7599 LD="${LD-ld} -melf32bmipn32" 7600 ;; 7601 *64-bit*) 7602 LD="${LD-ld} -melf64bmip" 7603 ;; 7604 esac 7605 else 7606 case `/usr/bin/file conftest.$ac_objext` in 7607 *32-bit*) 7608 LD="${LD-ld} -32" 7609 ;; 7610 *N32*) 7611 LD="${LD-ld} -n32" 7612 ;; 7613 *64-bit*) 7614 LD="${LD-ld} -64" 7615 ;; 7616 esac 7617 fi 7618 fi 7619 rm -rf conftest* 7620 ;; 7621 7622mips64*-*linux*) 7623 # Find out what ABI is being produced by ac_compile, and set linker 7624 # options accordingly. 7625 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7627 (eval $ac_compile) 2>&5 7628 ac_status=$? 7629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7630 test $ac_status = 0; }; then 7631 emul=elf 7632 case `/usr/bin/file conftest.$ac_objext` in 7633 *32-bit*) 7634 emul="${emul}32" 7635 ;; 7636 *64-bit*) 7637 emul="${emul}64" 7638 ;; 7639 esac 7640 case `/usr/bin/file conftest.$ac_objext` in 7641 *MSB*) 7642 emul="${emul}btsmip" 7643 ;; 7644 *LSB*) 7645 emul="${emul}ltsmip" 7646 ;; 7647 esac 7648 case `/usr/bin/file conftest.$ac_objext` in 7649 *N32*) 7650 emul="${emul}n32" 7651 ;; 7652 esac 7653 LD="${LD-ld} -m $emul" 7654 fi 7655 rm -rf conftest* 7656 ;; 7657 7658x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7659s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7660 # Find out what ABI is being produced by ac_compile, and set linker 7661 # options accordingly. Note that the listed cases only cover the 7662 # situations where additional linker options are needed (such as when 7663 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7664 # vice versa); the common cases where no linker options are needed do 7665 # not appear in the list. 7666 echo 'int i;' > conftest.$ac_ext 7667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7668 (eval $ac_compile) 2>&5 7669 ac_status=$? 7670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7671 test $ac_status = 0; }; then 7672 case `/usr/bin/file conftest.o` in 7673 *32-bit*) 7674 case $host in 7675 x86_64-*kfreebsd*-gnu) 7676 LD="${LD-ld} -m elf_i386_fbsd" 7677 ;; 7678 x86_64-*linux*) 7679 case `/usr/bin/file conftest.o` in 7680 *x86-64*) 7681 LD="${LD-ld} -m elf32_x86_64" 7682 ;; 7683 *) 7684 LD="${LD-ld} -m elf_i386" 7685 ;; 7686 esac 7687 ;; 7688 powerpc64le-*linux*) 7689 LD="${LD-ld} -m elf32lppclinux" 7690 ;; 7691 powerpc64-*linux*) 7692 LD="${LD-ld} -m elf32ppclinux" 7693 ;; 7694 s390x-*linux*) 7695 LD="${LD-ld} -m elf_s390" 7696 ;; 7697 sparc64-*linux*) 7698 LD="${LD-ld} -m elf32_sparc" 7699 ;; 7700 esac 7701 ;; 7702 *64-bit*) 7703 case $host in 7704 x86_64-*kfreebsd*-gnu) 7705 LD="${LD-ld} -m elf_x86_64_fbsd" 7706 ;; 7707 x86_64-*linux*) 7708 LD="${LD-ld} -m elf_x86_64" 7709 ;; 7710 powerpcle-*linux*) 7711 LD="${LD-ld} -m elf64lppc" 7712 ;; 7713 powerpc-*linux*) 7714 LD="${LD-ld} -m elf64ppc" 7715 ;; 7716 s390*-*linux*|s390*-*tpf*) 7717 LD="${LD-ld} -m elf64_s390" 7718 ;; 7719 sparc*-*linux*) 7720 LD="${LD-ld} -m elf64_sparc" 7721 ;; 7722 esac 7723 ;; 7724 esac 7725 fi 7726 rm -rf conftest* 7727 ;; 7728 7729*-*-sco3.2v5*) 7730 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7731 SAVE_CFLAGS=$CFLAGS 7732 CFLAGS="$CFLAGS -belf" 7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7734$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7735if ${lt_cv_cc_needs_belf+:} false; then : 7736 $as_echo_n "(cached) " >&6 7737else 7738 ac_ext=c 7739ac_cpp='$CPP $CPPFLAGS' 7740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7742ac_compiler_gnu=$ac_cv_c_compiler_gnu 7743 7744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7745/* end confdefs.h. */ 7746 7747int 7748main () 7749{ 7750 7751 ; 7752 return 0; 7753} 7754_ACEOF 7755if ac_fn_c_try_link "$LINENO"; then : 7756 lt_cv_cc_needs_belf=yes 7757else 7758 lt_cv_cc_needs_belf=no 7759fi 7760rm -f core conftest.err conftest.$ac_objext \ 7761 conftest$ac_exeext conftest.$ac_ext 7762 ac_ext=c 7763ac_cpp='$CPP $CPPFLAGS' 7764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7766ac_compiler_gnu=$ac_cv_c_compiler_gnu 7767 7768fi 7769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7770$as_echo "$lt_cv_cc_needs_belf" >&6; } 7771 if test yes != "$lt_cv_cc_needs_belf"; then 7772 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7773 CFLAGS=$SAVE_CFLAGS 7774 fi 7775 ;; 7776*-*solaris*) 7777 # Find out what ABI is being produced by ac_compile, and set linker 7778 # options accordingly. 7779 echo 'int i;' > conftest.$ac_ext 7780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7781 (eval $ac_compile) 2>&5 7782 ac_status=$? 7783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7784 test $ac_status = 0; }; then 7785 case `/usr/bin/file conftest.o` in 7786 *64-bit*) 7787 case $lt_cv_prog_gnu_ld in 7788 yes*) 7789 case $host in 7790 i?86-*-solaris*|x86_64-*-solaris*) 7791 LD="${LD-ld} -m elf_x86_64" 7792 ;; 7793 sparc*-*-solaris*) 7794 LD="${LD-ld} -m elf64_sparc" 7795 ;; 7796 esac 7797 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7798 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7799 LD=${LD-ld}_sol2 7800 fi 7801 ;; 7802 *) 7803 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7804 LD="${LD-ld} -64" 7805 fi 7806 ;; 7807 esac 7808 ;; 7809 esac 7810 fi 7811 rm -rf conftest* 7812 ;; 7813esac 7814 7815need_locks=$enable_libtool_lock 7816 7817if test -n "$ac_tool_prefix"; then 7818 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7819set dummy ${ac_tool_prefix}mt; ac_word=$2 7820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7821$as_echo_n "checking for $ac_word... " >&6; } 7822if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7823 $as_echo_n "(cached) " >&6 7824else 7825 if test -n "$MANIFEST_TOOL"; then 7826 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7827else 7828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7829for as_dir in $PATH 7830do 7831 IFS=$as_save_IFS 7832 test -z "$as_dir" && as_dir=. 7833 for ac_exec_ext in '' $ac_executable_extensions; do 7834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7835 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7837 break 2 7838 fi 7839done 7840 done 7841IFS=$as_save_IFS 7842 7843fi 7844fi 7845MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7846if test -n "$MANIFEST_TOOL"; then 7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7848$as_echo "$MANIFEST_TOOL" >&6; } 7849else 7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7851$as_echo "no" >&6; } 7852fi 7853 7854 7855fi 7856if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7857 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7858 # Extract the first word of "mt", so it can be a program name with args. 7859set dummy mt; ac_word=$2 7860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7861$as_echo_n "checking for $ac_word... " >&6; } 7862if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7863 $as_echo_n "(cached) " >&6 7864else 7865 if test -n "$ac_ct_MANIFEST_TOOL"; then 7866 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7867else 7868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7869for as_dir in $PATH 7870do 7871 IFS=$as_save_IFS 7872 test -z "$as_dir" && as_dir=. 7873 for ac_exec_ext in '' $ac_executable_extensions; do 7874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7875 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7877 break 2 7878 fi 7879done 7880 done 7881IFS=$as_save_IFS 7882 7883fi 7884fi 7885ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7886if test -n "$ac_ct_MANIFEST_TOOL"; then 7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7888$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7889else 7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7891$as_echo "no" >&6; } 7892fi 7893 7894 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7895 MANIFEST_TOOL=":" 7896 else 7897 case $cross_compiling:$ac_tool_warned in 7898yes:) 7899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7901ac_tool_warned=yes ;; 7902esac 7903 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7904 fi 7905else 7906 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7907fi 7908 7909test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7911$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7912if ${lt_cv_path_mainfest_tool+:} false; then : 7913 $as_echo_n "(cached) " >&6 7914else 7915 lt_cv_path_mainfest_tool=no 7916 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7917 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7918 cat conftest.err >&5 7919 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7920 lt_cv_path_mainfest_tool=yes 7921 fi 7922 rm -f conftest* 7923fi 7924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7925$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7926if test yes != "$lt_cv_path_mainfest_tool"; then 7927 MANIFEST_TOOL=: 7928fi 7929 7930 7931 7932 7933 7934 7935 case $host_os in 7936 rhapsody* | darwin*) 7937 if test -n "$ac_tool_prefix"; then 7938 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7939set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7941$as_echo_n "checking for $ac_word... " >&6; } 7942if ${ac_cv_prog_DSYMUTIL+:} false; then : 7943 $as_echo_n "(cached) " >&6 7944else 7945 if test -n "$DSYMUTIL"; then 7946 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7947else 7948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7949for as_dir in $PATH 7950do 7951 IFS=$as_save_IFS 7952 test -z "$as_dir" && as_dir=. 7953 for ac_exec_ext in '' $ac_executable_extensions; do 7954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7955 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7957 break 2 7958 fi 7959done 7960 done 7961IFS=$as_save_IFS 7962 7963fi 7964fi 7965DSYMUTIL=$ac_cv_prog_DSYMUTIL 7966if test -n "$DSYMUTIL"; then 7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7968$as_echo "$DSYMUTIL" >&6; } 7969else 7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7971$as_echo "no" >&6; } 7972fi 7973 7974 7975fi 7976if test -z "$ac_cv_prog_DSYMUTIL"; then 7977 ac_ct_DSYMUTIL=$DSYMUTIL 7978 # Extract the first word of "dsymutil", so it can be a program name with args. 7979set dummy dsymutil; ac_word=$2 7980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7981$as_echo_n "checking for $ac_word... " >&6; } 7982if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7983 $as_echo_n "(cached) " >&6 7984else 7985 if test -n "$ac_ct_DSYMUTIL"; then 7986 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7987else 7988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7989for as_dir in $PATH 7990do 7991 IFS=$as_save_IFS 7992 test -z "$as_dir" && as_dir=. 7993 for ac_exec_ext in '' $ac_executable_extensions; do 7994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7995 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7997 break 2 7998 fi 7999done 8000 done 8001IFS=$as_save_IFS 8002 8003fi 8004fi 8005ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8006if test -n "$ac_ct_DSYMUTIL"; then 8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8008$as_echo "$ac_ct_DSYMUTIL" >&6; } 8009else 8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8011$as_echo "no" >&6; } 8012fi 8013 8014 if test "x$ac_ct_DSYMUTIL" = x; then 8015 DSYMUTIL=":" 8016 else 8017 case $cross_compiling:$ac_tool_warned in 8018yes:) 8019{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8020$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8021ac_tool_warned=yes ;; 8022esac 8023 DSYMUTIL=$ac_ct_DSYMUTIL 8024 fi 8025else 8026 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8027fi 8028 8029 if test -n "$ac_tool_prefix"; then 8030 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8031set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8033$as_echo_n "checking for $ac_word... " >&6; } 8034if ${ac_cv_prog_NMEDIT+:} false; then : 8035 $as_echo_n "(cached) " >&6 8036else 8037 if test -n "$NMEDIT"; then 8038 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8039else 8040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8041for as_dir in $PATH 8042do 8043 IFS=$as_save_IFS 8044 test -z "$as_dir" && as_dir=. 8045 for ac_exec_ext in '' $ac_executable_extensions; do 8046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8047 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8049 break 2 8050 fi 8051done 8052 done 8053IFS=$as_save_IFS 8054 8055fi 8056fi 8057NMEDIT=$ac_cv_prog_NMEDIT 8058if test -n "$NMEDIT"; then 8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8060$as_echo "$NMEDIT" >&6; } 8061else 8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8063$as_echo "no" >&6; } 8064fi 8065 8066 8067fi 8068if test -z "$ac_cv_prog_NMEDIT"; then 8069 ac_ct_NMEDIT=$NMEDIT 8070 # Extract the first word of "nmedit", so it can be a program name with args. 8071set dummy nmedit; ac_word=$2 8072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8073$as_echo_n "checking for $ac_word... " >&6; } 8074if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8075 $as_echo_n "(cached) " >&6 8076else 8077 if test -n "$ac_ct_NMEDIT"; then 8078 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8079else 8080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8081for as_dir in $PATH 8082do 8083 IFS=$as_save_IFS 8084 test -z "$as_dir" && as_dir=. 8085 for ac_exec_ext in '' $ac_executable_extensions; do 8086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8087 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8089 break 2 8090 fi 8091done 8092 done 8093IFS=$as_save_IFS 8094 8095fi 8096fi 8097ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8098if test -n "$ac_ct_NMEDIT"; then 8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8100$as_echo "$ac_ct_NMEDIT" >&6; } 8101else 8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8103$as_echo "no" >&6; } 8104fi 8105 8106 if test "x$ac_ct_NMEDIT" = x; then 8107 NMEDIT=":" 8108 else 8109 case $cross_compiling:$ac_tool_warned in 8110yes:) 8111{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8112$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8113ac_tool_warned=yes ;; 8114esac 8115 NMEDIT=$ac_ct_NMEDIT 8116 fi 8117else 8118 NMEDIT="$ac_cv_prog_NMEDIT" 8119fi 8120 8121 if test -n "$ac_tool_prefix"; then 8122 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8123set dummy ${ac_tool_prefix}lipo; ac_word=$2 8124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8125$as_echo_n "checking for $ac_word... " >&6; } 8126if ${ac_cv_prog_LIPO+:} false; then : 8127 $as_echo_n "(cached) " >&6 8128else 8129 if test -n "$LIPO"; then 8130 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8131else 8132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8133for as_dir in $PATH 8134do 8135 IFS=$as_save_IFS 8136 test -z "$as_dir" && as_dir=. 8137 for ac_exec_ext in '' $ac_executable_extensions; do 8138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8139 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8141 break 2 8142 fi 8143done 8144 done 8145IFS=$as_save_IFS 8146 8147fi 8148fi 8149LIPO=$ac_cv_prog_LIPO 8150if test -n "$LIPO"; then 8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8152$as_echo "$LIPO" >&6; } 8153else 8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8155$as_echo "no" >&6; } 8156fi 8157 8158 8159fi 8160if test -z "$ac_cv_prog_LIPO"; then 8161 ac_ct_LIPO=$LIPO 8162 # Extract the first word of "lipo", so it can be a program name with args. 8163set dummy lipo; ac_word=$2 8164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8165$as_echo_n "checking for $ac_word... " >&6; } 8166if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8167 $as_echo_n "(cached) " >&6 8168else 8169 if test -n "$ac_ct_LIPO"; then 8170 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8171else 8172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8173for as_dir in $PATH 8174do 8175 IFS=$as_save_IFS 8176 test -z "$as_dir" && as_dir=. 8177 for ac_exec_ext in '' $ac_executable_extensions; do 8178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8179 ac_cv_prog_ac_ct_LIPO="lipo" 8180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8181 break 2 8182 fi 8183done 8184 done 8185IFS=$as_save_IFS 8186 8187fi 8188fi 8189ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8190if test -n "$ac_ct_LIPO"; then 8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8192$as_echo "$ac_ct_LIPO" >&6; } 8193else 8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8195$as_echo "no" >&6; } 8196fi 8197 8198 if test "x$ac_ct_LIPO" = x; then 8199 LIPO=":" 8200 else 8201 case $cross_compiling:$ac_tool_warned in 8202yes:) 8203{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8204$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8205ac_tool_warned=yes ;; 8206esac 8207 LIPO=$ac_ct_LIPO 8208 fi 8209else 8210 LIPO="$ac_cv_prog_LIPO" 8211fi 8212 8213 if test -n "$ac_tool_prefix"; then 8214 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8215set dummy ${ac_tool_prefix}otool; ac_word=$2 8216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8217$as_echo_n "checking for $ac_word... " >&6; } 8218if ${ac_cv_prog_OTOOL+:} false; then : 8219 $as_echo_n "(cached) " >&6 8220else 8221 if test -n "$OTOOL"; then 8222 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8223else 8224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8225for as_dir in $PATH 8226do 8227 IFS=$as_save_IFS 8228 test -z "$as_dir" && as_dir=. 8229 for ac_exec_ext in '' $ac_executable_extensions; do 8230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8231 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8233 break 2 8234 fi 8235done 8236 done 8237IFS=$as_save_IFS 8238 8239fi 8240fi 8241OTOOL=$ac_cv_prog_OTOOL 8242if test -n "$OTOOL"; then 8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8244$as_echo "$OTOOL" >&6; } 8245else 8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8247$as_echo "no" >&6; } 8248fi 8249 8250 8251fi 8252if test -z "$ac_cv_prog_OTOOL"; then 8253 ac_ct_OTOOL=$OTOOL 8254 # Extract the first word of "otool", so it can be a program name with args. 8255set dummy otool; ac_word=$2 8256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8257$as_echo_n "checking for $ac_word... " >&6; } 8258if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8259 $as_echo_n "(cached) " >&6 8260else 8261 if test -n "$ac_ct_OTOOL"; then 8262 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8263else 8264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8265for as_dir in $PATH 8266do 8267 IFS=$as_save_IFS 8268 test -z "$as_dir" && as_dir=. 8269 for ac_exec_ext in '' $ac_executable_extensions; do 8270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8271 ac_cv_prog_ac_ct_OTOOL="otool" 8272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8273 break 2 8274 fi 8275done 8276 done 8277IFS=$as_save_IFS 8278 8279fi 8280fi 8281ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8282if test -n "$ac_ct_OTOOL"; then 8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8284$as_echo "$ac_ct_OTOOL" >&6; } 8285else 8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8287$as_echo "no" >&6; } 8288fi 8289 8290 if test "x$ac_ct_OTOOL" = x; then 8291 OTOOL=":" 8292 else 8293 case $cross_compiling:$ac_tool_warned in 8294yes:) 8295{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8297ac_tool_warned=yes ;; 8298esac 8299 OTOOL=$ac_ct_OTOOL 8300 fi 8301else 8302 OTOOL="$ac_cv_prog_OTOOL" 8303fi 8304 8305 if test -n "$ac_tool_prefix"; then 8306 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8307set dummy ${ac_tool_prefix}otool64; ac_word=$2 8308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8309$as_echo_n "checking for $ac_word... " >&6; } 8310if ${ac_cv_prog_OTOOL64+:} false; then : 8311 $as_echo_n "(cached) " >&6 8312else 8313 if test -n "$OTOOL64"; then 8314 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8315else 8316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8317for as_dir in $PATH 8318do 8319 IFS=$as_save_IFS 8320 test -z "$as_dir" && as_dir=. 8321 for ac_exec_ext in '' $ac_executable_extensions; do 8322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8323 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8325 break 2 8326 fi 8327done 8328 done 8329IFS=$as_save_IFS 8330 8331fi 8332fi 8333OTOOL64=$ac_cv_prog_OTOOL64 8334if test -n "$OTOOL64"; then 8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8336$as_echo "$OTOOL64" >&6; } 8337else 8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8339$as_echo "no" >&6; } 8340fi 8341 8342 8343fi 8344if test -z "$ac_cv_prog_OTOOL64"; then 8345 ac_ct_OTOOL64=$OTOOL64 8346 # Extract the first word of "otool64", so it can be a program name with args. 8347set dummy otool64; ac_word=$2 8348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8349$as_echo_n "checking for $ac_word... " >&6; } 8350if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8351 $as_echo_n "(cached) " >&6 8352else 8353 if test -n "$ac_ct_OTOOL64"; then 8354 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8355else 8356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8357for as_dir in $PATH 8358do 8359 IFS=$as_save_IFS 8360 test -z "$as_dir" && as_dir=. 8361 for ac_exec_ext in '' $ac_executable_extensions; do 8362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8363 ac_cv_prog_ac_ct_OTOOL64="otool64" 8364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8365 break 2 8366 fi 8367done 8368 done 8369IFS=$as_save_IFS 8370 8371fi 8372fi 8373ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8374if test -n "$ac_ct_OTOOL64"; then 8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8376$as_echo "$ac_ct_OTOOL64" >&6; } 8377else 8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8379$as_echo "no" >&6; } 8380fi 8381 8382 if test "x$ac_ct_OTOOL64" = x; then 8383 OTOOL64=":" 8384 else 8385 case $cross_compiling:$ac_tool_warned in 8386yes:) 8387{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8388$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8389ac_tool_warned=yes ;; 8390esac 8391 OTOOL64=$ac_ct_OTOOL64 8392 fi 8393else 8394 OTOOL64="$ac_cv_prog_OTOOL64" 8395fi 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8424$as_echo_n "checking for -single_module linker flag... " >&6; } 8425if ${lt_cv_apple_cc_single_mod+:} false; then : 8426 $as_echo_n "(cached) " >&6 8427else 8428 lt_cv_apple_cc_single_mod=no 8429 if test -z "$LT_MULTI_MODULE"; then 8430 # By default we will add the -single_module flag. You can override 8431 # by either setting the environment variable LT_MULTI_MODULE 8432 # non-empty at configure time, or by adding -multi_module to the 8433 # link flags. 8434 rm -rf libconftest.dylib* 8435 echo "int foo(void){return 1;}" > conftest.c 8436 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8437-dynamiclib -Wl,-single_module conftest.c" >&5 8438 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8439 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8440 _lt_result=$? 8441 # If there is a non-empty error log, and "single_module" 8442 # appears in it, assume the flag caused a linker warning 8443 if test -s conftest.err && $GREP single_module conftest.err; then 8444 cat conftest.err >&5 8445 # Otherwise, if the output was created with a 0 exit code from 8446 # the compiler, it worked. 8447 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8448 lt_cv_apple_cc_single_mod=yes 8449 else 8450 cat conftest.err >&5 8451 fi 8452 rm -rf libconftest.dylib* 8453 rm -f conftest.* 8454 fi 8455fi 8456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8457$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8458 8459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8460$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8461if ${lt_cv_ld_exported_symbols_list+:} false; then : 8462 $as_echo_n "(cached) " >&6 8463else 8464 lt_cv_ld_exported_symbols_list=no 8465 save_LDFLAGS=$LDFLAGS 8466 echo "_main" > conftest.sym 8467 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8469/* end confdefs.h. */ 8470 8471int 8472main () 8473{ 8474 8475 ; 8476 return 0; 8477} 8478_ACEOF 8479if ac_fn_c_try_link "$LINENO"; then : 8480 lt_cv_ld_exported_symbols_list=yes 8481else 8482 lt_cv_ld_exported_symbols_list=no 8483fi 8484rm -f core conftest.err conftest.$ac_objext \ 8485 conftest$ac_exeext conftest.$ac_ext 8486 LDFLAGS=$save_LDFLAGS 8487 8488fi 8489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8490$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8491 8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8493$as_echo_n "checking for -force_load linker flag... " >&6; } 8494if ${lt_cv_ld_force_load+:} false; then : 8495 $as_echo_n "(cached) " >&6 8496else 8497 lt_cv_ld_force_load=no 8498 cat > conftest.c << _LT_EOF 8499int forced_loaded() { return 2;} 8500_LT_EOF 8501 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8502 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8503 echo "$AR cru libconftest.a conftest.o" >&5 8504 $AR cru libconftest.a conftest.o 2>&5 8505 echo "$RANLIB libconftest.a" >&5 8506 $RANLIB libconftest.a 2>&5 8507 cat > conftest.c << _LT_EOF 8508int main() { return 0;} 8509_LT_EOF 8510 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8511 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8512 _lt_result=$? 8513 if test -s conftest.err && $GREP force_load conftest.err; then 8514 cat conftest.err >&5 8515 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8516 lt_cv_ld_force_load=yes 8517 else 8518 cat conftest.err >&5 8519 fi 8520 rm -f conftest.err libconftest.a conftest conftest.c 8521 rm -rf conftest.dSYM 8522 8523fi 8524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8525$as_echo "$lt_cv_ld_force_load" >&6; } 8526 case $host_os in 8527 rhapsody* | darwin1.[012]) 8528 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8529 darwin1.*) 8530 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8531 darwin*) # darwin 5.x on 8532 # if running on 10.5 or later, the deployment target defaults 8533 # to the OS version, if on x86, and 10.4, the deployment 8534 # target defaults to 10.4. Don't you love it? 8535 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8536 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8537 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8538 10.[012][,.]*) 8539 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8540 10.*) 8541 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8542 esac 8543 ;; 8544 esac 8545 if test yes = "$lt_cv_apple_cc_single_mod"; then 8546 _lt_dar_single_mod='$single_module' 8547 fi 8548 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8549 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8550 else 8551 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8552 fi 8553 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8554 _lt_dsymutil='~$DSYMUTIL $lib || :' 8555 else 8556 _lt_dsymutil= 8557 fi 8558 ;; 8559 esac 8560 8561# func_munge_path_list VARIABLE PATH 8562# ----------------------------------- 8563# VARIABLE is name of variable containing _space_ separated list of 8564# directories to be munged by the contents of PATH, which is string 8565# having a format: 8566# "DIR[:DIR]:" 8567# string "DIR[ DIR]" will be prepended to VARIABLE 8568# ":DIR[:DIR]" 8569# string "DIR[ DIR]" will be appended to VARIABLE 8570# "DIRP[:DIRP]::[DIRA:]DIRA" 8571# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8572# "DIRA[ DIRA]" will be appended to VARIABLE 8573# "DIR[:DIR]" 8574# VARIABLE will be replaced by "DIR[ DIR]" 8575func_munge_path_list () 8576{ 8577 case x$2 in 8578 x) 8579 ;; 8580 *:) 8581 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8582 ;; 8583 x:*) 8584 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8585 ;; 8586 *::*) 8587 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8588 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8589 ;; 8590 *) 8591 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8592 ;; 8593 esac 8594} 8595 8596 8597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8598$as_echo_n "checking for ANSI C header files... " >&6; } 8599if ${ac_cv_header_stdc+:} false; then : 8600 $as_echo_n "(cached) " >&6 8601else 8602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8603/* end confdefs.h. */ 8604#include <stdlib.h> 8605#include <stdarg.h> 8606#include <string.h> 8607#include <float.h> 8608 8609int 8610main () 8611{ 8612 8613 ; 8614 return 0; 8615} 8616_ACEOF 8617if ac_fn_c_try_compile "$LINENO"; then : 8618 ac_cv_header_stdc=yes 8619else 8620 ac_cv_header_stdc=no 8621fi 8622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8623 8624if test $ac_cv_header_stdc = yes; then 8625 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8627/* end confdefs.h. */ 8628#include <string.h> 8629 8630_ACEOF 8631if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8632 $EGREP "memchr" >/dev/null 2>&1; then : 8633 8634else 8635 ac_cv_header_stdc=no 8636fi 8637rm -f conftest* 8638 8639fi 8640 8641if test $ac_cv_header_stdc = yes; then 8642 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8644/* end confdefs.h. */ 8645#include <stdlib.h> 8646 8647_ACEOF 8648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8649 $EGREP "free" >/dev/null 2>&1; then : 8650 8651else 8652 ac_cv_header_stdc=no 8653fi 8654rm -f conftest* 8655 8656fi 8657 8658if test $ac_cv_header_stdc = yes; then 8659 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8660 if test "$cross_compiling" = yes; then : 8661 : 8662else 8663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8664/* end confdefs.h. */ 8665#include <ctype.h> 8666#include <stdlib.h> 8667#if ((' ' & 0x0FF) == 0x020) 8668# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8669# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8670#else 8671# define ISLOWER(c) \ 8672 (('a' <= (c) && (c) <= 'i') \ 8673 || ('j' <= (c) && (c) <= 'r') \ 8674 || ('s' <= (c) && (c) <= 'z')) 8675# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8676#endif 8677 8678#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8679int 8680main () 8681{ 8682 int i; 8683 for (i = 0; i < 256; i++) 8684 if (XOR (islower (i), ISLOWER (i)) 8685 || toupper (i) != TOUPPER (i)) 8686 return 2; 8687 return 0; 8688} 8689_ACEOF 8690if ac_fn_c_try_run "$LINENO"; then : 8691 8692else 8693 ac_cv_header_stdc=no 8694fi 8695rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8696 conftest.$ac_objext conftest.beam conftest.$ac_ext 8697fi 8698 8699fi 8700fi 8701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8702$as_echo "$ac_cv_header_stdc" >&6; } 8703if test $ac_cv_header_stdc = yes; then 8704 8705$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8706 8707fi 8708 8709# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8710for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8711 inttypes.h stdint.h unistd.h 8712do : 8713 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8714ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8715" 8716if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8717 cat >>confdefs.h <<_ACEOF 8718#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8719_ACEOF 8720 8721fi 8722 8723done 8724 8725 8726for ac_header in dlfcn.h 8727do : 8728 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8729" 8730if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8731 cat >>confdefs.h <<_ACEOF 8732#define HAVE_DLFCN_H 1 8733_ACEOF 8734 8735fi 8736 8737done 8738 8739 8740 8741 8742func_stripname_cnf () 8743{ 8744 case $2 in 8745 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 8746 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 8747 esac 8748} # func_stripname_cnf 8749 8750 8751 8752 8753 8754# Set options 8755enable_dlopen=yes 8756 8757 8758 8759 8760 enable_win32_dll=no 8761 8762 8763 # Check whether --enable-shared was given. 8764if test "${enable_shared+set}" = set; then : 8765 enableval=$enable_shared; p=${PACKAGE-default} 8766 case $enableval in 8767 yes) enable_shared=yes ;; 8768 no) enable_shared=no ;; 8769 *) 8770 enable_shared=no 8771 # Look at the argument we got. We use all the common list separators. 8772 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8773 for pkg in $enableval; do 8774 IFS=$lt_save_ifs 8775 if test "X$pkg" = "X$p"; then 8776 enable_shared=yes 8777 fi 8778 done 8779 IFS=$lt_save_ifs 8780 ;; 8781 esac 8782else 8783 enable_shared=yes 8784fi 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 # Check whether --enable-static was given. 8795if test "${enable_static+set}" = set; then : 8796 enableval=$enable_static; p=${PACKAGE-default} 8797 case $enableval in 8798 yes) enable_static=yes ;; 8799 no) enable_static=no ;; 8800 *) 8801 enable_static=no 8802 # Look at the argument we got. We use all the common list separators. 8803 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8804 for pkg in $enableval; do 8805 IFS=$lt_save_ifs 8806 if test "X$pkg" = "X$p"; then 8807 enable_static=yes 8808 fi 8809 done 8810 IFS=$lt_save_ifs 8811 ;; 8812 esac 8813else 8814 enable_static=yes 8815fi 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826# Check whether --with-pic was given. 8827if test "${with_pic+set}" = set; then : 8828 withval=$with_pic; lt_p=${PACKAGE-default} 8829 case $withval in 8830 yes|no) pic_mode=$withval ;; 8831 *) 8832 pic_mode=default 8833 # Look at the argument we got. We use all the common list separators. 8834 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8835 for lt_pkg in $withval; do 8836 IFS=$lt_save_ifs 8837 if test "X$lt_pkg" = "X$lt_p"; then 8838 pic_mode=yes 8839 fi 8840 done 8841 IFS=$lt_save_ifs 8842 ;; 8843 esac 8844else 8845 pic_mode=default 8846fi 8847 8848 8849 8850 8851 8852 8853 8854 8855 # Check whether --enable-fast-install was given. 8856if test "${enable_fast_install+set}" = set; then : 8857 enableval=$enable_fast_install; p=${PACKAGE-default} 8858 case $enableval in 8859 yes) enable_fast_install=yes ;; 8860 no) enable_fast_install=no ;; 8861 *) 8862 enable_fast_install=no 8863 # Look at the argument we got. We use all the common list separators. 8864 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8865 for pkg in $enableval; do 8866 IFS=$lt_save_ifs 8867 if test "X$pkg" = "X$p"; then 8868 enable_fast_install=yes 8869 fi 8870 done 8871 IFS=$lt_save_ifs 8872 ;; 8873 esac 8874else 8875 enable_fast_install=yes 8876fi 8877 8878 8879 8880 8881 8882 8883 8884 8885 shared_archive_member_spec= 8886case $host,$enable_shared in 8887power*-*-aix[5-9]*,yes) 8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8889$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8890 8891# Check whether --with-aix-soname was given. 8892if test "${with_aix_soname+set}" = set; then : 8893 withval=$with_aix_soname; case $withval in 8894 aix|svr4|both) 8895 ;; 8896 *) 8897 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8898 ;; 8899 esac 8900 lt_cv_with_aix_soname=$with_aix_soname 8901else 8902 if ${lt_cv_with_aix_soname+:} false; then : 8903 $as_echo_n "(cached) " >&6 8904else 8905 lt_cv_with_aix_soname=aix 8906fi 8907 8908 with_aix_soname=$lt_cv_with_aix_soname 8909fi 8910 8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8912$as_echo "$with_aix_soname" >&6; } 8913 if test aix != "$with_aix_soname"; then 8914 # For the AIX way of multilib, we name the shared archive member 8915 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8916 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8917 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8918 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8919 if test 64 = "${OBJECT_MODE-32}"; then 8920 shared_archive_member_spec=shr_64 8921 else 8922 shared_archive_member_spec=shr 8923 fi 8924 fi 8925 ;; 8926*) 8927 with_aix_soname=aix 8928 ;; 8929esac 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940# This can be used to rebuild libtool when needed 8941LIBTOOL_DEPS=$ltmain 8942 8943# Always use our own libtool. 8944LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975test -z "$LN_S" && LN_S="ln -s" 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990if test -n "${ZSH_VERSION+set}"; then 8991 setopt NO_GLOB_SUBST 8992fi 8993 8994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8995$as_echo_n "checking for objdir... " >&6; } 8996if ${lt_cv_objdir+:} false; then : 8997 $as_echo_n "(cached) " >&6 8998else 8999 rm -f .libs 2>/dev/null 9000mkdir .libs 2>/dev/null 9001if test -d .libs; then 9002 lt_cv_objdir=.libs 9003else 9004 # MS-DOS does not allow filenames that begin with a dot. 9005 lt_cv_objdir=_libs 9006fi 9007rmdir .libs 2>/dev/null 9008fi 9009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9010$as_echo "$lt_cv_objdir" >&6; } 9011objdir=$lt_cv_objdir 9012 9013 9014 9015 9016 9017cat >>confdefs.h <<_ACEOF 9018#define LT_OBJDIR "$lt_cv_objdir/" 9019_ACEOF 9020 9021 9022 9023 9024case $host_os in 9025aix3*) 9026 # AIX sometimes has problems with the GCC collect2 program. For some 9027 # reason, if we set the COLLECT_NAMES environment variable, the problems 9028 # vanish in a puff of smoke. 9029 if test set != "${COLLECT_NAMES+set}"; then 9030 COLLECT_NAMES= 9031 export COLLECT_NAMES 9032 fi 9033 ;; 9034esac 9035 9036# Global variables: 9037ofile=libtool 9038can_build_shared=yes 9039 9040# All known linkers require a '.a' archive for static linking (except MSVC, 9041# which needs '.lib'). 9042libext=a 9043 9044with_gnu_ld=$lt_cv_prog_gnu_ld 9045 9046old_CC=$CC 9047old_CFLAGS=$CFLAGS 9048 9049# Set sane defaults for various variables 9050test -z "$CC" && CC=cc 9051test -z "$LTCC" && LTCC=$CC 9052test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9053test -z "$LD" && LD=ld 9054test -z "$ac_objext" && ac_objext=o 9055 9056func_cc_basename $compiler 9057cc_basename=$func_cc_basename_result 9058 9059 9060# Only perform the check for file, if the check method requires it 9061test -z "$MAGIC_CMD" && MAGIC_CMD=file 9062case $deplibs_check_method in 9063file_magic*) 9064 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9066$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9067if ${lt_cv_path_MAGIC_CMD+:} false; then : 9068 $as_echo_n "(cached) " >&6 9069else 9070 case $MAGIC_CMD in 9071[\\/*] | ?:[\\/]*) 9072 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9073 ;; 9074*) 9075 lt_save_MAGIC_CMD=$MAGIC_CMD 9076 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9077 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9078 for ac_dir in $ac_dummy; do 9079 IFS=$lt_save_ifs 9080 test -z "$ac_dir" && ac_dir=. 9081 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9082 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9083 if test -n "$file_magic_test_file"; then 9084 case $deplibs_check_method in 9085 "file_magic "*) 9086 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9087 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9088 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9089 $EGREP "$file_magic_regex" > /dev/null; then 9090 : 9091 else 9092 cat <<_LT_EOF 1>&2 9093 9094*** Warning: the command libtool uses to detect shared libraries, 9095*** $file_magic_cmd, produces output that libtool cannot recognize. 9096*** The result is that libtool may fail to recognize shared libraries 9097*** as such. This will affect the creation of libtool libraries that 9098*** depend on shared libraries, but programs linked with such libtool 9099*** libraries will work regardless of this problem. Nevertheless, you 9100*** may want to report the problem to your system manager and/or to 9101*** bug-libtool@gnu.org 9102 9103_LT_EOF 9104 fi ;; 9105 esac 9106 fi 9107 break 9108 fi 9109 done 9110 IFS=$lt_save_ifs 9111 MAGIC_CMD=$lt_save_MAGIC_CMD 9112 ;; 9113esac 9114fi 9115 9116MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9117if test -n "$MAGIC_CMD"; then 9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9119$as_echo "$MAGIC_CMD" >&6; } 9120else 9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9122$as_echo "no" >&6; } 9123fi 9124 9125 9126 9127 9128 9129if test -z "$lt_cv_path_MAGIC_CMD"; then 9130 if test -n "$ac_tool_prefix"; then 9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9132$as_echo_n "checking for file... " >&6; } 9133if ${lt_cv_path_MAGIC_CMD+:} false; then : 9134 $as_echo_n "(cached) " >&6 9135else 9136 case $MAGIC_CMD in 9137[\\/*] | ?:[\\/]*) 9138 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9139 ;; 9140*) 9141 lt_save_MAGIC_CMD=$MAGIC_CMD 9142 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9143 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9144 for ac_dir in $ac_dummy; do 9145 IFS=$lt_save_ifs 9146 test -z "$ac_dir" && ac_dir=. 9147 if test -f "$ac_dir/file"; then 9148 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9149 if test -n "$file_magic_test_file"; then 9150 case $deplibs_check_method in 9151 "file_magic "*) 9152 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9153 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9154 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9155 $EGREP "$file_magic_regex" > /dev/null; then 9156 : 9157 else 9158 cat <<_LT_EOF 1>&2 9159 9160*** Warning: the command libtool uses to detect shared libraries, 9161*** $file_magic_cmd, produces output that libtool cannot recognize. 9162*** The result is that libtool may fail to recognize shared libraries 9163*** as such. This will affect the creation of libtool libraries that 9164*** depend on shared libraries, but programs linked with such libtool 9165*** libraries will work regardless of this problem. Nevertheless, you 9166*** may want to report the problem to your system manager and/or to 9167*** bug-libtool@gnu.org 9168 9169_LT_EOF 9170 fi ;; 9171 esac 9172 fi 9173 break 9174 fi 9175 done 9176 IFS=$lt_save_ifs 9177 MAGIC_CMD=$lt_save_MAGIC_CMD 9178 ;; 9179esac 9180fi 9181 9182MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9183if test -n "$MAGIC_CMD"; then 9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9185$as_echo "$MAGIC_CMD" >&6; } 9186else 9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9188$as_echo "no" >&6; } 9189fi 9190 9191 9192 else 9193 MAGIC_CMD=: 9194 fi 9195fi 9196 9197 fi 9198 ;; 9199esac 9200 9201# Use C for the default configuration in the libtool script 9202 9203lt_save_CC=$CC 9204ac_ext=c 9205ac_cpp='$CPP $CPPFLAGS' 9206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9208ac_compiler_gnu=$ac_cv_c_compiler_gnu 9209 9210 9211# Source file extension for C test sources. 9212ac_ext=c 9213 9214# Object file extension for compiled C test sources. 9215objext=o 9216objext=$objext 9217 9218# Code to be used in simple compile tests 9219lt_simple_compile_test_code="int some_variable = 0;" 9220 9221# Code to be used in simple link tests 9222lt_simple_link_test_code='int main(){return(0);}' 9223 9224 9225 9226 9227 9228 9229 9230# If no C compiler was specified, use CC. 9231LTCC=${LTCC-"$CC"} 9232 9233# If no C compiler flags were specified, use CFLAGS. 9234LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9235 9236# Allow CC to be a program name with arguments. 9237compiler=$CC 9238 9239# Save the default compiler, since it gets overwritten when the other 9240# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9241compiler_DEFAULT=$CC 9242 9243# save warnings/boilerplate of simple test code 9244ac_outfile=conftest.$ac_objext 9245echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9246eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9247_lt_compiler_boilerplate=`cat conftest.err` 9248$RM conftest* 9249 9250ac_outfile=conftest.$ac_objext 9251echo "$lt_simple_link_test_code" >conftest.$ac_ext 9252eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9253_lt_linker_boilerplate=`cat conftest.err` 9254$RM -r conftest* 9255 9256 9257if test -n "$compiler"; then 9258 9259lt_prog_compiler_no_builtin_flag= 9260 9261if test yes = "$GCC"; then 9262 case $cc_basename in 9263 nvcc*) 9264 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9265 *) 9266 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9267 esac 9268 9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9270$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9271if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9272 $as_echo_n "(cached) " >&6 9273else 9274 lt_cv_prog_compiler_rtti_exceptions=no 9275 ac_outfile=conftest.$ac_objext 9276 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9277 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9278 # Insert the option either (1) after the last *FLAGS variable, or 9279 # (2) before a word containing "conftest.", or (3) at the end. 9280 # Note that $ac_compile itself does not contain backslashes and begins 9281 # with a dollar sign (not a hyphen), so the echo should work correctly. 9282 # The option is referenced via a variable to avoid confusing sed. 9283 lt_compile=`echo "$ac_compile" | $SED \ 9284 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9285 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9286 -e 's:$: $lt_compiler_flag:'` 9287 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9288 (eval "$lt_compile" 2>conftest.err) 9289 ac_status=$? 9290 cat conftest.err >&5 9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9292 if (exit $ac_status) && test -s "$ac_outfile"; then 9293 # The compiler can only warn and ignore the option if not recognized 9294 # So say no if there are warnings other than the usual output. 9295 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9296 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9297 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9298 lt_cv_prog_compiler_rtti_exceptions=yes 9299 fi 9300 fi 9301 $RM conftest* 9302 9303fi 9304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9305$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9306 9307if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9308 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9309else 9310 : 9311fi 9312 9313fi 9314 9315 9316 9317 9318 9319 9320 lt_prog_compiler_wl= 9321lt_prog_compiler_pic= 9322lt_prog_compiler_static= 9323 9324 9325 if test yes = "$GCC"; then 9326 lt_prog_compiler_wl='-Wl,' 9327 lt_prog_compiler_static='-static' 9328 9329 case $host_os in 9330 aix*) 9331 # All AIX code is PIC. 9332 if test ia64 = "$host_cpu"; then 9333 # AIX 5 now supports IA64 processor 9334 lt_prog_compiler_static='-Bstatic' 9335 fi 9336 lt_prog_compiler_pic='-fPIC' 9337 ;; 9338 9339 amigaos*) 9340 case $host_cpu in 9341 powerpc) 9342 # see comment about AmigaOS4 .so support 9343 lt_prog_compiler_pic='-fPIC' 9344 ;; 9345 m68k) 9346 # FIXME: we need at least 68020 code to build shared libraries, but 9347 # adding the '-m68020' flag to GCC prevents building anything better, 9348 # like '-m68040'. 9349 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9350 ;; 9351 esac 9352 ;; 9353 9354 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9355 # PIC is the default for these OSes. 9356 ;; 9357 9358 mingw* | cygwin* | pw32* | os2* | cegcc*) 9359 # This hack is so that the source file can tell whether it is being 9360 # built for inclusion in a dll (and should export symbols for example). 9361 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9362 # (--disable-auto-import) libraries 9363 lt_prog_compiler_pic='-DDLL_EXPORT' 9364 case $host_os in 9365 os2*) 9366 lt_prog_compiler_static='$wl-static' 9367 ;; 9368 esac 9369 ;; 9370 9371 darwin* | rhapsody*) 9372 # PIC is the default on this platform 9373 # Common symbols not allowed in MH_DYLIB files 9374 lt_prog_compiler_pic='-fno-common' 9375 ;; 9376 9377 haiku*) 9378 # PIC is the default for Haiku. 9379 # The "-static" flag exists, but is broken. 9380 lt_prog_compiler_static= 9381 ;; 9382 9383 hpux*) 9384 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9385 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9386 # sets the default TLS model and affects inlining. 9387 case $host_cpu in 9388 hppa*64*) 9389 # +Z the default 9390 ;; 9391 *) 9392 lt_prog_compiler_pic='-fPIC' 9393 ;; 9394 esac 9395 ;; 9396 9397 interix[3-9]*) 9398 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9399 # Instead, we relocate shared libraries at runtime. 9400 ;; 9401 9402 msdosdjgpp*) 9403 # Just because we use GCC doesn't mean we suddenly get shared libraries 9404 # on systems that don't support them. 9405 lt_prog_compiler_can_build_shared=no 9406 enable_shared=no 9407 ;; 9408 9409 *nto* | *qnx*) 9410 # QNX uses GNU C++, but need to define -shared option too, otherwise 9411 # it will coredump. 9412 lt_prog_compiler_pic='-fPIC -shared' 9413 ;; 9414 9415 sysv4*MP*) 9416 if test -d /usr/nec; then 9417 lt_prog_compiler_pic=-Kconform_pic 9418 fi 9419 ;; 9420 9421 *) 9422 lt_prog_compiler_pic='-fPIC' 9423 ;; 9424 esac 9425 9426 case $cc_basename in 9427 nvcc*) # Cuda Compiler Driver 2.2 9428 lt_prog_compiler_wl='-Xlinker ' 9429 if test -n "$lt_prog_compiler_pic"; then 9430 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9431 fi 9432 ;; 9433 esac 9434 else 9435 # PORTME Check for flag to pass linker flags through the system compiler. 9436 case $host_os in 9437 aix*) 9438 lt_prog_compiler_wl='-Wl,' 9439 if test ia64 = "$host_cpu"; then 9440 # AIX 5 now supports IA64 processor 9441 lt_prog_compiler_static='-Bstatic' 9442 else 9443 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9444 fi 9445 ;; 9446 9447 darwin* | rhapsody*) 9448 # PIC is the default on this platform 9449 # Common symbols not allowed in MH_DYLIB files 9450 lt_prog_compiler_pic='-fno-common' 9451 case $cc_basename in 9452 nagfor*) 9453 # NAG Fortran compiler 9454 lt_prog_compiler_wl='-Wl,-Wl,,' 9455 lt_prog_compiler_pic='-PIC' 9456 lt_prog_compiler_static='-Bstatic' 9457 ;; 9458 esac 9459 ;; 9460 9461 mingw* | cygwin* | pw32* | os2* | cegcc*) 9462 # This hack is so that the source file can tell whether it is being 9463 # built for inclusion in a dll (and should export symbols for example). 9464 lt_prog_compiler_pic='-DDLL_EXPORT' 9465 case $host_os in 9466 os2*) 9467 lt_prog_compiler_static='$wl-static' 9468 ;; 9469 esac 9470 ;; 9471 9472 hpux9* | hpux10* | hpux11*) 9473 lt_prog_compiler_wl='-Wl,' 9474 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9475 # not for PA HP-UX. 9476 case $host_cpu in 9477 hppa*64*|ia64*) 9478 # +Z the default 9479 ;; 9480 *) 9481 lt_prog_compiler_pic='+Z' 9482 ;; 9483 esac 9484 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9485 lt_prog_compiler_static='$wl-a ${wl}archive' 9486 ;; 9487 9488 irix5* | irix6* | nonstopux*) 9489 lt_prog_compiler_wl='-Wl,' 9490 # PIC (with -KPIC) is the default. 9491 lt_prog_compiler_static='-non_shared' 9492 ;; 9493 9494 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9495 case $cc_basename in 9496 # old Intel for x86_64, which still supported -KPIC. 9497 ecc*) 9498 lt_prog_compiler_wl='-Wl,' 9499 lt_prog_compiler_pic='-KPIC' 9500 lt_prog_compiler_static='-static' 9501 ;; 9502 # icc used to be incompatible with GCC. 9503 # ICC 10 doesn't accept -KPIC any more. 9504 icc* | ifort*) 9505 lt_prog_compiler_wl='-Wl,' 9506 lt_prog_compiler_pic='-fPIC' 9507 lt_prog_compiler_static='-static' 9508 ;; 9509 # Lahey Fortran 8.1. 9510 lf95*) 9511 lt_prog_compiler_wl='-Wl,' 9512 lt_prog_compiler_pic='--shared' 9513 lt_prog_compiler_static='--static' 9514 ;; 9515 nagfor*) 9516 # NAG Fortran compiler 9517 lt_prog_compiler_wl='-Wl,-Wl,,' 9518 lt_prog_compiler_pic='-PIC' 9519 lt_prog_compiler_static='-Bstatic' 9520 ;; 9521 tcc*) 9522 # Fabrice Bellard et al's Tiny C Compiler 9523 lt_prog_compiler_wl='-Wl,' 9524 lt_prog_compiler_pic='-fPIC' 9525 lt_prog_compiler_static='-static' 9526 ;; 9527 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9528 # Portland Group compilers (*not* the Pentium gcc compiler, 9529 # which looks to be a dead project) 9530 lt_prog_compiler_wl='-Wl,' 9531 lt_prog_compiler_pic='-fpic' 9532 lt_prog_compiler_static='-Bstatic' 9533 ;; 9534 ccc*) 9535 lt_prog_compiler_wl='-Wl,' 9536 # All Alpha code is PIC. 9537 lt_prog_compiler_static='-non_shared' 9538 ;; 9539 xl* | bgxl* | bgf* | mpixl*) 9540 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9541 lt_prog_compiler_wl='-Wl,' 9542 lt_prog_compiler_pic='-qpic' 9543 lt_prog_compiler_static='-qstaticlink' 9544 ;; 9545 *) 9546 case `$CC -V 2>&1 | sed 5q` in 9547 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9548 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9549 lt_prog_compiler_pic='-KPIC' 9550 lt_prog_compiler_static='-Bstatic' 9551 lt_prog_compiler_wl='' 9552 ;; 9553 *Sun\ F* | *Sun*Fortran*) 9554 lt_prog_compiler_pic='-KPIC' 9555 lt_prog_compiler_static='-Bstatic' 9556 lt_prog_compiler_wl='-Qoption ld ' 9557 ;; 9558 *Sun\ C*) 9559 # Sun C 5.9 9560 lt_prog_compiler_pic='-KPIC' 9561 lt_prog_compiler_static='-Bstatic' 9562 lt_prog_compiler_wl='-Wl,' 9563 ;; 9564 *Intel*\ [CF]*Compiler*) 9565 lt_prog_compiler_wl='-Wl,' 9566 lt_prog_compiler_pic='-fPIC' 9567 lt_prog_compiler_static='-static' 9568 ;; 9569 *Portland\ Group*) 9570 lt_prog_compiler_wl='-Wl,' 9571 lt_prog_compiler_pic='-fpic' 9572 lt_prog_compiler_static='-Bstatic' 9573 ;; 9574 esac 9575 ;; 9576 esac 9577 ;; 9578 9579 newsos6) 9580 lt_prog_compiler_pic='-KPIC' 9581 lt_prog_compiler_static='-Bstatic' 9582 ;; 9583 9584 *nto* | *qnx*) 9585 # QNX uses GNU C++, but need to define -shared option too, otherwise 9586 # it will coredump. 9587 lt_prog_compiler_pic='-fPIC -shared' 9588 ;; 9589 9590 osf3* | osf4* | osf5*) 9591 lt_prog_compiler_wl='-Wl,' 9592 # All OSF/1 code is PIC. 9593 lt_prog_compiler_static='-non_shared' 9594 ;; 9595 9596 rdos*) 9597 lt_prog_compiler_static='-non_shared' 9598 ;; 9599 9600 solaris*) 9601 lt_prog_compiler_pic='-KPIC' 9602 lt_prog_compiler_static='-Bstatic' 9603 case $cc_basename in 9604 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9605 lt_prog_compiler_wl='-Qoption ld ';; 9606 *) 9607 lt_prog_compiler_wl='-Wl,';; 9608 esac 9609 ;; 9610 9611 sunos4*) 9612 lt_prog_compiler_wl='-Qoption ld ' 9613 lt_prog_compiler_pic='-PIC' 9614 lt_prog_compiler_static='-Bstatic' 9615 ;; 9616 9617 sysv4 | sysv4.2uw2* | sysv4.3*) 9618 lt_prog_compiler_wl='-Wl,' 9619 lt_prog_compiler_pic='-KPIC' 9620 lt_prog_compiler_static='-Bstatic' 9621 ;; 9622 9623 sysv4*MP*) 9624 if test -d /usr/nec; then 9625 lt_prog_compiler_pic='-Kconform_pic' 9626 lt_prog_compiler_static='-Bstatic' 9627 fi 9628 ;; 9629 9630 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9631 lt_prog_compiler_wl='-Wl,' 9632 lt_prog_compiler_pic='-KPIC' 9633 lt_prog_compiler_static='-Bstatic' 9634 ;; 9635 9636 unicos*) 9637 lt_prog_compiler_wl='-Wl,' 9638 lt_prog_compiler_can_build_shared=no 9639 ;; 9640 9641 uts4*) 9642 lt_prog_compiler_pic='-pic' 9643 lt_prog_compiler_static='-Bstatic' 9644 ;; 9645 9646 *) 9647 lt_prog_compiler_can_build_shared=no 9648 ;; 9649 esac 9650 fi 9651 9652case $host_os in 9653 # For platforms that do not support PIC, -DPIC is meaningless: 9654 *djgpp*) 9655 lt_prog_compiler_pic= 9656 ;; 9657 *) 9658 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9659 ;; 9660esac 9661 9662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9663$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9664if ${lt_cv_prog_compiler_pic+:} false; then : 9665 $as_echo_n "(cached) " >&6 9666else 9667 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9668fi 9669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9670$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9671lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9672 9673# 9674# Check to make sure the PIC flag actually works. 9675# 9676if test -n "$lt_prog_compiler_pic"; then 9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9678$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9679if ${lt_cv_prog_compiler_pic_works+:} false; then : 9680 $as_echo_n "(cached) " >&6 9681else 9682 lt_cv_prog_compiler_pic_works=no 9683 ac_outfile=conftest.$ac_objext 9684 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9685 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9686 # Insert the option either (1) after the last *FLAGS variable, or 9687 # (2) before a word containing "conftest.", or (3) at the end. 9688 # Note that $ac_compile itself does not contain backslashes and begins 9689 # with a dollar sign (not a hyphen), so the echo should work correctly. 9690 # The option is referenced via a variable to avoid confusing sed. 9691 lt_compile=`echo "$ac_compile" | $SED \ 9692 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9693 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9694 -e 's:$: $lt_compiler_flag:'` 9695 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9696 (eval "$lt_compile" 2>conftest.err) 9697 ac_status=$? 9698 cat conftest.err >&5 9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9700 if (exit $ac_status) && test -s "$ac_outfile"; then 9701 # The compiler can only warn and ignore the option if not recognized 9702 # So say no if there are warnings other than the usual output. 9703 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9705 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9706 lt_cv_prog_compiler_pic_works=yes 9707 fi 9708 fi 9709 $RM conftest* 9710 9711fi 9712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9713$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9714 9715if test yes = "$lt_cv_prog_compiler_pic_works"; then 9716 case $lt_prog_compiler_pic in 9717 "" | " "*) ;; 9718 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9719 esac 9720else 9721 lt_prog_compiler_pic= 9722 lt_prog_compiler_can_build_shared=no 9723fi 9724 9725fi 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737# 9738# Check to make sure the static flag actually works. 9739# 9740wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9742$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9743if ${lt_cv_prog_compiler_static_works+:} false; then : 9744 $as_echo_n "(cached) " >&6 9745else 9746 lt_cv_prog_compiler_static_works=no 9747 save_LDFLAGS=$LDFLAGS 9748 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9749 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9750 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9751 # The linker can only warn and ignore the option if not recognized 9752 # So say no if there are warnings 9753 if test -s conftest.err; then 9754 # Append any errors to the config.log. 9755 cat conftest.err 1>&5 9756 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9758 if diff conftest.exp conftest.er2 >/dev/null; then 9759 lt_cv_prog_compiler_static_works=yes 9760 fi 9761 else 9762 lt_cv_prog_compiler_static_works=yes 9763 fi 9764 fi 9765 $RM -r conftest* 9766 LDFLAGS=$save_LDFLAGS 9767 9768fi 9769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9770$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9771 9772if test yes = "$lt_cv_prog_compiler_static_works"; then 9773 : 9774else 9775 lt_prog_compiler_static= 9776fi 9777 9778 9779 9780 9781 9782 9783 9784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9785$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9786if ${lt_cv_prog_compiler_c_o+:} false; then : 9787 $as_echo_n "(cached) " >&6 9788else 9789 lt_cv_prog_compiler_c_o=no 9790 $RM -r conftest 2>/dev/null 9791 mkdir conftest 9792 cd conftest 9793 mkdir out 9794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9795 9796 lt_compiler_flag="-o out/conftest2.$ac_objext" 9797 # Insert the option either (1) after the last *FLAGS variable, or 9798 # (2) before a word containing "conftest.", or (3) at the end. 9799 # Note that $ac_compile itself does not contain backslashes and begins 9800 # with a dollar sign (not a hyphen), so the echo should work correctly. 9801 lt_compile=`echo "$ac_compile" | $SED \ 9802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9804 -e 's:$: $lt_compiler_flag:'` 9805 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9806 (eval "$lt_compile" 2>out/conftest.err) 9807 ac_status=$? 9808 cat out/conftest.err >&5 9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9810 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9811 then 9812 # The compiler can only warn and ignore the option if not recognized 9813 # So say no if there are warnings 9814 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9815 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9816 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9817 lt_cv_prog_compiler_c_o=yes 9818 fi 9819 fi 9820 chmod u+w . 2>&5 9821 $RM conftest* 9822 # SGI C++ compiler will create directory out/ii_files/ for 9823 # template instantiation 9824 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9825 $RM out/* && rmdir out 9826 cd .. 9827 $RM -r conftest 9828 $RM conftest* 9829 9830fi 9831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9832$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9833 9834 9835 9836 9837 9838 9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9840$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9841if ${lt_cv_prog_compiler_c_o+:} false; then : 9842 $as_echo_n "(cached) " >&6 9843else 9844 lt_cv_prog_compiler_c_o=no 9845 $RM -r conftest 2>/dev/null 9846 mkdir conftest 9847 cd conftest 9848 mkdir out 9849 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9850 9851 lt_compiler_flag="-o out/conftest2.$ac_objext" 9852 # Insert the option either (1) after the last *FLAGS variable, or 9853 # (2) before a word containing "conftest.", or (3) at the end. 9854 # Note that $ac_compile itself does not contain backslashes and begins 9855 # with a dollar sign (not a hyphen), so the echo should work correctly. 9856 lt_compile=`echo "$ac_compile" | $SED \ 9857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9859 -e 's:$: $lt_compiler_flag:'` 9860 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9861 (eval "$lt_compile" 2>out/conftest.err) 9862 ac_status=$? 9863 cat out/conftest.err >&5 9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9865 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9866 then 9867 # The compiler can only warn and ignore the option if not recognized 9868 # So say no if there are warnings 9869 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9870 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9871 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9872 lt_cv_prog_compiler_c_o=yes 9873 fi 9874 fi 9875 chmod u+w . 2>&5 9876 $RM conftest* 9877 # SGI C++ compiler will create directory out/ii_files/ for 9878 # template instantiation 9879 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9880 $RM out/* && rmdir out 9881 cd .. 9882 $RM -r conftest 9883 $RM conftest* 9884 9885fi 9886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9887$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9888 9889 9890 9891 9892hard_links=nottested 9893if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9894 # do not overwrite the value of need_locks provided by the user 9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9896$as_echo_n "checking if we can lock with hard links... " >&6; } 9897 hard_links=yes 9898 $RM conftest* 9899 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9900 touch conftest.a 9901 ln conftest.a conftest.b 2>&5 || hard_links=no 9902 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9904$as_echo "$hard_links" >&6; } 9905 if test no = "$hard_links"; then 9906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9907$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9908 need_locks=warn 9909 fi 9910else 9911 need_locks=no 9912fi 9913 9914 9915 9916 9917 9918 9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9920$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9921 9922 runpath_var= 9923 allow_undefined_flag= 9924 always_export_symbols=no 9925 archive_cmds= 9926 archive_expsym_cmds= 9927 compiler_needs_object=no 9928 enable_shared_with_static_runtimes=no 9929 export_dynamic_flag_spec= 9930 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9931 hardcode_automatic=no 9932 hardcode_direct=no 9933 hardcode_direct_absolute=no 9934 hardcode_libdir_flag_spec= 9935 hardcode_libdir_separator= 9936 hardcode_minus_L=no 9937 hardcode_shlibpath_var=unsupported 9938 inherit_rpath=no 9939 link_all_deplibs=unknown 9940 module_cmds= 9941 module_expsym_cmds= 9942 old_archive_from_new_cmds= 9943 old_archive_from_expsyms_cmds= 9944 thread_safe_flag_spec= 9945 whole_archive_flag_spec= 9946 # include_expsyms should be a list of space-separated symbols to be *always* 9947 # included in the symbol list 9948 include_expsyms= 9949 # exclude_expsyms can be an extended regexp of symbols to exclude 9950 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9951 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9952 # as well as any symbol that contains 'd'. 9953 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9954 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9955 # platforms (ab)use it in PIC code, but their linkers get confused if 9956 # the symbol is explicitly referenced. Since portable code cannot 9957 # rely on this symbol name, it's probably fine to never include it in 9958 # preloaded symbol tables. 9959 # Exclude shared library initialization/finalization symbols. 9960 extract_expsyms_cmds= 9961 9962 case $host_os in 9963 cygwin* | mingw* | pw32* | cegcc*) 9964 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9965 # When not using gcc, we currently assume that we are using 9966 # Microsoft Visual C++. 9967 if test yes != "$GCC"; then 9968 with_gnu_ld=no 9969 fi 9970 ;; 9971 interix*) 9972 # we just hope/assume this is gcc and not c89 (= MSVC++) 9973 with_gnu_ld=yes 9974 ;; 9975 openbsd* | bitrig*) 9976 with_gnu_ld=no 9977 ;; 9978 esac 9979 9980 ld_shlibs=yes 9981 9982 # On some targets, GNU ld is compatible enough with the native linker 9983 # that we're better off using the native interface for both. 9984 lt_use_gnu_ld_interface=no 9985 if test yes = "$with_gnu_ld"; then 9986 case $host_os in 9987 aix*) 9988 # The AIX port of GNU ld has always aspired to compatibility 9989 # with the native linker. However, as the warning in the GNU ld 9990 # block says, versions before 2.19.5* couldn't really create working 9991 # shared libraries, regardless of the interface used. 9992 case `$LD -v 2>&1` in 9993 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9994 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9995 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9996 *) 9997 lt_use_gnu_ld_interface=yes 9998 ;; 9999 esac 10000 ;; 10001 *) 10002 lt_use_gnu_ld_interface=yes 10003 ;; 10004 esac 10005 fi 10006 10007 if test yes = "$lt_use_gnu_ld_interface"; then 10008 # If archive_cmds runs LD, not CC, wlarc should be empty 10009 wlarc='$wl' 10010 10011 # Set some defaults for GNU ld with shared library support. These 10012 # are reset later if shared libraries are not supported. Putting them 10013 # here allows them to be overridden if necessary. 10014 runpath_var=LD_RUN_PATH 10015 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10016 export_dynamic_flag_spec='$wl--export-dynamic' 10017 # ancient GNU ld didn't support --whole-archive et. al. 10018 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10019 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10020 else 10021 whole_archive_flag_spec= 10022 fi 10023 supports_anon_versioning=no 10024 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10025 *GNU\ gold*) supports_anon_versioning=yes ;; 10026 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10027 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10028 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10029 *\ 2.11.*) ;; # other 2.11 versions 10030 *) supports_anon_versioning=yes ;; 10031 esac 10032 10033 # See if GNU ld supports shared libraries. 10034 case $host_os in 10035 aix[3-9]*) 10036 # On AIX/PPC, the GNU linker is very broken 10037 if test ia64 != "$host_cpu"; then 10038 ld_shlibs=no 10039 cat <<_LT_EOF 1>&2 10040 10041*** Warning: the GNU linker, at least up to release 2.19, is reported 10042*** to be unable to reliably create shared libraries on AIX. 10043*** Therefore, libtool is disabling shared libraries support. If you 10044*** really care for shared libraries, you may want to install binutils 10045*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10046*** You will then need to restart the configuration process. 10047 10048_LT_EOF 10049 fi 10050 ;; 10051 10052 amigaos*) 10053 case $host_cpu in 10054 powerpc) 10055 # see comment about AmigaOS4 .so support 10056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10057 archive_expsym_cmds='' 10058 ;; 10059 m68k) 10060 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)' 10061 hardcode_libdir_flag_spec='-L$libdir' 10062 hardcode_minus_L=yes 10063 ;; 10064 esac 10065 ;; 10066 10067 beos*) 10068 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10069 allow_undefined_flag=unsupported 10070 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10071 # support --undefined. This deserves some investigation. FIXME 10072 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10073 else 10074 ld_shlibs=no 10075 fi 10076 ;; 10077 10078 cygwin* | mingw* | pw32* | cegcc*) 10079 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10080 # as there is no search path for DLLs. 10081 hardcode_libdir_flag_spec='-L$libdir' 10082 export_dynamic_flag_spec='$wl--export-all-symbols' 10083 allow_undefined_flag=unsupported 10084 always_export_symbols=no 10085 enable_shared_with_static_runtimes=yes 10086 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' 10087 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10088 10089 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10091 # If the export-symbols file already is a .def file, use it as 10092 # is; otherwise, prepend EXPORTS... 10093 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10094 cp $export_symbols $output_objdir/$soname.def; 10095 else 10096 echo EXPORTS > $output_objdir/$soname.def; 10097 cat $export_symbols >> $output_objdir/$soname.def; 10098 fi~ 10099 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10100 else 10101 ld_shlibs=no 10102 fi 10103 ;; 10104 10105 haiku*) 10106 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10107 link_all_deplibs=yes 10108 ;; 10109 10110 os2*) 10111 hardcode_libdir_flag_spec='-L$libdir' 10112 hardcode_minus_L=yes 10113 allow_undefined_flag=unsupported 10114 shrext_cmds=.dll 10115 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10116 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10117 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10118 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10119 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10120 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10121 emximp -o $lib $output_objdir/$libname.def' 10122 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10123 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10124 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10125 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10126 prefix_cmds="$SED"~ 10127 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10128 prefix_cmds="$prefix_cmds -e 1d"; 10129 fi~ 10130 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10131 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10132 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10133 emximp -o $lib $output_objdir/$libname.def' 10134 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10135 enable_shared_with_static_runtimes=yes 10136 ;; 10137 10138 interix[3-9]*) 10139 hardcode_direct=no 10140 hardcode_shlibpath_var=no 10141 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10142 export_dynamic_flag_spec='$wl-E' 10143 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10144 # Instead, shared libraries are loaded at an image base (0x10000000 by 10145 # default) and relocated if they conflict, which is a slow very memory 10146 # consuming and fragmenting process. To avoid this, we pick a random, 10147 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10148 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10149 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10150 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' 10151 ;; 10152 10153 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10154 tmp_diet=no 10155 if test linux-dietlibc = "$host_os"; then 10156 case $cc_basename in 10157 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10158 esac 10159 fi 10160 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10161 && test no = "$tmp_diet" 10162 then 10163 tmp_addflag=' $pic_flag' 10164 tmp_sharedflag='-shared' 10165 case $cc_basename,$host_cpu in 10166 pgcc*) # Portland Group C compiler 10167 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' 10168 tmp_addflag=' $pic_flag' 10169 ;; 10170 pgf77* | pgf90* | pgf95* | pgfortran*) 10171 # Portland Group f77 and f90 compilers 10172 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' 10173 tmp_addflag=' $pic_flag -Mnomain' ;; 10174 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10175 tmp_addflag=' -i_dynamic' ;; 10176 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10177 tmp_addflag=' -i_dynamic -nofor_main' ;; 10178 ifc* | ifort*) # Intel Fortran compiler 10179 tmp_addflag=' -nofor_main' ;; 10180 lf95*) # Lahey Fortran 8.1 10181 whole_archive_flag_spec= 10182 tmp_sharedflag='--shared' ;; 10183 nagfor*) # NAGFOR 5.3 10184 tmp_sharedflag='-Wl,-shared' ;; 10185 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10186 tmp_sharedflag='-qmkshrobj' 10187 tmp_addflag= ;; 10188 nvcc*) # Cuda Compiler Driver 2.2 10189 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' 10190 compiler_needs_object=yes 10191 ;; 10192 esac 10193 case `$CC -V 2>&1 | sed 5q` in 10194 *Sun\ C*) # Sun C 5.9 10195 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' 10196 compiler_needs_object=yes 10197 tmp_sharedflag='-G' ;; 10198 *Sun\ F*) # Sun Fortran 8.3 10199 tmp_sharedflag='-G' ;; 10200 esac 10201 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10202 10203 if test yes = "$supports_anon_versioning"; then 10204 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10205 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10206 echo "local: *; };" >> $output_objdir/$libname.ver~ 10207 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10208 fi 10209 10210 case $cc_basename in 10211 tcc*) 10212 export_dynamic_flag_spec='-rdynamic' 10213 ;; 10214 xlf* | bgf* | bgxlf* | mpixlf*) 10215 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10216 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10217 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10218 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10219 if test yes = "$supports_anon_versioning"; then 10220 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10221 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10222 echo "local: *; };" >> $output_objdir/$libname.ver~ 10223 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10224 fi 10225 ;; 10226 esac 10227 else 10228 ld_shlibs=no 10229 fi 10230 ;; 10231 10232 netbsd*) 10233 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10234 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10235 wlarc= 10236 else 10237 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10238 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10239 fi 10240 ;; 10241 10242 solaris*) 10243 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10244 ld_shlibs=no 10245 cat <<_LT_EOF 1>&2 10246 10247*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10248*** create shared libraries on Solaris systems. Therefore, libtool 10249*** is disabling shared libraries support. We urge you to upgrade GNU 10250*** binutils to release 2.9.1 or newer. Another option is to modify 10251*** your PATH or compiler configuration so that the native linker is 10252*** used, and then restart. 10253 10254_LT_EOF 10255 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10256 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10257 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10258 else 10259 ld_shlibs=no 10260 fi 10261 ;; 10262 10263 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10264 case `$LD -v 2>&1` in 10265 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10266 ld_shlibs=no 10267 cat <<_LT_EOF 1>&2 10268 10269*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10270*** reliably create shared libraries on SCO systems. Therefore, libtool 10271*** is disabling shared libraries support. We urge you to upgrade GNU 10272*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10273*** your PATH or compiler configuration so that the native linker is 10274*** used, and then restart. 10275 10276_LT_EOF 10277 ;; 10278 *) 10279 # For security reasons, it is highly recommended that you always 10280 # use absolute paths for naming shared libraries, and exclude the 10281 # DT_RUNPATH tag from executables and libraries. But doing so 10282 # requires that you compile everything twice, which is a pain. 10283 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10284 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10286 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10287 else 10288 ld_shlibs=no 10289 fi 10290 ;; 10291 esac 10292 ;; 10293 10294 sunos4*) 10295 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10296 wlarc= 10297 hardcode_direct=yes 10298 hardcode_shlibpath_var=no 10299 ;; 10300 10301 *) 10302 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10303 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10304 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10305 else 10306 ld_shlibs=no 10307 fi 10308 ;; 10309 esac 10310 10311 if test no = "$ld_shlibs"; then 10312 runpath_var= 10313 hardcode_libdir_flag_spec= 10314 export_dynamic_flag_spec= 10315 whole_archive_flag_spec= 10316 fi 10317 else 10318 # PORTME fill in a description of your system's linker (not GNU ld) 10319 case $host_os in 10320 aix3*) 10321 allow_undefined_flag=unsupported 10322 always_export_symbols=yes 10323 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' 10324 # Note: this linker hardcodes the directories in LIBPATH if there 10325 # are no directories specified by -L. 10326 hardcode_minus_L=yes 10327 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10328 # Neither direct hardcoding nor static linking is supported with a 10329 # broken collect2. 10330 hardcode_direct=unsupported 10331 fi 10332 ;; 10333 10334 aix[4-9]*) 10335 if test ia64 = "$host_cpu"; then 10336 # On IA64, the linker does run time linking by default, so we don't 10337 # have to do anything special. 10338 aix_use_runtimelinking=no 10339 exp_sym_flag='-Bexport' 10340 no_entry_flag= 10341 else 10342 # If we're using GNU nm, then we don't want the "-C" option. 10343 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10344 # Without the "-l" option, or with the "-B" option, AIX nm treats 10345 # weak defined symbols like other global defined symbols, whereas 10346 # GNU nm marks them as "W". 10347 # While the 'weak' keyword is ignored in the Export File, we need 10348 # it in the Import File for the 'aix-soname' feature, so we have 10349 # to replace the "-B" option with "-P" for AIX nm. 10350 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10351 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' 10352 else 10353 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' 10354 fi 10355 aix_use_runtimelinking=no 10356 10357 # Test if we are trying to use run time linking or normal 10358 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10359 # have runtime linking enabled, and use it for executables. 10360 # For shared libraries, we enable/disable runtime linking 10361 # depending on the kind of the shared library created - 10362 # when "with_aix_soname,aix_use_runtimelinking" is: 10363 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10364 # "aix,yes" lib.so shared, rtl:yes, for executables 10365 # lib.a static archive 10366 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10367 # lib.a(lib.so.V) shared, rtl:no, for executables 10368 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10369 # lib.a(lib.so.V) shared, rtl:no 10370 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10371 # lib.a static archive 10372 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10373 for ld_flag in $LDFLAGS; do 10374 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10375 aix_use_runtimelinking=yes 10376 break 10377 fi 10378 done 10379 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10380 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10381 # so we don't have lib.a shared libs to link our executables. 10382 # We have to force runtime linking in this case. 10383 aix_use_runtimelinking=yes 10384 LDFLAGS="$LDFLAGS -Wl,-brtl" 10385 fi 10386 ;; 10387 esac 10388 10389 exp_sym_flag='-bexport' 10390 no_entry_flag='-bnoentry' 10391 fi 10392 10393 # When large executables or shared objects are built, AIX ld can 10394 # have problems creating the table of contents. If linking a library 10395 # or program results in "error TOC overflow" add -mminimal-toc to 10396 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10397 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10398 10399 archive_cmds='' 10400 hardcode_direct=yes 10401 hardcode_direct_absolute=yes 10402 hardcode_libdir_separator=':' 10403 link_all_deplibs=yes 10404 file_list_spec='$wl-f,' 10405 case $with_aix_soname,$aix_use_runtimelinking in 10406 aix,*) ;; # traditional, no import file 10407 svr4,* | *,yes) # use import file 10408 # The Import File defines what to hardcode. 10409 hardcode_direct=no 10410 hardcode_direct_absolute=no 10411 ;; 10412 esac 10413 10414 if test yes = "$GCC"; then 10415 case $host_os in aix4.[012]|aix4.[012].*) 10416 # We only want to do this on AIX 4.2 and lower, the check 10417 # below for broken collect2 doesn't work under 4.3+ 10418 collect2name=`$CC -print-prog-name=collect2` 10419 if test -f "$collect2name" && 10420 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10421 then 10422 # We have reworked collect2 10423 : 10424 else 10425 # We have old collect2 10426 hardcode_direct=unsupported 10427 # It fails to find uninstalled libraries when the uninstalled 10428 # path is not listed in the libpath. Setting hardcode_minus_L 10429 # to unsupported forces relinking 10430 hardcode_minus_L=yes 10431 hardcode_libdir_flag_spec='-L$libdir' 10432 hardcode_libdir_separator= 10433 fi 10434 ;; 10435 esac 10436 shared_flag='-shared' 10437 if test yes = "$aix_use_runtimelinking"; then 10438 shared_flag="$shared_flag "'$wl-G' 10439 fi 10440 # Need to ensure runtime linking is disabled for the traditional 10441 # shared library, or the linker may eventually find shared libraries 10442 # /with/ Import File - we do not want to mix them. 10443 shared_flag_aix='-shared' 10444 shared_flag_svr4='-shared $wl-G' 10445 else 10446 # not using gcc 10447 if test ia64 = "$host_cpu"; then 10448 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10449 # chokes on -Wl,-G. The following line is correct: 10450 shared_flag='-G' 10451 else 10452 if test yes = "$aix_use_runtimelinking"; then 10453 shared_flag='$wl-G' 10454 else 10455 shared_flag='$wl-bM:SRE' 10456 fi 10457 shared_flag_aix='$wl-bM:SRE' 10458 shared_flag_svr4='$wl-G' 10459 fi 10460 fi 10461 10462 export_dynamic_flag_spec='$wl-bexpall' 10463 # It seems that -bexpall does not export symbols beginning with 10464 # underscore (_), so it is better to generate a list of symbols to export. 10465 always_export_symbols=yes 10466 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10467 # Warning - without using the other runtime loading flags (-brtl), 10468 # -berok will link without error, but may produce a broken library. 10469 allow_undefined_flag='-berok' 10470 # Determine the default libpath from the value encoded in an 10471 # empty executable. 10472 if test set = "${lt_cv_aix_libpath+set}"; then 10473 aix_libpath=$lt_cv_aix_libpath 10474else 10475 if ${lt_cv_aix_libpath_+:} false; then : 10476 $as_echo_n "(cached) " >&6 10477else 10478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10479/* end confdefs.h. */ 10480 10481int 10482main () 10483{ 10484 10485 ; 10486 return 0; 10487} 10488_ACEOF 10489if ac_fn_c_try_link "$LINENO"; then : 10490 10491 lt_aix_libpath_sed=' 10492 /Import File Strings/,/^$/ { 10493 /^0/ { 10494 s/^0 *\([^ ]*\) *$/\1/ 10495 p 10496 } 10497 }' 10498 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10499 # Check for a 64-bit object if we didn't find anything. 10500 if test -z "$lt_cv_aix_libpath_"; then 10501 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10502 fi 10503fi 10504rm -f core conftest.err conftest.$ac_objext \ 10505 conftest$ac_exeext conftest.$ac_ext 10506 if test -z "$lt_cv_aix_libpath_"; then 10507 lt_cv_aix_libpath_=/usr/lib:/lib 10508 fi 10509 10510fi 10511 10512 aix_libpath=$lt_cv_aix_libpath_ 10513fi 10514 10515 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10516 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 10517 else 10518 if test ia64 = "$host_cpu"; then 10519 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10520 allow_undefined_flag="-z nodefs" 10521 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" 10522 else 10523 # Determine the default libpath from the value encoded in an 10524 # empty executable. 10525 if test set = "${lt_cv_aix_libpath+set}"; then 10526 aix_libpath=$lt_cv_aix_libpath 10527else 10528 if ${lt_cv_aix_libpath_+:} false; then : 10529 $as_echo_n "(cached) " >&6 10530else 10531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10532/* end confdefs.h. */ 10533 10534int 10535main () 10536{ 10537 10538 ; 10539 return 0; 10540} 10541_ACEOF 10542if ac_fn_c_try_link "$LINENO"; then : 10543 10544 lt_aix_libpath_sed=' 10545 /Import File Strings/,/^$/ { 10546 /^0/ { 10547 s/^0 *\([^ ]*\) *$/\1/ 10548 p 10549 } 10550 }' 10551 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10552 # Check for a 64-bit object if we didn't find anything. 10553 if test -z "$lt_cv_aix_libpath_"; then 10554 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10555 fi 10556fi 10557rm -f core conftest.err conftest.$ac_objext \ 10558 conftest$ac_exeext conftest.$ac_ext 10559 if test -z "$lt_cv_aix_libpath_"; then 10560 lt_cv_aix_libpath_=/usr/lib:/lib 10561 fi 10562 10563fi 10564 10565 aix_libpath=$lt_cv_aix_libpath_ 10566fi 10567 10568 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10569 # Warning - without using the other run time loading flags, 10570 # -berok will link without error, but may produce a broken library. 10571 no_undefined_flag=' $wl-bernotok' 10572 allow_undefined_flag=' $wl-berok' 10573 if test yes = "$with_gnu_ld"; then 10574 # We only use this code for GNU lds that support --whole-archive. 10575 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10576 else 10577 # Exported symbols can be pulled into shared objects from archives 10578 whole_archive_flag_spec='$convenience' 10579 fi 10580 archive_cmds_need_lc=yes 10581 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10582 # -brtl affects multiple linker settings, -berok does not and is overridden later 10583 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10584 if test svr4 != "$with_aix_soname"; then 10585 # This is similar to how AIX traditionally builds its shared libraries. 10586 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' 10587 fi 10588 if test aix != "$with_aix_soname"; then 10589 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' 10590 else 10591 # used by -dlpreopen to get the symbols 10592 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10593 fi 10594 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10595 fi 10596 fi 10597 ;; 10598 10599 amigaos*) 10600 case $host_cpu in 10601 powerpc) 10602 # see comment about AmigaOS4 .so support 10603 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10604 archive_expsym_cmds='' 10605 ;; 10606 m68k) 10607 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)' 10608 hardcode_libdir_flag_spec='-L$libdir' 10609 hardcode_minus_L=yes 10610 ;; 10611 esac 10612 ;; 10613 10614 bsdi[45]*) 10615 export_dynamic_flag_spec=-rdynamic 10616 ;; 10617 10618 cygwin* | mingw* | pw32* | cegcc*) 10619 # When not using gcc, we currently assume that we are using 10620 # Microsoft Visual C++. 10621 # hardcode_libdir_flag_spec is actually meaningless, as there is 10622 # no search path for DLLs. 10623 case $cc_basename in 10624 cl*) 10625 # Native MSVC 10626 hardcode_libdir_flag_spec=' ' 10627 allow_undefined_flag=unsupported 10628 always_export_symbols=yes 10629 file_list_spec='@' 10630 # Tell ltmain to make .lib files, not .a files. 10631 libext=lib 10632 # Tell ltmain to make .dll files, not .so files. 10633 shrext_cmds=.dll 10634 # FIXME: Setting linknames here is a bad hack. 10635 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10636 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10637 cp "$export_symbols" "$output_objdir/$soname.def"; 10638 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10639 else 10640 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10641 fi~ 10642 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10643 linknames=' 10644 # The linker will not automatically build a static lib if we build a DLL. 10645 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10646 enable_shared_with_static_runtimes=yes 10647 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10648 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10649 # Don't use ranlib 10650 old_postinstall_cmds='chmod 644 $oldlib' 10651 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10652 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10653 case $lt_outputfile in 10654 *.exe|*.EXE) ;; 10655 *) 10656 lt_outputfile=$lt_outputfile.exe 10657 lt_tool_outputfile=$lt_tool_outputfile.exe 10658 ;; 10659 esac~ 10660 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10661 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10662 $RM "$lt_outputfile.manifest"; 10663 fi' 10664 ;; 10665 *) 10666 # Assume MSVC wrapper 10667 hardcode_libdir_flag_spec=' ' 10668 allow_undefined_flag=unsupported 10669 # Tell ltmain to make .lib files, not .a files. 10670 libext=lib 10671 # Tell ltmain to make .dll files, not .so files. 10672 shrext_cmds=.dll 10673 # FIXME: Setting linknames here is a bad hack. 10674 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10675 # The linker will automatically build a .lib file if we build a DLL. 10676 old_archive_from_new_cmds='true' 10677 # FIXME: Should let the user specify the lib program. 10678 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10679 enable_shared_with_static_runtimes=yes 10680 ;; 10681 esac 10682 ;; 10683 10684 darwin* | rhapsody*) 10685 10686 10687 archive_cmds_need_lc=no 10688 hardcode_direct=no 10689 hardcode_automatic=yes 10690 hardcode_shlibpath_var=unsupported 10691 if test yes = "$lt_cv_ld_force_load"; then 10692 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\"`' 10693 10694 else 10695 whole_archive_flag_spec='' 10696 fi 10697 link_all_deplibs=yes 10698 allow_undefined_flag=$_lt_dar_allow_undefined 10699 case $cc_basename in 10700 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10701 *) _lt_dar_can_shared=$GCC ;; 10702 esac 10703 if test yes = "$_lt_dar_can_shared"; then 10704 output_verbose_link_cmd=func_echo_all 10705 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10706 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10707 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" 10708 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" 10709 10710 else 10711 ld_shlibs=no 10712 fi 10713 10714 ;; 10715 10716 dgux*) 10717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10718 hardcode_libdir_flag_spec='-L$libdir' 10719 hardcode_shlibpath_var=no 10720 ;; 10721 10722 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10723 # support. Future versions do this automatically, but an explicit c++rt0.o 10724 # does not break anything, and helps significantly (at the cost of a little 10725 # extra space). 10726 freebsd2.2*) 10727 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10728 hardcode_libdir_flag_spec='-R$libdir' 10729 hardcode_direct=yes 10730 hardcode_shlibpath_var=no 10731 ;; 10732 10733 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10734 freebsd2.*) 10735 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10736 hardcode_direct=yes 10737 hardcode_minus_L=yes 10738 hardcode_shlibpath_var=no 10739 ;; 10740 10741 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10742 freebsd* | dragonfly*) 10743 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10744 hardcode_libdir_flag_spec='-R$libdir' 10745 hardcode_direct=yes 10746 hardcode_shlibpath_var=no 10747 ;; 10748 10749 hpux9*) 10750 if test yes = "$GCC"; then 10751 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' 10752 else 10753 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' 10754 fi 10755 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10756 hardcode_libdir_separator=: 10757 hardcode_direct=yes 10758 10759 # hardcode_minus_L: Not really in the search PATH, 10760 # but as the default location of the library. 10761 hardcode_minus_L=yes 10762 export_dynamic_flag_spec='$wl-E' 10763 ;; 10764 10765 hpux10*) 10766 if test yes,no = "$GCC,$with_gnu_ld"; then 10767 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10768 else 10769 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10770 fi 10771 if test no = "$with_gnu_ld"; then 10772 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10773 hardcode_libdir_separator=: 10774 hardcode_direct=yes 10775 hardcode_direct_absolute=yes 10776 export_dynamic_flag_spec='$wl-E' 10777 # hardcode_minus_L: Not really in the search PATH, 10778 # but as the default location of the library. 10779 hardcode_minus_L=yes 10780 fi 10781 ;; 10782 10783 hpux11*) 10784 if test yes,no = "$GCC,$with_gnu_ld"; then 10785 case $host_cpu in 10786 hppa*64*) 10787 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10788 ;; 10789 ia64*) 10790 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10791 ;; 10792 *) 10793 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10794 ;; 10795 esac 10796 else 10797 case $host_cpu in 10798 hppa*64*) 10799 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10800 ;; 10801 ia64*) 10802 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10803 ;; 10804 *) 10805 10806 # Older versions of the 11.00 compiler do not understand -b yet 10807 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10809$as_echo_n "checking if $CC understands -b... " >&6; } 10810if ${lt_cv_prog_compiler__b+:} false; then : 10811 $as_echo_n "(cached) " >&6 10812else 10813 lt_cv_prog_compiler__b=no 10814 save_LDFLAGS=$LDFLAGS 10815 LDFLAGS="$LDFLAGS -b" 10816 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10817 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10818 # The linker can only warn and ignore the option if not recognized 10819 # So say no if there are warnings 10820 if test -s conftest.err; then 10821 # Append any errors to the config.log. 10822 cat conftest.err 1>&5 10823 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10825 if diff conftest.exp conftest.er2 >/dev/null; then 10826 lt_cv_prog_compiler__b=yes 10827 fi 10828 else 10829 lt_cv_prog_compiler__b=yes 10830 fi 10831 fi 10832 $RM -r conftest* 10833 LDFLAGS=$save_LDFLAGS 10834 10835fi 10836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10837$as_echo "$lt_cv_prog_compiler__b" >&6; } 10838 10839if test yes = "$lt_cv_prog_compiler__b"; then 10840 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10841else 10842 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10843fi 10844 10845 ;; 10846 esac 10847 fi 10848 if test no = "$with_gnu_ld"; then 10849 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10850 hardcode_libdir_separator=: 10851 10852 case $host_cpu in 10853 hppa*64*|ia64*) 10854 hardcode_direct=no 10855 hardcode_shlibpath_var=no 10856 ;; 10857 *) 10858 hardcode_direct=yes 10859 hardcode_direct_absolute=yes 10860 export_dynamic_flag_spec='$wl-E' 10861 10862 # hardcode_minus_L: Not really in the search PATH, 10863 # but as the default location of the library. 10864 hardcode_minus_L=yes 10865 ;; 10866 esac 10867 fi 10868 ;; 10869 10870 irix5* | irix6* | nonstopux*) 10871 if test yes = "$GCC"; then 10872 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' 10873 # Try to use the -exported_symbol ld option, if it does not 10874 # work, assume that -exports_file does not work either and 10875 # implicitly export all symbols. 10876 # This should be the same for all languages, so no per-tag cache variable. 10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10878$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10879if ${lt_cv_irix_exported_symbol+:} false; then : 10880 $as_echo_n "(cached) " >&6 10881else 10882 save_LDFLAGS=$LDFLAGS 10883 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10885/* end confdefs.h. */ 10886int foo (void) { return 0; } 10887_ACEOF 10888if ac_fn_c_try_link "$LINENO"; then : 10889 lt_cv_irix_exported_symbol=yes 10890else 10891 lt_cv_irix_exported_symbol=no 10892fi 10893rm -f core conftest.err conftest.$ac_objext \ 10894 conftest$ac_exeext conftest.$ac_ext 10895 LDFLAGS=$save_LDFLAGS 10896fi 10897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10898$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10899 if test yes = "$lt_cv_irix_exported_symbol"; then 10900 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' 10901 fi 10902 else 10903 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' 10904 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' 10905 fi 10906 archive_cmds_need_lc='no' 10907 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10908 hardcode_libdir_separator=: 10909 inherit_rpath=yes 10910 link_all_deplibs=yes 10911 ;; 10912 10913 linux*) 10914 case $cc_basename in 10915 tcc*) 10916 # Fabrice Bellard et al's Tiny C Compiler 10917 ld_shlibs=yes 10918 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10919 ;; 10920 esac 10921 ;; 10922 10923 netbsd*) 10924 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10925 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10926 else 10927 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10928 fi 10929 hardcode_libdir_flag_spec='-R$libdir' 10930 hardcode_direct=yes 10931 hardcode_shlibpath_var=no 10932 ;; 10933 10934 newsos6) 10935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10936 hardcode_direct=yes 10937 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10938 hardcode_libdir_separator=: 10939 hardcode_shlibpath_var=no 10940 ;; 10941 10942 *nto* | *qnx*) 10943 ;; 10944 10945 openbsd* | bitrig*) 10946 if test -f /usr/libexec/ld.so; then 10947 hardcode_direct=yes 10948 hardcode_shlibpath_var=no 10949 hardcode_direct_absolute=yes 10950 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10951 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10952 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10953 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10954 export_dynamic_flag_spec='$wl-E' 10955 else 10956 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10957 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10958 fi 10959 else 10960 ld_shlibs=no 10961 fi 10962 ;; 10963 10964 os2*) 10965 hardcode_libdir_flag_spec='-L$libdir' 10966 hardcode_minus_L=yes 10967 allow_undefined_flag=unsupported 10968 shrext_cmds=.dll 10969 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10970 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10971 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10972 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10973 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10974 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10975 emximp -o $lib $output_objdir/$libname.def' 10976 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10977 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10978 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10979 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10980 prefix_cmds="$SED"~ 10981 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10982 prefix_cmds="$prefix_cmds -e 1d"; 10983 fi~ 10984 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10985 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10986 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10987 emximp -o $lib $output_objdir/$libname.def' 10988 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10989 enable_shared_with_static_runtimes=yes 10990 ;; 10991 10992 osf3*) 10993 if test yes = "$GCC"; then 10994 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10995 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' 10996 else 10997 allow_undefined_flag=' -expect_unresolved \*' 10998 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' 10999 fi 11000 archive_cmds_need_lc='no' 11001 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11002 hardcode_libdir_separator=: 11003 ;; 11004 11005 osf4* | osf5*) # as osf3* with the addition of -msym flag 11006 if test yes = "$GCC"; then 11007 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11008 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' 11009 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11010 else 11011 allow_undefined_flag=' -expect_unresolved \*' 11012 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' 11013 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~ 11014 $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' 11015 11016 # Both c and cxx compiler support -rpath directly 11017 hardcode_libdir_flag_spec='-rpath $libdir' 11018 fi 11019 archive_cmds_need_lc='no' 11020 hardcode_libdir_separator=: 11021 ;; 11022 11023 solaris*) 11024 no_undefined_flag=' -z defs' 11025 if test yes = "$GCC"; then 11026 wlarc='$wl' 11027 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11028 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11029 $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' 11030 else 11031 case `$CC -V 2>&1` in 11032 *"Compilers 5.0"*) 11033 wlarc='' 11034 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11035 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11036 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11037 ;; 11038 *) 11039 wlarc='$wl' 11040 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11041 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11042 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11043 ;; 11044 esac 11045 fi 11046 hardcode_libdir_flag_spec='-R$libdir' 11047 hardcode_shlibpath_var=no 11048 case $host_os in 11049 solaris2.[0-5] | solaris2.[0-5].*) ;; 11050 *) 11051 # The compiler driver will combine and reorder linker options, 11052 # but understands '-z linker_flag'. GCC discards it without '$wl', 11053 # but is careful enough not to reorder. 11054 # Supported since Solaris 2.6 (maybe 2.5.1?) 11055 if test yes = "$GCC"; then 11056 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11057 else 11058 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11059 fi 11060 ;; 11061 esac 11062 link_all_deplibs=yes 11063 ;; 11064 11065 sunos4*) 11066 if test sequent = "$host_vendor"; then 11067 # Use $CC to link under sequent, because it throws in some extra .o 11068 # files that make .init and .fini sections work. 11069 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11070 else 11071 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11072 fi 11073 hardcode_libdir_flag_spec='-L$libdir' 11074 hardcode_direct=yes 11075 hardcode_minus_L=yes 11076 hardcode_shlibpath_var=no 11077 ;; 11078 11079 sysv4) 11080 case $host_vendor in 11081 sni) 11082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11083 hardcode_direct=yes # is this really true??? 11084 ;; 11085 siemens) 11086 ## LD is ld it makes a PLAMLIB 11087 ## CC just makes a GrossModule. 11088 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11089 reload_cmds='$CC -r -o $output$reload_objs' 11090 hardcode_direct=no 11091 ;; 11092 motorola) 11093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11094 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11095 ;; 11096 esac 11097 runpath_var='LD_RUN_PATH' 11098 hardcode_shlibpath_var=no 11099 ;; 11100 11101 sysv4.3*) 11102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11103 hardcode_shlibpath_var=no 11104 export_dynamic_flag_spec='-Bexport' 11105 ;; 11106 11107 sysv4*MP*) 11108 if test -d /usr/nec; then 11109 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11110 hardcode_shlibpath_var=no 11111 runpath_var=LD_RUN_PATH 11112 hardcode_runpath_var=yes 11113 ld_shlibs=yes 11114 fi 11115 ;; 11116 11117 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11118 no_undefined_flag='$wl-z,text' 11119 archive_cmds_need_lc=no 11120 hardcode_shlibpath_var=no 11121 runpath_var='LD_RUN_PATH' 11122 11123 if test yes = "$GCC"; then 11124 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11125 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11126 else 11127 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11128 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11129 fi 11130 ;; 11131 11132 sysv5* | sco3.2v5* | sco5v6*) 11133 # Note: We CANNOT use -z defs as we might desire, because we do not 11134 # link with -lc, and that would cause any symbols used from libc to 11135 # always be unresolved, which means just about no library would 11136 # ever link correctly. If we're not using GNU ld we use -z text 11137 # though, which does catch some bad symbols but isn't as heavy-handed 11138 # as -z defs. 11139 no_undefined_flag='$wl-z,text' 11140 allow_undefined_flag='$wl-z,nodefs' 11141 archive_cmds_need_lc=no 11142 hardcode_shlibpath_var=no 11143 hardcode_libdir_flag_spec='$wl-R,$libdir' 11144 hardcode_libdir_separator=':' 11145 link_all_deplibs=yes 11146 export_dynamic_flag_spec='$wl-Bexport' 11147 runpath_var='LD_RUN_PATH' 11148 11149 if test yes = "$GCC"; then 11150 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11151 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11152 else 11153 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11154 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11155 fi 11156 ;; 11157 11158 uts4*) 11159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11160 hardcode_libdir_flag_spec='-L$libdir' 11161 hardcode_shlibpath_var=no 11162 ;; 11163 11164 *) 11165 ld_shlibs=no 11166 ;; 11167 esac 11168 11169 if test sni = "$host_vendor"; then 11170 case $host in 11171 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11172 export_dynamic_flag_spec='$wl-Blargedynsym' 11173 ;; 11174 esac 11175 fi 11176 fi 11177 11178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11179$as_echo "$ld_shlibs" >&6; } 11180test no = "$ld_shlibs" && can_build_shared=no 11181 11182with_gnu_ld=$with_gnu_ld 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198# 11199# Do we need to explicitly link libc? 11200# 11201case "x$archive_cmds_need_lc" in 11202x|xyes) 11203 # Assume -lc should be added 11204 archive_cmds_need_lc=yes 11205 11206 if test yes,yes = "$GCC,$enable_shared"; then 11207 case $archive_cmds in 11208 *'~'*) 11209 # FIXME: we may have to deal with multi-command sequences. 11210 ;; 11211 '$CC '*) 11212 # Test whether the compiler implicitly links with -lc since on some 11213 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11214 # to ld, don't add -lc before -lgcc. 11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11216$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11217if ${lt_cv_archive_cmds_need_lc+:} false; then : 11218 $as_echo_n "(cached) " >&6 11219else 11220 $RM conftest* 11221 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11222 11223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11224 (eval $ac_compile) 2>&5 11225 ac_status=$? 11226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11227 test $ac_status = 0; } 2>conftest.err; then 11228 soname=conftest 11229 lib=conftest 11230 libobjs=conftest.$ac_objext 11231 deplibs= 11232 wl=$lt_prog_compiler_wl 11233 pic_flag=$lt_prog_compiler_pic 11234 compiler_flags=-v 11235 linker_flags=-v 11236 verstring= 11237 output_objdir=. 11238 libname=conftest 11239 lt_save_allow_undefined_flag=$allow_undefined_flag 11240 allow_undefined_flag= 11241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11242 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11243 ac_status=$? 11244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11245 test $ac_status = 0; } 11246 then 11247 lt_cv_archive_cmds_need_lc=no 11248 else 11249 lt_cv_archive_cmds_need_lc=yes 11250 fi 11251 allow_undefined_flag=$lt_save_allow_undefined_flag 11252 else 11253 cat conftest.err 1>&5 11254 fi 11255 $RM conftest* 11256 11257fi 11258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11259$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11260 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11261 ;; 11262 esac 11263 fi 11264 ;; 11265esac 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11419$as_echo_n "checking dynamic linker characteristics... " >&6; } 11420 11421if test yes = "$GCC"; then 11422 case $host_os in 11423 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11424 *) lt_awk_arg='/^libraries:/' ;; 11425 esac 11426 case $host_os in 11427 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11428 *) lt_sed_strip_eq='s|=/|/|g' ;; 11429 esac 11430 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11431 case $lt_search_path_spec in 11432 *\;*) 11433 # if the path contains ";" then we assume it to be the separator 11434 # otherwise default to the standard path separator (i.e. ":") - it is 11435 # assumed that no part of a normal pathname contains ";" but that should 11436 # okay in the real world where ";" in dirpaths is itself problematic. 11437 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11438 ;; 11439 *) 11440 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11441 ;; 11442 esac 11443 # Ok, now we have the path, separated by spaces, we can step through it 11444 # and add multilib dir if necessary... 11445 lt_tmp_lt_search_path_spec= 11446 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11447 # ...but if some path component already ends with the multilib dir we assume 11448 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11449 case "$lt_multi_os_dir; $lt_search_path_spec " in 11450 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11451 lt_multi_os_dir= 11452 ;; 11453 esac 11454 for lt_sys_path in $lt_search_path_spec; do 11455 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11456 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11457 elif test -n "$lt_multi_os_dir"; then 11458 test -d "$lt_sys_path" && \ 11459 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11460 fi 11461 done 11462 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11463BEGIN {RS = " "; FS = "/|\n";} { 11464 lt_foo = ""; 11465 lt_count = 0; 11466 for (lt_i = NF; lt_i > 0; lt_i--) { 11467 if ($lt_i != "" && $lt_i != ".") { 11468 if ($lt_i == "..") { 11469 lt_count++; 11470 } else { 11471 if (lt_count == 0) { 11472 lt_foo = "/" $lt_i lt_foo; 11473 } else { 11474 lt_count--; 11475 } 11476 } 11477 } 11478 } 11479 if (lt_foo != "") { lt_freq[lt_foo]++; } 11480 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11481}'` 11482 # AWK program above erroneously prepends '/' to C:/dos/paths 11483 # for these hosts. 11484 case $host_os in 11485 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11486 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11487 esac 11488 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11489else 11490 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11491fi 11492library_names_spec= 11493libname_spec='lib$name' 11494soname_spec= 11495shrext_cmds=.so 11496postinstall_cmds= 11497postuninstall_cmds= 11498finish_cmds= 11499finish_eval= 11500shlibpath_var= 11501shlibpath_overrides_runpath=unknown 11502version_type=none 11503dynamic_linker="$host_os ld.so" 11504sys_lib_dlsearch_path_spec="/lib /usr/lib" 11505need_lib_prefix=unknown 11506hardcode_into_libs=no 11507 11508# when you set need_version to no, make sure it does not cause -set_version 11509# flags to be left without arguments 11510need_version=unknown 11511 11512 11513 11514case $host_os in 11515aix3*) 11516 version_type=linux # correct to gnu/linux during the next big refactor 11517 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11518 shlibpath_var=LIBPATH 11519 11520 # AIX 3 has no versioning support, so we append a major version to the name. 11521 soname_spec='$libname$release$shared_ext$major' 11522 ;; 11523 11524aix[4-9]*) 11525 version_type=linux # correct to gnu/linux during the next big refactor 11526 need_lib_prefix=no 11527 need_version=no 11528 hardcode_into_libs=yes 11529 if test ia64 = "$host_cpu"; then 11530 # AIX 5 supports IA64 11531 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11532 shlibpath_var=LD_LIBRARY_PATH 11533 else 11534 # With GCC up to 2.95.x, collect2 would create an import file 11535 # for dependence libraries. The import file would start with 11536 # the line '#! .'. This would cause the generated library to 11537 # depend on '.', always an invalid library. This was fixed in 11538 # development snapshots of GCC prior to 3.0. 11539 case $host_os in 11540 aix4 | aix4.[01] | aix4.[01].*) 11541 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11542 echo ' yes ' 11543 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11544 : 11545 else 11546 can_build_shared=no 11547 fi 11548 ;; 11549 esac 11550 # Using Import Files as archive members, it is possible to support 11551 # filename-based versioning of shared library archives on AIX. While 11552 # this would work for both with and without runtime linking, it will 11553 # prevent static linking of such archives. So we do filename-based 11554 # shared library versioning with .so extension only, which is used 11555 # when both runtime linking and shared linking is enabled. 11556 # Unfortunately, runtime linking may impact performance, so we do 11557 # not want this to be the default eventually. Also, we use the 11558 # versioned .so libs for executables only if there is the -brtl 11559 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11560 # To allow for filename-based versioning support, we need to create 11561 # libNAME.so.V as an archive file, containing: 11562 # *) an Import File, referring to the versioned filename of the 11563 # archive as well as the shared archive member, telling the 11564 # bitwidth (32 or 64) of that shared object, and providing the 11565 # list of exported symbols of that shared object, eventually 11566 # decorated with the 'weak' keyword 11567 # *) the shared object with the F_LOADONLY flag set, to really avoid 11568 # it being seen by the linker. 11569 # At run time we better use the real file rather than another symlink, 11570 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11571 11572 case $with_aix_soname,$aix_use_runtimelinking in 11573 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11574 # soname into executable. Probably we can add versioning support to 11575 # collect2, so additional links can be useful in future. 11576 aix,yes) # traditional libtool 11577 dynamic_linker='AIX unversionable lib.so' 11578 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11579 # instead of lib<name>.a to let people know that these are not 11580 # typical AIX shared libraries. 11581 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11582 ;; 11583 aix,no) # traditional AIX only 11584 dynamic_linker='AIX lib.a(lib.so.V)' 11585 # We preserve .a as extension for shared libraries through AIX4.2 11586 # and later when we are not doing run time linking. 11587 library_names_spec='$libname$release.a $libname.a' 11588 soname_spec='$libname$release$shared_ext$major' 11589 ;; 11590 svr4,*) # full svr4 only 11591 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11592 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11593 # We do not specify a path in Import Files, so LIBPATH fires. 11594 shlibpath_overrides_runpath=yes 11595 ;; 11596 *,yes) # both, prefer svr4 11597 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11598 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11599 # unpreferred sharedlib libNAME.a needs extra handling 11600 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"' 11601 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"' 11602 # We do not specify a path in Import Files, so LIBPATH fires. 11603 shlibpath_overrides_runpath=yes 11604 ;; 11605 *,no) # both, prefer aix 11606 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11607 library_names_spec='$libname$release.a $libname.a' 11608 soname_spec='$libname$release$shared_ext$major' 11609 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11610 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)' 11611 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"' 11612 ;; 11613 esac 11614 shlibpath_var=LIBPATH 11615 fi 11616 ;; 11617 11618amigaos*) 11619 case $host_cpu in 11620 powerpc) 11621 # Since July 2007 AmigaOS4 officially supports .so libraries. 11622 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11623 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11624 ;; 11625 m68k) 11626 library_names_spec='$libname.ixlibrary $libname.a' 11627 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11628 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' 11629 ;; 11630 esac 11631 ;; 11632 11633beos*) 11634 library_names_spec='$libname$shared_ext' 11635 dynamic_linker="$host_os ld.so" 11636 shlibpath_var=LIBRARY_PATH 11637 ;; 11638 11639bsdi[45]*) 11640 version_type=linux # correct to gnu/linux during the next big refactor 11641 need_version=no 11642 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11643 soname_spec='$libname$release$shared_ext$major' 11644 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11645 shlibpath_var=LD_LIBRARY_PATH 11646 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11647 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11648 # the default ld.so.conf also contains /usr/contrib/lib and 11649 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11650 # libtool to hard-code these into programs 11651 ;; 11652 11653cygwin* | mingw* | pw32* | cegcc*) 11654 version_type=windows 11655 shrext_cmds=.dll 11656 need_version=no 11657 need_lib_prefix=no 11658 11659 case $GCC,$cc_basename in 11660 yes,*) 11661 # gcc 11662 library_names_spec='$libname.dll.a' 11663 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11664 postinstall_cmds='base_file=`basename \$file`~ 11665 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11666 dldir=$destdir/`dirname \$dlpath`~ 11667 test -d \$dldir || mkdir -p \$dldir~ 11668 $install_prog $dir/$dlname \$dldir/$dlname~ 11669 chmod a+x \$dldir/$dlname~ 11670 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11671 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11672 fi' 11673 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11674 dlpath=$dir/\$dldll~ 11675 $RM \$dlpath' 11676 shlibpath_overrides_runpath=yes 11677 11678 case $host_os in 11679 cygwin*) 11680 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11681 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11682 11683 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11684 ;; 11685 mingw* | cegcc*) 11686 # MinGW DLLs use traditional 'lib' prefix 11687 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11688 ;; 11689 pw32*) 11690 # pw32 DLLs use 'pw' prefix rather than 'lib' 11691 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11692 ;; 11693 esac 11694 dynamic_linker='Win32 ld.exe' 11695 ;; 11696 11697 *,cl*) 11698 # Native MSVC 11699 libname_spec='$name' 11700 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11701 library_names_spec='$libname.dll.lib' 11702 11703 case $build_os in 11704 mingw*) 11705 sys_lib_search_path_spec= 11706 lt_save_ifs=$IFS 11707 IFS=';' 11708 for lt_path in $LIB 11709 do 11710 IFS=$lt_save_ifs 11711 # Let DOS variable expansion print the short 8.3 style file name. 11712 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11713 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11714 done 11715 IFS=$lt_save_ifs 11716 # Convert to MSYS style. 11717 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11718 ;; 11719 cygwin*) 11720 # Convert to unix form, then to dos form, then back to unix form 11721 # but this time dos style (no spaces!) so that the unix form looks 11722 # like /cygdrive/c/PROGRA~1:/cygdr... 11723 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11724 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11725 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11726 ;; 11727 *) 11728 sys_lib_search_path_spec=$LIB 11729 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11730 # It is most probably a Windows format PATH. 11731 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11732 else 11733 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11734 fi 11735 # FIXME: find the short name or the path components, as spaces are 11736 # common. (e.g. "Program Files" -> "PROGRA~1") 11737 ;; 11738 esac 11739 11740 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11741 postinstall_cmds='base_file=`basename \$file`~ 11742 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11743 dldir=$destdir/`dirname \$dlpath`~ 11744 test -d \$dldir || mkdir -p \$dldir~ 11745 $install_prog $dir/$dlname \$dldir/$dlname' 11746 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11747 dlpath=$dir/\$dldll~ 11748 $RM \$dlpath' 11749 shlibpath_overrides_runpath=yes 11750 dynamic_linker='Win32 link.exe' 11751 ;; 11752 11753 *) 11754 # Assume MSVC wrapper 11755 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11756 dynamic_linker='Win32 ld.exe' 11757 ;; 11758 esac 11759 # FIXME: first we should search . and the directory the executable is in 11760 shlibpath_var=PATH 11761 ;; 11762 11763darwin* | rhapsody*) 11764 dynamic_linker="$host_os dyld" 11765 version_type=darwin 11766 need_lib_prefix=no 11767 need_version=no 11768 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11769 soname_spec='$libname$release$major$shared_ext' 11770 shlibpath_overrides_runpath=yes 11771 shlibpath_var=DYLD_LIBRARY_PATH 11772 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11773 11774 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11775 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11776 ;; 11777 11778dgux*) 11779 version_type=linux # correct to gnu/linux during the next big refactor 11780 need_lib_prefix=no 11781 need_version=no 11782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11783 soname_spec='$libname$release$shared_ext$major' 11784 shlibpath_var=LD_LIBRARY_PATH 11785 ;; 11786 11787freebsd* | dragonfly*) 11788 # DragonFly does not have aout. When/if they implement a new 11789 # versioning mechanism, adjust this. 11790 if test -x /usr/bin/objformat; then 11791 objformat=`/usr/bin/objformat` 11792 else 11793 case $host_os in 11794 freebsd[23].*) objformat=aout ;; 11795 *) objformat=elf ;; 11796 esac 11797 fi 11798 version_type=freebsd-$objformat 11799 case $version_type in 11800 freebsd-elf*) 11801 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11802 soname_spec='$libname$release$shared_ext$major' 11803 need_version=no 11804 need_lib_prefix=no 11805 ;; 11806 freebsd-*) 11807 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11808 need_version=yes 11809 ;; 11810 esac 11811 shlibpath_var=LD_LIBRARY_PATH 11812 case $host_os in 11813 freebsd2.*) 11814 shlibpath_overrides_runpath=yes 11815 ;; 11816 freebsd3.[01]* | freebsdelf3.[01]*) 11817 shlibpath_overrides_runpath=yes 11818 hardcode_into_libs=yes 11819 ;; 11820 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11821 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11822 shlibpath_overrides_runpath=no 11823 hardcode_into_libs=yes 11824 ;; 11825 *) # from 4.6 on, and DragonFly 11826 shlibpath_overrides_runpath=yes 11827 hardcode_into_libs=yes 11828 ;; 11829 esac 11830 ;; 11831 11832haiku*) 11833 version_type=linux # correct to gnu/linux during the next big refactor 11834 need_lib_prefix=no 11835 need_version=no 11836 dynamic_linker="$host_os runtime_loader" 11837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11838 soname_spec='$libname$release$shared_ext$major' 11839 shlibpath_var=LIBRARY_PATH 11840 shlibpath_overrides_runpath=no 11841 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11842 hardcode_into_libs=yes 11843 ;; 11844 11845hpux9* | hpux10* | hpux11*) 11846 # Give a soname corresponding to the major version so that dld.sl refuses to 11847 # link against other versions. 11848 version_type=sunos 11849 need_lib_prefix=no 11850 need_version=no 11851 case $host_cpu in 11852 ia64*) 11853 shrext_cmds='.so' 11854 hardcode_into_libs=yes 11855 dynamic_linker="$host_os dld.so" 11856 shlibpath_var=LD_LIBRARY_PATH 11857 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11858 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11859 soname_spec='$libname$release$shared_ext$major' 11860 if test 32 = "$HPUX_IA64_MODE"; then 11861 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11862 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11863 else 11864 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11865 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11866 fi 11867 ;; 11868 hppa*64*) 11869 shrext_cmds='.sl' 11870 hardcode_into_libs=yes 11871 dynamic_linker="$host_os dld.sl" 11872 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11873 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11874 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11875 soname_spec='$libname$release$shared_ext$major' 11876 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11877 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11878 ;; 11879 *) 11880 shrext_cmds='.sl' 11881 dynamic_linker="$host_os dld.sl" 11882 shlibpath_var=SHLIB_PATH 11883 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11884 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11885 soname_spec='$libname$release$shared_ext$major' 11886 ;; 11887 esac 11888 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11889 postinstall_cmds='chmod 555 $lib' 11890 # or fails outright, so override atomically: 11891 install_override_mode=555 11892 ;; 11893 11894interix[3-9]*) 11895 version_type=linux # correct to gnu/linux during the next big refactor 11896 need_lib_prefix=no 11897 need_version=no 11898 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11899 soname_spec='$libname$release$shared_ext$major' 11900 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11901 shlibpath_var=LD_LIBRARY_PATH 11902 shlibpath_overrides_runpath=no 11903 hardcode_into_libs=yes 11904 ;; 11905 11906irix5* | irix6* | nonstopux*) 11907 case $host_os in 11908 nonstopux*) version_type=nonstopux ;; 11909 *) 11910 if test yes = "$lt_cv_prog_gnu_ld"; then 11911 version_type=linux # correct to gnu/linux during the next big refactor 11912 else 11913 version_type=irix 11914 fi ;; 11915 esac 11916 need_lib_prefix=no 11917 need_version=no 11918 soname_spec='$libname$release$shared_ext$major' 11919 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11920 case $host_os in 11921 irix5* | nonstopux*) 11922 libsuff= shlibsuff= 11923 ;; 11924 *) 11925 case $LD in # libtool.m4 will add one of these switches to LD 11926 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11927 libsuff= shlibsuff= libmagic=32-bit;; 11928 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11929 libsuff=32 shlibsuff=N32 libmagic=N32;; 11930 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11931 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11932 *) libsuff= shlibsuff= libmagic=never-match;; 11933 esac 11934 ;; 11935 esac 11936 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11937 shlibpath_overrides_runpath=no 11938 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11939 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11940 hardcode_into_libs=yes 11941 ;; 11942 11943# No shared lib support for Linux oldld, aout, or coff. 11944linux*oldld* | linux*aout* | linux*coff*) 11945 dynamic_linker=no 11946 ;; 11947 11948linux*android*) 11949 version_type=none # Android doesn't support versioned libraries. 11950 need_lib_prefix=no 11951 need_version=no 11952 library_names_spec='$libname$release$shared_ext' 11953 soname_spec='$libname$release$shared_ext' 11954 finish_cmds= 11955 shlibpath_var=LD_LIBRARY_PATH 11956 shlibpath_overrides_runpath=yes 11957 11958 # This implies no fast_install, which is unacceptable. 11959 # Some rework will be needed to allow for fast_install 11960 # before this can be enabled. 11961 hardcode_into_libs=yes 11962 11963 dynamic_linker='Android linker' 11964 # Don't embed -rpath directories since the linker doesn't support them. 11965 hardcode_libdir_flag_spec='-L$libdir' 11966 ;; 11967 11968# This must be glibc/ELF. 11969linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11970 version_type=linux # correct to gnu/linux during the next big refactor 11971 need_lib_prefix=no 11972 need_version=no 11973 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11974 soname_spec='$libname$release$shared_ext$major' 11975 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11976 shlibpath_var=LD_LIBRARY_PATH 11977 shlibpath_overrides_runpath=no 11978 11979 # Some binutils ld are patched to set DT_RUNPATH 11980 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11981 $as_echo_n "(cached) " >&6 11982else 11983 lt_cv_shlibpath_overrides_runpath=no 11984 save_LDFLAGS=$LDFLAGS 11985 save_libdir=$libdir 11986 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11987 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11989/* end confdefs.h. */ 11990 11991int 11992main () 11993{ 11994 11995 ; 11996 return 0; 11997} 11998_ACEOF 11999if ac_fn_c_try_link "$LINENO"; then : 12000 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12001 lt_cv_shlibpath_overrides_runpath=yes 12002fi 12003fi 12004rm -f core conftest.err conftest.$ac_objext \ 12005 conftest$ac_exeext conftest.$ac_ext 12006 LDFLAGS=$save_LDFLAGS 12007 libdir=$save_libdir 12008 12009fi 12010 12011 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12012 12013 # This implies no fast_install, which is unacceptable. 12014 # Some rework will be needed to allow for fast_install 12015 # before this can be enabled. 12016 hardcode_into_libs=yes 12017 12018 # Add ABI-specific directories to the system library path. 12019 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 12020 12021 # Ideally, we could use ldconfig to report *all* directores which are 12022 # searched for libraries, however this is still not possible. Aside from not 12023 # being certain /sbin/ldconfig is available, command 12024 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12025 # even though it is searched at run-time. Try to do the best guess by 12026 # appending ld.so.conf contents (and includes) to the search path. 12027 if test -f /etc/ld.so.conf; then 12028 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' ' '` 12029 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 12030 fi 12031 12032 # We used to test for /lib/ld.so.1 and disable shared libraries on 12033 # powerpc, because MkLinux only supported shared libraries with the 12034 # GNU dynamic linker. Since this was broken with cross compilers, 12035 # most powerpc-linux boxes support dynamic linking these days and 12036 # people can always --disable-shared, the test was removed, and we 12037 # assume the GNU/Linux dynamic linker is in use. 12038 dynamic_linker='GNU/Linux ld.so' 12039 ;; 12040 12041netbsd*) 12042 version_type=sunos 12043 need_lib_prefix=no 12044 need_version=no 12045 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12046 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12047 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12048 dynamic_linker='NetBSD (a.out) ld.so' 12049 else 12050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12051 soname_spec='$libname$release$shared_ext$major' 12052 dynamic_linker='NetBSD ld.elf_so' 12053 fi 12054 shlibpath_var=LD_LIBRARY_PATH 12055 shlibpath_overrides_runpath=yes 12056 hardcode_into_libs=yes 12057 ;; 12058 12059newsos6) 12060 version_type=linux # correct to gnu/linux during the next big refactor 12061 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12062 shlibpath_var=LD_LIBRARY_PATH 12063 shlibpath_overrides_runpath=yes 12064 ;; 12065 12066*nto* | *qnx*) 12067 version_type=qnx 12068 need_lib_prefix=no 12069 need_version=no 12070 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12071 soname_spec='$libname$release$shared_ext$major' 12072 shlibpath_var=LD_LIBRARY_PATH 12073 shlibpath_overrides_runpath=no 12074 hardcode_into_libs=yes 12075 dynamic_linker='ldqnx.so' 12076 ;; 12077 12078openbsd* | bitrig*) 12079 version_type=sunos 12080 sys_lib_dlsearch_path_spec=/usr/lib 12081 need_lib_prefix=no 12082 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12083 need_version=no 12084 else 12085 need_version=yes 12086 fi 12087 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12089 shlibpath_var=LD_LIBRARY_PATH 12090 shlibpath_overrides_runpath=yes 12091 ;; 12092 12093os2*) 12094 libname_spec='$name' 12095 version_type=windows 12096 shrext_cmds=.dll 12097 need_version=no 12098 need_lib_prefix=no 12099 # OS/2 can only load a DLL with a base name of 8 characters or less. 12100 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12101 v=$($ECHO $release$versuffix | tr -d .-); 12102 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12103 $ECHO $n$v`$shared_ext' 12104 library_names_spec='${libname}_dll.$libext' 12105 dynamic_linker='OS/2 ld.exe' 12106 shlibpath_var=BEGINLIBPATH 12107 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12108 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12109 postinstall_cmds='base_file=`basename \$file`~ 12110 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12111 dldir=$destdir/`dirname \$dlpath`~ 12112 test -d \$dldir || mkdir -p \$dldir~ 12113 $install_prog $dir/$dlname \$dldir/$dlname~ 12114 chmod a+x \$dldir/$dlname~ 12115 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12116 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12117 fi' 12118 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12119 dlpath=$dir/\$dldll~ 12120 $RM \$dlpath' 12121 ;; 12122 12123osf3* | osf4* | osf5*) 12124 version_type=osf 12125 need_lib_prefix=no 12126 need_version=no 12127 soname_spec='$libname$release$shared_ext$major' 12128 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12129 shlibpath_var=LD_LIBRARY_PATH 12130 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12131 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12132 ;; 12133 12134rdos*) 12135 dynamic_linker=no 12136 ;; 12137 12138solaris*) 12139 version_type=linux # correct to gnu/linux during the next big refactor 12140 need_lib_prefix=no 12141 need_version=no 12142 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12143 soname_spec='$libname$release$shared_ext$major' 12144 shlibpath_var=LD_LIBRARY_PATH 12145 shlibpath_overrides_runpath=yes 12146 hardcode_into_libs=yes 12147 # ldd complains unless libraries are executable 12148 postinstall_cmds='chmod +x $lib' 12149 ;; 12150 12151sunos4*) 12152 version_type=sunos 12153 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12154 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12155 shlibpath_var=LD_LIBRARY_PATH 12156 shlibpath_overrides_runpath=yes 12157 if test yes = "$with_gnu_ld"; then 12158 need_lib_prefix=no 12159 fi 12160 need_version=yes 12161 ;; 12162 12163sysv4 | sysv4.3*) 12164 version_type=linux # correct to gnu/linux during the next big refactor 12165 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12166 soname_spec='$libname$release$shared_ext$major' 12167 shlibpath_var=LD_LIBRARY_PATH 12168 case $host_vendor in 12169 sni) 12170 shlibpath_overrides_runpath=no 12171 need_lib_prefix=no 12172 runpath_var=LD_RUN_PATH 12173 ;; 12174 siemens) 12175 need_lib_prefix=no 12176 ;; 12177 motorola) 12178 need_lib_prefix=no 12179 need_version=no 12180 shlibpath_overrides_runpath=no 12181 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12182 ;; 12183 esac 12184 ;; 12185 12186sysv4*MP*) 12187 if test -d /usr/nec; then 12188 version_type=linux # correct to gnu/linux during the next big refactor 12189 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12190 soname_spec='$libname$shared_ext.$major' 12191 shlibpath_var=LD_LIBRARY_PATH 12192 fi 12193 ;; 12194 12195sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12196 version_type=sco 12197 need_lib_prefix=no 12198 need_version=no 12199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12200 soname_spec='$libname$release$shared_ext$major' 12201 shlibpath_var=LD_LIBRARY_PATH 12202 shlibpath_overrides_runpath=yes 12203 hardcode_into_libs=yes 12204 if test yes = "$with_gnu_ld"; then 12205 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12206 else 12207 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12208 case $host_os in 12209 sco3.2v5*) 12210 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12211 ;; 12212 esac 12213 fi 12214 sys_lib_dlsearch_path_spec='/usr/lib' 12215 ;; 12216 12217tpf*) 12218 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12219 version_type=linux # correct to gnu/linux during the next big refactor 12220 need_lib_prefix=no 12221 need_version=no 12222 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12223 shlibpath_var=LD_LIBRARY_PATH 12224 shlibpath_overrides_runpath=no 12225 hardcode_into_libs=yes 12226 ;; 12227 12228uts4*) 12229 version_type=linux # correct to gnu/linux during the next big refactor 12230 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12231 soname_spec='$libname$release$shared_ext$major' 12232 shlibpath_var=LD_LIBRARY_PATH 12233 ;; 12234 12235*) 12236 dynamic_linker=no 12237 ;; 12238esac 12239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12240$as_echo "$dynamic_linker" >&6; } 12241test no = "$dynamic_linker" && can_build_shared=no 12242 12243variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12244if test yes = "$GCC"; then 12245 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12246fi 12247 12248if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12249 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12250fi 12251 12252if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12253 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12254fi 12255 12256# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12257configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12258 12259# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12260func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12261 12262# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12263configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12362$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12363hardcode_action= 12364if test -n "$hardcode_libdir_flag_spec" || 12365 test -n "$runpath_var" || 12366 test yes = "$hardcode_automatic"; then 12367 12368 # We can hardcode non-existent directories. 12369 if test no != "$hardcode_direct" && 12370 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12371 # have to relink, otherwise we might link with an installed library 12372 # when we should be linking with a yet-to-be-installed one 12373 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12374 test no != "$hardcode_minus_L"; then 12375 # Linking always hardcodes the temporary library directory. 12376 hardcode_action=relink 12377 else 12378 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12379 hardcode_action=immediate 12380 fi 12381else 12382 # We cannot hardcode anything, or else we can only hardcode existing 12383 # directories. 12384 hardcode_action=unsupported 12385fi 12386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12387$as_echo "$hardcode_action" >&6; } 12388 12389if test relink = "$hardcode_action" || 12390 test yes = "$inherit_rpath"; then 12391 # Fast installation is not supported 12392 enable_fast_install=no 12393elif test yes = "$shlibpath_overrides_runpath" || 12394 test no = "$enable_shared"; then 12395 # Fast installation is not necessary 12396 enable_fast_install=needless 12397fi 12398 12399 12400 12401 12402 12403 12404 if test yes != "$enable_dlopen"; then 12405 enable_dlopen=unknown 12406 enable_dlopen_self=unknown 12407 enable_dlopen_self_static=unknown 12408else 12409 lt_cv_dlopen=no 12410 lt_cv_dlopen_libs= 12411 12412 case $host_os in 12413 beos*) 12414 lt_cv_dlopen=load_add_on 12415 lt_cv_dlopen_libs= 12416 lt_cv_dlopen_self=yes 12417 ;; 12418 12419 mingw* | pw32* | cegcc*) 12420 lt_cv_dlopen=LoadLibrary 12421 lt_cv_dlopen_libs= 12422 ;; 12423 12424 cygwin*) 12425 lt_cv_dlopen=dlopen 12426 lt_cv_dlopen_libs= 12427 ;; 12428 12429 darwin*) 12430 # if libdl is installed we need to link against it 12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12432$as_echo_n "checking for dlopen in -ldl... " >&6; } 12433if ${ac_cv_lib_dl_dlopen+:} false; then : 12434 $as_echo_n "(cached) " >&6 12435else 12436 ac_check_lib_save_LIBS=$LIBS 12437LIBS="-ldl $LIBS" 12438cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12439/* end confdefs.h. */ 12440 12441/* Override any GCC internal prototype to avoid an error. 12442 Use char because int might match the return type of a GCC 12443 builtin and then its argument prototype would still apply. */ 12444#ifdef __cplusplus 12445extern "C" 12446#endif 12447char dlopen (); 12448int 12449main () 12450{ 12451return dlopen (); 12452 ; 12453 return 0; 12454} 12455_ACEOF 12456if ac_fn_c_try_link "$LINENO"; then : 12457 ac_cv_lib_dl_dlopen=yes 12458else 12459 ac_cv_lib_dl_dlopen=no 12460fi 12461rm -f core conftest.err conftest.$ac_objext \ 12462 conftest$ac_exeext conftest.$ac_ext 12463LIBS=$ac_check_lib_save_LIBS 12464fi 12465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12466$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12467if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12468 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12469else 12470 12471 lt_cv_dlopen=dyld 12472 lt_cv_dlopen_libs= 12473 lt_cv_dlopen_self=yes 12474 12475fi 12476 12477 ;; 12478 12479 tpf*) 12480 # Don't try to run any link tests for TPF. We know it's impossible 12481 # because TPF is a cross-compiler, and we know how we open DSOs. 12482 lt_cv_dlopen=dlopen 12483 lt_cv_dlopen_libs= 12484 lt_cv_dlopen_self=no 12485 ;; 12486 12487 *) 12488 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12489if test "x$ac_cv_func_shl_load" = xyes; then : 12490 lt_cv_dlopen=shl_load 12491else 12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12493$as_echo_n "checking for shl_load in -ldld... " >&6; } 12494if ${ac_cv_lib_dld_shl_load+:} false; then : 12495 $as_echo_n "(cached) " >&6 12496else 12497 ac_check_lib_save_LIBS=$LIBS 12498LIBS="-ldld $LIBS" 12499cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12500/* end confdefs.h. */ 12501 12502/* Override any GCC internal prototype to avoid an error. 12503 Use char because int might match the return type of a GCC 12504 builtin and then its argument prototype would still apply. */ 12505#ifdef __cplusplus 12506extern "C" 12507#endif 12508char shl_load (); 12509int 12510main () 12511{ 12512return shl_load (); 12513 ; 12514 return 0; 12515} 12516_ACEOF 12517if ac_fn_c_try_link "$LINENO"; then : 12518 ac_cv_lib_dld_shl_load=yes 12519else 12520 ac_cv_lib_dld_shl_load=no 12521fi 12522rm -f core conftest.err conftest.$ac_objext \ 12523 conftest$ac_exeext conftest.$ac_ext 12524LIBS=$ac_check_lib_save_LIBS 12525fi 12526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12527$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12528if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12529 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12530else 12531 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12532if test "x$ac_cv_func_dlopen" = xyes; then : 12533 lt_cv_dlopen=dlopen 12534else 12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12536$as_echo_n "checking for dlopen in -ldl... " >&6; } 12537if ${ac_cv_lib_dl_dlopen+:} false; then : 12538 $as_echo_n "(cached) " >&6 12539else 12540 ac_check_lib_save_LIBS=$LIBS 12541LIBS="-ldl $LIBS" 12542cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12543/* end confdefs.h. */ 12544 12545/* Override any GCC internal prototype to avoid an error. 12546 Use char because int might match the return type of a GCC 12547 builtin and then its argument prototype would still apply. */ 12548#ifdef __cplusplus 12549extern "C" 12550#endif 12551char dlopen (); 12552int 12553main () 12554{ 12555return dlopen (); 12556 ; 12557 return 0; 12558} 12559_ACEOF 12560if ac_fn_c_try_link "$LINENO"; then : 12561 ac_cv_lib_dl_dlopen=yes 12562else 12563 ac_cv_lib_dl_dlopen=no 12564fi 12565rm -f core conftest.err conftest.$ac_objext \ 12566 conftest$ac_exeext conftest.$ac_ext 12567LIBS=$ac_check_lib_save_LIBS 12568fi 12569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12570$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12571if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12572 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12573else 12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12575$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12576if ${ac_cv_lib_svld_dlopen+:} false; then : 12577 $as_echo_n "(cached) " >&6 12578else 12579 ac_check_lib_save_LIBS=$LIBS 12580LIBS="-lsvld $LIBS" 12581cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12582/* end confdefs.h. */ 12583 12584/* Override any GCC internal prototype to avoid an error. 12585 Use char because int might match the return type of a GCC 12586 builtin and then its argument prototype would still apply. */ 12587#ifdef __cplusplus 12588extern "C" 12589#endif 12590char dlopen (); 12591int 12592main () 12593{ 12594return dlopen (); 12595 ; 12596 return 0; 12597} 12598_ACEOF 12599if ac_fn_c_try_link "$LINENO"; then : 12600 ac_cv_lib_svld_dlopen=yes 12601else 12602 ac_cv_lib_svld_dlopen=no 12603fi 12604rm -f core conftest.err conftest.$ac_objext \ 12605 conftest$ac_exeext conftest.$ac_ext 12606LIBS=$ac_check_lib_save_LIBS 12607fi 12608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12609$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12610if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12611 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12612else 12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12614$as_echo_n "checking for dld_link in -ldld... " >&6; } 12615if ${ac_cv_lib_dld_dld_link+:} false; then : 12616 $as_echo_n "(cached) " >&6 12617else 12618 ac_check_lib_save_LIBS=$LIBS 12619LIBS="-ldld $LIBS" 12620cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12621/* end confdefs.h. */ 12622 12623/* Override any GCC internal prototype to avoid an error. 12624 Use char because int might match the return type of a GCC 12625 builtin and then its argument prototype would still apply. */ 12626#ifdef __cplusplus 12627extern "C" 12628#endif 12629char dld_link (); 12630int 12631main () 12632{ 12633return dld_link (); 12634 ; 12635 return 0; 12636} 12637_ACEOF 12638if ac_fn_c_try_link "$LINENO"; then : 12639 ac_cv_lib_dld_dld_link=yes 12640else 12641 ac_cv_lib_dld_dld_link=no 12642fi 12643rm -f core conftest.err conftest.$ac_objext \ 12644 conftest$ac_exeext conftest.$ac_ext 12645LIBS=$ac_check_lib_save_LIBS 12646fi 12647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12648$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12649if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12650 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12651fi 12652 12653 12654fi 12655 12656 12657fi 12658 12659 12660fi 12661 12662 12663fi 12664 12665 12666fi 12667 12668 ;; 12669 esac 12670 12671 if test no = "$lt_cv_dlopen"; then 12672 enable_dlopen=no 12673 else 12674 enable_dlopen=yes 12675 fi 12676 12677 case $lt_cv_dlopen in 12678 dlopen) 12679 save_CPPFLAGS=$CPPFLAGS 12680 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12681 12682 save_LDFLAGS=$LDFLAGS 12683 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12684 12685 save_LIBS=$LIBS 12686 LIBS="$lt_cv_dlopen_libs $LIBS" 12687 12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12689$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12690if ${lt_cv_dlopen_self+:} false; then : 12691 $as_echo_n "(cached) " >&6 12692else 12693 if test yes = "$cross_compiling"; then : 12694 lt_cv_dlopen_self=cross 12695else 12696 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12697 lt_status=$lt_dlunknown 12698 cat > conftest.$ac_ext <<_LT_EOF 12699#line $LINENO "configure" 12700#include "confdefs.h" 12701 12702#if HAVE_DLFCN_H 12703#include <dlfcn.h> 12704#endif 12705 12706#include <stdio.h> 12707 12708#ifdef RTLD_GLOBAL 12709# define LT_DLGLOBAL RTLD_GLOBAL 12710#else 12711# ifdef DL_GLOBAL 12712# define LT_DLGLOBAL DL_GLOBAL 12713# else 12714# define LT_DLGLOBAL 0 12715# endif 12716#endif 12717 12718/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12719 find out it does not work in some platform. */ 12720#ifndef LT_DLLAZY_OR_NOW 12721# ifdef RTLD_LAZY 12722# define LT_DLLAZY_OR_NOW RTLD_LAZY 12723# else 12724# ifdef DL_LAZY 12725# define LT_DLLAZY_OR_NOW DL_LAZY 12726# else 12727# ifdef RTLD_NOW 12728# define LT_DLLAZY_OR_NOW RTLD_NOW 12729# else 12730# ifdef DL_NOW 12731# define LT_DLLAZY_OR_NOW DL_NOW 12732# else 12733# define LT_DLLAZY_OR_NOW 0 12734# endif 12735# endif 12736# endif 12737# endif 12738#endif 12739 12740/* When -fvisibility=hidden is used, assume the code has been annotated 12741 correspondingly for the symbols needed. */ 12742#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12743int fnord () __attribute__((visibility("default"))); 12744#endif 12745 12746int fnord () { return 42; } 12747int main () 12748{ 12749 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12750 int status = $lt_dlunknown; 12751 12752 if (self) 12753 { 12754 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12755 else 12756 { 12757 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12758 else puts (dlerror ()); 12759 } 12760 /* dlclose (self); */ 12761 } 12762 else 12763 puts (dlerror ()); 12764 12765 return status; 12766} 12767_LT_EOF 12768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12769 (eval $ac_link) 2>&5 12770 ac_status=$? 12771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12772 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12773 (./conftest; exit; ) >&5 2>/dev/null 12774 lt_status=$? 12775 case x$lt_status in 12776 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12777 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12778 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12779 esac 12780 else : 12781 # compilation failed 12782 lt_cv_dlopen_self=no 12783 fi 12784fi 12785rm -fr conftest* 12786 12787 12788fi 12789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12790$as_echo "$lt_cv_dlopen_self" >&6; } 12791 12792 if test yes = "$lt_cv_dlopen_self"; then 12793 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12795$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12796if ${lt_cv_dlopen_self_static+:} false; then : 12797 $as_echo_n "(cached) " >&6 12798else 12799 if test yes = "$cross_compiling"; then : 12800 lt_cv_dlopen_self_static=cross 12801else 12802 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12803 lt_status=$lt_dlunknown 12804 cat > conftest.$ac_ext <<_LT_EOF 12805#line $LINENO "configure" 12806#include "confdefs.h" 12807 12808#if HAVE_DLFCN_H 12809#include <dlfcn.h> 12810#endif 12811 12812#include <stdio.h> 12813 12814#ifdef RTLD_GLOBAL 12815# define LT_DLGLOBAL RTLD_GLOBAL 12816#else 12817# ifdef DL_GLOBAL 12818# define LT_DLGLOBAL DL_GLOBAL 12819# else 12820# define LT_DLGLOBAL 0 12821# endif 12822#endif 12823 12824/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12825 find out it does not work in some platform. */ 12826#ifndef LT_DLLAZY_OR_NOW 12827# ifdef RTLD_LAZY 12828# define LT_DLLAZY_OR_NOW RTLD_LAZY 12829# else 12830# ifdef DL_LAZY 12831# define LT_DLLAZY_OR_NOW DL_LAZY 12832# else 12833# ifdef RTLD_NOW 12834# define LT_DLLAZY_OR_NOW RTLD_NOW 12835# else 12836# ifdef DL_NOW 12837# define LT_DLLAZY_OR_NOW DL_NOW 12838# else 12839# define LT_DLLAZY_OR_NOW 0 12840# endif 12841# endif 12842# endif 12843# endif 12844#endif 12845 12846/* When -fvisibility=hidden is used, assume the code has been annotated 12847 correspondingly for the symbols needed. */ 12848#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12849int fnord () __attribute__((visibility("default"))); 12850#endif 12851 12852int fnord () { return 42; } 12853int main () 12854{ 12855 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12856 int status = $lt_dlunknown; 12857 12858 if (self) 12859 { 12860 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12861 else 12862 { 12863 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12864 else puts (dlerror ()); 12865 } 12866 /* dlclose (self); */ 12867 } 12868 else 12869 puts (dlerror ()); 12870 12871 return status; 12872} 12873_LT_EOF 12874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12875 (eval $ac_link) 2>&5 12876 ac_status=$? 12877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12878 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12879 (./conftest; exit; ) >&5 2>/dev/null 12880 lt_status=$? 12881 case x$lt_status in 12882 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12883 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12884 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12885 esac 12886 else : 12887 # compilation failed 12888 lt_cv_dlopen_self_static=no 12889 fi 12890fi 12891rm -fr conftest* 12892 12893 12894fi 12895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12896$as_echo "$lt_cv_dlopen_self_static" >&6; } 12897 fi 12898 12899 CPPFLAGS=$save_CPPFLAGS 12900 LDFLAGS=$save_LDFLAGS 12901 LIBS=$save_LIBS 12902 ;; 12903 esac 12904 12905 case $lt_cv_dlopen_self in 12906 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12907 *) enable_dlopen_self=unknown ;; 12908 esac 12909 12910 case $lt_cv_dlopen_self_static in 12911 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12912 *) enable_dlopen_self_static=unknown ;; 12913 esac 12914fi 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932striplib= 12933old_striplib= 12934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12935$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12936if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12937 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12938 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12940$as_echo "yes" >&6; } 12941else 12942# FIXME - insert some real tests, host_os isn't really good enough 12943 case $host_os in 12944 darwin*) 12945 if test -n "$STRIP"; then 12946 striplib="$STRIP -x" 12947 old_striplib="$STRIP -S" 12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12949$as_echo "yes" >&6; } 12950 else 12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12952$as_echo "no" >&6; } 12953 fi 12954 ;; 12955 *) 12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12957$as_echo "no" >&6; } 12958 ;; 12959 esac 12960fi 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 # Report what library types will actually be built 12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12975$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12977$as_echo "$can_build_shared" >&6; } 12978 12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12980$as_echo_n "checking whether to build shared libraries... " >&6; } 12981 test no = "$can_build_shared" && enable_shared=no 12982 12983 # On AIX, shared libraries and static libraries use the same namespace, and 12984 # are all built from PIC. 12985 case $host_os in 12986 aix3*) 12987 test yes = "$enable_shared" && enable_static=no 12988 if test -n "$RANLIB"; then 12989 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12990 postinstall_cmds='$RANLIB $lib' 12991 fi 12992 ;; 12993 12994 aix[4-9]*) 12995 if test ia64 != "$host_cpu"; then 12996 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12997 yes,aix,yes) ;; # shared object as lib.so file only 12998 yes,svr4,*) ;; # shared object as lib.so archive member only 12999 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13000 esac 13001 fi 13002 ;; 13003 esac 13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13005$as_echo "$enable_shared" >&6; } 13006 13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13008$as_echo_n "checking whether to build static libraries... " >&6; } 13009 # Make sure either enable_shared or enable_static is yes. 13010 test yes = "$enable_shared" || enable_static=yes 13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13012$as_echo "$enable_static" >&6; } 13013 13014 13015 13016 13017fi 13018ac_ext=c 13019ac_cpp='$CPP $CPPFLAGS' 13020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13022ac_compiler_gnu=$ac_cv_c_compiler_gnu 13023 13024CC=$lt_save_CC 13025 13026 if test -n "$CXX" && ( test no != "$CXX" && 13027 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13028 (test g++ != "$CXX"))); then 13029 ac_ext=cpp 13030ac_cpp='$CXXCPP $CPPFLAGS' 13031ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13032ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13033ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13035$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13036if test -z "$CXXCPP"; then 13037 if ${ac_cv_prog_CXXCPP+:} false; then : 13038 $as_echo_n "(cached) " >&6 13039else 13040 # Double quotes because CXXCPP needs to be expanded 13041 for CXXCPP in "$CXX -E" "/lib/cpp" 13042 do 13043 ac_preproc_ok=false 13044for ac_cxx_preproc_warn_flag in '' yes 13045do 13046 # Use a header file that comes with gcc, so configuring glibc 13047 # with a fresh cross-compiler works. 13048 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13049 # <limits.h> exists even on freestanding compilers. 13050 # On the NeXT, cc -E runs the code through the compiler's parser, 13051 # not just through cpp. "Syntax error" is here to catch this case. 13052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13053/* end confdefs.h. */ 13054#ifdef __STDC__ 13055# include <limits.h> 13056#else 13057# include <assert.h> 13058#endif 13059 Syntax error 13060_ACEOF 13061if ac_fn_cxx_try_cpp "$LINENO"; then : 13062 13063else 13064 # Broken: fails on valid input. 13065continue 13066fi 13067rm -f conftest.err conftest.i conftest.$ac_ext 13068 13069 # OK, works on sane cases. Now check whether nonexistent headers 13070 # can be detected and how. 13071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13072/* end confdefs.h. */ 13073#include <ac_nonexistent.h> 13074_ACEOF 13075if ac_fn_cxx_try_cpp "$LINENO"; then : 13076 # Broken: success on invalid input. 13077continue 13078else 13079 # Passes both tests. 13080ac_preproc_ok=: 13081break 13082fi 13083rm -f conftest.err conftest.i conftest.$ac_ext 13084 13085done 13086# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13087rm -f conftest.i conftest.err conftest.$ac_ext 13088if $ac_preproc_ok; then : 13089 break 13090fi 13091 13092 done 13093 ac_cv_prog_CXXCPP=$CXXCPP 13094 13095fi 13096 CXXCPP=$ac_cv_prog_CXXCPP 13097else 13098 ac_cv_prog_CXXCPP=$CXXCPP 13099fi 13100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13101$as_echo "$CXXCPP" >&6; } 13102ac_preproc_ok=false 13103for ac_cxx_preproc_warn_flag in '' yes 13104do 13105 # Use a header file that comes with gcc, so configuring glibc 13106 # with a fresh cross-compiler works. 13107 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13108 # <limits.h> exists even on freestanding compilers. 13109 # On the NeXT, cc -E runs the code through the compiler's parser, 13110 # not just through cpp. "Syntax error" is here to catch this case. 13111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13112/* end confdefs.h. */ 13113#ifdef __STDC__ 13114# include <limits.h> 13115#else 13116# include <assert.h> 13117#endif 13118 Syntax error 13119_ACEOF 13120if ac_fn_cxx_try_cpp "$LINENO"; then : 13121 13122else 13123 # Broken: fails on valid input. 13124continue 13125fi 13126rm -f conftest.err conftest.i conftest.$ac_ext 13127 13128 # OK, works on sane cases. Now check whether nonexistent headers 13129 # can be detected and how. 13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13131/* end confdefs.h. */ 13132#include <ac_nonexistent.h> 13133_ACEOF 13134if ac_fn_cxx_try_cpp "$LINENO"; then : 13135 # Broken: success on invalid input. 13136continue 13137else 13138 # Passes both tests. 13139ac_preproc_ok=: 13140break 13141fi 13142rm -f conftest.err conftest.i conftest.$ac_ext 13143 13144done 13145# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13146rm -f conftest.i conftest.err conftest.$ac_ext 13147if $ac_preproc_ok; then : 13148 13149else 13150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13151$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13152as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13153See \`config.log' for more details" "$LINENO" 5; } 13154fi 13155 13156ac_ext=c 13157ac_cpp='$CPP $CPPFLAGS' 13158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13160ac_compiler_gnu=$ac_cv_c_compiler_gnu 13161 13162else 13163 _lt_caught_CXX_error=yes 13164fi 13165 13166ac_ext=cpp 13167ac_cpp='$CXXCPP $CPPFLAGS' 13168ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13169ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13170ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13171 13172archive_cmds_need_lc_CXX=no 13173allow_undefined_flag_CXX= 13174always_export_symbols_CXX=no 13175archive_expsym_cmds_CXX= 13176compiler_needs_object_CXX=no 13177export_dynamic_flag_spec_CXX= 13178hardcode_direct_CXX=no 13179hardcode_direct_absolute_CXX=no 13180hardcode_libdir_flag_spec_CXX= 13181hardcode_libdir_separator_CXX= 13182hardcode_minus_L_CXX=no 13183hardcode_shlibpath_var_CXX=unsupported 13184hardcode_automatic_CXX=no 13185inherit_rpath_CXX=no 13186module_cmds_CXX= 13187module_expsym_cmds_CXX= 13188link_all_deplibs_CXX=unknown 13189old_archive_cmds_CXX=$old_archive_cmds 13190reload_flag_CXX=$reload_flag 13191reload_cmds_CXX=$reload_cmds 13192no_undefined_flag_CXX= 13193whole_archive_flag_spec_CXX= 13194enable_shared_with_static_runtimes_CXX=no 13195 13196# Source file extension for C++ test sources. 13197ac_ext=cpp 13198 13199# Object file extension for compiled C++ test sources. 13200objext=o 13201objext_CXX=$objext 13202 13203# No sense in running all these tests if we already determined that 13204# the CXX compiler isn't working. Some variables (like enable_shared) 13205# are currently assumed to apply to all compilers on this platform, 13206# and will be corrupted by setting them based on a non-working compiler. 13207if test yes != "$_lt_caught_CXX_error"; then 13208 # Code to be used in simple compile tests 13209 lt_simple_compile_test_code="int some_variable = 0;" 13210 13211 # Code to be used in simple link tests 13212 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13213 13214 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13215 13216 13217 13218 13219 13220 13221# If no C compiler was specified, use CC. 13222LTCC=${LTCC-"$CC"} 13223 13224# If no C compiler flags were specified, use CFLAGS. 13225LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13226 13227# Allow CC to be a program name with arguments. 13228compiler=$CC 13229 13230 13231 # save warnings/boilerplate of simple test code 13232 ac_outfile=conftest.$ac_objext 13233echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13234eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13235_lt_compiler_boilerplate=`cat conftest.err` 13236$RM conftest* 13237 13238 ac_outfile=conftest.$ac_objext 13239echo "$lt_simple_link_test_code" >conftest.$ac_ext 13240eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13241_lt_linker_boilerplate=`cat conftest.err` 13242$RM -r conftest* 13243 13244 13245 # Allow CC to be a program name with arguments. 13246 lt_save_CC=$CC 13247 lt_save_CFLAGS=$CFLAGS 13248 lt_save_LD=$LD 13249 lt_save_GCC=$GCC 13250 GCC=$GXX 13251 lt_save_with_gnu_ld=$with_gnu_ld 13252 lt_save_path_LD=$lt_cv_path_LD 13253 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13254 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13255 else 13256 $as_unset lt_cv_prog_gnu_ld 13257 fi 13258 if test -n "${lt_cv_path_LDCXX+set}"; then 13259 lt_cv_path_LD=$lt_cv_path_LDCXX 13260 else 13261 $as_unset lt_cv_path_LD 13262 fi 13263 test -z "${LDCXX+set}" || LD=$LDCXX 13264 CC=${CXX-"c++"} 13265 CFLAGS=$CXXFLAGS 13266 compiler=$CC 13267 compiler_CXX=$CC 13268 func_cc_basename $compiler 13269cc_basename=$func_cc_basename_result 13270 13271 13272 if test -n "$compiler"; then 13273 # We don't want -fno-exception when compiling C++ code, so set the 13274 # no_builtin_flag separately 13275 if test yes = "$GXX"; then 13276 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13277 else 13278 lt_prog_compiler_no_builtin_flag_CXX= 13279 fi 13280 13281 if test yes = "$GXX"; then 13282 # Set up default GNU C++ configuration 13283 13284 13285 13286# Check whether --with-gnu-ld was given. 13287if test "${with_gnu_ld+set}" = set; then : 13288 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13289else 13290 with_gnu_ld=no 13291fi 13292 13293ac_prog=ld 13294if test yes = "$GCC"; then 13295 # Check if gcc -print-prog-name=ld gives a path. 13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13297$as_echo_n "checking for ld used by $CC... " >&6; } 13298 case $host in 13299 *-*-mingw*) 13300 # gcc leaves a trailing carriage return, which upsets mingw 13301 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13302 *) 13303 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13304 esac 13305 case $ac_prog in 13306 # Accept absolute paths. 13307 [\\/]* | ?:[\\/]*) 13308 re_direlt='/[^/][^/]*/\.\./' 13309 # Canonicalize the pathname of ld 13310 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13311 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13312 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13313 done 13314 test -z "$LD" && LD=$ac_prog 13315 ;; 13316 "") 13317 # If it fails, then pretend we aren't using GCC. 13318 ac_prog=ld 13319 ;; 13320 *) 13321 # If it is relative, then search for the first ld in PATH. 13322 with_gnu_ld=unknown 13323 ;; 13324 esac 13325elif test yes = "$with_gnu_ld"; then 13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13327$as_echo_n "checking for GNU ld... " >&6; } 13328else 13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13330$as_echo_n "checking for non-GNU ld... " >&6; } 13331fi 13332if ${lt_cv_path_LD+:} false; then : 13333 $as_echo_n "(cached) " >&6 13334else 13335 if test -z "$LD"; then 13336 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13337 for ac_dir in $PATH; do 13338 IFS=$lt_save_ifs 13339 test -z "$ac_dir" && ac_dir=. 13340 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13341 lt_cv_path_LD=$ac_dir/$ac_prog 13342 # Check to see if the program is GNU ld. I'd rather use --version, 13343 # but apparently some variants of GNU ld only accept -v. 13344 # Break only if it was the GNU/non-GNU ld that we prefer. 13345 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13346 *GNU* | *'with BFD'*) 13347 test no != "$with_gnu_ld" && break 13348 ;; 13349 *) 13350 test yes != "$with_gnu_ld" && break 13351 ;; 13352 esac 13353 fi 13354 done 13355 IFS=$lt_save_ifs 13356else 13357 lt_cv_path_LD=$LD # Let the user override the test with a path. 13358fi 13359fi 13360 13361LD=$lt_cv_path_LD 13362if test -n "$LD"; then 13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13364$as_echo "$LD" >&6; } 13365else 13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13367$as_echo "no" >&6; } 13368fi 13369test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13371$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13372if ${lt_cv_prog_gnu_ld+:} false; then : 13373 $as_echo_n "(cached) " >&6 13374else 13375 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13376case `$LD -v 2>&1 </dev/null` in 13377*GNU* | *'with BFD'*) 13378 lt_cv_prog_gnu_ld=yes 13379 ;; 13380*) 13381 lt_cv_prog_gnu_ld=no 13382 ;; 13383esac 13384fi 13385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13386$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13387with_gnu_ld=$lt_cv_prog_gnu_ld 13388 13389 13390 13391 13392 13393 13394 13395 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13396 # archiving commands below assume that GNU ld is being used. 13397 if test yes = "$with_gnu_ld"; then 13398 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13399 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13400 13401 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13402 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13403 13404 # If archive_cmds runs LD, not CC, wlarc should be empty 13405 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13406 # investigate it a little bit more. (MM) 13407 wlarc='$wl' 13408 13409 # ancient GNU ld didn't support --whole-archive et. al. 13410 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13411 $GREP 'no-whole-archive' > /dev/null; then 13412 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13413 else 13414 whole_archive_flag_spec_CXX= 13415 fi 13416 else 13417 with_gnu_ld=no 13418 wlarc= 13419 13420 # A generic and very simple default shared library creation 13421 # command for GNU C++ for the case where it uses the native 13422 # linker, instead of GNU ld. If possible, this setting should 13423 # overridden to take advantage of the native linker features on 13424 # the platform it is being used on. 13425 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13426 fi 13427 13428 # Commands to make compiler produce verbose output that lists 13429 # what "hidden" libraries, object files and flags are used when 13430 # linking a shared library. 13431 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13432 13433 else 13434 GXX=no 13435 with_gnu_ld=no 13436 wlarc= 13437 fi 13438 13439 # PORTME: fill in a description of your system's C++ link characteristics 13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13441$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13442 ld_shlibs_CXX=yes 13443 case $host_os in 13444 aix3*) 13445 # FIXME: insert proper C++ library support 13446 ld_shlibs_CXX=no 13447 ;; 13448 aix[4-9]*) 13449 if test ia64 = "$host_cpu"; then 13450 # On IA64, the linker does run time linking by default, so we don't 13451 # have to do anything special. 13452 aix_use_runtimelinking=no 13453 exp_sym_flag='-Bexport' 13454 no_entry_flag= 13455 else 13456 aix_use_runtimelinking=no 13457 13458 # Test if we are trying to use run time linking or normal 13459 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13460 # have runtime linking enabled, and use it for executables. 13461 # For shared libraries, we enable/disable runtime linking 13462 # depending on the kind of the shared library created - 13463 # when "with_aix_soname,aix_use_runtimelinking" is: 13464 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13465 # "aix,yes" lib.so shared, rtl:yes, for executables 13466 # lib.a static archive 13467 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13468 # lib.a(lib.so.V) shared, rtl:no, for executables 13469 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13470 # lib.a(lib.so.V) shared, rtl:no 13471 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13472 # lib.a static archive 13473 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13474 for ld_flag in $LDFLAGS; do 13475 case $ld_flag in 13476 *-brtl*) 13477 aix_use_runtimelinking=yes 13478 break 13479 ;; 13480 esac 13481 done 13482 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13483 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13484 # so we don't have lib.a shared libs to link our executables. 13485 # We have to force runtime linking in this case. 13486 aix_use_runtimelinking=yes 13487 LDFLAGS="$LDFLAGS -Wl,-brtl" 13488 fi 13489 ;; 13490 esac 13491 13492 exp_sym_flag='-bexport' 13493 no_entry_flag='-bnoentry' 13494 fi 13495 13496 # When large executables or shared objects are built, AIX ld can 13497 # have problems creating the table of contents. If linking a library 13498 # or program results in "error TOC overflow" add -mminimal-toc to 13499 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13500 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13501 13502 archive_cmds_CXX='' 13503 hardcode_direct_CXX=yes 13504 hardcode_direct_absolute_CXX=yes 13505 hardcode_libdir_separator_CXX=':' 13506 link_all_deplibs_CXX=yes 13507 file_list_spec_CXX='$wl-f,' 13508 case $with_aix_soname,$aix_use_runtimelinking in 13509 aix,*) ;; # no import file 13510 svr4,* | *,yes) # use import file 13511 # The Import File defines what to hardcode. 13512 hardcode_direct_CXX=no 13513 hardcode_direct_absolute_CXX=no 13514 ;; 13515 esac 13516 13517 if test yes = "$GXX"; then 13518 case $host_os in aix4.[012]|aix4.[012].*) 13519 # We only want to do this on AIX 4.2 and lower, the check 13520 # below for broken collect2 doesn't work under 4.3+ 13521 collect2name=`$CC -print-prog-name=collect2` 13522 if test -f "$collect2name" && 13523 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13524 then 13525 # We have reworked collect2 13526 : 13527 else 13528 # We have old collect2 13529 hardcode_direct_CXX=unsupported 13530 # It fails to find uninstalled libraries when the uninstalled 13531 # path is not listed in the libpath. Setting hardcode_minus_L 13532 # to unsupported forces relinking 13533 hardcode_minus_L_CXX=yes 13534 hardcode_libdir_flag_spec_CXX='-L$libdir' 13535 hardcode_libdir_separator_CXX= 13536 fi 13537 esac 13538 shared_flag='-shared' 13539 if test yes = "$aix_use_runtimelinking"; then 13540 shared_flag=$shared_flag' $wl-G' 13541 fi 13542 # Need to ensure runtime linking is disabled for the traditional 13543 # shared library, or the linker may eventually find shared libraries 13544 # /with/ Import File - we do not want to mix them. 13545 shared_flag_aix='-shared' 13546 shared_flag_svr4='-shared $wl-G' 13547 else 13548 # not using gcc 13549 if test ia64 = "$host_cpu"; then 13550 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13551 # chokes on -Wl,-G. The following line is correct: 13552 shared_flag='-G' 13553 else 13554 if test yes = "$aix_use_runtimelinking"; then 13555 shared_flag='$wl-G' 13556 else 13557 shared_flag='$wl-bM:SRE' 13558 fi 13559 shared_flag_aix='$wl-bM:SRE' 13560 shared_flag_svr4='$wl-G' 13561 fi 13562 fi 13563 13564 export_dynamic_flag_spec_CXX='$wl-bexpall' 13565 # It seems that -bexpall does not export symbols beginning with 13566 # underscore (_), so it is better to generate a list of symbols to 13567 # export. 13568 always_export_symbols_CXX=yes 13569 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13570 # Warning - without using the other runtime loading flags (-brtl), 13571 # -berok will link without error, but may produce a broken library. 13572 # The "-G" linker flag allows undefined symbols. 13573 no_undefined_flag_CXX='-bernotok' 13574 # Determine the default libpath from the value encoded in an empty 13575 # executable. 13576 if test set = "${lt_cv_aix_libpath+set}"; then 13577 aix_libpath=$lt_cv_aix_libpath 13578else 13579 if ${lt_cv_aix_libpath__CXX+:} false; then : 13580 $as_echo_n "(cached) " >&6 13581else 13582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13583/* end confdefs.h. */ 13584 13585int 13586main () 13587{ 13588 13589 ; 13590 return 0; 13591} 13592_ACEOF 13593if ac_fn_cxx_try_link "$LINENO"; then : 13594 13595 lt_aix_libpath_sed=' 13596 /Import File Strings/,/^$/ { 13597 /^0/ { 13598 s/^0 *\([^ ]*\) *$/\1/ 13599 p 13600 } 13601 }' 13602 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13603 # Check for a 64-bit object if we didn't find anything. 13604 if test -z "$lt_cv_aix_libpath__CXX"; then 13605 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13606 fi 13607fi 13608rm -f core conftest.err conftest.$ac_objext \ 13609 conftest$ac_exeext conftest.$ac_ext 13610 if test -z "$lt_cv_aix_libpath__CXX"; then 13611 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13612 fi 13613 13614fi 13615 13616 aix_libpath=$lt_cv_aix_libpath__CXX 13617fi 13618 13619 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13620 13621 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 13622 else 13623 if test ia64 = "$host_cpu"; then 13624 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 13625 allow_undefined_flag_CXX="-z nodefs" 13626 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 13627 else 13628 # Determine the default libpath from the value encoded in an 13629 # empty executable. 13630 if test set = "${lt_cv_aix_libpath+set}"; then 13631 aix_libpath=$lt_cv_aix_libpath 13632else 13633 if ${lt_cv_aix_libpath__CXX+:} false; then : 13634 $as_echo_n "(cached) " >&6 13635else 13636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13637/* end confdefs.h. */ 13638 13639int 13640main () 13641{ 13642 13643 ; 13644 return 0; 13645} 13646_ACEOF 13647if ac_fn_cxx_try_link "$LINENO"; then : 13648 13649 lt_aix_libpath_sed=' 13650 /Import File Strings/,/^$/ { 13651 /^0/ { 13652 s/^0 *\([^ ]*\) *$/\1/ 13653 p 13654 } 13655 }' 13656 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13657 # Check for a 64-bit object if we didn't find anything. 13658 if test -z "$lt_cv_aix_libpath__CXX"; then 13659 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13660 fi 13661fi 13662rm -f core conftest.err conftest.$ac_objext \ 13663 conftest$ac_exeext conftest.$ac_ext 13664 if test -z "$lt_cv_aix_libpath__CXX"; then 13665 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13666 fi 13667 13668fi 13669 13670 aix_libpath=$lt_cv_aix_libpath__CXX 13671fi 13672 13673 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13674 # Warning - without using the other run time loading flags, 13675 # -berok will link without error, but may produce a broken library. 13676 no_undefined_flag_CXX=' $wl-bernotok' 13677 allow_undefined_flag_CXX=' $wl-berok' 13678 if test yes = "$with_gnu_ld"; then 13679 # We only use this code for GNU lds that support --whole-archive. 13680 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13681 else 13682 # Exported symbols can be pulled into shared objects from archives 13683 whole_archive_flag_spec_CXX='$convenience' 13684 fi 13685 archive_cmds_need_lc_CXX=yes 13686 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13687 # -brtl affects multiple linker settings, -berok does not and is overridden later 13688 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13689 if test svr4 != "$with_aix_soname"; then 13690 # This is similar to how AIX traditionally builds its shared 13691 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 13692 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 13693 fi 13694 if test aix != "$with_aix_soname"; then 13695 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 13696 else 13697 # used by -dlpreopen to get the symbols 13698 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13699 fi 13700 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 13701 fi 13702 fi 13703 ;; 13704 13705 beos*) 13706 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13707 allow_undefined_flag_CXX=unsupported 13708 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13709 # support --undefined. This deserves some investigation. FIXME 13710 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13711 else 13712 ld_shlibs_CXX=no 13713 fi 13714 ;; 13715 13716 chorus*) 13717 case $cc_basename in 13718 *) 13719 # FIXME: insert proper C++ library support 13720 ld_shlibs_CXX=no 13721 ;; 13722 esac 13723 ;; 13724 13725 cygwin* | mingw* | pw32* | cegcc*) 13726 case $GXX,$cc_basename in 13727 ,cl* | no,cl*) 13728 # Native MSVC 13729 # hardcode_libdir_flag_spec is actually meaningless, as there is 13730 # no search path for DLLs. 13731 hardcode_libdir_flag_spec_CXX=' ' 13732 allow_undefined_flag_CXX=unsupported 13733 always_export_symbols_CXX=yes 13734 file_list_spec_CXX='@' 13735 # Tell ltmain to make .lib files, not .a files. 13736 libext=lib 13737 # Tell ltmain to make .dll files, not .so files. 13738 shrext_cmds=.dll 13739 # FIXME: Setting linknames here is a bad hack. 13740 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13741 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13742 cp "$export_symbols" "$output_objdir/$soname.def"; 13743 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13744 else 13745 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13746 fi~ 13747 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13748 linknames=' 13749 # The linker will not automatically build a static lib if we build a DLL. 13750 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13751 enable_shared_with_static_runtimes_CXX=yes 13752 # Don't use ranlib 13753 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13754 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13755 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13756 case $lt_outputfile in 13757 *.exe|*.EXE) ;; 13758 *) 13759 lt_outputfile=$lt_outputfile.exe 13760 lt_tool_outputfile=$lt_tool_outputfile.exe 13761 ;; 13762 esac~ 13763 func_to_tool_file "$lt_outputfile"~ 13764 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13765 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13766 $RM "$lt_outputfile.manifest"; 13767 fi' 13768 ;; 13769 *) 13770 # g++ 13771 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13772 # as there is no search path for DLLs. 13773 hardcode_libdir_flag_spec_CXX='-L$libdir' 13774 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 13775 allow_undefined_flag_CXX=unsupported 13776 always_export_symbols_CXX=no 13777 enable_shared_with_static_runtimes_CXX=yes 13778 13779 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13780 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13781 # If the export-symbols file already is a .def file, use it as 13782 # is; otherwise, prepend EXPORTS... 13783 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13784 cp $export_symbols $output_objdir/$soname.def; 13785 else 13786 echo EXPORTS > $output_objdir/$soname.def; 13787 cat $export_symbols >> $output_objdir/$soname.def; 13788 fi~ 13789 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13790 else 13791 ld_shlibs_CXX=no 13792 fi 13793 ;; 13794 esac 13795 ;; 13796 darwin* | rhapsody*) 13797 13798 13799 archive_cmds_need_lc_CXX=no 13800 hardcode_direct_CXX=no 13801 hardcode_automatic_CXX=yes 13802 hardcode_shlibpath_var_CXX=unsupported 13803 if test yes = "$lt_cv_ld_force_load"; then 13804 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 13805 13806 else 13807 whole_archive_flag_spec_CXX='' 13808 fi 13809 link_all_deplibs_CXX=yes 13810 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 13811 case $cc_basename in 13812 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13813 *) _lt_dar_can_shared=$GCC ;; 13814 esac 13815 if test yes = "$_lt_dar_can_shared"; then 13816 output_verbose_link_cmd=func_echo_all 13817 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 13818 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13819 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 13820 module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 13821 if test yes != "$lt_cv_apple_cc_single_mod"; then 13822 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" 13823 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" 13824 fi 13825 13826 else 13827 ld_shlibs_CXX=no 13828 fi 13829 13830 ;; 13831 13832 os2*) 13833 hardcode_libdir_flag_spec_CXX='-L$libdir' 13834 hardcode_minus_L_CXX=yes 13835 allow_undefined_flag_CXX=unsupported 13836 shrext_cmds=.dll 13837 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13838 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13839 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13840 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13841 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13842 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13843 emximp -o $lib $output_objdir/$libname.def' 13844 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13845 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13846 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13847 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13848 prefix_cmds="$SED"~ 13849 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13850 prefix_cmds="$prefix_cmds -e 1d"; 13851 fi~ 13852 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13853 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13854 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13855 emximp -o $lib $output_objdir/$libname.def' 13856 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13857 enable_shared_with_static_runtimes_CXX=yes 13858 ;; 13859 13860 dgux*) 13861 case $cc_basename in 13862 ec++*) 13863 # FIXME: insert proper C++ library support 13864 ld_shlibs_CXX=no 13865 ;; 13866 ghcx*) 13867 # Green Hills C++ Compiler 13868 # FIXME: insert proper C++ library support 13869 ld_shlibs_CXX=no 13870 ;; 13871 *) 13872 # FIXME: insert proper C++ library support 13873 ld_shlibs_CXX=no 13874 ;; 13875 esac 13876 ;; 13877 13878 freebsd2.*) 13879 # C++ shared libraries reported to be fairly broken before 13880 # switch to ELF 13881 ld_shlibs_CXX=no 13882 ;; 13883 13884 freebsd-elf*) 13885 archive_cmds_need_lc_CXX=no 13886 ;; 13887 13888 freebsd* | dragonfly*) 13889 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13890 # conventions 13891 ld_shlibs_CXX=yes 13892 ;; 13893 13894 haiku*) 13895 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13896 link_all_deplibs_CXX=yes 13897 ;; 13898 13899 hpux9*) 13900 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13901 hardcode_libdir_separator_CXX=: 13902 export_dynamic_flag_spec_CXX='$wl-E' 13903 hardcode_direct_CXX=yes 13904 hardcode_minus_L_CXX=yes # Not in the search PATH, 13905 # but as the default 13906 # location of the library. 13907 13908 case $cc_basename in 13909 CC*) 13910 # FIXME: insert proper C++ library support 13911 ld_shlibs_CXX=no 13912 ;; 13913 aCC*) 13914 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13915 # Commands to make compiler produce verbose output that lists 13916 # what "hidden" libraries, object files and flags are used when 13917 # linking a shared library. 13918 # 13919 # There doesn't appear to be a way to prevent this compiler from 13920 # explicitly linking system object files so we need to strip them 13921 # from the output so that they don't get included in the library 13922 # dependencies. 13923 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13924 ;; 13925 *) 13926 if test yes = "$GXX"; then 13927 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13928 else 13929 # FIXME: insert proper C++ library support 13930 ld_shlibs_CXX=no 13931 fi 13932 ;; 13933 esac 13934 ;; 13935 13936 hpux10*|hpux11*) 13937 if test no = "$with_gnu_ld"; then 13938 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13939 hardcode_libdir_separator_CXX=: 13940 13941 case $host_cpu in 13942 hppa*64*|ia64*) 13943 ;; 13944 *) 13945 export_dynamic_flag_spec_CXX='$wl-E' 13946 ;; 13947 esac 13948 fi 13949 case $host_cpu in 13950 hppa*64*|ia64*) 13951 hardcode_direct_CXX=no 13952 hardcode_shlibpath_var_CXX=no 13953 ;; 13954 *) 13955 hardcode_direct_CXX=yes 13956 hardcode_direct_absolute_CXX=yes 13957 hardcode_minus_L_CXX=yes # Not in the search PATH, 13958 # but as the default 13959 # location of the library. 13960 ;; 13961 esac 13962 13963 case $cc_basename in 13964 CC*) 13965 # FIXME: insert proper C++ library support 13966 ld_shlibs_CXX=no 13967 ;; 13968 aCC*) 13969 case $host_cpu in 13970 hppa*64*) 13971 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13972 ;; 13973 ia64*) 13974 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13975 ;; 13976 *) 13977 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13978 ;; 13979 esac 13980 # Commands to make compiler produce verbose output that lists 13981 # what "hidden" libraries, object files and flags are used when 13982 # linking a shared library. 13983 # 13984 # There doesn't appear to be a way to prevent this compiler from 13985 # explicitly linking system object files so we need to strip them 13986 # from the output so that they don't get included in the library 13987 # dependencies. 13988 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13989 ;; 13990 *) 13991 if test yes = "$GXX"; then 13992 if test no = "$with_gnu_ld"; then 13993 case $host_cpu in 13994 hppa*64*) 13995 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13996 ;; 13997 ia64*) 13998 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13999 ;; 14000 *) 14001 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14002 ;; 14003 esac 14004 fi 14005 else 14006 # FIXME: insert proper C++ library support 14007 ld_shlibs_CXX=no 14008 fi 14009 ;; 14010 esac 14011 ;; 14012 14013 interix[3-9]*) 14014 hardcode_direct_CXX=no 14015 hardcode_shlibpath_var_CXX=no 14016 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14017 export_dynamic_flag_spec_CXX='$wl-E' 14018 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14019 # Instead, shared libraries are loaded at an image base (0x10000000 by 14020 # default) and relocated if they conflict, which is a slow very memory 14021 # consuming and fragmenting process. To avoid this, we pick a random, 14022 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14023 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14024 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14025 archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14026 ;; 14027 irix5* | irix6*) 14028 case $cc_basename in 14029 CC*) 14030 # SGI C++ 14031 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 14032 14033 # Archives containing C++ object files must be created using 14034 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14035 # necessary to make sure instantiated templates are included 14036 # in the archive. 14037 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14038 ;; 14039 *) 14040 if test yes = "$GXX"; then 14041 if test no = "$with_gnu_ld"; then 14042 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 14043 else 14044 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' 14045 fi 14046 fi 14047 link_all_deplibs_CXX=yes 14048 ;; 14049 esac 14050 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14051 hardcode_libdir_separator_CXX=: 14052 inherit_rpath_CXX=yes 14053 ;; 14054 14055 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14056 case $cc_basename in 14057 KCC*) 14058 # Kuck and Associates, Inc. (KAI) C++ Compiler 14059 14060 # KCC will only create a shared library if the output file 14061 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14062 # to its proper name (with version) after linking. 14063 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 14064 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' 14065 # Commands to make compiler produce verbose output that lists 14066 # what "hidden" libraries, object files and flags are used when 14067 # linking a shared library. 14068 # 14069 # There doesn't appear to be a way to prevent this compiler from 14070 # explicitly linking system object files so we need to strip them 14071 # from the output so that they don't get included in the library 14072 # dependencies. 14073 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14074 14075 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14076 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14077 14078 # Archives containing C++ object files must be created using 14079 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14080 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14081 ;; 14082 icpc* | ecpc* ) 14083 # Intel C++ 14084 with_gnu_ld=yes 14085 # version 8.0 and above of icpc choke on multiply defined symbols 14086 # if we add $predep_objects and $postdep_objects, however 7.1 and 14087 # earlier do not add the objects themselves. 14088 case `$CC -V 2>&1` in 14089 *"Version 7."*) 14090 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14091 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14092 ;; 14093 *) # Version 8.0 or newer 14094 tmp_idyn= 14095 case $host_cpu in 14096 ia64*) tmp_idyn=' -i_dynamic';; 14097 esac 14098 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14099 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14100 ;; 14101 esac 14102 archive_cmds_need_lc_CXX=no 14103 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14104 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14105 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14106 ;; 14107 pgCC* | pgcpp*) 14108 # Portland Group C++ compiler 14109 case `$CC -V` in 14110 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14111 prelink_cmds_CXX='tpldir=Template.dir~ 14112 rm -rf $tpldir~ 14113 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14114 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14115 old_archive_cmds_CXX='tpldir=Template.dir~ 14116 rm -rf $tpldir~ 14117 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14118 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14119 $RANLIB $oldlib' 14120 archive_cmds_CXX='tpldir=Template.dir~ 14121 rm -rf $tpldir~ 14122 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14123 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14124 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14125 rm -rf $tpldir~ 14126 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14127 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14128 ;; 14129 *) # Version 6 and above use weak symbols 14130 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14131 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14132 ;; 14133 esac 14134 14135 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14136 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14137 whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 14138 ;; 14139 cxx*) 14140 # Compaq C++ 14141 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14142 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' 14143 14144 runpath_var=LD_RUN_PATH 14145 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14146 hardcode_libdir_separator_CXX=: 14147 14148 # Commands to make compiler produce verbose output that lists 14149 # what "hidden" libraries, object files and flags are used when 14150 # linking a shared library. 14151 # 14152 # There doesn't appear to be a way to prevent this compiler from 14153 # explicitly linking system object files so we need to strip them 14154 # from the output so that they don't get included in the library 14155 # dependencies. 14156 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 14157 ;; 14158 xl* | mpixl* | bgxl*) 14159 # IBM XL 8.0 on PPC, with GNU ld 14160 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14161 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14162 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14163 if test yes = "$supports_anon_versioning"; then 14164 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14165 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14166 echo "local: *; };" >> $output_objdir/$libname.ver~ 14167 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14168 fi 14169 ;; 14170 *) 14171 case `$CC -V 2>&1 | sed 5q` in 14172 *Sun\ C*) 14173 # Sun C++ 5.9 14174 no_undefined_flag_CXX=' -zdefs' 14175 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14176 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' 14177 hardcode_libdir_flag_spec_CXX='-R$libdir' 14178 whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 14179 compiler_needs_object_CXX=yes 14180 14181 # Not sure whether something based on 14182 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14183 # would be better. 14184 output_verbose_link_cmd='func_echo_all' 14185 14186 # Archives containing C++ object files must be created using 14187 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14188 # necessary to make sure instantiated templates are included 14189 # in the archive. 14190 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14191 ;; 14192 esac 14193 ;; 14194 esac 14195 ;; 14196 14197 lynxos*) 14198 # FIXME: insert proper C++ library support 14199 ld_shlibs_CXX=no 14200 ;; 14201 14202 m88k*) 14203 # FIXME: insert proper C++ library support 14204 ld_shlibs_CXX=no 14205 ;; 14206 14207 mvs*) 14208 case $cc_basename in 14209 cxx*) 14210 # FIXME: insert proper C++ library support 14211 ld_shlibs_CXX=no 14212 ;; 14213 *) 14214 # FIXME: insert proper C++ library support 14215 ld_shlibs_CXX=no 14216 ;; 14217 esac 14218 ;; 14219 14220 netbsd*) 14221 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14222 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14223 wlarc= 14224 hardcode_libdir_flag_spec_CXX='-R$libdir' 14225 hardcode_direct_CXX=yes 14226 hardcode_shlibpath_var_CXX=no 14227 fi 14228 # Workaround some broken pre-1.5 toolchains 14229 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14230 ;; 14231 14232 *nto* | *qnx*) 14233 ld_shlibs_CXX=yes 14234 ;; 14235 14236 openbsd* | bitrig*) 14237 if test -f /usr/libexec/ld.so; then 14238 hardcode_direct_CXX=yes 14239 hardcode_shlibpath_var_CXX=no 14240 hardcode_direct_absolute_CXX=yes 14241 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14242 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14243 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14244 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14245 export_dynamic_flag_spec_CXX='$wl-E' 14246 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14247 fi 14248 output_verbose_link_cmd=func_echo_all 14249 else 14250 ld_shlibs_CXX=no 14251 fi 14252 ;; 14253 14254 osf3* | osf4* | osf5*) 14255 case $cc_basename in 14256 KCC*) 14257 # Kuck and Associates, Inc. (KAI) C++ Compiler 14258 14259 # KCC will only create a shared library if the output file 14260 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14261 # to its proper name (with version) after linking. 14262 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 14263 14264 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14265 hardcode_libdir_separator_CXX=: 14266 14267 # Archives containing C++ object files must be created using 14268 # the KAI C++ compiler. 14269 case $host in 14270 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14271 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14272 esac 14273 ;; 14274 RCC*) 14275 # Rational C++ 2.4.1 14276 # FIXME: insert proper C++ library support 14277 ld_shlibs_CXX=no 14278 ;; 14279 cxx*) 14280 case $host in 14281 osf3*) 14282 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14283 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 14284 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14285 ;; 14286 *) 14287 allow_undefined_flag_CXX=' -expect_unresolved \*' 14288 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 14289 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14290 echo "-hidden">> $lib.exp~ 14291 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ 14292 $RM $lib.exp' 14293 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14294 ;; 14295 esac 14296 14297 hardcode_libdir_separator_CXX=: 14298 14299 # Commands to make compiler produce verbose output that lists 14300 # what "hidden" libraries, object files and flags are used when 14301 # linking a shared library. 14302 # 14303 # There doesn't appear to be a way to prevent this compiler from 14304 # explicitly linking system object files so we need to strip them 14305 # from the output so that they don't get included in the library 14306 # dependencies. 14307 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14308 ;; 14309 *) 14310 if test yes,no = "$GXX,$with_gnu_ld"; then 14311 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14312 case $host in 14313 osf3*) 14314 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 14315 ;; 14316 *) 14317 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 14318 ;; 14319 esac 14320 14321 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14322 hardcode_libdir_separator_CXX=: 14323 14324 # Commands to make compiler produce verbose output that lists 14325 # what "hidden" libraries, object files and flags are used when 14326 # linking a shared library. 14327 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14328 14329 else 14330 # FIXME: insert proper C++ library support 14331 ld_shlibs_CXX=no 14332 fi 14333 ;; 14334 esac 14335 ;; 14336 14337 psos*) 14338 # FIXME: insert proper C++ library support 14339 ld_shlibs_CXX=no 14340 ;; 14341 14342 sunos4*) 14343 case $cc_basename in 14344 CC*) 14345 # Sun C++ 4.x 14346 # FIXME: insert proper C++ library support 14347 ld_shlibs_CXX=no 14348 ;; 14349 lcc*) 14350 # Lucid 14351 # FIXME: insert proper C++ library support 14352 ld_shlibs_CXX=no 14353 ;; 14354 *) 14355 # FIXME: insert proper C++ library support 14356 ld_shlibs_CXX=no 14357 ;; 14358 esac 14359 ;; 14360 14361 solaris*) 14362 case $cc_basename in 14363 CC* | sunCC*) 14364 # Sun C++ 4.2, 5.x and Centerline C++ 14365 archive_cmds_need_lc_CXX=yes 14366 no_undefined_flag_CXX=' -zdefs' 14367 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14368 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14369 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14370 14371 hardcode_libdir_flag_spec_CXX='-R$libdir' 14372 hardcode_shlibpath_var_CXX=no 14373 case $host_os in 14374 solaris2.[0-5] | solaris2.[0-5].*) ;; 14375 *) 14376 # The compiler driver will combine and reorder linker options, 14377 # but understands '-z linker_flag'. 14378 # Supported since Solaris 2.6 (maybe 2.5.1?) 14379 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14380 ;; 14381 esac 14382 link_all_deplibs_CXX=yes 14383 14384 output_verbose_link_cmd='func_echo_all' 14385 14386 # Archives containing C++ object files must be created using 14387 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14388 # necessary to make sure instantiated templates are included 14389 # in the archive. 14390 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14391 ;; 14392 gcx*) 14393 # Green Hills C++ Compiler 14394 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14395 14396 # The C++ compiler must be used to create the archive. 14397 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14398 ;; 14399 *) 14400 # GNU C++ compiler with Solaris linker 14401 if test yes,no = "$GXX,$with_gnu_ld"; then 14402 no_undefined_flag_CXX=' $wl-z ${wl}defs' 14403 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14404 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14405 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14406 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14407 14408 # Commands to make compiler produce verbose output that lists 14409 # what "hidden" libraries, object files and flags are used when 14410 # linking a shared library. 14411 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14412 else 14413 # g++ 2.7 appears to require '-G' NOT '-shared' on this 14414 # platform. 14415 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14416 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14417 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14418 14419 # Commands to make compiler produce verbose output that lists 14420 # what "hidden" libraries, object files and flags are used when 14421 # linking a shared library. 14422 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14423 fi 14424 14425 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 14426 case $host_os in 14427 solaris2.[0-5] | solaris2.[0-5].*) ;; 14428 *) 14429 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14430 ;; 14431 esac 14432 fi 14433 ;; 14434 esac 14435 ;; 14436 14437 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14438 no_undefined_flag_CXX='$wl-z,text' 14439 archive_cmds_need_lc_CXX=no 14440 hardcode_shlibpath_var_CXX=no 14441 runpath_var='LD_RUN_PATH' 14442 14443 case $cc_basename in 14444 CC*) 14445 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14446 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14447 ;; 14448 *) 14449 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14450 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14451 ;; 14452 esac 14453 ;; 14454 14455 sysv5* | sco3.2v5* | sco5v6*) 14456 # Note: We CANNOT use -z defs as we might desire, because we do not 14457 # link with -lc, and that would cause any symbols used from libc to 14458 # always be unresolved, which means just about no library would 14459 # ever link correctly. If we're not using GNU ld we use -z text 14460 # though, which does catch some bad symbols but isn't as heavy-handed 14461 # as -z defs. 14462 no_undefined_flag_CXX='$wl-z,text' 14463 allow_undefined_flag_CXX='$wl-z,nodefs' 14464 archive_cmds_need_lc_CXX=no 14465 hardcode_shlibpath_var_CXX=no 14466 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 14467 hardcode_libdir_separator_CXX=':' 14468 link_all_deplibs_CXX=yes 14469 export_dynamic_flag_spec_CXX='$wl-Bexport' 14470 runpath_var='LD_RUN_PATH' 14471 14472 case $cc_basename in 14473 CC*) 14474 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14475 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14476 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14477 '"$old_archive_cmds_CXX" 14478 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14479 '"$reload_cmds_CXX" 14480 ;; 14481 *) 14482 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14483 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14484 ;; 14485 esac 14486 ;; 14487 14488 tandem*) 14489 case $cc_basename in 14490 NCC*) 14491 # NonStop-UX NCC 3.20 14492 # FIXME: insert proper C++ library support 14493 ld_shlibs_CXX=no 14494 ;; 14495 *) 14496 # FIXME: insert proper C++ library support 14497 ld_shlibs_CXX=no 14498 ;; 14499 esac 14500 ;; 14501 14502 vxworks*) 14503 # FIXME: insert proper C++ library support 14504 ld_shlibs_CXX=no 14505 ;; 14506 14507 *) 14508 # FIXME: insert proper C++ library support 14509 ld_shlibs_CXX=no 14510 ;; 14511 esac 14512 14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14514$as_echo "$ld_shlibs_CXX" >&6; } 14515 test no = "$ld_shlibs_CXX" && can_build_shared=no 14516 14517 GCC_CXX=$GXX 14518 LD_CXX=$LD 14519 14520 ## CAVEAT EMPTOR: 14521 ## There is no encapsulation within the following macros, do not change 14522 ## the running order or otherwise move them around unless you know exactly 14523 ## what you are doing... 14524 # Dependencies to place before and after the object being linked: 14525predep_objects_CXX= 14526postdep_objects_CXX= 14527predeps_CXX= 14528postdeps_CXX= 14529compiler_lib_search_path_CXX= 14530 14531cat > conftest.$ac_ext <<_LT_EOF 14532class Foo 14533{ 14534public: 14535 Foo (void) { a = 0; } 14536private: 14537 int a; 14538}; 14539_LT_EOF 14540 14541 14542_lt_libdeps_save_CFLAGS=$CFLAGS 14543case "$CC $CFLAGS " in #( 14544*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14545*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14546*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14547esac 14548 14549if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14550 (eval $ac_compile) 2>&5 14551 ac_status=$? 14552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14553 test $ac_status = 0; }; then 14554 # Parse the compiler output and extract the necessary 14555 # objects, libraries and library flags. 14556 14557 # Sentinel used to keep track of whether or not we are before 14558 # the conftest object file. 14559 pre_test_object_deps_done=no 14560 14561 for p in `eval "$output_verbose_link_cmd"`; do 14562 case $prev$p in 14563 14564 -L* | -R* | -l*) 14565 # Some compilers place space between "-{L,R}" and the path. 14566 # Remove the space. 14567 if test x-L = "$p" || 14568 test x-R = "$p"; then 14569 prev=$p 14570 continue 14571 fi 14572 14573 # Expand the sysroot to ease extracting the directories later. 14574 if test -z "$prev"; then 14575 case $p in 14576 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14577 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14578 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14579 esac 14580 fi 14581 case $p in 14582 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14583 esac 14584 if test no = "$pre_test_object_deps_done"; then 14585 case $prev in 14586 -L | -R) 14587 # Internal compiler library paths should come after those 14588 # provided the user. The postdeps already come after the 14589 # user supplied libs so there is no need to process them. 14590 if test -z "$compiler_lib_search_path_CXX"; then 14591 compiler_lib_search_path_CXX=$prev$p 14592 else 14593 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 14594 fi 14595 ;; 14596 # The "-l" case would never come before the object being 14597 # linked, so don't bother handling this case. 14598 esac 14599 else 14600 if test -z "$postdeps_CXX"; then 14601 postdeps_CXX=$prev$p 14602 else 14603 postdeps_CXX="${postdeps_CXX} $prev$p" 14604 fi 14605 fi 14606 prev= 14607 ;; 14608 14609 *.lto.$objext) ;; # Ignore GCC LTO objects 14610 *.$objext) 14611 # This assumes that the test object file only shows up 14612 # once in the compiler output. 14613 if test "$p" = "conftest.$objext"; then 14614 pre_test_object_deps_done=yes 14615 continue 14616 fi 14617 14618 if test no = "$pre_test_object_deps_done"; then 14619 if test -z "$predep_objects_CXX"; then 14620 predep_objects_CXX=$p 14621 else 14622 predep_objects_CXX="$predep_objects_CXX $p" 14623 fi 14624 else 14625 if test -z "$postdep_objects_CXX"; then 14626 postdep_objects_CXX=$p 14627 else 14628 postdep_objects_CXX="$postdep_objects_CXX $p" 14629 fi 14630 fi 14631 ;; 14632 14633 *) ;; # Ignore the rest. 14634 14635 esac 14636 done 14637 14638 # Clean up. 14639 rm -f a.out a.exe 14640else 14641 echo "libtool.m4: error: problem compiling CXX test program" 14642fi 14643 14644$RM -f confest.$objext 14645CFLAGS=$_lt_libdeps_save_CFLAGS 14646 14647# PORTME: override above test on systems where it is broken 14648case $host_os in 14649interix[3-9]*) 14650 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14651 # hack all around it, let's just trust "g++" to DTRT. 14652 predep_objects_CXX= 14653 postdep_objects_CXX= 14654 postdeps_CXX= 14655 ;; 14656esac 14657 14658 14659case " $postdeps_CXX " in 14660*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14661esac 14662 compiler_lib_search_dirs_CXX= 14663if test -n "${compiler_lib_search_path_CXX}"; then 14664 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 14665fi 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 14696 14697 lt_prog_compiler_wl_CXX= 14698lt_prog_compiler_pic_CXX= 14699lt_prog_compiler_static_CXX= 14700 14701 14702 # C++ specific cases for pic, static, wl, etc. 14703 if test yes = "$GXX"; then 14704 lt_prog_compiler_wl_CXX='-Wl,' 14705 lt_prog_compiler_static_CXX='-static' 14706 14707 case $host_os in 14708 aix*) 14709 # All AIX code is PIC. 14710 if test ia64 = "$host_cpu"; then 14711 # AIX 5 now supports IA64 processor 14712 lt_prog_compiler_static_CXX='-Bstatic' 14713 fi 14714 lt_prog_compiler_pic_CXX='-fPIC' 14715 ;; 14716 14717 amigaos*) 14718 case $host_cpu in 14719 powerpc) 14720 # see comment about AmigaOS4 .so support 14721 lt_prog_compiler_pic_CXX='-fPIC' 14722 ;; 14723 m68k) 14724 # FIXME: we need at least 68020 code to build shared libraries, but 14725 # adding the '-m68020' flag to GCC prevents building anything better, 14726 # like '-m68040'. 14727 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14728 ;; 14729 esac 14730 ;; 14731 14732 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14733 # PIC is the default for these OSes. 14734 ;; 14735 mingw* | cygwin* | os2* | pw32* | cegcc*) 14736 # This hack is so that the source file can tell whether it is being 14737 # built for inclusion in a dll (and should export symbols for example). 14738 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14739 # (--disable-auto-import) libraries 14740 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14741 case $host_os in 14742 os2*) 14743 lt_prog_compiler_static_CXX='$wl-static' 14744 ;; 14745 esac 14746 ;; 14747 darwin* | rhapsody*) 14748 # PIC is the default on this platform 14749 # Common symbols not allowed in MH_DYLIB files 14750 lt_prog_compiler_pic_CXX='-fno-common' 14751 ;; 14752 *djgpp*) 14753 # DJGPP does not support shared libraries at all 14754 lt_prog_compiler_pic_CXX= 14755 ;; 14756 haiku*) 14757 # PIC is the default for Haiku. 14758 # The "-static" flag exists, but is broken. 14759 lt_prog_compiler_static_CXX= 14760 ;; 14761 interix[3-9]*) 14762 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14763 # Instead, we relocate shared libraries at runtime. 14764 ;; 14765 sysv4*MP*) 14766 if test -d /usr/nec; then 14767 lt_prog_compiler_pic_CXX=-Kconform_pic 14768 fi 14769 ;; 14770 hpux*) 14771 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14772 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14773 # sets the default TLS model and affects inlining. 14774 case $host_cpu in 14775 hppa*64*) 14776 ;; 14777 *) 14778 lt_prog_compiler_pic_CXX='-fPIC' 14779 ;; 14780 esac 14781 ;; 14782 *qnx* | *nto*) 14783 # QNX uses GNU C++, but need to define -shared option too, otherwise 14784 # it will coredump. 14785 lt_prog_compiler_pic_CXX='-fPIC -shared' 14786 ;; 14787 *) 14788 lt_prog_compiler_pic_CXX='-fPIC' 14789 ;; 14790 esac 14791 else 14792 case $host_os in 14793 aix[4-9]*) 14794 # All AIX code is PIC. 14795 if test ia64 = "$host_cpu"; then 14796 # AIX 5 now supports IA64 processor 14797 lt_prog_compiler_static_CXX='-Bstatic' 14798 else 14799 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14800 fi 14801 ;; 14802 chorus*) 14803 case $cc_basename in 14804 cxch68*) 14805 # Green Hills C++ Compiler 14806 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 14807 ;; 14808 esac 14809 ;; 14810 mingw* | cygwin* | os2* | pw32* | cegcc*) 14811 # This hack is so that the source file can tell whether it is being 14812 # built for inclusion in a dll (and should export symbols for example). 14813 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14814 ;; 14815 dgux*) 14816 case $cc_basename in 14817 ec++*) 14818 lt_prog_compiler_pic_CXX='-KPIC' 14819 ;; 14820 ghcx*) 14821 # Green Hills C++ Compiler 14822 lt_prog_compiler_pic_CXX='-pic' 14823 ;; 14824 *) 14825 ;; 14826 esac 14827 ;; 14828 freebsd* | dragonfly*) 14829 # FreeBSD uses GNU C++ 14830 ;; 14831 hpux9* | hpux10* | hpux11*) 14832 case $cc_basename in 14833 CC*) 14834 lt_prog_compiler_wl_CXX='-Wl,' 14835 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14836 if test ia64 != "$host_cpu"; then 14837 lt_prog_compiler_pic_CXX='+Z' 14838 fi 14839 ;; 14840 aCC*) 14841 lt_prog_compiler_wl_CXX='-Wl,' 14842 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14843 case $host_cpu in 14844 hppa*64*|ia64*) 14845 # +Z the default 14846 ;; 14847 *) 14848 lt_prog_compiler_pic_CXX='+Z' 14849 ;; 14850 esac 14851 ;; 14852 *) 14853 ;; 14854 esac 14855 ;; 14856 interix*) 14857 # This is c89, which is MS Visual C++ (no shared libs) 14858 # Anyone wants to do a port? 14859 ;; 14860 irix5* | irix6* | nonstopux*) 14861 case $cc_basename in 14862 CC*) 14863 lt_prog_compiler_wl_CXX='-Wl,' 14864 lt_prog_compiler_static_CXX='-non_shared' 14865 # CC pic flag -KPIC is the default. 14866 ;; 14867 *) 14868 ;; 14869 esac 14870 ;; 14871 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14872 case $cc_basename in 14873 KCC*) 14874 # KAI C++ Compiler 14875 lt_prog_compiler_wl_CXX='--backend -Wl,' 14876 lt_prog_compiler_pic_CXX='-fPIC' 14877 ;; 14878 ecpc* ) 14879 # old Intel C++ for x86_64, which still supported -KPIC. 14880 lt_prog_compiler_wl_CXX='-Wl,' 14881 lt_prog_compiler_pic_CXX='-KPIC' 14882 lt_prog_compiler_static_CXX='-static' 14883 ;; 14884 icpc* ) 14885 # Intel C++, used to be incompatible with GCC. 14886 # ICC 10 doesn't accept -KPIC any more. 14887 lt_prog_compiler_wl_CXX='-Wl,' 14888 lt_prog_compiler_pic_CXX='-fPIC' 14889 lt_prog_compiler_static_CXX='-static' 14890 ;; 14891 pgCC* | pgcpp*) 14892 # Portland Group C++ compiler 14893 lt_prog_compiler_wl_CXX='-Wl,' 14894 lt_prog_compiler_pic_CXX='-fpic' 14895 lt_prog_compiler_static_CXX='-Bstatic' 14896 ;; 14897 cxx*) 14898 # Compaq C++ 14899 # Make sure the PIC flag is empty. It appears that all Alpha 14900 # Linux and Compaq Tru64 Unix objects are PIC. 14901 lt_prog_compiler_pic_CXX= 14902 lt_prog_compiler_static_CXX='-non_shared' 14903 ;; 14904 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14905 # IBM XL 8.0, 9.0 on PPC and BlueGene 14906 lt_prog_compiler_wl_CXX='-Wl,' 14907 lt_prog_compiler_pic_CXX='-qpic' 14908 lt_prog_compiler_static_CXX='-qstaticlink' 14909 ;; 14910 *) 14911 case `$CC -V 2>&1 | sed 5q` in 14912 *Sun\ C*) 14913 # Sun C++ 5.9 14914 lt_prog_compiler_pic_CXX='-KPIC' 14915 lt_prog_compiler_static_CXX='-Bstatic' 14916 lt_prog_compiler_wl_CXX='-Qoption ld ' 14917 ;; 14918 esac 14919 ;; 14920 esac 14921 ;; 14922 lynxos*) 14923 ;; 14924 m88k*) 14925 ;; 14926 mvs*) 14927 case $cc_basename in 14928 cxx*) 14929 lt_prog_compiler_pic_CXX='-W c,exportall' 14930 ;; 14931 *) 14932 ;; 14933 esac 14934 ;; 14935 netbsd*) 14936 ;; 14937 *qnx* | *nto*) 14938 # QNX uses GNU C++, but need to define -shared option too, otherwise 14939 # it will coredump. 14940 lt_prog_compiler_pic_CXX='-fPIC -shared' 14941 ;; 14942 osf3* | osf4* | osf5*) 14943 case $cc_basename in 14944 KCC*) 14945 lt_prog_compiler_wl_CXX='--backend -Wl,' 14946 ;; 14947 RCC*) 14948 # Rational C++ 2.4.1 14949 lt_prog_compiler_pic_CXX='-pic' 14950 ;; 14951 cxx*) 14952 # Digital/Compaq C++ 14953 lt_prog_compiler_wl_CXX='-Wl,' 14954 # Make sure the PIC flag is empty. It appears that all Alpha 14955 # Linux and Compaq Tru64 Unix objects are PIC. 14956 lt_prog_compiler_pic_CXX= 14957 lt_prog_compiler_static_CXX='-non_shared' 14958 ;; 14959 *) 14960 ;; 14961 esac 14962 ;; 14963 psos*) 14964 ;; 14965 solaris*) 14966 case $cc_basename in 14967 CC* | sunCC*) 14968 # Sun C++ 4.2, 5.x and Centerline C++ 14969 lt_prog_compiler_pic_CXX='-KPIC' 14970 lt_prog_compiler_static_CXX='-Bstatic' 14971 lt_prog_compiler_wl_CXX='-Qoption ld ' 14972 ;; 14973 gcx*) 14974 # Green Hills C++ Compiler 14975 lt_prog_compiler_pic_CXX='-PIC' 14976 ;; 14977 *) 14978 ;; 14979 esac 14980 ;; 14981 sunos4*) 14982 case $cc_basename in 14983 CC*) 14984 # Sun C++ 4.x 14985 lt_prog_compiler_pic_CXX='-pic' 14986 lt_prog_compiler_static_CXX='-Bstatic' 14987 ;; 14988 lcc*) 14989 # Lucid 14990 lt_prog_compiler_pic_CXX='-pic' 14991 ;; 14992 *) 14993 ;; 14994 esac 14995 ;; 14996 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14997 case $cc_basename in 14998 CC*) 14999 lt_prog_compiler_wl_CXX='-Wl,' 15000 lt_prog_compiler_pic_CXX='-KPIC' 15001 lt_prog_compiler_static_CXX='-Bstatic' 15002 ;; 15003 esac 15004 ;; 15005 tandem*) 15006 case $cc_basename in 15007 NCC*) 15008 # NonStop-UX NCC 3.20 15009 lt_prog_compiler_pic_CXX='-KPIC' 15010 ;; 15011 *) 15012 ;; 15013 esac 15014 ;; 15015 vxworks*) 15016 ;; 15017 *) 15018 lt_prog_compiler_can_build_shared_CXX=no 15019 ;; 15020 esac 15021 fi 15022 15023case $host_os in 15024 # For platforms that do not support PIC, -DPIC is meaningless: 15025 *djgpp*) 15026 lt_prog_compiler_pic_CXX= 15027 ;; 15028 *) 15029 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15030 ;; 15031esac 15032 15033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15034$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15035if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15036 $as_echo_n "(cached) " >&6 15037else 15038 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15039fi 15040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15041$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15042lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15043 15044# 15045# Check to make sure the PIC flag actually works. 15046# 15047if test -n "$lt_prog_compiler_pic_CXX"; then 15048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15049$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15050if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15051 $as_echo_n "(cached) " >&6 15052else 15053 lt_cv_prog_compiler_pic_works_CXX=no 15054 ac_outfile=conftest.$ac_objext 15055 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15056 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15057 # Insert the option either (1) after the last *FLAGS variable, or 15058 # (2) before a word containing "conftest.", or (3) at the end. 15059 # Note that $ac_compile itself does not contain backslashes and begins 15060 # with a dollar sign (not a hyphen), so the echo should work correctly. 15061 # The option is referenced via a variable to avoid confusing sed. 15062 lt_compile=`echo "$ac_compile" | $SED \ 15063 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15065 -e 's:$: $lt_compiler_flag:'` 15066 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15067 (eval "$lt_compile" 2>conftest.err) 15068 ac_status=$? 15069 cat conftest.err >&5 15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15071 if (exit $ac_status) && test -s "$ac_outfile"; then 15072 # The compiler can only warn and ignore the option if not recognized 15073 # So say no if there are warnings other than the usual output. 15074 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15075 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15076 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15077 lt_cv_prog_compiler_pic_works_CXX=yes 15078 fi 15079 fi 15080 $RM conftest* 15081 15082fi 15083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15084$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15085 15086if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15087 case $lt_prog_compiler_pic_CXX in 15088 "" | " "*) ;; 15089 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15090 esac 15091else 15092 lt_prog_compiler_pic_CXX= 15093 lt_prog_compiler_can_build_shared_CXX=no 15094fi 15095 15096fi 15097 15098 15099 15100 15101 15102# 15103# Check to make sure the static flag actually works. 15104# 15105wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15107$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15108if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15109 $as_echo_n "(cached) " >&6 15110else 15111 lt_cv_prog_compiler_static_works_CXX=no 15112 save_LDFLAGS=$LDFLAGS 15113 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15114 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15115 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15116 # The linker can only warn and ignore the option if not recognized 15117 # So say no if there are warnings 15118 if test -s conftest.err; then 15119 # Append any errors to the config.log. 15120 cat conftest.err 1>&5 15121 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15122 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15123 if diff conftest.exp conftest.er2 >/dev/null; then 15124 lt_cv_prog_compiler_static_works_CXX=yes 15125 fi 15126 else 15127 lt_cv_prog_compiler_static_works_CXX=yes 15128 fi 15129 fi 15130 $RM -r conftest* 15131 LDFLAGS=$save_LDFLAGS 15132 15133fi 15134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15135$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15136 15137if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15138 : 15139else 15140 lt_prog_compiler_static_CXX= 15141fi 15142 15143 15144 15145 15146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15147$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15148if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15149 $as_echo_n "(cached) " >&6 15150else 15151 lt_cv_prog_compiler_c_o_CXX=no 15152 $RM -r conftest 2>/dev/null 15153 mkdir conftest 15154 cd conftest 15155 mkdir out 15156 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15157 15158 lt_compiler_flag="-o out/conftest2.$ac_objext" 15159 # Insert the option either (1) after the last *FLAGS variable, or 15160 # (2) before a word containing "conftest.", or (3) at the end. 15161 # Note that $ac_compile itself does not contain backslashes and begins 15162 # with a dollar sign (not a hyphen), so the echo should work correctly. 15163 lt_compile=`echo "$ac_compile" | $SED \ 15164 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15165 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15166 -e 's:$: $lt_compiler_flag:'` 15167 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15168 (eval "$lt_compile" 2>out/conftest.err) 15169 ac_status=$? 15170 cat out/conftest.err >&5 15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15172 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15173 then 15174 # The compiler can only warn and ignore the option if not recognized 15175 # So say no if there are warnings 15176 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15177 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15178 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15179 lt_cv_prog_compiler_c_o_CXX=yes 15180 fi 15181 fi 15182 chmod u+w . 2>&5 15183 $RM conftest* 15184 # SGI C++ compiler will create directory out/ii_files/ for 15185 # template instantiation 15186 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15187 $RM out/* && rmdir out 15188 cd .. 15189 $RM -r conftest 15190 $RM conftest* 15191 15192fi 15193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15194$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15195 15196 15197 15198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15199$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15200if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15201 $as_echo_n "(cached) " >&6 15202else 15203 lt_cv_prog_compiler_c_o_CXX=no 15204 $RM -r conftest 2>/dev/null 15205 mkdir conftest 15206 cd conftest 15207 mkdir out 15208 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15209 15210 lt_compiler_flag="-o out/conftest2.$ac_objext" 15211 # Insert the option either (1) after the last *FLAGS variable, or 15212 # (2) before a word containing "conftest.", or (3) at the end. 15213 # Note that $ac_compile itself does not contain backslashes and begins 15214 # with a dollar sign (not a hyphen), so the echo should work correctly. 15215 lt_compile=`echo "$ac_compile" | $SED \ 15216 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15217 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15218 -e 's:$: $lt_compiler_flag:'` 15219 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15220 (eval "$lt_compile" 2>out/conftest.err) 15221 ac_status=$? 15222 cat out/conftest.err >&5 15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15224 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15225 then 15226 # The compiler can only warn and ignore the option if not recognized 15227 # So say no if there are warnings 15228 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15229 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15230 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15231 lt_cv_prog_compiler_c_o_CXX=yes 15232 fi 15233 fi 15234 chmod u+w . 2>&5 15235 $RM conftest* 15236 # SGI C++ compiler will create directory out/ii_files/ for 15237 # template instantiation 15238 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15239 $RM out/* && rmdir out 15240 cd .. 15241 $RM -r conftest 15242 $RM conftest* 15243 15244fi 15245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15246$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15247 15248 15249 15250 15251hard_links=nottested 15252if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15253 # do not overwrite the value of need_locks provided by the user 15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15255$as_echo_n "checking if we can lock with hard links... " >&6; } 15256 hard_links=yes 15257 $RM conftest* 15258 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15259 touch conftest.a 15260 ln conftest.a conftest.b 2>&5 || hard_links=no 15261 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15263$as_echo "$hard_links" >&6; } 15264 if test no = "$hard_links"; then 15265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15266$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15267 need_locks=warn 15268 fi 15269else 15270 need_locks=no 15271fi 15272 15273 15274 15275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15276$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15277 15278 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15279 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15280 case $host_os in 15281 aix[4-9]*) 15282 # If we're using GNU nm, then we don't want the "-C" option. 15283 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15284 # Without the "-l" option, or with the "-B" option, AIX nm treats 15285 # weak defined symbols like other global defined symbols, whereas 15286 # GNU nm marks them as "W". 15287 # While the 'weak' keyword is ignored in the Export File, we need 15288 # it in the Import File for the 'aix-soname' feature, so we have 15289 # to replace the "-B" option with "-P" for AIX nm. 15290 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15291 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 15292 else 15293 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 15294 fi 15295 ;; 15296 pw32*) 15297 export_symbols_cmds_CXX=$ltdll_cmds 15298 ;; 15299 cygwin* | mingw* | cegcc*) 15300 case $cc_basename in 15301 cl*) 15302 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15303 ;; 15304 *) 15305 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 15306 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15307 ;; 15308 esac 15309 ;; 15310 *) 15311 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15312 ;; 15313 esac 15314 15315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15316$as_echo "$ld_shlibs_CXX" >&6; } 15317test no = "$ld_shlibs_CXX" && can_build_shared=no 15318 15319with_gnu_ld_CXX=$with_gnu_ld 15320 15321 15322 15323 15324 15325 15326# 15327# Do we need to explicitly link libc? 15328# 15329case "x$archive_cmds_need_lc_CXX" in 15330x|xyes) 15331 # Assume -lc should be added 15332 archive_cmds_need_lc_CXX=yes 15333 15334 if test yes,yes = "$GCC,$enable_shared"; then 15335 case $archive_cmds_CXX in 15336 *'~'*) 15337 # FIXME: we may have to deal with multi-command sequences. 15338 ;; 15339 '$CC '*) 15340 # Test whether the compiler implicitly links with -lc since on some 15341 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15342 # to ld, don't add -lc before -lgcc. 15343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15344$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15345if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15346 $as_echo_n "(cached) " >&6 15347else 15348 $RM conftest* 15349 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15350 15351 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15352 (eval $ac_compile) 2>&5 15353 ac_status=$? 15354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15355 test $ac_status = 0; } 2>conftest.err; then 15356 soname=conftest 15357 lib=conftest 15358 libobjs=conftest.$ac_objext 15359 deplibs= 15360 wl=$lt_prog_compiler_wl_CXX 15361 pic_flag=$lt_prog_compiler_pic_CXX 15362 compiler_flags=-v 15363 linker_flags=-v 15364 verstring= 15365 output_objdir=. 15366 libname=conftest 15367 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15368 allow_undefined_flag_CXX= 15369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15370 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15371 ac_status=$? 15372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15373 test $ac_status = 0; } 15374 then 15375 lt_cv_archive_cmds_need_lc_CXX=no 15376 else 15377 lt_cv_archive_cmds_need_lc_CXX=yes 15378 fi 15379 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15380 else 15381 cat conftest.err 1>&5 15382 fi 15383 $RM conftest* 15384 15385fi 15386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15387$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15388 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15389 ;; 15390 esac 15391 fi 15392 ;; 15393esac 15394 15395 15396 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15457$as_echo_n "checking dynamic linker characteristics... " >&6; } 15458 15459library_names_spec= 15460libname_spec='lib$name' 15461soname_spec= 15462shrext_cmds=.so 15463postinstall_cmds= 15464postuninstall_cmds= 15465finish_cmds= 15466finish_eval= 15467shlibpath_var= 15468shlibpath_overrides_runpath=unknown 15469version_type=none 15470dynamic_linker="$host_os ld.so" 15471sys_lib_dlsearch_path_spec="/lib /usr/lib" 15472need_lib_prefix=unknown 15473hardcode_into_libs=no 15474 15475# when you set need_version to no, make sure it does not cause -set_version 15476# flags to be left without arguments 15477need_version=unknown 15478 15479 15480 15481case $host_os in 15482aix3*) 15483 version_type=linux # correct to gnu/linux during the next big refactor 15484 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15485 shlibpath_var=LIBPATH 15486 15487 # AIX 3 has no versioning support, so we append a major version to the name. 15488 soname_spec='$libname$release$shared_ext$major' 15489 ;; 15490 15491aix[4-9]*) 15492 version_type=linux # correct to gnu/linux during the next big refactor 15493 need_lib_prefix=no 15494 need_version=no 15495 hardcode_into_libs=yes 15496 if test ia64 = "$host_cpu"; then 15497 # AIX 5 supports IA64 15498 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15499 shlibpath_var=LD_LIBRARY_PATH 15500 else 15501 # With GCC up to 2.95.x, collect2 would create an import file 15502 # for dependence libraries. The import file would start with 15503 # the line '#! .'. This would cause the generated library to 15504 # depend on '.', always an invalid library. This was fixed in 15505 # development snapshots of GCC prior to 3.0. 15506 case $host_os in 15507 aix4 | aix4.[01] | aix4.[01].*) 15508 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15509 echo ' yes ' 15510 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15511 : 15512 else 15513 can_build_shared=no 15514 fi 15515 ;; 15516 esac 15517 # Using Import Files as archive members, it is possible to support 15518 # filename-based versioning of shared library archives on AIX. While 15519 # this would work for both with and without runtime linking, it will 15520 # prevent static linking of such archives. So we do filename-based 15521 # shared library versioning with .so extension only, which is used 15522 # when both runtime linking and shared linking is enabled. 15523 # Unfortunately, runtime linking may impact performance, so we do 15524 # not want this to be the default eventually. Also, we use the 15525 # versioned .so libs for executables only if there is the -brtl 15526 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15527 # To allow for filename-based versioning support, we need to create 15528 # libNAME.so.V as an archive file, containing: 15529 # *) an Import File, referring to the versioned filename of the 15530 # archive as well as the shared archive member, telling the 15531 # bitwidth (32 or 64) of that shared object, and providing the 15532 # list of exported symbols of that shared object, eventually 15533 # decorated with the 'weak' keyword 15534 # *) the shared object with the F_LOADONLY flag set, to really avoid 15535 # it being seen by the linker. 15536 # At run time we better use the real file rather than another symlink, 15537 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15538 15539 case $with_aix_soname,$aix_use_runtimelinking in 15540 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15541 # soname into executable. Probably we can add versioning support to 15542 # collect2, so additional links can be useful in future. 15543 aix,yes) # traditional libtool 15544 dynamic_linker='AIX unversionable lib.so' 15545 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15546 # instead of lib<name>.a to let people know that these are not 15547 # typical AIX shared libraries. 15548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15549 ;; 15550 aix,no) # traditional AIX only 15551 dynamic_linker='AIX lib.a(lib.so.V)' 15552 # We preserve .a as extension for shared libraries through AIX4.2 15553 # and later when we are not doing run time linking. 15554 library_names_spec='$libname$release.a $libname.a' 15555 soname_spec='$libname$release$shared_ext$major' 15556 ;; 15557 svr4,*) # full svr4 only 15558 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15559 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15560 # We do not specify a path in Import Files, so LIBPATH fires. 15561 shlibpath_overrides_runpath=yes 15562 ;; 15563 *,yes) # both, prefer svr4 15564 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15565 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15566 # unpreferred sharedlib libNAME.a needs extra handling 15567 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"' 15568 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"' 15569 # We do not specify a path in Import Files, so LIBPATH fires. 15570 shlibpath_overrides_runpath=yes 15571 ;; 15572 *,no) # both, prefer aix 15573 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15574 library_names_spec='$libname$release.a $libname.a' 15575 soname_spec='$libname$release$shared_ext$major' 15576 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15577 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)' 15578 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"' 15579 ;; 15580 esac 15581 shlibpath_var=LIBPATH 15582 fi 15583 ;; 15584 15585amigaos*) 15586 case $host_cpu in 15587 powerpc) 15588 # Since July 2007 AmigaOS4 officially supports .so libraries. 15589 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15590 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15591 ;; 15592 m68k) 15593 library_names_spec='$libname.ixlibrary $libname.a' 15594 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15595 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' 15596 ;; 15597 esac 15598 ;; 15599 15600beos*) 15601 library_names_spec='$libname$shared_ext' 15602 dynamic_linker="$host_os ld.so" 15603 shlibpath_var=LIBRARY_PATH 15604 ;; 15605 15606bsdi[45]*) 15607 version_type=linux # correct to gnu/linux during the next big refactor 15608 need_version=no 15609 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15610 soname_spec='$libname$release$shared_ext$major' 15611 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15612 shlibpath_var=LD_LIBRARY_PATH 15613 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15614 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15615 # the default ld.so.conf also contains /usr/contrib/lib and 15616 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15617 # libtool to hard-code these into programs 15618 ;; 15619 15620cygwin* | mingw* | pw32* | cegcc*) 15621 version_type=windows 15622 shrext_cmds=.dll 15623 need_version=no 15624 need_lib_prefix=no 15625 15626 case $GCC,$cc_basename in 15627 yes,*) 15628 # gcc 15629 library_names_spec='$libname.dll.a' 15630 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15631 postinstall_cmds='base_file=`basename \$file`~ 15632 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15633 dldir=$destdir/`dirname \$dlpath`~ 15634 test -d \$dldir || mkdir -p \$dldir~ 15635 $install_prog $dir/$dlname \$dldir/$dlname~ 15636 chmod a+x \$dldir/$dlname~ 15637 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15638 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15639 fi' 15640 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15641 dlpath=$dir/\$dldll~ 15642 $RM \$dlpath' 15643 shlibpath_overrides_runpath=yes 15644 15645 case $host_os in 15646 cygwin*) 15647 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15648 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15649 15650 ;; 15651 mingw* | cegcc*) 15652 # MinGW DLLs use traditional 'lib' prefix 15653 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15654 ;; 15655 pw32*) 15656 # pw32 DLLs use 'pw' prefix rather than 'lib' 15657 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15658 ;; 15659 esac 15660 dynamic_linker='Win32 ld.exe' 15661 ;; 15662 15663 *,cl*) 15664 # Native MSVC 15665 libname_spec='$name' 15666 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15667 library_names_spec='$libname.dll.lib' 15668 15669 case $build_os in 15670 mingw*) 15671 sys_lib_search_path_spec= 15672 lt_save_ifs=$IFS 15673 IFS=';' 15674 for lt_path in $LIB 15675 do 15676 IFS=$lt_save_ifs 15677 # Let DOS variable expansion print the short 8.3 style file name. 15678 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15679 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15680 done 15681 IFS=$lt_save_ifs 15682 # Convert to MSYS style. 15683 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15684 ;; 15685 cygwin*) 15686 # Convert to unix form, then to dos form, then back to unix form 15687 # but this time dos style (no spaces!) so that the unix form looks 15688 # like /cygdrive/c/PROGRA~1:/cygdr... 15689 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15690 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15691 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15692 ;; 15693 *) 15694 sys_lib_search_path_spec=$LIB 15695 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15696 # It is most probably a Windows format PATH. 15697 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15698 else 15699 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15700 fi 15701 # FIXME: find the short name or the path components, as spaces are 15702 # common. (e.g. "Program Files" -> "PROGRA~1") 15703 ;; 15704 esac 15705 15706 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15707 postinstall_cmds='base_file=`basename \$file`~ 15708 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15709 dldir=$destdir/`dirname \$dlpath`~ 15710 test -d \$dldir || mkdir -p \$dldir~ 15711 $install_prog $dir/$dlname \$dldir/$dlname' 15712 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15713 dlpath=$dir/\$dldll~ 15714 $RM \$dlpath' 15715 shlibpath_overrides_runpath=yes 15716 dynamic_linker='Win32 link.exe' 15717 ;; 15718 15719 *) 15720 # Assume MSVC wrapper 15721 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 15722 dynamic_linker='Win32 ld.exe' 15723 ;; 15724 esac 15725 # FIXME: first we should search . and the directory the executable is in 15726 shlibpath_var=PATH 15727 ;; 15728 15729darwin* | rhapsody*) 15730 dynamic_linker="$host_os dyld" 15731 version_type=darwin 15732 need_lib_prefix=no 15733 need_version=no 15734 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 15735 soname_spec='$libname$release$major$shared_ext' 15736 shlibpath_overrides_runpath=yes 15737 shlibpath_var=DYLD_LIBRARY_PATH 15738 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15739 15740 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15741 ;; 15742 15743dgux*) 15744 version_type=linux # correct to gnu/linux during the next big refactor 15745 need_lib_prefix=no 15746 need_version=no 15747 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15748 soname_spec='$libname$release$shared_ext$major' 15749 shlibpath_var=LD_LIBRARY_PATH 15750 ;; 15751 15752freebsd* | dragonfly*) 15753 # DragonFly does not have aout. When/if they implement a new 15754 # versioning mechanism, adjust this. 15755 if test -x /usr/bin/objformat; then 15756 objformat=`/usr/bin/objformat` 15757 else 15758 case $host_os in 15759 freebsd[23].*) objformat=aout ;; 15760 *) objformat=elf ;; 15761 esac 15762 fi 15763 version_type=freebsd-$objformat 15764 case $version_type in 15765 freebsd-elf*) 15766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15767 soname_spec='$libname$release$shared_ext$major' 15768 need_version=no 15769 need_lib_prefix=no 15770 ;; 15771 freebsd-*) 15772 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15773 need_version=yes 15774 ;; 15775 esac 15776 shlibpath_var=LD_LIBRARY_PATH 15777 case $host_os in 15778 freebsd2.*) 15779 shlibpath_overrides_runpath=yes 15780 ;; 15781 freebsd3.[01]* | freebsdelf3.[01]*) 15782 shlibpath_overrides_runpath=yes 15783 hardcode_into_libs=yes 15784 ;; 15785 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15786 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15787 shlibpath_overrides_runpath=no 15788 hardcode_into_libs=yes 15789 ;; 15790 *) # from 4.6 on, and DragonFly 15791 shlibpath_overrides_runpath=yes 15792 hardcode_into_libs=yes 15793 ;; 15794 esac 15795 ;; 15796 15797haiku*) 15798 version_type=linux # correct to gnu/linux during the next big refactor 15799 need_lib_prefix=no 15800 need_version=no 15801 dynamic_linker="$host_os runtime_loader" 15802 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15803 soname_spec='$libname$release$shared_ext$major' 15804 shlibpath_var=LIBRARY_PATH 15805 shlibpath_overrides_runpath=no 15806 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15807 hardcode_into_libs=yes 15808 ;; 15809 15810hpux9* | hpux10* | hpux11*) 15811 # Give a soname corresponding to the major version so that dld.sl refuses to 15812 # link against other versions. 15813 version_type=sunos 15814 need_lib_prefix=no 15815 need_version=no 15816 case $host_cpu in 15817 ia64*) 15818 shrext_cmds='.so' 15819 hardcode_into_libs=yes 15820 dynamic_linker="$host_os dld.so" 15821 shlibpath_var=LD_LIBRARY_PATH 15822 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15824 soname_spec='$libname$release$shared_ext$major' 15825 if test 32 = "$HPUX_IA64_MODE"; then 15826 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15827 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 15828 else 15829 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15830 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 15831 fi 15832 ;; 15833 hppa*64*) 15834 shrext_cmds='.sl' 15835 hardcode_into_libs=yes 15836 dynamic_linker="$host_os dld.sl" 15837 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15838 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15839 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15840 soname_spec='$libname$release$shared_ext$major' 15841 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15842 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15843 ;; 15844 *) 15845 shrext_cmds='.sl' 15846 dynamic_linker="$host_os dld.sl" 15847 shlibpath_var=SHLIB_PATH 15848 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15849 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15850 soname_spec='$libname$release$shared_ext$major' 15851 ;; 15852 esac 15853 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15854 postinstall_cmds='chmod 555 $lib' 15855 # or fails outright, so override atomically: 15856 install_override_mode=555 15857 ;; 15858 15859interix[3-9]*) 15860 version_type=linux # correct to gnu/linux during the next big refactor 15861 need_lib_prefix=no 15862 need_version=no 15863 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15864 soname_spec='$libname$release$shared_ext$major' 15865 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15866 shlibpath_var=LD_LIBRARY_PATH 15867 shlibpath_overrides_runpath=no 15868 hardcode_into_libs=yes 15869 ;; 15870 15871irix5* | irix6* | nonstopux*) 15872 case $host_os in 15873 nonstopux*) version_type=nonstopux ;; 15874 *) 15875 if test yes = "$lt_cv_prog_gnu_ld"; then 15876 version_type=linux # correct to gnu/linux during the next big refactor 15877 else 15878 version_type=irix 15879 fi ;; 15880 esac 15881 need_lib_prefix=no 15882 need_version=no 15883 soname_spec='$libname$release$shared_ext$major' 15884 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 15885 case $host_os in 15886 irix5* | nonstopux*) 15887 libsuff= shlibsuff= 15888 ;; 15889 *) 15890 case $LD in # libtool.m4 will add one of these switches to LD 15891 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15892 libsuff= shlibsuff= libmagic=32-bit;; 15893 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15894 libsuff=32 shlibsuff=N32 libmagic=N32;; 15895 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15896 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15897 *) libsuff= shlibsuff= libmagic=never-match;; 15898 esac 15899 ;; 15900 esac 15901 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15902 shlibpath_overrides_runpath=no 15903 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 15904 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 15905 hardcode_into_libs=yes 15906 ;; 15907 15908# No shared lib support for Linux oldld, aout, or coff. 15909linux*oldld* | linux*aout* | linux*coff*) 15910 dynamic_linker=no 15911 ;; 15912 15913linux*android*) 15914 version_type=none # Android doesn't support versioned libraries. 15915 need_lib_prefix=no 15916 need_version=no 15917 library_names_spec='$libname$release$shared_ext' 15918 soname_spec='$libname$release$shared_ext' 15919 finish_cmds= 15920 shlibpath_var=LD_LIBRARY_PATH 15921 shlibpath_overrides_runpath=yes 15922 15923 # This implies no fast_install, which is unacceptable. 15924 # Some rework will be needed to allow for fast_install 15925 # before this can be enabled. 15926 hardcode_into_libs=yes 15927 15928 dynamic_linker='Android linker' 15929 # Don't embed -rpath directories since the linker doesn't support them. 15930 hardcode_libdir_flag_spec_CXX='-L$libdir' 15931 ;; 15932 15933# This must be glibc/ELF. 15934linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15935 version_type=linux # correct to gnu/linux during the next big refactor 15936 need_lib_prefix=no 15937 need_version=no 15938 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15939 soname_spec='$libname$release$shared_ext$major' 15940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15941 shlibpath_var=LD_LIBRARY_PATH 15942 shlibpath_overrides_runpath=no 15943 15944 # Some binutils ld are patched to set DT_RUNPATH 15945 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15946 $as_echo_n "(cached) " >&6 15947else 15948 lt_cv_shlibpath_overrides_runpath=no 15949 save_LDFLAGS=$LDFLAGS 15950 save_libdir=$libdir 15951 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15952 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15954/* end confdefs.h. */ 15955 15956int 15957main () 15958{ 15959 15960 ; 15961 return 0; 15962} 15963_ACEOF 15964if ac_fn_cxx_try_link "$LINENO"; then : 15965 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15966 lt_cv_shlibpath_overrides_runpath=yes 15967fi 15968fi 15969rm -f core conftest.err conftest.$ac_objext \ 15970 conftest$ac_exeext conftest.$ac_ext 15971 LDFLAGS=$save_LDFLAGS 15972 libdir=$save_libdir 15973 15974fi 15975 15976 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15977 15978 # This implies no fast_install, which is unacceptable. 15979 # Some rework will be needed to allow for fast_install 15980 # before this can be enabled. 15981 hardcode_into_libs=yes 15982 15983 # Add ABI-specific directories to the system library path. 15984 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 15985 15986 # Ideally, we could use ldconfig to report *all* directores which are 15987 # searched for libraries, however this is still not possible. Aside from not 15988 # being certain /sbin/ldconfig is available, command 15989 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 15990 # even though it is searched at run-time. Try to do the best guess by 15991 # appending ld.so.conf contents (and includes) to the search path. 15992 if test -f /etc/ld.so.conf; then 15993 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' ' '` 15994 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 15995 fi 15996 15997 # We used to test for /lib/ld.so.1 and disable shared libraries on 15998 # powerpc, because MkLinux only supported shared libraries with the 15999 # GNU dynamic linker. Since this was broken with cross compilers, 16000 # most powerpc-linux boxes support dynamic linking these days and 16001 # people can always --disable-shared, the test was removed, and we 16002 # assume the GNU/Linux dynamic linker is in use. 16003 dynamic_linker='GNU/Linux ld.so' 16004 ;; 16005 16006netbsd*) 16007 version_type=sunos 16008 need_lib_prefix=no 16009 need_version=no 16010 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16011 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16012 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16013 dynamic_linker='NetBSD (a.out) ld.so' 16014 else 16015 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16016 soname_spec='$libname$release$shared_ext$major' 16017 dynamic_linker='NetBSD ld.elf_so' 16018 fi 16019 shlibpath_var=LD_LIBRARY_PATH 16020 shlibpath_overrides_runpath=yes 16021 hardcode_into_libs=yes 16022 ;; 16023 16024newsos6) 16025 version_type=linux # correct to gnu/linux during the next big refactor 16026 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16027 shlibpath_var=LD_LIBRARY_PATH 16028 shlibpath_overrides_runpath=yes 16029 ;; 16030 16031*nto* | *qnx*) 16032 version_type=qnx 16033 need_lib_prefix=no 16034 need_version=no 16035 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16036 soname_spec='$libname$release$shared_ext$major' 16037 shlibpath_var=LD_LIBRARY_PATH 16038 shlibpath_overrides_runpath=no 16039 hardcode_into_libs=yes 16040 dynamic_linker='ldqnx.so' 16041 ;; 16042 16043openbsd* | bitrig*) 16044 version_type=sunos 16045 sys_lib_dlsearch_path_spec=/usr/lib 16046 need_lib_prefix=no 16047 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16048 need_version=no 16049 else 16050 need_version=yes 16051 fi 16052 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16054 shlibpath_var=LD_LIBRARY_PATH 16055 shlibpath_overrides_runpath=yes 16056 ;; 16057 16058os2*) 16059 libname_spec='$name' 16060 version_type=windows 16061 shrext_cmds=.dll 16062 need_version=no 16063 need_lib_prefix=no 16064 # OS/2 can only load a DLL with a base name of 8 characters or less. 16065 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16066 v=$($ECHO $release$versuffix | tr -d .-); 16067 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16068 $ECHO $n$v`$shared_ext' 16069 library_names_spec='${libname}_dll.$libext' 16070 dynamic_linker='OS/2 ld.exe' 16071 shlibpath_var=BEGINLIBPATH 16072 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16073 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16074 postinstall_cmds='base_file=`basename \$file`~ 16075 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16076 dldir=$destdir/`dirname \$dlpath`~ 16077 test -d \$dldir || mkdir -p \$dldir~ 16078 $install_prog $dir/$dlname \$dldir/$dlname~ 16079 chmod a+x \$dldir/$dlname~ 16080 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16081 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16082 fi' 16083 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16084 dlpath=$dir/\$dldll~ 16085 $RM \$dlpath' 16086 ;; 16087 16088osf3* | osf4* | osf5*) 16089 version_type=osf 16090 need_lib_prefix=no 16091 need_version=no 16092 soname_spec='$libname$release$shared_ext$major' 16093 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16094 shlibpath_var=LD_LIBRARY_PATH 16095 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16096 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16097 ;; 16098 16099rdos*) 16100 dynamic_linker=no 16101 ;; 16102 16103solaris*) 16104 version_type=linux # correct to gnu/linux during the next big refactor 16105 need_lib_prefix=no 16106 need_version=no 16107 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16108 soname_spec='$libname$release$shared_ext$major' 16109 shlibpath_var=LD_LIBRARY_PATH 16110 shlibpath_overrides_runpath=yes 16111 hardcode_into_libs=yes 16112 # ldd complains unless libraries are executable 16113 postinstall_cmds='chmod +x $lib' 16114 ;; 16115 16116sunos4*) 16117 version_type=sunos 16118 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16119 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16120 shlibpath_var=LD_LIBRARY_PATH 16121 shlibpath_overrides_runpath=yes 16122 if test yes = "$with_gnu_ld"; then 16123 need_lib_prefix=no 16124 fi 16125 need_version=yes 16126 ;; 16127 16128sysv4 | sysv4.3*) 16129 version_type=linux # correct to gnu/linux during the next big refactor 16130 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16131 soname_spec='$libname$release$shared_ext$major' 16132 shlibpath_var=LD_LIBRARY_PATH 16133 case $host_vendor in 16134 sni) 16135 shlibpath_overrides_runpath=no 16136 need_lib_prefix=no 16137 runpath_var=LD_RUN_PATH 16138 ;; 16139 siemens) 16140 need_lib_prefix=no 16141 ;; 16142 motorola) 16143 need_lib_prefix=no 16144 need_version=no 16145 shlibpath_overrides_runpath=no 16146 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16147 ;; 16148 esac 16149 ;; 16150 16151sysv4*MP*) 16152 if test -d /usr/nec; then 16153 version_type=linux # correct to gnu/linux during the next big refactor 16154 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16155 soname_spec='$libname$shared_ext.$major' 16156 shlibpath_var=LD_LIBRARY_PATH 16157 fi 16158 ;; 16159 16160sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16161 version_type=sco 16162 need_lib_prefix=no 16163 need_version=no 16164 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16165 soname_spec='$libname$release$shared_ext$major' 16166 shlibpath_var=LD_LIBRARY_PATH 16167 shlibpath_overrides_runpath=yes 16168 hardcode_into_libs=yes 16169 if test yes = "$with_gnu_ld"; then 16170 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16171 else 16172 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16173 case $host_os in 16174 sco3.2v5*) 16175 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16176 ;; 16177 esac 16178 fi 16179 sys_lib_dlsearch_path_spec='/usr/lib' 16180 ;; 16181 16182tpf*) 16183 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16184 version_type=linux # correct to gnu/linux during the next big refactor 16185 need_lib_prefix=no 16186 need_version=no 16187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16188 shlibpath_var=LD_LIBRARY_PATH 16189 shlibpath_overrides_runpath=no 16190 hardcode_into_libs=yes 16191 ;; 16192 16193uts4*) 16194 version_type=linux # correct to gnu/linux during the next big refactor 16195 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16196 soname_spec='$libname$release$shared_ext$major' 16197 shlibpath_var=LD_LIBRARY_PATH 16198 ;; 16199 16200*) 16201 dynamic_linker=no 16202 ;; 16203esac 16204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16205$as_echo "$dynamic_linker" >&6; } 16206test no = "$dynamic_linker" && can_build_shared=no 16207 16208variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16209if test yes = "$GCC"; then 16210 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16211fi 16212 16213if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16214 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16215fi 16216 16217if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16218 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16219fi 16220 16221# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16222configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16223 16224# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16225func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16226 16227# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16228configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16229 16230 16231 16232 16233 16234 16235 16236 16237 16238 16239 16240 16241 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16270$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16271hardcode_action_CXX= 16272if test -n "$hardcode_libdir_flag_spec_CXX" || 16273 test -n "$runpath_var_CXX" || 16274 test yes = "$hardcode_automatic_CXX"; then 16275 16276 # We can hardcode non-existent directories. 16277 if test no != "$hardcode_direct_CXX" && 16278 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16279 # have to relink, otherwise we might link with an installed library 16280 # when we should be linking with a yet-to-be-installed one 16281 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16282 test no != "$hardcode_minus_L_CXX"; then 16283 # Linking always hardcodes the temporary library directory. 16284 hardcode_action_CXX=relink 16285 else 16286 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16287 hardcode_action_CXX=immediate 16288 fi 16289else 16290 # We cannot hardcode anything, or else we can only hardcode existing 16291 # directories. 16292 hardcode_action_CXX=unsupported 16293fi 16294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16295$as_echo "$hardcode_action_CXX" >&6; } 16296 16297if test relink = "$hardcode_action_CXX" || 16298 test yes = "$inherit_rpath_CXX"; then 16299 # Fast installation is not supported 16300 enable_fast_install=no 16301elif test yes = "$shlibpath_overrides_runpath" || 16302 test no = "$enable_shared"; then 16303 # Fast installation is not necessary 16304 enable_fast_install=needless 16305fi 16306 16307 16308 16309 16310 16311 16312 16313 fi # test -n "$compiler" 16314 16315 CC=$lt_save_CC 16316 CFLAGS=$lt_save_CFLAGS 16317 LDCXX=$LD 16318 LD=$lt_save_LD 16319 GCC=$lt_save_GCC 16320 with_gnu_ld=$lt_save_with_gnu_ld 16321 lt_cv_path_LDCXX=$lt_cv_path_LD 16322 lt_cv_path_LD=$lt_save_path_LD 16323 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16324 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16325fi # test yes != "$_lt_caught_CXX_error" 16326 16327ac_ext=c 16328ac_cpp='$CPP $CPPFLAGS' 16329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16331ac_compiler_gnu=$ac_cv_c_compiler_gnu 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 ac_config_commands="$ac_config_commands libtool" 16348 16349 16350 16351 16352# Only expand once: 16353 16354 16355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5 16356$as_echo_n "checking what extension is used for runtime loadable modules... " >&6; } 16357if ${libltdl_cv_shlibext+:} false; then : 16358 $as_echo_n "(cached) " >&6 16359else 16360 16361module=yes 16362eval libltdl_cv_shlibext=$shrext_cmds 16363module=no 16364eval libltdl_cv_shrext=$shrext_cmds 16365 16366fi 16367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5 16368$as_echo "$libltdl_cv_shlibext" >&6; } 16369if test -n "$libltdl_cv_shlibext"; then 16370 16371cat >>confdefs.h <<_ACEOF 16372#define LT_MODULE_EXT "$libltdl_cv_shlibext" 16373_ACEOF 16374 16375fi 16376if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then 16377 16378cat >>confdefs.h <<_ACEOF 16379#define LT_SHARED_EXT "$libltdl_cv_shrext" 16380_ACEOF 16381 16382fi 16383if test -n "$shared_archive_member_spec"; then 16384 16385cat >>confdefs.h <<_ACEOF 16386#define LT_SHARED_LIB_MEMBER "($shared_archive_member_spec.o)" 16387_ACEOF 16388 16389fi 16390 16391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5 16392$as_echo_n "checking what variable specifies run-time module search path... " >&6; } 16393if ${lt_cv_module_path_var+:} false; then : 16394 $as_echo_n "(cached) " >&6 16395else 16396 lt_cv_module_path_var=$shlibpath_var 16397fi 16398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5 16399$as_echo "$lt_cv_module_path_var" >&6; } 16400if test -n "$lt_cv_module_path_var"; then 16401 16402cat >>confdefs.h <<_ACEOF 16403#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var" 16404_ACEOF 16405 16406fi 16407 16408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5 16409$as_echo_n "checking for the default library search path... " >&6; } 16410if ${lt_cv_sys_dlsearch_path+:} false; then : 16411 $as_echo_n "(cached) " >&6 16412else 16413 lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec 16414fi 16415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5 16416$as_echo "$lt_cv_sys_dlsearch_path" >&6; } 16417if test -n "$lt_cv_sys_dlsearch_path"; then 16418 sys_dlsearch_path= 16419 for dir in $lt_cv_sys_dlsearch_path; do 16420 if test -z "$sys_dlsearch_path"; then 16421 sys_dlsearch_path=$dir 16422 else 16423 sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir 16424 fi 16425 done 16426 16427cat >>confdefs.h <<_ACEOF 16428#define LT_DLSEARCH_PATH "$sys_dlsearch_path" 16429_ACEOF 16430 16431fi 16432 16433 16434LT_DLLOADERS= 16435 16436 16437ac_ext=c 16438ac_cpp='$CPP $CPPFLAGS' 16439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16441ac_compiler_gnu=$ac_cv_c_compiler_gnu 16442 16443lt_dlload_save_LIBS=$LIBS 16444 16445LIBADD_DLOPEN= 16446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 16447$as_echo_n "checking for library containing dlopen... " >&6; } 16448if ${ac_cv_search_dlopen+:} false; then : 16449 $as_echo_n "(cached) " >&6 16450else 16451 ac_func_search_save_LIBS=$LIBS 16452cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16453/* end confdefs.h. */ 16454 16455/* Override any GCC internal prototype to avoid an error. 16456 Use char because int might match the return type of a GCC 16457 builtin and then its argument prototype would still apply. */ 16458#ifdef __cplusplus 16459extern "C" 16460#endif 16461char dlopen (); 16462int 16463main () 16464{ 16465return dlopen (); 16466 ; 16467 return 0; 16468} 16469_ACEOF 16470for ac_lib in '' dl; do 16471 if test -z "$ac_lib"; then 16472 ac_res="none required" 16473 else 16474 ac_res=-l$ac_lib 16475 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16476 fi 16477 if ac_fn_c_try_link "$LINENO"; then : 16478 ac_cv_search_dlopen=$ac_res 16479fi 16480rm -f core conftest.err conftest.$ac_objext \ 16481 conftest$ac_exeext 16482 if ${ac_cv_search_dlopen+:} false; then : 16483 break 16484fi 16485done 16486if ${ac_cv_search_dlopen+:} false; then : 16487 16488else 16489 ac_cv_search_dlopen=no 16490fi 16491rm conftest.$ac_ext 16492LIBS=$ac_func_search_save_LIBS 16493fi 16494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 16495$as_echo "$ac_cv_search_dlopen" >&6; } 16496ac_res=$ac_cv_search_dlopen 16497if test "$ac_res" != no; then : 16498 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16499 16500$as_echo "#define HAVE_LIBDL 1" >>confdefs.h 16501 16502 if test "$ac_cv_search_dlopen" != "none required"; then 16503 LIBADD_DLOPEN=-ldl 16504 fi 16505 libltdl_cv_lib_dl_dlopen=yes 16506 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" 16507else 16508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16509/* end confdefs.h. */ 16510#if HAVE_DLFCN_H 16511# include <dlfcn.h> 16512#endif 16513 16514int 16515main () 16516{ 16517dlopen(0, 0); 16518 ; 16519 return 0; 16520} 16521_ACEOF 16522if ac_fn_c_try_link "$LINENO"; then : 16523 16524$as_echo "#define HAVE_LIBDL 1" >>confdefs.h 16525 16526 libltdl_cv_func_dlopen=yes 16527 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" 16528else 16529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 16530$as_echo_n "checking for dlopen in -lsvld... " >&6; } 16531if ${ac_cv_lib_svld_dlopen+:} false; then : 16532 $as_echo_n "(cached) " >&6 16533else 16534 ac_check_lib_save_LIBS=$LIBS 16535LIBS="-lsvld $LIBS" 16536cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16537/* end confdefs.h. */ 16538 16539/* Override any GCC internal prototype to avoid an error. 16540 Use char because int might match the return type of a GCC 16541 builtin and then its argument prototype would still apply. */ 16542#ifdef __cplusplus 16543extern "C" 16544#endif 16545char dlopen (); 16546int 16547main () 16548{ 16549return dlopen (); 16550 ; 16551 return 0; 16552} 16553_ACEOF 16554if ac_fn_c_try_link "$LINENO"; then : 16555 ac_cv_lib_svld_dlopen=yes 16556else 16557 ac_cv_lib_svld_dlopen=no 16558fi 16559rm -f core conftest.err conftest.$ac_objext \ 16560 conftest$ac_exeext conftest.$ac_ext 16561LIBS=$ac_check_lib_save_LIBS 16562fi 16563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 16564$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 16565if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 16566 16567$as_echo "#define HAVE_LIBDL 1" >>confdefs.h 16568 16569 LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes 16570 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" 16571fi 16572 16573fi 16574rm -f core conftest.err conftest.$ac_objext \ 16575 conftest$ac_exeext conftest.$ac_ext 16576fi 16577 16578if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen" 16579then 16580 lt_save_LIBS=$LIBS 16581 LIBS="$LIBS $LIBADD_DLOPEN" 16582 for ac_func in dlerror 16583do : 16584 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" 16585if test "x$ac_cv_func_dlerror" = xyes; then : 16586 cat >>confdefs.h <<_ACEOF 16587#define HAVE_DLERROR 1 16588_ACEOF 16589 16590fi 16591done 16592 16593 LIBS=$lt_save_LIBS 16594fi 16595 16596 16597LIBADD_SHL_LOAD= 16598ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 16599if test "x$ac_cv_func_shl_load" = xyes; then : 16600 16601$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 16602 16603 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" 16604else 16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 16606$as_echo_n "checking for shl_load in -ldld... " >&6; } 16607if ${ac_cv_lib_dld_shl_load+:} false; then : 16608 $as_echo_n "(cached) " >&6 16609else 16610 ac_check_lib_save_LIBS=$LIBS 16611LIBS="-ldld $LIBS" 16612cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16613/* end confdefs.h. */ 16614 16615/* Override any GCC internal prototype to avoid an error. 16616 Use char because int might match the return type of a GCC 16617 builtin and then its argument prototype would still apply. */ 16618#ifdef __cplusplus 16619extern "C" 16620#endif 16621char shl_load (); 16622int 16623main () 16624{ 16625return shl_load (); 16626 ; 16627 return 0; 16628} 16629_ACEOF 16630if ac_fn_c_try_link "$LINENO"; then : 16631 ac_cv_lib_dld_shl_load=yes 16632else 16633 ac_cv_lib_dld_shl_load=no 16634fi 16635rm -f core conftest.err conftest.$ac_objext \ 16636 conftest$ac_exeext conftest.$ac_ext 16637LIBS=$ac_check_lib_save_LIBS 16638fi 16639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 16640$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 16641if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 16642 16643$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 16644 16645 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" 16646 LIBADD_SHL_LOAD=-ldld 16647fi 16648 16649fi 16650 16651 16652 16653case $host_os in 16654darwin[1567].*) 16655# We only want this for pre-Mac OS X 10.4. 16656 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" 16657if test "x$ac_cv_func__dyld_func_lookup" = xyes; then : 16658 16659$as_echo "#define HAVE_DYLD 1" >>confdefs.h 16660 16661 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" 16662fi 16663 16664 ;; 16665beos*) 16666 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" 16667 ;; 16668cygwin* | mingw* | pw32*) 16669 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h> 16670" 16671if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then : 16672 ac_have_decl=1 16673else 16674 ac_have_decl=0 16675fi 16676 16677cat >>confdefs.h <<_ACEOF 16678#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl 16679_ACEOF 16680 16681 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" 16682 ;; 16683esac 16684 16685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 16686$as_echo_n "checking for dld_link in -ldld... " >&6; } 16687if ${ac_cv_lib_dld_dld_link+:} false; then : 16688 $as_echo_n "(cached) " >&6 16689else 16690 ac_check_lib_save_LIBS=$LIBS 16691LIBS="-ldld $LIBS" 16692cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16693/* end confdefs.h. */ 16694 16695/* Override any GCC internal prototype to avoid an error. 16696 Use char because int might match the return type of a GCC 16697 builtin and then its argument prototype would still apply. */ 16698#ifdef __cplusplus 16699extern "C" 16700#endif 16701char dld_link (); 16702int 16703main () 16704{ 16705return dld_link (); 16706 ; 16707 return 0; 16708} 16709_ACEOF 16710if ac_fn_c_try_link "$LINENO"; then : 16711 ac_cv_lib_dld_dld_link=yes 16712else 16713 ac_cv_lib_dld_dld_link=no 16714fi 16715rm -f core conftest.err conftest.$ac_objext \ 16716 conftest$ac_exeext conftest.$ac_ext 16717LIBS=$ac_check_lib_save_LIBS 16718fi 16719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 16720$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 16721if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 16722 16723$as_echo "#define HAVE_DLD 1" >>confdefs.h 16724 16725 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" 16726fi 16727 16728 16729 16730 16731LT_DLPREOPEN= 16732if test -n "$LT_DLLOADERS" 16733then 16734 for lt_loader in $LT_DLLOADERS; do 16735 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " 16736 done 16737 16738$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h 16739 16740fi 16741 16742 16743LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" 16744 16745 16746LIBS=$lt_dlload_save_LIBS 16747ac_ext=c 16748ac_cpp='$CPP $CPPFLAGS' 16749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16751ac_compiler_gnu=$ac_cv_c_compiler_gnu 16752 16753 16754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 16755$as_echo_n "checking for _ prefix in compiled symbols... " >&6; } 16756if ${lt_cv_sys_symbol_underscore+:} false; then : 16757 $as_echo_n "(cached) " >&6 16758else 16759 lt_cv_sys_symbol_underscore=no 16760 cat > conftest.$ac_ext <<_LT_EOF 16761void nm_test_func(){} 16762int main(){nm_test_func;return 0;} 16763_LT_EOF 16764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16765 (eval $ac_compile) 2>&5 16766 ac_status=$? 16767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16768 test $ac_status = 0; }; then 16769 # Now try to grab the symbols. 16770 ac_nlist=conftest.nm 16771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 16772 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 16773 ac_status=$? 16774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16775 test $ac_status = 0; } && test -s "$ac_nlist"; then 16776 # See whether the symbols have a leading underscore. 16777 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then 16778 lt_cv_sys_symbol_underscore=yes 16779 else 16780 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then 16781 : 16782 else 16783 echo "configure: cannot find nm_test_func in $ac_nlist" >&5 16784 fi 16785 fi 16786 else 16787 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 16788 fi 16789 else 16790 echo "configure: failed program was:" >&5 16791 cat conftest.c >&5 16792 fi 16793 rm -rf conftest* 16794 16795fi 16796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5 16797$as_echo "$lt_cv_sys_symbol_underscore" >&6; } 16798 sys_symbol_underscore=$lt_cv_sys_symbol_underscore 16799 16800 16801if test yes = "$lt_cv_sys_symbol_underscore"; then 16802 if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then 16803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 16804$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } 16805if ${libltdl_cv_need_uscore+:} false; then : 16806 $as_echo_n "(cached) " >&6 16807else 16808 libltdl_cv_need_uscore=unknown 16809 dlsym_uscore_save_LIBS=$LIBS 16810 LIBS="$LIBS $LIBADD_DLOPEN" 16811 libname=conftmod # stay within 8.3 filename limits! 16812 cat >$libname.$ac_ext <<_LT_EOF 16813#line $LINENO "configure" 16814#include "confdefs.h" 16815/* When -fvisibility=hidden is used, assume the code has been annotated 16816 correspondingly for the symbols needed. */ 16817#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 16818int fnord () __attribute__((visibility("default"))); 16819#endif 16820int fnord () { return 42; } 16821_LT_EOF 16822 16823 # ltfn_module_cmds module_cmds 16824 # Execute tilde-delimited MODULE_CMDS with environment primed for 16825 # $module_cmds or $archive_cmds type content. 16826 ltfn_module_cmds () 16827 {( # subshell avoids polluting parent global environment 16828 module_cmds_save_ifs=$IFS; IFS='~' 16829 for cmd in $1; do 16830 IFS=$module_cmds_save_ifs 16831 libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext 16832 rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=. 16833 major=; versuffix=; verstring=; deplibs= 16834 ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag= 16835 eval $cmd 16836 done 16837 IFS=$module_cmds_save_ifs 16838 )} 16839 16840 # Compile a loadable module using libtool macro expansion results. 16841 $CC $pic_flag -c $libname.$ac_ext 16842 ltfn_module_cmds "${module_cmds:-$archive_cmds}" 16843 16844 # Try to fetch fnord with dlsym(). 16845 libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2 16846 cat >conftest.$ac_ext <<_LT_EOF 16847#line $LINENO "configure" 16848#include "confdefs.h" 16849#if HAVE_DLFCN_H 16850#include <dlfcn.h> 16851#endif 16852#include <stdio.h> 16853#ifndef RTLD_GLOBAL 16854# ifdef DL_GLOBAL 16855# define RTLD_GLOBAL DL_GLOBAL 16856# else 16857# define RTLD_GLOBAL 0 16858# endif 16859#endif 16860#ifndef RTLD_NOW 16861# ifdef DL_NOW 16862# define RTLD_NOW DL_NOW 16863# else 16864# define RTLD_NOW 0 16865# endif 16866#endif 16867int main () { 16868 void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW); 16869 int status = $libltdl_dlunknown; 16870 if (handle) { 16871 if (dlsym (handle, "fnord")) 16872 status = $libltdl_dlnouscore; 16873 else { 16874 if (dlsym (handle, "_fnord")) 16875 status = $libltdl_dluscore; 16876 else 16877 puts (dlerror ()); 16878 } 16879 dlclose (handle); 16880 } else 16881 puts (dlerror ()); 16882 return status; 16883} 16884_LT_EOF 16885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 16886 (eval $ac_link) 2>&5 16887 ac_status=$? 16888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16889 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 16890 (./conftest; exit; ) >&5 2>/dev/null 16891 libltdl_status=$? 16892 case x$libltdl_status in 16893 x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;; 16894 x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;; 16895 x*) libltdl_cv_need_uscore=unknown ;; 16896 esac 16897 fi 16898 rm -rf conftest* $libname* 16899 LIBS=$dlsym_uscore_save_LIBS 16900 16901fi 16902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 16903$as_echo "$libltdl_cv_need_uscore" >&6; } 16904 fi 16905fi 16906 16907if test yes = "$libltdl_cv_need_uscore"; then 16908 16909$as_echo "#define NEED_USCORE 1" >>confdefs.h 16910 16911fi 16912 16913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5 16914$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; } 16915if ${lt_cv_sys_dlopen_deplibs+:} false; then : 16916 $as_echo_n "(cached) " >&6 16917else 16918 # PORTME does your system automatically load deplibs for dlopen? 16919 # or its logical equivalent (e.g. shl_load for HP-UX < 11) 16920 # For now, we just catch OSes we know something about -- in the 16921 # future, we'll try test this programmatically. 16922 lt_cv_sys_dlopen_deplibs=unknown 16923 case $host_os in 16924 aix3*|aix4.1.*|aix4.2.*) 16925 # Unknown whether this is true for these versions of AIX, but 16926 # we want this 'case' here to explicitly catch those versions. 16927 lt_cv_sys_dlopen_deplibs=unknown 16928 ;; 16929 aix[4-9]*) 16930 lt_cv_sys_dlopen_deplibs=yes 16931 ;; 16932 amigaos*) 16933 case $host_cpu in 16934 powerpc) 16935 lt_cv_sys_dlopen_deplibs=no 16936 ;; 16937 esac 16938 ;; 16939 bitrig*) 16940 lt_cv_sys_dlopen_deplibs=yes 16941 ;; 16942 darwin*) 16943 # Assuming the user has installed a libdl from somewhere, this is true 16944 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 16945 lt_cv_sys_dlopen_deplibs=yes 16946 ;; 16947 freebsd* | dragonfly*) 16948 lt_cv_sys_dlopen_deplibs=yes 16949 ;; 16950 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu) 16951 # GNU and its variants, using gnu ld.so (Glibc) 16952 lt_cv_sys_dlopen_deplibs=yes 16953 ;; 16954 hpux10*|hpux11*) 16955 lt_cv_sys_dlopen_deplibs=yes 16956 ;; 16957 interix*) 16958 lt_cv_sys_dlopen_deplibs=yes 16959 ;; 16960 irix[12345]*|irix6.[01]*) 16961 # Catch all versions of IRIX before 6.2, and indicate that we don't 16962 # know how it worked for any of those versions. 16963 lt_cv_sys_dlopen_deplibs=unknown 16964 ;; 16965 irix*) 16966 # The case above catches anything before 6.2, and it's known that 16967 # at 6.2 and later dlopen does load deplibs. 16968 lt_cv_sys_dlopen_deplibs=yes 16969 ;; 16970 netbsd*) 16971 lt_cv_sys_dlopen_deplibs=yes 16972 ;; 16973 openbsd*) 16974 lt_cv_sys_dlopen_deplibs=yes 16975 ;; 16976 osf[1234]*) 16977 # dlopen did load deplibs (at least at 4.x), but until the 5.x series, 16978 # it did *not* use an RPATH in a shared library to find objects the 16979 # library depends on, so we explicitly say 'no'. 16980 lt_cv_sys_dlopen_deplibs=no 16981 ;; 16982 osf5.0|osf5.0a|osf5.1) 16983 # dlopen *does* load deplibs and with the right loader patch applied 16984 # it even uses RPATH in a shared library to search for shared objects 16985 # that the library depends on, but there's no easy way to know if that 16986 # patch is installed. Since this is the case, all we can really 16987 # say is unknown -- it depends on the patch being installed. If 16988 # it is, this changes to 'yes'. Without it, it would be 'no'. 16989 lt_cv_sys_dlopen_deplibs=unknown 16990 ;; 16991 osf*) 16992 # the two cases above should catch all versions of osf <= 5.1. Read 16993 # the comments above for what we know about them. 16994 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library 16995 # is used to find them so we can finally say 'yes'. 16996 lt_cv_sys_dlopen_deplibs=yes 16997 ;; 16998 qnx*) 16999 lt_cv_sys_dlopen_deplibs=yes 17000 ;; 17001 solaris*) 17002 lt_cv_sys_dlopen_deplibs=yes 17003 ;; 17004 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17005 libltdl_cv_sys_dlopen_deplibs=yes 17006 ;; 17007 esac 17008 17009fi 17010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5 17011$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } 17012if test yes != "$lt_cv_sys_dlopen_deplibs"; then 17013 17014$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h 17015 17016fi 17017 17018 17019for ac_header in argz.h 17020do : 17021 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default 17022" 17023if test "x$ac_cv_header_argz_h" = xyes; then : 17024 cat >>confdefs.h <<_ACEOF 17025#define HAVE_ARGZ_H 1 17026_ACEOF 17027 17028fi 17029 17030done 17031 17032 17033ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H) 17034# include <argz.h> 17035#endif 17036" 17037if test "x$ac_cv_type_error_t" = xyes; then : 17038 17039cat >>confdefs.h <<_ACEOF 17040#define HAVE_ERROR_T 1 17041_ACEOF 17042 17043 17044else 17045 17046$as_echo "#define error_t int" >>confdefs.h 17047 17048 17049$as_echo "#define __error_t_defined 1" >>confdefs.h 17050 17051fi 17052 17053 17054LT_ARGZ_H= 17055for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ 17056 argz_next argz_stringify 17057do : 17058 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17059ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17060if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17061 cat >>confdefs.h <<_ACEOF 17062#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17063_ACEOF 17064 17065else 17066 LT_ARGZ_H=lt__argz.h; 17067 17068 _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext" 17069 17070fi 17071done 17072 17073 17074if test -z "$LT_ARGZ_H"; then : 17075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5 17076$as_echo_n "checking if argz actually works... " >&6; } 17077if ${lt_cv_sys_argz_works+:} false; then : 17078 $as_echo_n "(cached) " >&6 17079else 17080 case $host_os in #( 17081 *cygwin*) 17082 lt_cv_sys_argz_works=no 17083 if test no != "$cross_compiling"; then 17084 lt_cv_sys_argz_works="guessing no" 17085 else 17086 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' 17087 save_IFS=$IFS 17088 IFS=-. 17089 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` 17090 IFS=$save_IFS 17091 lt_os_major=${2-0} 17092 lt_os_minor=${3-0} 17093 lt_os_micro=${4-0} 17094 if test 1 -lt "$lt_os_major" \ 17095 || { test 1 -eq "$lt_os_major" \ 17096 && { test 5 -lt "$lt_os_minor" \ 17097 || { test 5 -eq "$lt_os_minor" \ 17098 && test 24 -lt "$lt_os_micro"; }; }; }; then 17099 lt_cv_sys_argz_works=yes 17100 fi 17101 fi 17102 ;; #( 17103 *) lt_cv_sys_argz_works=yes ;; 17104 esac 17105fi 17106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5 17107$as_echo "$lt_cv_sys_argz_works" >&6; } 17108 if test yes = "$lt_cv_sys_argz_works"; then : 17109 17110$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h 17111 17112else 17113 LT_ARGZ_H=lt__argz.h 17114 17115 17116 _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext" 17117 17118fi 17119fi 17120 17121 17122 17123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5 17124$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; } 17125if ${libltdl_cv_preloaded_symbols+:} false; then : 17126 $as_echo_n "(cached) " >&6 17127else 17128 if test -n "$lt_cv_sys_global_symbol_pipe"; then 17129 libltdl_cv_preloaded_symbols=yes 17130 else 17131 libltdl_cv_preloaded_symbols=no 17132 fi 17133 17134fi 17135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5 17136$as_echo "$libltdl_cv_preloaded_symbols" >&6; } 17137if test yes = "$libltdl_cv_preloaded_symbols"; then 17138 17139$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h 17140 17141fi 17142 17143 17144 17145# Set options 17146 17147 17148 17149 17150 17151 17152 17153 17154 17155 17156 17157 17158# Check whether --with-included_ltdl was given. 17159if test "${with_included_ltdl+set}" = set; then : 17160 withval=$with_included_ltdl; 17161fi 17162 17163 17164if test yes != "$with_included_ltdl"; then 17165 # We are not being forced to use the included libltdl sources, so 17166 # decide whether there is a useful installed version we can use. 17167 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default 17168 17169" 17170if test "x$ac_cv_header_ltdl_h" = xyes; then : 17171 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default 17172 #include <ltdl.h> 17173" 17174if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then : 17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5 17176$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; } 17177if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then : 17178 $as_echo_n "(cached) " >&6 17179else 17180 ac_check_lib_save_LIBS=$LIBS 17181LIBS="-lltdl $LIBS" 17182cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17183/* end confdefs.h. */ 17184 17185/* Override any GCC internal prototype to avoid an error. 17186 Use char because int might match the return type of a GCC 17187 builtin and then its argument prototype would still apply. */ 17188#ifdef __cplusplus 17189extern "C" 17190#endif 17191char lt_dladvise_preload (); 17192int 17193main () 17194{ 17195return lt_dladvise_preload (); 17196 ; 17197 return 0; 17198} 17199_ACEOF 17200if ac_fn_c_try_link "$LINENO"; then : 17201 ac_cv_lib_ltdl_lt_dladvise_preload=yes 17202else 17203 ac_cv_lib_ltdl_lt_dladvise_preload=no 17204fi 17205rm -f core conftest.err conftest.$ac_objext \ 17206 conftest$ac_exeext conftest.$ac_ext 17207LIBS=$ac_check_lib_save_LIBS 17208fi 17209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5 17210$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; } 17211if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then : 17212 with_included_ltdl=no 17213else 17214 with_included_ltdl=yes 17215fi 17216 17217else 17218 with_included_ltdl=yes 17219fi 17220 17221else 17222 with_included_ltdl=yes 17223fi 17224 17225 17226fi 17227 17228 17229 17230 17231 17232 17233 17234 17235# Check whether --with-ltdl_include was given. 17236if test "${with_ltdl_include+set}" = set; then : 17237 withval=$with_ltdl_include; 17238fi 17239 17240 17241if test -n "$with_ltdl_include"; then 17242 if test -f "$with_ltdl_include/ltdl.h"; then : 17243 else 17244 as_fn_error $? "invalid ltdl include directory: '$with_ltdl_include'" "$LINENO" 5 17245 fi 17246else 17247 with_ltdl_include=no 17248fi 17249 17250 17251# Check whether --with-ltdl_lib was given. 17252if test "${with_ltdl_lib+set}" = set; then : 17253 withval=$with_ltdl_lib; 17254fi 17255 17256 17257if test -n "$with_ltdl_lib"; then 17258 if test -f "$with_ltdl_lib/libltdl.la"; then : 17259 else 17260 as_fn_error $? "invalid ltdl library directory: '$with_ltdl_lib'" "$LINENO" 5 17261 fi 17262else 17263 with_ltdl_lib=no 17264fi 17265 17266case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in 17267 ,yes,no,no,) 17268 case $enable_ltdl_convenience in 17269 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;; 17270 "") enable_ltdl_convenience=yes 17271 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; 17272esac 17273LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" 17274LTDLDEPS=$LIBLTDL 17275LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}" 17276 17277 17278 17279 17280 17281# For backwards non-gettext consistent compatibility... 17282INCLTDL=$LTDLINCL 17283 17284 17285 ;; 17286 ,no,no,no,) 17287 # If the included ltdl is not to be used, then use the 17288 # preinstalled libltdl we found. 17289 17290$as_echo "#define HAVE_LTDL 1" >>confdefs.h 17291 17292 LIBLTDL=-lltdl 17293 LTDLDEPS= 17294 LTDLINCL= 17295 ;; 17296 ,no*,no,*) 17297 as_fn_error $? "'--with-ltdl-include' and '--with-ltdl-lib' options must be used together" "$LINENO" 5 17298 ;; 17299 *) with_included_ltdl=no 17300 LIBLTDL="-L$with_ltdl_lib -lltdl" 17301 LTDLDEPS= 17302 LTDLINCL=-I$with_ltdl_include 17303 ;; 17304esac 17305INCLTDL=$LTDLINCL 17306 17307# Report our decision... 17308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5 17309$as_echo_n "checking where to find libltdl headers... " >&6; } 17310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5 17311$as_echo "$LTDLINCL" >&6; } 17312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5 17313$as_echo_n "checking where to find libltdl library... " >&6; } 17314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5 17315$as_echo "$LIBLTDL" >&6; } 17316 17317 17318 17319# Check whether --enable-ltdl-install was given. 17320if test "${enable_ltdl_install+set}" = set; then : 17321 enableval=$enable_ltdl_install; 17322fi 17323 17324 17325case ,$enable_ltdl_install,$enable_ltdl_convenience in 17326 *yes*) ;; 17327 *) enable_ltdl_convenience=yes ;; 17328esac 17329 17330 if test no != "${enable_ltdl_install-no}"; then 17331 INSTALL_LTDL_TRUE= 17332 INSTALL_LTDL_FALSE='#' 17333else 17334 INSTALL_LTDL_TRUE='#' 17335 INSTALL_LTDL_FALSE= 17336fi 17337 17338 if test no != "${enable_ltdl_convenience-no}"; then 17339 CONVENIENCE_LTDL_TRUE= 17340 CONVENIENCE_LTDL_FALSE='#' 17341else 17342 CONVENIENCE_LTDL_TRUE='#' 17343 CONVENIENCE_LTDL_FALSE= 17344fi 17345 17346 17347 17348 subdirs="$subdirs libltdl" 17349 17350 17351 17352 17353# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS 17354# the user used. This is so that ltdl.h can pick up the parent projects 17355# config.h file, The first file in AC_CONFIG_HEADERS must contain the 17356# definitions required by ltdl.c. 17357# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). 17358 17359 17360 17361for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h 17362do : 17363 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17364ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 17365" 17366if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17367 cat >>confdefs.h <<_ACEOF 17368#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17369_ACEOF 17370 17371fi 17372 17373done 17374 17375 17376for ac_func in closedir opendir readdir 17377do : 17378 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17379ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17380if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17381 cat >>confdefs.h <<_ACEOF 17382#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17383_ACEOF 17384 17385else 17386 17387 17388 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext" 17389 17390fi 17391done 17392 17393for ac_func in strlcat strlcpy 17394do : 17395 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17396ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17397if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17398 cat >>confdefs.h <<_ACEOF 17399#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17400_ACEOF 17401 17402else 17403 17404 17405 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext" 17406 17407fi 17408done 17409 17410 17411 17412cat >>confdefs.h <<_ACEOF 17413#define LT_LIBEXT "$libext" 17414_ACEOF 17415 17416 17417name= 17418eval "lt_libprefix=\"$libname_spec\"" 17419 17420cat >>confdefs.h <<_ACEOF 17421#define LT_LIBPREFIX "$lt_libprefix" 17422_ACEOF 17423 17424 17425name=ltdl 17426eval "LTDLOPEN=\"$libname_spec\"" 17427 17428 17429 17430 17431 17432 17433 17434 17435# Only expand once: 17436 17437 17438 17439 17440for ac_prog in perl5 perl 17441do 17442 # Extract the first word of "$ac_prog", so it can be a program name with args. 17443set dummy $ac_prog; ac_word=$2 17444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17445$as_echo_n "checking for $ac_word... " >&6; } 17446if ${ac_cv_path_PERL+:} false; then : 17447 $as_echo_n "(cached) " >&6 17448else 17449 case $PERL in 17450 [\\/]* | ?:[\\/]*) 17451 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 17452 ;; 17453 *) 17454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17455for as_dir in $LPATH 17456do 17457 IFS=$as_save_IFS 17458 test -z "$as_dir" && as_dir=. 17459 for ac_exec_ext in '' $ac_executable_extensions; do 17460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17461 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 17462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17463 break 2 17464 fi 17465done 17466 done 17467IFS=$as_save_IFS 17468 17469 ;; 17470esac 17471fi 17472PERL=$ac_cv_path_PERL 17473if test -n "$PERL"; then 17474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 17475$as_echo "$PERL" >&6; } 17476else 17477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17478$as_echo "no" >&6; } 17479fi 17480 17481 17482 test -n "$PERL" && break 17483done 17484test -n "$PERL" || PERL="perl" 17485 17486for ac_prog in courier-config 17487do 17488 # Extract the first word of "$ac_prog", so it can be a program name with args. 17489set dummy $ac_prog; ac_word=$2 17490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17491$as_echo_n "checking for $ac_word... " >&6; } 17492if ${ac_cv_path_COURIERCONFIG+:} false; then : 17493 $as_echo_n "(cached) " >&6 17494else 17495 case $COURIERCONFIG in 17496 [\\/]* | ?:[\\/]*) 17497 ac_cv_path_COURIERCONFIG="$COURIERCONFIG" # Let the user override the test with a path. 17498 ;; 17499 *) 17500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17501for as_dir in $LPATH 17502do 17503 IFS=$as_save_IFS 17504 test -z "$as_dir" && as_dir=. 17505 for ac_exec_ext in '' $ac_executable_extensions; do 17506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17507 ac_cv_path_COURIERCONFIG="$as_dir/$ac_word$ac_exec_ext" 17508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17509 break 2 17510 fi 17511done 17512 done 17513IFS=$as_save_IFS 17514 17515 ;; 17516esac 17517fi 17518COURIERCONFIG=$ac_cv_path_COURIERCONFIG 17519if test -n "$COURIERCONFIG"; then 17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COURIERCONFIG" >&5 17521$as_echo "$COURIERCONFIG" >&6; } 17522else 17523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17524$as_echo "no" >&6; } 17525fi 17526 17527 17528 test -n "$COURIERCONFIG" && break 17529done 17530test -n "$COURIERCONFIG" || COURIERCONFIG="courier-config" 17531 17532 17533ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default" 17534if test "x$ac_cv_header_ltdl_h" = xyes; then : 17535 : 17536else 17537 as_fn_error $? "Unable to find ltdl.h. Please install Libtool's ltdl library" "$LINENO" 5 17538fi 17539 17540 17541 17542if test "$PERL" = "perl" 17543then 17544 as_fn_error $? "Perl is required" "$LINENO" 5 17545fi 17546 17547test "x$prefix" = xNONE && prefix=$ac_default_prefix 17548test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17549eval "prefix=$prefix" 17550eval "exec_prefix=$exec_prefix" 17551eval "sysconfdir=$sysconfdir" 17552eval "bindir=$bindir" 17553eval "sbindir=$sbindir" 17554eval "localstatedir=$localstatedir" 17555eval "libexecdir=$libexecdir" 17556eval "datarootdir=$datarootdir" 17557eval "datedir=$datadir" 17558 17559for ac_prog in expect 17560do 17561 # Extract the first word of "$ac_prog", so it can be a program name with args. 17562set dummy $ac_prog; ac_word=$2 17563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17564$as_echo_n "checking for $ac_word... " >&6; } 17565if ${ac_cv_path_EXPECT+:} false; then : 17566 $as_echo_n "(cached) " >&6 17567else 17568 case $EXPECT in 17569 [\\/]* | ?:[\\/]*) 17570 ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path. 17571 ;; 17572 *) 17573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17574for as_dir in $LPATH 17575do 17576 IFS=$as_save_IFS 17577 test -z "$as_dir" && as_dir=. 17578 for ac_exec_ext in '' $ac_executable_extensions; do 17579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17580 ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext" 17581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17582 break 2 17583 fi 17584done 17585 done 17586IFS=$as_save_IFS 17587 17588 ;; 17589esac 17590fi 17591EXPECT=$ac_cv_path_EXPECT 17592if test -n "$EXPECT"; then 17593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 17594$as_echo "$EXPECT" >&6; } 17595else 17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17597$as_echo "no" >&6; } 17598fi 17599 17600 17601 test -n "$EXPECT" && break 17602done 17603test -n "$EXPECT" || EXPECT="expect" 17604 17605 17606if test "$EXPECT" = "expect" 17607then 17608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -----------------------------------------------------" >&5 17609$as_echo "$as_me: WARNING: -----------------------------------------------------" >&2;} 17610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expect not found - will not be able to change passwds" >&5 17611$as_echo "$as_me: WARNING: expect not found - will not be able to change passwds" >&2;} 17612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: in webmail" >&5 17613$as_echo "$as_me: WARNING: in webmail" >&2;} 17614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -----------------------------------------------------" >&5 17615$as_echo "$as_me: WARNING: -----------------------------------------------------" >&2;} 17616 sleep 5 17617else 17618 17619cat >>confdefs.h <<_ACEOF 17620#define HAVE_EXPECT 1 17621_ACEOF 17622 17623fi 17624 17625for ac_prog in passwd 17626do 17627 # Extract the first word of "$ac_prog", so it can be a program name with args. 17628set dummy $ac_prog; ac_word=$2 17629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17630$as_echo_n "checking for $ac_word... " >&6; } 17631if ${ac_cv_path_PASSWD+:} false; then : 17632 $as_echo_n "(cached) " >&6 17633else 17634 case $PASSWD in 17635 [\\/]* | ?:[\\/]*) 17636 ac_cv_path_PASSWD="$PASSWD" # Let the user override the test with a path. 17637 ;; 17638 *) 17639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17640for as_dir in $LPATH 17641do 17642 IFS=$as_save_IFS 17643 test -z "$as_dir" && as_dir=. 17644 for ac_exec_ext in '' $ac_executable_extensions; do 17645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17646 ac_cv_path_PASSWD="$as_dir/$ac_word$ac_exec_ext" 17647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17648 break 2 17649 fi 17650done 17651 done 17652IFS=$as_save_IFS 17653 17654 ;; 17655esac 17656fi 17657PASSWD=$ac_cv_path_PASSWD 17658if test -n "$PASSWD"; then 17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PASSWD" >&5 17660$as_echo "$PASSWD" >&6; } 17661else 17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17663$as_echo "no" >&6; } 17664fi 17665 17666 17667 test -n "$PASSWD" && break 17668done 17669test -n "$PASSWD" || PASSWD="passwd" 17670 17671 17672 17673if test "$GCC" = "yes" 17674then 17675 CFLAGS="$CFLAGS -Wall" 17676 CXXFLAGS="$CXXFLAGS -Wall" 17677fi 17678 17679CFLAGS="$CFLAGS -Ilibs -I${srcdir}/libs" 17680CXXFLAGS="$CXXFLAGS -Ilibs -I${srcdir}/libs" 17681 17682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lm is needed for linking" >&5 17683$as_echo_n "checking whether -lm is needed for linking... " >&6; } 17684 17685OLDLIBS="$LIBS" 17686LIBS="$LIBS -lm" 17687cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17688/* end confdefs.h. */ 17689 17690 17691int 17692main () 17693{ 17694 17695 17696 ; 17697 return 0; 17698} 17699_ACEOF 17700if ac_fn_c_try_link "$LINENO"; then : 17701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17702$as_echo "yes" >&6; } 17703 LIBM="-lm" 17704else 17705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17706$as_echo "no" >&6; } 17707fi 17708rm -f core conftest.err conftest.$ac_objext \ 17709 conftest$ac_exeext conftest.$ac_ext 17710LIBS="$OLDLIBS" 17711 17712 17713# Check whether --with-pkgconfdir was given. 17714if test "${with_pkgconfdir+set}" = set; then : 17715 withval=$with_pkgconfdir; pkgconfdir="$withval" 17716else 17717 pkgconfdir="$sysconfdir/authlib" 17718fi 17719 17720 17721saveLIBS="$LIBS" 17722NETLIBS="" 17723USENSL=no 17724 17725LIBS="$OLDLIBS -lsocket" 17726 17727cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17728/* end confdefs.h. */ 17729 17730#include <sys/types.h> 17731#include <sys/socket.h> 17732 17733int 17734main () 17735{ 17736 17737(void)socket(0, 0, 0); 17738 17739 ; 17740 return 0; 17741} 17742_ACEOF 17743if ac_fn_c_try_link "$LINENO"; then : 17744 17745 NETLIBS="-lsocket" 17746 17747else 17748 17749 17750LIBS="$saveLIBS -lsocket -lnsl" 17751 17752cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17753/* end confdefs.h. */ 17754 17755#include <sys/types.h> 17756#include <sys/socket.h> 17757 17758int 17759main () 17760{ 17761 17762(void)socket(0, 0, 0); 17763 17764 ; 17765 return 0; 17766} 17767_ACEOF 17768if ac_fn_c_try_link "$LINENO"; then : 17769 17770 NETLIBS="-lsocket -lnsl" 17771 USENSL=yes 17772 17773else 17774 17775 17776LIBS="$saveLIBS -lsocket" 17777 17778cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17779/* end confdefs.h. */ 17780 17781#include <sys/types.h> 17782#include <sys/socket.h> 17783 17784int 17785main () 17786{ 17787 17788(void)connect(0, 0, 0); 17789 17790 ; 17791 return 0; 17792} 17793_ACEOF 17794if ac_fn_c_try_link "$LINENO"; then : 17795 17796 NETLIBS="-lsocket" 17797 17798else 17799 17800 17801LIBS="$saveLIBS -lsocket -lnsl" 17802cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17803/* end confdefs.h. */ 17804 17805#include <sys/types.h> 17806#include <sys/socket.h> 17807 17808int 17809main () 17810{ 17811 17812(void)connect(0, 0, 0); 17813 17814 ; 17815 return 0; 17816} 17817_ACEOF 17818if ac_fn_c_try_link "$LINENO"; then : 17819 17820 NETLIBS="-lsocket -lnsl" 17821 USENSL=yes 17822 17823fi 17824rm -f core conftest.err conftest.$ac_objext \ 17825 conftest$ac_exeext conftest.$ac_ext 17826 17827fi 17828rm -f core conftest.err conftest.$ac_objext \ 17829 conftest$ac_exeext conftest.$ac_ext 17830 17831fi 17832rm -f core conftest.err conftest.$ac_objext \ 17833 conftest$ac_exeext conftest.$ac_ext 17834 17835fi 17836rm -f core conftest.err conftest.$ac_objext \ 17837 conftest$ac_exeext conftest.$ac_ext 17838 17839if test $USENSL != yes; then 17840 LIBS="$saveLIBS $NETLIBS" 17841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17842/* end confdefs.h. */ 17843 17844/* Override any GCC internal prototype to avoid an error. 17845 Use char because int might match the return type of a GCC 17846 builtin and then its argument prototype would still apply. */ 17847#ifdef __cplusplus 17848extern "C" 17849#endif 17850char inet_addr (); 17851int 17852main () 17853{ 17854return inet_addr (); 17855 ; 17856 return 0; 17857} 17858_ACEOF 17859if ac_fn_c_try_link "$LINENO"; then : 17860 : 17861else 17862 17863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5 17864$as_echo_n "checking for inet_addr in -lnsl... " >&6; } 17865if ${ac_cv_lib_nsl_inet_addr+:} false; then : 17866 $as_echo_n "(cached) " >&6 17867else 17868 ac_check_lib_save_LIBS=$LIBS 17869LIBS="-lnsl $LIBS" 17870cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17871/* end confdefs.h. */ 17872 17873/* Override any GCC internal prototype to avoid an error. 17874 Use char because int might match the return type of a GCC 17875 builtin and then its argument prototype would still apply. */ 17876#ifdef __cplusplus 17877extern "C" 17878#endif 17879char inet_addr (); 17880int 17881main () 17882{ 17883return inet_addr (); 17884 ; 17885 return 0; 17886} 17887_ACEOF 17888if ac_fn_c_try_link "$LINENO"; then : 17889 ac_cv_lib_nsl_inet_addr=yes 17890else 17891 ac_cv_lib_nsl_inet_addr=no 17892fi 17893rm -f core conftest.err conftest.$ac_objext \ 17894 conftest$ac_exeext conftest.$ac_ext 17895LIBS=$ac_check_lib_save_LIBS 17896fi 17897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5 17898$as_echo "$ac_cv_lib_nsl_inet_addr" >&6; } 17899if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then : 17900 result=yes 17901else 17902 result=no 17903fi 17904 17905 if test $result = yes; then 17906 NETLIBS="$NETLIBS -lnsl" 17907 fi 17908 17909fi 17910rm -f core conftest.err conftest.$ac_objext \ 17911 conftest$ac_exeext conftest.$ac_ext 17912fi 17913 17914LIBS="$saveLIBS" 17915 17916 17917 17918 17919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking courier-unicode library and version" >&5 17920$as_echo_n "checking courier-unicode library and version... " >&6; } 17921 17922vers="2.1" 17923 17924if test "$vers" = "" 17925then 17926 vers=2.2.3 17927fi 17928 17929set -- `echo "$vers" | tr '.' ' '` 17930 17931v=$1 17932r=`echo "00"$2 | sed 's/.*(...)$/$1/'` 17933 17934p=$3 17935 17936if test "$p" = "" 17937 then p="0" 17938fi 17939 17940p=`echo "00"$p | sed 's/.*(...)$/$1/'` 17941 17942if test "$v$r$p" -lt 2002002 17943then 17944 r=$2 17945 p=$3 17946 if test "$p" = "" 17947 then p="0" 17948 fi 17949fi 17950 17951cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17952/* end confdefs.h. */ 17953 17954#include <courier-unicode.h> 17955#ifndef COURIER_UNICODE_VERSION 17956#define COURIER_UNICODE_VERSION 0 17957#endif 17958 17959#if COURIER_UNICODE_VERSION < $v$r$p 17960#error "courier-unicode $vers library is required" 17961#endif 17962 17963 17964int 17965main () 17966{ 17967 17968 ; 17969 return 0; 17970} 17971_ACEOF 17972if ac_fn_c_try_compile "$LINENO"; then : 17973 17974else 17975 as_fn_error $? " 17976ERROR: The Courier Unicode Library $vers header files appear not to be installed. 17977You may need to upgrade the library or install a separate development 17978subpackage in addition to the main package." "$LINENO" 5 17979 17980fi 17981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17982 17983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 17984$as_echo "ok" >&6; } 17985 17986 17987 17988 17989 17990 17991 17992# Check whether --with-db was given. 17993if test "${with_db+set}" = set; then : 17994 withval=$with_db; db="$withval" 17995else 17996 needs_withdb=1 17997fi 17998 17999 18000case "$db" in 18001gdbm) 18002 ;; 18003db) 18004 ;; 18005"") 18006 ;; 18007*) 18008 as_fn_error $? "Invalid --with-db option." "$LINENO" 5 18009 ;; 18010esac 18011 18012saveLIBS="$LIBS" 18013 18014if test "$db" != "db" 18015then 18016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5 18017$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; } 18018if ${ac_cv_lib_gdbm_gdbm_open+:} false; then : 18019 $as_echo_n "(cached) " >&6 18020else 18021 ac_check_lib_save_LIBS=$LIBS 18022LIBS="-lgdbm $LIBS" 18023cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18024/* end confdefs.h. */ 18025 18026/* Override any GCC internal prototype to avoid an error. 18027 Use char because int might match the return type of a GCC 18028 builtin and then its argument prototype would still apply. */ 18029#ifdef __cplusplus 18030extern "C" 18031#endif 18032char gdbm_open (); 18033int 18034main () 18035{ 18036return gdbm_open (); 18037 ; 18038 return 0; 18039} 18040_ACEOF 18041if ac_fn_c_try_link "$LINENO"; then : 18042 ac_cv_lib_gdbm_gdbm_open=yes 18043else 18044 ac_cv_lib_gdbm_gdbm_open=no 18045fi 18046rm -f core conftest.err conftest.$ac_objext \ 18047 conftest$ac_exeext conftest.$ac_ext 18048LIBS=$ac_check_lib_save_LIBS 18049fi 18050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5 18051$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; } 18052if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then : 18053 LIBGDBM=-lgdbm ; LIBS="-lgdbm $LIBS" 18054fi 18055 18056 ac_fn_c_check_func "$LINENO" "gdbm_open" "ac_cv_func_gdbm_open" 18057if test "x$ac_cv_func_gdbm_open" = xyes; then : 18058 HAVE_GDBM=y 18059fi 18060 18061fi 18062 18063LIBS="$saveLIBS" 18064 18065if test "$db" != "gdbm" 18066then 18067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -ldb" >&5 18068$as_echo_n "checking for dbopen in -ldb... " >&6; } 18069if ${ac_cv_lib_db_dbopen+:} false; then : 18070 $as_echo_n "(cached) " >&6 18071else 18072 ac_check_lib_save_LIBS=$LIBS 18073LIBS="-ldb $LIBS" 18074cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18075/* end confdefs.h. */ 18076 18077/* Override any GCC internal prototype to avoid an error. 18078 Use char because int might match the return type of a GCC 18079 builtin and then its argument prototype would still apply. */ 18080#ifdef __cplusplus 18081extern "C" 18082#endif 18083char dbopen (); 18084int 18085main () 18086{ 18087return dbopen (); 18088 ; 18089 return 0; 18090} 18091_ACEOF 18092if ac_fn_c_try_link "$LINENO"; then : 18093 ac_cv_lib_db_dbopen=yes 18094else 18095 ac_cv_lib_db_dbopen=no 18096fi 18097rm -f core conftest.err conftest.$ac_objext \ 18098 conftest$ac_exeext conftest.$ac_ext 18099LIBS=$ac_check_lib_save_LIBS 18100fi 18101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_dbopen" >&5 18102$as_echo "$ac_cv_lib_db_dbopen" >&6; } 18103if test "x$ac_cv_lib_db_dbopen" = xyes; then : 18104 LIBDB=-ldb ; LIBS="-ldb $LIBS" 18105else 18106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -ldb" >&5 18107$as_echo_n "checking for db_open in -ldb... " >&6; } 18108if ${ac_cv_lib_db_db_open+:} false; then : 18109 $as_echo_n "(cached) " >&6 18110else 18111 ac_check_lib_save_LIBS=$LIBS 18112LIBS="-ldb $LIBS" 18113cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18114/* end confdefs.h. */ 18115 18116/* Override any GCC internal prototype to avoid an error. 18117 Use char because int might match the return type of a GCC 18118 builtin and then its argument prototype would still apply. */ 18119#ifdef __cplusplus 18120extern "C" 18121#endif 18122char db_open (); 18123int 18124main () 18125{ 18126return db_open (); 18127 ; 18128 return 0; 18129} 18130_ACEOF 18131if ac_fn_c_try_link "$LINENO"; then : 18132 ac_cv_lib_db_db_open=yes 18133else 18134 ac_cv_lib_db_db_open=no 18135fi 18136rm -f core conftest.err conftest.$ac_objext \ 18137 conftest$ac_exeext conftest.$ac_ext 18138LIBS=$ac_check_lib_save_LIBS 18139fi 18140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_db_open" >&5 18141$as_echo "$ac_cv_lib_db_db_open" >&6; } 18142if test "x$ac_cv_lib_db_db_open" = xyes; then : 18143 LIBDB=-ldb ; LIBS="-ldb $LIBS" 18144else 18145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb" >&5 18146$as_echo_n "checking for db_env_create in -ldb... " >&6; } 18147if ${ac_cv_lib_db_db_env_create+:} false; then : 18148 $as_echo_n "(cached) " >&6 18149else 18150 ac_check_lib_save_LIBS=$LIBS 18151LIBS="-ldb $LIBS" 18152cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18153/* end confdefs.h. */ 18154 18155/* Override any GCC internal prototype to avoid an error. 18156 Use char because int might match the return type of a GCC 18157 builtin and then its argument prototype would still apply. */ 18158#ifdef __cplusplus 18159extern "C" 18160#endif 18161char db_env_create (); 18162int 18163main () 18164{ 18165return db_env_create (); 18166 ; 18167 return 0; 18168} 18169_ACEOF 18170if ac_fn_c_try_link "$LINENO"; then : 18171 ac_cv_lib_db_db_env_create=yes 18172else 18173 ac_cv_lib_db_db_env_create=no 18174fi 18175rm -f core conftest.err conftest.$ac_objext \ 18176 conftest$ac_exeext conftest.$ac_ext 18177LIBS=$ac_check_lib_save_LIBS 18178fi 18179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_db_env_create" >&5 18180$as_echo "$ac_cv_lib_db_db_env_create" >&6; } 18181if test "x$ac_cv_lib_db_db_env_create" = xyes; then : 18182 LIBDB=-ldb; LIBS="-ldb $LIBS" 18183fi 18184 18185 18186fi 18187 18188fi 18189 18190 18191 ac_fn_c_check_func "$LINENO" "dbopen" "ac_cv_func_dbopen" 18192if test "x$ac_cv_func_dbopen" = xyes; then : 18193 HAVE_BDB=1 18194fi 18195 18196 ac_fn_c_check_func "$LINENO" "db_open" "ac_cv_func_db_open" 18197if test "x$ac_cv_func_db_open" = xyes; then : 18198 HAVE_BDB=1 18199fi 18200 18201 ac_fn_c_check_func "$LINENO" "db_env_create" "ac_cv_func_db_env_create" 18202if test "x$ac_cv_func_db_env_create" = xyes; then : 18203 HAVE_BDB=1 18204fi 18205 18206fi 18207 18208LIBS="$saveLIBS" 18209 18210if test "$HAVE_GDBM$HAVE_BDB" = "" 18211then 18212 as_fn_error $? "Cannot find either the gdbm or the db library." "$LINENO" 5 18213fi 18214 18215USE_GDBM=0 18216USE_DB=0 18217 18218if test "$HAVE_GDBM" = "y" 18219then 18220 LIBDB="" 18221 USE_GDBM=1 18222 if test "$needs_withdb" = 1 18223 then 18224 ac_configure_args="$ac_configure_args --with-db=gdbm" 18225 fi 18226 dblibrary=libs/gdbmobj/libgdbmobj.la 18227else 18228 LIBGDBM="" 18229 USE_DB=1 18230 if test "$needs_withdb" = 1 18231 then 18232 ac_configure_args="$ac_configure_args --with-db=db" 18233 fi 18234 dblibrary=libs/bdbobj/libbdbobj.la 18235fi 18236 18237 18238 18239 18240 18241# Check whether --with-authuserdb was given. 18242if test "${with_authuserdb+set}" = set; then : 18243 withval=$with_authuserdb; doauthuserdb="$withval" 18244else 18245 doauthuserdb="no" 18246 if test -d ${srcdir}/userdb 18247 then 18248 doauthuserdb="yes" 18249 fi 18250fi 18251 18252 18253if test "$doauthuserdb" = "no" 18254then 18255 HAVE_USERDB_TRUE='#' 18256 HAVE_USERDB_FALSE= 18257 AUTHUSERDB="" 18258else 18259 HAVE_USERDB_TRUE= 18260 HAVE_USERDB_FALSE='#' 18261 AUTHUSERDB="authuserdb" 18262 LIBAUTHUSERDB="libauthuserdb.la" 18263 18264fi 18265 18266 18267# Check whether --with-makedatprog was given. 18268if test "${with_makedatprog+set}" = set; then : 18269 withval=$with_makedatprog; : 18270else 18271 18272 ac_configure_args="$ac_configure_args --with-makedatprog=$libexecdir/courier-authlib/makedatprog" 18273 18274fi 18275 18276 18277cat >dbobj.config <<EOF 18278LIBDB=$LIBDB 18279LIBGDBM=$LIBGDBM 18280dblibrary=$dblibrary 18281EOF 18282 18283 18284 18285 18286 18287 18288 18289 18290 18291userdb="$pkgconfdir/userdb" 18292 18293# Check whether --with-userdb was given. 18294if test "${with_userdb+set}" = set; then : 18295 withval=$with_userdb; userdb="$withval" 18296else 18297 ac_configure_args="$ac_configure_args '--with-userdb=$userdb'" 18298fi 18299 18300 18301 18302cat >>confdefs.h <<_ACEOF 18303#define USERDB "$userdb" 18304_ACEOF 18305 18306 18307 18308for ac_header in stdio.h 18309do : 18310 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 18311if test "x$ac_cv_header_stdio_h" = xyes; then : 18312 cat >>confdefs.h <<_ACEOF 18313#define HAVE_STDIO_H 1 18314_ACEOF 18315 18316fi 18317 18318done 18319 18320 18321 18322 18323 18324 18325# Check whether --with-authpam was given. 18326if test "${with_authpam+set}" = set; then : 18327 withval=$with_authpam; doauthpam="$withval" 18328fi 18329 18330 18331for ac_header in security/pam_appl.h Pam/pam_appl.h 18332do : 18333 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18334ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18335if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18336 cat >>confdefs.h <<_ACEOF 18337#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18338_ACEOF 18339 18340fi 18341 18342done 18343 18344if test "$doauthpam" = "no" 18345then 18346 LIBDL="" 18347else 18348 saveLIBS="$LIBS" 18349 LIBDL="" 18350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18351$as_echo_n "checking for dlopen in -ldl... " >&6; } 18352if ${ac_cv_lib_dl_dlopen+:} false; then : 18353 $as_echo_n "(cached) " >&6 18354else 18355 ac_check_lib_save_LIBS=$LIBS 18356LIBS="-ldl $LIBS" 18357cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18358/* end confdefs.h. */ 18359 18360/* Override any GCC internal prototype to avoid an error. 18361 Use char because int might match the return type of a GCC 18362 builtin and then its argument prototype would still apply. */ 18363#ifdef __cplusplus 18364extern "C" 18365#endif 18366char dlopen (); 18367int 18368main () 18369{ 18370return dlopen (); 18371 ; 18372 return 0; 18373} 18374_ACEOF 18375if ac_fn_c_try_link "$LINENO"; then : 18376 ac_cv_lib_dl_dlopen=yes 18377else 18378 ac_cv_lib_dl_dlopen=no 18379fi 18380rm -f core conftest.err conftest.$ac_objext \ 18381 conftest$ac_exeext conftest.$ac_ext 18382LIBS=$ac_check_lib_save_LIBS 18383fi 18384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18385$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18386if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18387 LIBDL="-ldl" 18388fi 18389 18390 LIBS="$saveLIBS" 18391 18392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 18393$as_echo_n "checking for pam_start in -lpam... " >&6; } 18394if ${ac_cv_lib_pam_pam_start+:} false; then : 18395 $as_echo_n "(cached) " >&6 18396else 18397 ac_check_lib_save_LIBS=$LIBS 18398LIBS="-lpam $LIBDL $LIBS" 18399cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18400/* end confdefs.h. */ 18401 18402/* Override any GCC internal prototype to avoid an error. 18403 Use char because int might match the return type of a GCC 18404 builtin and then its argument prototype would still apply. */ 18405#ifdef __cplusplus 18406extern "C" 18407#endif 18408char pam_start (); 18409int 18410main () 18411{ 18412return pam_start (); 18413 ; 18414 return 0; 18415} 18416_ACEOF 18417if ac_fn_c_try_link "$LINENO"; then : 18418 ac_cv_lib_pam_pam_start=yes 18419else 18420 ac_cv_lib_pam_pam_start=no 18421fi 18422rm -f core conftest.err conftest.$ac_objext \ 18423 conftest$ac_exeext conftest.$ac_ext 18424LIBS=$ac_check_lib_save_LIBS 18425fi 18426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5 18427$as_echo "$ac_cv_lib_pam_pam_start" >&6; } 18428if test "x$ac_cv_lib_pam_pam_start" = xyes; then : 18429 HAVE_PAM=1 18430 LIBS="-lpam $LIBDL $LIBS" 18431 for ac_func in pam_setcred 18432do : 18433 ac_fn_c_check_func "$LINENO" "pam_setcred" "ac_cv_func_pam_setcred" 18434if test "x$ac_cv_func_pam_setcred" = xyes; then : 18435 cat >>confdefs.h <<_ACEOF 18436#define HAVE_PAM_SETCRED 1 18437_ACEOF 18438 18439fi 18440done 18441 18442else 18443 HAVE_PAM=0 18444fi 18445 18446 LIBS="$saveLIBS" 18447fi 18448 18449 18450LIBAUTHPAM="" 18451if test "$HAVE_PAM" = 1 18452then 18453 LIBAUTHPAM=libauthpam.la 18454fi 18455 18456 18457# Check whether --with-authpam-libraries was given. 18458if test "${with_authpam_libraries+set}" = set; then : 18459 withval=$with_authpam_libraries; authpamcrypt="$withval" 18460fi 18461 18462 18463AUTHPAMCRYPT="$authpamcrypt" 18464 18465 18466 18467 18468 18469 18470 18471# Check whether --with-authldap was given. 18472if test "${with_authldap+set}" = set; then : 18473 withval=$with_authldap; doauthldap="$withval" 18474else 18475 doauthldap="yes" 18476fi 18477 18478 18479for ac_header in lber.h 18480do : 18481 ac_fn_c_check_header_mongrel "$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default" 18482if test "x$ac_cv_header_lber_h" = xyes; then : 18483 cat >>confdefs.h <<_ACEOF 18484#define HAVE_LBER_H 1 18485_ACEOF 18486 18487fi 18488 18489done 18490 18491for ac_header in ldap.h 18492do : 18493 ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default" 18494if test "x$ac_cv_header_ldap_h" = xyes; then : 18495 cat >>confdefs.h <<_ACEOF 18496#define HAVE_LDAP_H 1 18497_ACEOF 18498 18499fi 18500 18501done 18502 18503for ac_header in netinet/in.h 18504do : 18505 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" 18506if test "x$ac_cv_header_netinet_in_h" = xyes; then : 18507 cat >>confdefs.h <<_ACEOF 18508#define HAVE_NETINET_IN_H 1 18509_ACEOF 18510 18511fi 18512 18513done 18514 18515 18516if test "$doauthldap" = "no" 18517then 18518 HAVE_LDAP=0 18519else 18520 saveLIBS="$LIBS" 18521 LIBS="$NETLIBS $LIBS" 18522 LDAPLIBS="" 18523 18524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lresolv is needed for res_query" >&5 18525$as_echo_n "checking whether -lresolv is needed for res_query... " >&6; } 18526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18527/* end confdefs.h. */ 18528 18529#include <sys/types.h> 18530#if HAVE_NETINET_IN_H 18531#include <netinet/in.h> 18532#endif 18533#include <resolv.h> 18534 18535void (*func)()= (void (*)())res_query; 18536 18537int 18538main () 18539{ 18540 (*func)(); 18541 ; 18542 return 0; 18543} 18544_ACEOF 18545if ac_fn_c_try_link "$LINENO"; then : 18546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18547$as_echo "no" >&6; } 18548else 18549 18550 LIBS="-lresolv $LIBS" 18551 18552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18553/* end confdefs.h. */ 18554 18555#include <sys/types.h> 18556#if HAVE_NETINET_IN_H 18557#include <netinet/in.h> 18558#endif 18559#include <resolv.h> 18560 18561void (*func)()= (void (*)())res_query; 18562 18563int 18564main () 18565{ 18566 (*func)(); 18567 ; 18568 return 0; 18569} 18570_ACEOF 18571if ac_fn_c_try_link "$LINENO"; then : 18572 18573 LDAPLIBS="-lresolv $LDAPLIBS" 18574 HAVE_LDAP=1 18575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18576$as_echo "yes" >&6; } 18577 18578else 18579 as_fn_error $? "Cannot find function res_query" "$LINENO" 5 18580fi 18581rm -f core conftest.err conftest.$ac_objext \ 18582 conftest$ac_exeext conftest.$ac_ext 18583 18584fi 18585rm -f core conftest.err conftest.$ac_objext \ 18586 conftest$ac_exeext conftest.$ac_ext 18587 18588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_scanf in -llber" >&5 18589$as_echo_n "checking for ber_scanf in -llber... " >&6; } 18590if ${ac_cv_lib_lber_ber_scanf+:} false; then : 18591 $as_echo_n "(cached) " >&6 18592else 18593 ac_check_lib_save_LIBS=$LIBS 18594LIBS="-llber $LIBS" 18595cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18596/* end confdefs.h. */ 18597 18598/* Override any GCC internal prototype to avoid an error. 18599 Use char because int might match the return type of a GCC 18600 builtin and then its argument prototype would still apply. */ 18601#ifdef __cplusplus 18602extern "C" 18603#endif 18604char ber_scanf (); 18605int 18606main () 18607{ 18608return ber_scanf (); 18609 ; 18610 return 0; 18611} 18612_ACEOF 18613if ac_fn_c_try_link "$LINENO"; then : 18614 ac_cv_lib_lber_ber_scanf=yes 18615else 18616 ac_cv_lib_lber_ber_scanf=no 18617fi 18618rm -f core conftest.err conftest.$ac_objext \ 18619 conftest$ac_exeext conftest.$ac_ext 18620LIBS=$ac_check_lib_save_LIBS 18621fi 18622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_scanf" >&5 18623$as_echo "$ac_cv_lib_lber_ber_scanf" >&6; } 18624if test "x$ac_cv_lib_lber_ber_scanf" = xyes; then : 18625 LDAPLIBS="-llber $LDAPLIBS" LIBS="-llber $LIBS" 18626fi 18627 18628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_open in -lldap" >&5 18629$as_echo_n "checking for ldap_open in -lldap... " >&6; } 18630if ${ac_cv_lib_ldap_ldap_open+:} false; then : 18631 $as_echo_n "(cached) " >&6 18632else 18633 ac_check_lib_save_LIBS=$LIBS 18634LIBS="-lldap $LIBS" 18635cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18636/* end confdefs.h. */ 18637 18638/* Override any GCC internal prototype to avoid an error. 18639 Use char because int might match the return type of a GCC 18640 builtin and then its argument prototype would still apply. */ 18641#ifdef __cplusplus 18642extern "C" 18643#endif 18644char ldap_open (); 18645int 18646main () 18647{ 18648return ldap_open (); 18649 ; 18650 return 0; 18651} 18652_ACEOF 18653if ac_fn_c_try_link "$LINENO"; then : 18654 ac_cv_lib_ldap_ldap_open=yes 18655else 18656 ac_cv_lib_ldap_ldap_open=no 18657fi 18658rm -f core conftest.err conftest.$ac_objext \ 18659 conftest$ac_exeext conftest.$ac_ext 18660LIBS=$ac_check_lib_save_LIBS 18661fi 18662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_open" >&5 18663$as_echo "$ac_cv_lib_ldap_ldap_open" >&6; } 18664if test "x$ac_cv_lib_ldap_ldap_open" = xyes; then : 18665 LDAPLIBS="-lldap $LDAPLIBS" ; LIBS="-lldap $LIBS" 18666fi 18667 18668 ac_fn_c_check_func "$LINENO" "ldap_search_st" "ac_cv_func_ldap_search_st" 18669if test "x$ac_cv_func_ldap_search_st" = xyes; then : 18670 HAVE_LDAP=1 18671else 18672 HAVE_LDAP=0 18673fi 18674 18675 ac_fn_c_check_func "$LINENO" "ldap_start_tls_s" "ac_cv_func_ldap_start_tls_s" 18676if test "x$ac_cv_func_ldap_start_tls_s" = xyes; then : 18677 HAVE_LDAP_TLS=1 18678else 18679 HAVE_LDAP_TLS=0 18680fi 18681 18682 ac_fn_c_check_func "$LINENO" "ldap_result2error" "ac_cv_func_ldap_result2error" 18683if test "x$ac_cv_func_ldap_result2error" = xyes; then : 18684 HAVE_LDAP_RESULT2ERROR=1 18685else 18686 HAVE_LDAP_RESULT2ERROR=0 18687fi 18688 18689 ac_fn_c_check_func "$LINENO" "ldap_parse_result" "ac_cv_func_ldap_parse_result" 18690if test "x$ac_cv_func_ldap_parse_result" = xyes; then : 18691 HAVE_LDAP_PARSE_RESULT=1 18692else 18693 HAVE_LDAP_PARSE_RESULT=0 18694fi 18695 18696 LIBS="$saveLIBS" 18697fi 18698 18699 18700# Check whether --with-authldaprc was given. 18701if test "${with_authldaprc+set}" = set; then : 18702 withval=$with_authldaprc; authldaprc="$withval" 18703else 18704 authldaprc="$pkgconfdir/authldaprc" 18705fi 18706 18707 18708 18709LIBAUTHLDAP="" 18710if test "$HAVE_LDAP" = 1 18711then 18712 LIBAUTHLDAP="libauthldap.la" 18713else 18714 authldaprc="" 18715fi 18716 18717 18718if test "${with_base+set}" = set; then 18719 withval="$with_base" 18720 dobase="$withval" 18721else 18722 dobase="yes" 18723fi; 18724 18725if test "$dobase" = "no"; then 18726 HAVE_BASE_TRUE='#' 18727 HAVE_BASE_FALSE= 18728else 18729 HAVE_BASE_TRUE= 18730 HAVE_BASE_FALSE='#' 18731fi 18732 18733 if test "$HAVE_LDAP" = 1; then 18734 HAVE_LDAP_TRUE= 18735 HAVE_LDAP_FALSE='#' 18736else 18737 HAVE_LDAP_TRUE='#' 18738 HAVE_LDAP_FALSE= 18739fi 18740 18741 18742cat >>confdefs.h <<_ACEOF 18743#define HAVE_LDAP_TLS $HAVE_LDAP_TLS 18744_ACEOF 18745 18746 18747cat >>confdefs.h <<_ACEOF 18748#define HAVE_LDAP_RESULT2ERROR $HAVE_LDAP_RESULT2ERROR 18749_ACEOF 18750 18751 18752cat >>confdefs.h <<_ACEOF 18753#define HAVE_LDAP_PARSE_RESULT $HAVE_LDAP_PARSE_RESULT 18754_ACEOF 18755 18756 18757 18758 18759 18760# Check whether --with-authpwd was given. 18761if test "${with_authpwd+set}" = set; then : 18762 withval=$with_authpwd; doauthpwd="$withval" 18763else 18764 doauthpwd="yes" 18765 test "$HAVE_PAM" = 1 && doauthpwd="no" 18766 test "$HAVE_LDAP" = 1 && doauthpwd="no" 18767 18768fi 18769 18770 18771HAVE_PWD=1 18772if test "$doauthpwd" = "no" 18773then 18774 HAVE_PWD=0 18775fi 18776for ac_func in endpwent 18777do : 18778 ac_fn_c_check_func "$LINENO" "endpwent" "ac_cv_func_endpwent" 18779if test "x$ac_cv_func_endpwent" = xyes; then : 18780 cat >>confdefs.h <<_ACEOF 18781#define HAVE_ENDPWENT 1 18782_ACEOF 18783 18784fi 18785done 18786 18787 18788 18789 18790 18791 18792# Check whether --with-authshadow was given. 18793if test "${with_authshadow+set}" = set; then : 18794 withval=$with_authshadow; doauthshadow="$withval" 18795else 18796 doauthshadow="yes" 18797 test "$HAVE_PAM" = 1 && doauthshadow="no" 18798 test "$HAVE_LDAP" = 1 && doauthshadow="no" 18799fi 18800 18801 18802for ac_header in shadow.h 18803do : 18804 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default" 18805if test "x$ac_cv_header_shadow_h" = xyes; then : 18806 cat >>confdefs.h <<_ACEOF 18807#define HAVE_SHADOW_H 1 18808_ACEOF 18809 18810fi 18811 18812done 18813 18814saveLIBS="$LIBS" 18815SHADOWLIBS="" 18816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspent in -lshadow" >&5 18817$as_echo_n "checking for getspent in -lshadow... " >&6; } 18818if ${ac_cv_lib_shadow_getspent+:} false; then : 18819 $as_echo_n "(cached) " >&6 18820else 18821 ac_check_lib_save_LIBS=$LIBS 18822LIBS="-lshadow $LIBS" 18823cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18824/* end confdefs.h. */ 18825 18826/* Override any GCC internal prototype to avoid an error. 18827 Use char because int might match the return type of a GCC 18828 builtin and then its argument prototype would still apply. */ 18829#ifdef __cplusplus 18830extern "C" 18831#endif 18832char getspent (); 18833int 18834main () 18835{ 18836return getspent (); 18837 ; 18838 return 0; 18839} 18840_ACEOF 18841if ac_fn_c_try_link "$LINENO"; then : 18842 ac_cv_lib_shadow_getspent=yes 18843else 18844 ac_cv_lib_shadow_getspent=no 18845fi 18846rm -f core conftest.err conftest.$ac_objext \ 18847 conftest$ac_exeext conftest.$ac_ext 18848LIBS=$ac_check_lib_save_LIBS 18849fi 18850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_shadow_getspent" >&5 18851$as_echo "$ac_cv_lib_shadow_getspent" >&6; } 18852if test "x$ac_cv_lib_shadow_getspent" = xyes; then : 18853 SHADOWLIBS="-lshadow" ; LIBS="-lshadow $LIBS" 18854fi 18855 18856for ac_func in endspent getspent 18857do : 18858 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18859ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18860if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18861 cat >>confdefs.h <<_ACEOF 18862#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18863_ACEOF 18864 18865fi 18866done 18867 18868LIBS="$saveLIBS" 18869 18870if test "$doauthshadow" = "no" 18871then 18872 HAVE_SHADOW=0 18873else 18874 18875 saveLIBS="$LIBS" 18876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspent in -lshadow" >&5 18877$as_echo_n "checking for getspent in -lshadow... " >&6; } 18878if ${ac_cv_lib_shadow_getspent+:} false; then : 18879 $as_echo_n "(cached) " >&6 18880else 18881 ac_check_lib_save_LIBS=$LIBS 18882LIBS="-lshadow $LIBS" 18883cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18884/* end confdefs.h. */ 18885 18886/* Override any GCC internal prototype to avoid an error. 18887 Use char because int might match the return type of a GCC 18888 builtin and then its argument prototype would still apply. */ 18889#ifdef __cplusplus 18890extern "C" 18891#endif 18892char getspent (); 18893int 18894main () 18895{ 18896return getspent (); 18897 ; 18898 return 0; 18899} 18900_ACEOF 18901if ac_fn_c_try_link "$LINENO"; then : 18902 ac_cv_lib_shadow_getspent=yes 18903else 18904 ac_cv_lib_shadow_getspent=no 18905fi 18906rm -f core conftest.err conftest.$ac_objext \ 18907 conftest$ac_exeext conftest.$ac_ext 18908LIBS=$ac_check_lib_save_LIBS 18909fi 18910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_shadow_getspent" >&5 18911$as_echo "$ac_cv_lib_shadow_getspent" >&6; } 18912if test "x$ac_cv_lib_shadow_getspent" = xyes; then : 18913 cat >>confdefs.h <<_ACEOF 18914#define HAVE_LIBSHADOW 1 18915_ACEOF 18916 18917 LIBS="-lshadow $LIBS" 18918 18919fi 18920 18921 ac_fn_c_check_func "$LINENO" "getspent" "ac_cv_func_getspent" 18922if test "x$ac_cv_func_getspent" = xyes; then : 18923 HAVE_SHADOW=1 18924else 18925 HAVE_SHADOW=0 18926fi 18927 18928 LIBS="$saveLIBS" 18929fi 18930 18931LIBAUTHSHADOW="" 18932if test "$HAVE_SHADOW" = 1 18933then 18934 LIBAUTHSHADOW="libauthshadow.la" 18935fi 18936 18937 18938 18939LIBAUTHPWD="" 18940if test "$HAVE_PWD" = 1 18941then 18942 LIBAUTHPWD="libauthpwd.la" 18943fi 18944 18945 18946 18947 18948 18949 18950 18951vpopmail_home=`$PERL -e '@a=getpwnam("vpopmail"); print "$a[7]";'` 18952 18953 18954 18955 18956# Check whether --with-authvchkpw was given. 18957if test "${with_authvchkpw+set}" = set; then 18958 withval=$with_authvchkpw; doauthvchkpw="$withval" 18959else 18960 doauthvchkpw=no 18961 if test "$vpopmail_home" != "" 18962 then 18963 doauthvchkpw=yes 18964 fi 18965fi 18966 18967 18968if test "$doauthvchkpw" = "no" 18969then 18970 HAVE_VCHKPW=0 18971 vpopmail_home=. 18972else 18973 HAVE_VCHKPW=1 18974 18975 18976 cat <<EOF 18977---------------------------------------------------- 18978 NOTE 18979 18980 18981All questions regarding ANY vpopmail-related problems, 18982such as compiling/building failures, or login errors 18983should be referred to the vpopmail mailing list. 18984Vpopmail questions sent to the Courier mailing lists 18985will be IGNORED. 18986---------------------------------------------------- 18987 18988EOF 18989 sleep 5 18990 18991 if test -f ${vpopmail_home}/etc/lib_deps 18992 then 18993 CFLAGS="`cat ${vpopmail_home}/etc/inc_deps` $CFLAGS" 18994 VPOPMAILLIBS="`cat ${vpopmail_home}/etc/lib_deps`" 18995 else 18996 { { echo "$as_me:$LINENO: error: ${vpopmail_home}/etc/lib_deps does not exist - upgrade vpopmail to the current version or fix the permissions on this file" >&5 18997echo "$as_me: error: ${vpopmail_home}/etc/lib_deps does not exist - upgrade vpopmail to the current version or fix the permissions on this file" >&2;} 18998 { (exit 1); exit 1; }; } 18999 fi 19000fi 19001 19002 19003 19004LIBAUTHVCHKPW="" 19005if test "$HAVE_VCHKPW" = 1 19006then 19007 LIBAUTHVCHKPW="libauthvchkpw.la" 19008 HAVE_VCHKPW="1" 19009 19010 19011 _SAVE_LIBS=$LIBS 19012 LIBS="$VPOPMAILLIBS -lcrypt $CRYPTLIBS $LIBS" 19013 { echo "$as_me:$LINENO: checking for open_smtp_relay" >&5 19014echo $ECHO_N "checking for open_smtp_relay... $ECHO_C" >&6; } 19015if test "${ac_cv_func_open_smtp_relay+set}" = set; then 19016 echo $ECHO_N "(cached) $ECHO_C" >&6 19017else 19018 cat >conftest.$ac_ext <<_ACEOF 19019/* confdefs.h. */ 19020_ACEOF 19021cat confdefs.h >>conftest.$ac_ext 19022cat >>conftest.$ac_ext <<_ACEOF 19023/* end confdefs.h. */ 19024/* Define open_smtp_relay to an innocuous variant, in case <limits.h> declares open_smtp_relay. 19025 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19026#define open_smtp_relay innocuous_open_smtp_relay 19027 19028/* System header to define __stub macros and hopefully few prototypes, 19029 which can conflict with char open_smtp_relay (); below. 19030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19031 <limits.h> exists even on freestanding compilers. */ 19032 19033#ifdef __STDC__ 19034# include <limits.h> 19035#else 19036# include <assert.h> 19037#endif 19038 19039#undef open_smtp_relay 19040 19041/* Override any GCC internal prototype to avoid an error. 19042 Use char because int might match the return type of a GCC 19043 builtin and then its argument prototype would still apply. */ 19044#ifdef __cplusplus 19045extern "C" 19046#endif 19047char open_smtp_relay (); 19048/* The GNU C library defines this for functions which it implements 19049 to always fail with ENOSYS. Some functions are actually named 19050 something starting with __ and the normal name is an alias. */ 19051#if defined __stub_open_smtp_relay || defined __stub___open_smtp_relay 19052choke me 19053#endif 19054 19055int 19056main () 19057{ 19058return open_smtp_relay (); 19059 ; 19060 return 0; 19061} 19062_ACEOF 19063rm -f conftest.$ac_objext conftest$ac_exeext 19064if { (ac_try="$ac_link" 19065case "(($ac_try" in 19066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19067 *) ac_try_echo=$ac_try;; 19068esac 19069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19070 (eval "$ac_link") 2>conftest.er1 19071 ac_status=$? 19072 grep -v '^ *+' conftest.er1 >conftest.err 19073 rm -f conftest.er1 19074 cat conftest.err >&5 19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19076 (exit $ac_status); } && { 19077 test -z "$ac_c_werror_flag" || 19078 test ! -s conftest.err 19079 } && test -s conftest$ac_exeext && 19080 $as_test_x conftest$ac_exeext; then 19081 ac_cv_func_open_smtp_relay=yes 19082else 19083 echo "$as_me: failed program was:" >&5 19084sed 's/^/| /' conftest.$ac_ext >&5 19085 19086 ac_cv_func_open_smtp_relay=no 19087fi 19088 19089rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19090 conftest$ac_exeext conftest.$ac_ext 19091fi 19092{ echo "$as_me:$LINENO: result: $ac_cv_func_open_smtp_relay" >&5 19093echo "${ECHO_T}$ac_cv_func_open_smtp_relay" >&6; } 19094if test $ac_cv_func_open_smtp_relay = yes; then 19095 19096cat >>confdefs.h <<\_ACEOF 19097#define HAVE_OPEN_SMTP_RELAY 1 19098_ACEOF 19099 19100fi 19101 19102 { echo "$as_me:$LINENO: checking for vset_lastauth" >&5 19103echo $ECHO_N "checking for vset_lastauth... $ECHO_C" >&6; } 19104if test "${ac_cv_func_vset_lastauth+set}" = set; then 19105 echo $ECHO_N "(cached) $ECHO_C" >&6 19106else 19107 cat >conftest.$ac_ext <<_ACEOF 19108/* confdefs.h. */ 19109_ACEOF 19110cat confdefs.h >>conftest.$ac_ext 19111cat >>conftest.$ac_ext <<_ACEOF 19112/* end confdefs.h. */ 19113/* Define vset_lastauth to an innocuous variant, in case <limits.h> declares vset_lastauth. 19114 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19115#define vset_lastauth innocuous_vset_lastauth 19116 19117/* System header to define __stub macros and hopefully few prototypes, 19118 which can conflict with char vset_lastauth (); below. 19119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19120 <limits.h> exists even on freestanding compilers. */ 19121 19122#ifdef __STDC__ 19123# include <limits.h> 19124#else 19125# include <assert.h> 19126#endif 19127 19128#undef vset_lastauth 19129 19130/* Override any GCC internal prototype to avoid an error. 19131 Use char because int might match the return type of a GCC 19132 builtin and then its argument prototype would still apply. */ 19133#ifdef __cplusplus 19134extern "C" 19135#endif 19136char vset_lastauth (); 19137/* The GNU C library defines this for functions which it implements 19138 to always fail with ENOSYS. Some functions are actually named 19139 something starting with __ and the normal name is an alias. */ 19140#if defined __stub_vset_lastauth || defined __stub___vset_lastauth 19141choke me 19142#endif 19143 19144int 19145main () 19146{ 19147return vset_lastauth (); 19148 ; 19149 return 0; 19150} 19151_ACEOF 19152rm -f conftest.$ac_objext conftest$ac_exeext 19153if { (ac_try="$ac_link" 19154case "(($ac_try" in 19155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19156 *) ac_try_echo=$ac_try;; 19157esac 19158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19159 (eval "$ac_link") 2>conftest.er1 19160 ac_status=$? 19161 grep -v '^ *+' conftest.er1 >conftest.err 19162 rm -f conftest.er1 19163 cat conftest.err >&5 19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19165 (exit $ac_status); } && { 19166 test -z "$ac_c_werror_flag" || 19167 test ! -s conftest.err 19168 } && test -s conftest$ac_exeext && 19169 $as_test_x conftest$ac_exeext; then 19170 ac_cv_func_vset_lastauth=yes 19171else 19172 echo "$as_me: failed program was:" >&5 19173sed 's/^/| /' conftest.$ac_ext >&5 19174 19175 ac_cv_func_vset_lastauth=no 19176fi 19177 19178rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19179 conftest$ac_exeext conftest.$ac_ext 19180fi 19181{ echo "$as_me:$LINENO: result: $ac_cv_func_vset_lastauth" >&5 19182echo "${ECHO_T}$ac_cv_func_vset_lastauth" >&6; } 19183if test $ac_cv_func_vset_lastauth = yes; then 19184 19185cat >>confdefs.h <<\_ACEOF 19186#define HAVE_VSET_LASTAUTH 1 19187_ACEOF 19188 19189fi 19190 19191 LIBS=$_SAVE_LIBS 19192fi 19193 19194 19195 19196 19197 19198 19199 19200# Check whether --with-authpgsqlrc was given. 19201if test "${with_authpgsqlrc+set}" = set; then : 19202 withval=$with_authpgsqlrc; authpgsqlrc="$withval" 19203else 19204 authpgsqlrc="$pkgconfdir/authpgsqlrc" 19205fi 19206 19207 19208 19209 19210# Check whether --with-authpgsql was given. 19211if test "${with_authpgsql+set}" = set; then : 19212 withval=$with_authpgsql; doauthpgsql="$withval" 19213fi 19214 19215 19216for ac_prog in pg_config 19217do 19218 # Extract the first word of "$ac_prog", so it can be a program name with args. 19219set dummy $ac_prog; ac_word=$2 19220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19221$as_echo_n "checking for $ac_word... " >&6; } 19222if ${ac_cv_path_PG_CONFIG+:} false; then : 19223 $as_echo_n "(cached) " >&6 19224else 19225 case $PG_CONFIG in 19226 [\\/]* | ?:[\\/]*) 19227 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path. 19228 ;; 19229 *) 19230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19231for as_dir in $LPATH 19232do 19233 IFS=$as_save_IFS 19234 test -z "$as_dir" && as_dir=. 19235 for ac_exec_ext in '' $ac_executable_extensions; do 19236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19237 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19239 break 2 19240 fi 19241done 19242 done 19243IFS=$as_save_IFS 19244 19245 ;; 19246esac 19247fi 19248PG_CONFIG=$ac_cv_path_PG_CONFIG 19249if test -n "$PG_CONFIG"; then 19250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5 19251$as_echo "$PG_CONFIG" >&6; } 19252else 19253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19254$as_echo "no" >&6; } 19255fi 19256 19257 19258 test -n "$PG_CONFIG" && break 19259done 19260test -n "$PG_CONFIG" || PG_CONFIG="pg_config" 19261 19262 19263PGSQL_LIBS="-lpq" 19264 19265# Check whether --with-pgsql-libs was given. 19266if test "${with_pgsql_libs+set}" = set; then : 19267 withval=$with_pgsql_libs; PGSQL_LIBS="-L$withval $PGSQL_LIBS" 19268else 19269 if test -x $PG_CONFIG 19270 then 19271 PGSQL_LIBS="-L`$PG_CONFIG --libdir` $PGSQL_LIBS" 19272 fi 19273 19274fi 19275 19276 19277# Check whether --with-pgsql-includes was given. 19278if test "${with_pgsql_includes+set}" = set; then : 19279 withval=$with_pgsql_includes; PGSQL_CFLAGS="-I$withval" 19280else 19281 if test -x $PG_CONFIG 19282 then 19283 PGSQL_CFLAGS="-I`$PG_CONFIG --includedir`" 19284 fi 19285 19286fi 19287 19288 19289if test "$doauthpgsql" = "" 19290then 19291 LIBS="$PGSQL_LIBS $LIBS" 19292 ac_fn_c_check_func "$LINENO" "PQsetdbLogin" "ac_cv_func_PQsetdbLogin" 19293if test "x$ac_cv_func_PQsetdbLogin" = xyes; then : 19294 doauthpgsql="yes" 19295 19296fi 19297 19298 LIBS="$saveLIBS" 19299fi 19300 19301if test "$doauthpgsql" != "yes" 19302then 19303 LIBAUTHPGSQL="" 19304 HAVE_AUTHPGSQL=0 19305else 19306 saveLIBS="$LIBS" 19307 LIBS="$PGSQL_LIBS $LIBS" 19308 ac_fn_c_check_func "$LINENO" "PQsetdbLogin" "ac_cv_func_PQsetdbLogin" 19309if test "x$ac_cv_func_PQsetdbLogin" = xyes; then : 19310 AUTHPGSQL="authpgsql" 19311 HAVE_AUTHPGSQL=1 19312else 19313 as_fn_error $? "--with-authpgsql specified but no libpq.so" "$LINENO" 5 19314fi 19315 19316 LIBS="$saveLIBS" 19317 HAVE_AUTHPGSQL=1 19318 CFLAGS="$PGSQL_CFLAGS $CFLAGS" 19319 CXXFLAGS="$PGSQL_CFLAGS $CXXFLAGS" 19320 LIBAUTHPGSQL="libauthpgsql.la" 19321fi 19322 19323 19324 19325 if test "$HAVE_AUTHPGSQL" = 1; then 19326 HAVE_AUTHPGSQL_TRUE= 19327 HAVE_AUTHPGSQL_FALSE='#' 19328else 19329 HAVE_AUTHPGSQL_TRUE='#' 19330 HAVE_AUTHPGSQL_FALSE= 19331fi 19332 19333 19334 19335 19336 19337 19338# Check whether --with-authmysqlrc was given. 19339if test "${with_authmysqlrc+set}" = set; then : 19340 withval=$with_authmysqlrc; authmysqlrc="$withval" 19341else 19342 authmysqlrc="$pkgconfdir/authmysqlrc" 19343fi 19344 19345 19346 19347 19348# Check whether --with-authmysql was given. 19349if test "${with_authmysql+set}" = set; then : 19350 withval=$with_authmysql; doauthmysql="$withval" 19351fi 19352 19353 19354# Check whether --with-mysql-libs was given. 19355if test "${with_mysql_libs+set}" = set; then : 19356 withval=$with_mysql_libs; MYSQL_LIBS="-L$withval -lmysqlclient" 19357 19358fi 19359 19360 19361# Check whether --with-mysql-includes was given. 19362if test "${with_mysql_includes+set}" = set; then : 19363 withval=$with_mysql_includes; MYSQL_CFLAGS="-I$withval" 19364 19365fi 19366 19367 19368for ac_prog in mysql_config 19369do 19370 # Extract the first word of "$ac_prog", so it can be a program name with args. 19371set dummy $ac_prog; ac_word=$2 19372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19373$as_echo_n "checking for $ac_word... " >&6; } 19374if ${ac_cv_path_MYSQL_CONFIG+:} false; then : 19375 $as_echo_n "(cached) " >&6 19376else 19377 case $MYSQL_CONFIG in 19378 [\\/]* | ?:[\\/]*) 19379 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path. 19380 ;; 19381 *) 19382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19383for as_dir in $LPATH 19384do 19385 IFS=$as_save_IFS 19386 test -z "$as_dir" && as_dir=. 19387 for ac_exec_ext in '' $ac_executable_extensions; do 19388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19389 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19391 break 2 19392 fi 19393done 19394 done 19395IFS=$as_save_IFS 19396 19397 ;; 19398esac 19399fi 19400MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG 19401if test -n "$MYSQL_CONFIG"; then 19402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5 19403$as_echo "$MYSQL_CONFIG" >&6; } 19404else 19405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19406$as_echo "no" >&6; } 19407fi 19408 19409 19410 test -n "$MYSQL_CONFIG" && break 19411done 19412test -n "$MYSQL_CONFIG" || MYSQL_CONFIG="mysql_config" 19413 19414 19415if test -x "$MYSQL_CONFIG" 19416then 19417 MYSQL_CFLAGS="`$MYSQL_CONFIG --cflags`" 19418 MYSQL_LIBS="`$MYSQL_CONFIG --libs`" 19419 19420 eval "MYSQL_CFLAGS=\"\`echo $MYSQL_CFLAGS\`\"" 19421 eval "MYSQL_LIBS=\"\`echo $MYSQL_LIBS\`\"" 19422fi 19423 19424if test "$doauthmysql" = "" 19425then 19426 LIBS="$MYSQL_LIBS $LIBS" 19427 ac_fn_c_check_func "$LINENO" "mysql_real_connect" "ac_cv_func_mysql_real_connect" 19428if test "x$ac_cv_func_mysql_real_connect" = xyes; then : 19429 doauthmysql="yes" 19430 19431fi 19432 19433 ac_fn_c_check_func "$LINENO" "mysql_real_connect" "ac_cv_func_mysql_real_connect" 19434if test "x$ac_cv_func_mysql_real_connect" = xyes; then : 19435 doauthmysql="yes" 19436 19437fi 19438 19439 LIBS="$saveLIBS" 19440fi 19441 19442if test "$doauthmysql" != "yes" 19443then 19444 LIBAUTHMYSQL="" 19445 HAVE_AUTHMYSQL=0 19446else 19447 saveLIBS="$LIBS" 19448 LIBS="$MYSQL_LIBS $LIBS" 19449 ac_fn_c_check_func "$LINENO" "mysql_real_connect" "ac_cv_func_mysql_real_connect" 19450if test "x$ac_cv_func_mysql_real_connect" = xyes; then : 19451 LIBAUTHMYSQL="libauthmysql.la" 19452 HAVE_AUTHMYSQL=1 19453else 19454 19455 ac_fn_c_check_func "$LINENO" "mysql_real_connect" "ac_cv_func_mysql_real_connect" 19456if test "x$ac_cv_func_mysql_real_connect" = xyes; then : 19457 LIBAUTHMYSQL="libauthmysql.la" 19458 HAVE_AUTHMYSQL=1 19459else 19460 as_fn_error $? "--with-authmysql specified but no mysqlclient.so" "$LINENO" 5 19461 19462fi 19463 19464 19465 19466fi 19467 19468 LIBS="$saveLIBS" 19469 HAVE_AUTHMYSQL=1 19470 CFLAGS="$MYSQL_CFLAGS $CFLAGS" 19471 CXXFLAGS="$MYSQL_CFLAGS $CXXFLAGS" 19472fi 19473 19474 19475 if test "$HAVE_AUTHMYSQL" = 1; then 19476 HAVE_AUTHMYSQL_TRUE= 19477 HAVE_AUTHMYSQL_FALSE='#' 19478else 19479 HAVE_AUTHMYSQL_TRUE='#' 19480 HAVE_AUTHMYSQL_FALSE= 19481fi 19482 19483 19484 19485 19486 19487 19488# Check whether --with-authsqliterc was given. 19489if test "${with_authsqliterc+set}" = set; then : 19490 withval=$with_authsqliterc; authsqliterc="$withval" 19491else 19492 authsqliterc="$pkgconfdir/authsqliterc" 19493fi 19494 19495 19496 19497 19498# Check whether --with-authsqlite was given. 19499if test "${with_authsqlite+set}" = set; then : 19500 withval=$with_authsqlite; doauthsqlite="$withval" 19501fi 19502 19503 19504 19505# Check whether --with-sqlite-libs was given. 19506if test "${with_sqlite_libs+set}" = set; then : 19507 withval=$with_sqlite_libs; SQLITE_LIBS="-lsqlite3" 19508 19509fi 19510 19511 19512# Check whether --with-sqlite-includes was given. 19513if test "${with_sqlite_includes+set}" = set; then : 19514 withval=$with_sqlite_includes; SQLITE_CFLAGS="-I$withval" 19515 19516fi 19517 19518 19519if test "$doauthsqlite" = "" 19520then 19521 SQLITE_CFLAGS="`pkg-config --cflags sqlite3 2>/dev/null`" 19522 SQLITE_LIBS="`pkg-config --libs sqlite3 2>/dev/null`" 19523 saveLIBS="$LIBS" 19524 LIBS="$SQLITE_LIBS $LIBS" 19525echo $LIBS 19526# ac_fn_c_check_func "$LINENO" "sqlite3_version" "ac_cv_func_sqlite3_version" 19527if test -n $SQLITE_LIBS; then : 19528 doauthsqlite="yes" 19529 19530fi 19531 19532 LIBS="$saveLIBS" 19533fi 19534 19535if test "$doauthsqlite" != "yes" 19536then 19537 SQLITE_LIBS="" 19538 SQLITE_CFLAGS="" 19539 HAVE_AUTHSQLITE=0 19540 LIBAUTHSQLITE="" 19541else 19542 saveLIBS="$LIBS" 19543 LIBS="$SQLITE_LIBS $LIBS" 19544# ac_fn_c_check_func "$LINENO" "sqlite3_version" "ac_cv_func_sqlite3_version" 19545#if test "x$ac_cv_func_sqlite3_version" = xyes; then : 19546# : 19547#else 19548# as_fn_error $? "Cannot link with $SQLITE_LIBS" "$LINENO" 5 19549# 19550#fi 19551 19552 LIBS="$saveLIBS" 19553 HAVE_AUTHSQLITE=1 19554 CFLAGS="$SQLITE_CFLAGS $CFLAGS" 19555 CXXFLAGS="$SQLITE_CXXFLAGS $CFLAGS" 19556 LIBAUTHSQLITE="libauthsqlite.la" 19557 19558fi 19559 19560 19561 if test "$HAVE_AUTHSQLITE" = 1; then 19562 HAVE_AUTHSQLITE_TRUE= 19563 HAVE_AUTHSQLITE_FALSE='#' 19564else 19565 HAVE_AUTHSQLITE_TRUE='#' 19566 HAVE_AUTHSQLITE_FALSE= 19567fi 19568 19569 19570 19571 19572 19573 19574 19575# Check whether --with-authcustom was given. 19576if test "${with_authcustom+set}" = set; then : 19577 withval=$with_authcustom; doauthcustom="$withval" 19578else 19579 doauthcustom=yes 19580fi 19581 19582 19583LIBAUTHCUSTOM="" 19584 19585if test "$doauthcustom" = "yes" 19586then 19587 LIBAUTHCUSTOM="libauthcustom.la" 19588fi 19589 19590 if test "$AUTHCUSTOM" != ""; then 19591 HAVE_CUSTOM_TRUE= 19592 HAVE_CUSTOM_FALSE='#' 19593else 19594 HAVE_CUSTOM_TRUE='#' 19595 HAVE_CUSTOM_FALSE= 19596fi 19597 19598 19599 19600 19601 19602 19603 19604 19605 19606# Check whether --with-pipeprog was given. 19607if test "${with_pipeprog+set}" = set; then : 19608 withval=$with_pipeprog; authProg="$withval" 19609else 19610 authProg="$pkgconfdir/authProg" 19611fi 19612 19613 19614 19615 19616# Check whether --with-authpipe was given. 19617if test "${with_authpipe+set}" = set; then : 19618 withval=$with_authpipe; doauthpipe="$withval" 19619else 19620 doauthpipe=yes 19621fi 19622 19623 19624LIBAUTHPIPE="" 19625 19626if test "$doauthpipe" = "yes" 19627then 19628 LIBAUTHPIPE="libauthpipe.la" 19629fi 19630 19631 if test "$AUTHPIPE" != ""; then 19632 HAVE_PIPE_TRUE= 19633 HAVE_PIPE_FALSE='#' 19634else 19635 HAVE_PIPE_TRUE='#' 19636 HAVE_PIPE_FALSE= 19637fi 19638 19639 19640 19641 19642 19643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 19644$as_echo_n "checking for ANSI C header files... " >&6; } 19645if ${ac_cv_header_stdc+:} false; then : 19646 $as_echo_n "(cached) " >&6 19647else 19648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19649/* end confdefs.h. */ 19650#include <stdlib.h> 19651#include <stdarg.h> 19652#include <string.h> 19653#include <float.h> 19654 19655int 19656main () 19657{ 19658 19659 ; 19660 return 0; 19661} 19662_ACEOF 19663if ac_fn_c_try_compile "$LINENO"; then : 19664 ac_cv_header_stdc=yes 19665else 19666 ac_cv_header_stdc=no 19667fi 19668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19669 19670if test $ac_cv_header_stdc = yes; then 19671 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19673/* end confdefs.h. */ 19674#include <string.h> 19675 19676_ACEOF 19677if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19678 $EGREP "memchr" >/dev/null 2>&1; then : 19679 19680else 19681 ac_cv_header_stdc=no 19682fi 19683rm -f conftest* 19684 19685fi 19686 19687if test $ac_cv_header_stdc = yes; then 19688 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 19689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19690/* end confdefs.h. */ 19691#include <stdlib.h> 19692 19693_ACEOF 19694if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19695 $EGREP "free" >/dev/null 2>&1; then : 19696 19697else 19698 ac_cv_header_stdc=no 19699fi 19700rm -f conftest* 19701 19702fi 19703 19704if test $ac_cv_header_stdc = yes; then 19705 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 19706 if test "$cross_compiling" = yes; then : 19707 : 19708else 19709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19710/* end confdefs.h. */ 19711#include <ctype.h> 19712#include <stdlib.h> 19713#if ((' ' & 0x0FF) == 0x020) 19714# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 19715# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 19716#else 19717# define ISLOWER(c) \ 19718 (('a' <= (c) && (c) <= 'i') \ 19719 || ('j' <= (c) && (c) <= 'r') \ 19720 || ('s' <= (c) && (c) <= 'z')) 19721# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 19722#endif 19723 19724#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 19725int 19726main () 19727{ 19728 int i; 19729 for (i = 0; i < 256; i++) 19730 if (XOR (islower (i), ISLOWER (i)) 19731 || toupper (i) != TOUPPER (i)) 19732 return 2; 19733 return 0; 19734} 19735_ACEOF 19736if ac_fn_c_try_run "$LINENO"; then : 19737 19738else 19739 ac_cv_header_stdc=no 19740fi 19741rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19742 conftest.$ac_objext conftest.beam conftest.$ac_ext 19743fi 19744 19745fi 19746fi 19747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 19748$as_echo "$ac_cv_header_stdc" >&6; } 19749if test $ac_cv_header_stdc = yes; then 19750 19751$as_echo "#define STDC_HEADERS 1" >>confdefs.h 19752 19753fi 19754 19755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 19756$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 19757if ${ac_cv_header_sys_wait_h+:} false; then : 19758 $as_echo_n "(cached) " >&6 19759else 19760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19761/* end confdefs.h. */ 19762#include <sys/types.h> 19763#include <sys/wait.h> 19764#ifndef WEXITSTATUS 19765# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 19766#endif 19767#ifndef WIFEXITED 19768# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 19769#endif 19770 19771int 19772main () 19773{ 19774 int s; 19775 wait (&s); 19776 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 19777 ; 19778 return 0; 19779} 19780_ACEOF 19781if ac_fn_c_try_compile "$LINENO"; then : 19782 ac_cv_header_sys_wait_h=yes 19783else 19784 ac_cv_header_sys_wait_h=no 19785fi 19786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19787fi 19788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 19789$as_echo "$ac_cv_header_sys_wait_h" >&6; } 19790if test $ac_cv_header_sys_wait_h = yes; then 19791 19792$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 19793 19794fi 19795 19796for ac_header in sys/stat.h sys/time.h sys/wait.h sys/select.h unistd.h fcntl.h crypt.h termios.h 19797do : 19798 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19799ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19800if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19801 cat >>confdefs.h <<_ACEOF 19802#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19803_ACEOF 19804 19805fi 19806 19807done 19808 19809 19810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 19811$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 19812if ${ac_cv_c_const+:} false; then : 19813 $as_echo_n "(cached) " >&6 19814else 19815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19816/* end confdefs.h. */ 19817 19818int 19819main () 19820{ 19821 19822#ifndef __cplusplus 19823 /* Ultrix mips cc rejects this sort of thing. */ 19824 typedef int charset[2]; 19825 const charset cs = { 0, 0 }; 19826 /* SunOS 4.1.1 cc rejects this. */ 19827 char const *const *pcpcc; 19828 char **ppc; 19829 /* NEC SVR4.0.2 mips cc rejects this. */ 19830 struct point {int x, y;}; 19831 static struct point const zero = {0,0}; 19832 /* AIX XL C 1.02.0.0 rejects this. 19833 It does not let you subtract one const X* pointer from another in 19834 an arm of an if-expression whose if-part is not a constant 19835 expression */ 19836 const char *g = "string"; 19837 pcpcc = &g + (g ? g-g : 0); 19838 /* HPUX 7.0 cc rejects these. */ 19839 ++pcpcc; 19840 ppc = (char**) pcpcc; 19841 pcpcc = (char const *const *) ppc; 19842 { /* SCO 3.2v4 cc rejects this sort of thing. */ 19843 char tx; 19844 char *t = &tx; 19845 char const *s = 0 ? (char *) 0 : (char const *) 0; 19846 19847 *t++ = 0; 19848 if (s) return 0; 19849 } 19850 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 19851 int x[] = {25, 17}; 19852 const int *foo = &x[0]; 19853 ++foo; 19854 } 19855 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 19856 typedef const int *iptr; 19857 iptr p = 0; 19858 ++p; 19859 } 19860 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 19861 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 19862 struct s { int j; const int *ap[3]; } bx; 19863 struct s *b = &bx; b->j = 5; 19864 } 19865 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 19866 const int foo = 10; 19867 if (!foo) return 0; 19868 } 19869 return !cs[0] && !zero.x; 19870#endif 19871 19872 ; 19873 return 0; 19874} 19875_ACEOF 19876if ac_fn_c_try_compile "$LINENO"; then : 19877 ac_cv_c_const=yes 19878else 19879 ac_cv_c_const=no 19880fi 19881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19882fi 19883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 19884$as_echo "$ac_cv_c_const" >&6; } 19885if test $ac_cv_c_const = no; then 19886 19887$as_echo "#define const /**/" >>confdefs.h 19888 19889fi 19890 19891ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 19892if test "x$ac_cv_type_pid_t" = xyes; then : 19893 19894else 19895 19896cat >>confdefs.h <<_ACEOF 19897#define pid_t int 19898_ACEOF 19899 19900fi 19901 19902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 19903$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 19904if ${ac_cv_type_uid_t+:} false; then : 19905 $as_echo_n "(cached) " >&6 19906else 19907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19908/* end confdefs.h. */ 19909#include <sys/types.h> 19910 19911_ACEOF 19912if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19913 $EGREP "uid_t" >/dev/null 2>&1; then : 19914 ac_cv_type_uid_t=yes 19915else 19916 ac_cv_type_uid_t=no 19917fi 19918rm -f conftest* 19919 19920fi 19921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 19922$as_echo "$ac_cv_type_uid_t" >&6; } 19923if test $ac_cv_type_uid_t = no; then 19924 19925$as_echo "#define uid_t int" >>confdefs.h 19926 19927 19928$as_echo "#define gid_t int" >>confdefs.h 19929 19930fi 19931 19932for ac_func in setsid setlogin 19933do : 19934 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19935ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19936if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19937 cat >>confdefs.h <<_ACEOF 19938#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19939_ACEOF 19940 19941fi 19942done 19943 19944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 19945$as_echo_n "checking for crypt in -lcrypt... " >&6; } 19946if ${ac_cv_lib_crypt_crypt+:} false; then : 19947 $as_echo_n "(cached) " >&6 19948else 19949 ac_check_lib_save_LIBS=$LIBS 19950LIBS="-lcrypt $LIBS" 19951cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19952/* end confdefs.h. */ 19953 19954/* Override any GCC internal prototype to avoid an error. 19955 Use char because int might match the return type of a GCC 19956 builtin and then its argument prototype would still apply. */ 19957#ifdef __cplusplus 19958extern "C" 19959#endif 19960char crypt (); 19961int 19962main () 19963{ 19964return crypt (); 19965 ; 19966 return 0; 19967} 19968_ACEOF 19969if ac_fn_c_try_link "$LINENO"; then : 19970 ac_cv_lib_crypt_crypt=yes 19971else 19972 ac_cv_lib_crypt_crypt=no 19973fi 19974rm -f core conftest.err conftest.$ac_objext \ 19975 conftest$ac_exeext conftest.$ac_ext 19976LIBS=$ac_check_lib_save_LIBS 19977fi 19978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 19979$as_echo "$ac_cv_lib_crypt_crypt" >&6; } 19980if test "x$ac_cv_lib_crypt_crypt" = xyes; then : 19981 CRYPTLIBS="-lcrypt" 19982fi 19983 19984saveLIBS="$LIBS" 19985LIBS="$CRYPTLIBS $LIBS" 19986ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" 19987if test "x$ac_cv_func_crypt" = xyes; then : 19988 19989cat >>confdefs.h <<_ACEOF 19990#define HAVE_CRYPT 1 19991_ACEOF 19992 19993fi 19994 19995ac_fn_c_check_func "$LINENO" "bcrypt" "ac_cv_func_bcrypt" 19996if test "x$ac_cv_func_bcrypt" = xyes; then : 19997 19998cat >>confdefs.h <<_ACEOF 19999#define HAVE_BCRYPT 1 20000_ACEOF 20001 20002fi 20003 20004LIBS="$saveLIBS" 20005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt() prototype" >&5 20006$as_echo_n "checking for crypt() prototype... " >&6; } 20007if ${userdb_cv_NEED_CRYPT_PROTOTYPE+:} false; then : 20008 $as_echo_n "(cached) " >&6 20009else 20010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20011/* end confdefs.h. */ 20012 20013 #if HAVE_CRYPT_H 20014 #include <crypt.h> 20015 #endif 20016 #if HAVE_UNISTD_H 20017 #include <unistd.h> 20018 #endif 20019 int crypt(int, int); 20020 20021 20022int 20023main () 20024{ 20025 20026 ; 20027 return 0; 20028} 20029_ACEOF 20030if ac_fn_c_try_compile "$LINENO"; then : 20031 userdb_cv_NEED_CRYPT_PROTOTYPE=1 20032else 20033 userdb_cv_NEED_CRYPT_PROTOTYPE=0 20034fi 20035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20036 20037 20038fi 20039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5 20040$as_echo "$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6; } 20041 20042 20043cat >>confdefs.h <<_ACEOF 20044#define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE 20045_ACEOF 20046 20047 20048 20049 20050 20051 20052 20053# Check whether --with-authdaemonrc was given. 20054if test "${with_authdaemonrc+set}" = set; then : 20055 withval=$with_authdaemonrc; authdaemonrc="$withval" 20056else 20057 authdaemonrc="$pkgconfdir/authdaemonrc" 20058fi 20059 20060 20061 20062 20063# Check whether --with-authdaemonvar was given. 20064if test "${with_authdaemonvar+set}" = set; then : 20065 withval=$with_authdaemonvar; authdaemonvar="$withval" 20066else 20067 authdaemonvar="$localstatedir/spool/authdaemon" 20068fi 20069 20070 20071 20072 20073 20074 20075rm -f authdaemonrc.h authldaprc.h authmysqlrc.h authpgsqlrc.h vpopmail_config.h 20076 20077 20078result="" 20079 20080if test -x "$COURIERCONFIG" 20081then 20082 $COURIERCONFIG >conftest.out || exit 1 20083 sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1 20084 . ./conftest2.out 20085 rm -f conftest.out conftest2.out 20086 20087 cmailuser="$mailuser" 20088 cmailgroup="$mailgroup" 20089 result=" (from courier-config)" 20090fi 20091 20092if test -x "$bindir/courierauthconfig" 20093then 20094 $bindir/courierauthconfig --configfiles >conftest.out || exit 1 20095 sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1 20096 . ./conftest2.out 20097 rm -f conftest.out conftest2.out 20098 20099 cmailuser="$mailuser" 20100 cmailgroup="$mailgroup" 20101 result=" (from previous courierauthconfig)" 20102fi 20103 20104 20105 20106LB='[' 20107RB=']' 20108 20109 20110 20111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mail userid" >&5 20112$as_echo_n "checking for mail userid... " >&6; } 20113 20114 20115# Check whether --with-mailuser was given. 20116if test "${with_mailuser+set}" = set; then : 20117 withval=$with_mailuser; mailuser="$withval" 20118else 20119 if test "$cmailuser" = "" 20120 then 20121 if test "$cross_compiling" = yes; then : 20122 as_fn_error $? "Must use --with-mailuser when cross compiling." "$LINENO" 5 20123else 20124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20125/* end confdefs.h. */ 20126 20127#include <stdio.h> 20128#include <pwd.h> 20129#include <stdlib.h> 20130 20131static const char *ids $LB $RB={"courier","daemon","adm","bin","root", 0}; 20132 20133int main() 20134{ 20135int i; 20136FILE *f; 20137char *p; 20138 20139 for (i=0; ids $LB i $RB; i++) 20140 if (getpwnam(ids $LB i $RB)) break; 20141 20142 f=fopen("conftest.out", "w"); 20143 if (f && ids $LB i $RB) 20144 { 20145 fprintf(f, "%s\n", ids $LB i $RB); 20146 fclose(f); 20147 exit(0); 20148 } 20149 fclose(f); 20150 exit (1); 20151 return (1); 20152} 20153 20154_ACEOF 20155if ac_fn_c_try_run "$LINENO"; then : 20156 mailuser=`cat conftest.out` 20157else 20158 as_fn_error use --with-mailuser. "Cannot determine mail user" "$LINENO" 5 20159fi 20160rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20161 conftest.$ac_objext conftest.beam conftest.$ac_ext 20162fi 20163 20164 else 20165 mailuser="$cmailuser" 20166 fi 20167 ac_configure_args="$ac_configure_args --with-mailuser=$mailuser" 20168fi 20169 20170 20171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailuser $result" >&5 20172$as_echo "$mailuser $result" >&6; } 20173 20174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mail group id" >&5 20175$as_echo_n "checking for mail group id... " >&6; } 20176 20177 20178# Check whether --with-mailgroup was given. 20179if test "${with_mailgroup+set}" = set; then : 20180 withval=$with_mailgroup; mailgroup="$withval" 20181else 20182 if test "$cmailgroup" = "" 20183 then 20184 if test "$cross_compiling" = yes; then : 20185 as_fn_error $? "Must use --with-mailgroup when cross compiling." "$LINENO" 5 20186else 20187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20188/* end confdefs.h. */ 20189 20190#include <stdio.h> 20191#include <grp.h> 20192#include <stdlib.h> 20193 20194static const char *ids $LB $RB={"courier", "daemon","sys","adm", "root", 0}; 20195 20196int main() 20197{ 20198int i; 20199FILE *f; 20200 20201 for (i=0; ids $LB i $RB; i++) 20202 if (getgrnam(ids $LB i $RB)) break; 20203 20204 f=fopen("conftest.out", "w"); 20205 if (f && ids $LB i $RB) 20206 { 20207 fprintf(f, "%s\n", ids $LB i $RB); 20208 fclose(f); 20209 exit(0); 20210 } 20211 fclose(f); 20212 exit (1); 20213 return (1); 20214} 20215 20216_ACEOF 20217if ac_fn_c_try_run "$LINENO"; then : 20218 mailgroup=`cat conftest.out` 20219else 20220 as_fn_error use --with-mailgroup. "Cannot determine mail group" "$LINENO" 5 20221fi 20222rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20223 conftest.$ac_objext conftest.beam conftest.$ac_ext 20224fi 20225 20226 else 20227 mailgroup="$cmailgroup" 20228 fi 20229 ac_configure_args="$ac_configure_args --with-mailgroup=$mailgroup" 20230 20231fi 20232 20233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailgroup $result" >&5 20234$as_echo "$mailgroup $result" >&6; } 20235 20236 20237rm -f conftest.out 20238 20239 20240# Check whether --with-stdheaderdir was given. 20241if test "${with_stdheaderdir+set}" = set; then : 20242 withval=$with_stdheaderdir; 20243 if test "$withval" = "no" 20244 then 20245 20246cat >>confdefs.h <<_ACEOF 20247#define HAVE_NOSTDHEADERDIR 1 20248_ACEOF 20249 20250 fi 20251 20252fi 20253 20254 20255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 20256$as_echo_n "checking for socklen_t... " >&6; } 20257if ${authlib_cv_hassocklen_t+:} false; then : 20258 $as_echo_n "(cached) " >&6 20259else 20260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20261/* end confdefs.h. */ 20262 20263 20264#include <sys/types.h> 20265#include <sys/socket.h> 20266 20267socklen_t sl_t; 20268 20269_ACEOF 20270if ac_fn_c_try_compile "$LINENO"; then : 20271 authlib_cv_hassocklen_t=yes 20272else 20273 authlib_cv_hassocklen_t=no 20274fi 20275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20276 20277fi 20278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $authlib_cv_hassocklen_t" >&5 20279$as_echo "$authlib_cv_hassocklen_t" >&6; } 20280 20281socklen_t="int" 20282 20283if test $authlib_cv_hassocklen_t = yes 20284then 20285 : 20286else 20287 20288cat >>confdefs.h <<_ACEOF 20289#define socklen_t int 20290_ACEOF 20291 20292fi 20293 20294 20295# Check whether --with-repository was given. 20296if test "${with_repository+set}" = set; then : 20297 withval=$with_repository; REPOSITORY="$withval" 20298fi 20299 20300 20301 20302 if test -d ${srcdir}/libs/docbook; then 20303 HAVE_SGML_TRUE= 20304 HAVE_SGML_FALSE='#' 20305else 20306 HAVE_SGML_TRUE='#' 20307 HAVE_SGML_FALSE= 20308fi 20309 20310 20311save_LDFLAGS="$LDFLAGS" 20312LDFLAGS="-Wl,--enable-new-dtags $LDFLAGS" 20313 20314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-new-dtags option" >&5 20315$as_echo_n "checking --enable-new-dtags option... " >&6; } 20316if ${authlib_cv_enable_new_dtags+:} false; then : 20317 $as_echo_n "(cached) " >&6 20318else 20319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20320/* end confdefs.h. */ 20321 20322 20323int 20324main () 20325{ 20326return 0; 20327 ; 20328 return 0; 20329} 20330_ACEOF 20331if ac_fn_c_try_link "$LINENO"; then : 20332 authlib_cv_enable_new_dtags=yes 20333else 20334 authlib_cv_enable_new_dtags=no 20335fi 20336rm -f core conftest.err conftest.$ac_objext \ 20337 conftest$ac_exeext conftest.$ac_ext 20338 20339 20340fi 20341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $authlib_cv_enable_new_dtags" >&5 20342$as_echo "$authlib_cv_enable_new_dtags" >&6; } 20343 20344if test "$authlib_cv_enable_new_dtags" = "yes" 20345then 20346 courierauth_ldflags="-Wl,--enable-new-dtags $courierauth_ldflags" 20347fi 20348 20349 20350 20351VERSION_INFO=0:0:0 20352 20353 20354# This gets built by the make rule, and is not in the git repo 20355 20356for f in authdaemonrc.in 20357do 20358 if test ! -f "$srcdir/$f" 20359 then 20360 cp -p "$srcdir/$f.git" "$srcdir/$f" 20361 touch "$srcdir/$f.git" 20362 fi 20363done 20364 20365subdirs="$subdirs libs/bdbobj libs/gdbmobj libs/md5 libs/sha1 libs/libhmac libs/numlib libs/makedat userdb libs/rfc822 libs/random128 libs/ " 20366 20367 20368ac_config_files="$ac_config_files Makefile authdaemond authdaemonrc authsystem.passwd README.authdebug.html dbobj.config dbobj.h courier-authlib.spec courier-authlib.sysvinit courier-authlib.service userdb-test-cram-md5.pl" 20369 20370cat >confcache <<\_ACEOF 20371# This file is a shell script that caches the results of configure 20372# tests run on this system so they can be shared between configure 20373# scripts and configure runs, see configure's option --config-cache. 20374# It is not useful on other systems. If it contains results you don't 20375# want to keep, you may remove or edit it. 20376# 20377# config.status only pays attention to the cache file if you give it 20378# the --recheck option to rerun configure. 20379# 20380# `ac_cv_env_foo' variables (set or unset) will be overridden when 20381# loading this file, other *unset* `ac_cv_foo' will be assigned the 20382# following values. 20383 20384_ACEOF 20385 20386# The following way of writing the cache mishandles newlines in values, 20387# but we know of no workaround that is simple, portable, and efficient. 20388# So, we kill variables containing newlines. 20389# Ultrix sh set writes to stderr and can't be redirected directly, 20390# and sets the high bit in the cache file unless we assign to the vars. 20391( 20392 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20393 eval ac_val=\$$ac_var 20394 case $ac_val in #( 20395 *${as_nl}*) 20396 case $ac_var in #( 20397 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20398$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20399 esac 20400 case $ac_var in #( 20401 _ | IFS | as_nl) ;; #( 20402 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20403 *) { eval $ac_var=; unset $ac_var;} ;; 20404 esac ;; 20405 esac 20406 done 20407 20408 (set) 2>&1 | 20409 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20410 *${as_nl}ac_space=\ *) 20411 # `set' does not quote correctly, so add quotes: double-quote 20412 # substitution turns \\\\ into \\, and sed turns \\ into \. 20413 sed -n \ 20414 "s/'/'\\\\''/g; 20415 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20416 ;; #( 20417 *) 20418 # `set' quotes correctly as required by POSIX, so do not add quotes. 20419 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20420 ;; 20421 esac | 20422 sort 20423) | 20424 sed ' 20425 /^ac_cv_env_/b end 20426 t clear 20427 :clear 20428 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20429 t end 20430 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20431 :end' >>confcache 20432if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20433 if test -w "$cache_file"; then 20434 if test "x$cache_file" != "x/dev/null"; then 20435 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20436$as_echo "$as_me: updating cache $cache_file" >&6;} 20437 if test ! -f "$cache_file" || test -h "$cache_file"; then 20438 cat confcache >"$cache_file" 20439 else 20440 case $cache_file in #( 20441 */* | ?:*) 20442 mv -f confcache "$cache_file"$$ && 20443 mv -f "$cache_file"$$ "$cache_file" ;; #( 20444 *) 20445 mv -f confcache "$cache_file" ;; 20446 esac 20447 fi 20448 fi 20449 else 20450 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20451$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20452 fi 20453fi 20454rm -f confcache 20455 20456test "x$prefix" = xNONE && prefix=$ac_default_prefix 20457# Let make expand exec_prefix. 20458test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20459 20460DEFS=-DHAVE_CONFIG_H 20461 20462ac_libobjs= 20463ac_ltlibobjs= 20464U= 20465for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20466 # 1. Remove the extension, and $U if already installed. 20467 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20468 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 20469 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20470 # will be set to the directory where LIBOBJS objects are built. 20471 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20472 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20473done 20474LIBOBJS=$ac_libobjs 20475 20476LTLIBOBJS=$ac_ltlibobjs 20477 20478 20479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20480$as_echo_n "checking that generated files are newer than configure... " >&6; } 20481 if test -n "$am_sleep_pid"; then 20482 # Hide warnings about reused PIDs. 20483 wait $am_sleep_pid 2>/dev/null 20484 fi 20485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 20486$as_echo "done" >&6; } 20487 if test -n "$EXEEXT"; then 20488 am__EXEEXT_TRUE= 20489 am__EXEEXT_FALSE='#' 20490else 20491 am__EXEEXT_TRUE='#' 20492 am__EXEEXT_FALSE= 20493fi 20494 20495if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20496 as_fn_error $? "conditional \"AMDEP\" was never defined. 20497Usually this means the macro was only invoked conditionally." "$LINENO" 5 20498fi 20499if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20500 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20501Usually this means the macro was only invoked conditionally." "$LINENO" 5 20502fi 20503if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20504 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 20505Usually this means the macro was only invoked conditionally." "$LINENO" 5 20506fi 20507if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then 20508 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined. 20509Usually this means the macro was only invoked conditionally." "$LINENO" 5 20510fi 20511if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then 20512 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined. 20513Usually this means the macro was only invoked conditionally." "$LINENO" 5 20514fi 20515LT_CONFIG_H=courier_auth_config.h 20516 20517 _ltdl_libobjs= 20518 _ltdl_ltlibobjs= 20519 if test -n "$_LT_LIBOBJS"; then 20520 # Remove the extension. 20521 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' 20522 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do 20523 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" 20524 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" 20525 done 20526 fi 20527 ltdl_LIBOBJS=$_ltdl_libobjs 20528 20529 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs 20530 20531 20532if test -z "${HAVE_LDAP_TRUE}" && test -z "${HAVE_LDAP_FALSE}"; then 20533 as_fn_error $? "conditional \"HAVE_LDAP\" was never defined. 20534Usually this means the macro was only invoked conditionally." "$LINENO" 5 20535fi 20536if test -z "${HAVE_AUTHPGSQL_TRUE}" && test -z "${HAVE_AUTHPGSQL_FALSE}"; then 20537 as_fn_error $? "conditional \"HAVE_AUTHPGSQL\" was never defined. 20538Usually this means the macro was only invoked conditionally." "$LINENO" 5 20539fi 20540if test -z "${HAVE_AUTHMYSQL_TRUE}" && test -z "${HAVE_AUTHMYSQL_FALSE}"; then 20541 as_fn_error $? "conditional \"HAVE_AUTHMYSQL\" was never defined. 20542Usually this means the macro was only invoked conditionally." "$LINENO" 5 20543fi 20544if test -z "${HAVE_AUTHSQLITE_TRUE}" && test -z "${HAVE_AUTHSQLITE_FALSE}"; then 20545 as_fn_error $? "conditional \"HAVE_AUTHSQLITE\" was never defined. 20546Usually this means the macro was only invoked conditionally." "$LINENO" 5 20547fi 20548if test -z "${HAVE_CUSTOM_TRUE}" && test -z "${HAVE_CUSTOM_FALSE}"; then 20549 as_fn_error $? "conditional \"HAVE_CUSTOM\" was never defined. 20550Usually this means the macro was only invoked conditionally." "$LINENO" 5 20551fi 20552if test -z "${HAVE_PIPE_TRUE}" && test -z "${HAVE_PIPE_FALSE}"; then 20553 as_fn_error $? "conditional \"HAVE_PIPE\" was never defined. 20554Usually this means the macro was only invoked conditionally." "$LINENO" 5 20555fi 20556if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then 20557 as_fn_error $? "conditional \"HAVE_SGML\" was never defined. 20558Usually this means the macro was only invoked conditionally." "$LINENO" 5 20559fi 20560 20561: "${CONFIG_STATUS=./config.status}" 20562ac_write_fail=0 20563ac_clean_files_save=$ac_clean_files 20564ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20565{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20566$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 20567as_write_fail=0 20568cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20569#! $SHELL 20570# Generated by $as_me. 20571# Run this file to recreate the current configuration. 20572# Compiler output produced by configure, useful for debugging 20573# configure, is in config.log if it exists. 20574 20575debug=false 20576ac_cs_recheck=false 20577ac_cs_silent=false 20578 20579SHELL=\${CONFIG_SHELL-$SHELL} 20580export SHELL 20581_ASEOF 20582cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20583## -------------------- ## 20584## M4sh Initialization. ## 20585## -------------------- ## 20586 20587# Be more Bourne compatible 20588DUALCASE=1; export DUALCASE # for MKS sh 20589if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20590 emulate sh 20591 NULLCMD=: 20592 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20593 # is contrary to our usage. Disable this feature. 20594 alias -g '${1+"$@"}'='"$@"' 20595 setopt NO_GLOB_SUBST 20596else 20597 case `(set -o) 2>/dev/null` in #( 20598 *posix*) : 20599 set -o posix ;; #( 20600 *) : 20601 ;; 20602esac 20603fi 20604 20605 20606as_nl=' 20607' 20608export as_nl 20609# Printing a long string crashes Solaris 7 /usr/bin/printf. 20610as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 20611as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 20612as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 20613# Prefer a ksh shell builtin over an external printf program on Solaris, 20614# but without wasting forks for bash or zsh. 20615if test -z "$BASH_VERSION$ZSH_VERSION" \ 20616 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 20617 as_echo='print -r --' 20618 as_echo_n='print -rn --' 20619elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 20620 as_echo='printf %s\n' 20621 as_echo_n='printf %s' 20622else 20623 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 20624 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 20625 as_echo_n='/usr/ucb/echo -n' 20626 else 20627 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 20628 as_echo_n_body='eval 20629 arg=$1; 20630 case $arg in #( 20631 *"$as_nl"*) 20632 expr "X$arg" : "X\\(.*\\)$as_nl"; 20633 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 20634 esac; 20635 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 20636 ' 20637 export as_echo_n_body 20638 as_echo_n='sh -c $as_echo_n_body as_echo' 20639 fi 20640 export as_echo_body 20641 as_echo='sh -c $as_echo_body as_echo' 20642fi 20643 20644# The user is always right. 20645if test "${PATH_SEPARATOR+set}" != set; then 20646 PATH_SEPARATOR=: 20647 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20648 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20649 PATH_SEPARATOR=';' 20650 } 20651fi 20652 20653 20654# IFS 20655# We need space, tab and new line, in precisely that order. Quoting is 20656# there to prevent editors from complaining about space-tab. 20657# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20658# splitting by setting IFS to empty value.) 20659IFS=" "" $as_nl" 20660 20661# Find who we are. Look in the path if we contain no directory separator. 20662as_myself= 20663case $0 in #(( 20664 *[\\/]* ) as_myself=$0 ;; 20665 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20666for as_dir in $PATH 20667do 20668 IFS=$as_save_IFS 20669 test -z "$as_dir" && as_dir=. 20670 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20671 done 20672IFS=$as_save_IFS 20673 20674 ;; 20675esac 20676# We did not find ourselves, most probably we were run as `sh COMMAND' 20677# in which case we are not to be found in the path. 20678if test "x$as_myself" = x; then 20679 as_myself=$0 20680fi 20681if test ! -f "$as_myself"; then 20682 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20683 exit 1 20684fi 20685 20686# Unset variables that we do not need and which cause bugs (e.g. in 20687# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 20688# suppresses any "Segmentation fault" message there. '((' could 20689# trigger a bug in pdksh 5.2.14. 20690for as_var in BASH_ENV ENV MAIL MAILPATH 20691do eval test x\${$as_var+set} = xset \ 20692 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20693done 20694PS1='$ ' 20695PS2='> ' 20696PS4='+ ' 20697 20698# NLS nuisances. 20699LC_ALL=C 20700export LC_ALL 20701LANGUAGE=C 20702export LANGUAGE 20703 20704# CDPATH. 20705(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20706 20707 20708# as_fn_error STATUS ERROR [LINENO LOG_FD] 20709# ---------------------------------------- 20710# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20711# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20712# script with STATUS, using 1 if that was 0. 20713as_fn_error () 20714{ 20715 as_status=$1; test $as_status -eq 0 && as_status=1 20716 if test "$4"; then 20717 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20718 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20719 fi 20720 $as_echo "$as_me: error: $2" >&2 20721 as_fn_exit $as_status 20722} # as_fn_error 20723 20724 20725# as_fn_set_status STATUS 20726# ----------------------- 20727# Set $? to STATUS, without forking. 20728as_fn_set_status () 20729{ 20730 return $1 20731} # as_fn_set_status 20732 20733# as_fn_exit STATUS 20734# ----------------- 20735# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20736as_fn_exit () 20737{ 20738 set +e 20739 as_fn_set_status $1 20740 exit $1 20741} # as_fn_exit 20742 20743# as_fn_unset VAR 20744# --------------- 20745# Portably unset VAR. 20746as_fn_unset () 20747{ 20748 { eval $1=; unset $1;} 20749} 20750as_unset=as_fn_unset 20751# as_fn_append VAR VALUE 20752# ---------------------- 20753# Append the text in VALUE to the end of the definition contained in VAR. Take 20754# advantage of any shell optimizations that allow amortized linear growth over 20755# repeated appends, instead of the typical quadratic growth present in naive 20756# implementations. 20757if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20758 eval 'as_fn_append () 20759 { 20760 eval $1+=\$2 20761 }' 20762else 20763 as_fn_append () 20764 { 20765 eval $1=\$$1\$2 20766 } 20767fi # as_fn_append 20768 20769# as_fn_arith ARG... 20770# ------------------ 20771# Perform arithmetic evaluation on the ARGs, and store the result in the 20772# global $as_val. Take advantage of shells that can avoid forks. The arguments 20773# must be portable across $(()) and expr. 20774if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20775 eval 'as_fn_arith () 20776 { 20777 as_val=$(( $* )) 20778 }' 20779else 20780 as_fn_arith () 20781 { 20782 as_val=`expr "$@" || test $? -eq 1` 20783 } 20784fi # as_fn_arith 20785 20786 20787if expr a : '\(a\)' >/dev/null 2>&1 && 20788 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20789 as_expr=expr 20790else 20791 as_expr=false 20792fi 20793 20794if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20795 as_basename=basename 20796else 20797 as_basename=false 20798fi 20799 20800if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20801 as_dirname=dirname 20802else 20803 as_dirname=false 20804fi 20805 20806as_me=`$as_basename -- "$0" || 20807$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20808 X"$0" : 'X\(//\)$' \| \ 20809 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20810$as_echo X/"$0" | 20811 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20812 s//\1/ 20813 q 20814 } 20815 /^X\/\(\/\/\)$/{ 20816 s//\1/ 20817 q 20818 } 20819 /^X\/\(\/\).*/{ 20820 s//\1/ 20821 q 20822 } 20823 s/.*/./; q'` 20824 20825# Avoid depending upon Character Ranges. 20826as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20827as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20828as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20829as_cr_digits='0123456789' 20830as_cr_alnum=$as_cr_Letters$as_cr_digits 20831 20832ECHO_C= ECHO_N= ECHO_T= 20833case `echo -n x` in #((((( 20834-n*) 20835 case `echo 'xy\c'` in 20836 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20837 xy) ECHO_C='\c';; 20838 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20839 ECHO_T=' ';; 20840 esac;; 20841*) 20842 ECHO_N='-n';; 20843esac 20844 20845rm -f conf$$ conf$$.exe conf$$.file 20846if test -d conf$$.dir; then 20847 rm -f conf$$.dir/conf$$.file 20848else 20849 rm -f conf$$.dir 20850 mkdir conf$$.dir 2>/dev/null 20851fi 20852if (echo >conf$$.file) 2>/dev/null; then 20853 if ln -s conf$$.file conf$$ 2>/dev/null; then 20854 as_ln_s='ln -s' 20855 # ... but there are two gotchas: 20856 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20857 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20858 # In both cases, we have to default to `cp -pR'. 20859 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20860 as_ln_s='cp -pR' 20861 elif ln conf$$.file conf$$ 2>/dev/null; then 20862 as_ln_s=ln 20863 else 20864 as_ln_s='cp -pR' 20865 fi 20866else 20867 as_ln_s='cp -pR' 20868fi 20869rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20870rmdir conf$$.dir 2>/dev/null 20871 20872 20873# as_fn_mkdir_p 20874# ------------- 20875# Create "$as_dir" as a directory, including parents if necessary. 20876as_fn_mkdir_p () 20877{ 20878 20879 case $as_dir in #( 20880 -*) as_dir=./$as_dir;; 20881 esac 20882 test -d "$as_dir" || eval $as_mkdir_p || { 20883 as_dirs= 20884 while :; do 20885 case $as_dir in #( 20886 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20887 *) as_qdir=$as_dir;; 20888 esac 20889 as_dirs="'$as_qdir' $as_dirs" 20890 as_dir=`$as_dirname -- "$as_dir" || 20891$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20892 X"$as_dir" : 'X\(//\)[^/]' \| \ 20893 X"$as_dir" : 'X\(//\)$' \| \ 20894 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20895$as_echo X"$as_dir" | 20896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20897 s//\1/ 20898 q 20899 } 20900 /^X\(\/\/\)[^/].*/{ 20901 s//\1/ 20902 q 20903 } 20904 /^X\(\/\/\)$/{ 20905 s//\1/ 20906 q 20907 } 20908 /^X\(\/\).*/{ 20909 s//\1/ 20910 q 20911 } 20912 s/.*/./; q'` 20913 test -d "$as_dir" && break 20914 done 20915 test -z "$as_dirs" || eval "mkdir $as_dirs" 20916 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20917 20918 20919} # as_fn_mkdir_p 20920if mkdir -p . 2>/dev/null; then 20921 as_mkdir_p='mkdir -p "$as_dir"' 20922else 20923 test -d ./-p && rmdir ./-p 20924 as_mkdir_p=false 20925fi 20926 20927 20928# as_fn_executable_p FILE 20929# ----------------------- 20930# Test if FILE is an executable regular file. 20931as_fn_executable_p () 20932{ 20933 test -f "$1" && test -x "$1" 20934} # as_fn_executable_p 20935as_test_x='test -x' 20936as_executable_p=as_fn_executable_p 20937 20938# Sed expression to map a string onto a valid CPP name. 20939as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20940 20941# Sed expression to map a string onto a valid variable name. 20942as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20943 20944 20945exec 6>&1 20946## ----------------------------------- ## 20947## Main body of $CONFIG_STATUS script. ## 20948## ----------------------------------- ## 20949_ASEOF 20950test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20951 20952cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20953# Save the log message, to keep $0 and so on meaningful, and to 20954# report actual input values of CONFIG_FILES etc. instead of their 20955# values after options handling. 20956ac_log=" 20957This file was extended by courier-authlib $as_me 0.71.4, which was 20958generated by GNU Autoconf 2.69. Invocation command line was 20959 20960 CONFIG_FILES = $CONFIG_FILES 20961 CONFIG_HEADERS = $CONFIG_HEADERS 20962 CONFIG_LINKS = $CONFIG_LINKS 20963 CONFIG_COMMANDS = $CONFIG_COMMANDS 20964 $ $0 $@ 20965 20966on `(hostname || uname -n) 2>/dev/null | sed 1q` 20967" 20968 20969_ACEOF 20970 20971case $ac_config_files in *" 20972"*) set x $ac_config_files; shift; ac_config_files=$*;; 20973esac 20974 20975case $ac_config_headers in *" 20976"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20977esac 20978 20979 20980cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20981# Files that config.status was made for. 20982config_files="$ac_config_files" 20983config_headers="$ac_config_headers" 20984config_commands="$ac_config_commands" 20985 20986_ACEOF 20987 20988cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20989ac_cs_usage="\ 20990\`$as_me' instantiates files and other configuration actions 20991from templates according to the current configuration. Unless the files 20992and actions are specified as TAGs, all are instantiated by default. 20993 20994Usage: $0 [OPTION]... [TAG]... 20995 20996 -h, --help print this help, then exit 20997 -V, --version print version number and configuration settings, then exit 20998 --config print configuration, then exit 20999 -q, --quiet, --silent 21000 do not print progress messages 21001 -d, --debug don't remove temporary files 21002 --recheck update $as_me by reconfiguring in the same conditions 21003 --file=FILE[:TEMPLATE] 21004 instantiate the configuration file FILE 21005 --header=FILE[:TEMPLATE] 21006 instantiate the configuration header FILE 21007 21008Configuration files: 21009$config_files 21010 21011Configuration headers: 21012$config_headers 21013 21014Configuration commands: 21015$config_commands 21016 21017Report bugs to <courier-users@lists.sourceforge.net>." 21018 21019_ACEOF 21020cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21021ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 21022ac_cs_version="\\ 21023courier-authlib config.status 0.71.4 21024configured by $0, generated by GNU Autoconf 2.69, 21025 with options \\"\$ac_cs_config\\" 21026 21027Copyright (C) 2012 Free Software Foundation, Inc. 21028This config.status script is free software; the Free Software Foundation 21029gives unlimited permission to copy, distribute and modify it." 21030 21031ac_pwd='$ac_pwd' 21032srcdir='$srcdir' 21033INSTALL='$INSTALL' 21034MKDIR_P='$MKDIR_P' 21035AWK='$AWK' 21036test -n "\$AWK" || AWK=awk 21037_ACEOF 21038 21039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21040# The default lists apply if the user does not specify any file. 21041ac_need_defaults=: 21042while test $# != 0 21043do 21044 case $1 in 21045 --*=?*) 21046 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21047 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21048 ac_shift=: 21049 ;; 21050 --*=) 21051 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21052 ac_optarg= 21053 ac_shift=: 21054 ;; 21055 *) 21056 ac_option=$1 21057 ac_optarg=$2 21058 ac_shift=shift 21059 ;; 21060 esac 21061 21062 case $ac_option in 21063 # Handling of the options. 21064 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21065 ac_cs_recheck=: ;; 21066 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21067 $as_echo "$ac_cs_version"; exit ;; 21068 --config | --confi | --conf | --con | --co | --c ) 21069 $as_echo "$ac_cs_config"; exit ;; 21070 --debug | --debu | --deb | --de | --d | -d ) 21071 debug=: ;; 21072 --file | --fil | --fi | --f ) 21073 $ac_shift 21074 case $ac_optarg in 21075 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21076 '') as_fn_error $? "missing file argument" ;; 21077 esac 21078 as_fn_append CONFIG_FILES " '$ac_optarg'" 21079 ac_need_defaults=false;; 21080 --header | --heade | --head | --hea ) 21081 $ac_shift 21082 case $ac_optarg in 21083 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21084 esac 21085 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21086 ac_need_defaults=false;; 21087 --he | --h) 21088 # Conflict between --help and --header 21089 as_fn_error $? "ambiguous option: \`$1' 21090Try \`$0 --help' for more information.";; 21091 --help | --hel | -h ) 21092 $as_echo "$ac_cs_usage"; exit ;; 21093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21094 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21095 ac_cs_silent=: ;; 21096 21097 # This is an error. 21098 -*) as_fn_error $? "unrecognized option: \`$1' 21099Try \`$0 --help' for more information." ;; 21100 21101 *) as_fn_append ac_config_targets " $1" 21102 ac_need_defaults=false ;; 21103 21104 esac 21105 shift 21106done 21107 21108ac_configure_extra_args= 21109 21110if $ac_cs_silent; then 21111 exec 6>/dev/null 21112 ac_configure_extra_args="$ac_configure_extra_args --silent" 21113fi 21114 21115_ACEOF 21116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21117if \$ac_cs_recheck; then 21118 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21119 shift 21120 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21121 CONFIG_SHELL='$SHELL' 21122 export CONFIG_SHELL 21123 exec "\$@" 21124fi 21125 21126_ACEOF 21127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21128exec 5>>config.log 21129{ 21130 echo 21131 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21132## Running $as_me. ## 21133_ASBOX 21134 $as_echo "$ac_log" 21135} >&5 21136 21137_ACEOF 21138cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21139# 21140# INIT-COMMANDS 21141# 21142AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21143 21144 21145# The HP-UX ksh and POSIX shell print the target directory to stdout 21146# if CDPATH is set. 21147(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21148 21149sed_quote_subst='$sed_quote_subst' 21150double_quote_subst='$double_quote_subst' 21151delay_variable_subst='$delay_variable_subst' 21152macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21153macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21154enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21155enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21156pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21157enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21158shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21159SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21160ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21161PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21162host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21163host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21164host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21165build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21166build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21167build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21168SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21169Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21170GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21171EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21172FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21173LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21174NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21175LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21176max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21177ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21178exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21179lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21180lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21181lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21182lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21183lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21184reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21185reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21186OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21187deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21188file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21189file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21190want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21191DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21192sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21193AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21194AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21195archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21196STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21197RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21198old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21199old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21200old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21201lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21202CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21203CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21204compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21205GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21206lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21207lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21208lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21209lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21210lt_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"`' 21211lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21212nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21213lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21214lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21215objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21216MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21217lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21218lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21219lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21220lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21221lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21222need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21223MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21224DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21225NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21226LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21227OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21228OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21229libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21230shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21231extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21232archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21233enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21234export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21235whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21236compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21237old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21238old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21239archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21240archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21241module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21242module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21243with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21244allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21245no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21246hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21247hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21248hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21249hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21250hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21251hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21252hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21253inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21254link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21255always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21256export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21257exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21258include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21259prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21260postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21261file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21262variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21263need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21264need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21265version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21266runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21267shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21268shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21269libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21270library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21271soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21272install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21273postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21274postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21275finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21276finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21277hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21278sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21279configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21280configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21281hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21282enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21283enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21284enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21285old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21286striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21287compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 21288predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 21289postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 21290predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 21291postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 21292compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 21293LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 21294reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 21295reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21296old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21297compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 21298GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 21299lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 21300lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 21301lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 21302lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 21303lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 21304archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 21305enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 21306export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21307whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21308compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 21309old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21310old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21311archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21312archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21313module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21314module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21315with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 21316allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 21317no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 21318hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21319hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 21320hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 21321hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 21322hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 21323hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 21324hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 21325inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 21326link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 21327always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 21328export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21329exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 21330include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 21331prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21332postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21333file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 21334hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 21335compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 21336predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 21337postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 21338predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 21339postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 21340compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 21341 21342LTCC='$LTCC' 21343LTCFLAGS='$LTCFLAGS' 21344compiler='$compiler_DEFAULT' 21345 21346# A function that is used when there is no print builtin or printf. 21347func_fallback_echo () 21348{ 21349 eval 'cat <<_LTECHO_EOF 21350\$1 21351_LTECHO_EOF' 21352} 21353 21354# Quote evaled strings. 21355for var in SHELL \ 21356ECHO \ 21357PATH_SEPARATOR \ 21358SED \ 21359GREP \ 21360EGREP \ 21361FGREP \ 21362LD \ 21363NM \ 21364LN_S \ 21365lt_SP2NL \ 21366lt_NL2SP \ 21367reload_flag \ 21368OBJDUMP \ 21369deplibs_check_method \ 21370file_magic_cmd \ 21371file_magic_glob \ 21372want_nocaseglob \ 21373DLLTOOL \ 21374sharedlib_from_linklib_cmd \ 21375AR \ 21376AR_FLAGS \ 21377archiver_list_spec \ 21378STRIP \ 21379RANLIB \ 21380CC \ 21381CFLAGS \ 21382compiler \ 21383lt_cv_sys_global_symbol_pipe \ 21384lt_cv_sys_global_symbol_to_cdecl \ 21385lt_cv_sys_global_symbol_to_import \ 21386lt_cv_sys_global_symbol_to_c_name_address \ 21387lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21388lt_cv_nm_interface \ 21389nm_file_list_spec \ 21390lt_cv_truncate_bin \ 21391lt_prog_compiler_no_builtin_flag \ 21392lt_prog_compiler_pic \ 21393lt_prog_compiler_wl \ 21394lt_prog_compiler_static \ 21395lt_cv_prog_compiler_c_o \ 21396need_locks \ 21397MANIFEST_TOOL \ 21398DSYMUTIL \ 21399NMEDIT \ 21400LIPO \ 21401OTOOL \ 21402OTOOL64 \ 21403shrext_cmds \ 21404export_dynamic_flag_spec \ 21405whole_archive_flag_spec \ 21406compiler_needs_object \ 21407with_gnu_ld \ 21408allow_undefined_flag \ 21409no_undefined_flag \ 21410hardcode_libdir_flag_spec \ 21411hardcode_libdir_separator \ 21412exclude_expsyms \ 21413include_expsyms \ 21414file_list_spec \ 21415variables_saved_for_relink \ 21416libname_spec \ 21417library_names_spec \ 21418soname_spec \ 21419install_override_mode \ 21420finish_eval \ 21421old_striplib \ 21422striplib \ 21423compiler_lib_search_dirs \ 21424predep_objects \ 21425postdep_objects \ 21426predeps \ 21427postdeps \ 21428compiler_lib_search_path \ 21429LD_CXX \ 21430reload_flag_CXX \ 21431compiler_CXX \ 21432lt_prog_compiler_no_builtin_flag_CXX \ 21433lt_prog_compiler_pic_CXX \ 21434lt_prog_compiler_wl_CXX \ 21435lt_prog_compiler_static_CXX \ 21436lt_cv_prog_compiler_c_o_CXX \ 21437export_dynamic_flag_spec_CXX \ 21438whole_archive_flag_spec_CXX \ 21439compiler_needs_object_CXX \ 21440with_gnu_ld_CXX \ 21441allow_undefined_flag_CXX \ 21442no_undefined_flag_CXX \ 21443hardcode_libdir_flag_spec_CXX \ 21444hardcode_libdir_separator_CXX \ 21445exclude_expsyms_CXX \ 21446include_expsyms_CXX \ 21447file_list_spec_CXX \ 21448compiler_lib_search_dirs_CXX \ 21449predep_objects_CXX \ 21450postdep_objects_CXX \ 21451predeps_CXX \ 21452postdeps_CXX \ 21453compiler_lib_search_path_CXX; do 21454 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21455 *[\\\\\\\`\\"\\\$]*) 21456 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21457 ;; 21458 *) 21459 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21460 ;; 21461 esac 21462done 21463 21464# Double-quote double-evaled strings. 21465for var in reload_cmds \ 21466old_postinstall_cmds \ 21467old_postuninstall_cmds \ 21468old_archive_cmds \ 21469extract_expsyms_cmds \ 21470old_archive_from_new_cmds \ 21471old_archive_from_expsyms_cmds \ 21472archive_cmds \ 21473archive_expsym_cmds \ 21474module_cmds \ 21475module_expsym_cmds \ 21476export_symbols_cmds \ 21477prelink_cmds \ 21478postlink_cmds \ 21479postinstall_cmds \ 21480postuninstall_cmds \ 21481finish_cmds \ 21482sys_lib_search_path_spec \ 21483configure_time_dlsearch_path \ 21484configure_time_lt_sys_library_path \ 21485reload_cmds_CXX \ 21486old_archive_cmds_CXX \ 21487old_archive_from_new_cmds_CXX \ 21488old_archive_from_expsyms_cmds_CXX \ 21489archive_cmds_CXX \ 21490archive_expsym_cmds_CXX \ 21491module_cmds_CXX \ 21492module_expsym_cmds_CXX \ 21493export_symbols_cmds_CXX \ 21494prelink_cmds_CXX \ 21495postlink_cmds_CXX; do 21496 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21497 *[\\\\\\\`\\"\\\$]*) 21498 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21499 ;; 21500 *) 21501 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21502 ;; 21503 esac 21504done 21505 21506ac_aux_dir='$ac_aux_dir' 21507 21508# See if we are running on zsh, and set the options that allow our 21509# commands through without removal of \ escapes INIT. 21510if test -n "\${ZSH_VERSION+set}"; then 21511 setopt NO_GLOB_SUBST 21512fi 21513 21514 21515 PACKAGE='$PACKAGE' 21516 VERSION='$VERSION' 21517 RM='$RM' 21518 ofile='$ofile' 21519 21520 21521 21522 21523 21524 21525_ACEOF 21526 21527cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21528 21529# Handling of arguments. 21530for ac_config_target in $ac_config_targets 21531do 21532 case $ac_config_target in 21533 "courier_auth_config.h") CONFIG_HEADERS="$CONFIG_HEADERS courier_auth_config.h" ;; 21534 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21535 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21536 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21537 "authdaemond") CONFIG_FILES="$CONFIG_FILES authdaemond" ;; 21538 "authdaemonrc") CONFIG_FILES="$CONFIG_FILES authdaemonrc" ;; 21539 "authsystem.passwd") CONFIG_FILES="$CONFIG_FILES authsystem.passwd" ;; 21540 "README.authdebug.html") CONFIG_FILES="$CONFIG_FILES README.authdebug.html" ;; 21541 "dbobj.config") CONFIG_FILES="$CONFIG_FILES dbobj.config" ;; 21542 "dbobj.h") CONFIG_FILES="$CONFIG_FILES dbobj.h" ;; 21543 "courier-authlib.spec") CONFIG_FILES="$CONFIG_FILES courier-authlib.spec" ;; 21544 "courier-authlib.sysvinit") CONFIG_FILES="$CONFIG_FILES courier-authlib.sysvinit" ;; 21545 "courier-authlib.service") CONFIG_FILES="$CONFIG_FILES courier-authlib.service" ;; 21546 "userdb-test-cram-md5.pl") CONFIG_FILES="$CONFIG_FILES userdb-test-cram-md5.pl" ;; 21547 21548 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21549 esac 21550done 21551 21552 21553# If the user did not use the arguments to specify the items to instantiate, 21554# then the envvar interface is used. Set only those that are not. 21555# We use the long form for the default assignment because of an extremely 21556# bizarre bug on SunOS 4.1.3. 21557if $ac_need_defaults; then 21558 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21559 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21560 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21561fi 21562 21563# Have a temporary directory for convenience. Make it in the build tree 21564# simply because there is no reason against having it here, and in addition, 21565# creating and moving files from /tmp can sometimes cause problems. 21566# Hook for its removal unless debugging. 21567# Note that there is a small window in which the directory will not be cleaned: 21568# after its creation but before its name has been assigned to `$tmp'. 21569$debug || 21570{ 21571 tmp= ac_tmp= 21572 trap 'exit_status=$? 21573 : "${ac_tmp:=$tmp}" 21574 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21575' 0 21576 trap 'as_fn_exit 1' 1 2 13 15 21577} 21578# Create a (secure) tmp directory for tmp files. 21579 21580{ 21581 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21582 test -d "$tmp" 21583} || 21584{ 21585 tmp=./conf$$-$RANDOM 21586 (umask 077 && mkdir "$tmp") 21587} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21588ac_tmp=$tmp 21589 21590# Set up the scripts for CONFIG_FILES section. 21591# No need to generate them if there are no CONFIG_FILES. 21592# This happens for instance with `./config.status config.h'. 21593if test -n "$CONFIG_FILES"; then 21594 21595 21596ac_cr=`echo X | tr X '\015'` 21597# On cygwin, bash can eat \r inside `` if the user requested igncr. 21598# But we know of no other shell where ac_cr would be empty at this 21599# point, so we can use a bashism as a fallback. 21600if test "x$ac_cr" = x; then 21601 eval ac_cr=\$\'\\r\' 21602fi 21603ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21604if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21605 ac_cs_awk_cr='\\r' 21606else 21607 ac_cs_awk_cr=$ac_cr 21608fi 21609 21610echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21611_ACEOF 21612 21613 21614{ 21615 echo "cat >conf$$subs.awk <<_ACEOF" && 21616 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21617 echo "_ACEOF" 21618} >conf$$subs.sh || 21619 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21620ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21621ac_delim='%!_!# ' 21622for ac_last_try in false false false false false :; do 21623 . ./conf$$subs.sh || 21624 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21625 21626 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21627 if test $ac_delim_n = $ac_delim_num; then 21628 break 21629 elif $ac_last_try; then 21630 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21631 else 21632 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21633 fi 21634done 21635rm -f conf$$subs.sh 21636 21637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21638cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21639_ACEOF 21640sed -n ' 21641h 21642s/^/S["/; s/!.*/"]=/ 21643p 21644g 21645s/^[^!]*!// 21646:repl 21647t repl 21648s/'"$ac_delim"'$// 21649t delim 21650:nl 21651h 21652s/\(.\{148\}\)..*/\1/ 21653t more1 21654s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21655p 21656n 21657b repl 21658:more1 21659s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21660p 21661g 21662s/.\{148\}// 21663t nl 21664:delim 21665h 21666s/\(.\{148\}\)..*/\1/ 21667t more2 21668s/["\\]/\\&/g; s/^/"/; s/$/"/ 21669p 21670b 21671:more2 21672s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21673p 21674g 21675s/.\{148\}// 21676t delim 21677' <conf$$subs.awk | sed ' 21678/^[^""]/{ 21679 N 21680 s/\n// 21681} 21682' >>$CONFIG_STATUS || ac_write_fail=1 21683rm -f conf$$subs.awk 21684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21685_ACAWK 21686cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21687 for (key in S) S_is_set[key] = 1 21688 FS = "" 21689 21690} 21691{ 21692 line = $ 0 21693 nfields = split(line, field, "@") 21694 substed = 0 21695 len = length(field[1]) 21696 for (i = 2; i < nfields; i++) { 21697 key = field[i] 21698 keylen = length(key) 21699 if (S_is_set[key]) { 21700 value = S[key] 21701 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21702 len += length(value) + length(field[++i]) 21703 substed = 1 21704 } else 21705 len += 1 + keylen 21706 } 21707 21708 print line 21709} 21710 21711_ACAWK 21712_ACEOF 21713cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21714if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21715 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21716else 21717 cat 21718fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21719 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21720_ACEOF 21721 21722# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21723# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21724# trailing colons and then remove the whole line if VPATH becomes empty 21725# (actually we leave an empty line to preserve line numbers). 21726if test "x$srcdir" = x.; then 21727 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21728h 21729s/// 21730s/^/:/ 21731s/[ ]*$/:/ 21732s/:\$(srcdir):/:/g 21733s/:\${srcdir}:/:/g 21734s/:@srcdir@:/:/g 21735s/^:*// 21736s/:*$// 21737x 21738s/\(=[ ]*\).*/\1/ 21739G 21740s/\n// 21741s/^[^=]*=[ ]*$// 21742}' 21743fi 21744 21745cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21746fi # test -n "$CONFIG_FILES" 21747 21748# Set up the scripts for CONFIG_HEADERS section. 21749# No need to generate them if there are no CONFIG_HEADERS. 21750# This happens for instance with `./config.status Makefile'. 21751if test -n "$CONFIG_HEADERS"; then 21752cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21753BEGIN { 21754_ACEOF 21755 21756# Transform confdefs.h into an awk script `defines.awk', embedded as 21757# here-document in config.status, that substitutes the proper values into 21758# config.h.in to produce config.h. 21759 21760# Create a delimiter string that does not exist in confdefs.h, to ease 21761# handling of long lines. 21762ac_delim='%!_!# ' 21763for ac_last_try in false false :; do 21764 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21765 if test -z "$ac_tt"; then 21766 break 21767 elif $ac_last_try; then 21768 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21769 else 21770 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21771 fi 21772done 21773 21774# For the awk script, D is an array of macro values keyed by name, 21775# likewise P contains macro parameters if any. Preserve backslash 21776# newline sequences. 21777 21778ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21779sed -n ' 21780s/.\{148\}/&'"$ac_delim"'/g 21781t rset 21782:rset 21783s/^[ ]*#[ ]*define[ ][ ]*/ / 21784t def 21785d 21786:def 21787s/\\$// 21788t bsnl 21789s/["\\]/\\&/g 21790s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21791D["\1"]=" \3"/p 21792s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21793d 21794:bsnl 21795s/["\\]/\\&/g 21796s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21797D["\1"]=" \3\\\\\\n"\\/p 21798t cont 21799s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21800t cont 21801d 21802:cont 21803n 21804s/.\{148\}/&'"$ac_delim"'/g 21805t clear 21806:clear 21807s/\\$// 21808t bsnlc 21809s/["\\]/\\&/g; s/^/"/; s/$/"/p 21810d 21811:bsnlc 21812s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21813b cont 21814' <confdefs.h | sed ' 21815s/'"$ac_delim"'/"\\\ 21816"/g' >>$CONFIG_STATUS || ac_write_fail=1 21817 21818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21819 for (key in D) D_is_set[key] = 1 21820 FS = "" 21821} 21822/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21823 line = \$ 0 21824 split(line, arg, " ") 21825 if (arg[1] == "#") { 21826 defundef = arg[2] 21827 mac1 = arg[3] 21828 } else { 21829 defundef = substr(arg[1], 2) 21830 mac1 = arg[2] 21831 } 21832 split(mac1, mac2, "(") #) 21833 macro = mac2[1] 21834 prefix = substr(line, 1, index(line, defundef) - 1) 21835 if (D_is_set[macro]) { 21836 # Preserve the white space surrounding the "#". 21837 print prefix "define", macro P[macro] D[macro] 21838 next 21839 } else { 21840 # Replace #undef with comments. This is necessary, for example, 21841 # in the case of _POSIX_SOURCE, which is predefined and required 21842 # on some systems where configure will not decide to define it. 21843 if (defundef == "undef") { 21844 print "/*", prefix defundef, macro, "*/" 21845 next 21846 } 21847 } 21848} 21849{ print } 21850_ACAWK 21851_ACEOF 21852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21853 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21854fi # test -n "$CONFIG_HEADERS" 21855 21856 21857eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21858shift 21859for ac_tag 21860do 21861 case $ac_tag in 21862 :[FHLC]) ac_mode=$ac_tag; continue;; 21863 esac 21864 case $ac_mode$ac_tag in 21865 :[FHL]*:*);; 21866 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21867 :[FH]-) ac_tag=-:-;; 21868 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21869 esac 21870 ac_save_IFS=$IFS 21871 IFS=: 21872 set x $ac_tag 21873 IFS=$ac_save_IFS 21874 shift 21875 ac_file=$1 21876 shift 21877 21878 case $ac_mode in 21879 :L) ac_source=$1;; 21880 :[FH]) 21881 ac_file_inputs= 21882 for ac_f 21883 do 21884 case $ac_f in 21885 -) ac_f="$ac_tmp/stdin";; 21886 *) # Look for the file first in the build tree, then in the source tree 21887 # (if the path is not absolute). The absolute path cannot be DOS-style, 21888 # because $ac_f cannot contain `:'. 21889 test -f "$ac_f" || 21890 case $ac_f in 21891 [\\/$]*) false;; 21892 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21893 esac || 21894 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21895 esac 21896 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21897 as_fn_append ac_file_inputs " '$ac_f'" 21898 done 21899 21900 # Let's still pretend it is `configure' which instantiates (i.e., don't 21901 # use $as_me), people would be surprised to read: 21902 # /* config.h. Generated by config.status. */ 21903 configure_input='Generated from '` 21904 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21905 `' by configure.' 21906 if test x"$ac_file" != x-; then 21907 configure_input="$ac_file. $configure_input" 21908 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21909$as_echo "$as_me: creating $ac_file" >&6;} 21910 fi 21911 # Neutralize special characters interpreted by sed in replacement strings. 21912 case $configure_input in #( 21913 *\&* | *\|* | *\\* ) 21914 ac_sed_conf_input=`$as_echo "$configure_input" | 21915 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21916 *) ac_sed_conf_input=$configure_input;; 21917 esac 21918 21919 case $ac_tag in 21920 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21921 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21922 esac 21923 ;; 21924 esac 21925 21926 ac_dir=`$as_dirname -- "$ac_file" || 21927$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21928 X"$ac_file" : 'X\(//\)[^/]' \| \ 21929 X"$ac_file" : 'X\(//\)$' \| \ 21930 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21931$as_echo X"$ac_file" | 21932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21933 s//\1/ 21934 q 21935 } 21936 /^X\(\/\/\)[^/].*/{ 21937 s//\1/ 21938 q 21939 } 21940 /^X\(\/\/\)$/{ 21941 s//\1/ 21942 q 21943 } 21944 /^X\(\/\).*/{ 21945 s//\1/ 21946 q 21947 } 21948 s/.*/./; q'` 21949 as_dir="$ac_dir"; as_fn_mkdir_p 21950 ac_builddir=. 21951 21952case "$ac_dir" in 21953.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21954*) 21955 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21956 # A ".." for each directory in $ac_dir_suffix. 21957 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21958 case $ac_top_builddir_sub in 21959 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21960 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21961 esac ;; 21962esac 21963ac_abs_top_builddir=$ac_pwd 21964ac_abs_builddir=$ac_pwd$ac_dir_suffix 21965# for backward compatibility: 21966ac_top_builddir=$ac_top_build_prefix 21967 21968case $srcdir in 21969 .) # We are building in place. 21970 ac_srcdir=. 21971 ac_top_srcdir=$ac_top_builddir_sub 21972 ac_abs_top_srcdir=$ac_pwd ;; 21973 [\\/]* | ?:[\\/]* ) # Absolute name. 21974 ac_srcdir=$srcdir$ac_dir_suffix; 21975 ac_top_srcdir=$srcdir 21976 ac_abs_top_srcdir=$srcdir ;; 21977 *) # Relative name. 21978 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21979 ac_top_srcdir=$ac_top_build_prefix$srcdir 21980 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21981esac 21982ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21983 21984 21985 case $ac_mode in 21986 :F) 21987 # 21988 # CONFIG_FILE 21989 # 21990 21991 case $INSTALL in 21992 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21993 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21994 esac 21995 ac_MKDIR_P=$MKDIR_P 21996 case $MKDIR_P in 21997 [\\/$]* | ?:[\\/]* ) ;; 21998 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21999 esac 22000_ACEOF 22001 22002cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22003# If the template does not know about datarootdir, expand it. 22004# FIXME: This hack should be removed a few years after 2.60. 22005ac_datarootdir_hack=; ac_datarootdir_seen= 22006ac_sed_dataroot=' 22007/datarootdir/ { 22008 p 22009 q 22010} 22011/@datadir@/p 22012/@docdir@/p 22013/@infodir@/p 22014/@localedir@/p 22015/@mandir@/p' 22016case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22017*datarootdir*) ac_datarootdir_seen=yes;; 22018*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22020$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22021_ACEOF 22022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22023 ac_datarootdir_hack=' 22024 s&@datadir@&$datadir&g 22025 s&@docdir@&$docdir&g 22026 s&@infodir@&$infodir&g 22027 s&@localedir@&$localedir&g 22028 s&@mandir@&$mandir&g 22029 s&\\\${datarootdir}&$datarootdir&g' ;; 22030esac 22031_ACEOF 22032 22033# Neutralize VPATH when `$srcdir' = `.'. 22034# Shell code in configure.ac might set extrasub. 22035# FIXME: do we really want to maintain this feature? 22036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22037ac_sed_extra="$ac_vpsub 22038$extrasub 22039_ACEOF 22040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22041:t 22042/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22043s|@configure_input@|$ac_sed_conf_input|;t t 22044s&@top_builddir@&$ac_top_builddir_sub&;t t 22045s&@top_build_prefix@&$ac_top_build_prefix&;t t 22046s&@srcdir@&$ac_srcdir&;t t 22047s&@abs_srcdir@&$ac_abs_srcdir&;t t 22048s&@top_srcdir@&$ac_top_srcdir&;t t 22049s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22050s&@builddir@&$ac_builddir&;t t 22051s&@abs_builddir@&$ac_abs_builddir&;t t 22052s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22053s&@INSTALL@&$ac_INSTALL&;t t 22054s&@MKDIR_P@&$ac_MKDIR_P&;t t 22055$ac_datarootdir_hack 22056" 22057eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22058 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22059 22060test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22061 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22062 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22063 "$ac_tmp/out"`; test -z "$ac_out"; } && 22064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22065which seems to be undefined. Please make sure it is defined" >&5 22066$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22067which seems to be undefined. Please make sure it is defined" >&2;} 22068 22069 rm -f "$ac_tmp/stdin" 22070 case $ac_file in 22071 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22072 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22073 esac \ 22074 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22075 ;; 22076 :H) 22077 # 22078 # CONFIG_HEADER 22079 # 22080 if test x"$ac_file" != x-; then 22081 { 22082 $as_echo "/* $configure_input */" \ 22083 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22084 } >"$ac_tmp/config.h" \ 22085 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22086 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22087 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22088$as_echo "$as_me: $ac_file is unchanged" >&6;} 22089 else 22090 rm -f "$ac_file" 22091 mv "$ac_tmp/config.h" "$ac_file" \ 22092 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22093 fi 22094 else 22095 $as_echo "/* $configure_input */" \ 22096 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22097 || as_fn_error $? "could not create -" "$LINENO" 5 22098 fi 22099# Compute "$ac_file"'s index in $config_headers. 22100_am_arg="$ac_file" 22101_am_stamp_count=1 22102for _am_header in $config_headers :; do 22103 case $_am_header in 22104 $_am_arg | $_am_arg:* ) 22105 break ;; 22106 * ) 22107 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22108 esac 22109done 22110echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22111$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22112 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22113 X"$_am_arg" : 'X\(//\)$' \| \ 22114 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22115$as_echo X"$_am_arg" | 22116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22117 s//\1/ 22118 q 22119 } 22120 /^X\(\/\/\)[^/].*/{ 22121 s//\1/ 22122 q 22123 } 22124 /^X\(\/\/\)$/{ 22125 s//\1/ 22126 q 22127 } 22128 /^X\(\/\).*/{ 22129 s//\1/ 22130 q 22131 } 22132 s/.*/./; q'`/stamp-h$_am_stamp_count 22133 ;; 22134 22135 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22136$as_echo "$as_me: executing $ac_file commands" >&6;} 22137 ;; 22138 esac 22139 22140 22141 case $ac_file$ac_mode in 22142 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22143 # Older Autoconf quotes --file arguments for eval, but not when files 22144 # are listed without --file. Let's play safe and only enable the eval 22145 # if we detect the quoting. 22146 # TODO: see whether this extra hack can be removed once we start 22147 # requiring Autoconf 2.70 or later. 22148 case $CONFIG_FILES in #( 22149 *\'*) : 22150 eval set x "$CONFIG_FILES" ;; #( 22151 *) : 22152 set x $CONFIG_FILES ;; #( 22153 *) : 22154 ;; 22155esac 22156 shift 22157 # Used to flag and report bootstrapping failures. 22158 am_rc=0 22159 for am_mf 22160 do 22161 # Strip MF so we end up with the name of the file. 22162 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 22163 # Check whether this is an Automake generated Makefile which includes 22164 # dependency-tracking related rules and includes. 22165 # Grep'ing the whole file directly is not great: AIX grep has a line 22166 # limit of 2048, but all sed's we know have understand at least 4000. 22167 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22168 || continue 22169 am_dirpart=`$as_dirname -- "$am_mf" || 22170$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22171 X"$am_mf" : 'X\(//\)[^/]' \| \ 22172 X"$am_mf" : 'X\(//\)$' \| \ 22173 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22174$as_echo X"$am_mf" | 22175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22176 s//\1/ 22177 q 22178 } 22179 /^X\(\/\/\)[^/].*/{ 22180 s//\1/ 22181 q 22182 } 22183 /^X\(\/\/\)$/{ 22184 s//\1/ 22185 q 22186 } 22187 /^X\(\/\).*/{ 22188 s//\1/ 22189 q 22190 } 22191 s/.*/./; q'` 22192 am_filepart=`$as_basename -- "$am_mf" || 22193$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22194 X"$am_mf" : 'X\(//\)$' \| \ 22195 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22196$as_echo X/"$am_mf" | 22197 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22198 s//\1/ 22199 q 22200 } 22201 /^X\/\(\/\/\)$/{ 22202 s//\1/ 22203 q 22204 } 22205 /^X\/\(\/\).*/{ 22206 s//\1/ 22207 q 22208 } 22209 s/.*/./; q'` 22210 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22211 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22212 | $MAKE -f - am--depfiles" >&5 22213 (cd "$am_dirpart" \ 22214 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22215 | $MAKE -f - am--depfiles) >&5 2>&5 22216 ac_status=$? 22217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22218 (exit $ac_status); } || am_rc=$? 22219 done 22220 if test $am_rc -ne 0; then 22221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22223as_fn_error $? "Something went wrong bootstrapping makefile fragments 22224 for automatic dependency tracking. If GNU make was not used, consider 22225 re-running the configure script with MAKE=\"gmake\" (or whatever is 22226 necessary). You can also try re-running configure with the 22227 '--disable-dependency-tracking' option to at least be able to build 22228 the package (albeit without support for automatic dependency tracking). 22229See \`config.log' for more details" "$LINENO" 5; } 22230 fi 22231 { am_dirpart=; unset am_dirpart;} 22232 { am_filepart=; unset am_filepart;} 22233 { am_mf=; unset am_mf;} 22234 { am_rc=; unset am_rc;} 22235 rm -f conftest-deps.mk 22236} 22237 ;; 22238 "libtool":C) 22239 22240 # See if we are running on zsh, and set the options that allow our 22241 # commands through without removal of \ escapes. 22242 if test -n "${ZSH_VERSION+set}"; then 22243 setopt NO_GLOB_SUBST 22244 fi 22245 22246 cfgfile=${ofile}T 22247 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22248 $RM "$cfgfile" 22249 22250 cat <<_LT_EOF >> "$cfgfile" 22251#! $SHELL 22252# Generated automatically by $as_me ($PACKAGE) $VERSION 22253# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22254# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22255 22256# Provide generalized library-building support services. 22257# Written by Gordon Matzigkeit, 1996 22258 22259# Copyright (C) 2014 Free Software Foundation, Inc. 22260# This is free software; see the source for copying conditions. There is NO 22261# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22262 22263# GNU Libtool is free software; you can redistribute it and/or modify 22264# it under the terms of the GNU General Public License as published by 22265# the Free Software Foundation; either version 2 of of the License, or 22266# (at your option) any later version. 22267# 22268# As a special exception to the GNU General Public License, if you 22269# distribute this file as part of a program or library that is built 22270# using GNU Libtool, you may include this file under the same 22271# distribution terms that you use for the rest of that program. 22272# 22273# GNU Libtool is distributed in the hope that it will be useful, but 22274# WITHOUT ANY WARRANTY; without even the implied warranty of 22275# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22276# GNU General Public License for more details. 22277# 22278# You should have received a copy of the GNU General Public License 22279# along with this program. If not, see <http://www.gnu.org/licenses/>. 22280 22281 22282# The names of the tagged configurations supported by this script. 22283available_tags='CXX ' 22284 22285# Configured defaults for sys_lib_dlsearch_path munging. 22286: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22287 22288# ### BEGIN LIBTOOL CONFIG 22289 22290# Which release of libtool.m4 was used? 22291macro_version=$macro_version 22292macro_revision=$macro_revision 22293 22294# Whether or not to build shared libraries. 22295build_libtool_libs=$enable_shared 22296 22297# Whether or not to build static libraries. 22298build_old_libs=$enable_static 22299 22300# What type of objects to build. 22301pic_mode=$pic_mode 22302 22303# Whether or not to optimize for fast installation. 22304fast_install=$enable_fast_install 22305 22306# Shared archive member basename,for filename based shared library versioning on AIX. 22307shared_archive_member_spec=$shared_archive_member_spec 22308 22309# Shell to use when invoking shell scripts. 22310SHELL=$lt_SHELL 22311 22312# An echo program that protects backslashes. 22313ECHO=$lt_ECHO 22314 22315# The PATH separator for the build system. 22316PATH_SEPARATOR=$lt_PATH_SEPARATOR 22317 22318# The host system. 22319host_alias=$host_alias 22320host=$host 22321host_os=$host_os 22322 22323# The build system. 22324build_alias=$build_alias 22325build=$build 22326build_os=$build_os 22327 22328# A sed program that does not truncate output. 22329SED=$lt_SED 22330 22331# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22332Xsed="\$SED -e 1s/^X//" 22333 22334# A grep program that handles long lines. 22335GREP=$lt_GREP 22336 22337# An ERE matcher. 22338EGREP=$lt_EGREP 22339 22340# A literal string matcher. 22341FGREP=$lt_FGREP 22342 22343# A BSD- or MS-compatible name lister. 22344NM=$lt_NM 22345 22346# Whether we need soft or hard links. 22347LN_S=$lt_LN_S 22348 22349# What is the maximum length of a command? 22350max_cmd_len=$max_cmd_len 22351 22352# Object file suffix (normally "o"). 22353objext=$ac_objext 22354 22355# Executable file suffix (normally ""). 22356exeext=$exeext 22357 22358# whether the shell understands "unset". 22359lt_unset=$lt_unset 22360 22361# turn spaces into newlines. 22362SP2NL=$lt_lt_SP2NL 22363 22364# turn newlines into spaces. 22365NL2SP=$lt_lt_NL2SP 22366 22367# convert \$build file names to \$host format. 22368to_host_file_cmd=$lt_cv_to_host_file_cmd 22369 22370# convert \$build files to toolchain format. 22371to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22372 22373# An object symbol dumper. 22374OBJDUMP=$lt_OBJDUMP 22375 22376# Method to check whether dependent libraries are shared objects. 22377deplibs_check_method=$lt_deplibs_check_method 22378 22379# Command to use when deplibs_check_method = "file_magic". 22380file_magic_cmd=$lt_file_magic_cmd 22381 22382# How to find potential files when deplibs_check_method = "file_magic". 22383file_magic_glob=$lt_file_magic_glob 22384 22385# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22386want_nocaseglob=$lt_want_nocaseglob 22387 22388# DLL creation program. 22389DLLTOOL=$lt_DLLTOOL 22390 22391# Command to associate shared and link libraries. 22392sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22393 22394# The archiver. 22395AR=$lt_AR 22396 22397# Flags to create an archive. 22398AR_FLAGS=$lt_AR_FLAGS 22399 22400# How to feed a file listing to the archiver. 22401archiver_list_spec=$lt_archiver_list_spec 22402 22403# A symbol stripping program. 22404STRIP=$lt_STRIP 22405 22406# Commands used to install an old-style archive. 22407RANLIB=$lt_RANLIB 22408old_postinstall_cmds=$lt_old_postinstall_cmds 22409old_postuninstall_cmds=$lt_old_postuninstall_cmds 22410 22411# Whether to use a lock for old archive extraction. 22412lock_old_archive_extraction=$lock_old_archive_extraction 22413 22414# A C compiler. 22415LTCC=$lt_CC 22416 22417# LTCC compiler flags. 22418LTCFLAGS=$lt_CFLAGS 22419 22420# Take the output of nm and produce a listing of raw symbols and C names. 22421global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22422 22423# Transform the output of nm in a proper C declaration. 22424global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22425 22426# Transform the output of nm into a list of symbols to manually relocate. 22427global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22428 22429# Transform the output of nm in a C name address pair. 22430global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22431 22432# Transform the output of nm in a C name address pair when lib prefix is needed. 22433global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22434 22435# The name lister interface. 22436nm_interface=$lt_lt_cv_nm_interface 22437 22438# Specify filename containing input files for \$NM. 22439nm_file_list_spec=$lt_nm_file_list_spec 22440 22441# The root where to search for dependent libraries,and where our libraries should be installed. 22442lt_sysroot=$lt_sysroot 22443 22444# Command to truncate a binary pipe. 22445lt_truncate_bin=$lt_lt_cv_truncate_bin 22446 22447# The name of the directory that contains temporary libtool files. 22448objdir=$objdir 22449 22450# Used to examine libraries when file_magic_cmd begins with "file". 22451MAGIC_CMD=$MAGIC_CMD 22452 22453# Must we lock files when doing compilation? 22454need_locks=$lt_need_locks 22455 22456# Manifest tool. 22457MANIFEST_TOOL=$lt_MANIFEST_TOOL 22458 22459# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22460DSYMUTIL=$lt_DSYMUTIL 22461 22462# Tool to change global to local symbols on Mac OS X. 22463NMEDIT=$lt_NMEDIT 22464 22465# Tool to manipulate fat objects and archives on Mac OS X. 22466LIPO=$lt_LIPO 22467 22468# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22469OTOOL=$lt_OTOOL 22470 22471# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22472OTOOL64=$lt_OTOOL64 22473 22474# Old archive suffix (normally "a"). 22475libext=$libext 22476 22477# Shared library suffix (normally ".so"). 22478shrext_cmds=$lt_shrext_cmds 22479 22480# The commands to extract the exported symbol list from a shared archive. 22481extract_expsyms_cmds=$lt_extract_expsyms_cmds 22482 22483# Variables whose values should be saved in libtool wrapper scripts and 22484# restored at link time. 22485variables_saved_for_relink=$lt_variables_saved_for_relink 22486 22487# Do we need the "lib" prefix for modules? 22488need_lib_prefix=$need_lib_prefix 22489 22490# Do we need a version for libraries? 22491need_version=$need_version 22492 22493# Library versioning type. 22494version_type=$version_type 22495 22496# Shared library runtime path variable. 22497runpath_var=$runpath_var 22498 22499# Shared library path variable. 22500shlibpath_var=$shlibpath_var 22501 22502# Is shlibpath searched before the hard-coded library search path? 22503shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22504 22505# Format of library name prefix. 22506libname_spec=$lt_libname_spec 22507 22508# List of archive names. First name is the real one, the rest are links. 22509# The last name is the one that the linker finds with -lNAME 22510library_names_spec=$lt_library_names_spec 22511 22512# The coded name of the library, if different from the real name. 22513soname_spec=$lt_soname_spec 22514 22515# Permission mode override for installation of shared libraries. 22516install_override_mode=$lt_install_override_mode 22517 22518# Command to use after installation of a shared archive. 22519postinstall_cmds=$lt_postinstall_cmds 22520 22521# Command to use after uninstallation of a shared archive. 22522postuninstall_cmds=$lt_postuninstall_cmds 22523 22524# Commands used to finish a libtool library installation in a directory. 22525finish_cmds=$lt_finish_cmds 22526 22527# As "finish_cmds", except a single script fragment to be evaled but 22528# not shown. 22529finish_eval=$lt_finish_eval 22530 22531# Whether we should hardcode library paths into libraries. 22532hardcode_into_libs=$hardcode_into_libs 22533 22534# Compile-time system search path for libraries. 22535sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22536 22537# Detected run-time system search path for libraries. 22538sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22539 22540# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22541configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22542 22543# Whether dlopen is supported. 22544dlopen_support=$enable_dlopen 22545 22546# Whether dlopen of programs is supported. 22547dlopen_self=$enable_dlopen_self 22548 22549# Whether dlopen of statically linked programs is supported. 22550dlopen_self_static=$enable_dlopen_self_static 22551 22552# Commands to strip libraries. 22553old_striplib=$lt_old_striplib 22554striplib=$lt_striplib 22555 22556 22557# The linker used to build libraries. 22558LD=$lt_LD 22559 22560# How to create reloadable object files. 22561reload_flag=$lt_reload_flag 22562reload_cmds=$lt_reload_cmds 22563 22564# Commands used to build an old-style archive. 22565old_archive_cmds=$lt_old_archive_cmds 22566 22567# A language specific compiler. 22568CC=$lt_compiler 22569 22570# Is the compiler the GNU compiler? 22571with_gcc=$GCC 22572 22573# Compiler flag to turn off builtin functions. 22574no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22575 22576# Additional compiler flags for building library objects. 22577pic_flag=$lt_lt_prog_compiler_pic 22578 22579# How to pass a linker flag through the compiler. 22580wl=$lt_lt_prog_compiler_wl 22581 22582# Compiler flag to prevent dynamic linking. 22583link_static_flag=$lt_lt_prog_compiler_static 22584 22585# Does compiler simultaneously support -c and -o options? 22586compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22587 22588# Whether or not to add -lc for building shared libraries. 22589build_libtool_need_lc=$archive_cmds_need_lc 22590 22591# Whether or not to disallow shared libs when runtime libs are static. 22592allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22593 22594# Compiler flag to allow reflexive dlopens. 22595export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22596 22597# Compiler flag to generate shared objects directly from archives. 22598whole_archive_flag_spec=$lt_whole_archive_flag_spec 22599 22600# Whether the compiler copes with passing no objects directly. 22601compiler_needs_object=$lt_compiler_needs_object 22602 22603# Create an old-style archive from a shared archive. 22604old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22605 22606# Create a temporary old-style archive to link instead of a shared archive. 22607old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22608 22609# Commands used to build a shared archive. 22610archive_cmds=$lt_archive_cmds 22611archive_expsym_cmds=$lt_archive_expsym_cmds 22612 22613# Commands used to build a loadable module if different from building 22614# a shared archive. 22615module_cmds=$lt_module_cmds 22616module_expsym_cmds=$lt_module_expsym_cmds 22617 22618# Whether we are building with GNU ld or not. 22619with_gnu_ld=$lt_with_gnu_ld 22620 22621# Flag that allows shared libraries with undefined symbols to be built. 22622allow_undefined_flag=$lt_allow_undefined_flag 22623 22624# Flag that enforces no undefined symbols. 22625no_undefined_flag=$lt_no_undefined_flag 22626 22627# Flag to hardcode \$libdir into a binary during linking. 22628# This must work even if \$libdir does not exist 22629hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22630 22631# Whether we need a single "-rpath" flag with a separated argument. 22632hardcode_libdir_separator=$lt_hardcode_libdir_separator 22633 22634# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22635# DIR into the resulting binary. 22636hardcode_direct=$hardcode_direct 22637 22638# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22639# DIR into the resulting binary and the resulting library dependency is 22640# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22641# library is relocated. 22642hardcode_direct_absolute=$hardcode_direct_absolute 22643 22644# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22645# into the resulting binary. 22646hardcode_minus_L=$hardcode_minus_L 22647 22648# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22649# into the resulting binary. 22650hardcode_shlibpath_var=$hardcode_shlibpath_var 22651 22652# Set to "yes" if building a shared library automatically hardcodes DIR 22653# into the library and all subsequent libraries and executables linked 22654# against it. 22655hardcode_automatic=$hardcode_automatic 22656 22657# Set to yes if linker adds runtime paths of dependent libraries 22658# to runtime path list. 22659inherit_rpath=$inherit_rpath 22660 22661# Whether libtool must link a program against all its dependency libraries. 22662link_all_deplibs=$link_all_deplibs 22663 22664# Set to "yes" if exported symbols are required. 22665always_export_symbols=$always_export_symbols 22666 22667# The commands to list exported symbols. 22668export_symbols_cmds=$lt_export_symbols_cmds 22669 22670# Symbols that should not be listed in the preloaded symbols. 22671exclude_expsyms=$lt_exclude_expsyms 22672 22673# Symbols that must always be exported. 22674include_expsyms=$lt_include_expsyms 22675 22676# Commands necessary for linking programs (against libraries) with templates. 22677prelink_cmds=$lt_prelink_cmds 22678 22679# Commands necessary for finishing linking programs. 22680postlink_cmds=$lt_postlink_cmds 22681 22682# Specify filename containing input files. 22683file_list_spec=$lt_file_list_spec 22684 22685# How to hardcode a shared library path into an executable. 22686hardcode_action=$hardcode_action 22687 22688# The directories searched by this compiler when creating a shared library. 22689compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 22690 22691# Dependencies to place before and after the objects being linked to 22692# create a shared library. 22693predep_objects=$lt_predep_objects 22694postdep_objects=$lt_postdep_objects 22695predeps=$lt_predeps 22696postdeps=$lt_postdeps 22697 22698# The library search path used internally by the compiler when linking 22699# a shared library. 22700compiler_lib_search_path=$lt_compiler_lib_search_path 22701 22702# ### END LIBTOOL CONFIG 22703 22704_LT_EOF 22705 22706 cat <<'_LT_EOF' >> "$cfgfile" 22707 22708# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22709 22710# func_munge_path_list VARIABLE PATH 22711# ----------------------------------- 22712# VARIABLE is name of variable containing _space_ separated list of 22713# directories to be munged by the contents of PATH, which is string 22714# having a format: 22715# "DIR[:DIR]:" 22716# string "DIR[ DIR]" will be prepended to VARIABLE 22717# ":DIR[:DIR]" 22718# string "DIR[ DIR]" will be appended to VARIABLE 22719# "DIRP[:DIRP]::[DIRA:]DIRA" 22720# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22721# "DIRA[ DIRA]" will be appended to VARIABLE 22722# "DIR[:DIR]" 22723# VARIABLE will be replaced by "DIR[ DIR]" 22724func_munge_path_list () 22725{ 22726 case x$2 in 22727 x) 22728 ;; 22729 *:) 22730 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22731 ;; 22732 x:*) 22733 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22734 ;; 22735 *::*) 22736 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22737 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22738 ;; 22739 *) 22740 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22741 ;; 22742 esac 22743} 22744 22745 22746# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22747func_cc_basename () 22748{ 22749 for cc_temp in $*""; do 22750 case $cc_temp in 22751 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22752 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22753 \-*) ;; 22754 *) break;; 22755 esac 22756 done 22757 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22758} 22759 22760 22761# ### END FUNCTIONS SHARED WITH CONFIGURE 22762 22763_LT_EOF 22764 22765 case $host_os in 22766 aix3*) 22767 cat <<\_LT_EOF >> "$cfgfile" 22768# AIX sometimes has problems with the GCC collect2 program. For some 22769# reason, if we set the COLLECT_NAMES environment variable, the problems 22770# vanish in a puff of smoke. 22771if test set != "${COLLECT_NAMES+set}"; then 22772 COLLECT_NAMES= 22773 export COLLECT_NAMES 22774fi 22775_LT_EOF 22776 ;; 22777 esac 22778 22779 22780ltmain=$ac_aux_dir/ltmain.sh 22781 22782 22783 # We use sed instead of cat because bash on DJGPP gets confused if 22784 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22785 # text mode, it properly converts lines to CR/LF. This bash problem 22786 # is reportedly fixed, but why not run on old versions too? 22787 sed '$q' "$ltmain" >> "$cfgfile" \ 22788 || (rm -f "$cfgfile"; exit 1) 22789 22790 mv -f "$cfgfile" "$ofile" || 22791 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22792 chmod +x "$ofile" 22793 22794 22795 cat <<_LT_EOF >> "$ofile" 22796 22797# ### BEGIN LIBTOOL TAG CONFIG: CXX 22798 22799# The linker used to build libraries. 22800LD=$lt_LD_CXX 22801 22802# How to create reloadable object files. 22803reload_flag=$lt_reload_flag_CXX 22804reload_cmds=$lt_reload_cmds_CXX 22805 22806# Commands used to build an old-style archive. 22807old_archive_cmds=$lt_old_archive_cmds_CXX 22808 22809# A language specific compiler. 22810CC=$lt_compiler_CXX 22811 22812# Is the compiler the GNU compiler? 22813with_gcc=$GCC_CXX 22814 22815# Compiler flag to turn off builtin functions. 22816no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 22817 22818# Additional compiler flags for building library objects. 22819pic_flag=$lt_lt_prog_compiler_pic_CXX 22820 22821# How to pass a linker flag through the compiler. 22822wl=$lt_lt_prog_compiler_wl_CXX 22823 22824# Compiler flag to prevent dynamic linking. 22825link_static_flag=$lt_lt_prog_compiler_static_CXX 22826 22827# Does compiler simultaneously support -c and -o options? 22828compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 22829 22830# Whether or not to add -lc for building shared libraries. 22831build_libtool_need_lc=$archive_cmds_need_lc_CXX 22832 22833# Whether or not to disallow shared libs when runtime libs are static. 22834allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 22835 22836# Compiler flag to allow reflexive dlopens. 22837export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 22838 22839# Compiler flag to generate shared objects directly from archives. 22840whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 22841 22842# Whether the compiler copes with passing no objects directly. 22843compiler_needs_object=$lt_compiler_needs_object_CXX 22844 22845# Create an old-style archive from a shared archive. 22846old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 22847 22848# Create a temporary old-style archive to link instead of a shared archive. 22849old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 22850 22851# Commands used to build a shared archive. 22852archive_cmds=$lt_archive_cmds_CXX 22853archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 22854 22855# Commands used to build a loadable module if different from building 22856# a shared archive. 22857module_cmds=$lt_module_cmds_CXX 22858module_expsym_cmds=$lt_module_expsym_cmds_CXX 22859 22860# Whether we are building with GNU ld or not. 22861with_gnu_ld=$lt_with_gnu_ld_CXX 22862 22863# Flag that allows shared libraries with undefined symbols to be built. 22864allow_undefined_flag=$lt_allow_undefined_flag_CXX 22865 22866# Flag that enforces no undefined symbols. 22867no_undefined_flag=$lt_no_undefined_flag_CXX 22868 22869# Flag to hardcode \$libdir into a binary during linking. 22870# This must work even if \$libdir does not exist 22871hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 22872 22873# Whether we need a single "-rpath" flag with a separated argument. 22874hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 22875 22876# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22877# DIR into the resulting binary. 22878hardcode_direct=$hardcode_direct_CXX 22879 22880# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22881# DIR into the resulting binary and the resulting library dependency is 22882# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22883# library is relocated. 22884hardcode_direct_absolute=$hardcode_direct_absolute_CXX 22885 22886# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22887# into the resulting binary. 22888hardcode_minus_L=$hardcode_minus_L_CXX 22889 22890# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22891# into the resulting binary. 22892hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 22893 22894# Set to "yes" if building a shared library automatically hardcodes DIR 22895# into the library and all subsequent libraries and executables linked 22896# against it. 22897hardcode_automatic=$hardcode_automatic_CXX 22898 22899# Set to yes if linker adds runtime paths of dependent libraries 22900# to runtime path list. 22901inherit_rpath=$inherit_rpath_CXX 22902 22903# Whether libtool must link a program against all its dependency libraries. 22904link_all_deplibs=$link_all_deplibs_CXX 22905 22906# Set to "yes" if exported symbols are required. 22907always_export_symbols=$always_export_symbols_CXX 22908 22909# The commands to list exported symbols. 22910export_symbols_cmds=$lt_export_symbols_cmds_CXX 22911 22912# Symbols that should not be listed in the preloaded symbols. 22913exclude_expsyms=$lt_exclude_expsyms_CXX 22914 22915# Symbols that must always be exported. 22916include_expsyms=$lt_include_expsyms_CXX 22917 22918# Commands necessary for linking programs (against libraries) with templates. 22919prelink_cmds=$lt_prelink_cmds_CXX 22920 22921# Commands necessary for finishing linking programs. 22922postlink_cmds=$lt_postlink_cmds_CXX 22923 22924# Specify filename containing input files. 22925file_list_spec=$lt_file_list_spec_CXX 22926 22927# How to hardcode a shared library path into an executable. 22928hardcode_action=$hardcode_action_CXX 22929 22930# The directories searched by this compiler when creating a shared library. 22931compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 22932 22933# Dependencies to place before and after the objects being linked to 22934# create a shared library. 22935predep_objects=$lt_predep_objects_CXX 22936postdep_objects=$lt_postdep_objects_CXX 22937predeps=$lt_predeps_CXX 22938postdeps=$lt_postdeps_CXX 22939 22940# The library search path used internally by the compiler when linking 22941# a shared library. 22942compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 22943 22944# ### END LIBTOOL TAG CONFIG: CXX 22945_LT_EOF 22946 22947 ;; 22948 22949 esac 22950done # for ac_tag 22951 22952 22953as_fn_exit 0 22954_ACEOF 22955ac_clean_files=$ac_clean_files_save 22956 22957test $ac_write_fail = 0 || 22958 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22959 22960 22961# configure is writing to config.log, and then calls config.status. 22962# config.status does its own redirection, appending to config.log. 22963# Unfortunately, on DOS this fails, as config.log is still kept open 22964# by configure, so config.status won't be able to write to it; its 22965# output is simply discarded. So we exec the FD to /dev/null, 22966# effectively closing config.log, so it can be properly (re)opened and 22967# appended to by config.status. When coming back to configure, we 22968# need to make the FD available again. 22969if test "$no_create" != yes; then 22970 ac_cs_success=: 22971 ac_config_status_args= 22972 test "$silent" = yes && 22973 ac_config_status_args="$ac_config_status_args --quiet" 22974 exec 5>/dev/null 22975 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22976 exec 5>>config.log 22977 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22978 # would make configure fail if this is the last instruction. 22979 $ac_cs_success || as_fn_exit 1 22980fi 22981 22982# 22983# CONFIG_SUBDIRS section. 22984# 22985if test "$no_recursion" != yes; then 22986 22987 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 22988 # so they do not pile up. 22989 ac_sub_configure_args= 22990 ac_prev= 22991 eval "set x $ac_configure_args" 22992 shift 22993 for ac_arg 22994 do 22995 if test -n "$ac_prev"; then 22996 ac_prev= 22997 continue 22998 fi 22999 case $ac_arg in 23000 -cache-file | --cache-file | --cache-fil | --cache-fi \ 23001 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 23002 ac_prev=cache_file ;; 23003 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 23004 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 23005 | --c=*) 23006 ;; 23007 --config-cache | -C) 23008 ;; 23009 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 23010 ac_prev=srcdir ;; 23011 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 23012 ;; 23013 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 23014 ac_prev=prefix ;; 23015 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 23016 ;; 23017 --disable-option-checking) 23018 ;; 23019 *) 23020 case $ac_arg in 23021 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 23022 esac 23023 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 23024 esac 23025 done 23026 23027 # Always prepend --prefix to ensure using the same prefix 23028 # in subdir configurations. 23029 ac_arg="--prefix=$prefix" 23030 case $ac_arg in 23031 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 23032 esac 23033 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 23034 23035 # Pass --silent 23036 if test "$silent" = yes; then 23037 ac_sub_configure_args="--silent $ac_sub_configure_args" 23038 fi 23039 23040 # Always prepend --disable-option-checking to silence warnings, since 23041 # different subdirs can have different --enable and --with options. 23042 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 23043 23044 ac_popdir=`pwd` 23045 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 23046 23047 # Do not complain, so a configure script can configure whichever 23048 # parts of a large source tree are present. 23049 test -d "$srcdir/$ac_dir" || continue 23050 23051 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 23052 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 23053 $as_echo "$ac_msg" >&6 23054 as_dir="$ac_dir"; as_fn_mkdir_p 23055 ac_builddir=. 23056 23057case "$ac_dir" in 23058.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23059*) 23060 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 23061 # A ".." for each directory in $ac_dir_suffix. 23062 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23063 case $ac_top_builddir_sub in 23064 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23065 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23066 esac ;; 23067esac 23068ac_abs_top_builddir=$ac_pwd 23069ac_abs_builddir=$ac_pwd$ac_dir_suffix 23070# for backward compatibility: 23071ac_top_builddir=$ac_top_build_prefix 23072 23073case $srcdir in 23074 .) # We are building in place. 23075 ac_srcdir=. 23076 ac_top_srcdir=$ac_top_builddir_sub 23077 ac_abs_top_srcdir=$ac_pwd ;; 23078 [\\/]* | ?:[\\/]* ) # Absolute name. 23079 ac_srcdir=$srcdir$ac_dir_suffix; 23080 ac_top_srcdir=$srcdir 23081 ac_abs_top_srcdir=$srcdir ;; 23082 *) # Relative name. 23083 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23084 ac_top_srcdir=$ac_top_build_prefix$srcdir 23085 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23086esac 23087ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23088 23089 23090 cd "$ac_dir" 23091 23092 # Check for guested configure; otherwise get Cygnus style configure. 23093 if test -f "$ac_srcdir/configure.gnu"; then 23094 ac_sub_configure=$ac_srcdir/configure.gnu 23095 elif test -f "$ac_srcdir/configure"; then 23096 ac_sub_configure=$ac_srcdir/configure 23097 elif test -f "$ac_srcdir/configure.in"; then 23098 # This should be Cygnus configure. 23099 ac_sub_configure=$ac_aux_dir/configure 23100 else 23101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 23102$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 23103 ac_sub_configure= 23104 fi 23105 23106 # The recursion is here. 23107 if test -n "$ac_sub_configure"; then 23108 # Make the cache file name correct relative to the subdirectory. 23109 case $cache_file in 23110 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 23111 *) # Relative name. 23112 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 23113 esac 23114 23115 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 23116$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 23117 # The eval makes quoting arguments work. 23118 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 23119 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 23120 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 23121 fi 23122 23123 cd "$ac_popdir" 23124 done 23125fi 23126if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23128$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23129fi 23130 23131