1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for subversion 1.10.0. 4# 5# Report bugs to <http://subversion.apache.org/>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell [email protected] and 278$0: http://subversion.apache.org/ 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 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='subversion' 592PACKAGE_TARNAME='subversion' 593PACKAGE_VERSION='1.10.0' 594PACKAGE_STRING='subversion 1.10.0' 595PACKAGE_BUGREPORT='http://subversion.apache.org/' 596PACKAGE_URL='' 597 598ac_unique_file="subversion/include/svn_types.h" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='LTLIBOBJS 636SVN_CONFIG_SCRIPT_FILES 637INCLUDE_OUTPUTS 638JAVAHL_COMPAT_TESTS_TARGET 639JAVAHL_TESTS_TARGET 640JAVA_CLASSPATH 641LT_CXX_LIBADD 642FIX_JAVAHL_LIB 643JAVAHL_OBJDIR 644INSTALL_EXTRA_JAVAHL_LIB 645SVN_FS_LIB_LINK 646SVN_FS_LIB_INSTALL_DEPS 647SVN_FS_LIB_DEPS 648SVN_RA_LIB_LINK 649SVN_RA_LIB_INSTALL_DEPS 650SVN_RA_LIB_DEPS 651CTYPESGEN 652SWIG_PY_FEATURES 653SWIG_PL_FEATURES 654SWIG_RB_FEATURES 655SWIG_FEATURES 656SWIG_RB_TEST_VERBOSE 657SWIG_RB_SITE_ARCH_DIR 658SWIG_RB_SITE_LIB_DIR 659SWIG_RB_COMPILE 660SWIG_RB_INCLUDES 661SWIG_RB_LIBS 662SWIG_RB_LINK 663SWIG_PL_LINK 664SWIG_PL_INCLUDES 665SWIG_PY_LIBS 666SWIG_PY_LINK 667SWIG_PY_COMPILE 668SWIG_PY_INCLUDES 669SWIG 670RUBY_TEENY 671RUBY_MINOR 672RUBY_MAJOR 673RDOC 674RUBY 675PERL 676JNI_INCLUDES 677JAR 678JAVAH 679JAVADOC 680JAVAC_COMPAT_FLAGS 681JAVAC_FLAGS 682JAVAC 683JAVA 684JDK 685PYTHON 686MOD_ACTIVATION 687SVN_UTF8PROC_LIBS 688SVN_UTF8PROC_INCLUDES 689SVN_LZ4_LIBS 690SVN_LZ4_INCLUDES 691SVN_ZLIB_LIBS 692SVN_ZLIB_INCLUDES 693shared_only_LDFLAGS 694libsvn_wc_LDFLAGS 695libsvn_subr_LDFLAGS 696libsvn_repos_LDFLAGS 697libsvn_ra_svn_LDFLAGS 698libsvn_ra_serf_LDFLAGS 699libsvn_ra_local_LDFLAGS 700libsvn_ra_LDFLAGS 701libsvn_fs_util_LDFLAGS 702libsvn_fs_fs_LDFLAGS 703libsvn_fs_base_LDFLAGS 704libsvn_fs_LDFLAGS 705libsvn_diff_LDFLAGS 706libsvn_delta_LDFLAGS 707libsvn_client_LDFLAGS 708LIBOBJS 709BDB_TEST_PROGRAMS 710BDB_TEST_DEPS 711INSTALL_RULES 712INSTALL_STATIC_RULES 713BUILD_RULES 714SVN_KWALLET_LIBS 715SVN_KWALLET_INCLUDES 716KDE_CONFIG 717SVN_MAGIC_LIBS 718SVN_MAGIC_INCLUDES 719MSGFMTFLAGS 720NO_GETTEXT_CODESET 721GETTEXT_CODESET 722SVN_INTL_LIBS 723XGETTEXT 724MSGMERGE 725MSGFMT 726SVN_USE_GOOGLEMOCK 727GOOGLEMOCK_SRCDIR 728SVN_GNOME_KEYRING_LIBS 729SVN_GNOME_KEYRING_INCLUDES 730SVN_HAVE_GPG_AGENT 731SVN_SASL_LIBS 732SVN_SASL_INCLUDES 733SVN_DB_LIBS 734SVN_DB_INCLUDES 735SVN_XML_LIBS 736SVN_XML_INCLUDES 737DOXYGEN 738TRANG 739LT_NO_UNDEFINED 740TRANSFORM_LIBTOOL_SCRIPTS 741LT_LDFLAGS 742LT_CFLAGS 743SVN_LIBTOOL 744CXXCPP 745LT_SYS_LIBRARY_PATH 746OTOOL64 747OTOOL 748LIPO 749NMEDIT 750DSYMUTIL 751MANIFEST_TOOL 752AWK 753RANLIB 754STRIP 755ac_ct_AR 756AR 757DLLTOOL 758OBJDUMP 759NM 760ac_ct_DUMPBIN 761DUMPBIN 762LD 763FGREP 764LIBTOOL 765SVN_BINDIR 766SVN_SQLITE_LIBS 767SVN_SQLITE_INCLUDES 768HTTPD_VERSION 769INSTALL_APACHE_MODS 770APACHE_LIBEXECDIR 771APACHE_INCLUDES 772APACHE_LDFLAGS 773APXS 774HTTPD_WHITELIST 775SVN_APR_MEMCACHE_LIBS 776SVN_APR_MEMCACHE_INCLUDES 777SVN_SERF_LIBS 778SVN_SERF_INCLUDES 779PKG_CONFIG 780SVN_LT_SOVERSION 781SVN_APR_MAJOR_VERSION 782SVN_APRUTIL_LIBS 783SVN_APRUTIL_CONFIG 784SVN_APRUTIL_INCLUDES 785SVN_APR_SHLIB_PATH_VAR 786SVN_APR_LIBS 787SVN_APR_INCLUDES 788SVN_APR_CONFIG 789MKDIR 790INSTALL_DATA 791INSTALL_SCRIPT 792INSTALL_PROGRAM 793LN_S 794EGREP 795GREP 796target_os 797target_vendor 798target_cpu 799target 800host_os 801host_vendor 802host_cpu 803host 804build_os 805build_vendor 806build_cpu 807build 808SED 809CPP 810CXXUSERFLAGS 811CXXMAINTAINERFLAGS 812CXXNOWARNFLAGS 813CXXMODEFLAGS 814ac_ct_CXX 815CXXFLAGS 816CXX 817CUSERFLAGS 818CMAINTAINERFLAGS 819CNOWARNFLAGS 820CMODEFLAGS 821OBJEXT 822EXEEXT 823ac_ct_CC 824CPPFLAGS 825LDFLAGS 826CFLAGS 827CC 828SWIG_LDFLAGS 829canonicalized_srcdir 830abs_builddir 831abs_srcdir 832target_alias 833host_alias 834build_alias 835LIBS 836ECHO_T 837ECHO_N 838ECHO_C 839DEFS 840mandir 841localedir 842libdir 843psdir 844pdfdir 845dvidir 846htmldir 847infodir 848docdir 849oldincludedir 850includedir 851localstatedir 852sharedstatedir 853sysconfdir 854datadir 855datarootdir 856libexecdir 857sbindir 858bindir 859program_transform_name 860prefix 861exec_prefix 862PACKAGE_URL 863PACKAGE_BUGREPORT 864PACKAGE_STRING 865PACKAGE_VERSION 866PACKAGE_TARNAME 867PACKAGE_NAME 868PATH_SEPARATOR 869SHELL' 870ac_subst_files='' 871ac_user_opts=' 872enable_option_checking 873with_apr 874with_apr_util 875with_serf 876with_apr_memcache 877enable_apache_whitelist 878with_apxs 879with_apache_libexecdir 880enable_broken_httpd_auth 881with_sqlite 882enable_sqlite_compatibility_version 883enable_shared 884enable_static 885with_pic 886enable_fast_install 887with_aix_soname 888with_gnu_ld 889with_sysroot 890enable_libtool_lock 891enable_experimental_libtool 892enable_all_static 893enable_local_library_preloading 894with_trang 895with_doxygen 896with_expat 897with_berkeley_db 898enable_bdb6 899with_sasl 900enable_keychain 901with_gpg_agent 902with_old_gnome_keyring 903with_gnome_keyring 904enable_googlemock 905enable_ev2_impl 906enable_nls 907with_libmagic 908with_kwallet 909enable_plaintext_password_storage 910enable_debug 911enable_optimize 912enable_disallowing_of_undefined_references 913enable_maintainer_mode 914enable_full_version_match 915with_editor 916with_zlib 917with_lz4 918with_utf8proc 919enable_mod_activation 920enable_gcov 921enable_gprof 922with_jdk 923with_jikes 924with_swig 925with_ruby_sitedir 926with_ruby_test_verbose 927with_ctypesgen 928enable_runtime_module_search 929enable_javahl 930with_junit 931' 932 ac_precious_vars='build_alias 933host_alias 934target_alias 935CC 936CFLAGS 937LDFLAGS 938LIBS 939CPPFLAGS 940CXX 941CXXFLAGS 942CCC 943CPP 944LT_SYS_LIBRARY_PATH 945CXXCPP 946SWIG_FEATURES 947SWIG_RB_FEATURES 948SWIG_PL_FEATURES 949SWIG_PY_FEATURES' 950 951 952# Initialize some variables set by options. 953ac_init_help= 954ac_init_version=false 955ac_unrecognized_opts= 956ac_unrecognized_sep= 957# The variables have the same names as the options, with 958# dashes changed to underlines. 959cache_file=/dev/null 960exec_prefix=NONE 961no_create= 962no_recursion= 963prefix=NONE 964program_prefix=NONE 965program_suffix=NONE 966program_transform_name=s,x,x, 967silent= 968site= 969srcdir= 970verbose= 971x_includes=NONE 972x_libraries=NONE 973 974# Installation directory options. 975# These are left unexpanded so users can "make install exec_prefix=/foo" 976# and all the variables that are supposed to be based on exec_prefix 977# by default will actually change. 978# Use braces instead of parens because sh, perl, etc. also accept them. 979# (The list follows the same order as the GNU Coding Standards.) 980bindir='${exec_prefix}/bin' 981sbindir='${exec_prefix}/sbin' 982libexecdir='${exec_prefix}/libexec' 983datarootdir='${prefix}/share' 984datadir='${datarootdir}' 985sysconfdir='${prefix}/etc' 986sharedstatedir='${prefix}/com' 987localstatedir='${prefix}/var' 988includedir='${prefix}/include' 989oldincludedir='/usr/include' 990docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 991infodir='${datarootdir}/info' 992htmldir='${docdir}' 993dvidir='${docdir}' 994pdfdir='${docdir}' 995psdir='${docdir}' 996libdir='${exec_prefix}/lib' 997localedir='${datarootdir}/locale' 998mandir='${datarootdir}/man' 999 1000ac_prev= 1001ac_dashdash= 1002for ac_option 1003do 1004 # If the previous option needs an argument, assign it. 1005 if test -n "$ac_prev"; then 1006 eval $ac_prev=\$ac_option 1007 ac_prev= 1008 continue 1009 fi 1010 1011 case $ac_option in 1012 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1013 *=) ac_optarg= ;; 1014 *) ac_optarg=yes ;; 1015 esac 1016 1017 # Accept the important Cygnus configure options, so we can diagnose typos. 1018 1019 case $ac_dashdash$ac_option in 1020 --) 1021 ac_dashdash=yes ;; 1022 1023 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1024 ac_prev=bindir ;; 1025 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1026 bindir=$ac_optarg ;; 1027 1028 -build | --build | --buil | --bui | --bu) 1029 ac_prev=build_alias ;; 1030 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1031 build_alias=$ac_optarg ;; 1032 1033 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1034 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1035 ac_prev=cache_file ;; 1036 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1037 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1038 cache_file=$ac_optarg ;; 1039 1040 --config-cache | -C) 1041 cache_file=config.cache ;; 1042 1043 -datadir | --datadir | --datadi | --datad) 1044 ac_prev=datadir ;; 1045 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1046 datadir=$ac_optarg ;; 1047 1048 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1049 | --dataroo | --dataro | --datar) 1050 ac_prev=datarootdir ;; 1051 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1052 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1053 datarootdir=$ac_optarg ;; 1054 1055 -disable-* | --disable-*) 1056 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1057 # Reject names that are not valid shell variable names. 1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1059 as_fn_error $? "invalid feature name: $ac_useropt" 1060 ac_useropt_orig=$ac_useropt 1061 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1062 case $ac_user_opts in 1063 *" 1064"enable_$ac_useropt" 1065"*) ;; 1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1067 ac_unrecognized_sep=', ';; 1068 esac 1069 eval enable_$ac_useropt=no ;; 1070 1071 -docdir | --docdir | --docdi | --doc | --do) 1072 ac_prev=docdir ;; 1073 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1074 docdir=$ac_optarg ;; 1075 1076 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1077 ac_prev=dvidir ;; 1078 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1079 dvidir=$ac_optarg ;; 1080 1081 -enable-* | --enable-*) 1082 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1083 # Reject names that are not valid shell variable names. 1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1085 as_fn_error $? "invalid feature name: $ac_useropt" 1086 ac_useropt_orig=$ac_useropt 1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1088 case $ac_user_opts in 1089 *" 1090"enable_$ac_useropt" 1091"*) ;; 1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1093 ac_unrecognized_sep=', ';; 1094 esac 1095 eval enable_$ac_useropt=\$ac_optarg ;; 1096 1097 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1098 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1099 | --exec | --exe | --ex) 1100 ac_prev=exec_prefix ;; 1101 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1102 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1103 | --exec=* | --exe=* | --ex=*) 1104 exec_prefix=$ac_optarg ;; 1105 1106 -gas | --gas | --ga | --g) 1107 # Obsolete; use --with-gas. 1108 with_gas=yes ;; 1109 1110 -help | --help | --hel | --he | -h) 1111 ac_init_help=long ;; 1112 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1113 ac_init_help=recursive ;; 1114 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1115 ac_init_help=short ;; 1116 1117 -host | --host | --hos | --ho) 1118 ac_prev=host_alias ;; 1119 -host=* | --host=* | --hos=* | --ho=*) 1120 host_alias=$ac_optarg ;; 1121 1122 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1123 ac_prev=htmldir ;; 1124 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1125 | --ht=*) 1126 htmldir=$ac_optarg ;; 1127 1128 -includedir | --includedir | --includedi | --included | --include \ 1129 | --includ | --inclu | --incl | --inc) 1130 ac_prev=includedir ;; 1131 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1132 | --includ=* | --inclu=* | --incl=* | --inc=*) 1133 includedir=$ac_optarg ;; 1134 1135 -infodir | --infodir | --infodi | --infod | --info | --inf) 1136 ac_prev=infodir ;; 1137 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1138 infodir=$ac_optarg ;; 1139 1140 -libdir | --libdir | --libdi | --libd) 1141 ac_prev=libdir ;; 1142 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1143 libdir=$ac_optarg ;; 1144 1145 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1146 | --libexe | --libex | --libe) 1147 ac_prev=libexecdir ;; 1148 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1149 | --libexe=* | --libex=* | --libe=*) 1150 libexecdir=$ac_optarg ;; 1151 1152 -localedir | --localedir | --localedi | --localed | --locale) 1153 ac_prev=localedir ;; 1154 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1155 localedir=$ac_optarg ;; 1156 1157 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1158 | --localstate | --localstat | --localsta | --localst | --locals) 1159 ac_prev=localstatedir ;; 1160 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1161 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1162 localstatedir=$ac_optarg ;; 1163 1164 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1165 ac_prev=mandir ;; 1166 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1167 mandir=$ac_optarg ;; 1168 1169 -nfp | --nfp | --nf) 1170 # Obsolete; use --without-fp. 1171 with_fp=no ;; 1172 1173 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1174 | --no-cr | --no-c | -n) 1175 no_create=yes ;; 1176 1177 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1178 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1179 no_recursion=yes ;; 1180 1181 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1182 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1183 | --oldin | --oldi | --old | --ol | --o) 1184 ac_prev=oldincludedir ;; 1185 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1186 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1187 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1188 oldincludedir=$ac_optarg ;; 1189 1190 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1191 ac_prev=prefix ;; 1192 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1193 prefix=$ac_optarg ;; 1194 1195 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1196 | --program-pre | --program-pr | --program-p) 1197 ac_prev=program_prefix ;; 1198 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1199 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1200 program_prefix=$ac_optarg ;; 1201 1202 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1203 | --program-suf | --program-su | --program-s) 1204 ac_prev=program_suffix ;; 1205 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1206 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1207 program_suffix=$ac_optarg ;; 1208 1209 -program-transform-name | --program-transform-name \ 1210 | --program-transform-nam | --program-transform-na \ 1211 | --program-transform-n | --program-transform- \ 1212 | --program-transform | --program-transfor \ 1213 | --program-transfo | --program-transf \ 1214 | --program-trans | --program-tran \ 1215 | --progr-tra | --program-tr | --program-t) 1216 ac_prev=program_transform_name ;; 1217 -program-transform-name=* | --program-transform-name=* \ 1218 | --program-transform-nam=* | --program-transform-na=* \ 1219 | --program-transform-n=* | --program-transform-=* \ 1220 | --program-transform=* | --program-transfor=* \ 1221 | --program-transfo=* | --program-transf=* \ 1222 | --program-trans=* | --program-tran=* \ 1223 | --progr-tra=* | --program-tr=* | --program-t=*) 1224 program_transform_name=$ac_optarg ;; 1225 1226 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1227 ac_prev=pdfdir ;; 1228 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1229 pdfdir=$ac_optarg ;; 1230 1231 -psdir | --psdir | --psdi | --psd | --ps) 1232 ac_prev=psdir ;; 1233 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1234 psdir=$ac_optarg ;; 1235 1236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1237 | -silent | --silent | --silen | --sile | --sil) 1238 silent=yes ;; 1239 1240 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1241 ac_prev=sbindir ;; 1242 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1243 | --sbi=* | --sb=*) 1244 sbindir=$ac_optarg ;; 1245 1246 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1247 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1248 | --sharedst | --shareds | --shared | --share | --shar \ 1249 | --sha | --sh) 1250 ac_prev=sharedstatedir ;; 1251 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1252 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1253 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1254 | --sha=* | --sh=*) 1255 sharedstatedir=$ac_optarg ;; 1256 1257 -site | --site | --sit) 1258 ac_prev=site ;; 1259 -site=* | --site=* | --sit=*) 1260 site=$ac_optarg ;; 1261 1262 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1263 ac_prev=srcdir ;; 1264 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1265 srcdir=$ac_optarg ;; 1266 1267 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1268 | --syscon | --sysco | --sysc | --sys | --sy) 1269 ac_prev=sysconfdir ;; 1270 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1271 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1272 sysconfdir=$ac_optarg ;; 1273 1274 -target | --target | --targe | --targ | --tar | --ta | --t) 1275 ac_prev=target_alias ;; 1276 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1277 target_alias=$ac_optarg ;; 1278 1279 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1280 verbose=yes ;; 1281 1282 -version | --version | --versio | --versi | --vers | -V) 1283 ac_init_version=: ;; 1284 1285 -with-* | --with-*) 1286 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1287 # Reject names that are not valid shell variable names. 1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1289 as_fn_error $? "invalid package name: $ac_useropt" 1290 ac_useropt_orig=$ac_useropt 1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1292 case $ac_user_opts in 1293 *" 1294"with_$ac_useropt" 1295"*) ;; 1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1297 ac_unrecognized_sep=', ';; 1298 esac 1299 eval with_$ac_useropt=\$ac_optarg ;; 1300 1301 -without-* | --without-*) 1302 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1303 # Reject names that are not valid shell variable names. 1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1305 as_fn_error $? "invalid package name: $ac_useropt" 1306 ac_useropt_orig=$ac_useropt 1307 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1308 case $ac_user_opts in 1309 *" 1310"with_$ac_useropt" 1311"*) ;; 1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1313 ac_unrecognized_sep=', ';; 1314 esac 1315 eval with_$ac_useropt=no ;; 1316 1317 --x) 1318 # Obsolete; use --with-x. 1319 with_x=yes ;; 1320 1321 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1322 | --x-incl | --x-inc | --x-in | --x-i) 1323 ac_prev=x_includes ;; 1324 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1325 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1326 x_includes=$ac_optarg ;; 1327 1328 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1329 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1330 ac_prev=x_libraries ;; 1331 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1332 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1333 x_libraries=$ac_optarg ;; 1334 1335 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1336Try \`$0 --help' for more information" 1337 ;; 1338 1339 *=*) 1340 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1341 # Reject names that are not valid shell variable names. 1342 case $ac_envvar in #( 1343 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1344 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1345 esac 1346 eval $ac_envvar=\$ac_optarg 1347 export $ac_envvar ;; 1348 1349 *) 1350 # FIXME: should be removed in autoconf 3.0. 1351 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1352 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1353 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1354 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1355 ;; 1356 1357 esac 1358done 1359 1360if test -n "$ac_prev"; then 1361 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1362 as_fn_error $? "missing argument to $ac_option" 1363fi 1364 1365if test -n "$ac_unrecognized_opts"; then 1366 case $enable_option_checking in 1367 no) ;; 1368 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1369 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1370 esac 1371fi 1372 1373# Check all directory arguments for consistency. 1374for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1375 datadir sysconfdir sharedstatedir localstatedir includedir \ 1376 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1377 libdir localedir mandir 1378do 1379 eval ac_val=\$$ac_var 1380 # Remove trailing slashes. 1381 case $ac_val in 1382 */ ) 1383 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1384 eval $ac_var=\$ac_val;; 1385 esac 1386 # Be sure to have absolute directory names. 1387 case $ac_val in 1388 [\\/$]* | ?:[\\/]* ) continue;; 1389 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1390 esac 1391 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1392done 1393 1394# There might be people who depend on the old broken behavior: `$host' 1395# used to hold the argument of --host etc. 1396# FIXME: To remove some day. 1397build=$build_alias 1398host=$host_alias 1399target=$target_alias 1400 1401# FIXME: To remove some day. 1402if test "x$host_alias" != x; then 1403 if test "x$build_alias" = x; then 1404 cross_compiling=maybe 1405 elif test "x$build_alias" != "x$host_alias"; then 1406 cross_compiling=yes 1407 fi 1408fi 1409 1410ac_tool_prefix= 1411test -n "$host_alias" && ac_tool_prefix=$host_alias- 1412 1413test "$silent" = yes && exec 6>/dev/null 1414 1415 1416ac_pwd=`pwd` && test -n "$ac_pwd" && 1417ac_ls_di=`ls -di .` && 1418ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1419 as_fn_error $? "working directory cannot be determined" 1420test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1421 as_fn_error $? "pwd does not report name of working directory" 1422 1423 1424# Find the source files, if location was not specified. 1425if test -z "$srcdir"; then 1426 ac_srcdir_defaulted=yes 1427 # Try the directory containing this script, then the parent directory. 1428 ac_confdir=`$as_dirname -- "$as_myself" || 1429$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1430 X"$as_myself" : 'X\(//\)[^/]' \| \ 1431 X"$as_myself" : 'X\(//\)$' \| \ 1432 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1433$as_echo X"$as_myself" | 1434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1435 s//\1/ 1436 q 1437 } 1438 /^X\(\/\/\)[^/].*/{ 1439 s//\1/ 1440 q 1441 } 1442 /^X\(\/\/\)$/{ 1443 s//\1/ 1444 q 1445 } 1446 /^X\(\/\).*/{ 1447 s//\1/ 1448 q 1449 } 1450 s/.*/./; q'` 1451 srcdir=$ac_confdir 1452 if test ! -r "$srcdir/$ac_unique_file"; then 1453 srcdir=.. 1454 fi 1455else 1456 ac_srcdir_defaulted=no 1457fi 1458if test ! -r "$srcdir/$ac_unique_file"; then 1459 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1460 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1461fi 1462ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1463ac_abs_confdir=`( 1464 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1465 pwd)` 1466# When building in place, set srcdir=. 1467if test "$ac_abs_confdir" = "$ac_pwd"; then 1468 srcdir=. 1469fi 1470# Remove unnecessary trailing slashes from srcdir. 1471# Double slashes in file names in object file debugging info 1472# mess up M-x gdb in Emacs. 1473case $srcdir in 1474*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1475esac 1476for ac_var in $ac_precious_vars; do 1477 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1478 eval ac_env_${ac_var}_value=\$${ac_var} 1479 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1480 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1481done 1482 1483# 1484# Report the --help message. 1485# 1486if test "$ac_init_help" = "long"; then 1487 # Omit some internal or obsolete options to make the list less imposing. 1488 # This message is too long to be a string in the A/UX 3.1 sh. 1489 cat <<_ACEOF 1490\`configure' configures subversion 1.10.0 to adapt to many kinds of systems. 1491 1492Usage: $0 [OPTION]... [VAR=VALUE]... 1493 1494To assign environment variables (e.g., CC, CFLAGS...), specify them as 1495VAR=VALUE. See below for descriptions of some of the useful variables. 1496 1497Defaults for the options are specified in brackets. 1498 1499Configuration: 1500 -h, --help display this help and exit 1501 --help=short display options specific to this package 1502 --help=recursive display the short help of all the included packages 1503 -V, --version display version information and exit 1504 -q, --quiet, --silent do not print \`checking ...' messages 1505 --cache-file=FILE cache test results in FILE [disabled] 1506 -C, --config-cache alias for \`--cache-file=config.cache' 1507 -n, --no-create do not create output files 1508 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1509 1510Installation directories: 1511 --prefix=PREFIX install architecture-independent files in PREFIX 1512 [$ac_default_prefix] 1513 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1514 [PREFIX] 1515 1516By default, \`make install' will install all the files in 1517\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1518an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1519for instance \`--prefix=\$HOME'. 1520 1521For better control, use the options below. 1522 1523Fine tuning of the installation directories: 1524 --bindir=DIR user executables [EPREFIX/bin] 1525 --sbindir=DIR system admin executables [EPREFIX/sbin] 1526 --libexecdir=DIR program executables [EPREFIX/libexec] 1527 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1528 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1529 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1530 --libdir=DIR object code libraries [EPREFIX/lib] 1531 --includedir=DIR C header files [PREFIX/include] 1532 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1533 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1534 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1535 --infodir=DIR info documentation [DATAROOTDIR/info] 1536 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1537 --mandir=DIR man documentation [DATAROOTDIR/man] 1538 --docdir=DIR documentation root [DATAROOTDIR/doc/subversion] 1539 --htmldir=DIR html documentation [DOCDIR] 1540 --dvidir=DIR dvi documentation [DOCDIR] 1541 --pdfdir=DIR pdf documentation [DOCDIR] 1542 --psdir=DIR ps documentation [DOCDIR] 1543_ACEOF 1544 1545 cat <<\_ACEOF 1546 1547System types: 1548 --build=BUILD configure for building on BUILD [guessed] 1549 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1550 --target=TARGET configure for building compilers for TARGET [HOST] 1551_ACEOF 1552fi 1553 1554if test -n "$ac_init_help"; then 1555 case $ac_init_help in 1556 short | recursive ) echo "Configuration of subversion 1.10.0:";; 1557 esac 1558 cat <<\_ACEOF 1559 1560Optional Features: 1561 --disable-option-checking ignore unrecognized --enable/--with options 1562 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1563 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1564 --enable-apache-whitelist=VER 1565 Whitelist a particular Apache version number, 1566 typically used to enable the use of a old version 1567 patched by a distribution. 1568 --enable-broken-httpd-auth 1569 Force build against httpd 2.4 with broken auth. 1570 (This is not recommended as Subversion will be 1571 vulnerable to CVE-2015-3184.) 1572 --enable-sqlite-compatibility-version=X.Y.Z 1573 Allow binary to run against SQLite as old as ARG 1574 --enable-shared[=PKGS] build shared libraries [default=yes] 1575 --enable-static[=PKGS] build static libraries [default=yes] 1576 --enable-fast-install[=PKGS] 1577 optimize for fast installation [default=yes] 1578 --disable-libtool-lock avoid locking (might break parallel builds) 1579 --enable-experimental-libtool 1580 Use APR's libtool 1581 --enable-static Build static libraries 1582 --enable-shared Build shared libraries 1583 --enable-all-static Build completely static (standalone) binaries. 1584 --enable-local-library-preloading 1585 Enable preloading of locally built libraries in 1586 locally built executables. This may be necessary for 1587 testing prior to installation on some platforms. It 1588 does not work on some platforms (Darwin, OpenBSD, 1589 ...). 1590 --enable-bdb6 Allow building against BDB 6+. See 1591 --with-berkeley-db for specifying the location of 1592 the Berkeley DB installation. Using BDB 6 will fail 1593 if this option is not used. 1594 --disable-keychain Disable use of Mac OS KeyChain for auth credentials 1595 --disable-googlemock Do not use the Googlemock testing framework 1596 --enable-ev2-impl Use Ev2 implementations, where available 1597 [EXPERIMENTAL] 1598 --disable-nls Disable gettext functionality 1599 --disable-plaintext-password-storage 1600 Disable on-disk caching of plaintext passwords and 1601 passphrases. (Leaving this functionality enabled 1602 will not force Subversion to store passwords in 1603 plaintext, but does permit users to explicitly allow 1604 that behavior via runtime configuration.) 1605 --enable-debug Turn on debugging 1606 --enable-optimize Turn on optimizations 1607 --enable-disallowing-of-undefined-references 1608 Use -Wl,--no-undefined flag during linking of some 1609 libraries to disallow undefined references 1610 --enable-maintainer-mode 1611 Turn on debugging and very strict compile-time 1612 warnings 1613 --disable-full-version-match 1614 Disable the full version match rules when checking 1615 Subversion library compatibility. 1616 --enable-mod-activation Enable mod_dav_svn in httpd.conf 1617 --enable-gcov Turn on gcov coverage testing (GCC only). 1618 --enable-gprof Produce gprof profiling data in 'gmon.out' (GCC 1619 only). 1620 --enable-runtime-module-search 1621 Turn on dynamic loading of RA/FS libraries including 1622 third-party FS libraries 1623 --enable-javahl Enable compilation of Java high-level bindings 1624 (requires C++) 1625 1626Optional Packages: 1627 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1628 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1629 --with-apr=PATH prefix for installed APR or the full path to 1630 apr-config 1631 --with-apr-util=PATH prefix for installed APU or the full path to 1632 apu-config 1633 --with-serf=PREFIX Serf HTTP client library (enabled by default if 1634 found) 1635 --with-apr_memcache=PREFIX 1636 Standalone apr_memcache client library 1637 --with-apxs[=FILE] Build shared Apache modules. FILE is the optional 1638 pathname to the Apache apxs tool; defaults to 1639 "apxs". 1640 --with-apache-libexecdir[=PATH] 1641 Install Apache modules to Apache's configured 1642 modules directory instead of LIBEXECDIR; if PATH is 1643 given, install to PATH. 1644 --with-sqlite=PREFIX Use installed SQLite library or amalgamation file. 1645 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1646 both] 1647 --with-aix-soname=aix|svr4|both 1648 shared library versioning (aka "SONAME") variant to 1649 provide on AIX, [default=aix]. 1650 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1651 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1652 compiler's sysroot if not specified). 1653 --with-trang=PATH Specify the command to run the trang schema 1654 converter 1655 --with-doxygen=PATH Specify the command to run doxygen 1656 --with-expat=INCLUDES:LIB_SEARCH_DIRS:LIBS 1657 Specify location of Expat 1658 --with-berkeley-db[=HEADER:INCLUDES:LIB_SEARCH_DIRS:LIBS] 1659 The Subversion Berkeley DB based filesystem library 1660 requires Berkeley DB $db_version or $db_alt_version. 1661 If you specify `--without-berkeley-db', that library 1662 will not be built. If you omit the argument of this 1663 option completely, the configure script will use 1664 Berkeley DB used by APR-UTIL. 1665 --with-sasl=PATH Compile with libsasl2 in PATH 1666 --without-gpg-agent Disable support for GPG-Agent 1667 --with-old-gnome-keyring 1668 Enable old GNOME Keyring for auth credentials 1669 (prefer --with-gnome-keyring) 1670 --with-gnome-keyring Enable GNOME Keyring for auth credentials (enabled 1671 by default if found) 1672 --with-libmagic=PREFIX libmagic filetype detection library 1673 --with-kwallet[=PATH|INCDIR:LIBDIR] 1674 Enable use of KWallet (KDE 5 or 4) for auth 1675 credentials. PATH is the KDE install path, 1676 alternatively INCDIR:LIBDIR are the header and 1677 library install paths. 1678 --with-editor=PATH Specify a default editor for the subversion client. 1679 --with-zlib=PREFIX zlib compression library 1680 --with-lz4=PREFIX|internal 1681 look for lz4 in PREFIX or use the internal code 1682 --with-utf8proc=PREFIX|internal 1683 look for utf8proc in PREFIX or use the internal code 1684 --with-jdk=PATH Try to use 'PATH/include' to find the JNI headers. 1685 If PATH is not specified, look for a Java 1686 Development Kit at JAVA_HOME. 1687 --with-jikes=PATH Deprecated. Provided for backward compatibility. 1688 --with-swig=PATH Try to use 'PATH/bin/swig' to build the swig 1689 bindings. If PATH is not specified, look for a 1690 'swig' binary in your PATH. 1691 --with-ruby-sitedir=SITEDIR 1692 install Ruby bindings in SITEDIR (default is same as 1693 ruby's one) 1694 --with-ruby-test-verbose=LEVEL 1695 how to use output level for Ruby bindings tests 1696 (default is normal) 1697 --with-ctypesgen=PATH Specify the path to ctypesgen. This can either be 1698 the full path to a ctypesgen installation, the full 1699 path to a ctypesgen source tree or the full path to 1700 ctypesgen.py. 1701 --with-junit=PATH Specify a path to the junit JAR file. 1702 1703Some influential environment variables: 1704 CC C compiler command 1705 CFLAGS C compiler flags 1706 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1707 nonstandard directory <lib dir> 1708 LIBS libraries to pass to the linker, e.g. -l<library> 1709 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1710 you have headers in a nonstandard directory <include dir> 1711 CXX C++ compiler command 1712 CXXFLAGS C++ compiler flags 1713 CPP C preprocessor 1714 LT_SYS_LIBRARY_PATH 1715 User-defined run-time library search path. 1716 CXXCPP C++ preprocessor 1717 SWIG_FEATURES 1718 SWIG feature flags common to all bindings 1719 SWIG_RB_FEATURES 1720 SWIG feature flags specific to Ruby bindings 1721 SWIG_PL_FEATURES 1722 SWIG feature flags specific to Perl bindings 1723 SWIG_PY_FEATURES 1724 SWIG feature flags specific to Python bindings 1725 1726Use these variables to override the choices made by `configure' or to help 1727it to find libraries and programs with nonstandard names/locations. 1728 1729Report bugs to <http://subversion.apache.org/>. 1730_ACEOF 1731ac_status=$? 1732fi 1733 1734if test "$ac_init_help" = "recursive"; then 1735 # If there are subdirs, report their specific --help. 1736 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1737 test -d "$ac_dir" || 1738 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1739 continue 1740 ac_builddir=. 1741 1742case "$ac_dir" in 1743.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1744*) 1745 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1746 # A ".." for each directory in $ac_dir_suffix. 1747 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1748 case $ac_top_builddir_sub in 1749 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1750 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1751 esac ;; 1752esac 1753ac_abs_top_builddir=$ac_pwd 1754ac_abs_builddir=$ac_pwd$ac_dir_suffix 1755# for backward compatibility: 1756ac_top_builddir=$ac_top_build_prefix 1757 1758case $srcdir in 1759 .) # We are building in place. 1760 ac_srcdir=. 1761 ac_top_srcdir=$ac_top_builddir_sub 1762 ac_abs_top_srcdir=$ac_pwd ;; 1763 [\\/]* | ?:[\\/]* ) # Absolute name. 1764 ac_srcdir=$srcdir$ac_dir_suffix; 1765 ac_top_srcdir=$srcdir 1766 ac_abs_top_srcdir=$srcdir ;; 1767 *) # Relative name. 1768 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1769 ac_top_srcdir=$ac_top_build_prefix$srcdir 1770 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1771esac 1772ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1773 1774 cd "$ac_dir" || { ac_status=$?; continue; } 1775 # Check for guested configure. 1776 if test -f "$ac_srcdir/configure.gnu"; then 1777 echo && 1778 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1779 elif test -f "$ac_srcdir/configure"; then 1780 echo && 1781 $SHELL "$ac_srcdir/configure" --help=recursive 1782 else 1783 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1784 fi || ac_status=$? 1785 cd "$ac_pwd" || { ac_status=$?; break; } 1786 done 1787fi 1788 1789test -n "$ac_init_help" && exit $ac_status 1790if $ac_init_version; then 1791 cat <<\_ACEOF 1792subversion configure 1.10.0 1793generated by GNU Autoconf 2.69 1794 1795Copyright (C) 2012 Free Software Foundation, Inc. 1796This configure script is free software; the Free Software Foundation 1797gives unlimited permission to copy, distribute and modify it. 1798_ACEOF 1799 exit 1800fi 1801 1802## ------------------------ ## 1803## Autoconf initialization. ## 1804## ------------------------ ## 1805 1806# ac_fn_c_try_compile LINENO 1807# -------------------------- 1808# Try to compile conftest.$ac_ext, and return whether this succeeded. 1809ac_fn_c_try_compile () 1810{ 1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1812 rm -f conftest.$ac_objext 1813 if { { ac_try="$ac_compile" 1814case "(($ac_try" in 1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1816 *) ac_try_echo=$ac_try;; 1817esac 1818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1819$as_echo "$ac_try_echo"; } >&5 1820 (eval "$ac_compile") 2>conftest.err 1821 ac_status=$? 1822 if test -s conftest.err; then 1823 grep -v '^ *+' conftest.err >conftest.er1 1824 cat conftest.er1 >&5 1825 mv -f conftest.er1 conftest.err 1826 fi 1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1828 test $ac_status = 0; } && { 1829 test -z "$ac_c_werror_flag" || 1830 test ! -s conftest.err 1831 } && test -s conftest.$ac_objext; then : 1832 ac_retval=0 1833else 1834 $as_echo "$as_me: failed program was:" >&5 1835sed 's/^/| /' conftest.$ac_ext >&5 1836 1837 ac_retval=1 1838fi 1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1840 as_fn_set_status $ac_retval 1841 1842} # ac_fn_c_try_compile 1843 1844# ac_fn_c_try_link LINENO 1845# ----------------------- 1846# Try to link conftest.$ac_ext, and return whether this succeeded. 1847ac_fn_c_try_link () 1848{ 1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1850 rm -f conftest.$ac_objext conftest$ac_exeext 1851 if { { ac_try="$ac_link" 1852case "(($ac_try" in 1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1854 *) ac_try_echo=$ac_try;; 1855esac 1856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1857$as_echo "$ac_try_echo"; } >&5 1858 (eval "$ac_link") 2>conftest.err 1859 ac_status=$? 1860 if test -s conftest.err; then 1861 grep -v '^ *+' conftest.err >conftest.er1 1862 cat conftest.er1 >&5 1863 mv -f conftest.er1 conftest.err 1864 fi 1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1866 test $ac_status = 0; } && { 1867 test -z "$ac_c_werror_flag" || 1868 test ! -s conftest.err 1869 } && test -s conftest$ac_exeext && { 1870 test "$cross_compiling" = yes || 1871 test -x conftest$ac_exeext 1872 }; then : 1873 ac_retval=0 1874else 1875 $as_echo "$as_me: failed program was:" >&5 1876sed 's/^/| /' conftest.$ac_ext >&5 1877 1878 ac_retval=1 1879fi 1880 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1881 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1882 # interfere with the next link command; also delete a directory that is 1883 # left behind by Apple's compiler. We do this before executing the actions. 1884 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1886 as_fn_set_status $ac_retval 1887 1888} # ac_fn_c_try_link 1889 1890# ac_fn_cxx_try_compile LINENO 1891# ---------------------------- 1892# Try to compile conftest.$ac_ext, and return whether this succeeded. 1893ac_fn_cxx_try_compile () 1894{ 1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1896 rm -f conftest.$ac_objext 1897 if { { ac_try="$ac_compile" 1898case "(($ac_try" in 1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1900 *) ac_try_echo=$ac_try;; 1901esac 1902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1903$as_echo "$ac_try_echo"; } >&5 1904 (eval "$ac_compile") 2>conftest.err 1905 ac_status=$? 1906 if test -s conftest.err; then 1907 grep -v '^ *+' conftest.err >conftest.er1 1908 cat conftest.er1 >&5 1909 mv -f conftest.er1 conftest.err 1910 fi 1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1912 test $ac_status = 0; } && { 1913 test -z "$ac_cxx_werror_flag" || 1914 test ! -s conftest.err 1915 } && test -s conftest.$ac_objext; then : 1916 ac_retval=0 1917else 1918 $as_echo "$as_me: failed program was:" >&5 1919sed 's/^/| /' conftest.$ac_ext >&5 1920 1921 ac_retval=1 1922fi 1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1924 as_fn_set_status $ac_retval 1925 1926} # ac_fn_cxx_try_compile 1927 1928# ac_fn_cxx_try_link LINENO 1929# ------------------------- 1930# Try to link conftest.$ac_ext, and return whether this succeeded. 1931ac_fn_cxx_try_link () 1932{ 1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1934 rm -f conftest.$ac_objext conftest$ac_exeext 1935 if { { ac_try="$ac_link" 1936case "(($ac_try" in 1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1938 *) ac_try_echo=$ac_try;; 1939esac 1940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1941$as_echo "$ac_try_echo"; } >&5 1942 (eval "$ac_link") 2>conftest.err 1943 ac_status=$? 1944 if test -s conftest.err; then 1945 grep -v '^ *+' conftest.err >conftest.er1 1946 cat conftest.er1 >&5 1947 mv -f conftest.er1 conftest.err 1948 fi 1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1950 test $ac_status = 0; } && { 1951 test -z "$ac_cxx_werror_flag" || 1952 test ! -s conftest.err 1953 } && test -s conftest$ac_exeext && { 1954 test "$cross_compiling" = yes || 1955 test -x conftest$ac_exeext 1956 }; then : 1957 ac_retval=0 1958else 1959 $as_echo "$as_me: failed program was:" >&5 1960sed 's/^/| /' conftest.$ac_ext >&5 1961 1962 ac_retval=1 1963fi 1964 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1965 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1966 # interfere with the next link command; also delete a directory that is 1967 # left behind by Apple's compiler. We do this before executing the actions. 1968 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1970 as_fn_set_status $ac_retval 1971 1972} # ac_fn_cxx_try_link 1973 1974# ac_fn_c_try_cpp LINENO 1975# ---------------------- 1976# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1977ac_fn_c_try_cpp () 1978{ 1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1980 if { { ac_try="$ac_cpp conftest.$ac_ext" 1981case "(($ac_try" in 1982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1983 *) ac_try_echo=$ac_try;; 1984esac 1985eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1986$as_echo "$ac_try_echo"; } >&5 1987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1988 ac_status=$? 1989 if test -s conftest.err; then 1990 grep -v '^ *+' conftest.err >conftest.er1 1991 cat conftest.er1 >&5 1992 mv -f conftest.er1 conftest.err 1993 fi 1994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1995 test $ac_status = 0; } > conftest.i && { 1996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1997 test ! -s conftest.err 1998 }; then : 1999 ac_retval=0 2000else 2001 $as_echo "$as_me: failed program was:" >&5 2002sed 's/^/| /' conftest.$ac_ext >&5 2003 2004 ac_retval=1 2005fi 2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2007 as_fn_set_status $ac_retval 2008 2009} # ac_fn_c_try_cpp 2010 2011# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2012# ------------------------------------------------------- 2013# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2014# the include files in INCLUDES and setting the cache variable VAR 2015# accordingly. 2016ac_fn_c_check_header_mongrel () 2017{ 2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2019 if eval \${$3+:} false; then : 2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2021$as_echo_n "checking for $2... " >&6; } 2022if eval \${$3+:} false; then : 2023 $as_echo_n "(cached) " >&6 2024fi 2025eval ac_res=\$$3 2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2027$as_echo "$ac_res" >&6; } 2028else 2029 # Is the header compilable? 2030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2031$as_echo_n "checking $2 usability... " >&6; } 2032cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2033/* end confdefs.h. */ 2034$4 2035#include <$2> 2036_ACEOF 2037if ac_fn_c_try_compile "$LINENO"; then : 2038 ac_header_compiler=yes 2039else 2040 ac_header_compiler=no 2041fi 2042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2044$as_echo "$ac_header_compiler" >&6; } 2045 2046# Is the header present? 2047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2048$as_echo_n "checking $2 presence... " >&6; } 2049cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2050/* end confdefs.h. */ 2051#include <$2> 2052_ACEOF 2053if ac_fn_c_try_cpp "$LINENO"; then : 2054 ac_header_preproc=yes 2055else 2056 ac_header_preproc=no 2057fi 2058rm -f conftest.err conftest.i conftest.$ac_ext 2059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2060$as_echo "$ac_header_preproc" >&6; } 2061 2062# So? What about this header? 2063case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2064 yes:no: ) 2065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2066$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2068$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2069 ;; 2070 no:yes:* ) 2071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2072$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2074$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2076$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2078$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2080$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2081( $as_echo "## -------------------------------------------- ## 2082## Report this to http://subversion.apache.org/ ## 2083## -------------------------------------------- ##" 2084 ) | sed "s/^/$as_me: WARNING: /" >&2 2085 ;; 2086esac 2087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2088$as_echo_n "checking for $2... " >&6; } 2089if eval \${$3+:} false; then : 2090 $as_echo_n "(cached) " >&6 2091else 2092 eval "$3=\$ac_header_compiler" 2093fi 2094eval ac_res=\$$3 2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2096$as_echo "$ac_res" >&6; } 2097fi 2098 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2099 2100} # ac_fn_c_check_header_mongrel 2101 2102# ac_fn_c_try_run LINENO 2103# ---------------------- 2104# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2105# that executables *can* be run. 2106ac_fn_c_try_run () 2107{ 2108 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2109 if { { ac_try="$ac_link" 2110case "(($ac_try" in 2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2112 *) ac_try_echo=$ac_try;; 2113esac 2114eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2115$as_echo "$ac_try_echo"; } >&5 2116 (eval "$ac_link") 2>&5 2117 ac_status=$? 2118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2119 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2120 { { case "(($ac_try" in 2121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2122 *) ac_try_echo=$ac_try;; 2123esac 2124eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2125$as_echo "$ac_try_echo"; } >&5 2126 (eval "$ac_try") 2>&5 2127 ac_status=$? 2128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2129 test $ac_status = 0; }; }; then : 2130 ac_retval=0 2131else 2132 $as_echo "$as_me: program exited with status $ac_status" >&5 2133 $as_echo "$as_me: failed program was:" >&5 2134sed 's/^/| /' conftest.$ac_ext >&5 2135 2136 ac_retval=$ac_status 2137fi 2138 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2139 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2140 as_fn_set_status $ac_retval 2141 2142} # ac_fn_c_try_run 2143 2144# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2145# ------------------------------------------------------- 2146# Tests whether HEADER exists and can be compiled using the include files in 2147# INCLUDES, setting the cache variable VAR accordingly. 2148ac_fn_c_check_header_compile () 2149{ 2150 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2152$as_echo_n "checking for $2... " >&6; } 2153if eval \${$3+:} false; then : 2154 $as_echo_n "(cached) " >&6 2155else 2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2157/* end confdefs.h. */ 2158$4 2159#include <$2> 2160_ACEOF 2161if ac_fn_c_try_compile "$LINENO"; then : 2162 eval "$3=yes" 2163else 2164 eval "$3=no" 2165fi 2166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2167fi 2168eval ac_res=\$$3 2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2170$as_echo "$ac_res" >&6; } 2171 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2172 2173} # ac_fn_c_check_header_compile 2174 2175# ac_fn_c_check_func LINENO FUNC VAR 2176# ---------------------------------- 2177# Tests whether FUNC exists, setting the cache variable VAR accordingly 2178ac_fn_c_check_func () 2179{ 2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2182$as_echo_n "checking for $2... " >&6; } 2183if eval \${$3+:} false; then : 2184 $as_echo_n "(cached) " >&6 2185else 2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2187/* end confdefs.h. */ 2188/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2189 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2190#define $2 innocuous_$2 2191 2192/* System header to define __stub macros and hopefully few prototypes, 2193 which can conflict with char $2 (); below. 2194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2195 <limits.h> exists even on freestanding compilers. */ 2196 2197#ifdef __STDC__ 2198# include <limits.h> 2199#else 2200# include <assert.h> 2201#endif 2202 2203#undef $2 2204 2205/* Override any GCC internal prototype to avoid an error. 2206 Use char because int might match the return type of a GCC 2207 builtin and then its argument prototype would still apply. */ 2208#ifdef __cplusplus 2209extern "C" 2210#endif 2211char $2 (); 2212/* The GNU C library defines this for functions which it implements 2213 to always fail with ENOSYS. Some functions are actually named 2214 something starting with __ and the normal name is an alias. */ 2215#if defined __stub_$2 || defined __stub___$2 2216choke me 2217#endif 2218 2219int 2220main () 2221{ 2222return $2 (); 2223 ; 2224 return 0; 2225} 2226_ACEOF 2227if ac_fn_c_try_link "$LINENO"; then : 2228 eval "$3=yes" 2229else 2230 eval "$3=no" 2231fi 2232rm -f core conftest.err conftest.$ac_objext \ 2233 conftest$ac_exeext conftest.$ac_ext 2234fi 2235eval ac_res=\$$3 2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2237$as_echo "$ac_res" >&6; } 2238 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2239 2240} # ac_fn_c_check_func 2241 2242# ac_fn_cxx_try_cpp LINENO 2243# ------------------------ 2244# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2245ac_fn_cxx_try_cpp () 2246{ 2247 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2248 if { { ac_try="$ac_cpp conftest.$ac_ext" 2249case "(($ac_try" in 2250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2251 *) ac_try_echo=$ac_try;; 2252esac 2253eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2254$as_echo "$ac_try_echo"; } >&5 2255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2256 ac_status=$? 2257 if test -s conftest.err; then 2258 grep -v '^ *+' conftest.err >conftest.er1 2259 cat conftest.er1 >&5 2260 mv -f conftest.er1 conftest.err 2261 fi 2262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2263 test $ac_status = 0; } > conftest.i && { 2264 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2265 test ! -s conftest.err 2266 }; then : 2267 ac_retval=0 2268else 2269 $as_echo "$as_me: failed program was:" >&5 2270sed 's/^/| /' conftest.$ac_ext >&5 2271 2272 ac_retval=1 2273fi 2274 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2275 as_fn_set_status $ac_retval 2276 2277} # ac_fn_cxx_try_cpp 2278 2279# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2280# ------------------------------------------- 2281# Tests whether TYPE exists after having included INCLUDES, setting cache 2282# variable VAR accordingly. 2283ac_fn_c_check_type () 2284{ 2285 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2287$as_echo_n "checking for $2... " >&6; } 2288if eval \${$3+:} false; then : 2289 $as_echo_n "(cached) " >&6 2290else 2291 eval "$3=no" 2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2293/* end confdefs.h. */ 2294$4 2295int 2296main () 2297{ 2298if (sizeof ($2)) 2299 return 0; 2300 ; 2301 return 0; 2302} 2303_ACEOF 2304if ac_fn_c_try_compile "$LINENO"; then : 2305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2306/* end confdefs.h. */ 2307$4 2308int 2309main () 2310{ 2311if (sizeof (($2))) 2312 return 0; 2313 ; 2314 return 0; 2315} 2316_ACEOF 2317if ac_fn_c_try_compile "$LINENO"; then : 2318 2319else 2320 eval "$3=yes" 2321fi 2322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2323fi 2324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2325fi 2326eval ac_res=\$$3 2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2328$as_echo "$ac_res" >&6; } 2329 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2330 2331} # ac_fn_c_check_type 2332cat >config.log <<_ACEOF 2333This file contains any messages produced by compilers while 2334running configure, to aid debugging if configure makes a mistake. 2335 2336It was created by subversion $as_me 1.10.0, which was 2337generated by GNU Autoconf 2.69. Invocation command line was 2338 2339 $ $0 $@ 2340 2341_ACEOF 2342exec 5>>config.log 2343{ 2344cat <<_ASUNAME 2345## --------- ## 2346## Platform. ## 2347## --------- ## 2348 2349hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2350uname -m = `(uname -m) 2>/dev/null || echo unknown` 2351uname -r = `(uname -r) 2>/dev/null || echo unknown` 2352uname -s = `(uname -s) 2>/dev/null || echo unknown` 2353uname -v = `(uname -v) 2>/dev/null || echo unknown` 2354 2355/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2356/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2357 2358/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2359/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2360/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2361/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2362/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2363/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2364/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2365 2366_ASUNAME 2367 2368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2369for as_dir in $PATH 2370do 2371 IFS=$as_save_IFS 2372 test -z "$as_dir" && as_dir=. 2373 $as_echo "PATH: $as_dir" 2374 done 2375IFS=$as_save_IFS 2376 2377} >&5 2378 2379cat >&5 <<_ACEOF 2380 2381 2382## ----------- ## 2383## Core tests. ## 2384## ----------- ## 2385 2386_ACEOF 2387 2388 2389# Keep a trace of the command line. 2390# Strip out --no-create and --no-recursion so they do not pile up. 2391# Strip out --silent because we don't want to record it for future runs. 2392# Also quote any args containing shell meta-characters. 2393# Make two passes to allow for proper duplicate-argument suppression. 2394ac_configure_args= 2395ac_configure_args0= 2396ac_configure_args1= 2397ac_must_keep_next=false 2398for ac_pass in 1 2 2399do 2400 for ac_arg 2401 do 2402 case $ac_arg in 2403 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2404 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2405 | -silent | --silent | --silen | --sile | --sil) 2406 continue ;; 2407 *\'*) 2408 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2409 esac 2410 case $ac_pass in 2411 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2412 2) 2413 as_fn_append ac_configure_args1 " '$ac_arg'" 2414 if test $ac_must_keep_next = true; then 2415 ac_must_keep_next=false # Got value, back to normal. 2416 else 2417 case $ac_arg in 2418 *=* | --config-cache | -C | -disable-* | --disable-* \ 2419 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2420 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2421 | -with-* | --with-* | -without-* | --without-* | --x) 2422 case "$ac_configure_args0 " in 2423 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2424 esac 2425 ;; 2426 -* ) ac_must_keep_next=true ;; 2427 esac 2428 fi 2429 as_fn_append ac_configure_args " '$ac_arg'" 2430 ;; 2431 esac 2432 done 2433done 2434{ ac_configure_args0=; unset ac_configure_args0;} 2435{ ac_configure_args1=; unset ac_configure_args1;} 2436 2437# When interrupted or exit'd, cleanup temporary files, and complete 2438# config.log. We remove comments because anyway the quotes in there 2439# would cause problems or look ugly. 2440# WARNING: Use '\'' to represent an apostrophe within the trap. 2441# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2442trap 'exit_status=$? 2443 # Save into config.log some information that might help in debugging. 2444 { 2445 echo 2446 2447 $as_echo "## ---------------- ## 2448## Cache variables. ## 2449## ---------------- ##" 2450 echo 2451 # The following way of writing the cache mishandles newlines in values, 2452( 2453 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2454 eval ac_val=\$$ac_var 2455 case $ac_val in #( 2456 *${as_nl}*) 2457 case $ac_var in #( 2458 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2459$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2460 esac 2461 case $ac_var in #( 2462 _ | IFS | as_nl) ;; #( 2463 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2464 *) { eval $ac_var=; unset $ac_var;} ;; 2465 esac ;; 2466 esac 2467 done 2468 (set) 2>&1 | 2469 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2470 *${as_nl}ac_space=\ *) 2471 sed -n \ 2472 "s/'\''/'\''\\\\'\'''\''/g; 2473 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2474 ;; #( 2475 *) 2476 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2477 ;; 2478 esac | 2479 sort 2480) 2481 echo 2482 2483 $as_echo "## ----------------- ## 2484## Output variables. ## 2485## ----------------- ##" 2486 echo 2487 for ac_var in $ac_subst_vars 2488 do 2489 eval ac_val=\$$ac_var 2490 case $ac_val in 2491 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2492 esac 2493 $as_echo "$ac_var='\''$ac_val'\''" 2494 done | sort 2495 echo 2496 2497 if test -n "$ac_subst_files"; then 2498 $as_echo "## ------------------- ## 2499## File substitutions. ## 2500## ------------------- ##" 2501 echo 2502 for ac_var in $ac_subst_files 2503 do 2504 eval ac_val=\$$ac_var 2505 case $ac_val in 2506 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2507 esac 2508 $as_echo "$ac_var='\''$ac_val'\''" 2509 done | sort 2510 echo 2511 fi 2512 2513 if test -s confdefs.h; then 2514 $as_echo "## ----------- ## 2515## confdefs.h. ## 2516## ----------- ##" 2517 echo 2518 cat confdefs.h 2519 echo 2520 fi 2521 test "$ac_signal" != 0 && 2522 $as_echo "$as_me: caught signal $ac_signal" 2523 $as_echo "$as_me: exit $exit_status" 2524 } >&5 2525 rm -f core *.core core.conftest.* && 2526 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2527 exit $exit_status 2528' 0 2529for ac_signal in 1 2 13 15; do 2530 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2531done 2532ac_signal=0 2533 2534# confdefs.h avoids OS command line length limits that DEFS can exceed. 2535rm -f -r conftest* confdefs.h 2536 2537$as_echo "/* confdefs.h */" > confdefs.h 2538 2539# Predefined preprocessor variables. 2540 2541cat >>confdefs.h <<_ACEOF 2542#define PACKAGE_NAME "$PACKAGE_NAME" 2543_ACEOF 2544 2545cat >>confdefs.h <<_ACEOF 2546#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2547_ACEOF 2548 2549cat >>confdefs.h <<_ACEOF 2550#define PACKAGE_VERSION "$PACKAGE_VERSION" 2551_ACEOF 2552 2553cat >>confdefs.h <<_ACEOF 2554#define PACKAGE_STRING "$PACKAGE_STRING" 2555_ACEOF 2556 2557cat >>confdefs.h <<_ACEOF 2558#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2559_ACEOF 2560 2561cat >>confdefs.h <<_ACEOF 2562#define PACKAGE_URL "$PACKAGE_URL" 2563_ACEOF 2564 2565 2566# Let the site file select an alternate cache file if it wants to. 2567# Prefer an explicitly selected file to automatically selected ones. 2568ac_site_file1=NONE 2569ac_site_file2=NONE 2570if test -n "$CONFIG_SITE"; then 2571 # We do not want a PATH search for config.site. 2572 case $CONFIG_SITE in #(( 2573 -*) ac_site_file1=./$CONFIG_SITE;; 2574 */*) ac_site_file1=$CONFIG_SITE;; 2575 *) ac_site_file1=./$CONFIG_SITE;; 2576 esac 2577elif test "x$prefix" != xNONE; then 2578 ac_site_file1=$prefix/share/config.site 2579 ac_site_file2=$prefix/etc/config.site 2580else 2581 ac_site_file1=$ac_default_prefix/share/config.site 2582 ac_site_file2=$ac_default_prefix/etc/config.site 2583fi 2584for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2585do 2586 test "x$ac_site_file" = xNONE && continue 2587 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2589$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2590 sed 's/^/| /' "$ac_site_file" >&5 2591 . "$ac_site_file" \ 2592 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2594as_fn_error $? "failed to load site script $ac_site_file 2595See \`config.log' for more details" "$LINENO" 5; } 2596 fi 2597done 2598 2599if test -r "$cache_file"; then 2600 # Some versions of bash will fail to source /dev/null (special files 2601 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2602 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2603 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2604$as_echo "$as_me: loading cache $cache_file" >&6;} 2605 case $cache_file in 2606 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2607 *) . "./$cache_file";; 2608 esac 2609 fi 2610else 2611 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2612$as_echo "$as_me: creating cache $cache_file" >&6;} 2613 >$cache_file 2614fi 2615 2616# Check that the precious variables saved in the cache have kept the same 2617# value. 2618ac_cache_corrupted=false 2619for ac_var in $ac_precious_vars; do 2620 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2621 eval ac_new_set=\$ac_env_${ac_var}_set 2622 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2623 eval ac_new_val=\$ac_env_${ac_var}_value 2624 case $ac_old_set,$ac_new_set in 2625 set,) 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2627$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2628 ac_cache_corrupted=: ;; 2629 ,set) 2630 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2631$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2632 ac_cache_corrupted=: ;; 2633 ,);; 2634 *) 2635 if test "x$ac_old_val" != "x$ac_new_val"; then 2636 # differences in whitespace do not lead to failure. 2637 ac_old_val_w=`echo x $ac_old_val` 2638 ac_new_val_w=`echo x $ac_new_val` 2639 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2641$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2642 ac_cache_corrupted=: 2643 else 2644 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2645$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2646 eval $ac_var=\$ac_old_val 2647 fi 2648 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2649$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2650 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2651$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2652 fi;; 2653 esac 2654 # Pass precious variables to config.status. 2655 if test "$ac_new_set" = set; then 2656 case $ac_new_val in 2657 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2658 *) ac_arg=$ac_var=$ac_new_val ;; 2659 esac 2660 case " $ac_configure_args " in 2661 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2662 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2663 esac 2664 fi 2665done 2666if $ac_cache_corrupted; then 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2668$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2669 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2670$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2671 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2672fi 2673## -------------------- ## 2674## Main body of script. ## 2675## -------------------- ## 2676 2677ac_ext=c 2678ac_cpp='$CPP $CPPFLAGS' 2679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2681ac_compiler_gnu=$ac_cv_c_compiler_gnu 2682 2683 2684 2685 2686ac_aux_dir= 2687for ac_dir in build "$srcdir"/build; do 2688 if test -f "$ac_dir/install-sh"; then 2689 ac_aux_dir=$ac_dir 2690 ac_install_sh="$ac_aux_dir/install-sh -c" 2691 break 2692 elif test -f "$ac_dir/install.sh"; then 2693 ac_aux_dir=$ac_dir 2694 ac_install_sh="$ac_aux_dir/install.sh -c" 2695 break 2696 elif test -f "$ac_dir/shtool"; then 2697 ac_aux_dir=$ac_dir 2698 ac_install_sh="$ac_aux_dir/shtool install -c" 2699 break 2700 fi 2701done 2702if test -z "$ac_aux_dir"; then 2703 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5 2704fi 2705 2706# These three variables are undocumented and unsupported, 2707# and are intended to be withdrawn in a future Autoconf release. 2708# They can cause serious problems if a builder's source tree is in a directory 2709# whose full name contains unusual characters. 2710ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2711ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2712ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2713 2714 2715 2716{ $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Subversion 1.10.0" >&5 2717$as_echo "$as_me: Configuring Subversion 1.10.0" >&6;} 2718 2719abs_srcdir="`cd $srcdir && pwd`" 2720 2721abs_builddir="`pwd`" 2722 2723if test "$abs_srcdir" = "$abs_builddir"; then 2724 canonicalized_srcdir="" 2725else 2726 canonicalized_srcdir="$srcdir/" 2727fi 2728 2729 2730SWIG_LDFLAGS="$LDFLAGS" 2731 2732 2733# Generate config.nice early (before the arguments are munged) 2734 2735 { $as_echo "$as_me:${as_lineno-$LINENO}: creating config.nice" >&5 2736$as_echo "$as_me: creating config.nice" >&6;} 2737 # This little dance satisfies Cygwin, which cannot overwrite in-use files. 2738 if test -f "config.nice"; then 2739 mv "config.nice" "config.nice.old" 2740 fi 2741 2742 cat >"config.nice" <<EOF 2743#! /bin/sh 2744# 2745# Created by configure 2746 2747'$0' $ac_configure_args "\$@" 2748EOF 2749 2750 chmod +x "config.nice" 2751 rm -f "config.nice.old" 2752 2753 2754# ==== Check for programs ==================================================== 2755 2756# Look for a C compiler (before anything can set CFLAGS) 2757CUSERFLAGS="$CFLAGS" 2758ac_ext=c 2759ac_cpp='$CPP $CPPFLAGS' 2760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2762ac_compiler_gnu=$ac_cv_c_compiler_gnu 2763if test -n "$ac_tool_prefix"; then 2764 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2765set dummy ${ac_tool_prefix}gcc; ac_word=$2 2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2767$as_echo_n "checking for $ac_word... " >&6; } 2768if ${ac_cv_prog_CC+:} false; then : 2769 $as_echo_n "(cached) " >&6 2770else 2771 if test -n "$CC"; then 2772 ac_cv_prog_CC="$CC" # Let the user override the test. 2773else 2774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2775for as_dir in $PATH 2776do 2777 IFS=$as_save_IFS 2778 test -z "$as_dir" && as_dir=. 2779 for ac_exec_ext in '' $ac_executable_extensions; do 2780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2781 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2783 break 2 2784 fi 2785done 2786 done 2787IFS=$as_save_IFS 2788 2789fi 2790fi 2791CC=$ac_cv_prog_CC 2792if test -n "$CC"; then 2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2794$as_echo "$CC" >&6; } 2795else 2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2797$as_echo "no" >&6; } 2798fi 2799 2800 2801fi 2802if test -z "$ac_cv_prog_CC"; then 2803 ac_ct_CC=$CC 2804 # Extract the first word of "gcc", so it can be a program name with args. 2805set dummy gcc; ac_word=$2 2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2807$as_echo_n "checking for $ac_word... " >&6; } 2808if ${ac_cv_prog_ac_ct_CC+:} false; then : 2809 $as_echo_n "(cached) " >&6 2810else 2811 if test -n "$ac_ct_CC"; then 2812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2813else 2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2815for as_dir in $PATH 2816do 2817 IFS=$as_save_IFS 2818 test -z "$as_dir" && as_dir=. 2819 for ac_exec_ext in '' $ac_executable_extensions; do 2820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2821 ac_cv_prog_ac_ct_CC="gcc" 2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2823 break 2 2824 fi 2825done 2826 done 2827IFS=$as_save_IFS 2828 2829fi 2830fi 2831ac_ct_CC=$ac_cv_prog_ac_ct_CC 2832if test -n "$ac_ct_CC"; then 2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2834$as_echo "$ac_ct_CC" >&6; } 2835else 2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2837$as_echo "no" >&6; } 2838fi 2839 2840 if test "x$ac_ct_CC" = x; then 2841 CC="" 2842 else 2843 case $cross_compiling:$ac_tool_warned in 2844yes:) 2845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2847ac_tool_warned=yes ;; 2848esac 2849 CC=$ac_ct_CC 2850 fi 2851else 2852 CC="$ac_cv_prog_CC" 2853fi 2854 2855if test -z "$CC"; then 2856 if test -n "$ac_tool_prefix"; then 2857 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2858set dummy ${ac_tool_prefix}cc; ac_word=$2 2859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2860$as_echo_n "checking for $ac_word... " >&6; } 2861if ${ac_cv_prog_CC+:} false; then : 2862 $as_echo_n "(cached) " >&6 2863else 2864 if test -n "$CC"; then 2865 ac_cv_prog_CC="$CC" # Let the user override the test. 2866else 2867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2868for as_dir in $PATH 2869do 2870 IFS=$as_save_IFS 2871 test -z "$as_dir" && as_dir=. 2872 for ac_exec_ext in '' $ac_executable_extensions; do 2873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2874 ac_cv_prog_CC="${ac_tool_prefix}cc" 2875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2876 break 2 2877 fi 2878done 2879 done 2880IFS=$as_save_IFS 2881 2882fi 2883fi 2884CC=$ac_cv_prog_CC 2885if test -n "$CC"; then 2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2887$as_echo "$CC" >&6; } 2888else 2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2890$as_echo "no" >&6; } 2891fi 2892 2893 2894 fi 2895fi 2896if test -z "$CC"; then 2897 # Extract the first word of "cc", so it can be a program name with args. 2898set dummy cc; ac_word=$2 2899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2900$as_echo_n "checking for $ac_word... " >&6; } 2901if ${ac_cv_prog_CC+:} false; then : 2902 $as_echo_n "(cached) " >&6 2903else 2904 if test -n "$CC"; then 2905 ac_cv_prog_CC="$CC" # Let the user override the test. 2906else 2907 ac_prog_rejected=no 2908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2909for as_dir in $PATH 2910do 2911 IFS=$as_save_IFS 2912 test -z "$as_dir" && as_dir=. 2913 for ac_exec_ext in '' $ac_executable_extensions; do 2914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2915 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2916 ac_prog_rejected=yes 2917 continue 2918 fi 2919 ac_cv_prog_CC="cc" 2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2921 break 2 2922 fi 2923done 2924 done 2925IFS=$as_save_IFS 2926 2927if test $ac_prog_rejected = yes; then 2928 # We found a bogon in the path, so make sure we never use it. 2929 set dummy $ac_cv_prog_CC 2930 shift 2931 if test $# != 0; then 2932 # We chose a different compiler from the bogus one. 2933 # However, it has the same basename, so the bogon will be chosen 2934 # first if we set CC to just the basename; use the full file name. 2935 shift 2936 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2937 fi 2938fi 2939fi 2940fi 2941CC=$ac_cv_prog_CC 2942if test -n "$CC"; then 2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2944$as_echo "$CC" >&6; } 2945else 2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2947$as_echo "no" >&6; } 2948fi 2949 2950 2951fi 2952if test -z "$CC"; then 2953 if test -n "$ac_tool_prefix"; then 2954 for ac_prog in cl.exe 2955 do 2956 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2957set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2959$as_echo_n "checking for $ac_word... " >&6; } 2960if ${ac_cv_prog_CC+:} false; then : 2961 $as_echo_n "(cached) " >&6 2962else 2963 if test -n "$CC"; then 2964 ac_cv_prog_CC="$CC" # Let the user override the test. 2965else 2966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2967for as_dir in $PATH 2968do 2969 IFS=$as_save_IFS 2970 test -z "$as_dir" && as_dir=. 2971 for ac_exec_ext in '' $ac_executable_extensions; do 2972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2973 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2975 break 2 2976 fi 2977done 2978 done 2979IFS=$as_save_IFS 2980 2981fi 2982fi 2983CC=$ac_cv_prog_CC 2984if test -n "$CC"; then 2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2986$as_echo "$CC" >&6; } 2987else 2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2989$as_echo "no" >&6; } 2990fi 2991 2992 2993 test -n "$CC" && break 2994 done 2995fi 2996if test -z "$CC"; then 2997 ac_ct_CC=$CC 2998 for ac_prog in cl.exe 2999do 3000 # Extract the first word of "$ac_prog", so it can be a program name with args. 3001set dummy $ac_prog; ac_word=$2 3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3003$as_echo_n "checking for $ac_word... " >&6; } 3004if ${ac_cv_prog_ac_ct_CC+:} false; then : 3005 $as_echo_n "(cached) " >&6 3006else 3007 if test -n "$ac_ct_CC"; then 3008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3009else 3010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3011for as_dir in $PATH 3012do 3013 IFS=$as_save_IFS 3014 test -z "$as_dir" && as_dir=. 3015 for ac_exec_ext in '' $ac_executable_extensions; do 3016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3017 ac_cv_prog_ac_ct_CC="$ac_prog" 3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3019 break 2 3020 fi 3021done 3022 done 3023IFS=$as_save_IFS 3024 3025fi 3026fi 3027ac_ct_CC=$ac_cv_prog_ac_ct_CC 3028if test -n "$ac_ct_CC"; then 3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3030$as_echo "$ac_ct_CC" >&6; } 3031else 3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3033$as_echo "no" >&6; } 3034fi 3035 3036 3037 test -n "$ac_ct_CC" && break 3038done 3039 3040 if test "x$ac_ct_CC" = x; then 3041 CC="" 3042 else 3043 case $cross_compiling:$ac_tool_warned in 3044yes:) 3045{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3046$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3047ac_tool_warned=yes ;; 3048esac 3049 CC=$ac_ct_CC 3050 fi 3051fi 3052 3053fi 3054 3055 3056test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3058as_fn_error $? "no acceptable C compiler found in \$PATH 3059See \`config.log' for more details" "$LINENO" 5; } 3060 3061# Provide some information about the compiler. 3062$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3063set X $ac_compile 3064ac_compiler=$2 3065for ac_option in --version -v -V -qversion; do 3066 { { ac_try="$ac_compiler $ac_option >&5" 3067case "(($ac_try" in 3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3069 *) ac_try_echo=$ac_try;; 3070esac 3071eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3072$as_echo "$ac_try_echo"; } >&5 3073 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3074 ac_status=$? 3075 if test -s conftest.err; then 3076 sed '10a\ 3077... rest of stderr output deleted ... 3078 10q' conftest.err >conftest.er1 3079 cat conftest.er1 >&5 3080 fi 3081 rm -f conftest.er1 conftest.err 3082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3083 test $ac_status = 0; } 3084done 3085 3086cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3087/* end confdefs.h. */ 3088 3089int 3090main () 3091{ 3092 3093 ; 3094 return 0; 3095} 3096_ACEOF 3097ac_clean_files_save=$ac_clean_files 3098ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3099# Try to create an executable without -o first, disregard a.out. 3100# It will help us diagnose broken compilers, and finding out an intuition 3101# of exeext. 3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3103$as_echo_n "checking whether the C compiler works... " >&6; } 3104ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3105 3106# The possible output files: 3107ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3108 3109ac_rmfiles= 3110for ac_file in $ac_files 3111do 3112 case $ac_file in 3113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3114 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3115 esac 3116done 3117rm -f $ac_rmfiles 3118 3119if { { ac_try="$ac_link_default" 3120case "(($ac_try" in 3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3122 *) ac_try_echo=$ac_try;; 3123esac 3124eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3125$as_echo "$ac_try_echo"; } >&5 3126 (eval "$ac_link_default") 2>&5 3127 ac_status=$? 3128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3129 test $ac_status = 0; }; then : 3130 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3131# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3132# in a Makefile. We should not override ac_cv_exeext if it was cached, 3133# so that the user can short-circuit this test for compilers unknown to 3134# Autoconf. 3135for ac_file in $ac_files '' 3136do 3137 test -f "$ac_file" || continue 3138 case $ac_file in 3139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3140 ;; 3141 [ab].out ) 3142 # We found the default executable, but exeext='' is most 3143 # certainly right. 3144 break;; 3145 *.* ) 3146 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3147 then :; else 3148 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3149 fi 3150 # We set ac_cv_exeext here because the later test for it is not 3151 # safe: cross compilers may not add the suffix if given an `-o' 3152 # argument, so we may need to know it at that point already. 3153 # Even if this section looks crufty: it has the advantage of 3154 # actually working. 3155 break;; 3156 * ) 3157 break;; 3158 esac 3159done 3160test "$ac_cv_exeext" = no && ac_cv_exeext= 3161 3162else 3163 ac_file='' 3164fi 3165if test -z "$ac_file"; then : 3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3167$as_echo "no" >&6; } 3168$as_echo "$as_me: failed program was:" >&5 3169sed 's/^/| /' conftest.$ac_ext >&5 3170 3171{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3173as_fn_error 77 "C compiler cannot create executables 3174See \`config.log' for more details" "$LINENO" 5; } 3175else 3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3177$as_echo "yes" >&6; } 3178fi 3179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3180$as_echo_n "checking for C compiler default output file name... " >&6; } 3181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3182$as_echo "$ac_file" >&6; } 3183ac_exeext=$ac_cv_exeext 3184 3185rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3186ac_clean_files=$ac_clean_files_save 3187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3188$as_echo_n "checking for suffix of executables... " >&6; } 3189if { { ac_try="$ac_link" 3190case "(($ac_try" in 3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3192 *) ac_try_echo=$ac_try;; 3193esac 3194eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3195$as_echo "$ac_try_echo"; } >&5 3196 (eval "$ac_link") 2>&5 3197 ac_status=$? 3198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3199 test $ac_status = 0; }; then : 3200 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3201# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3202# work properly (i.e., refer to `conftest.exe'), while it won't with 3203# `rm'. 3204for ac_file in conftest.exe conftest conftest.*; do 3205 test -f "$ac_file" || continue 3206 case $ac_file in 3207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3208 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3209 break;; 3210 * ) break;; 3211 esac 3212done 3213else 3214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3216as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3217See \`config.log' for more details" "$LINENO" 5; } 3218fi 3219rm -f conftest conftest$ac_cv_exeext 3220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3221$as_echo "$ac_cv_exeext" >&6; } 3222 3223rm -f conftest.$ac_ext 3224EXEEXT=$ac_cv_exeext 3225ac_exeext=$EXEEXT 3226cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3227/* end confdefs.h. */ 3228#include <stdio.h> 3229int 3230main () 3231{ 3232FILE *f = fopen ("conftest.out", "w"); 3233 return ferror (f) || fclose (f) != 0; 3234 3235 ; 3236 return 0; 3237} 3238_ACEOF 3239ac_clean_files="$ac_clean_files conftest.out" 3240# Check that the compiler produces executables we can run. If not, either 3241# the compiler is broken, or we cross compile. 3242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3243$as_echo_n "checking whether we are cross compiling... " >&6; } 3244if test "$cross_compiling" != yes; then 3245 { { ac_try="$ac_link" 3246case "(($ac_try" in 3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3248 *) ac_try_echo=$ac_try;; 3249esac 3250eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3251$as_echo "$ac_try_echo"; } >&5 3252 (eval "$ac_link") 2>&5 3253 ac_status=$? 3254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3255 test $ac_status = 0; } 3256 if { ac_try='./conftest$ac_cv_exeext' 3257 { { case "(($ac_try" in 3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3259 *) ac_try_echo=$ac_try;; 3260esac 3261eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3262$as_echo "$ac_try_echo"; } >&5 3263 (eval "$ac_try") 2>&5 3264 ac_status=$? 3265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3266 test $ac_status = 0; }; }; then 3267 cross_compiling=no 3268 else 3269 if test "$cross_compiling" = maybe; then 3270 cross_compiling=yes 3271 else 3272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3273$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3274as_fn_error $? "cannot run C compiled programs. 3275If you meant to cross compile, use \`--host'. 3276See \`config.log' for more details" "$LINENO" 5; } 3277 fi 3278 fi 3279fi 3280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3281$as_echo "$cross_compiling" >&6; } 3282 3283rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3284ac_clean_files=$ac_clean_files_save 3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3286$as_echo_n "checking for suffix of object files... " >&6; } 3287if ${ac_cv_objext+:} false; then : 3288 $as_echo_n "(cached) " >&6 3289else 3290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3291/* end confdefs.h. */ 3292 3293int 3294main () 3295{ 3296 3297 ; 3298 return 0; 3299} 3300_ACEOF 3301rm -f conftest.o conftest.obj 3302if { { ac_try="$ac_compile" 3303case "(($ac_try" in 3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3305 *) ac_try_echo=$ac_try;; 3306esac 3307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3308$as_echo "$ac_try_echo"; } >&5 3309 (eval "$ac_compile") 2>&5 3310 ac_status=$? 3311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3312 test $ac_status = 0; }; then : 3313 for ac_file in conftest.o conftest.obj conftest.*; do 3314 test -f "$ac_file" || continue; 3315 case $ac_file in 3316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3317 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3318 break;; 3319 esac 3320done 3321else 3322 $as_echo "$as_me: failed program was:" >&5 3323sed 's/^/| /' conftest.$ac_ext >&5 3324 3325{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3326$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3327as_fn_error $? "cannot compute suffix of object files: cannot compile 3328See \`config.log' for more details" "$LINENO" 5; } 3329fi 3330rm -f conftest.$ac_cv_objext conftest.$ac_ext 3331fi 3332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3333$as_echo "$ac_cv_objext" >&6; } 3334OBJEXT=$ac_cv_objext 3335ac_objext=$OBJEXT 3336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3337$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3338if ${ac_cv_c_compiler_gnu+:} false; then : 3339 $as_echo_n "(cached) " >&6 3340else 3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3342/* end confdefs.h. */ 3343 3344int 3345main () 3346{ 3347#ifndef __GNUC__ 3348 choke me 3349#endif 3350 3351 ; 3352 return 0; 3353} 3354_ACEOF 3355if ac_fn_c_try_compile "$LINENO"; then : 3356 ac_compiler_gnu=yes 3357else 3358 ac_compiler_gnu=no 3359fi 3360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3361ac_cv_c_compiler_gnu=$ac_compiler_gnu 3362 3363fi 3364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3365$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3366if test $ac_compiler_gnu = yes; then 3367 GCC=yes 3368else 3369 GCC= 3370fi 3371ac_test_CFLAGS=${CFLAGS+set} 3372ac_save_CFLAGS=$CFLAGS 3373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3374$as_echo_n "checking whether $CC accepts -g... " >&6; } 3375if ${ac_cv_prog_cc_g+:} false; then : 3376 $as_echo_n "(cached) " >&6 3377else 3378 ac_save_c_werror_flag=$ac_c_werror_flag 3379 ac_c_werror_flag=yes 3380 ac_cv_prog_cc_g=no 3381 CFLAGS="-g" 3382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3383/* end confdefs.h. */ 3384 3385int 3386main () 3387{ 3388 3389 ; 3390 return 0; 3391} 3392_ACEOF 3393if ac_fn_c_try_compile "$LINENO"; then : 3394 ac_cv_prog_cc_g=yes 3395else 3396 CFLAGS="" 3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3398/* end confdefs.h. */ 3399 3400int 3401main () 3402{ 3403 3404 ; 3405 return 0; 3406} 3407_ACEOF 3408if ac_fn_c_try_compile "$LINENO"; then : 3409 3410else 3411 ac_c_werror_flag=$ac_save_c_werror_flag 3412 CFLAGS="-g" 3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3414/* end confdefs.h. */ 3415 3416int 3417main () 3418{ 3419 3420 ; 3421 return 0; 3422} 3423_ACEOF 3424if ac_fn_c_try_compile "$LINENO"; then : 3425 ac_cv_prog_cc_g=yes 3426fi 3427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3428fi 3429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3430fi 3431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3432 ac_c_werror_flag=$ac_save_c_werror_flag 3433fi 3434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3435$as_echo "$ac_cv_prog_cc_g" >&6; } 3436if test "$ac_test_CFLAGS" = set; then 3437 CFLAGS=$ac_save_CFLAGS 3438elif test $ac_cv_prog_cc_g = yes; then 3439 if test "$GCC" = yes; then 3440 CFLAGS="-g -O2" 3441 else 3442 CFLAGS="-g" 3443 fi 3444else 3445 if test "$GCC" = yes; then 3446 CFLAGS="-O2" 3447 else 3448 CFLAGS= 3449 fi 3450fi 3451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3452$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3453if ${ac_cv_prog_cc_c89+:} false; then : 3454 $as_echo_n "(cached) " >&6 3455else 3456 ac_cv_prog_cc_c89=no 3457ac_save_CC=$CC 3458cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3459/* end confdefs.h. */ 3460#include <stdarg.h> 3461#include <stdio.h> 3462struct stat; 3463/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3464struct buf { int x; }; 3465FILE * (*rcsopen) (struct buf *, struct stat *, int); 3466static char *e (p, i) 3467 char **p; 3468 int i; 3469{ 3470 return p[i]; 3471} 3472static char *f (char * (*g) (char **, int), char **p, ...) 3473{ 3474 char *s; 3475 va_list v; 3476 va_start (v,p); 3477 s = g (p, va_arg (v,int)); 3478 va_end (v); 3479 return s; 3480} 3481 3482/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3483 function prototypes and stuff, but not '\xHH' hex character constants. 3484 These don't provoke an error unfortunately, instead are silently treated 3485 as 'x'. The following induces an error, until -std is added to get 3486 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3487 array size at least. It's necessary to write '\x00'==0 to get something 3488 that's true only with -std. */ 3489int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3490 3491/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3492 inside strings and character constants. */ 3493#define FOO(x) 'x' 3494int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3495 3496int test (int i, double x); 3497struct s1 {int (*f) (int a);}; 3498struct s2 {int (*f) (double a);}; 3499int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3500int argc; 3501char **argv; 3502int 3503main () 3504{ 3505return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3506 ; 3507 return 0; 3508} 3509_ACEOF 3510for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3511 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3512do 3513 CC="$ac_save_CC $ac_arg" 3514 if ac_fn_c_try_compile "$LINENO"; then : 3515 ac_cv_prog_cc_c89=$ac_arg 3516fi 3517rm -f core conftest.err conftest.$ac_objext 3518 test "x$ac_cv_prog_cc_c89" != "xno" && break 3519done 3520rm -f conftest.$ac_ext 3521CC=$ac_save_CC 3522 3523fi 3524# AC_CACHE_VAL 3525case "x$ac_cv_prog_cc_c89" in 3526 x) 3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3528$as_echo "none needed" >&6; } ;; 3529 xno) 3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3531$as_echo "unsupported" >&6; } ;; 3532 *) 3533 CC="$CC $ac_cv_prog_cc_c89" 3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3535$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3536esac 3537if test "x$ac_cv_prog_cc_c89" != xno; then : 3538 3539fi 3540 3541ac_ext=c 3542ac_cpp='$CPP $CPPFLAGS' 3543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3545ac_compiler_gnu=$ac_cv_c_compiler_gnu 3546 3547 3548 3549 CFLAGS_KEEP="$CFLAGS" 3550 CFLAGS="" 3551 3552 if test "$GCC" = "yes"; then 3553 3554 _svn_xxflags__save="$CFLAGS" 3555 ac_ext=c 3556ac_cpp='$CPP $CPPFLAGS' 3557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3559ac_compiler_gnu=$ac_cv_c_compiler_gnu 3560 3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c90" >&5 3562$as_echo_n "checking if $CC accepts -std=c90... " >&6; } 3563 CFLAGS="-std=c90 $CFLAGS" 3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3565/* end confdefs.h. */ 3566int main(void){return 0;} 3567_ACEOF 3568if ac_fn_c_try_link "$LINENO"; then : 3569 3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3571$as_echo "yes" >&6; } 3572 3573 3574else 3575 3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3577$as_echo "no" >&6; } 3578 CFLAGS="$_svn_xxflags__save" 3579 3580 3581 _svn_xxflags__save="$CFLAGS" 3582 ac_ext=c 3583ac_cpp='$CPP $CPPFLAGS' 3584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3586ac_compiler_gnu=$ac_cv_c_compiler_gnu 3587 3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c89" >&5 3589$as_echo_n "checking if $CC accepts -std=c89... " >&6; } 3590 CFLAGS="-std=c89 $CFLAGS" 3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3592/* end confdefs.h. */ 3593int main(void){return 0;} 3594_ACEOF 3595if ac_fn_c_try_link "$LINENO"; then : 3596 3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3598$as_echo "yes" >&6; } 3599 3600 3601else 3602 3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3604$as_echo "no" >&6; } 3605 CFLAGS="$_svn_xxflags__save" 3606 3607 3608 _svn_xxflags__save="$CFLAGS" 3609 ac_ext=c 3610ac_cpp='$CPP $CPPFLAGS' 3611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3613ac_compiler_gnu=$ac_cv_c_compiler_gnu 3614 3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -ansi" >&5 3616$as_echo_n "checking if $CC accepts -ansi... " >&6; } 3617 CFLAGS="-ansi $CFLAGS" 3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3619/* end confdefs.h. */ 3620int main(void){return 0;} 3621_ACEOF 3622if ac_fn_c_try_link "$LINENO"; then : 3623 3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3625$as_echo "yes" >&6; } 3626 3627 3628else 3629 3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3631$as_echo "no" >&6; } 3632 CFLAGS="$_svn_xxflags__save" 3633 3634 3635fi 3636rm -f core conftest.err conftest.$ac_objext \ 3637 conftest$ac_exeext conftest.$ac_ext 3638 ac_ext=c 3639ac_cpp='$CPP $CPPFLAGS' 3640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3642ac_compiler_gnu=$ac_cv_c_compiler_gnu 3643 3644 3645 3646 3647fi 3648rm -f core conftest.err conftest.$ac_objext \ 3649 conftest$ac_exeext conftest.$ac_ext 3650 ac_ext=c 3651ac_cpp='$CPP $CPPFLAGS' 3652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3654ac_compiler_gnu=$ac_cv_c_compiler_gnu 3655 3656 3657 3658 3659fi 3660rm -f core conftest.err conftest.$ac_objext \ 3661 conftest$ac_exeext conftest.$ac_ext 3662 ac_ext=c 3663ac_cpp='$CPP $CPPFLAGS' 3664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3666ac_compiler_gnu=$ac_cv_c_compiler_gnu 3667 3668 3669 fi 3670 3671 CMODEFLAGS="$CFLAGS" 3672 CFLAGS="" 3673 3674 if test "$GCC" = "yes"; then 3675 3676 _svn_xxflags__save="$CFLAGS" 3677 ac_ext=c 3678ac_cpp='$CPP $CPPFLAGS' 3679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3681ac_compiler_gnu=$ac_cv_c_compiler_gnu 3682 3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -w" >&5 3684$as_echo_n "checking if $CC accepts -w... " >&6; } 3685 CFLAGS="-w $CFLAGS" 3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3687/* end confdefs.h. */ 3688int main(void){return 0;} 3689_ACEOF 3690if ac_fn_c_try_link "$LINENO"; then : 3691 3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3693$as_echo "yes" >&6; } 3694 3695 3696else 3697 3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3699$as_echo "no" >&6; } 3700 CFLAGS="$_svn_xxflags__save" 3701 3702 3703fi 3704rm -f core conftest.err conftest.$ac_objext \ 3705 conftest$ac_exeext conftest.$ac_ext 3706 ac_ext=c 3707ac_cpp='$CPP $CPPFLAGS' 3708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3710ac_compiler_gnu=$ac_cv_c_compiler_gnu 3711 3712 3713 fi 3714 3715 CNOWARNFLAGS="$CFLAGS" 3716 CFLAGS="$CFLAGS_KEEP" 3717 3718 3719 3720 3721 3722 3723 if test "$GCC" = "yes"; then 3724 3725 _svn_xxflags__save="$CFLAGS" 3726 ac_ext=c 3727ac_cpp='$CPP $CPPFLAGS' 3728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3730ac_compiler_gnu=$ac_cv_c_compiler_gnu 3731 3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=unknown-warning-option" >&5 3733$as_echo_n "checking if $CC accepts -Werror=unknown-warning-option... " >&6; } 3734 CFLAGS="-Werror=unknown-warning-option $CFLAGS" 3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3736/* end confdefs.h. */ 3737int main(void){return 0;} 3738_ACEOF 3739if ac_fn_c_try_link "$LINENO"; then : 3740 3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3742$as_echo "yes" >&6; } 3743 3744 3745else 3746 3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3748$as_echo "no" >&6; } 3749 CFLAGS="$_svn_xxflags__save" 3750 3751 3752fi 3753rm -f core conftest.err conftest.$ac_objext \ 3754 conftest$ac_exeext conftest.$ac_ext 3755 ac_ext=c 3756ac_cpp='$CPP $CPPFLAGS' 3757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3759ac_compiler_gnu=$ac_cv_c_compiler_gnu 3760 3761 3762 fi 3763 3764 3765# Look for a C++ compiler (before anything can set CXXFLAGS) 3766CXXUSERFLAGS="$CXXFLAGS" 3767ac_ext=cpp 3768ac_cpp='$CXXCPP $CPPFLAGS' 3769ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3770ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3771ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3772if test -z "$CXX"; then 3773 if test -n "$CCC"; then 3774 CXX=$CCC 3775 else 3776 if test -n "$ac_tool_prefix"; then 3777 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3778 do 3779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3780set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3782$as_echo_n "checking for $ac_word... " >&6; } 3783if ${ac_cv_prog_CXX+:} false; then : 3784 $as_echo_n "(cached) " >&6 3785else 3786 if test -n "$CXX"; then 3787 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3788else 3789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3790for as_dir in $PATH 3791do 3792 IFS=$as_save_IFS 3793 test -z "$as_dir" && as_dir=. 3794 for ac_exec_ext in '' $ac_executable_extensions; do 3795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3796 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3798 break 2 3799 fi 3800done 3801 done 3802IFS=$as_save_IFS 3803 3804fi 3805fi 3806CXX=$ac_cv_prog_CXX 3807if test -n "$CXX"; then 3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3809$as_echo "$CXX" >&6; } 3810else 3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3812$as_echo "no" >&6; } 3813fi 3814 3815 3816 test -n "$CXX" && break 3817 done 3818fi 3819if test -z "$CXX"; then 3820 ac_ct_CXX=$CXX 3821 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3822do 3823 # Extract the first word of "$ac_prog", so it can be a program name with args. 3824set dummy $ac_prog; ac_word=$2 3825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3826$as_echo_n "checking for $ac_word... " >&6; } 3827if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3828 $as_echo_n "(cached) " >&6 3829else 3830 if test -n "$ac_ct_CXX"; then 3831 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3832else 3833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3834for as_dir in $PATH 3835do 3836 IFS=$as_save_IFS 3837 test -z "$as_dir" && as_dir=. 3838 for ac_exec_ext in '' $ac_executable_extensions; do 3839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3840 ac_cv_prog_ac_ct_CXX="$ac_prog" 3841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3842 break 2 3843 fi 3844done 3845 done 3846IFS=$as_save_IFS 3847 3848fi 3849fi 3850ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3851if test -n "$ac_ct_CXX"; then 3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 3853$as_echo "$ac_ct_CXX" >&6; } 3854else 3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3856$as_echo "no" >&6; } 3857fi 3858 3859 3860 test -n "$ac_ct_CXX" && break 3861done 3862 3863 if test "x$ac_ct_CXX" = x; then 3864 CXX="g++" 3865 else 3866 case $cross_compiling:$ac_tool_warned in 3867yes:) 3868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3870ac_tool_warned=yes ;; 3871esac 3872 CXX=$ac_ct_CXX 3873 fi 3874fi 3875 3876 fi 3877fi 3878# Provide some information about the compiler. 3879$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 3880set X $ac_compile 3881ac_compiler=$2 3882for ac_option in --version -v -V -qversion; do 3883 { { ac_try="$ac_compiler $ac_option >&5" 3884case "(($ac_try" in 3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3886 *) ac_try_echo=$ac_try;; 3887esac 3888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3889$as_echo "$ac_try_echo"; } >&5 3890 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3891 ac_status=$? 3892 if test -s conftest.err; then 3893 sed '10a\ 3894... rest of stderr output deleted ... 3895 10q' conftest.err >conftest.er1 3896 cat conftest.er1 >&5 3897 fi 3898 rm -f conftest.er1 conftest.err 3899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3900 test $ac_status = 0; } 3901done 3902 3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3904$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3905if ${ac_cv_cxx_compiler_gnu+:} false; then : 3906 $as_echo_n "(cached) " >&6 3907else 3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3909/* end confdefs.h. */ 3910 3911int 3912main () 3913{ 3914#ifndef __GNUC__ 3915 choke me 3916#endif 3917 3918 ; 3919 return 0; 3920} 3921_ACEOF 3922if ac_fn_cxx_try_compile "$LINENO"; then : 3923 ac_compiler_gnu=yes 3924else 3925 ac_compiler_gnu=no 3926fi 3927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3928ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3929 3930fi 3931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 3932$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3933if test $ac_compiler_gnu = yes; then 3934 GXX=yes 3935else 3936 GXX= 3937fi 3938ac_test_CXXFLAGS=${CXXFLAGS+set} 3939ac_save_CXXFLAGS=$CXXFLAGS 3940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3941$as_echo_n "checking whether $CXX accepts -g... " >&6; } 3942if ${ac_cv_prog_cxx_g+:} false; then : 3943 $as_echo_n "(cached) " >&6 3944else 3945 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3946 ac_cxx_werror_flag=yes 3947 ac_cv_prog_cxx_g=no 3948 CXXFLAGS="-g" 3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3950/* end confdefs.h. */ 3951 3952int 3953main () 3954{ 3955 3956 ; 3957 return 0; 3958} 3959_ACEOF 3960if ac_fn_cxx_try_compile "$LINENO"; then : 3961 ac_cv_prog_cxx_g=yes 3962else 3963 CXXFLAGS="" 3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3965/* end confdefs.h. */ 3966 3967int 3968main () 3969{ 3970 3971 ; 3972 return 0; 3973} 3974_ACEOF 3975if ac_fn_cxx_try_compile "$LINENO"; then : 3976 3977else 3978 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3979 CXXFLAGS="-g" 3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3981/* end confdefs.h. */ 3982 3983int 3984main () 3985{ 3986 3987 ; 3988 return 0; 3989} 3990_ACEOF 3991if ac_fn_cxx_try_compile "$LINENO"; then : 3992 ac_cv_prog_cxx_g=yes 3993fi 3994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3995fi 3996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3997fi 3998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3999 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4000fi 4001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4002$as_echo "$ac_cv_prog_cxx_g" >&6; } 4003if test "$ac_test_CXXFLAGS" = set; then 4004 CXXFLAGS=$ac_save_CXXFLAGS 4005elif test $ac_cv_prog_cxx_g = yes; then 4006 if test "$GXX" = yes; then 4007 CXXFLAGS="-g -O2" 4008 else 4009 CXXFLAGS="-g" 4010 fi 4011else 4012 if test "$GXX" = yes; then 4013 CXXFLAGS="-O2" 4014 else 4015 CXXFLAGS= 4016 fi 4017fi 4018ac_ext=c 4019ac_cpp='$CPP $CPPFLAGS' 4020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4022ac_compiler_gnu=$ac_cv_c_compiler_gnu 4023 4024 4025 4026 CXXFLAGS_KEEP="$CXXFLAGS" 4027 CXXFLAGS="" 4028 4029 if test "$GXX" = "yes"; then 4030 4031 _svn_xxflags__save="$CXXFLAGS" 4032 ac_ext=cpp 4033ac_cpp='$CXXCPP $CPPFLAGS' 4034ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4035ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4036ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4037 4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -std=c++98" >&5 4039$as_echo_n "checking if $CXX accepts -std=c++98... " >&6; } 4040 CXXFLAGS="-std=c++98 $CXXFLAGS" 4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4042/* end confdefs.h. */ 4043int main(){} 4044_ACEOF 4045if ac_fn_cxx_try_link "$LINENO"; then : 4046 4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4048$as_echo "yes" >&6; } 4049 4050 4051else 4052 4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4054$as_echo "no" >&6; } 4055 CXXFLAGS="$_svn_xxflags__save" 4056 4057 4058fi 4059rm -f core conftest.err conftest.$ac_objext \ 4060 conftest$ac_exeext conftest.$ac_ext 4061 ac_ext=c 4062ac_cpp='$CPP $CPPFLAGS' 4063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4065ac_compiler_gnu=$ac_cv_c_compiler_gnu 4066 4067 4068 fi 4069 4070 CXXMODEFLAGS="$CXXFLAGS" 4071 CXXFLAGS="" 4072 4073 if test "$GXX" = "yes"; then 4074 4075 _svn_xxflags__save="$CXXFLAGS" 4076 ac_ext=cpp 4077ac_cpp='$CXXCPP $CPPFLAGS' 4078ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4079ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4080ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4081 4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -w" >&5 4083$as_echo_n "checking if $CXX accepts -w... " >&6; } 4084 CXXFLAGS="-w $CXXFLAGS" 4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4086/* end confdefs.h. */ 4087int main(){} 4088_ACEOF 4089if ac_fn_cxx_try_link "$LINENO"; then : 4090 4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4092$as_echo "yes" >&6; } 4093 4094 4095else 4096 4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4098$as_echo "no" >&6; } 4099 CXXFLAGS="$_svn_xxflags__save" 4100 4101 4102fi 4103rm -f core conftest.err conftest.$ac_objext \ 4104 conftest$ac_exeext conftest.$ac_ext 4105 ac_ext=c 4106ac_cpp='$CPP $CPPFLAGS' 4107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4109ac_compiler_gnu=$ac_cv_c_compiler_gnu 4110 4111 4112 fi 4113 4114 CXXNOWARNFLAGS="$CXXFLAGS" 4115 CXXFLAGS="$CXXFLAGS_KEEP" 4116 4117 4118 4119 4120 4121 4122 if test "$GXX" = "yes"; then 4123 4124 _svn_xxflags__save="$CXXFLAGS" 4125 ac_ext=cpp 4126ac_cpp='$CXXCPP $CPPFLAGS' 4127ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4128ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4129ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4130 4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Werror=unknown-warning-option" >&5 4132$as_echo_n "checking if $CXX accepts -Werror=unknown-warning-option... " >&6; } 4133 CXXFLAGS="-Werror=unknown-warning-option $CXXFLAGS" 4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4135/* end confdefs.h. */ 4136int main(){} 4137_ACEOF 4138if ac_fn_cxx_try_link "$LINENO"; then : 4139 4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4141$as_echo "yes" >&6; } 4142 4143 4144else 4145 4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4147$as_echo "no" >&6; } 4148 CXXFLAGS="$_svn_xxflags__save" 4149 4150 4151fi 4152rm -f core conftest.err conftest.$ac_objext \ 4153 conftest$ac_exeext conftest.$ac_ext 4154 ac_ext=c 4155ac_cpp='$CPP $CPPFLAGS' 4156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4158ac_compiler_gnu=$ac_cv_c_compiler_gnu 4159 4160 4161 fi 4162 4163 4164# Look for a C pre-processor 4165ac_ext=c 4166ac_cpp='$CPP $CPPFLAGS' 4167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4169ac_compiler_gnu=$ac_cv_c_compiler_gnu 4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4171$as_echo_n "checking how to run the C preprocessor... " >&6; } 4172# On Suns, sometimes $CPP names a directory. 4173if test -n "$CPP" && test -d "$CPP"; then 4174 CPP= 4175fi 4176if test -z "$CPP"; then 4177 if ${ac_cv_prog_CPP+:} false; then : 4178 $as_echo_n "(cached) " >&6 4179else 4180 # Double quotes because CPP needs to be expanded 4181 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4182 do 4183 ac_preproc_ok=false 4184for ac_c_preproc_warn_flag in '' yes 4185do 4186 # Use a header file that comes with gcc, so configuring glibc 4187 # with a fresh cross-compiler works. 4188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4189 # <limits.h> exists even on freestanding compilers. 4190 # On the NeXT, cc -E runs the code through the compiler's parser, 4191 # not just through cpp. "Syntax error" is here to catch this case. 4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4193/* end confdefs.h. */ 4194#ifdef __STDC__ 4195# include <limits.h> 4196#else 4197# include <assert.h> 4198#endif 4199 Syntax error 4200_ACEOF 4201if ac_fn_c_try_cpp "$LINENO"; then : 4202 4203else 4204 # Broken: fails on valid input. 4205continue 4206fi 4207rm -f conftest.err conftest.i conftest.$ac_ext 4208 4209 # OK, works on sane cases. Now check whether nonexistent headers 4210 # can be detected and how. 4211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4212/* end confdefs.h. */ 4213#include <ac_nonexistent.h> 4214_ACEOF 4215if ac_fn_c_try_cpp "$LINENO"; then : 4216 # Broken: success on invalid input. 4217continue 4218else 4219 # Passes both tests. 4220ac_preproc_ok=: 4221break 4222fi 4223rm -f conftest.err conftest.i conftest.$ac_ext 4224 4225done 4226# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4227rm -f conftest.i conftest.err conftest.$ac_ext 4228if $ac_preproc_ok; then : 4229 break 4230fi 4231 4232 done 4233 ac_cv_prog_CPP=$CPP 4234 4235fi 4236 CPP=$ac_cv_prog_CPP 4237else 4238 ac_cv_prog_CPP=$CPP 4239fi 4240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4241$as_echo "$CPP" >&6; } 4242ac_preproc_ok=false 4243for ac_c_preproc_warn_flag in '' yes 4244do 4245 # Use a header file that comes with gcc, so configuring glibc 4246 # with a fresh cross-compiler works. 4247 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4248 # <limits.h> exists even on freestanding compilers. 4249 # On the NeXT, cc -E runs the code through the compiler's parser, 4250 # not just through cpp. "Syntax error" is here to catch this case. 4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4252/* end confdefs.h. */ 4253#ifdef __STDC__ 4254# include <limits.h> 4255#else 4256# include <assert.h> 4257#endif 4258 Syntax error 4259_ACEOF 4260if ac_fn_c_try_cpp "$LINENO"; then : 4261 4262else 4263 # Broken: fails on valid input. 4264continue 4265fi 4266rm -f conftest.err conftest.i conftest.$ac_ext 4267 4268 # OK, works on sane cases. Now check whether nonexistent headers 4269 # can be detected and how. 4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4271/* end confdefs.h. */ 4272#include <ac_nonexistent.h> 4273_ACEOF 4274if ac_fn_c_try_cpp "$LINENO"; then : 4275 # Broken: success on invalid input. 4276continue 4277else 4278 # Passes both tests. 4279ac_preproc_ok=: 4280break 4281fi 4282rm -f conftest.err conftest.i conftest.$ac_ext 4283 4284done 4285# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4286rm -f conftest.i conftest.err conftest.$ac_ext 4287if $ac_preproc_ok; then : 4288 4289else 4290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4292as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4293See \`config.log' for more details" "$LINENO" 5; } 4294fi 4295 4296ac_ext=c 4297ac_cpp='$CPP $CPPFLAGS' 4298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4300ac_compiler_gnu=$ac_cv_c_compiler_gnu 4301 4302 4303# Look for a good sed 4304# AC_PROG_SED was introduced in Autoconf 2.59b 4305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4306$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4307if ${ac_cv_path_SED+:} false; then : 4308 $as_echo_n "(cached) " >&6 4309else 4310 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4311 for ac_i in 1 2 3 4 5 6 7; do 4312 ac_script="$ac_script$as_nl$ac_script" 4313 done 4314 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4315 { ac_script=; unset ac_script;} 4316 if test -z "$SED"; then 4317 ac_path_SED_found=false 4318 # Loop through the user's path and test for each of PROGNAME-LIST 4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4320for as_dir in $PATH 4321do 4322 IFS=$as_save_IFS 4323 test -z "$as_dir" && as_dir=. 4324 for ac_prog in sed gsed; do 4325 for ac_exec_ext in '' $ac_executable_extensions; do 4326 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4327 as_fn_executable_p "$ac_path_SED" || continue 4328# Check for GNU ac_path_SED and select it if it is found. 4329 # Check for GNU $ac_path_SED 4330case `"$ac_path_SED" --version 2>&1` in 4331*GNU*) 4332 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4333*) 4334 ac_count=0 4335 $as_echo_n 0123456789 >"conftest.in" 4336 while : 4337 do 4338 cat "conftest.in" "conftest.in" >"conftest.tmp" 4339 mv "conftest.tmp" "conftest.in" 4340 cp "conftest.in" "conftest.nl" 4341 $as_echo '' >> "conftest.nl" 4342 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4343 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4344 as_fn_arith $ac_count + 1 && ac_count=$as_val 4345 if test $ac_count -gt ${ac_path_SED_max-0}; then 4346 # Best one so far, save it but keep looking for a better one 4347 ac_cv_path_SED="$ac_path_SED" 4348 ac_path_SED_max=$ac_count 4349 fi 4350 # 10*(2^10) chars as input seems more than enough 4351 test $ac_count -gt 10 && break 4352 done 4353 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4354esac 4355 4356 $ac_path_SED_found && break 3 4357 done 4358 done 4359 done 4360IFS=$as_save_IFS 4361 if test -z "$ac_cv_path_SED"; then 4362 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4363 fi 4364else 4365 ac_cv_path_SED=$SED 4366fi 4367 4368fi 4369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4370$as_echo "$ac_cv_path_SED" >&6; } 4371 SED="$ac_cv_path_SED" 4372 rm -f conftest.sed 4373 4374 4375# Grab target_cpu, so we can use it in the Solaris pkginfo file 4376# Make sure we can run config.sub. 4377$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4378 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4379 4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4381$as_echo_n "checking build system type... " >&6; } 4382if ${ac_cv_build+:} false; then : 4383 $as_echo_n "(cached) " >&6 4384else 4385 ac_build_alias=$build_alias 4386test "x$ac_build_alias" = x && 4387 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4388test "x$ac_build_alias" = x && 4389 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4390ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4391 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4392 4393fi 4394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4395$as_echo "$ac_cv_build" >&6; } 4396case $ac_cv_build in 4397*-*-*) ;; 4398*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4399esac 4400build=$ac_cv_build 4401ac_save_IFS=$IFS; IFS='-' 4402set x $ac_cv_build 4403shift 4404build_cpu=$1 4405build_vendor=$2 4406shift; shift 4407# Remember, the first character of IFS is used to create $*, 4408# except with old shells: 4409build_os=$* 4410IFS=$ac_save_IFS 4411case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4412 4413 4414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4415$as_echo_n "checking host system type... " >&6; } 4416if ${ac_cv_host+:} false; then : 4417 $as_echo_n "(cached) " >&6 4418else 4419 if test "x$host_alias" = x; then 4420 ac_cv_host=$ac_cv_build 4421else 4422 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4423 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4424fi 4425 4426fi 4427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4428$as_echo "$ac_cv_host" >&6; } 4429case $ac_cv_host in 4430*-*-*) ;; 4431*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4432esac 4433host=$ac_cv_host 4434ac_save_IFS=$IFS; IFS='-' 4435set x $ac_cv_host 4436shift 4437host_cpu=$1 4438host_vendor=$2 4439shift; shift 4440# Remember, the first character of IFS is used to create $*, 4441# except with old shells: 4442host_os=$* 4443IFS=$ac_save_IFS 4444case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4445 4446 4447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 4448$as_echo_n "checking target system type... " >&6; } 4449if ${ac_cv_target+:} false; then : 4450 $as_echo_n "(cached) " >&6 4451else 4452 if test "x$target_alias" = x; then 4453 ac_cv_target=$ac_cv_host 4454else 4455 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 4456 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 4457fi 4458 4459fi 4460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 4461$as_echo "$ac_cv_target" >&6; } 4462case $ac_cv_target in 4463*-*-*) ;; 4464*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 4465esac 4466target=$ac_cv_target 4467ac_save_IFS=$IFS; IFS='-' 4468set x $ac_cv_target 4469shift 4470target_cpu=$1 4471target_vendor=$2 4472shift; shift 4473# Remember, the first character of IFS is used to create $*, 4474# except with old shells: 4475target_os=$* 4476IFS=$ac_save_IFS 4477case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 4478 4479 4480# The aliases save the names the user supplied, while $host etc. 4481# will get canonicalized. 4482test -n "$target_alias" && 4483 test "$program_prefix$program_suffix$program_transform_name" = \ 4484 NONENONEs,x,x, && 4485 program_prefix=${target_alias}- 4486 4487# Look for an extended grep 4488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4489$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4490if ${ac_cv_path_GREP+:} false; then : 4491 $as_echo_n "(cached) " >&6 4492else 4493 if test -z "$GREP"; then 4494 ac_path_GREP_found=false 4495 # Loop through the user's path and test for each of PROGNAME-LIST 4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4497for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4498do 4499 IFS=$as_save_IFS 4500 test -z "$as_dir" && as_dir=. 4501 for ac_prog in grep ggrep; do 4502 for ac_exec_ext in '' $ac_executable_extensions; do 4503 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4504 as_fn_executable_p "$ac_path_GREP" || continue 4505# Check for GNU ac_path_GREP and select it if it is found. 4506 # Check for GNU $ac_path_GREP 4507case `"$ac_path_GREP" --version 2>&1` in 4508*GNU*) 4509 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4510*) 4511 ac_count=0 4512 $as_echo_n 0123456789 >"conftest.in" 4513 while : 4514 do 4515 cat "conftest.in" "conftest.in" >"conftest.tmp" 4516 mv "conftest.tmp" "conftest.in" 4517 cp "conftest.in" "conftest.nl" 4518 $as_echo 'GREP' >> "conftest.nl" 4519 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4520 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4521 as_fn_arith $ac_count + 1 && ac_count=$as_val 4522 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4523 # Best one so far, save it but keep looking for a better one 4524 ac_cv_path_GREP="$ac_path_GREP" 4525 ac_path_GREP_max=$ac_count 4526 fi 4527 # 10*(2^10) chars as input seems more than enough 4528 test $ac_count -gt 10 && break 4529 done 4530 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4531esac 4532 4533 $ac_path_GREP_found && break 3 4534 done 4535 done 4536 done 4537IFS=$as_save_IFS 4538 if test -z "$ac_cv_path_GREP"; then 4539 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4540 fi 4541else 4542 ac_cv_path_GREP=$GREP 4543fi 4544 4545fi 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4547$as_echo "$ac_cv_path_GREP" >&6; } 4548 GREP="$ac_cv_path_GREP" 4549 4550 4551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4552$as_echo_n "checking for egrep... " >&6; } 4553if ${ac_cv_path_EGREP+:} false; then : 4554 $as_echo_n "(cached) " >&6 4555else 4556 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4557 then ac_cv_path_EGREP="$GREP -E" 4558 else 4559 if test -z "$EGREP"; then 4560 ac_path_EGREP_found=false 4561 # Loop through the user's path and test for each of PROGNAME-LIST 4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4563for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4564do 4565 IFS=$as_save_IFS 4566 test -z "$as_dir" && as_dir=. 4567 for ac_prog in egrep; do 4568 for ac_exec_ext in '' $ac_executable_extensions; do 4569 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4570 as_fn_executable_p "$ac_path_EGREP" || continue 4571# Check for GNU ac_path_EGREP and select it if it is found. 4572 # Check for GNU $ac_path_EGREP 4573case `"$ac_path_EGREP" --version 2>&1` in 4574*GNU*) 4575 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4576*) 4577 ac_count=0 4578 $as_echo_n 0123456789 >"conftest.in" 4579 while : 4580 do 4581 cat "conftest.in" "conftest.in" >"conftest.tmp" 4582 mv "conftest.tmp" "conftest.in" 4583 cp "conftest.in" "conftest.nl" 4584 $as_echo 'EGREP' >> "conftest.nl" 4585 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4586 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4587 as_fn_arith $ac_count + 1 && ac_count=$as_val 4588 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4589 # Best one so far, save it but keep looking for a better one 4590 ac_cv_path_EGREP="$ac_path_EGREP" 4591 ac_path_EGREP_max=$ac_count 4592 fi 4593 # 10*(2^10) chars as input seems more than enough 4594 test $ac_count -gt 10 && break 4595 done 4596 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4597esac 4598 4599 $ac_path_EGREP_found && break 3 4600 done 4601 done 4602 done 4603IFS=$as_save_IFS 4604 if test -z "$ac_cv_path_EGREP"; then 4605 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4606 fi 4607else 4608 ac_cv_path_EGREP=$EGREP 4609fi 4610 4611 fi 4612fi 4613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4614$as_echo "$ac_cv_path_EGREP" >&6; } 4615 EGREP="$ac_cv_path_EGREP" 4616 4617 4618 4619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4620$as_echo_n "checking whether ln -s works... " >&6; } 4621LN_S=$as_ln_s 4622if test "$LN_S" = "ln -s"; then 4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4624$as_echo "yes" >&6; } 4625else 4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4627$as_echo "no, using $LN_S" >&6; } 4628fi 4629 4630 4631# Find a good install program. We prefer a C program (faster), 4632# so one script is as good as another. But avoid the broken or 4633# incompatible versions: 4634# SysV /etc/install, /usr/sbin/install 4635# SunOS /usr/etc/install 4636# IRIX /sbin/install 4637# AIX /bin/install 4638# AmigaOS /C/install, which installs bootblocks on floppy discs 4639# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4640# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4641# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4642# OS/2's system install, which has a completely different semantic 4643# ./install, which can be erroneously created by make from ./install.sh. 4644# Reject install programs that cannot install multiple files. 4645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4646$as_echo_n "checking for a BSD-compatible install... " >&6; } 4647if test -z "$INSTALL"; then 4648if ${ac_cv_path_install+:} false; then : 4649 $as_echo_n "(cached) " >&6 4650else 4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4652for as_dir in $PATH 4653do 4654 IFS=$as_save_IFS 4655 test -z "$as_dir" && as_dir=. 4656 # Account for people who put trailing slashes in PATH elements. 4657case $as_dir/ in #(( 4658 ./ | .// | /[cC]/* | \ 4659 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4660 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4661 /usr/ucb/* ) ;; 4662 *) 4663 # OSF1 and SCO ODT 3.0 have their own names for install. 4664 # Don't use installbsd from OSF since it installs stuff as root 4665 # by default. 4666 for ac_prog in ginstall scoinst install; do 4667 for ac_exec_ext in '' $ac_executable_extensions; do 4668 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 4669 if test $ac_prog = install && 4670 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4671 # AIX install. It has an incompatible calling convention. 4672 : 4673 elif test $ac_prog = install && 4674 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4675 # program-specific install script used by HP pwplus--don't use. 4676 : 4677 else 4678 rm -rf conftest.one conftest.two conftest.dir 4679 echo one > conftest.one 4680 echo two > conftest.two 4681 mkdir conftest.dir 4682 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4683 test -s conftest.one && test -s conftest.two && 4684 test -s conftest.dir/conftest.one && 4685 test -s conftest.dir/conftest.two 4686 then 4687 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4688 break 3 4689 fi 4690 fi 4691 fi 4692 done 4693 done 4694 ;; 4695esac 4696 4697 done 4698IFS=$as_save_IFS 4699 4700rm -rf conftest.one conftest.two conftest.dir 4701 4702fi 4703 if test "${ac_cv_path_install+set}" = set; then 4704 INSTALL=$ac_cv_path_install 4705 else 4706 # As a last resort, use the slow shell script. Don't cache a 4707 # value for INSTALL within a source directory, because that will 4708 # break other packages using the cache if that directory is 4709 # removed, or if the value is a relative name. 4710 INSTALL=$ac_install_sh 4711 fi 4712fi 4713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4714$as_echo "$INSTALL" >&6; } 4715 4716# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4717# It thinks the first close brace ends the variable substitution. 4718test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4719 4720test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4721 4722test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4723 4724# If $INSTALL is relative path to our fallback install-sh, then convert 4725# to an absolute path, as in some cases (e.g. Solaris VPATH build), libtool 4726# may try to use it from a changed working directory. 4727if test "$INSTALL" = "build/install-sh -c"; then 4728 INSTALL="$abs_srcdir/$INSTALL" 4729fi 4730 4731if test -z "$MKDIR"; then 4732 MKDIR="$INSTALL -d" 4733fi 4734 4735 4736# ==== Libraries, for which we may have source to build ====================== 4737 4738 4739APR_VER_REGEXES="1\.[3-9]\. 2\." 4740 4741 4742 APR_WANTED_REGEXES="$APR_VER_REGEXES" 4743 4744 { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime (APR) library configuration" >&5 4745$as_echo "$as_me: Apache Portable Runtime (APR) library configuration" >&6;} 4746 4747 4748 apr_found="no" 4749 4750 if test "$target_os" = "os2-emx"; then 4751 # Scripts don't pass test -x on OS/2 4752 TEST_X="test -f" 4753 else 4754 TEST_X="test -x" 4755 fi 4756 4757 acceptable_majors="2 1 0" 4758 4759 apr_temp_acceptable_apr_config="" 4760 for apr_temp_major in $acceptable_majors 4761 do 4762 case $apr_temp_major in 4763 0) 4764 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config" 4765 ;; 4766 *) 4767 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config" 4768 ;; 4769 esac 4770 done 4771 4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5 4773$as_echo_n "checking for APR... " >&6; } 4774 4775# Check whether --with-apr was given. 4776if test "${with_apr+set}" = set; then : 4777 withval=$with_apr; 4778 if test "$withval" = "no" || test "$withval" = "yes"; then 4779 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5 4780 fi 4781 4782 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config 4783 do 4784 for lookdir in "$withval/bin" "$withval" 4785 do 4786 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then 4787 apr_config="$lookdir/$apr_temp_apr_config_file" 4788 4789 apr_found="yes" 4790 break 2 4791 fi 4792 done 4793 done 4794 4795 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then 4796 apr_config="$withval" 4797 apr_found="yes" 4798 fi 4799 4800 if test "$apr_found" != "yes"; then 4801 as_fn_error $? "the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." "$LINENO" 5 4802 fi 4803 4804else 4805 4806 if test -n "1" && test "1" = "1"; then 4807 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config 4808 do 4809 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then 4810 apr_config="$apr_temp_apr_config_file" 4811 4812 apr_found="yes" 4813 break 4814 else 4815 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do 4816 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then 4817 apr_config="$lookdir/bin/$apr_temp_apr_config_file" 4818 4819 apr_found="yes" 4820 break 2 4821 fi 4822 done 4823 fi 4824 done 4825 fi 4826 if test "$apr_found" = "no" && test -d """"; then 4827 apr_temp_abs_srcdir="`cd \"""\" && pwd`" 4828 apr_found="reconfig" 4829 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apr_version.h\"`" 4830 case $apr_bundled_major in 4831 "") 4832 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5 4833 ;; 4834 0) 4835 apr_temp_apr_config_file="apr-config" 4836 ;; 4837 *) 4838 apr_temp_apr_config_file="apr-$apr_bundled_major-config" 4839 ;; 4840 esac 4841 if test -n """"; then 4842 apr_config="""/$apr_temp_apr_config_file" 4843 else 4844 apr_config="""/$apr_temp_apr_config_file" 4845 fi 4846 fi 4847 4848fi 4849 4850 4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5 4852$as_echo "$apr_found" >&6; } 4853 4854 4855 if test $apr_found = "no"; then 4856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APR not found" >&5 4857$as_echo "$as_me: WARNING: APR not found" >&2;} 4858 4859 echo "The Apache Portable Runtime (APR) library cannot be found." 4860 echo "Please install APR on this system and configure Subversion" 4861 echo "with the appropriate --with-apr option." 4862 echo "" 4863 echo "You probably need to do something similar with the Apache" 4864 echo "Portable Runtime Utility (APRUTIL) library and then configure" 4865 echo "Subversion with both the --with-apr and --with-apr-util options." 4866 echo "" 4867 as_fn_error $? "no suitable APR found" "$LINENO" 5 4868 4869 fi 4870 4871 if test $apr_found = "reconfig"; then 4872 as_fn_error $? "Unexpected APR reconfig" "$LINENO" 5 4873 fi 4874 4875 4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking APR version" >&5 4877$as_echo_n "checking APR version... " >&6; } 4878 apr_version="`$apr_config --version`" 4879 if test $? -ne 0; then 4880 as_fn_error $? "apr-config --version failed" "$LINENO" 5 4881 fi 4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_version" >&5 4883$as_echo "$apr_version" >&6; } 4884 4885 APR_WANTED_REGEX_MATCH=0 4886 for apr_wanted_regex in $APR_WANTED_REGEXES; do 4887 if test `expr $apr_version : $apr_wanted_regex` -ne 0; then 4888 APR_WANTED_REGEX_MATCH=1 4889 break 4890 fi 4891 done 4892 4893 if test $APR_WANTED_REGEX_MATCH -eq 0; then 4894 echo "wanted regexes are $APR_WANTED_REGEXES" 4895 as_fn_error $? "invalid apr version found" "$LINENO" 5 4896 fi 4897 4898 4899 CPPFLAGS="$CPPFLAGS `$apr_config --cppflags`" 4900 if test $? -ne 0; then 4901 as_fn_error $? "apr-config --cppflags failed" "$LINENO" 5 4902 fi 4903 4904 CFLAGS="$CFLAGS `$apr_config --cflags`" 4905 if test $? -ne 0; then 4906 as_fn_error $? "apr-config --cflags failed" "$LINENO" 5 4907 fi 4908 4909 apr_ldflags="`$apr_config --ldflags`" 4910 if test $? -ne 0; then 4911 as_fn_error $? "apr-config --ldflags failed" "$LINENO" 5 4912 fi 4913 LDFLAGS="$LDFLAGS ` 4914 input_flags="$apr_ldflags" 4915 output_flags="" 4916 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 4917 for flag in $input_flags; do 4918 filter="no" 4919 for dir in $filtered_dirs; do 4920 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 4921 filter="yes" 4922 break 4923 fi 4924 done 4925 if test "$filter" = "no"; then 4926 output_flags="$output_flags $flag" 4927 fi 4928 done 4929 if test -n "$output_flags"; then 4930 printf "%s" "${output_flags# }" 4931 fi 4932`" 4933 4934 SVN_APR_INCLUDES="`$apr_config --includes`" 4935 if test $? -ne 0; then 4936 as_fn_error $? "apr-config --includes failed" "$LINENO" 5 4937 fi 4938 4939 if test "$enable_all_static" = "yes"; then 4940 SVN_APR_LIBS="`$apr_config --link-ld --libs`" 4941 if test $? -ne 0; then 4942 as_fn_error $? "apr-config --link-ld --libs failed" "$LINENO" 5 4943 fi 4944 else 4945 SVN_APR_LIBS="`$apr_config --link-ld`" 4946 if test $? -ne 0; then 4947 as_fn_error $? "apr-config --link-ld failed" "$LINENO" 5 4948 fi 4949 fi 4950 SVN_APR_LIBS="` 4951 input_flags="$SVN_APR_LIBS" 4952 output_flags="" 4953 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 4954 for flag in $input_flags; do 4955 filter="no" 4956 for dir in $filtered_dirs; do 4957 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 4958 filter="yes" 4959 break 4960 fi 4961 done 4962 if test "$filter" = "no"; then 4963 output_flags="$output_flags $flag" 4964 fi 4965 done 4966 if test -n "$output_flags"; then 4967 printf "%s" "${output_flags# }" 4968 fi 4969`" 4970 4971 SVN_APR_SHLIB_PATH_VAR="`$apr_config --shlib-path-var`" 4972 if test $? -ne 0; then 4973 as_fn_error $? "apr-config --shlib-path-var failed" "$LINENO" 5 4974 fi 4975 4976 SVN_APR_CONFIG="$apr_config" 4977 4978 4979 4980 4981 4982 4983if test `expr $apr_version : 2` -ne 0; then 4984 svn_lib_ver=2 4985 apu_config=$apr_config 4986 4987 SVN_APRUTIL_CONFIG="$apu_config" 4988 4989 4990 SVN_APR_MAJOR_VERSION=2 4991else 4992 svn_lib_ver=0 4993 APU_VER_REGEXES="1\.[3-9]\." 4994 4995 APRUTIL_WANTED_REGEXES="$APU_VER_REGEXES" 4996 4997 { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime Utility (APRUTIL) library configuration" >&5 4998$as_echo "$as_me: Apache Portable Runtime Utility (APRUTIL) library configuration" >&6;} 4999 5000 5001 apu_found="no" 5002 5003 if test "$target_os" = "os2-emx"; then 5004 # Scripts don't pass test -x on OS/2 5005 TEST_X="test -f" 5006 else 5007 TEST_X="test -x" 5008 fi 5009 5010 acceptable_majors="1 0" 5011 5012 apu_temp_acceptable_apu_config="" 5013 for apu_temp_major in $acceptable_majors 5014 do 5015 case $apu_temp_major in 5016 0) 5017 apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-config" 5018 ;; 5019 *) 5020 apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-$apu_temp_major-config" 5021 ;; 5022 esac 5023 done 5024 5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR-util" >&5 5026$as_echo_n "checking for APR-util... " >&6; } 5027 5028# Check whether --with-apr-util was given. 5029if test "${with_apr_util+set}" = set; then : 5030 withval=$with_apr_util; 5031 if test "$withval" = "no" || test "$withval" = "yes"; then 5032 as_fn_error $? "--with-apr-util requires a directory or file to be provided" "$LINENO" 5 5033 fi 5034 5035 for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config 5036 do 5037 for lookdir in "$withval/bin" "$withval" 5038 do 5039 if $TEST_X "$lookdir/$apu_temp_apu_config_file"; then 5040 apu_config="$lookdir/$apu_temp_apu_config_file" 5041 5042 apu_found="yes" 5043 break 2 5044 fi 5045 done 5046 done 5047 5048 if test "$apu_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then 5049 apu_config="$withval" 5050 apu_found="yes" 5051 fi 5052 5053 if test "$apu_found" != "yes"; then 5054 as_fn_error $? "the --with-apr-util parameter is incorrect. It must specify an install prefix, a build directory, or an apu-config file." "$LINENO" 5 5055 fi 5056 5057else 5058 5059 if test -n "1" && test "1" = "1"; then 5060 for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config 5061 do 5062 if $apu_temp_apu_config_file --help > /dev/null 2>&1 ; then 5063 apu_config="$apu_temp_apu_config_file" 5064 5065 apu_found="yes" 5066 break 5067 else 5068 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do 5069 if $TEST_X "$lookdir/bin/$apu_temp_apu_config_file"; then 5070 apu_config="$lookdir/bin/$apu_temp_apu_config_file" 5071 5072 apu_found="yes" 5073 break 2 5074 fi 5075 done 5076 fi 5077 done 5078 fi 5079 if test "$apu_found" = "no" && test -d """"; then 5080 apu_temp_abs_srcdir="`cd \"""\" && pwd`" 5081 apu_found="reconfig" 5082 apu_bundled_major="`sed -n '/#define.*APU_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apu_version.h\"`" 5083 case $apu_bundled_major in 5084 "") 5085 as_fn_error $? "failed to find major version of bundled APU" "$LINENO" 5 5086 ;; 5087 0) 5088 apu_temp_apu_config_file="apu-config" 5089 ;; 5090 *) 5091 apu_temp_apu_config_file="apu-$apu_bundled_major-config" 5092 ;; 5093 esac 5094 if test -n """"; then 5095 apu_config="""/$apu_temp_apu_config_file" 5096 else 5097 apu_config="""/$apu_temp_apu_config_file" 5098 fi 5099 fi 5100 5101fi 5102 5103 5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_found" >&5 5105$as_echo "$apu_found" >&6; } 5106 5107 5108 if test $apu_found = "no"; then 5109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APRUTIL not found" >&5 5110$as_echo "$as_me: WARNING: APRUTIL not found" >&2;} 5111 5112 echo "The Apache Portable Runtime Utility (APRUTIL) library cannot be found." 5113 echo "Install APRUTIL on this system and configure Subversion with the" 5114 echo " appropriate --with-apr-util option." 5115 echo "" 5116 as_fn_error $? "no suitable APRUTIL found" "$LINENO" 5 5117 5118 fi 5119 5120 if test $apu_found = "reconfig"; then 5121 as_fn_error $? "Unexpected APRUTIL reconfig" "$LINENO" 5 5122 fi 5123 5124 5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking APRUTIL version" >&5 5126$as_echo_n "checking APRUTIL version... " >&6; } 5127 apu_version="`$apu_config --version`" 5128 if test $? -ne 0; then 5129 # This is a hack as suggested by Ben Collins-Sussman. It can be 5130 # removed after apache 2.0.44 has been released. (The apu-config 5131 # shipped in 2.0.43 contains a correct version number, but 5132 # stupidly doesn't understand the --version switch.) 5133 apu_version=`grep "APRUTIL_DOTTED_VERSION=" $(which $apu_config) | tr -d "APRUTIL_DOTTED_VERSION="| tr -d '"'` 5134 #AC_MSG_ERROR([ 5135 # apu-config --version failed. 5136 # Your apu-config doesn't support the --version switch, please upgrade 5137 # to APR-UTIL more recent than 2002-Nov-05.]) 5138 fi 5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_version" >&5 5140$as_echo "$apu_version" >&6; } 5141 5142 APU_WANTED_REGEX_MATCH=0 5143 for apu_wanted_regex in $APRUTIL_WANTED_REGEXES; do 5144 if test `expr $apu_version : $apu_wanted_regex` -ne 0; then 5145 APU_WANTED_REGEX_MATCH=1 5146 break 5147 fi 5148 done 5149 5150 if test $APU_WANTED_REGEX_MATCH -eq 0; then 5151 echo "wanted regexes are $APRUTIL_WANTED_REGEXES" 5152 as_fn_error $? "invalid APRUTIL version found" "$LINENO" 5 5153 fi 5154 5155 5156 apu_ldflags="`$apu_config --ldflags`" 5157 if test $? -ne 0; then 5158 as_fn_error $? "apu-config --ldflags failed" "$LINENO" 5 5159 fi 5160 LDFLAGS="$LDFLAGS ` 5161 input_flags="$apu_ldflags" 5162 output_flags="" 5163 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 5164 for flag in $input_flags; do 5165 filter="no" 5166 for dir in $filtered_dirs; do 5167 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 5168 filter="yes" 5169 break 5170 fi 5171 done 5172 if test "$filter" = "no"; then 5173 output_flags="$output_flags $flag" 5174 fi 5175 done 5176 if test -n "$output_flags"; then 5177 printf "%s" "${output_flags# }" 5178 fi 5179`" 5180 5181 SVN_APRUTIL_INCLUDES="`$apu_config --includes`" 5182 if test $? -ne 0; then 5183 as_fn_error $? "apu-config --includes failed" "$LINENO" 5 5184 fi 5185 5186 if test "$enable_all_static" = "yes"; then 5187 SVN_APRUTIL_LIBS="`$apu_config --link-ld --libs`" 5188 if test $? -ne 0; then 5189 as_fn_error $? "apu-config --link-ld --libs failed" "$LINENO" 5 5190 fi 5191 else 5192 SVN_APRUTIL_LIBS="`$apu_config --link-ld`" 5193 if test $? -ne 0; then 5194 as_fn_error $? "apu-config --link-ld failed" "$LINENO" 5 5195 fi 5196 fi 5197 SVN_APRUTIL_LIBS="` 5198 input_flags="$SVN_APRUTIL_LIBS" 5199 output_flags="" 5200 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 5201 for flag in $input_flags; do 5202 filter="no" 5203 for dir in $filtered_dirs; do 5204 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 5205 filter="yes" 5206 break 5207 fi 5208 done 5209 if test "$filter" = "no"; then 5210 output_flags="$output_flags $flag" 5211 fi 5212 done 5213 if test -n "$output_flags"; then 5214 printf "%s" "${output_flags# }" 5215 fi 5216`" 5217 5218 5219 SVN_APRUTIL_CONFIG="$apu_config" 5220 5221 5222 5223 SVN_HAVE_OLD_EXPAT="`$apu_config --old-expat`" 5224 if test "$SVN_HAVE_OLD_EXPAT" = "yes"; then 5225 5226$as_echo "#define SVN_HAVE_OLD_EXPAT 1" >>confdefs.h 5227 5228 fi 5229 5230 SVN_APR_MAJOR_VERSION=1 5231fi 5232 5233SVN_LT_SOVERSION="-version-info $svn_lib_ver" 5234 5235 5236cat >>confdefs.h <<_ACEOF 5237#define SVN_SOVERSION $svn_lib_ver 5238_ACEOF 5239 5240 5241# Extract the first word of "pkg-config", so it can be a program name with args. 5242set dummy pkg-config; ac_word=$2 5243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5244$as_echo_n "checking for $ac_word... " >&6; } 5245if ${ac_cv_path_PKG_CONFIG+:} false; then : 5246 $as_echo_n "(cached) " >&6 5247else 5248 case $PKG_CONFIG in 5249 [\\/]* | ?:[\\/]*) 5250 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5251 ;; 5252 *) 5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5254for as_dir in $PATH 5255do 5256 IFS=$as_save_IFS 5257 test -z "$as_dir" && as_dir=. 5258 for ac_exec_ext in '' $ac_executable_extensions; do 5259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5260 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5262 break 2 5263 fi 5264done 5265 done 5266IFS=$as_save_IFS 5267 5268 ;; 5269esac 5270fi 5271PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5272if test -n "$PKG_CONFIG"; then 5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5274$as_echo "$PKG_CONFIG" >&6; } 5275else 5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5277$as_echo "no" >&6; } 5278fi 5279 5280 5281 5282 5283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5284$as_echo_n "checking for ANSI C header files... " >&6; } 5285if ${ac_cv_header_stdc+:} false; then : 5286 $as_echo_n "(cached) " >&6 5287else 5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5289/* end confdefs.h. */ 5290#include <stdlib.h> 5291#include <stdarg.h> 5292#include <string.h> 5293#include <float.h> 5294 5295int 5296main () 5297{ 5298 5299 ; 5300 return 0; 5301} 5302_ACEOF 5303if ac_fn_c_try_compile "$LINENO"; then : 5304 ac_cv_header_stdc=yes 5305else 5306 ac_cv_header_stdc=no 5307fi 5308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5309 5310if test $ac_cv_header_stdc = yes; then 5311 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5313/* end confdefs.h. */ 5314#include <string.h> 5315 5316_ACEOF 5317if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5318 $EGREP "memchr" >/dev/null 2>&1; then : 5319 5320else 5321 ac_cv_header_stdc=no 5322fi 5323rm -f conftest* 5324 5325fi 5326 5327if test $ac_cv_header_stdc = yes; then 5328 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5330/* end confdefs.h. */ 5331#include <stdlib.h> 5332 5333_ACEOF 5334if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5335 $EGREP "free" >/dev/null 2>&1; then : 5336 5337else 5338 ac_cv_header_stdc=no 5339fi 5340rm -f conftest* 5341 5342fi 5343 5344if test $ac_cv_header_stdc = yes; then 5345 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5346 if test "$cross_compiling" = yes; then : 5347 : 5348else 5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5350/* end confdefs.h. */ 5351#include <ctype.h> 5352#include <stdlib.h> 5353#if ((' ' & 0x0FF) == 0x020) 5354# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5355# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5356#else 5357# define ISLOWER(c) \ 5358 (('a' <= (c) && (c) <= 'i') \ 5359 || ('j' <= (c) && (c) <= 'r') \ 5360 || ('s' <= (c) && (c) <= 'z')) 5361# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5362#endif 5363 5364#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5365int 5366main () 5367{ 5368 int i; 5369 for (i = 0; i < 256; i++) 5370 if (XOR (islower (i), ISLOWER (i)) 5371 || toupper (i) != TOUPPER (i)) 5372 return 2; 5373 return 0; 5374} 5375_ACEOF 5376if ac_fn_c_try_run "$LINENO"; then : 5377 5378else 5379 ac_cv_header_stdc=no 5380fi 5381rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5382 conftest.$ac_objext conftest.beam conftest.$ac_ext 5383fi 5384 5385fi 5386fi 5387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5388$as_echo "$ac_cv_header_stdc" >&6; } 5389if test $ac_cv_header_stdc = yes; then 5390 5391$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5392 5393fi 5394 5395# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5396for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5397 inttypes.h stdint.h unistd.h 5398do : 5399 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5400ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5401" 5402if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5403 cat >>confdefs.h <<_ACEOF 5404#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5405_ACEOF 5406 5407fi 5408 5409done 5410 5411 5412 5413 serf_found=no 5414 serf_required=no 5415 serf_skip=no 5416 5417 serf_check_major="1" 5418 serf_check_minor="3" 5419 serf_check_patch="4" 5420 serf_check_version="1.3.4" 5421 5422 5423# Check whether --with-serf was given. 5424if test "${with_serf+set}" = set; then : 5425 withval=$with_serf; 5426 if test "$withval" = "yes" ; then 5427 serf_required=yes 5428 elif test "$withval" = "no" ; then 5429 serf_skip=yes 5430 else 5431 serf_required=yes 5432 serf_prefix="$withval" 5433 fi 5434 5435fi 5436 5437 5438 if test "$serf_skip" = "no" ; then 5439 5440 { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via pkg-config" >&5 5441$as_echo "$as_me: serf library configuration via pkg-config" >&6;} 5442 if test -n "$PKG_CONFIG"; then 5443 for serf_major in serf-2 serf-1; do 5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $serf_major library" >&5 5445$as_echo_n "checking for $serf_major library... " >&6; } 5446 if test -n "$serf_prefix" ; then 5447 if test -e "$serf_prefix/$serf_major.pc" ; then 5448 serf_pc_arg="$serf_prefix/$serf_major.pc" 5449 elif test -e "$serf_prefix/lib/pkgconfig/$serf_major.pc" ; then 5450 serf_pc_arg="$serf_prefix/lib/pkgconfig/$serf_major.pc" 5451 else 5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5453$as_echo "no" >&6; } 5454 continue 5455 fi 5456 else 5457 serf_pc_arg="$serf_major" 5458 fi 5459 if $PKG_CONFIG $serf_pc_arg --exists; then 5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5461$as_echo "yes" >&6; } 5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf library version" >&5 5463$as_echo_n "checking serf library version... " >&6; } 5464 SERF_VERSION=`$PKG_CONFIG $serf_pc_arg --modversion` 5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SERF_VERSION" >&5 5466$as_echo "$SERF_VERSION" >&6; } 5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf version is suitable" >&5 5468$as_echo_n "checking serf version is suitable... " >&6; } 5469 if $PKG_CONFIG $serf_pc_arg --atleast-version=$serf_check_version; then 5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5471$as_echo "yes" >&6; } 5472 serf_found=yes 5473 SVN_SERF_INCLUDES=`$PKG_CONFIG $serf_pc_arg --cflags | $SED -e 's/ -D[^ ]*//g' -e 's/^-D[^ ]*//g'` 5474 SVN_SERF_LIBS=`$PKG_CONFIG $serf_pc_arg --libs-only-l` 5475 LDFLAGS="$LDFLAGS `$PKG_CONFIG $serf_pc_arg --libs | $SED -e 's/-l[^ ]*//g'`" 5476 break 5477 else 5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5479$as_echo "no" >&6; } 5480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5 5481$as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;} 5482 fi 5483 else 5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5485$as_echo "no" >&6; } 5486 fi 5487 done 5488 fi 5489 5490 if test -n "$serf_prefix" && test "$serf_found" = "no" ; then 5491 5492 { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via prefix" >&5 5493$as_echo "$as_me: serf library configuration via prefix" >&6;} 5494 serf_required=yes 5495 for serf_major in serf-2 serf-1; do 5496 if ! test -d $serf_prefix/include/$serf_major; then continue; fi 5497 save_cppflags="$CPPFLAGS" 5498 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$serf_prefix/include/$serf_major" 5499 for ac_header in serf.h 5500do : 5501 ac_fn_c_check_header_mongrel "$LINENO" "serf.h" "ac_cv_header_serf_h" "$ac_includes_default" 5502if test "x$ac_cv_header_serf_h" = xyes; then : 5503 cat >>confdefs.h <<_ACEOF 5504#define HAVE_SERF_H 1 5505_ACEOF 5506 5507 save_ldflags="$LDFLAGS" 5508 LDFLAGS="$LDFLAGS ` 5509 input_flags="-L$serf_prefix/lib" 5510 output_flags="" 5511 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 5512 for flag in $input_flags; do 5513 filter="no" 5514 for dir in $filtered_dirs; do 5515 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 5516 filter="yes" 5517 break 5518 fi 5519 done 5520 if test "$filter" = "no"; then 5521 output_flags="$output_flags $flag" 5522 fi 5523 done 5524 if test -n "$output_flags"; then 5525 printf "%s" "${output_flags# }" 5526 fi 5527`" 5528 as_ac_Lib=`$as_echo "ac_cv_lib_$serf_major''_serf_context_create" | $as_tr_sh` 5529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for serf_context_create in -l$serf_major" >&5 5530$as_echo_n "checking for serf_context_create in -l$serf_major... " >&6; } 5531if eval \${$as_ac_Lib+:} false; then : 5532 $as_echo_n "(cached) " >&6 5533else 5534 ac_check_lib_save_LIBS=$LIBS 5535LIBS="-l$serf_major $SVN_APRUTIL_LIBS $SVN_APR_LIBS -lz $LIBS" 5536cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5537/* end confdefs.h. */ 5538 5539/* Override any GCC internal prototype to avoid an error. 5540 Use char because int might match the return type of a GCC 5541 builtin and then its argument prototype would still apply. */ 5542#ifdef __cplusplus 5543extern "C" 5544#endif 5545char serf_context_create (); 5546int 5547main () 5548{ 5549return serf_context_create (); 5550 ; 5551 return 0; 5552} 5553_ACEOF 5554if ac_fn_c_try_link "$LINENO"; then : 5555 eval "$as_ac_Lib=yes" 5556else 5557 eval "$as_ac_Lib=no" 5558fi 5559rm -f core conftest.err conftest.$ac_objext \ 5560 conftest$ac_exeext conftest.$ac_ext 5561LIBS=$ac_check_lib_save_LIBS 5562fi 5563eval ac_res=\$$as_ac_Lib 5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5565$as_echo "$ac_res" >&6; } 5566if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 5567 5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5569/* end confdefs.h. */ 5570 5571#include <stdlib.h> 5572#include "serf.h" 5573 5574int 5575main () 5576{ 5577 5578#if ! SERF_VERSION_AT_LEAST($serf_check_major, $serf_check_minor, $serf_check_patch) 5579#error Serf version too old: need $serf_check_version 5580#endif 5581 5582 ; 5583 return 0; 5584} 5585_ACEOF 5586if ac_fn_c_try_compile "$LINENO"; then : 5587 serf_found=yes 5588else 5589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5 5590$as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;} 5591 serf_found=no 5592fi 5593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5594fi 5595 5596 LDFLAGS="$save_ldflags" 5597fi 5598 5599done 5600 5601 CPPFLAGS="$save_cppflags" 5602 test $serf_found = yes && break 5603 done 5604 5605 if test $serf_found = "yes"; then 5606 SVN_SERF_INCLUDES="-I$serf_prefix/include/$serf_major" 5607 if test -e "$serf_prefix/lib/lib$serf_major.la"; then 5608 SVN_SERF_LIBS="$serf_prefix/lib/lib$serf_major.la" 5609 else 5610 SVN_SERF_LIBS="-l$serf_major" 5611 LDFLAGS="$LDFLAGS ` 5612 input_flags="-L$serf_prefix/lib" 5613 output_flags="" 5614 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 5615 for flag in $input_flags; do 5616 filter="no" 5617 for dir in $filtered_dirs; do 5618 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 5619 filter="yes" 5620 break 5621 fi 5622 done 5623 if test "$filter" = "no"; then 5624 output_flags="$output_flags $flag" 5625 fi 5626 done 5627 if test -n "$output_flags"; then 5628 printf "%s" "${output_flags# }" 5629 fi 5630`" 5631 fi 5632 fi 5633 5634 fi 5635 5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking was serf enabled" >&5 5637$as_echo_n "checking was serf enabled... " >&6; } 5638 if test "$serf_found" = "yes"; then 5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5640$as_echo "yes" >&6; } 5641 else 5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5643$as_echo "no" >&6; } 5644 5645 echo "" 5646 echo "An appropriate version of serf could not be found, so libsvn_ra_serf" 5647 echo "will not be built. If you want to build libsvn_ra_serf, please" 5648 echo "install serf $serf_check_version or newer." 5649 echo "" 5650 5651 if test "$serf_required" = "yes"; then 5652 as_fn_error $? "Serf was explicitly enabled but an appropriate version was not found." "$LINENO" 5 5653 fi 5654 fi 5655 fi 5656 5657 svn_lib_serf=$serf_found 5658 5659 5660 5661 5662 5663if test "$svn_lib_serf" = "yes"; then 5664 5665$as_echo "#define SVN_HAVE_SERF 1" >>confdefs.h 5666 5667fi 5668 5669 5670 apr_memcache_found=no 5671 5672 5673# Check whether --with-apr_memcache was given. 5674if test "${with_apr_memcache+set}" = set; then : 5675 withval=$with_apr_memcache; 5676 if test "$withval" = "yes" ; then 5677 as_fn_error $? "--with-apr_memcache requires an argument." "$LINENO" 5 5678 else 5679 { $as_echo "$as_me:${as_lineno-$LINENO}: looking for separate apr_memcache package" >&5 5680$as_echo "$as_me: looking for separate apr_memcache package" >&6;} 5681 apr_memcache_prefix=$withval 5682 save_cppflags="$CPPFLAGS" 5683 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$apr_memcache_prefix/include/apr_memcache-0" 5684 ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default" 5685if test "x$ac_cv_header_apr_memcache_h" = xyes; then : 5686 5687 save_ldflags="$LDFLAGS" 5688 LDFLAGS="$LDFLAGS -L$apr_memcache_prefix/lib" 5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -lapr_memcache" >&5 5690$as_echo_n "checking for apr_memcache_create in -lapr_memcache... " >&6; } 5691if ${ac_cv_lib_apr_memcache_apr_memcache_create+:} false; then : 5692 $as_echo_n "(cached) " >&6 5693else 5694 ac_check_lib_save_LIBS=$LIBS 5695LIBS="-lapr_memcache $LIBS" 5696cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5697/* end confdefs.h. */ 5698 5699/* Override any GCC internal prototype to avoid an error. 5700 Use char because int might match the return type of a GCC 5701 builtin and then its argument prototype would still apply. */ 5702#ifdef __cplusplus 5703extern "C" 5704#endif 5705char apr_memcache_create (); 5706int 5707main () 5708{ 5709return apr_memcache_create (); 5710 ; 5711 return 0; 5712} 5713_ACEOF 5714if ac_fn_c_try_link "$LINENO"; then : 5715 ac_cv_lib_apr_memcache_apr_memcache_create=yes 5716else 5717 ac_cv_lib_apr_memcache_apr_memcache_create=no 5718fi 5719rm -f core conftest.err conftest.$ac_objext \ 5720 conftest$ac_exeext conftest.$ac_ext 5721LIBS=$ac_check_lib_save_LIBS 5722fi 5723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_apr_memcache_apr_memcache_create" >&5 5724$as_echo "$ac_cv_lib_apr_memcache_apr_memcache_create" >&6; } 5725if test "x$ac_cv_lib_apr_memcache_apr_memcache_create" = xyes; then : 5726 apr_memcache_found="standalone" 5727fi 5728 5729 LDFLAGS="$save_ldflags" 5730fi 5731 5732 5733 CPPFLAGS="$save_cppflags" 5734 fi 5735 5736else 5737 5738 { $as_echo "$as_me:${as_lineno-$LINENO}: looking for apr_memcache as part of apr-util" >&5 5739$as_echo "$as_me: looking for apr_memcache as part of apr-util" >&6;} 5740 save_cppflags="$CPPFLAGS" 5741 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES" 5742 ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default" 5743if test "x$ac_cv_header_apr_memcache_h" = xyes; then : 5744 5745 save_ldflags="$LDFLAGS" 5746 LDFLAGS="$LDFLAGS $SVN_APRUTIL_LIBS" 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -laprutil-1" >&5 5748$as_echo_n "checking for apr_memcache_create in -laprutil-1... " >&6; } 5749if ${ac_cv_lib_aprutil_1_apr_memcache_create+:} false; then : 5750 $as_echo_n "(cached) " >&6 5751else 5752 ac_check_lib_save_LIBS=$LIBS 5753LIBS="-laprutil-1 $LIBS" 5754cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5755/* end confdefs.h. */ 5756 5757/* Override any GCC internal prototype to avoid an error. 5758 Use char because int might match the return type of a GCC 5759 builtin and then its argument prototype would still apply. */ 5760#ifdef __cplusplus 5761extern "C" 5762#endif 5763char apr_memcache_create (); 5764int 5765main () 5766{ 5767return apr_memcache_create (); 5768 ; 5769 return 0; 5770} 5771_ACEOF 5772if ac_fn_c_try_link "$LINENO"; then : 5773 ac_cv_lib_aprutil_1_apr_memcache_create=yes 5774else 5775 ac_cv_lib_aprutil_1_apr_memcache_create=no 5776fi 5777rm -f core conftest.err conftest.$ac_objext \ 5778 conftest$ac_exeext conftest.$ac_ext 5779LIBS=$ac_check_lib_save_LIBS 5780fi 5781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aprutil_1_apr_memcache_create" >&5 5782$as_echo "$ac_cv_lib_aprutil_1_apr_memcache_create" >&6; } 5783if test "x$ac_cv_lib_aprutil_1_apr_memcache_create" = xyes; then : 5784 apr_memcache_found="aprutil" 5785fi 5786 5787 LDFLAGS="$save_ldflags" 5788fi 5789 5790 5791 CPPFLAGS="$save_cppflags" 5792 5793fi 5794 5795 5796 5797 if test $apr_memcache_found = "standalone"; then 5798 SVN_APR_MEMCACHE_INCLUDES="-I$apr_memcache_prefix/include/apr_memcache-0" 5799 SVN_APR_MEMCACHE_LIBS="$apr_memcache_prefix/lib/libapr_memcache.la" 5800 svn_lib_apr_memcache=yes 5801 elif test $apr_memcache_found = "aprutil"; then 5802 SVN_APR_MEMCACHE_INCLUDES="" 5803 SVN_APR_MEMCACHE_LIBS="" 5804 svn_lib_apr_memcache=yes 5805 elif test $apr_memcache_found = "reconfig"; then 5806 svn_lib_apr_memcache=yes 5807 else 5808 svn_lib_apr_memcache=no 5809 fi 5810 5811 5812 5813 5814 5815if test "$svn_lib_apr_memcache" = "yes"; then 5816 5817$as_echo "#define SVN_HAVE_MEMCACHE 1" >>confdefs.h 5818 5819fi 5820 5821# Check whether --enable-apache-whitelist was given. 5822if test "${enable_apache_whitelist+set}" = set; then : 5823 enableval=$enable_apache_whitelist; apache_whitelist_ver=$enableval 5824else 5825 apache_whitelist_ver=no 5826fi 5827 5828HTTPD_WHITELIST="$apache_whitelist_ver" 5829 5830 5831 5832 5833 5834HTTPD_WANTED_MMN="20051115" 5835 5836HTTPD_WHITELIST_VER="$apache_whitelist_ver" 5837 5838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache module support via DSO through APXS" >&5 5839$as_echo_n "checking for Apache module support via DSO through APXS... " >&6; } 5840 5841# Check whether --with-apxs was given. 5842if test "${with_apxs+set}" = set; then : 5843 withval=$with_apxs; 5844 if test "$withval" = "yes"; then 5845 APXS=apxs 5846 else 5847 APXS="$withval" 5848 fi 5849 APXS_EXPLICIT=1 5850 5851fi 5852 5853 5854if test -z "$APXS"; then 5855 for i in /usr/local/apache2/bin /usr/local/apache/bin /usr/bin /usr/sbin ; do 5856 if test -f "$i/apxs2"; then 5857 APXS="$i/apxs2" 5858 break 5859 fi 5860 if test -f "$i/apxs"; then 5861 APXS="$i/apxs" 5862 break 5863 fi 5864 done 5865fi 5866 5867if test -n "$APXS" && test "$APXS" != "no"; then 5868 APXS_INCLUDE="`$APXS -q INCLUDEDIR`" 5869 if test -r $APXS_INCLUDE/mod_dav.h; then 5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at $APXS" >&5 5871$as_echo "found at $APXS" >&6; } 5872 5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking httpd version" >&5 5874$as_echo_n "checking httpd version... " >&6; } 5875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5876/* end confdefs.h. */ 5877 5878#include "$APXS_INCLUDE/ap_mmn.h" 5879#if AP_MODULE_MAGIC_AT_LEAST($HTTPD_WANTED_MMN,0) 5880VERSION_OKAY 5881#endif 5882_ACEOF 5883if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5884 $EGREP "VERSION_OKAY" >/dev/null 2>&1; then : 5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: recent enough" >&5 5886$as_echo "recent enough" >&6; } 5887else 5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: apache too old: mmn must be at least $HTTPD_WANTED_MMN" >&5 5889$as_echo "apache too old: mmn must be at least $HTTPD_WANTED_MMN" >&6; } 5890 if test "$APXS_EXPLICIT" != ""; then 5891 as_fn_error $? "Apache APXS build explicitly requested, but apache version is too old" "$LINENO" 5 5892 fi 5893 APXS="" 5894 5895fi 5896rm -f conftest* 5897 5898 5899 elif test "$APXS_EXPLICIT" != ""; then 5900 as_fn_error $? "no - APXS refers to an old version of Apache 5901 Unable to locate $APXS_INCLUDE/mod_dav.h" "$LINENO" 5 5902 else 5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&5 5904$as_echo "no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&6; } 5905 APXS="" 5906 fi 5907else 5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5909$as_echo "no" >&6; } 5910fi 5911 5912# check for some busted versions of mod_dav 5913# in particular 2.2.25, 2.4.5, and 2.4.6 had the following bugs which are 5914# troublesome for Subversion: 5915# PR 55304: https://issues.apache.org/bugzilla/show_bug.cgi?id=55304 5916# PR 55306: https://issues.apache.org/bugzilla/show_bug.cgi?id=55306 5917# PR 55397: https://issues.apache.org/bugzilla/show_bug.cgi?id=55397 5918if test -n "$APXS" && test "$APXS" != "no"; then 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mod_dav version" >&5 5920$as_echo_n "checking mod_dav version... " >&6; } 5921 HTTPD_MAJOR=`$SED -ne '/^#define AP_SERVER_MAJORVERSION_NUMBER/p' "$APXS_INCLUDE/ap_release.h" | $SED -e 's/^.*NUMBER *//'` 5922 HTTPD_MINOR=`$SED -ne '/^#define AP_SERVER_MINORVERSION_NUMBER/p' "$APXS_INCLUDE/ap_release.h" | $SED -e 's/^.*NUMBER *//'` 5923 HTTPD_PATCH=`$SED -ne '/^#define AP_SERVER_PATCHLEVEL_NUMBER/p' "$APXS_INCLUDE/ap_release.h" | $SED -e 's/^.*NUMBER *//'` 5924 HTTPD_VERSION="${HTTPD_MAJOR}.${HTTPD_MINOR}.${HTTPD_PATCH}" 5925 case "$HTTPD_VERSION" in 5926 $HTTPD_WHITELIST_VER) 5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: acceptable (whitelist)" >&5 5928$as_echo "acceptable (whitelist)" >&6; } 5929 ;; 5930 2.2.25 | 2.4.[5-6]) 5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5 5932$as_echo "broken" >&6; } 5933 as_fn_error $? "Apache httpd version $HTTPD_VERSION includes a broken mod_dav; use a newer version of httpd" "$LINENO" 5 5934 ;; 5935 2.[0-9]*.[0-9]*) 5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: acceptable" >&5 5937$as_echo "acceptable" >&6; } 5938 ;; 5939 *) 5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unrecognised" >&5 5941$as_echo "unrecognised" >&6; } 5942 as_fn_error $? "Apache httpd version $HTTPD_VERSION not recognised" "$LINENO" 5 5943 ;; 5944 esac 5945fi 5946 5947if test -n "$APXS" && test "$APXS" != "no"; then 5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Apache version is compatible with APR version" >&5 5949$as_echo_n "checking whether Apache version is compatible with APR version... " >&6; } 5950 apr_major_version="${apr_version%%.*}" 5951 case "$apr_major_version" in 5952 0) 5953 apache_minor_version_wanted_regex="0" 5954 ;; 5955 1) 5956 apache_minor_version_wanted_regex="[1-5]" 5957 ;; 5958 2) 5959 apache_minor_version_wanted_regex="[3-5]" 5960 ;; 5961 *) 5962 as_fn_error $? "unknown APR version" "$LINENO" 5 5963 ;; 5964 esac 5965 case $HTTPD_MINOR in 5966 $apache_minor_version_wanted_regex) 5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5968$as_echo "yes" >&6; } 5969 ;; 5970 *) 5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5972$as_echo "no" >&6; } 5973 as_fn_error $? "Apache version $HTTPD_VERSION incompatible with APR version $apr_version" "$LINENO" 5 5974 ;; 5975 esac 5976fi 5977 5978 5979# Check whether --with-apache-libexecdir was given. 5980if test "${with_apache_libexecdir+set}" = set; then : 5981 withval=$with_apache_libexecdir; APACHE_LIBEXECDIR="$withval" 5982else 5983 APACHE_LIBEXECDIR='no' 5984fi 5985 5986 5987INSTALL_APACHE_MODS=false 5988if test -n "$APXS" && test "$APXS" != "no"; then 5989 APXS_CC="`$APXS -q CC`" 5990 APACHE_INCLUDES="$APACHE_INCLUDES -I$APXS_INCLUDE" 5991 5992 if test "$APACHE_LIBEXECDIR" = 'no'; then 5993 APACHE_LIBEXECDIR="$libexecdir" 5994 elif test "$APACHE_LIBEXECDIR" = 'yes'; then 5995 APACHE_LIBEXECDIR="`$APXS -q libexecdir`" 5996 fi 5997 5998 for ac_header in unistd.h 5999do : 6000 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 6001if test "x$ac_cv_header_unistd_h" = xyes; then : 6002 cat >>confdefs.h <<_ACEOF 6003#define HAVE_UNISTD_H 1 6004_ACEOF 6005 for ac_func in getpid 6006do : 6007 ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid" 6008if test "x$ac_cv_func_getpid" = xyes; then : 6009 cat >>confdefs.h <<_ACEOF 6010#define HAVE_GETPID 1 6011_ACEOF 6012 6013fi 6014done 6015 6016fi 6017 6018done 6019 6020 6021 MMN_MAJOR=`$SED -ne '/^#define MODULE_MAGIC_NUMBER_MAJOR/p' "$APXS_INCLUDE/ap_mmn.h" | $SED -e 's/^.*MAJOR *//'` 6022 MMN_MINOR=`$SED -ne '/^#define MODULE_MAGIC_NUMBER_MINOR/p' "$APXS_INCLUDE/ap_mmn.h" | $SED -e 's/^.*MINOR *//' | $SED -e 's/ .*//'` 6023 if test "$MMN_MAJOR" = "20120211" && test "$MMN_MINOR" -lt "47" ; then 6024 # This is httpd 2.4 and it doesn't appear to have the required 6025 # API but the installation may have been patched. 6026 # Check whether --enable-broken-httpd-auth was given. 6027if test "${enable_broken_httpd_auth+set}" = set; then : 6028 enableval=$enable_broken_httpd_auth; broken_httpd_auth=$enableval 6029else 6030 broken_httpd_auth=no 6031fi 6032 6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ap_some_authn_required" >&5 6034$as_echo_n "checking for ap_some_authn_required... " >&6; } 6035 old_CPPFLAGS="$CPPFLAGS" 6036 CPPFLAGS="$CPPFLAGS $APACHE_INCLUDES $SVN_APR_INCLUDES" 6037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6038/* end confdefs.h. */ 6039#include "http_request.h" 6040_ACEOF 6041if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6042 $EGREP "int.*\sap_some_authn_required\s*\(" >/dev/null 2>&1; then : 6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6044$as_echo "yes" >&6; } 6045 working_auth=yes 6046else 6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6048$as_echo "no" >&6; } 6049fi 6050rm -f conftest* 6051 6052 CPPFLAGS="$old_CPPFLAGS" 6053 if test "$working_auth" = "yes" ; then 6054 6055$as_echo "#define SVN_USE_FORCE_AUTHN 1" >>confdefs.h 6056 6057 elif test "$enable_broken_httpd_auth" = "yes"; then 6058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ==============================================" >&5 6059$as_echo "$as_me: WARNING: ==============================================" >&2;} 6060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache httpd $HTTPD_VERSION MMN $MMN_MAJOR.$MMN_MINOR" >&5 6061$as_echo "$as_me: WARNING: Apache httpd $HTTPD_VERSION MMN $MMN_MAJOR.$MMN_MINOR" >&2;} 6062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion will be vulnerable to CVE-2015-3184" >&5 6063$as_echo "$as_me: WARNING: Subversion will be vulnerable to CVE-2015-3184" >&2;} 6064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ==============================================" >&5 6065$as_echo "$as_me: WARNING: ==============================================" >&2;} 6066 6067$as_echo "#define SVN_ALLOW_BROKEN_HTTPD_AUTH 1" >>confdefs.h 6068 6069 else 6070 as_fn_error $? "Apache httpd $HTTPD_VERSION MMN $MMN_MAJOR.$MMN_MINOR has broken auth (CVE-2015-3184)" "$LINENO" 5 6071 fi 6072 fi 6073 6074 BUILD_APACHE_RULE=apache-mod 6075 INSTALL_APACHE_RULE=install-mods-shared 6076 INSTALL_APACHE_MODS=true 6077 case $host in 6078 *-*-cygwin*) 6079 APACHE_LDFLAGS="-shrext .so" 6080 ;; 6081 esac 6082elif test x"$APXS" != x"no"; then 6083 echo "==================================================================" 6084 echo "WARNING: skipping the build of mod_dav_svn" 6085 echo " try using --with-apxs" 6086 echo "==================================================================" 6087fi 6088 6089 6090 6091 6092 6093 6094 6095 6096# there aren't any flags that interest us ... 6097#if test -n "$APXS" && test "$APXS" != "no"; then 6098# CFLAGS="$CFLAGS `$APXS -q CFLAGS CFLAGS_SHLIB`" 6099#fi 6100 6101if test -n "$APXS_CC" && test "$APXS_CC" != "$CC" ; then 6102 echo "==================================================================" 6103 echo "WARNING: You have chosen to compile Subversion with a different" 6104 echo " compiler than the one used to compile Apache." 6105 echo "" 6106 echo " Current compiler: $CC" 6107 echo " Apache's compiler: $APXS_CC" 6108 echo "" 6109 echo "This could cause some problems." 6110 echo "==================================================================" 6111fi 6112 6113 6114 6115SQLITE_MINIMUM_VER="3.8.2" 6116SQLITE_RECOMMENDED_VER="3.8.11.1" 6117SQLITE_RECOMMENDED_VER_REL_YEAR="2015" 6118SQLITE_URL="https://www.sqlite.org/$SQLITE_RECOMMENDED_VER_REL_YEAR/sqlite-amalgamation-$(printf %d%02d%02d%02d $(echo ${SQLITE_RECOMMENDED_VER} | sed -e 's/\./ /g')).zip" 6119 6120 6121 SQLITE_MINIMUM_VER="${SQLITE_MINIMUM_VER}" 6122 SQLITE_RECOMMENDED_VER="${SQLITE_RECOMMENDED_VER}" 6123 SQLITE_URL="${SQLITE_URL}" 6124 SQLITE_PKGNAME="sqlite3" 6125 6126 6127 6128 version_string="$SQLITE_MINIMUM_VER" 6129 6130 major=`expr $version_string : '\([0-9]*\)'` 6131 minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'` 6132 micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 6133 if test -z "$micro"; then 6134 micro=0 6135 fi 6136 sqlite_min_ver_num=`expr $major \* 1000000 \ 6137 \+ $minor \* 1000 \ 6138 \+ $micro` 6139 6140 6141 6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library" >&5 6143$as_echo "$as_me: checking sqlite library" >&6;} 6144 6145 6146# Check whether --with-sqlite was given. 6147if test "${with_sqlite+set}" = set; then : 6148 withval=$with_sqlite; 6149 if test "$withval" = "yes" ; then 6150 as_fn_error $? "--with-sqlite requires an argument." "$LINENO" 5 6151 else 6152 sqlite_dir="$withval" 6153 fi 6154 6155 if test -d $sqlite_dir; then 6156 6157 if test -z "$sqlite_dir"; then 6158 sqlite_dir="" 6159 sqlite_include="sqlite3.h" 6160 else 6161 sqlite_dir="$sqlite_dir" 6162 sqlite_include="$sqlite_dir/include/sqlite3.h" 6163 fi 6164 6165 save_CPPFLAGS="$CPPFLAGS" 6166 save_LDFLAGS="$LDFLAGS" 6167 6168 if test ! -z "$sqlite_dir"; then 6169 CPPFLAGS="$CPPFLAGS -I$sqlite_dir/include" 6170 LDFLAGS="$LDFLAGS -L$sqlite_dir/lib" 6171 fi 6172 6173 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default" 6174if test "x$ac_cv_header_sqlite3_h" = xyes; then : 6175 6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via header)" >&5 6177$as_echo_n "checking sqlite library version (via header)... " >&6; } 6178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6179/* end confdefs.h. */ 6180 6181#include "$sqlite_include" 6182#if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num 6183SQLITE_VERSION_OKAY 6184#endif 6185_ACEOF 6186if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6187 $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then : 6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5 6189$as_echo "okay" >&6; } 6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5 6191$as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; } 6192if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then : 6193 $as_echo_n "(cached) " >&6 6194else 6195 ac_check_lib_save_LIBS=$LIBS 6196LIBS="-lsqlite3 $LIBS" 6197cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6198/* end confdefs.h. */ 6199 6200/* Override any GCC internal prototype to avoid an error. 6201 Use char because int might match the return type of a GCC 6202 builtin and then its argument prototype would still apply. */ 6203#ifdef __cplusplus 6204extern "C" 6205#endif 6206char sqlite3_close (); 6207int 6208main () 6209{ 6210return sqlite3_close (); 6211 ; 6212 return 0; 6213} 6214_ACEOF 6215if ac_fn_c_try_link "$LINENO"; then : 6216 ac_cv_lib_sqlite3_sqlite3_close=yes 6217else 6218 ac_cv_lib_sqlite3_sqlite3_close=no 6219fi 6220rm -f core conftest.err conftest.$ac_objext \ 6221 conftest$ac_exeext conftest.$ac_ext 6222LIBS=$ac_check_lib_save_LIBS 6223fi 6224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5 6225$as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; } 6226if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then : 6227 6228 svn_lib_sqlite="yes" 6229 if test -z "$sqlite_dir" -o ! -d "$sqlite_dir"; then 6230 SVN_SQLITE_LIBS="-lsqlite3" 6231 else 6232 SVN_SQLITE_INCLUDES="-I$sqlite_dir/include" 6233 SVN_SQLITE_LIBS="` 6234 input_flags="-L$sqlite_dir/lib -lsqlite3" 6235 output_flags="" 6236 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 6237 for flag in $input_flags; do 6238 filter="no" 6239 for dir in $filtered_dirs; do 6240 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 6241 filter="yes" 6242 break 6243 fi 6244 done 6245 if test "$filter" = "no"; then 6246 output_flags="$output_flags $flag" 6247 fi 6248 done 6249 if test -n "$output_flags"; then 6250 printf "%s" "${output_flags# }" 6251 fi 6252`" 6253 fi 6254 6255fi 6256 6257else 6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported SQLite version" >&5 6259$as_echo "unsupported SQLite version" >&6; } 6260fi 6261rm -f conftest* 6262 6263 6264fi 6265 6266 6267 6268 CPPFLAGS="$save_CPPFLAGS" 6269 LDFLAGS="$save_LDFLAGS" 6270 6271 else 6272 6273 sqlite_amalg="$sqlite_dir" 6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5 6275$as_echo_n "checking sqlite amalgamation... " >&6; } 6276 if test ! -e $sqlite_amalg; then 6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6278$as_echo "no" >&6; } 6279 else 6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6281$as_echo "yes" >&6; } 6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5 6283$as_echo_n "checking sqlite amalgamation file version... " >&6; } 6284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6285/* end confdefs.h. */ 6286 6287#include "$sqlite_amalg" 6288#if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num 6289SQLITE_VERSION_OKAY 6290#endif 6291_ACEOF 6292if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6293 $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then : 6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5 6295$as_echo "amalgamation found and is okay" >&6; } 6296 6297 case $host_os in 6298 beos* | mingw* | pw32* | cegcc* | cygwin*) 6299 svn_sqlite_dso_ldflags= 6300 ;; 6301 6302 darwin*) 6303 # if libdl is installed we need to link against it 6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 6305$as_echo_n "checking for dlopen in -ldl... " >&6; } 6306if ${ac_cv_lib_dl_dlopen+:} false; then : 6307 $as_echo_n "(cached) " >&6 6308else 6309 ac_check_lib_save_LIBS=$LIBS 6310LIBS="-ldl $LIBS" 6311cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6312/* end confdefs.h. */ 6313 6314/* Override any GCC internal prototype to avoid an error. 6315 Use char because int might match the return type of a GCC 6316 builtin and then its argument prototype would still apply. */ 6317#ifdef __cplusplus 6318extern "C" 6319#endif 6320char dlopen (); 6321int 6322main () 6323{ 6324return dlopen (); 6325 ; 6326 return 0; 6327} 6328_ACEOF 6329if ac_fn_c_try_link "$LINENO"; then : 6330 ac_cv_lib_dl_dlopen=yes 6331else 6332 ac_cv_lib_dl_dlopen=no 6333fi 6334rm -f core conftest.err conftest.$ac_objext \ 6335 conftest$ac_exeext conftest.$ac_ext 6336LIBS=$ac_check_lib_save_LIBS 6337fi 6338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 6339$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 6340if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 6341 lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl" 6342else 6343 6344 svn_sqlite_dso_ldflags= 6345 6346fi 6347 6348 ;; 6349 6350 *) 6351 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 6352if test "x$ac_cv_func_shl_load" = xyes; then : 6353 svn_sqlite_dso_ldflags= 6354else 6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 6356$as_echo_n "checking for shl_load in -ldld... " >&6; } 6357if ${ac_cv_lib_dld_shl_load+:} false; then : 6358 $as_echo_n "(cached) " >&6 6359else 6360 ac_check_lib_save_LIBS=$LIBS 6361LIBS="-ldld $LIBS" 6362cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6363/* end confdefs.h. */ 6364 6365/* Override any GCC internal prototype to avoid an error. 6366 Use char because int might match the return type of a GCC 6367 builtin and then its argument prototype would still apply. */ 6368#ifdef __cplusplus 6369extern "C" 6370#endif 6371char shl_load (); 6372int 6373main () 6374{ 6375return shl_load (); 6376 ; 6377 return 0; 6378} 6379_ACEOF 6380if ac_fn_c_try_link "$LINENO"; then : 6381 ac_cv_lib_dld_shl_load=yes 6382else 6383 ac_cv_lib_dld_shl_load=no 6384fi 6385rm -f core conftest.err conftest.$ac_objext \ 6386 conftest$ac_exeext conftest.$ac_ext 6387LIBS=$ac_check_lib_save_LIBS 6388fi 6389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 6390$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 6391if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 6392 svn_sqlite_dso_ldflags="-ldld" 6393else 6394 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 6395if test "x$ac_cv_func_dlopen" = xyes; then : 6396 svn_sqlite_dso_ldflags= 6397else 6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 6399$as_echo_n "checking for dlopen in -ldl... " >&6; } 6400if ${ac_cv_lib_dl_dlopen+:} false; then : 6401 $as_echo_n "(cached) " >&6 6402else 6403 ac_check_lib_save_LIBS=$LIBS 6404LIBS="-ldl $LIBS" 6405cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6406/* end confdefs.h. */ 6407 6408/* Override any GCC internal prototype to avoid an error. 6409 Use char because int might match the return type of a GCC 6410 builtin and then its argument prototype would still apply. */ 6411#ifdef __cplusplus 6412extern "C" 6413#endif 6414char dlopen (); 6415int 6416main () 6417{ 6418return dlopen (); 6419 ; 6420 return 0; 6421} 6422_ACEOF 6423if ac_fn_c_try_link "$LINENO"; then : 6424 ac_cv_lib_dl_dlopen=yes 6425else 6426 ac_cv_lib_dl_dlopen=no 6427fi 6428rm -f core conftest.err conftest.$ac_objext \ 6429 conftest$ac_exeext conftest.$ac_ext 6430LIBS=$ac_check_lib_save_LIBS 6431fi 6432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 6433$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 6434if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 6435 svn_sqlite_dso_ldflags="-ldl" 6436else 6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 6438$as_echo_n "checking for dlopen in -lsvld... " >&6; } 6439if ${ac_cv_lib_svld_dlopen+:} false; then : 6440 $as_echo_n "(cached) " >&6 6441else 6442 ac_check_lib_save_LIBS=$LIBS 6443LIBS="-lsvld $LIBS" 6444cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6445/* end confdefs.h. */ 6446 6447/* Override any GCC internal prototype to avoid an error. 6448 Use char because int might match the return type of a GCC 6449 builtin and then its argument prototype would still apply. */ 6450#ifdef __cplusplus 6451extern "C" 6452#endif 6453char dlopen (); 6454int 6455main () 6456{ 6457return dlopen (); 6458 ; 6459 return 0; 6460} 6461_ACEOF 6462if ac_fn_c_try_link "$LINENO"; then : 6463 ac_cv_lib_svld_dlopen=yes 6464else 6465 ac_cv_lib_svld_dlopen=no 6466fi 6467rm -f core conftest.err conftest.$ac_objext \ 6468 conftest$ac_exeext conftest.$ac_ext 6469LIBS=$ac_check_lib_save_LIBS 6470fi 6471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 6472$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 6473if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 6474 svn_sqlite_dso_ldflags="-lsvld" 6475else 6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 6477$as_echo_n "checking for dld_link in -ldld... " >&6; } 6478if ${ac_cv_lib_dld_dld_link+:} false; then : 6479 $as_echo_n "(cached) " >&6 6480else 6481 ac_check_lib_save_LIBS=$LIBS 6482LIBS="-ldld $LIBS" 6483cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6484/* end confdefs.h. */ 6485 6486/* Override any GCC internal prototype to avoid an error. 6487 Use char because int might match the return type of a GCC 6488 builtin and then its argument prototype would still apply. */ 6489#ifdef __cplusplus 6490extern "C" 6491#endif 6492char dld_link (); 6493int 6494main () 6495{ 6496return dld_link (); 6497 ; 6498 return 0; 6499} 6500_ACEOF 6501if ac_fn_c_try_link "$LINENO"; then : 6502 ac_cv_lib_dld_dld_link=yes 6503else 6504 ac_cv_lib_dld_dld_link=no 6505fi 6506rm -f core conftest.err conftest.$ac_objext \ 6507 conftest$ac_exeext conftest.$ac_ext 6508LIBS=$ac_check_lib_save_LIBS 6509fi 6510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 6511$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 6512if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 6513 svn_sqlite_dso_ldflags="-ldld" 6514fi 6515 6516 6517fi 6518 6519 6520fi 6521 6522 6523fi 6524 6525 6526fi 6527 6528 6529fi 6530 6531 ;; 6532 esac 6533 6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5 6535$as_echo_n "checking additional libraries for sqlite... " >&6; } 6536 if test -n "$svn_sqlite_dso_ldflags"; then 6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5 6538$as_echo "${svn_sqlite_dso_ldflags}" >&6; } 6539 else 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6541$as_echo "none" >&6; } 6542 fi 6543 6544 6545$as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h 6546 6547 SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`" 6548 if test -n "$svn_sqlite_dso_ldflags"; then 6549 SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread" 6550 else 6551 SVN_SQLITE_LIBS="-lpthread" 6552 fi 6553 svn_lib_sqlite="yes" 6554else 6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5 6556$as_echo "unsupported amalgamation SQLite version" >&6; } 6557fi 6558rm -f conftest* 6559 6560 fi 6561 6562 fi 6563 6564 if test -z "$svn_lib_sqlite"; then 6565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable sqlite found in $sqlite_dir" >&5 6566$as_echo "$as_me: WARNING: no suitable sqlite found in $sqlite_dir" >&2;} 6567 6568 echo "" 6569 echo "An appropriate version of sqlite could not be found. We recommmend" 6570 echo "${SQLITE_RECOMMENDED_VER}, but require at least ${SQLITE_MINIMUM_VER}." 6571 echo "Please either install a newer sqlite on this system" 6572 echo "" 6573 echo "or" 6574 echo "" 6575 echo "get the sqlite ${SQLITE_RECOMMENDED_VER} amalgamation from:" 6576 echo " ${SQLITE_URL}" 6577 echo "unpack the archive using unzip and rename the resulting" 6578 echo "directory to:" 6579 echo "$abs_srcdir/sqlite-amalgamation" 6580 if test x"$abs_srcdir" != x"$abs_builddir"; then 6581 echo "or to:" 6582 echo "$abs_builddir/sqlite-amalgamation" 6583 fi 6584 echo "" 6585 as_fn_error $? "Subversion requires SQLite" "$LINENO" 5 6586 6587 fi 6588 6589else 6590 6591 6592 sqlite_amalg="$abs_srcdir/sqlite-amalgamation/sqlite3.c" 6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5 6594$as_echo_n "checking sqlite amalgamation... " >&6; } 6595 if test ! -e $sqlite_amalg; then 6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6597$as_echo "no" >&6; } 6598 else 6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6600$as_echo "yes" >&6; } 6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5 6602$as_echo_n "checking sqlite amalgamation file version... " >&6; } 6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6604/* end confdefs.h. */ 6605 6606#include "$sqlite_amalg" 6607#if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num 6608SQLITE_VERSION_OKAY 6609#endif 6610_ACEOF 6611if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6612 $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then : 6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5 6614$as_echo "amalgamation found and is okay" >&6; } 6615 6616 case $host_os in 6617 beos* | mingw* | pw32* | cegcc* | cygwin*) 6618 svn_sqlite_dso_ldflags= 6619 ;; 6620 6621 darwin*) 6622 # if libdl is installed we need to link against it 6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 6624$as_echo_n "checking for dlopen in -ldl... " >&6; } 6625if ${ac_cv_lib_dl_dlopen+:} false; then : 6626 $as_echo_n "(cached) " >&6 6627else 6628 ac_check_lib_save_LIBS=$LIBS 6629LIBS="-ldl $LIBS" 6630cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6631/* end confdefs.h. */ 6632 6633/* Override any GCC internal prototype to avoid an error. 6634 Use char because int might match the return type of a GCC 6635 builtin and then its argument prototype would still apply. */ 6636#ifdef __cplusplus 6637extern "C" 6638#endif 6639char dlopen (); 6640int 6641main () 6642{ 6643return dlopen (); 6644 ; 6645 return 0; 6646} 6647_ACEOF 6648if ac_fn_c_try_link "$LINENO"; then : 6649 ac_cv_lib_dl_dlopen=yes 6650else 6651 ac_cv_lib_dl_dlopen=no 6652fi 6653rm -f core conftest.err conftest.$ac_objext \ 6654 conftest$ac_exeext conftest.$ac_ext 6655LIBS=$ac_check_lib_save_LIBS 6656fi 6657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 6658$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 6659if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 6660 lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl" 6661else 6662 6663 svn_sqlite_dso_ldflags= 6664 6665fi 6666 6667 ;; 6668 6669 *) 6670 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 6671if test "x$ac_cv_func_shl_load" = xyes; then : 6672 svn_sqlite_dso_ldflags= 6673else 6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 6675$as_echo_n "checking for shl_load in -ldld... " >&6; } 6676if ${ac_cv_lib_dld_shl_load+:} false; then : 6677 $as_echo_n "(cached) " >&6 6678else 6679 ac_check_lib_save_LIBS=$LIBS 6680LIBS="-ldld $LIBS" 6681cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6682/* end confdefs.h. */ 6683 6684/* Override any GCC internal prototype to avoid an error. 6685 Use char because int might match the return type of a GCC 6686 builtin and then its argument prototype would still apply. */ 6687#ifdef __cplusplus 6688extern "C" 6689#endif 6690char shl_load (); 6691int 6692main () 6693{ 6694return shl_load (); 6695 ; 6696 return 0; 6697} 6698_ACEOF 6699if ac_fn_c_try_link "$LINENO"; then : 6700 ac_cv_lib_dld_shl_load=yes 6701else 6702 ac_cv_lib_dld_shl_load=no 6703fi 6704rm -f core conftest.err conftest.$ac_objext \ 6705 conftest$ac_exeext conftest.$ac_ext 6706LIBS=$ac_check_lib_save_LIBS 6707fi 6708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 6709$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 6710if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 6711 svn_sqlite_dso_ldflags="-ldld" 6712else 6713 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 6714if test "x$ac_cv_func_dlopen" = xyes; then : 6715 svn_sqlite_dso_ldflags= 6716else 6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 6718$as_echo_n "checking for dlopen in -ldl... " >&6; } 6719if ${ac_cv_lib_dl_dlopen+:} false; then : 6720 $as_echo_n "(cached) " >&6 6721else 6722 ac_check_lib_save_LIBS=$LIBS 6723LIBS="-ldl $LIBS" 6724cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6725/* end confdefs.h. */ 6726 6727/* Override any GCC internal prototype to avoid an error. 6728 Use char because int might match the return type of a GCC 6729 builtin and then its argument prototype would still apply. */ 6730#ifdef __cplusplus 6731extern "C" 6732#endif 6733char dlopen (); 6734int 6735main () 6736{ 6737return dlopen (); 6738 ; 6739 return 0; 6740} 6741_ACEOF 6742if ac_fn_c_try_link "$LINENO"; then : 6743 ac_cv_lib_dl_dlopen=yes 6744else 6745 ac_cv_lib_dl_dlopen=no 6746fi 6747rm -f core conftest.err conftest.$ac_objext \ 6748 conftest$ac_exeext conftest.$ac_ext 6749LIBS=$ac_check_lib_save_LIBS 6750fi 6751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 6752$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 6753if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 6754 svn_sqlite_dso_ldflags="-ldl" 6755else 6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 6757$as_echo_n "checking for dlopen in -lsvld... " >&6; } 6758if ${ac_cv_lib_svld_dlopen+:} false; then : 6759 $as_echo_n "(cached) " >&6 6760else 6761 ac_check_lib_save_LIBS=$LIBS 6762LIBS="-lsvld $LIBS" 6763cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6764/* end confdefs.h. */ 6765 6766/* Override any GCC internal prototype to avoid an error. 6767 Use char because int might match the return type of a GCC 6768 builtin and then its argument prototype would still apply. */ 6769#ifdef __cplusplus 6770extern "C" 6771#endif 6772char dlopen (); 6773int 6774main () 6775{ 6776return dlopen (); 6777 ; 6778 return 0; 6779} 6780_ACEOF 6781if ac_fn_c_try_link "$LINENO"; then : 6782 ac_cv_lib_svld_dlopen=yes 6783else 6784 ac_cv_lib_svld_dlopen=no 6785fi 6786rm -f core conftest.err conftest.$ac_objext \ 6787 conftest$ac_exeext conftest.$ac_ext 6788LIBS=$ac_check_lib_save_LIBS 6789fi 6790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 6791$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 6792if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 6793 svn_sqlite_dso_ldflags="-lsvld" 6794else 6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 6796$as_echo_n "checking for dld_link in -ldld... " >&6; } 6797if ${ac_cv_lib_dld_dld_link+:} false; then : 6798 $as_echo_n "(cached) " >&6 6799else 6800 ac_check_lib_save_LIBS=$LIBS 6801LIBS="-ldld $LIBS" 6802cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6803/* end confdefs.h. */ 6804 6805/* Override any GCC internal prototype to avoid an error. 6806 Use char because int might match the return type of a GCC 6807 builtin and then its argument prototype would still apply. */ 6808#ifdef __cplusplus 6809extern "C" 6810#endif 6811char dld_link (); 6812int 6813main () 6814{ 6815return dld_link (); 6816 ; 6817 return 0; 6818} 6819_ACEOF 6820if ac_fn_c_try_link "$LINENO"; then : 6821 ac_cv_lib_dld_dld_link=yes 6822else 6823 ac_cv_lib_dld_dld_link=no 6824fi 6825rm -f core conftest.err conftest.$ac_objext \ 6826 conftest$ac_exeext conftest.$ac_ext 6827LIBS=$ac_check_lib_save_LIBS 6828fi 6829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 6830$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 6831if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 6832 svn_sqlite_dso_ldflags="-ldld" 6833fi 6834 6835 6836fi 6837 6838 6839fi 6840 6841 6842fi 6843 6844 6845fi 6846 6847 6848fi 6849 6850 ;; 6851 esac 6852 6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5 6854$as_echo_n "checking additional libraries for sqlite... " >&6; } 6855 if test -n "$svn_sqlite_dso_ldflags"; then 6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5 6857$as_echo "${svn_sqlite_dso_ldflags}" >&6; } 6858 else 6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6860$as_echo "none" >&6; } 6861 fi 6862 6863 6864$as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h 6865 6866 SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`" 6867 if test -n "$svn_sqlite_dso_ldflags"; then 6868 SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread" 6869 else 6870 SVN_SQLITE_LIBS="-lpthread" 6871 fi 6872 svn_lib_sqlite="yes" 6873else 6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5 6875$as_echo "unsupported amalgamation SQLite version" >&6; } 6876fi 6877rm -f conftest* 6878 6879 fi 6880 6881 6882 if test -z "$svn_lib_sqlite"; then 6883 6884 sqlite_amalg="$abs_builddir/sqlite-amalgamation/sqlite3.c" 6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5 6886$as_echo_n "checking sqlite amalgamation... " >&6; } 6887 if test ! -e $sqlite_amalg; then 6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6889$as_echo "no" >&6; } 6890 else 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6892$as_echo "yes" >&6; } 6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5 6894$as_echo_n "checking sqlite amalgamation file version... " >&6; } 6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6896/* end confdefs.h. */ 6897 6898#include "$sqlite_amalg" 6899#if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num 6900SQLITE_VERSION_OKAY 6901#endif 6902_ACEOF 6903if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6904 $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then : 6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5 6906$as_echo "amalgamation found and is okay" >&6; } 6907 6908 case $host_os in 6909 beos* | mingw* | pw32* | cegcc* | cygwin*) 6910 svn_sqlite_dso_ldflags= 6911 ;; 6912 6913 darwin*) 6914 # if libdl is installed we need to link against it 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 6916$as_echo_n "checking for dlopen in -ldl... " >&6; } 6917if ${ac_cv_lib_dl_dlopen+:} false; then : 6918 $as_echo_n "(cached) " >&6 6919else 6920 ac_check_lib_save_LIBS=$LIBS 6921LIBS="-ldl $LIBS" 6922cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6923/* end confdefs.h. */ 6924 6925/* Override any GCC internal prototype to avoid an error. 6926 Use char because int might match the return type of a GCC 6927 builtin and then its argument prototype would still apply. */ 6928#ifdef __cplusplus 6929extern "C" 6930#endif 6931char dlopen (); 6932int 6933main () 6934{ 6935return dlopen (); 6936 ; 6937 return 0; 6938} 6939_ACEOF 6940if ac_fn_c_try_link "$LINENO"; then : 6941 ac_cv_lib_dl_dlopen=yes 6942else 6943 ac_cv_lib_dl_dlopen=no 6944fi 6945rm -f core conftest.err conftest.$ac_objext \ 6946 conftest$ac_exeext conftest.$ac_ext 6947LIBS=$ac_check_lib_save_LIBS 6948fi 6949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 6950$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 6951if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 6952 lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl" 6953else 6954 6955 svn_sqlite_dso_ldflags= 6956 6957fi 6958 6959 ;; 6960 6961 *) 6962 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 6963if test "x$ac_cv_func_shl_load" = xyes; then : 6964 svn_sqlite_dso_ldflags= 6965else 6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 6967$as_echo_n "checking for shl_load in -ldld... " >&6; } 6968if ${ac_cv_lib_dld_shl_load+:} false; then : 6969 $as_echo_n "(cached) " >&6 6970else 6971 ac_check_lib_save_LIBS=$LIBS 6972LIBS="-ldld $LIBS" 6973cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6974/* end confdefs.h. */ 6975 6976/* Override any GCC internal prototype to avoid an error. 6977 Use char because int might match the return type of a GCC 6978 builtin and then its argument prototype would still apply. */ 6979#ifdef __cplusplus 6980extern "C" 6981#endif 6982char shl_load (); 6983int 6984main () 6985{ 6986return shl_load (); 6987 ; 6988 return 0; 6989} 6990_ACEOF 6991if ac_fn_c_try_link "$LINENO"; then : 6992 ac_cv_lib_dld_shl_load=yes 6993else 6994 ac_cv_lib_dld_shl_load=no 6995fi 6996rm -f core conftest.err conftest.$ac_objext \ 6997 conftest$ac_exeext conftest.$ac_ext 6998LIBS=$ac_check_lib_save_LIBS 6999fi 7000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 7001$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 7002if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 7003 svn_sqlite_dso_ldflags="-ldld" 7004else 7005 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 7006if test "x$ac_cv_func_dlopen" = xyes; then : 7007 svn_sqlite_dso_ldflags= 7008else 7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 7010$as_echo_n "checking for dlopen in -ldl... " >&6; } 7011if ${ac_cv_lib_dl_dlopen+:} false; then : 7012 $as_echo_n "(cached) " >&6 7013else 7014 ac_check_lib_save_LIBS=$LIBS 7015LIBS="-ldl $LIBS" 7016cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7017/* end confdefs.h. */ 7018 7019/* Override any GCC internal prototype to avoid an error. 7020 Use char because int might match the return type of a GCC 7021 builtin and then its argument prototype would still apply. */ 7022#ifdef __cplusplus 7023extern "C" 7024#endif 7025char dlopen (); 7026int 7027main () 7028{ 7029return dlopen (); 7030 ; 7031 return 0; 7032} 7033_ACEOF 7034if ac_fn_c_try_link "$LINENO"; then : 7035 ac_cv_lib_dl_dlopen=yes 7036else 7037 ac_cv_lib_dl_dlopen=no 7038fi 7039rm -f core conftest.err conftest.$ac_objext \ 7040 conftest$ac_exeext conftest.$ac_ext 7041LIBS=$ac_check_lib_save_LIBS 7042fi 7043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 7044$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 7045if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 7046 svn_sqlite_dso_ldflags="-ldl" 7047else 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 7049$as_echo_n "checking for dlopen in -lsvld... " >&6; } 7050if ${ac_cv_lib_svld_dlopen+:} false; then : 7051 $as_echo_n "(cached) " >&6 7052else 7053 ac_check_lib_save_LIBS=$LIBS 7054LIBS="-lsvld $LIBS" 7055cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7056/* end confdefs.h. */ 7057 7058/* Override any GCC internal prototype to avoid an error. 7059 Use char because int might match the return type of a GCC 7060 builtin and then its argument prototype would still apply. */ 7061#ifdef __cplusplus 7062extern "C" 7063#endif 7064char dlopen (); 7065int 7066main () 7067{ 7068return dlopen (); 7069 ; 7070 return 0; 7071} 7072_ACEOF 7073if ac_fn_c_try_link "$LINENO"; then : 7074 ac_cv_lib_svld_dlopen=yes 7075else 7076 ac_cv_lib_svld_dlopen=no 7077fi 7078rm -f core conftest.err conftest.$ac_objext \ 7079 conftest$ac_exeext conftest.$ac_ext 7080LIBS=$ac_check_lib_save_LIBS 7081fi 7082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 7083$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 7084if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 7085 svn_sqlite_dso_ldflags="-lsvld" 7086else 7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 7088$as_echo_n "checking for dld_link in -ldld... " >&6; } 7089if ${ac_cv_lib_dld_dld_link+:} false; then : 7090 $as_echo_n "(cached) " >&6 7091else 7092 ac_check_lib_save_LIBS=$LIBS 7093LIBS="-ldld $LIBS" 7094cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7095/* end confdefs.h. */ 7096 7097/* Override any GCC internal prototype to avoid an error. 7098 Use char because int might match the return type of a GCC 7099 builtin and then its argument prototype would still apply. */ 7100#ifdef __cplusplus 7101extern "C" 7102#endif 7103char dld_link (); 7104int 7105main () 7106{ 7107return dld_link (); 7108 ; 7109 return 0; 7110} 7111_ACEOF 7112if ac_fn_c_try_link "$LINENO"; then : 7113 ac_cv_lib_dld_dld_link=yes 7114else 7115 ac_cv_lib_dld_dld_link=no 7116fi 7117rm -f core conftest.err conftest.$ac_objext \ 7118 conftest$ac_exeext conftest.$ac_ext 7119LIBS=$ac_check_lib_save_LIBS 7120fi 7121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 7122$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 7123if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 7124 svn_sqlite_dso_ldflags="-ldld" 7125fi 7126 7127 7128fi 7129 7130 7131fi 7132 7133 7134fi 7135 7136 7137fi 7138 7139 7140fi 7141 7142 ;; 7143 esac 7144 7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5 7146$as_echo_n "checking additional libraries for sqlite... " >&6; } 7147 if test -n "$svn_sqlite_dso_ldflags"; then 7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5 7149$as_echo "${svn_sqlite_dso_ldflags}" >&6; } 7150 else 7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7152$as_echo "none" >&6; } 7153 fi 7154 7155 7156$as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h 7157 7158 SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`" 7159 if test -n "$svn_sqlite_dso_ldflags"; then 7160 SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread" 7161 else 7162 SVN_SQLITE_LIBS="-lpthread" 7163 fi 7164 svn_lib_sqlite="yes" 7165else 7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5 7167$as_echo "unsupported amalgamation SQLite version" >&6; } 7168fi 7169rm -f conftest* 7170 7171 fi 7172 7173 fi 7174 7175 if test -z "$svn_lib_sqlite"; then 7176 7177 if test -z ""; then 7178 sqlite_dir="" 7179 sqlite_include="sqlite3.h" 7180 else 7181 sqlite_dir="" 7182 sqlite_include="/include/sqlite3.h" 7183 fi 7184 7185 save_CPPFLAGS="$CPPFLAGS" 7186 save_LDFLAGS="$LDFLAGS" 7187 7188 if test ! -z ""; then 7189 CPPFLAGS="$CPPFLAGS -I$sqlite_dir/include" 7190 LDFLAGS="$LDFLAGS -L$sqlite_dir/lib" 7191 fi 7192 7193 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default" 7194if test "x$ac_cv_header_sqlite3_h" = xyes; then : 7195 7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via header)" >&5 7197$as_echo_n "checking sqlite library version (via header)... " >&6; } 7198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7199/* end confdefs.h. */ 7200 7201#include "$sqlite_include" 7202#if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num 7203SQLITE_VERSION_OKAY 7204#endif 7205_ACEOF 7206if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7207 $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then : 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5 7209$as_echo "okay" >&6; } 7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5 7211$as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; } 7212if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then : 7213 $as_echo_n "(cached) " >&6 7214else 7215 ac_check_lib_save_LIBS=$LIBS 7216LIBS="-lsqlite3 $LIBS" 7217cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7218/* end confdefs.h. */ 7219 7220/* Override any GCC internal prototype to avoid an error. 7221 Use char because int might match the return type of a GCC 7222 builtin and then its argument prototype would still apply. */ 7223#ifdef __cplusplus 7224extern "C" 7225#endif 7226char sqlite3_close (); 7227int 7228main () 7229{ 7230return sqlite3_close (); 7231 ; 7232 return 0; 7233} 7234_ACEOF 7235if ac_fn_c_try_link "$LINENO"; then : 7236 ac_cv_lib_sqlite3_sqlite3_close=yes 7237else 7238 ac_cv_lib_sqlite3_sqlite3_close=no 7239fi 7240rm -f core conftest.err conftest.$ac_objext \ 7241 conftest$ac_exeext conftest.$ac_ext 7242LIBS=$ac_check_lib_save_LIBS 7243fi 7244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5 7245$as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; } 7246if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then : 7247 7248 svn_lib_sqlite="yes" 7249 if test -z "$sqlite_dir" -o ! -d "$sqlite_dir"; then 7250 SVN_SQLITE_LIBS="-lsqlite3" 7251 else 7252 SVN_SQLITE_INCLUDES="-I$sqlite_dir/include" 7253 SVN_SQLITE_LIBS="` 7254 input_flags="-L$sqlite_dir/lib -lsqlite3" 7255 output_flags="" 7256 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 7257 for flag in $input_flags; do 7258 filter="no" 7259 for dir in $filtered_dirs; do 7260 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 7261 filter="yes" 7262 break 7263 fi 7264 done 7265 if test "$filter" = "no"; then 7266 output_flags="$output_flags $flag" 7267 fi 7268 done 7269 if test -n "$output_flags"; then 7270 printf "%s" "${output_flags# }" 7271 fi 7272`" 7273 fi 7274 7275fi 7276 7277else 7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported SQLite version" >&5 7279$as_echo "unsupported SQLite version" >&6; } 7280fi 7281rm -f conftest* 7282 7283 7284fi 7285 7286 7287 7288 CPPFLAGS="$save_CPPFLAGS" 7289 LDFLAGS="$save_LDFLAGS" 7290 7291 fi 7292 7293 if test -z "$svn_lib_sqlite"; then 7294 7295 if test -n "$PKG_CONFIG"; then 7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via pkg-config)" >&5 7297$as_echo_n "checking sqlite library version (via pkg-config)... " >&6; } 7298 sqlite_version=`$PKG_CONFIG $SQLITE_PKGNAME --modversion --silence-errors` 7299 7300 if test -n "$sqlite_version"; then 7301 7302 version_string="$sqlite_version" 7303 7304 major=`expr $version_string : '\([0-9]*\)'` 7305 minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'` 7306 micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 7307 if test -z "$micro"; then 7308 micro=0 7309 fi 7310 sqlite_ver_num=`expr $major \* 1000000 \ 7311 \+ $minor \* 1000 \ 7312 \+ $micro` 7313 7314 7315 if test "$sqlite_ver_num" -ge "$sqlite_min_ver_num"; then 7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sqlite_version" >&5 7317$as_echo "$sqlite_version" >&6; } 7318 svn_lib_sqlite="yes" 7319 SVN_SQLITE_INCLUDES="`$PKG_CONFIG $SQLITE_PKGNAME --cflags`" 7320 SVN_SQLITE_LIBS="`$PKG_CONFIG $SQLITE_PKGNAME --libs`" 7321 else 7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none or unsupported $sqlite_version" >&5 7323$as_echo "none or unsupported $sqlite_version" >&6; } 7324 fi 7325 fi 7326 fi 7327 7328 if test -z "$svn_lib_sqlite"; then 7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7330$as_echo "no" >&6; } 7331 fi 7332 7333 fi 7334 7335 if test -z "$svn_lib_sqlite"; then 7336 7337 echo "" 7338 echo "An appropriate version of sqlite could not be found. We recommmend" 7339 echo "${SQLITE_RECOMMENDED_VER}, but require at least ${SQLITE_MINIMUM_VER}." 7340 echo "Please either install a newer sqlite on this system" 7341 echo "" 7342 echo "or" 7343 echo "" 7344 echo "get the sqlite ${SQLITE_RECOMMENDED_VER} amalgamation from:" 7345 echo " ${SQLITE_URL}" 7346 echo "unpack the archive using unzip and rename the resulting" 7347 echo "directory to:" 7348 echo "$abs_srcdir/sqlite-amalgamation" 7349 if test x"$abs_srcdir" != x"$abs_builddir"; then 7350 echo "or to:" 7351 echo "$abs_builddir/sqlite-amalgamation" 7352 fi 7353 echo "" 7354 as_fn_error $? "Subversion requires SQLite" "$LINENO" 5 7355 7356 fi 7357 7358fi 7359 7360 7361 7362 7363 7364 7365# Check whether --enable-sqlite-compatibility-version was given. 7366if test "${enable_sqlite_compatibility_version+set}" = set; then : 7367 enableval=$enable_sqlite_compatibility_version; sqlite_compat_ver=$enableval 7368else 7369 sqlite_compat_ver=no 7370fi 7371 7372 7373if test -n "$sqlite_compat_ver" && test "$sqlite_compat_ver" != no; then 7374 7375 version_string="$sqlite_compat_ver" 7376 7377 major=`expr $version_string : '\([0-9]*\)'` 7378 minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'` 7379 micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 7380 if test -z "$micro"; then 7381 micro=0 7382 fi 7383 sqlite_compat_ver_num=`expr $major \* 1000000 \ 7384 \+ $minor \* 1000 \ 7385 \+ $micro` 7386 7387 CFLAGS="-DSVN_SQLITE_MIN_VERSION='\"$sqlite_compat_ver\"' $CFLAGS" 7388 CFLAGS="-DSVN_SQLITE_MIN_VERSION_NUMBER=$sqlite_compat_ver_num $CFLAGS" 7389fi 7390 7391 7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins" >&5 7393$as_echo_n "checking whether the compiler provides atomic builtins... " >&6; } 7394if ${svn_cv_atomic_builtins+:} false; then : 7395 $as_echo_n "(cached) " >&6 7396else 7397 if test "$cross_compiling" = yes; then : 7398 svn_cv_atomic_builtins=no 7399else 7400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7401/* end confdefs.h. */ 7402 7403 int main() 7404 { 7405 unsigned long long val = 1010, tmp, *mem = &val; 7406 7407 if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020) 7408 return 1; 7409 7410 tmp = val; 7411 7412 if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010) 7413 return 1; 7414 7415 if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0) 7416 return 1; 7417 7418 tmp = 3030; 7419 7420 if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp) 7421 return 1; 7422 7423 if (__sync_lock_test_and_set(&val, 4040) != 3030) 7424 return 1; 7425 7426 mem = &tmp; 7427 7428 if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp) 7429 return 1; 7430 7431 __sync_synchronize(); 7432 7433 if (mem != &val) 7434 return 1; 7435 7436 return 0; 7437 } 7438_ACEOF 7439if ac_fn_c_try_run "$LINENO"; then : 7440 svn_cv_atomic_builtins=yes 7441else 7442 svn_cv_atomic_builtins=no 7443fi 7444rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7445 conftest.$ac_objext conftest.beam conftest.$ac_ext 7446fi 7447 7448fi 7449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_atomic_builtins" >&5 7450$as_echo "$svn_cv_atomic_builtins" >&6; } 7451 7452if test "$svn_cv_atomic_builtins" = "yes"; then 7453 7454$as_echo "#define SVN_HAS_ATOMIC_BUILTINS 1" >>confdefs.h 7455 7456fi 7457 7458 7459if test "${bindir}" = '${exec_prefix}/bin'; then 7460 if test "${exec_prefix}" = "NONE"; then 7461 if test "${prefix}" = "NONE"; then 7462 SVN_BINDIR="${ac_default_prefix}/bin" 7463 else 7464 SVN_BINDIR="${prefix}/bin" 7465 fi 7466 else 7467 SVN_BINDIR="${exec_prefix}/bin" 7468 fi 7469else 7470 SVN_BINDIR="${bindir}" 7471fi 7472 7473SVN_BINDIR="`eval echo ${SVN_BINDIR}`" 7474 7475 7476 7477cat >>confdefs.h <<_ACEOF 7478#define SVN_BINDIR "${SVN_BINDIR}" 7479_ACEOF 7480 7481 7482localedir='${datadir}/locale' 7483 7484 7485if test "${prefix}" = "NONE" \ 7486 && ( test "${datadir}" = '${prefix}/share' \ 7487 || ( test "${datadir}" = '${datarootdir}' \ 7488 && test "${datarootdir}" = '${prefix}/share' ) ); then 7489 exp_localedir='${ac_default_prefix}/share/locale' 7490else 7491 exp_localedir=$localedir 7492fi 7493 7494svn_last= 7495svn_cur=""${exp_localedir}"" 7496while test "x${svn_cur}" != "x${svn_last}"; 7497do 7498 svn_last="${svn_cur}" 7499 svn_cur=`eval "echo ${svn_cur}"` 7500done 7501svn_localedir="${svn_cur}" 7502 7503 7504cat >>confdefs.h <<_ACEOF 7505#define SVN_LOCALE_DIR "${svn_localedir}" 7506_ACEOF 7507 7508 7509{ $as_echo "$as_me:${as_lineno-$LINENO}: configuring libtool now" >&5 7510$as_echo "$as_me: configuring libtool now" >&6;} 7511case `pwd` in 7512 *\ * | *\ *) 7513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 7514$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 7515esac 7516 7517 7518 7519macro_version='2.4.6' 7520macro_revision='2.4.6' 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534ltmain=$ac_aux_dir/ltmain.sh 7535 7536# Backslashify metacharacters that are still active within 7537# double-quoted strings. 7538sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7539 7540# Same as above, but do not quote variable references. 7541double_quote_subst='s/\(["`\\]\)/\\\1/g' 7542 7543# Sed substitution to delay expansion of an escaped shell variable in a 7544# double_quote_subst'ed string. 7545delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7546 7547# Sed substitution to delay expansion of an escaped single quote. 7548delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7549 7550# Sed substitution to avoid accidental globbing in evaled expressions 7551no_glob_subst='s/\*/\\\*/g' 7552 7553ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7554ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7555ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7556 7557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7558$as_echo_n "checking how to print strings... " >&6; } 7559# Test print first, because it will be a builtin if present. 7560if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 7561 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7562 ECHO='print -r --' 7563elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7564 ECHO='printf %s\n' 7565else 7566 # Use this function as a fallback that always works. 7567 func_fallback_echo () 7568 { 7569 eval 'cat <<_LTECHO_EOF 7570$1 7571_LTECHO_EOF' 7572 } 7573 ECHO='func_fallback_echo' 7574fi 7575 7576# func_echo_all arg... 7577# Invoke $ECHO with all args, space-separated. 7578func_echo_all () 7579{ 7580 $ECHO "" 7581} 7582 7583case $ECHO in 7584 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7585$as_echo "printf" >&6; } ;; 7586 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7587$as_echo "print -r" >&6; } ;; 7588 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7589$as_echo "cat" >&6; } ;; 7590esac 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7606$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7607if ${ac_cv_path_SED+:} false; then : 7608 $as_echo_n "(cached) " >&6 7609else 7610 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7611 for ac_i in 1 2 3 4 5 6 7; do 7612 ac_script="$ac_script$as_nl$ac_script" 7613 done 7614 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7615 { ac_script=; unset ac_script;} 7616 if test -z "$SED"; then 7617 ac_path_SED_found=false 7618 # Loop through the user's path and test for each of PROGNAME-LIST 7619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7620for as_dir in $PATH 7621do 7622 IFS=$as_save_IFS 7623 test -z "$as_dir" && as_dir=. 7624 for ac_prog in sed gsed; do 7625 for ac_exec_ext in '' $ac_executable_extensions; do 7626 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7627 as_fn_executable_p "$ac_path_SED" || continue 7628# Check for GNU ac_path_SED and select it if it is found. 7629 # Check for GNU $ac_path_SED 7630case `"$ac_path_SED" --version 2>&1` in 7631*GNU*) 7632 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7633*) 7634 ac_count=0 7635 $as_echo_n 0123456789 >"conftest.in" 7636 while : 7637 do 7638 cat "conftest.in" "conftest.in" >"conftest.tmp" 7639 mv "conftest.tmp" "conftest.in" 7640 cp "conftest.in" "conftest.nl" 7641 $as_echo '' >> "conftest.nl" 7642 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7643 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7644 as_fn_arith $ac_count + 1 && ac_count=$as_val 7645 if test $ac_count -gt ${ac_path_SED_max-0}; then 7646 # Best one so far, save it but keep looking for a better one 7647 ac_cv_path_SED="$ac_path_SED" 7648 ac_path_SED_max=$ac_count 7649 fi 7650 # 10*(2^10) chars as input seems more than enough 7651 test $ac_count -gt 10 && break 7652 done 7653 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7654esac 7655 7656 $ac_path_SED_found && break 3 7657 done 7658 done 7659 done 7660IFS=$as_save_IFS 7661 if test -z "$ac_cv_path_SED"; then 7662 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7663 fi 7664else 7665 ac_cv_path_SED=$SED 7666fi 7667 7668fi 7669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7670$as_echo "$ac_cv_path_SED" >&6; } 7671 SED="$ac_cv_path_SED" 7672 rm -f conftest.sed 7673 7674test -z "$SED" && SED=sed 7675Xsed="$SED -e 1s/^X//" 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7688$as_echo_n "checking for fgrep... " >&6; } 7689if ${ac_cv_path_FGREP+:} false; then : 7690 $as_echo_n "(cached) " >&6 7691else 7692 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7693 then ac_cv_path_FGREP="$GREP -F" 7694 else 7695 if test -z "$FGREP"; then 7696 ac_path_FGREP_found=false 7697 # Loop through the user's path and test for each of PROGNAME-LIST 7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7699for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7700do 7701 IFS=$as_save_IFS 7702 test -z "$as_dir" && as_dir=. 7703 for ac_prog in fgrep; do 7704 for ac_exec_ext in '' $ac_executable_extensions; do 7705 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7706 as_fn_executable_p "$ac_path_FGREP" || continue 7707# Check for GNU ac_path_FGREP and select it if it is found. 7708 # Check for GNU $ac_path_FGREP 7709case `"$ac_path_FGREP" --version 2>&1` in 7710*GNU*) 7711 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7712*) 7713 ac_count=0 7714 $as_echo_n 0123456789 >"conftest.in" 7715 while : 7716 do 7717 cat "conftest.in" "conftest.in" >"conftest.tmp" 7718 mv "conftest.tmp" "conftest.in" 7719 cp "conftest.in" "conftest.nl" 7720 $as_echo 'FGREP' >> "conftest.nl" 7721 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7722 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7723 as_fn_arith $ac_count + 1 && ac_count=$as_val 7724 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7725 # Best one so far, save it but keep looking for a better one 7726 ac_cv_path_FGREP="$ac_path_FGREP" 7727 ac_path_FGREP_max=$ac_count 7728 fi 7729 # 10*(2^10) chars as input seems more than enough 7730 test $ac_count -gt 10 && break 7731 done 7732 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7733esac 7734 7735 $ac_path_FGREP_found && break 3 7736 done 7737 done 7738 done 7739IFS=$as_save_IFS 7740 if test -z "$ac_cv_path_FGREP"; then 7741 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7742 fi 7743else 7744 ac_cv_path_FGREP=$FGREP 7745fi 7746 7747 fi 7748fi 7749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7750$as_echo "$ac_cv_path_FGREP" >&6; } 7751 FGREP="$ac_cv_path_FGREP" 7752 7753 7754test -z "$GREP" && GREP=grep 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774# Check whether --with-gnu-ld was given. 7775if test "${with_gnu_ld+set}" = set; then : 7776 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 7777else 7778 with_gnu_ld=no 7779fi 7780 7781ac_prog=ld 7782if test yes = "$GCC"; then 7783 # Check if gcc -print-prog-name=ld gives a path. 7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7785$as_echo_n "checking for ld used by $CC... " >&6; } 7786 case $host in 7787 *-*-mingw*) 7788 # gcc leaves a trailing carriage return, which upsets mingw 7789 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7790 *) 7791 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7792 esac 7793 case $ac_prog in 7794 # Accept absolute paths. 7795 [\\/]* | ?:[\\/]*) 7796 re_direlt='/[^/][^/]*/\.\./' 7797 # Canonicalize the pathname of ld 7798 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7799 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7800 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7801 done 7802 test -z "$LD" && LD=$ac_prog 7803 ;; 7804 "") 7805 # If it fails, then pretend we aren't using GCC. 7806 ac_prog=ld 7807 ;; 7808 *) 7809 # If it is relative, then search for the first ld in PATH. 7810 with_gnu_ld=unknown 7811 ;; 7812 esac 7813elif test yes = "$with_gnu_ld"; then 7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7815$as_echo_n "checking for GNU ld... " >&6; } 7816else 7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7818$as_echo_n "checking for non-GNU ld... " >&6; } 7819fi 7820if ${lt_cv_path_LD+:} false; then : 7821 $as_echo_n "(cached) " >&6 7822else 7823 if test -z "$LD"; then 7824 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7825 for ac_dir in $PATH; do 7826 IFS=$lt_save_ifs 7827 test -z "$ac_dir" && ac_dir=. 7828 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7829 lt_cv_path_LD=$ac_dir/$ac_prog 7830 # Check to see if the program is GNU ld. I'd rather use --version, 7831 # but apparently some variants of GNU ld only accept -v. 7832 # Break only if it was the GNU/non-GNU ld that we prefer. 7833 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7834 *GNU* | *'with BFD'*) 7835 test no != "$with_gnu_ld" && break 7836 ;; 7837 *) 7838 test yes != "$with_gnu_ld" && break 7839 ;; 7840 esac 7841 fi 7842 done 7843 IFS=$lt_save_ifs 7844else 7845 lt_cv_path_LD=$LD # Let the user override the test with a path. 7846fi 7847fi 7848 7849LD=$lt_cv_path_LD 7850if test -n "$LD"; then 7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7852$as_echo "$LD" >&6; } 7853else 7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7855$as_echo "no" >&6; } 7856fi 7857test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7859$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7860if ${lt_cv_prog_gnu_ld+:} false; then : 7861 $as_echo_n "(cached) " >&6 7862else 7863 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7864case `$LD -v 2>&1 </dev/null` in 7865*GNU* | *'with BFD'*) 7866 lt_cv_prog_gnu_ld=yes 7867 ;; 7868*) 7869 lt_cv_prog_gnu_ld=no 7870 ;; 7871esac 7872fi 7873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7874$as_echo "$lt_cv_prog_gnu_ld" >&6; } 7875with_gnu_ld=$lt_cv_prog_gnu_ld 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7886$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7887if ${lt_cv_path_NM+:} false; then : 7888 $as_echo_n "(cached) " >&6 7889else 7890 if test -n "$NM"; then 7891 # Let the user override the test. 7892 lt_cv_path_NM=$NM 7893else 7894 lt_nm_to_check=${ac_tool_prefix}nm 7895 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7896 lt_nm_to_check="$lt_nm_to_check nm" 7897 fi 7898 for lt_tmp_nm in $lt_nm_to_check; do 7899 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7900 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7901 IFS=$lt_save_ifs 7902 test -z "$ac_dir" && ac_dir=. 7903 tmp_nm=$ac_dir/$lt_tmp_nm 7904 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 7905 # Check to see if the nm accepts a BSD-compat flag. 7906 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 7907 # nm: unknown option "B" ignored 7908 # Tru64's nm complains that /dev/null is an invalid object file 7909 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 7910 case $build_os in 7911 mingw*) lt_bad_file=conftest.nm/nofile ;; 7912 *) lt_bad_file=/dev/null ;; 7913 esac 7914 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 7915 *$lt_bad_file* | *'Invalid file or object type'*) 7916 lt_cv_path_NM="$tmp_nm -B" 7917 break 2 7918 ;; 7919 *) 7920 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7921 */dev/null*) 7922 lt_cv_path_NM="$tmp_nm -p" 7923 break 2 7924 ;; 7925 *) 7926 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7927 continue # so that we can try to find one that supports BSD flags 7928 ;; 7929 esac 7930 ;; 7931 esac 7932 fi 7933 done 7934 IFS=$lt_save_ifs 7935 done 7936 : ${lt_cv_path_NM=no} 7937fi 7938fi 7939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7940$as_echo "$lt_cv_path_NM" >&6; } 7941if test no != "$lt_cv_path_NM"; then 7942 NM=$lt_cv_path_NM 7943else 7944 # Didn't find any BSD compatible name lister, look for dumpbin. 7945 if test -n "$DUMPBIN"; then : 7946 # Let the user override the test. 7947 else 7948 if test -n "$ac_tool_prefix"; then 7949 for ac_prog in dumpbin "link -dump" 7950 do 7951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7952set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7954$as_echo_n "checking for $ac_word... " >&6; } 7955if ${ac_cv_prog_DUMPBIN+:} false; then : 7956 $as_echo_n "(cached) " >&6 7957else 7958 if test -n "$DUMPBIN"; then 7959 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7960else 7961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7962for as_dir in $PATH 7963do 7964 IFS=$as_save_IFS 7965 test -z "$as_dir" && as_dir=. 7966 for ac_exec_ext in '' $ac_executable_extensions; do 7967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7968 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7970 break 2 7971 fi 7972done 7973 done 7974IFS=$as_save_IFS 7975 7976fi 7977fi 7978DUMPBIN=$ac_cv_prog_DUMPBIN 7979if test -n "$DUMPBIN"; then 7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7981$as_echo "$DUMPBIN" >&6; } 7982else 7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7984$as_echo "no" >&6; } 7985fi 7986 7987 7988 test -n "$DUMPBIN" && break 7989 done 7990fi 7991if test -z "$DUMPBIN"; then 7992 ac_ct_DUMPBIN=$DUMPBIN 7993 for ac_prog in dumpbin "link -dump" 7994do 7995 # Extract the first word of "$ac_prog", so it can be a program name with args. 7996set dummy $ac_prog; ac_word=$2 7997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7998$as_echo_n "checking for $ac_word... " >&6; } 7999if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 8000 $as_echo_n "(cached) " >&6 8001else 8002 if test -n "$ac_ct_DUMPBIN"; then 8003 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 8004else 8005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8006for as_dir in $PATH 8007do 8008 IFS=$as_save_IFS 8009 test -z "$as_dir" && as_dir=. 8010 for ac_exec_ext in '' $ac_executable_extensions; do 8011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8012 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 8013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8014 break 2 8015 fi 8016done 8017 done 8018IFS=$as_save_IFS 8019 8020fi 8021fi 8022ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 8023if test -n "$ac_ct_DUMPBIN"; then 8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 8025$as_echo "$ac_ct_DUMPBIN" >&6; } 8026else 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8028$as_echo "no" >&6; } 8029fi 8030 8031 8032 test -n "$ac_ct_DUMPBIN" && break 8033done 8034 8035 if test "x$ac_ct_DUMPBIN" = x; then 8036 DUMPBIN=":" 8037 else 8038 case $cross_compiling:$ac_tool_warned in 8039yes:) 8040{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8041$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8042ac_tool_warned=yes ;; 8043esac 8044 DUMPBIN=$ac_ct_DUMPBIN 8045 fi 8046fi 8047 8048 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 8049 *COFF*) 8050 DUMPBIN="$DUMPBIN -symbols -headers" 8051 ;; 8052 *) 8053 DUMPBIN=: 8054 ;; 8055 esac 8056 fi 8057 8058 if test : != "$DUMPBIN"; then 8059 NM=$DUMPBIN 8060 fi 8061fi 8062test -z "$NM" && NM=nm 8063 8064 8065 8066 8067 8068 8069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 8070$as_echo_n "checking the name lister ($NM) interface... " >&6; } 8071if ${lt_cv_nm_interface+:} false; then : 8072 $as_echo_n "(cached) " >&6 8073else 8074 lt_cv_nm_interface="BSD nm" 8075 echo "int some_variable = 0;" > conftest.$ac_ext 8076 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 8077 (eval "$ac_compile" 2>conftest.err) 8078 cat conftest.err >&5 8079 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 8080 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 8081 cat conftest.err >&5 8082 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 8083 cat conftest.out >&5 8084 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 8085 lt_cv_nm_interface="MS dumpbin" 8086 fi 8087 rm -f conftest* 8088fi 8089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 8090$as_echo "$lt_cv_nm_interface" >&6; } 8091 8092# find the maximum length of command line arguments 8093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 8094$as_echo_n "checking the maximum length of command line arguments... " >&6; } 8095if ${lt_cv_sys_max_cmd_len+:} false; then : 8096 $as_echo_n "(cached) " >&6 8097else 8098 i=0 8099 teststring=ABCD 8100 8101 case $build_os in 8102 msdosdjgpp*) 8103 # On DJGPP, this test can blow up pretty badly due to problems in libc 8104 # (any single argument exceeding 2000 bytes causes a buffer overrun 8105 # during glob expansion). Even if it were fixed, the result of this 8106 # check would be larger than it should be. 8107 lt_cv_sys_max_cmd_len=12288; # 12K is about right 8108 ;; 8109 8110 gnu*) 8111 # Under GNU Hurd, this test is not required because there is 8112 # no limit to the length of command line arguments. 8113 # Libtool will interpret -1 as no limit whatsoever 8114 lt_cv_sys_max_cmd_len=-1; 8115 ;; 8116 8117 cygwin* | mingw* | cegcc*) 8118 # On Win9x/ME, this test blows up -- it succeeds, but takes 8119 # about 5 minutes as the teststring grows exponentially. 8120 # Worse, since 9x/ME are not pre-emptively multitasking, 8121 # you end up with a "frozen" computer, even though with patience 8122 # the test eventually succeeds (with a max line length of 256k). 8123 # Instead, let's just punt: use the minimum linelength reported by 8124 # all of the supported platforms: 8192 (on NT/2K/XP). 8125 lt_cv_sys_max_cmd_len=8192; 8126 ;; 8127 8128 mint*) 8129 # On MiNT this can take a long time and run out of memory. 8130 lt_cv_sys_max_cmd_len=8192; 8131 ;; 8132 8133 amigaos*) 8134 # On AmigaOS with pdksh, this test takes hours, literally. 8135 # So we just punt and use a minimum line length of 8192. 8136 lt_cv_sys_max_cmd_len=8192; 8137 ;; 8138 8139 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 8140 # This has been around since 386BSD, at least. Likely further. 8141 if test -x /sbin/sysctl; then 8142 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 8143 elif test -x /usr/sbin/sysctl; then 8144 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 8145 else 8146 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 8147 fi 8148 # And add a safety zone 8149 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8150 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8151 ;; 8152 8153 interix*) 8154 # We know the value 262144 and hardcode it with a safety zone (like BSD) 8155 lt_cv_sys_max_cmd_len=196608 8156 ;; 8157 8158 os2*) 8159 # The test takes a long time on OS/2. 8160 lt_cv_sys_max_cmd_len=8192 8161 ;; 8162 8163 osf*) 8164 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 8165 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 8166 # nice to cause kernel panics so lets avoid the loop below. 8167 # First set a reasonable default. 8168 lt_cv_sys_max_cmd_len=16384 8169 # 8170 if test -x /sbin/sysconfig; then 8171 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 8172 *1*) lt_cv_sys_max_cmd_len=-1 ;; 8173 esac 8174 fi 8175 ;; 8176 sco3.2v5*) 8177 lt_cv_sys_max_cmd_len=102400 8178 ;; 8179 sysv5* | sco5v6* | sysv4.2uw2*) 8180 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 8181 if test -n "$kargmax"; then 8182 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 8183 else 8184 lt_cv_sys_max_cmd_len=32768 8185 fi 8186 ;; 8187 *) 8188 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 8189 if test -n "$lt_cv_sys_max_cmd_len" && \ 8190 test undefined != "$lt_cv_sys_max_cmd_len"; then 8191 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8192 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8193 else 8194 # Make teststring a little bigger before we do anything with it. 8195 # a 1K string should be a reasonable start. 8196 for i in 1 2 3 4 5 6 7 8; do 8197 teststring=$teststring$teststring 8198 done 8199 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 8200 # If test is not a shell built-in, we'll probably end up computing a 8201 # maximum length that is only half of the actual maximum length, but 8202 # we can't tell. 8203 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 8204 = "X$teststring$teststring"; } >/dev/null 2>&1 && 8205 test 17 != "$i" # 1/2 MB should be enough 8206 do 8207 i=`expr $i + 1` 8208 teststring=$teststring$teststring 8209 done 8210 # Only check the string length outside the loop. 8211 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 8212 teststring= 8213 # Add a significant safety factor because C++ compilers can tack on 8214 # massive amounts of additional arguments before passing them to the 8215 # linker. It appears as though 1/2 is a usable value. 8216 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 8217 fi 8218 ;; 8219 esac 8220 8221fi 8222 8223if test -n "$lt_cv_sys_max_cmd_len"; then 8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 8225$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 8226else 8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 8228$as_echo "none" >&6; } 8229fi 8230max_cmd_len=$lt_cv_sys_max_cmd_len 8231 8232 8233 8234 8235 8236 8237: ${CP="cp -f"} 8238: ${MV="mv -f"} 8239: ${RM="rm -f"} 8240 8241if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8242 lt_unset=unset 8243else 8244 lt_unset=false 8245fi 8246 8247 8248 8249 8250 8251# test EBCDIC or ASCII 8252case `echo X|tr X '\101'` in 8253 A) # ASCII based system 8254 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 8255 lt_SP2NL='tr \040 \012' 8256 lt_NL2SP='tr \015\012 \040\040' 8257 ;; 8258 *) # EBCDIC based system 8259 lt_SP2NL='tr \100 \n' 8260 lt_NL2SP='tr \r\n \100\100' 8261 ;; 8262esac 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 8273$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 8274if ${lt_cv_to_host_file_cmd+:} false; then : 8275 $as_echo_n "(cached) " >&6 8276else 8277 case $host in 8278 *-*-mingw* ) 8279 case $build in 8280 *-*-mingw* ) # actually msys 8281 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 8282 ;; 8283 *-*-cygwin* ) 8284 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 8285 ;; 8286 * ) # otherwise, assume *nix 8287 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 8288 ;; 8289 esac 8290 ;; 8291 *-*-cygwin* ) 8292 case $build in 8293 *-*-mingw* ) # actually msys 8294 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 8295 ;; 8296 *-*-cygwin* ) 8297 lt_cv_to_host_file_cmd=func_convert_file_noop 8298 ;; 8299 * ) # otherwise, assume *nix 8300 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 8301 ;; 8302 esac 8303 ;; 8304 * ) # unhandled hosts (and "normal" native builds) 8305 lt_cv_to_host_file_cmd=func_convert_file_noop 8306 ;; 8307esac 8308 8309fi 8310 8311to_host_file_cmd=$lt_cv_to_host_file_cmd 8312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 8313$as_echo "$lt_cv_to_host_file_cmd" >&6; } 8314 8315 8316 8317 8318 8319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 8320$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 8321if ${lt_cv_to_tool_file_cmd+:} false; then : 8322 $as_echo_n "(cached) " >&6 8323else 8324 #assume ordinary cross tools, or native build. 8325lt_cv_to_tool_file_cmd=func_convert_file_noop 8326case $host in 8327 *-*-mingw* ) 8328 case $build in 8329 *-*-mingw* ) # actually msys 8330 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 8331 ;; 8332 esac 8333 ;; 8334esac 8335 8336fi 8337 8338to_tool_file_cmd=$lt_cv_to_tool_file_cmd 8339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 8340$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 8341 8342 8343 8344 8345 8346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 8347$as_echo_n "checking for $LD option to reload object files... " >&6; } 8348if ${lt_cv_ld_reload_flag+:} false; then : 8349 $as_echo_n "(cached) " >&6 8350else 8351 lt_cv_ld_reload_flag='-r' 8352fi 8353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 8354$as_echo "$lt_cv_ld_reload_flag" >&6; } 8355reload_flag=$lt_cv_ld_reload_flag 8356case $reload_flag in 8357"" | " "*) ;; 8358*) reload_flag=" $reload_flag" ;; 8359esac 8360reload_cmds='$LD$reload_flag -o $output$reload_objs' 8361case $host_os in 8362 cygwin* | mingw* | pw32* | cegcc*) 8363 if test yes != "$GCC"; then 8364 reload_cmds=false 8365 fi 8366 ;; 8367 darwin*) 8368 if test yes = "$GCC"; then 8369 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 8370 else 8371 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8372 fi 8373 ;; 8374esac 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384if test -n "$ac_tool_prefix"; then 8385 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8386set dummy ${ac_tool_prefix}objdump; ac_word=$2 8387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8388$as_echo_n "checking for $ac_word... " >&6; } 8389if ${ac_cv_prog_OBJDUMP+:} false; then : 8390 $as_echo_n "(cached) " >&6 8391else 8392 if test -n "$OBJDUMP"; then 8393 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8394else 8395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8396for as_dir in $PATH 8397do 8398 IFS=$as_save_IFS 8399 test -z "$as_dir" && as_dir=. 8400 for ac_exec_ext in '' $ac_executable_extensions; do 8401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8402 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8404 break 2 8405 fi 8406done 8407 done 8408IFS=$as_save_IFS 8409 8410fi 8411fi 8412OBJDUMP=$ac_cv_prog_OBJDUMP 8413if test -n "$OBJDUMP"; then 8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8415$as_echo "$OBJDUMP" >&6; } 8416else 8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8418$as_echo "no" >&6; } 8419fi 8420 8421 8422fi 8423if test -z "$ac_cv_prog_OBJDUMP"; then 8424 ac_ct_OBJDUMP=$OBJDUMP 8425 # Extract the first word of "objdump", so it can be a program name with args. 8426set dummy objdump; ac_word=$2 8427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8428$as_echo_n "checking for $ac_word... " >&6; } 8429if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8430 $as_echo_n "(cached) " >&6 8431else 8432 if test -n "$ac_ct_OBJDUMP"; then 8433 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8434else 8435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8436for as_dir in $PATH 8437do 8438 IFS=$as_save_IFS 8439 test -z "$as_dir" && as_dir=. 8440 for ac_exec_ext in '' $ac_executable_extensions; do 8441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8442 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8444 break 2 8445 fi 8446done 8447 done 8448IFS=$as_save_IFS 8449 8450fi 8451fi 8452ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8453if test -n "$ac_ct_OBJDUMP"; then 8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8455$as_echo "$ac_ct_OBJDUMP" >&6; } 8456else 8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8458$as_echo "no" >&6; } 8459fi 8460 8461 if test "x$ac_ct_OBJDUMP" = x; then 8462 OBJDUMP="false" 8463 else 8464 case $cross_compiling:$ac_tool_warned in 8465yes:) 8466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8468ac_tool_warned=yes ;; 8469esac 8470 OBJDUMP=$ac_ct_OBJDUMP 8471 fi 8472else 8473 OBJDUMP="$ac_cv_prog_OBJDUMP" 8474fi 8475 8476test -z "$OBJDUMP" && OBJDUMP=objdump 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 8487$as_echo_n "checking how to recognize dependent libraries... " >&6; } 8488if ${lt_cv_deplibs_check_method+:} false; then : 8489 $as_echo_n "(cached) " >&6 8490else 8491 lt_cv_file_magic_cmd='$MAGIC_CMD' 8492lt_cv_file_magic_test_file= 8493lt_cv_deplibs_check_method='unknown' 8494# Need to set the preceding variable on all platforms that support 8495# interlibrary dependencies. 8496# 'none' -- dependencies not supported. 8497# 'unknown' -- same as none, but documents that we really don't know. 8498# 'pass_all' -- all dependencies passed with no checks. 8499# 'test_compile' -- check by making test program. 8500# 'file_magic [[regex]]' -- check by looking for files in library path 8501# that responds to the $file_magic_cmd with a given extended regex. 8502# If you have 'file' or equivalent on your system and you're not sure 8503# whether 'pass_all' will *always* work, you probably want this one. 8504 8505case $host_os in 8506aix[4-9]*) 8507 lt_cv_deplibs_check_method=pass_all 8508 ;; 8509 8510beos*) 8511 lt_cv_deplibs_check_method=pass_all 8512 ;; 8513 8514bsdi[45]*) 8515 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 8516 lt_cv_file_magic_cmd='/usr/bin/file -L' 8517 lt_cv_file_magic_test_file=/shlib/libc.so 8518 ;; 8519 8520cygwin*) 8521 # func_win32_libid is a shell function defined in ltmain.sh 8522 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8523 lt_cv_file_magic_cmd='func_win32_libid' 8524 ;; 8525 8526mingw* | pw32*) 8527 # Base MSYS/MinGW do not provide the 'file' command needed by 8528 # func_win32_libid shell function, so use a weaker test based on 'objdump', 8529 # unless we find 'file', for example because we are cross-compiling. 8530 if ( file / ) >/dev/null 2>&1; then 8531 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8532 lt_cv_file_magic_cmd='func_win32_libid' 8533 else 8534 # Keep this pattern in sync with the one in func_win32_libid. 8535 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 8536 lt_cv_file_magic_cmd='$OBJDUMP -f' 8537 fi 8538 ;; 8539 8540cegcc*) 8541 # use the weaker test based on 'objdump'. See mingw*. 8542 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 8543 lt_cv_file_magic_cmd='$OBJDUMP -f' 8544 ;; 8545 8546darwin* | rhapsody*) 8547 lt_cv_deplibs_check_method=pass_all 8548 ;; 8549 8550freebsd* | dragonfly*) 8551 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8552 case $host_cpu in 8553 i*86 ) 8554 # Not sure whether the presence of OpenBSD here was a mistake. 8555 # Let's accept both of them until this is cleared up. 8556 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8557 lt_cv_file_magic_cmd=/usr/bin/file 8558 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8559 ;; 8560 esac 8561 else 8562 lt_cv_deplibs_check_method=pass_all 8563 fi 8564 ;; 8565 8566haiku*) 8567 lt_cv_deplibs_check_method=pass_all 8568 ;; 8569 8570hpux10.20* | hpux11*) 8571 lt_cv_file_magic_cmd=/usr/bin/file 8572 case $host_cpu in 8573 ia64*) 8574 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8575 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8576 ;; 8577 hppa*64*) 8578 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]' 8579 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8580 ;; 8581 *) 8582 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 8583 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8584 ;; 8585 esac 8586 ;; 8587 8588interix[3-9]*) 8589 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8590 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8591 ;; 8592 8593irix5* | irix6* | nonstopux*) 8594 case $LD in 8595 *-32|*"-32 ") libmagic=32-bit;; 8596 *-n32|*"-n32 ") libmagic=N32;; 8597 *-64|*"-64 ") libmagic=64-bit;; 8598 *) libmagic=never-match;; 8599 esac 8600 lt_cv_deplibs_check_method=pass_all 8601 ;; 8602 8603# This must be glibc/ELF. 8604linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8605 lt_cv_deplibs_check_method=pass_all 8606 ;; 8607 8608netbsd*) 8609 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8610 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8611 else 8612 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8613 fi 8614 ;; 8615 8616newos6*) 8617 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8618 lt_cv_file_magic_cmd=/usr/bin/file 8619 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8620 ;; 8621 8622*nto* | *qnx*) 8623 lt_cv_deplibs_check_method=pass_all 8624 ;; 8625 8626openbsd* | bitrig*) 8627 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 8628 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8629 else 8630 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8631 fi 8632 ;; 8633 8634osf3* | osf4* | osf5*) 8635 lt_cv_deplibs_check_method=pass_all 8636 ;; 8637 8638rdos*) 8639 lt_cv_deplibs_check_method=pass_all 8640 ;; 8641 8642solaris*) 8643 lt_cv_deplibs_check_method=pass_all 8644 ;; 8645 8646sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8647 lt_cv_deplibs_check_method=pass_all 8648 ;; 8649 8650sysv4 | sysv4.3*) 8651 case $host_vendor in 8652 motorola) 8653 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]' 8654 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8655 ;; 8656 ncr) 8657 lt_cv_deplibs_check_method=pass_all 8658 ;; 8659 sequent) 8660 lt_cv_file_magic_cmd='/bin/file' 8661 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8662 ;; 8663 sni) 8664 lt_cv_file_magic_cmd='/bin/file' 8665 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8666 lt_cv_file_magic_test_file=/lib/libc.so 8667 ;; 8668 siemens) 8669 lt_cv_deplibs_check_method=pass_all 8670 ;; 8671 pc) 8672 lt_cv_deplibs_check_method=pass_all 8673 ;; 8674 esac 8675 ;; 8676 8677tpf*) 8678 lt_cv_deplibs_check_method=pass_all 8679 ;; 8680os2*) 8681 lt_cv_deplibs_check_method=pass_all 8682 ;; 8683esac 8684 8685fi 8686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8687$as_echo "$lt_cv_deplibs_check_method" >&6; } 8688 8689file_magic_glob= 8690want_nocaseglob=no 8691if test "$build" = "$host"; then 8692 case $host_os in 8693 mingw* | pw32*) 8694 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 8695 want_nocaseglob=yes 8696 else 8697 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 8698 fi 8699 ;; 8700 esac 8701fi 8702 8703file_magic_cmd=$lt_cv_file_magic_cmd 8704deplibs_check_method=$lt_cv_deplibs_check_method 8705test -z "$deplibs_check_method" && deplibs_check_method=unknown 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728if test -n "$ac_tool_prefix"; then 8729 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8730set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8732$as_echo_n "checking for $ac_word... " >&6; } 8733if ${ac_cv_prog_DLLTOOL+:} false; then : 8734 $as_echo_n "(cached) " >&6 8735else 8736 if test -n "$DLLTOOL"; then 8737 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8738else 8739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8740for as_dir in $PATH 8741do 8742 IFS=$as_save_IFS 8743 test -z "$as_dir" && as_dir=. 8744 for ac_exec_ext in '' $ac_executable_extensions; do 8745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8746 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8748 break 2 8749 fi 8750done 8751 done 8752IFS=$as_save_IFS 8753 8754fi 8755fi 8756DLLTOOL=$ac_cv_prog_DLLTOOL 8757if test -n "$DLLTOOL"; then 8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8759$as_echo "$DLLTOOL" >&6; } 8760else 8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8762$as_echo "no" >&6; } 8763fi 8764 8765 8766fi 8767if test -z "$ac_cv_prog_DLLTOOL"; then 8768 ac_ct_DLLTOOL=$DLLTOOL 8769 # Extract the first word of "dlltool", so it can be a program name with args. 8770set dummy dlltool; ac_word=$2 8771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8772$as_echo_n "checking for $ac_word... " >&6; } 8773if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8774 $as_echo_n "(cached) " >&6 8775else 8776 if test -n "$ac_ct_DLLTOOL"; then 8777 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8778else 8779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8780for as_dir in $PATH 8781do 8782 IFS=$as_save_IFS 8783 test -z "$as_dir" && as_dir=. 8784 for ac_exec_ext in '' $ac_executable_extensions; do 8785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8786 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8788 break 2 8789 fi 8790done 8791 done 8792IFS=$as_save_IFS 8793 8794fi 8795fi 8796ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8797if test -n "$ac_ct_DLLTOOL"; then 8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8799$as_echo "$ac_ct_DLLTOOL" >&6; } 8800else 8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8802$as_echo "no" >&6; } 8803fi 8804 8805 if test "x$ac_ct_DLLTOOL" = x; then 8806 DLLTOOL="false" 8807 else 8808 case $cross_compiling:$ac_tool_warned in 8809yes:) 8810{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8811$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8812ac_tool_warned=yes ;; 8813esac 8814 DLLTOOL=$ac_ct_DLLTOOL 8815 fi 8816else 8817 DLLTOOL="$ac_cv_prog_DLLTOOL" 8818fi 8819 8820test -z "$DLLTOOL" && DLLTOOL=dlltool 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 8832$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 8833if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 8834 $as_echo_n "(cached) " >&6 8835else 8836 lt_cv_sharedlib_from_linklib_cmd='unknown' 8837 8838case $host_os in 8839cygwin* | mingw* | pw32* | cegcc*) 8840 # two different shell functions defined in ltmain.sh; 8841 # decide which one to use based on capabilities of $DLLTOOL 8842 case `$DLLTOOL --help 2>&1` in 8843 *--identify-strict*) 8844 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 8845 ;; 8846 *) 8847 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 8848 ;; 8849 esac 8850 ;; 8851*) 8852 # fallback: assume linklib IS sharedlib 8853 lt_cv_sharedlib_from_linklib_cmd=$ECHO 8854 ;; 8855esac 8856 8857fi 8858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 8859$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 8860sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 8861test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 8862 8863 8864 8865 8866 8867 8868 8869if test -n "$ac_tool_prefix"; then 8870 for ac_prog in ar 8871 do 8872 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8873set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8875$as_echo_n "checking for $ac_word... " >&6; } 8876if ${ac_cv_prog_AR+:} false; then : 8877 $as_echo_n "(cached) " >&6 8878else 8879 if test -n "$AR"; then 8880 ac_cv_prog_AR="$AR" # Let the user override the test. 8881else 8882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8883for as_dir in $PATH 8884do 8885 IFS=$as_save_IFS 8886 test -z "$as_dir" && as_dir=. 8887 for ac_exec_ext in '' $ac_executable_extensions; do 8888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8889 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8891 break 2 8892 fi 8893done 8894 done 8895IFS=$as_save_IFS 8896 8897fi 8898fi 8899AR=$ac_cv_prog_AR 8900if test -n "$AR"; then 8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8902$as_echo "$AR" >&6; } 8903else 8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8905$as_echo "no" >&6; } 8906fi 8907 8908 8909 test -n "$AR" && break 8910 done 8911fi 8912if test -z "$AR"; then 8913 ac_ct_AR=$AR 8914 for ac_prog in ar 8915do 8916 # Extract the first word of "$ac_prog", so it can be a program name with args. 8917set dummy $ac_prog; ac_word=$2 8918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8919$as_echo_n "checking for $ac_word... " >&6; } 8920if ${ac_cv_prog_ac_ct_AR+:} false; then : 8921 $as_echo_n "(cached) " >&6 8922else 8923 if test -n "$ac_ct_AR"; then 8924 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8925else 8926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8927for as_dir in $PATH 8928do 8929 IFS=$as_save_IFS 8930 test -z "$as_dir" && as_dir=. 8931 for ac_exec_ext in '' $ac_executable_extensions; do 8932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8933 ac_cv_prog_ac_ct_AR="$ac_prog" 8934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8935 break 2 8936 fi 8937done 8938 done 8939IFS=$as_save_IFS 8940 8941fi 8942fi 8943ac_ct_AR=$ac_cv_prog_ac_ct_AR 8944if test -n "$ac_ct_AR"; then 8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8946$as_echo "$ac_ct_AR" >&6; } 8947else 8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8949$as_echo "no" >&6; } 8950fi 8951 8952 8953 test -n "$ac_ct_AR" && break 8954done 8955 8956 if test "x$ac_ct_AR" = x; then 8957 AR="false" 8958 else 8959 case $cross_compiling:$ac_tool_warned in 8960yes:) 8961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8963ac_tool_warned=yes ;; 8964esac 8965 AR=$ac_ct_AR 8966 fi 8967fi 8968 8969: ${AR=ar} 8970: ${AR_FLAGS=cru} 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8983$as_echo_n "checking for archiver @FILE support... " >&6; } 8984if ${lt_cv_ar_at_file+:} false; then : 8985 $as_echo_n "(cached) " >&6 8986else 8987 lt_cv_ar_at_file=no 8988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8989/* end confdefs.h. */ 8990 8991int 8992main () 8993{ 8994 8995 ; 8996 return 0; 8997} 8998_ACEOF 8999if ac_fn_c_try_compile "$LINENO"; then : 9000 echo conftest.$ac_objext > conftest.lst 9001 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 9002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9003 (eval $lt_ar_try) 2>&5 9004 ac_status=$? 9005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9006 test $ac_status = 0; } 9007 if test 0 -eq "$ac_status"; then 9008 # Ensure the archiver fails upon bogus file names. 9009 rm -f conftest.$ac_objext libconftest.a 9010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9011 (eval $lt_ar_try) 2>&5 9012 ac_status=$? 9013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9014 test $ac_status = 0; } 9015 if test 0 -ne "$ac_status"; then 9016 lt_cv_ar_at_file=@ 9017 fi 9018 fi 9019 rm -f conftest.* libconftest.a 9020 9021fi 9022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9023 9024fi 9025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 9026$as_echo "$lt_cv_ar_at_file" >&6; } 9027 9028if test no = "$lt_cv_ar_at_file"; then 9029 archiver_list_spec= 9030else 9031 archiver_list_spec=$lt_cv_ar_at_file 9032fi 9033 9034 9035 9036 9037 9038 9039 9040if test -n "$ac_tool_prefix"; then 9041 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 9042set dummy ${ac_tool_prefix}strip; ac_word=$2 9043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9044$as_echo_n "checking for $ac_word... " >&6; } 9045if ${ac_cv_prog_STRIP+:} false; then : 9046 $as_echo_n "(cached) " >&6 9047else 9048 if test -n "$STRIP"; then 9049 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9050else 9051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9052for as_dir in $PATH 9053do 9054 IFS=$as_save_IFS 9055 test -z "$as_dir" && as_dir=. 9056 for ac_exec_ext in '' $ac_executable_extensions; do 9057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9058 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 9059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9060 break 2 9061 fi 9062done 9063 done 9064IFS=$as_save_IFS 9065 9066fi 9067fi 9068STRIP=$ac_cv_prog_STRIP 9069if test -n "$STRIP"; then 9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9071$as_echo "$STRIP" >&6; } 9072else 9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9074$as_echo "no" >&6; } 9075fi 9076 9077 9078fi 9079if test -z "$ac_cv_prog_STRIP"; then 9080 ac_ct_STRIP=$STRIP 9081 # Extract the first word of "strip", so it can be a program name with args. 9082set dummy strip; ac_word=$2 9083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9084$as_echo_n "checking for $ac_word... " >&6; } 9085if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 9086 $as_echo_n "(cached) " >&6 9087else 9088 if test -n "$ac_ct_STRIP"; then 9089 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 9090else 9091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9092for as_dir in $PATH 9093do 9094 IFS=$as_save_IFS 9095 test -z "$as_dir" && as_dir=. 9096 for ac_exec_ext in '' $ac_executable_extensions; do 9097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9098 ac_cv_prog_ac_ct_STRIP="strip" 9099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9100 break 2 9101 fi 9102done 9103 done 9104IFS=$as_save_IFS 9105 9106fi 9107fi 9108ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 9109if test -n "$ac_ct_STRIP"; then 9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 9111$as_echo "$ac_ct_STRIP" >&6; } 9112else 9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9114$as_echo "no" >&6; } 9115fi 9116 9117 if test "x$ac_ct_STRIP" = x; then 9118 STRIP=":" 9119 else 9120 case $cross_compiling:$ac_tool_warned in 9121yes:) 9122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9124ac_tool_warned=yes ;; 9125esac 9126 STRIP=$ac_ct_STRIP 9127 fi 9128else 9129 STRIP="$ac_cv_prog_STRIP" 9130fi 9131 9132test -z "$STRIP" && STRIP=: 9133 9134 9135 9136 9137 9138 9139if test -n "$ac_tool_prefix"; then 9140 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 9141set dummy ${ac_tool_prefix}ranlib; ac_word=$2 9142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9143$as_echo_n "checking for $ac_word... " >&6; } 9144if ${ac_cv_prog_RANLIB+:} false; then : 9145 $as_echo_n "(cached) " >&6 9146else 9147 if test -n "$RANLIB"; then 9148 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9149else 9150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9151for as_dir in $PATH 9152do 9153 IFS=$as_save_IFS 9154 test -z "$as_dir" && as_dir=. 9155 for ac_exec_ext in '' $ac_executable_extensions; do 9156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9157 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 9158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9159 break 2 9160 fi 9161done 9162 done 9163IFS=$as_save_IFS 9164 9165fi 9166fi 9167RANLIB=$ac_cv_prog_RANLIB 9168if test -n "$RANLIB"; then 9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9170$as_echo "$RANLIB" >&6; } 9171else 9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9173$as_echo "no" >&6; } 9174fi 9175 9176 9177fi 9178if test -z "$ac_cv_prog_RANLIB"; then 9179 ac_ct_RANLIB=$RANLIB 9180 # Extract the first word of "ranlib", so it can be a program name with args. 9181set dummy ranlib; ac_word=$2 9182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9183$as_echo_n "checking for $ac_word... " >&6; } 9184if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 9185 $as_echo_n "(cached) " >&6 9186else 9187 if test -n "$ac_ct_RANLIB"; then 9188 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 9189else 9190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9191for as_dir in $PATH 9192do 9193 IFS=$as_save_IFS 9194 test -z "$as_dir" && as_dir=. 9195 for ac_exec_ext in '' $ac_executable_extensions; do 9196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9197 ac_cv_prog_ac_ct_RANLIB="ranlib" 9198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9199 break 2 9200 fi 9201done 9202 done 9203IFS=$as_save_IFS 9204 9205fi 9206fi 9207ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 9208if test -n "$ac_ct_RANLIB"; then 9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 9210$as_echo "$ac_ct_RANLIB" >&6; } 9211else 9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9213$as_echo "no" >&6; } 9214fi 9215 9216 if test "x$ac_ct_RANLIB" = x; then 9217 RANLIB=":" 9218 else 9219 case $cross_compiling:$ac_tool_warned in 9220yes:) 9221{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9223ac_tool_warned=yes ;; 9224esac 9225 RANLIB=$ac_ct_RANLIB 9226 fi 9227else 9228 RANLIB="$ac_cv_prog_RANLIB" 9229fi 9230 9231test -z "$RANLIB" && RANLIB=: 9232 9233 9234 9235 9236 9237 9238# Determine commands to create old-style static archives. 9239old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 9240old_postinstall_cmds='chmod 644 $oldlib' 9241old_postuninstall_cmds= 9242 9243if test -n "$RANLIB"; then 9244 case $host_os in 9245 bitrig* | openbsd*) 9246 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 9247 ;; 9248 *) 9249 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 9250 ;; 9251 esac 9252 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 9253fi 9254 9255case $host_os in 9256 darwin*) 9257 lock_old_archive_extraction=yes ;; 9258 *) 9259 lock_old_archive_extraction=no ;; 9260esac 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282for ac_prog in gawk mawk nawk awk 9283do 9284 # Extract the first word of "$ac_prog", so it can be a program name with args. 9285set dummy $ac_prog; ac_word=$2 9286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9287$as_echo_n "checking for $ac_word... " >&6; } 9288if ${ac_cv_prog_AWK+:} false; then : 9289 $as_echo_n "(cached) " >&6 9290else 9291 if test -n "$AWK"; then 9292 ac_cv_prog_AWK="$AWK" # Let the user override the test. 9293else 9294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9295for as_dir in $PATH 9296do 9297 IFS=$as_save_IFS 9298 test -z "$as_dir" && as_dir=. 9299 for ac_exec_ext in '' $ac_executable_extensions; do 9300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9301 ac_cv_prog_AWK="$ac_prog" 9302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9303 break 2 9304 fi 9305done 9306 done 9307IFS=$as_save_IFS 9308 9309fi 9310fi 9311AWK=$ac_cv_prog_AWK 9312if test -n "$AWK"; then 9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 9314$as_echo "$AWK" >&6; } 9315else 9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9317$as_echo "no" >&6; } 9318fi 9319 9320 9321 test -n "$AWK" && break 9322done 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342# If no C compiler was specified, use CC. 9343LTCC=${LTCC-"$CC"} 9344 9345# If no C compiler flags were specified, use CFLAGS. 9346LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9347 9348# Allow CC to be a program name with arguments. 9349compiler=$CC 9350 9351 9352# Check for command to grab the raw symbol name followed by C symbol from nm. 9353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 9354$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 9355if ${lt_cv_sys_global_symbol_pipe+:} false; then : 9356 $as_echo_n "(cached) " >&6 9357else 9358 9359# These are sane defaults that work on at least a few old systems. 9360# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9361 9362# Character class describing NM global symbol codes. 9363symcode='[BCDEGRST]' 9364 9365# Regexp to match symbols that can be accessed directly from C. 9366sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9367 9368# Define system-specific variables. 9369case $host_os in 9370aix*) 9371 symcode='[BCDT]' 9372 ;; 9373cygwin* | mingw* | pw32* | cegcc*) 9374 symcode='[ABCDGISTW]' 9375 ;; 9376hpux*) 9377 if test ia64 = "$host_cpu"; then 9378 symcode='[ABCDEGRST]' 9379 fi 9380 ;; 9381irix* | nonstopux*) 9382 symcode='[BCDEGRST]' 9383 ;; 9384osf*) 9385 symcode='[BCDEGQRST]' 9386 ;; 9387solaris*) 9388 symcode='[BDRT]' 9389 ;; 9390sco3.2v5*) 9391 symcode='[DT]' 9392 ;; 9393sysv4.2uw2*) 9394 symcode='[DT]' 9395 ;; 9396sysv5* | sco5v6* | unixware* | OpenUNIX*) 9397 symcode='[ABDT]' 9398 ;; 9399sysv4) 9400 symcode='[DFNSTU]' 9401 ;; 9402esac 9403 9404# If we're using GNU nm, then use its standard symbol codes. 9405case `$NM -V 2>&1` in 9406*GNU* | *'with BFD'*) 9407 symcode='[ABCDGIRSTW]' ;; 9408esac 9409 9410if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9411 # Gets list of data symbols to import. 9412 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 9413 # Adjust the below global symbol transforms to fixup imported variables. 9414 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 9415 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 9416 lt_c_name_lib_hook="\ 9417 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 9418 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 9419else 9420 # Disable hooks by default. 9421 lt_cv_sys_global_symbol_to_import= 9422 lt_cdecl_hook= 9423 lt_c_name_hook= 9424 lt_c_name_lib_hook= 9425fi 9426 9427# Transform an extracted symbol line into a proper C declaration. 9428# Some systems (esp. on ia64) link data and code symbols differently, 9429# so use this general approach. 9430lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 9431$lt_cdecl_hook\ 9432" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 9433" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 9434 9435# Transform an extracted symbol line into symbol name and symbol address 9436lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 9437$lt_c_name_hook\ 9438" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 9439" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 9440 9441# Transform an extracted symbol line into symbol name with lib prefix and 9442# symbol address. 9443lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 9444$lt_c_name_lib_hook\ 9445" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 9446" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 9447" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 9448 9449# Handle CRLF in mingw tool chain 9450opt_cr= 9451case $build_os in 9452mingw*) 9453 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9454 ;; 9455esac 9456 9457# Try without a prefix underscore, then with it. 9458for ac_symprfx in "" "_"; do 9459 9460 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9461 symxfrm="\\1 $ac_symprfx\\2 \\2" 9462 9463 # Write the raw and C identifiers. 9464 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9465 # Fake it for dumpbin and say T for any non-static function, 9466 # D for any global variable and I for any imported variable. 9467 # Also find C++ and __fastcall symbols from MSVC++, 9468 # which start with @ or ?. 9469 lt_cv_sys_global_symbol_pipe="$AWK '"\ 9470" {last_section=section; section=\$ 3};"\ 9471" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 9472" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 9473" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 9474" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 9475" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 9476" \$ 0!~/External *\|/{next};"\ 9477" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 9478" {if(hide[section]) next};"\ 9479" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 9480" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 9481" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 9482" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 9483" ' prfx=^$ac_symprfx" 9484 else 9485 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9486 fi 9487 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 9488 9489 # Check to see that the pipe works correctly. 9490 pipe_works=no 9491 9492 rm -f conftest* 9493 cat > conftest.$ac_ext <<_LT_EOF 9494#ifdef __cplusplus 9495extern "C" { 9496#endif 9497char nm_test_var; 9498void nm_test_func(void); 9499void nm_test_func(void){} 9500#ifdef __cplusplus 9501} 9502#endif 9503int main(){nm_test_var='a';nm_test_func();return(0);} 9504_LT_EOF 9505 9506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9507 (eval $ac_compile) 2>&5 9508 ac_status=$? 9509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9510 test $ac_status = 0; }; then 9511 # Now try to grab the symbols. 9512 nlist=conftest.nm 9513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 9514 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 9515 ac_status=$? 9516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9517 test $ac_status = 0; } && test -s "$nlist"; then 9518 # Try sorting and uniquifying the output. 9519 if sort "$nlist" | uniq > "$nlist"T; then 9520 mv -f "$nlist"T "$nlist" 9521 else 9522 rm -f "$nlist"T 9523 fi 9524 9525 # Make sure that we snagged all the symbols we need. 9526 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 9527 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 9528 cat <<_LT_EOF > conftest.$ac_ext 9529/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 9530#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 9531/* DATA imports from DLLs on WIN32 can't be const, because runtime 9532 relocations are performed -- see ld's documentation on pseudo-relocs. */ 9533# define LT_DLSYM_CONST 9534#elif defined __osf__ 9535/* This system does not cope well with relocations in const data. */ 9536# define LT_DLSYM_CONST 9537#else 9538# define LT_DLSYM_CONST const 9539#endif 9540 9541#ifdef __cplusplus 9542extern "C" { 9543#endif 9544 9545_LT_EOF 9546 # Now generate the symbol file. 9547 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 9548 9549 cat <<_LT_EOF >> conftest.$ac_ext 9550 9551/* The mapping between symbol names and symbols. */ 9552LT_DLSYM_CONST struct { 9553 const char *name; 9554 void *address; 9555} 9556lt__PROGRAM__LTX_preloaded_symbols[] = 9557{ 9558 { "@PROGRAM@", (void *) 0 }, 9559_LT_EOF 9560 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 9561 cat <<\_LT_EOF >> conftest.$ac_ext 9562 {0, (void *) 0} 9563}; 9564 9565/* This works around a problem in FreeBSD linker */ 9566#ifdef FREEBSD_WORKAROUND 9567static const void *lt_preloaded_setup() { 9568 return lt__PROGRAM__LTX_preloaded_symbols; 9569} 9570#endif 9571 9572#ifdef __cplusplus 9573} 9574#endif 9575_LT_EOF 9576 # Now try linking the two files. 9577 mv conftest.$ac_objext conftstm.$ac_objext 9578 lt_globsym_save_LIBS=$LIBS 9579 lt_globsym_save_CFLAGS=$CFLAGS 9580 LIBS=conftstm.$ac_objext 9581 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9583 (eval $ac_link) 2>&5 9584 ac_status=$? 9585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9586 test $ac_status = 0; } && test -s conftest$ac_exeext; then 9587 pipe_works=yes 9588 fi 9589 LIBS=$lt_globsym_save_LIBS 9590 CFLAGS=$lt_globsym_save_CFLAGS 9591 else 9592 echo "cannot find nm_test_func in $nlist" >&5 9593 fi 9594 else 9595 echo "cannot find nm_test_var in $nlist" >&5 9596 fi 9597 else 9598 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9599 fi 9600 else 9601 echo "$progname: failed program was:" >&5 9602 cat conftest.$ac_ext >&5 9603 fi 9604 rm -rf conftest* conftst* 9605 9606 # Do not use the global_symbol_pipe unless it works. 9607 if test yes = "$pipe_works"; then 9608 break 9609 else 9610 lt_cv_sys_global_symbol_pipe= 9611 fi 9612done 9613 9614fi 9615 9616if test -z "$lt_cv_sys_global_symbol_pipe"; then 9617 lt_cv_sys_global_symbol_to_cdecl= 9618fi 9619if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9621$as_echo "failed" >&6; } 9622else 9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9624$as_echo "ok" >&6; } 9625fi 9626 9627# Response file support. 9628if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9629 nm_file_list_spec='@' 9630elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 9631 nm_file_list_spec='@' 9632fi 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 9671$as_echo_n "checking for sysroot... " >&6; } 9672 9673# Check whether --with-sysroot was given. 9674if test "${with_sysroot+set}" = set; then : 9675 withval=$with_sysroot; 9676else 9677 with_sysroot=no 9678fi 9679 9680 9681lt_sysroot= 9682case $with_sysroot in #( 9683 yes) 9684 if test yes = "$GCC"; then 9685 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 9686 fi 9687 ;; #( 9688 /*) 9689 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 9690 ;; #( 9691 no|'') 9692 ;; #( 9693 *) 9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 9695$as_echo "$with_sysroot" >&6; } 9696 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 9697 ;; 9698esac 9699 9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 9701$as_echo "${lt_sysroot:-no}" >&6; } 9702 9703 9704 9705 9706 9707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 9708$as_echo_n "checking for a working dd... " >&6; } 9709if ${ac_cv_path_lt_DD+:} false; then : 9710 $as_echo_n "(cached) " >&6 9711else 9712 printf 0123456789abcdef0123456789abcdef >conftest.i 9713cat conftest.i conftest.i >conftest2.i 9714: ${lt_DD:=$DD} 9715if test -z "$lt_DD"; then 9716 ac_path_lt_DD_found=false 9717 # Loop through the user's path and test for each of PROGNAME-LIST 9718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9719for as_dir in $PATH 9720do 9721 IFS=$as_save_IFS 9722 test -z "$as_dir" && as_dir=. 9723 for ac_prog in dd; do 9724 for ac_exec_ext in '' $ac_executable_extensions; do 9725 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 9726 as_fn_executable_p "$ac_path_lt_DD" || continue 9727if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9728 cmp -s conftest.i conftest.out \ 9729 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 9730fi 9731 $ac_path_lt_DD_found && break 3 9732 done 9733 done 9734 done 9735IFS=$as_save_IFS 9736 if test -z "$ac_cv_path_lt_DD"; then 9737 : 9738 fi 9739else 9740 ac_cv_path_lt_DD=$lt_DD 9741fi 9742 9743rm -f conftest.i conftest2.i conftest.out 9744fi 9745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 9746$as_echo "$ac_cv_path_lt_DD" >&6; } 9747 9748 9749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 9750$as_echo_n "checking how to truncate binary pipes... " >&6; } 9751if ${lt_cv_truncate_bin+:} false; then : 9752 $as_echo_n "(cached) " >&6 9753else 9754 printf 0123456789abcdef0123456789abcdef >conftest.i 9755cat conftest.i conftest.i >conftest2.i 9756lt_cv_truncate_bin= 9757if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9758 cmp -s conftest.i conftest.out \ 9759 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 9760fi 9761rm -f conftest.i conftest2.i conftest.out 9762test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 9763fi 9764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 9765$as_echo "$lt_cv_truncate_bin" >&6; } 9766 9767 9768 9769 9770 9771 9772 9773# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 9774func_cc_basename () 9775{ 9776 for cc_temp in $*""; do 9777 case $cc_temp in 9778 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9779 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9780 \-*) ;; 9781 *) break;; 9782 esac 9783 done 9784 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9785} 9786 9787# Check whether --enable-libtool-lock was given. 9788if test "${enable_libtool_lock+set}" = set; then : 9789 enableval=$enable_libtool_lock; 9790fi 9791 9792test no = "$enable_libtool_lock" || enable_libtool_lock=yes 9793 9794# Some flags need to be propagated to the compiler or linker for good 9795# libtool support. 9796case $host in 9797ia64-*-hpux*) 9798 # Find out what ABI is being produced by ac_compile, and set mode 9799 # options accordingly. 9800 echo 'int i;' > conftest.$ac_ext 9801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9802 (eval $ac_compile) 2>&5 9803 ac_status=$? 9804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9805 test $ac_status = 0; }; then 9806 case `/usr/bin/file conftest.$ac_objext` in 9807 *ELF-32*) 9808 HPUX_IA64_MODE=32 9809 ;; 9810 *ELF-64*) 9811 HPUX_IA64_MODE=64 9812 ;; 9813 esac 9814 fi 9815 rm -rf conftest* 9816 ;; 9817*-*-irix6*) 9818 # Find out what ABI is being produced by ac_compile, and set linker 9819 # options accordingly. 9820 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9822 (eval $ac_compile) 2>&5 9823 ac_status=$? 9824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9825 test $ac_status = 0; }; then 9826 if test yes = "$lt_cv_prog_gnu_ld"; then 9827 case `/usr/bin/file conftest.$ac_objext` in 9828 *32-bit*) 9829 LD="${LD-ld} -melf32bsmip" 9830 ;; 9831 *N32*) 9832 LD="${LD-ld} -melf32bmipn32" 9833 ;; 9834 *64-bit*) 9835 LD="${LD-ld} -melf64bmip" 9836 ;; 9837 esac 9838 else 9839 case `/usr/bin/file conftest.$ac_objext` in 9840 *32-bit*) 9841 LD="${LD-ld} -32" 9842 ;; 9843 *N32*) 9844 LD="${LD-ld} -n32" 9845 ;; 9846 *64-bit*) 9847 LD="${LD-ld} -64" 9848 ;; 9849 esac 9850 fi 9851 fi 9852 rm -rf conftest* 9853 ;; 9854 9855mips64*-*linux*) 9856 # Find out what ABI is being produced by ac_compile, and set linker 9857 # options accordingly. 9858 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9860 (eval $ac_compile) 2>&5 9861 ac_status=$? 9862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9863 test $ac_status = 0; }; then 9864 emul=elf 9865 case `/usr/bin/file conftest.$ac_objext` in 9866 *32-bit*) 9867 emul="${emul}32" 9868 ;; 9869 *64-bit*) 9870 emul="${emul}64" 9871 ;; 9872 esac 9873 case `/usr/bin/file conftest.$ac_objext` in 9874 *MSB*) 9875 emul="${emul}btsmip" 9876 ;; 9877 *LSB*) 9878 emul="${emul}ltsmip" 9879 ;; 9880 esac 9881 case `/usr/bin/file conftest.$ac_objext` in 9882 *N32*) 9883 emul="${emul}n32" 9884 ;; 9885 esac 9886 LD="${LD-ld} -m $emul" 9887 fi 9888 rm -rf conftest* 9889 ;; 9890 9891x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 9892s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 9893 # Find out what ABI is being produced by ac_compile, and set linker 9894 # options accordingly. Note that the listed cases only cover the 9895 # situations where additional linker options are needed (such as when 9896 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 9897 # vice versa); the common cases where no linker options are needed do 9898 # not appear in the list. 9899 echo 'int i;' > conftest.$ac_ext 9900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9901 (eval $ac_compile) 2>&5 9902 ac_status=$? 9903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9904 test $ac_status = 0; }; then 9905 case `/usr/bin/file conftest.o` in 9906 *32-bit*) 9907 case $host in 9908 x86_64-*kfreebsd*-gnu) 9909 LD="${LD-ld} -m elf_i386_fbsd" 9910 ;; 9911 x86_64-*linux*) 9912 case `/usr/bin/file conftest.o` in 9913 *x86-64*) 9914 LD="${LD-ld} -m elf32_x86_64" 9915 ;; 9916 *) 9917 LD="${LD-ld} -m elf_i386" 9918 ;; 9919 esac 9920 ;; 9921 powerpc64le-*linux*) 9922 LD="${LD-ld} -m elf32lppclinux" 9923 ;; 9924 powerpc64-*linux*) 9925 LD="${LD-ld} -m elf32ppclinux" 9926 ;; 9927 s390x-*linux*) 9928 LD="${LD-ld} -m elf_s390" 9929 ;; 9930 sparc64-*linux*) 9931 LD="${LD-ld} -m elf32_sparc" 9932 ;; 9933 esac 9934 ;; 9935 *64-bit*) 9936 case $host in 9937 x86_64-*kfreebsd*-gnu) 9938 LD="${LD-ld} -m elf_x86_64_fbsd" 9939 ;; 9940 x86_64-*linux*) 9941 LD="${LD-ld} -m elf_x86_64" 9942 ;; 9943 powerpcle-*linux*) 9944 LD="${LD-ld} -m elf64lppc" 9945 ;; 9946 powerpc-*linux*) 9947 LD="${LD-ld} -m elf64ppc" 9948 ;; 9949 s390*-*linux*|s390*-*tpf*) 9950 LD="${LD-ld} -m elf64_s390" 9951 ;; 9952 sparc*-*linux*) 9953 LD="${LD-ld} -m elf64_sparc" 9954 ;; 9955 esac 9956 ;; 9957 esac 9958 fi 9959 rm -rf conftest* 9960 ;; 9961 9962*-*-sco3.2v5*) 9963 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9964 SAVE_CFLAGS=$CFLAGS 9965 CFLAGS="$CFLAGS -belf" 9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9967$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 9968if ${lt_cv_cc_needs_belf+:} false; then : 9969 $as_echo_n "(cached) " >&6 9970else 9971 ac_ext=c 9972ac_cpp='$CPP $CPPFLAGS' 9973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9975ac_compiler_gnu=$ac_cv_c_compiler_gnu 9976 9977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9978/* end confdefs.h. */ 9979 9980int 9981main () 9982{ 9983 9984 ; 9985 return 0; 9986} 9987_ACEOF 9988if ac_fn_c_try_link "$LINENO"; then : 9989 lt_cv_cc_needs_belf=yes 9990else 9991 lt_cv_cc_needs_belf=no 9992fi 9993rm -f core conftest.err conftest.$ac_objext \ 9994 conftest$ac_exeext conftest.$ac_ext 9995 ac_ext=c 9996ac_cpp='$CPP $CPPFLAGS' 9997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9999ac_compiler_gnu=$ac_cv_c_compiler_gnu 10000 10001fi 10002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 10003$as_echo "$lt_cv_cc_needs_belf" >&6; } 10004 if test yes != "$lt_cv_cc_needs_belf"; then 10005 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 10006 CFLAGS=$SAVE_CFLAGS 10007 fi 10008 ;; 10009*-*solaris*) 10010 # Find out what ABI is being produced by ac_compile, and set linker 10011 # options accordingly. 10012 echo 'int i;' > conftest.$ac_ext 10013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10014 (eval $ac_compile) 2>&5 10015 ac_status=$? 10016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10017 test $ac_status = 0; }; then 10018 case `/usr/bin/file conftest.o` in 10019 *64-bit*) 10020 case $lt_cv_prog_gnu_ld in 10021 yes*) 10022 case $host in 10023 i?86-*-solaris*|x86_64-*-solaris*) 10024 LD="${LD-ld} -m elf_x86_64" 10025 ;; 10026 sparc*-*-solaris*) 10027 LD="${LD-ld} -m elf64_sparc" 10028 ;; 10029 esac 10030 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 10031 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 10032 LD=${LD-ld}_sol2 10033 fi 10034 ;; 10035 *) 10036 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 10037 LD="${LD-ld} -64" 10038 fi 10039 ;; 10040 esac 10041 ;; 10042 esac 10043 fi 10044 rm -rf conftest* 10045 ;; 10046esac 10047 10048need_locks=$enable_libtool_lock 10049 10050if test -n "$ac_tool_prefix"; then 10051 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 10052set dummy ${ac_tool_prefix}mt; ac_word=$2 10053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10054$as_echo_n "checking for $ac_word... " >&6; } 10055if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 10056 $as_echo_n "(cached) " >&6 10057else 10058 if test -n "$MANIFEST_TOOL"; then 10059 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 10060else 10061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10062for as_dir in $PATH 10063do 10064 IFS=$as_save_IFS 10065 test -z "$as_dir" && as_dir=. 10066 for ac_exec_ext in '' $ac_executable_extensions; do 10067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10068 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 10069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10070 break 2 10071 fi 10072done 10073 done 10074IFS=$as_save_IFS 10075 10076fi 10077fi 10078MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 10079if test -n "$MANIFEST_TOOL"; then 10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 10081$as_echo "$MANIFEST_TOOL" >&6; } 10082else 10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10084$as_echo "no" >&6; } 10085fi 10086 10087 10088fi 10089if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 10090 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 10091 # Extract the first word of "mt", so it can be a program name with args. 10092set dummy mt; ac_word=$2 10093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10094$as_echo_n "checking for $ac_word... " >&6; } 10095if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 10096 $as_echo_n "(cached) " >&6 10097else 10098 if test -n "$ac_ct_MANIFEST_TOOL"; then 10099 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 10100else 10101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10102for as_dir in $PATH 10103do 10104 IFS=$as_save_IFS 10105 test -z "$as_dir" && as_dir=. 10106 for ac_exec_ext in '' $ac_executable_extensions; do 10107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10108 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 10109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10110 break 2 10111 fi 10112done 10113 done 10114IFS=$as_save_IFS 10115 10116fi 10117fi 10118ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 10119if test -n "$ac_ct_MANIFEST_TOOL"; then 10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 10121$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 10122else 10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10124$as_echo "no" >&6; } 10125fi 10126 10127 if test "x$ac_ct_MANIFEST_TOOL" = x; then 10128 MANIFEST_TOOL=":" 10129 else 10130 case $cross_compiling:$ac_tool_warned in 10131yes:) 10132{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10133$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10134ac_tool_warned=yes ;; 10135esac 10136 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 10137 fi 10138else 10139 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 10140fi 10141 10142test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 10143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 10144$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 10145if ${lt_cv_path_mainfest_tool+:} false; then : 10146 $as_echo_n "(cached) " >&6 10147else 10148 lt_cv_path_mainfest_tool=no 10149 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 10150 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 10151 cat conftest.err >&5 10152 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 10153 lt_cv_path_mainfest_tool=yes 10154 fi 10155 rm -f conftest* 10156fi 10157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 10158$as_echo "$lt_cv_path_mainfest_tool" >&6; } 10159if test yes != "$lt_cv_path_mainfest_tool"; then 10160 MANIFEST_TOOL=: 10161fi 10162 10163 10164 10165 10166 10167 10168 case $host_os in 10169 rhapsody* | darwin*) 10170 if test -n "$ac_tool_prefix"; then 10171 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 10172set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 10173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10174$as_echo_n "checking for $ac_word... " >&6; } 10175if ${ac_cv_prog_DSYMUTIL+:} false; then : 10176 $as_echo_n "(cached) " >&6 10177else 10178 if test -n "$DSYMUTIL"; then 10179 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 10180else 10181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10182for as_dir in $PATH 10183do 10184 IFS=$as_save_IFS 10185 test -z "$as_dir" && as_dir=. 10186 for ac_exec_ext in '' $ac_executable_extensions; do 10187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10188 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 10189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10190 break 2 10191 fi 10192done 10193 done 10194IFS=$as_save_IFS 10195 10196fi 10197fi 10198DSYMUTIL=$ac_cv_prog_DSYMUTIL 10199if test -n "$DSYMUTIL"; then 10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 10201$as_echo "$DSYMUTIL" >&6; } 10202else 10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10204$as_echo "no" >&6; } 10205fi 10206 10207 10208fi 10209if test -z "$ac_cv_prog_DSYMUTIL"; then 10210 ac_ct_DSYMUTIL=$DSYMUTIL 10211 # Extract the first word of "dsymutil", so it can be a program name with args. 10212set dummy dsymutil; ac_word=$2 10213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10214$as_echo_n "checking for $ac_word... " >&6; } 10215if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 10216 $as_echo_n "(cached) " >&6 10217else 10218 if test -n "$ac_ct_DSYMUTIL"; then 10219 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 10220else 10221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10222for as_dir in $PATH 10223do 10224 IFS=$as_save_IFS 10225 test -z "$as_dir" && as_dir=. 10226 for ac_exec_ext in '' $ac_executable_extensions; do 10227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10228 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 10229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10230 break 2 10231 fi 10232done 10233 done 10234IFS=$as_save_IFS 10235 10236fi 10237fi 10238ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 10239if test -n "$ac_ct_DSYMUTIL"; then 10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 10241$as_echo "$ac_ct_DSYMUTIL" >&6; } 10242else 10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10244$as_echo "no" >&6; } 10245fi 10246 10247 if test "x$ac_ct_DSYMUTIL" = x; then 10248 DSYMUTIL=":" 10249 else 10250 case $cross_compiling:$ac_tool_warned in 10251yes:) 10252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10254ac_tool_warned=yes ;; 10255esac 10256 DSYMUTIL=$ac_ct_DSYMUTIL 10257 fi 10258else 10259 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 10260fi 10261 10262 if test -n "$ac_tool_prefix"; then 10263 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 10264set dummy ${ac_tool_prefix}nmedit; ac_word=$2 10265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10266$as_echo_n "checking for $ac_word... " >&6; } 10267if ${ac_cv_prog_NMEDIT+:} false; then : 10268 $as_echo_n "(cached) " >&6 10269else 10270 if test -n "$NMEDIT"; then 10271 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 10272else 10273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10274for as_dir in $PATH 10275do 10276 IFS=$as_save_IFS 10277 test -z "$as_dir" && as_dir=. 10278 for ac_exec_ext in '' $ac_executable_extensions; do 10279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10280 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 10281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10282 break 2 10283 fi 10284done 10285 done 10286IFS=$as_save_IFS 10287 10288fi 10289fi 10290NMEDIT=$ac_cv_prog_NMEDIT 10291if test -n "$NMEDIT"; then 10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 10293$as_echo "$NMEDIT" >&6; } 10294else 10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10296$as_echo "no" >&6; } 10297fi 10298 10299 10300fi 10301if test -z "$ac_cv_prog_NMEDIT"; then 10302 ac_ct_NMEDIT=$NMEDIT 10303 # Extract the first word of "nmedit", so it can be a program name with args. 10304set dummy nmedit; ac_word=$2 10305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10306$as_echo_n "checking for $ac_word... " >&6; } 10307if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 10308 $as_echo_n "(cached) " >&6 10309else 10310 if test -n "$ac_ct_NMEDIT"; then 10311 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 10312else 10313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10314for as_dir in $PATH 10315do 10316 IFS=$as_save_IFS 10317 test -z "$as_dir" && as_dir=. 10318 for ac_exec_ext in '' $ac_executable_extensions; do 10319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10320 ac_cv_prog_ac_ct_NMEDIT="nmedit" 10321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10322 break 2 10323 fi 10324done 10325 done 10326IFS=$as_save_IFS 10327 10328fi 10329fi 10330ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 10331if test -n "$ac_ct_NMEDIT"; then 10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 10333$as_echo "$ac_ct_NMEDIT" >&6; } 10334else 10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10336$as_echo "no" >&6; } 10337fi 10338 10339 if test "x$ac_ct_NMEDIT" = x; then 10340 NMEDIT=":" 10341 else 10342 case $cross_compiling:$ac_tool_warned in 10343yes:) 10344{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10345$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10346ac_tool_warned=yes ;; 10347esac 10348 NMEDIT=$ac_ct_NMEDIT 10349 fi 10350else 10351 NMEDIT="$ac_cv_prog_NMEDIT" 10352fi 10353 10354 if test -n "$ac_tool_prefix"; then 10355 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 10356set dummy ${ac_tool_prefix}lipo; ac_word=$2 10357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10358$as_echo_n "checking for $ac_word... " >&6; } 10359if ${ac_cv_prog_LIPO+:} false; then : 10360 $as_echo_n "(cached) " >&6 10361else 10362 if test -n "$LIPO"; then 10363 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 10364else 10365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10366for as_dir in $PATH 10367do 10368 IFS=$as_save_IFS 10369 test -z "$as_dir" && as_dir=. 10370 for ac_exec_ext in '' $ac_executable_extensions; do 10371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10372 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 10373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10374 break 2 10375 fi 10376done 10377 done 10378IFS=$as_save_IFS 10379 10380fi 10381fi 10382LIPO=$ac_cv_prog_LIPO 10383if test -n "$LIPO"; then 10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 10385$as_echo "$LIPO" >&6; } 10386else 10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10388$as_echo "no" >&6; } 10389fi 10390 10391 10392fi 10393if test -z "$ac_cv_prog_LIPO"; then 10394 ac_ct_LIPO=$LIPO 10395 # Extract the first word of "lipo", so it can be a program name with args. 10396set dummy lipo; ac_word=$2 10397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10398$as_echo_n "checking for $ac_word... " >&6; } 10399if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 10400 $as_echo_n "(cached) " >&6 10401else 10402 if test -n "$ac_ct_LIPO"; then 10403 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 10404else 10405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10406for as_dir in $PATH 10407do 10408 IFS=$as_save_IFS 10409 test -z "$as_dir" && as_dir=. 10410 for ac_exec_ext in '' $ac_executable_extensions; do 10411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10412 ac_cv_prog_ac_ct_LIPO="lipo" 10413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10414 break 2 10415 fi 10416done 10417 done 10418IFS=$as_save_IFS 10419 10420fi 10421fi 10422ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 10423if test -n "$ac_ct_LIPO"; then 10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 10425$as_echo "$ac_ct_LIPO" >&6; } 10426else 10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10428$as_echo "no" >&6; } 10429fi 10430 10431 if test "x$ac_ct_LIPO" = x; then 10432 LIPO=":" 10433 else 10434 case $cross_compiling:$ac_tool_warned in 10435yes:) 10436{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10438ac_tool_warned=yes ;; 10439esac 10440 LIPO=$ac_ct_LIPO 10441 fi 10442else 10443 LIPO="$ac_cv_prog_LIPO" 10444fi 10445 10446 if test -n "$ac_tool_prefix"; then 10447 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 10448set dummy ${ac_tool_prefix}otool; ac_word=$2 10449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10450$as_echo_n "checking for $ac_word... " >&6; } 10451if ${ac_cv_prog_OTOOL+:} false; then : 10452 $as_echo_n "(cached) " >&6 10453else 10454 if test -n "$OTOOL"; then 10455 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 10456else 10457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10458for as_dir in $PATH 10459do 10460 IFS=$as_save_IFS 10461 test -z "$as_dir" && as_dir=. 10462 for ac_exec_ext in '' $ac_executable_extensions; do 10463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10464 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 10465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10466 break 2 10467 fi 10468done 10469 done 10470IFS=$as_save_IFS 10471 10472fi 10473fi 10474OTOOL=$ac_cv_prog_OTOOL 10475if test -n "$OTOOL"; then 10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 10477$as_echo "$OTOOL" >&6; } 10478else 10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10480$as_echo "no" >&6; } 10481fi 10482 10483 10484fi 10485if test -z "$ac_cv_prog_OTOOL"; then 10486 ac_ct_OTOOL=$OTOOL 10487 # Extract the first word of "otool", so it can be a program name with args. 10488set dummy otool; ac_word=$2 10489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10490$as_echo_n "checking for $ac_word... " >&6; } 10491if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 10492 $as_echo_n "(cached) " >&6 10493else 10494 if test -n "$ac_ct_OTOOL"; then 10495 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 10496else 10497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10498for as_dir in $PATH 10499do 10500 IFS=$as_save_IFS 10501 test -z "$as_dir" && as_dir=. 10502 for ac_exec_ext in '' $ac_executable_extensions; do 10503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10504 ac_cv_prog_ac_ct_OTOOL="otool" 10505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10506 break 2 10507 fi 10508done 10509 done 10510IFS=$as_save_IFS 10511 10512fi 10513fi 10514ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 10515if test -n "$ac_ct_OTOOL"; then 10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 10517$as_echo "$ac_ct_OTOOL" >&6; } 10518else 10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10520$as_echo "no" >&6; } 10521fi 10522 10523 if test "x$ac_ct_OTOOL" = x; then 10524 OTOOL=":" 10525 else 10526 case $cross_compiling:$ac_tool_warned in 10527yes:) 10528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10530ac_tool_warned=yes ;; 10531esac 10532 OTOOL=$ac_ct_OTOOL 10533 fi 10534else 10535 OTOOL="$ac_cv_prog_OTOOL" 10536fi 10537 10538 if test -n "$ac_tool_prefix"; then 10539 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 10540set dummy ${ac_tool_prefix}otool64; ac_word=$2 10541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10542$as_echo_n "checking for $ac_word... " >&6; } 10543if ${ac_cv_prog_OTOOL64+:} false; then : 10544 $as_echo_n "(cached) " >&6 10545else 10546 if test -n "$OTOOL64"; then 10547 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 10548else 10549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10550for as_dir in $PATH 10551do 10552 IFS=$as_save_IFS 10553 test -z "$as_dir" && as_dir=. 10554 for ac_exec_ext in '' $ac_executable_extensions; do 10555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10556 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 10557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10558 break 2 10559 fi 10560done 10561 done 10562IFS=$as_save_IFS 10563 10564fi 10565fi 10566OTOOL64=$ac_cv_prog_OTOOL64 10567if test -n "$OTOOL64"; then 10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 10569$as_echo "$OTOOL64" >&6; } 10570else 10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10572$as_echo "no" >&6; } 10573fi 10574 10575 10576fi 10577if test -z "$ac_cv_prog_OTOOL64"; then 10578 ac_ct_OTOOL64=$OTOOL64 10579 # Extract the first word of "otool64", so it can be a program name with args. 10580set dummy otool64; ac_word=$2 10581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10582$as_echo_n "checking for $ac_word... " >&6; } 10583if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 10584 $as_echo_n "(cached) " >&6 10585else 10586 if test -n "$ac_ct_OTOOL64"; then 10587 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 10588else 10589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10590for as_dir in $PATH 10591do 10592 IFS=$as_save_IFS 10593 test -z "$as_dir" && as_dir=. 10594 for ac_exec_ext in '' $ac_executable_extensions; do 10595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10596 ac_cv_prog_ac_ct_OTOOL64="otool64" 10597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10598 break 2 10599 fi 10600done 10601 done 10602IFS=$as_save_IFS 10603 10604fi 10605fi 10606ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 10607if test -n "$ac_ct_OTOOL64"; then 10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 10609$as_echo "$ac_ct_OTOOL64" >&6; } 10610else 10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10612$as_echo "no" >&6; } 10613fi 10614 10615 if test "x$ac_ct_OTOOL64" = x; then 10616 OTOOL64=":" 10617 else 10618 case $cross_compiling:$ac_tool_warned in 10619yes:) 10620{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10621$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10622ac_tool_warned=yes ;; 10623esac 10624 OTOOL64=$ac_ct_OTOOL64 10625 fi 10626else 10627 OTOOL64="$ac_cv_prog_OTOOL64" 10628fi 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 10657$as_echo_n "checking for -single_module linker flag... " >&6; } 10658if ${lt_cv_apple_cc_single_mod+:} false; then : 10659 $as_echo_n "(cached) " >&6 10660else 10661 lt_cv_apple_cc_single_mod=no 10662 if test -z "$LT_MULTI_MODULE"; then 10663 # By default we will add the -single_module flag. You can override 10664 # by either setting the environment variable LT_MULTI_MODULE 10665 # non-empty at configure time, or by adding -multi_module to the 10666 # link flags. 10667 rm -rf libconftest.dylib* 10668 echo "int foo(void){return 1;}" > conftest.c 10669 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10670-dynamiclib -Wl,-single_module conftest.c" >&5 10671 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10672 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10673 _lt_result=$? 10674 # If there is a non-empty error log, and "single_module" 10675 # appears in it, assume the flag caused a linker warning 10676 if test -s conftest.err && $GREP single_module conftest.err; then 10677 cat conftest.err >&5 10678 # Otherwise, if the output was created with a 0 exit code from 10679 # the compiler, it worked. 10680 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 10681 lt_cv_apple_cc_single_mod=yes 10682 else 10683 cat conftest.err >&5 10684 fi 10685 rm -rf libconftest.dylib* 10686 rm -f conftest.* 10687 fi 10688fi 10689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 10690$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 10691 10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 10693$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 10694if ${lt_cv_ld_exported_symbols_list+:} false; then : 10695 $as_echo_n "(cached) " >&6 10696else 10697 lt_cv_ld_exported_symbols_list=no 10698 save_LDFLAGS=$LDFLAGS 10699 echo "_main" > conftest.sym 10700 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 10701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10702/* end confdefs.h. */ 10703 10704int 10705main () 10706{ 10707 10708 ; 10709 return 0; 10710} 10711_ACEOF 10712if ac_fn_c_try_link "$LINENO"; then : 10713 lt_cv_ld_exported_symbols_list=yes 10714else 10715 lt_cv_ld_exported_symbols_list=no 10716fi 10717rm -f core conftest.err conftest.$ac_objext \ 10718 conftest$ac_exeext conftest.$ac_ext 10719 LDFLAGS=$save_LDFLAGS 10720 10721fi 10722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 10723$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 10724 10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 10726$as_echo_n "checking for -force_load linker flag... " >&6; } 10727if ${lt_cv_ld_force_load+:} false; then : 10728 $as_echo_n "(cached) " >&6 10729else 10730 lt_cv_ld_force_load=no 10731 cat > conftest.c << _LT_EOF 10732int forced_loaded() { return 2;} 10733_LT_EOF 10734 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 10735 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 10736 echo "$AR cru libconftest.a conftest.o" >&5 10737 $AR cru libconftest.a conftest.o 2>&5 10738 echo "$RANLIB libconftest.a" >&5 10739 $RANLIB libconftest.a 2>&5 10740 cat > conftest.c << _LT_EOF 10741int main() { return 0;} 10742_LT_EOF 10743 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 10744 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10745 _lt_result=$? 10746 if test -s conftest.err && $GREP force_load conftest.err; then 10747 cat conftest.err >&5 10748 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 10749 lt_cv_ld_force_load=yes 10750 else 10751 cat conftest.err >&5 10752 fi 10753 rm -f conftest.err libconftest.a conftest conftest.c 10754 rm -rf conftest.dSYM 10755 10756fi 10757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 10758$as_echo "$lt_cv_ld_force_load" >&6; } 10759 case $host_os in 10760 rhapsody* | darwin1.[012]) 10761 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 10762 darwin1.*) 10763 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10764 darwin*) # darwin 5.x on 10765 # if running on 10.5 or later, the deployment target defaults 10766 # to the OS version, if on x86, and 10.4, the deployment 10767 # target defaults to 10.4. Don't you love it? 10768 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10769 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 10770 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10771 10.[012][,.]*) 10772 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10773 10.*) 10774 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10775 esac 10776 ;; 10777 esac 10778 if test yes = "$lt_cv_apple_cc_single_mod"; then 10779 _lt_dar_single_mod='$single_module' 10780 fi 10781 if test yes = "$lt_cv_ld_exported_symbols_list"; then 10782 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 10783 else 10784 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 10785 fi 10786 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 10787 _lt_dsymutil='~$DSYMUTIL $lib || :' 10788 else 10789 _lt_dsymutil= 10790 fi 10791 ;; 10792 esac 10793 10794# func_munge_path_list VARIABLE PATH 10795# ----------------------------------- 10796# VARIABLE is name of variable containing _space_ separated list of 10797# directories to be munged by the contents of PATH, which is string 10798# having a format: 10799# "DIR[:DIR]:" 10800# string "DIR[ DIR]" will be prepended to VARIABLE 10801# ":DIR[:DIR]" 10802# string "DIR[ DIR]" will be appended to VARIABLE 10803# "DIRP[:DIRP]::[DIRA:]DIRA" 10804# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 10805# "DIRA[ DIRA]" will be appended to VARIABLE 10806# "DIR[:DIR]" 10807# VARIABLE will be replaced by "DIR[ DIR]" 10808func_munge_path_list () 10809{ 10810 case x$2 in 10811 x) 10812 ;; 10813 *:) 10814 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 10815 ;; 10816 x:*) 10817 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 10818 ;; 10819 *::*) 10820 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 10821 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 10822 ;; 10823 *) 10824 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 10825 ;; 10826 esac 10827} 10828 10829for ac_header in dlfcn.h 10830do : 10831 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10832" 10833if test "x$ac_cv_header_dlfcn_h" = xyes; then : 10834 cat >>confdefs.h <<_ACEOF 10835#define HAVE_DLFCN_H 1 10836_ACEOF 10837 10838fi 10839 10840done 10841 10842 10843 10844func_stripname_cnf () 10845{ 10846 case $2 in 10847 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 10848 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 10849 esac 10850} # func_stripname_cnf 10851 10852 10853 10854 10855 10856# Set options 10857 10858 10859 10860 enable_dlopen=no 10861 10862 10863 enable_win32_dll=no 10864 10865 10866 # Check whether --enable-shared was given. 10867if test "${enable_shared+set}" = set; then : 10868 enableval=$enable_shared; p=${PACKAGE-default} 10869 case $enableval in 10870 yes) enable_shared=yes ;; 10871 no) enable_shared=no ;; 10872 *) 10873 enable_shared=no 10874 # Look at the argument we got. We use all the common list separators. 10875 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10876 for pkg in $enableval; do 10877 IFS=$lt_save_ifs 10878 if test "X$pkg" = "X$p"; then 10879 enable_shared=yes 10880 fi 10881 done 10882 IFS=$lt_save_ifs 10883 ;; 10884 esac 10885else 10886 enable_shared=yes 10887fi 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 # Check whether --enable-static was given. 10898if test "${enable_static+set}" = set; then : 10899 enableval=$enable_static; p=${PACKAGE-default} 10900 case $enableval in 10901 yes) enable_static=yes ;; 10902 no) enable_static=no ;; 10903 *) 10904 enable_static=no 10905 # Look at the argument we got. We use all the common list separators. 10906 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10907 for pkg in $enableval; do 10908 IFS=$lt_save_ifs 10909 if test "X$pkg" = "X$p"; then 10910 enable_static=yes 10911 fi 10912 done 10913 IFS=$lt_save_ifs 10914 ;; 10915 esac 10916else 10917 enable_static=yes 10918fi 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929# Check whether --with-pic was given. 10930if test "${with_pic+set}" = set; then : 10931 withval=$with_pic; lt_p=${PACKAGE-default} 10932 case $withval in 10933 yes|no) pic_mode=$withval ;; 10934 *) 10935 pic_mode=default 10936 # Look at the argument we got. We use all the common list separators. 10937 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10938 for lt_pkg in $withval; do 10939 IFS=$lt_save_ifs 10940 if test "X$lt_pkg" = "X$lt_p"; then 10941 pic_mode=yes 10942 fi 10943 done 10944 IFS=$lt_save_ifs 10945 ;; 10946 esac 10947else 10948 pic_mode=default 10949fi 10950 10951 10952 10953 10954 10955 10956 10957 10958 # Check whether --enable-fast-install was given. 10959if test "${enable_fast_install+set}" = set; then : 10960 enableval=$enable_fast_install; p=${PACKAGE-default} 10961 case $enableval in 10962 yes) enable_fast_install=yes ;; 10963 no) enable_fast_install=no ;; 10964 *) 10965 enable_fast_install=no 10966 # Look at the argument we got. We use all the common list separators. 10967 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10968 for pkg in $enableval; do 10969 IFS=$lt_save_ifs 10970 if test "X$pkg" = "X$p"; then 10971 enable_fast_install=yes 10972 fi 10973 done 10974 IFS=$lt_save_ifs 10975 ;; 10976 esac 10977else 10978 enable_fast_install=yes 10979fi 10980 10981 10982 10983 10984 10985 10986 10987 10988 shared_archive_member_spec= 10989case $host,$enable_shared in 10990power*-*-aix[5-9]*,yes) 10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 10992$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 10993 10994# Check whether --with-aix-soname was given. 10995if test "${with_aix_soname+set}" = set; then : 10996 withval=$with_aix_soname; case $withval in 10997 aix|svr4|both) 10998 ;; 10999 *) 11000 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 11001 ;; 11002 esac 11003 lt_cv_with_aix_soname=$with_aix_soname 11004else 11005 if ${lt_cv_with_aix_soname+:} false; then : 11006 $as_echo_n "(cached) " >&6 11007else 11008 lt_cv_with_aix_soname=aix 11009fi 11010 11011 with_aix_soname=$lt_cv_with_aix_soname 11012fi 11013 11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 11015$as_echo "$with_aix_soname" >&6; } 11016 if test aix != "$with_aix_soname"; then 11017 # For the AIX way of multilib, we name the shared archive member 11018 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 11019 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 11020 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 11021 # the AIX toolchain works better with OBJECT_MODE set (default 32). 11022 if test 64 = "${OBJECT_MODE-32}"; then 11023 shared_archive_member_spec=shr_64 11024 else 11025 shared_archive_member_spec=shr 11026 fi 11027 fi 11028 ;; 11029*) 11030 with_aix_soname=aix 11031 ;; 11032esac 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043# This can be used to rebuild libtool when needed 11044LIBTOOL_DEPS=$ltmain 11045 11046# Always use our own libtool. 11047LIBTOOL='$(SHELL) $(top_builddir)/libtool' 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078test -z "$LN_S" && LN_S="ln -s" 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093if test -n "${ZSH_VERSION+set}"; then 11094 setopt NO_GLOB_SUBST 11095fi 11096 11097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 11098$as_echo_n "checking for objdir... " >&6; } 11099if ${lt_cv_objdir+:} false; then : 11100 $as_echo_n "(cached) " >&6 11101else 11102 rm -f .libs 2>/dev/null 11103mkdir .libs 2>/dev/null 11104if test -d .libs; then 11105 lt_cv_objdir=.libs 11106else 11107 # MS-DOS does not allow filenames that begin with a dot. 11108 lt_cv_objdir=_libs 11109fi 11110rmdir .libs 2>/dev/null 11111fi 11112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 11113$as_echo "$lt_cv_objdir" >&6; } 11114objdir=$lt_cv_objdir 11115 11116 11117 11118 11119 11120cat >>confdefs.h <<_ACEOF 11121#define LT_OBJDIR "$lt_cv_objdir/" 11122_ACEOF 11123 11124 11125 11126 11127case $host_os in 11128aix3*) 11129 # AIX sometimes has problems with the GCC collect2 program. For some 11130 # reason, if we set the COLLECT_NAMES environment variable, the problems 11131 # vanish in a puff of smoke. 11132 if test set != "${COLLECT_NAMES+set}"; then 11133 COLLECT_NAMES= 11134 export COLLECT_NAMES 11135 fi 11136 ;; 11137esac 11138 11139# Global variables: 11140ofile=libtool 11141can_build_shared=yes 11142 11143# All known linkers require a '.a' archive for static linking (except MSVC, 11144# which needs '.lib'). 11145libext=a 11146 11147with_gnu_ld=$lt_cv_prog_gnu_ld 11148 11149old_CC=$CC 11150old_CFLAGS=$CFLAGS 11151 11152# Set sane defaults for various variables 11153test -z "$CC" && CC=cc 11154test -z "$LTCC" && LTCC=$CC 11155test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 11156test -z "$LD" && LD=ld 11157test -z "$ac_objext" && ac_objext=o 11158 11159func_cc_basename $compiler 11160cc_basename=$func_cc_basename_result 11161 11162 11163# Only perform the check for file, if the check method requires it 11164test -z "$MAGIC_CMD" && MAGIC_CMD=file 11165case $deplibs_check_method in 11166file_magic*) 11167 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 11169$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 11170if ${lt_cv_path_MAGIC_CMD+:} false; then : 11171 $as_echo_n "(cached) " >&6 11172else 11173 case $MAGIC_CMD in 11174[\\/*] | ?:[\\/]*) 11175 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11176 ;; 11177*) 11178 lt_save_MAGIC_CMD=$MAGIC_CMD 11179 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11180 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11181 for ac_dir in $ac_dummy; do 11182 IFS=$lt_save_ifs 11183 test -z "$ac_dir" && ac_dir=. 11184 if test -f "$ac_dir/${ac_tool_prefix}file"; then 11185 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 11186 if test -n "$file_magic_test_file"; then 11187 case $deplibs_check_method in 11188 "file_magic "*) 11189 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11190 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11191 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11192 $EGREP "$file_magic_regex" > /dev/null; then 11193 : 11194 else 11195 cat <<_LT_EOF 1>&2 11196 11197*** Warning: the command libtool uses to detect shared libraries, 11198*** $file_magic_cmd, produces output that libtool cannot recognize. 11199*** The result is that libtool may fail to recognize shared libraries 11200*** as such. This will affect the creation of libtool libraries that 11201*** depend on shared libraries, but programs linked with such libtool 11202*** libraries will work regardless of this problem. Nevertheless, you 11203*** may want to report the problem to your system manager and/or to 11204*** [email protected] 11205 11206_LT_EOF 11207 fi ;; 11208 esac 11209 fi 11210 break 11211 fi 11212 done 11213 IFS=$lt_save_ifs 11214 MAGIC_CMD=$lt_save_MAGIC_CMD 11215 ;; 11216esac 11217fi 11218 11219MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11220if test -n "$MAGIC_CMD"; then 11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11222$as_echo "$MAGIC_CMD" >&6; } 11223else 11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11225$as_echo "no" >&6; } 11226fi 11227 11228 11229 11230 11231 11232if test -z "$lt_cv_path_MAGIC_CMD"; then 11233 if test -n "$ac_tool_prefix"; then 11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 11235$as_echo_n "checking for file... " >&6; } 11236if ${lt_cv_path_MAGIC_CMD+:} false; then : 11237 $as_echo_n "(cached) " >&6 11238else 11239 case $MAGIC_CMD in 11240[\\/*] | ?:[\\/]*) 11241 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11242 ;; 11243*) 11244 lt_save_MAGIC_CMD=$MAGIC_CMD 11245 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11246 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11247 for ac_dir in $ac_dummy; do 11248 IFS=$lt_save_ifs 11249 test -z "$ac_dir" && ac_dir=. 11250 if test -f "$ac_dir/file"; then 11251 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 11252 if test -n "$file_magic_test_file"; then 11253 case $deplibs_check_method in 11254 "file_magic "*) 11255 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11256 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11257 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11258 $EGREP "$file_magic_regex" > /dev/null; then 11259 : 11260 else 11261 cat <<_LT_EOF 1>&2 11262 11263*** Warning: the command libtool uses to detect shared libraries, 11264*** $file_magic_cmd, produces output that libtool cannot recognize. 11265*** The result is that libtool may fail to recognize shared libraries 11266*** as such. This will affect the creation of libtool libraries that 11267*** depend on shared libraries, but programs linked with such libtool 11268*** libraries will work regardless of this problem. Nevertheless, you 11269*** may want to report the problem to your system manager and/or to 11270*** [email protected] 11271 11272_LT_EOF 11273 fi ;; 11274 esac 11275 fi 11276 break 11277 fi 11278 done 11279 IFS=$lt_save_ifs 11280 MAGIC_CMD=$lt_save_MAGIC_CMD 11281 ;; 11282esac 11283fi 11284 11285MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11286if test -n "$MAGIC_CMD"; then 11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11288$as_echo "$MAGIC_CMD" >&6; } 11289else 11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11291$as_echo "no" >&6; } 11292fi 11293 11294 11295 else 11296 MAGIC_CMD=: 11297 fi 11298fi 11299 11300 fi 11301 ;; 11302esac 11303 11304# Use C for the default configuration in the libtool script 11305 11306lt_save_CC=$CC 11307ac_ext=c 11308ac_cpp='$CPP $CPPFLAGS' 11309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11311ac_compiler_gnu=$ac_cv_c_compiler_gnu 11312 11313 11314# Source file extension for C test sources. 11315ac_ext=c 11316 11317# Object file extension for compiled C test sources. 11318objext=o 11319objext=$objext 11320 11321# Code to be used in simple compile tests 11322lt_simple_compile_test_code="int some_variable = 0;" 11323 11324# Code to be used in simple link tests 11325lt_simple_link_test_code='int main(){return(0);}' 11326 11327 11328 11329 11330 11331 11332 11333# If no C compiler was specified, use CC. 11334LTCC=${LTCC-"$CC"} 11335 11336# If no C compiler flags were specified, use CFLAGS. 11337LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11338 11339# Allow CC to be a program name with arguments. 11340compiler=$CC 11341 11342# Save the default compiler, since it gets overwritten when the other 11343# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 11344compiler_DEFAULT=$CC 11345 11346# save warnings/boilerplate of simple test code 11347ac_outfile=conftest.$ac_objext 11348echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11349eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11350_lt_compiler_boilerplate=`cat conftest.err` 11351$RM conftest* 11352 11353ac_outfile=conftest.$ac_objext 11354echo "$lt_simple_link_test_code" >conftest.$ac_ext 11355eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11356_lt_linker_boilerplate=`cat conftest.err` 11357$RM -r conftest* 11358 11359 11360## CAVEAT EMPTOR: 11361## There is no encapsulation within the following macros, do not change 11362## the running order or otherwise move them around unless you know exactly 11363## what you are doing... 11364if test -n "$compiler"; then 11365 11366lt_prog_compiler_no_builtin_flag= 11367 11368if test yes = "$GCC"; then 11369 case $cc_basename in 11370 nvcc*) 11371 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 11372 *) 11373 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 11374 esac 11375 11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 11377$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 11378if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 11379 $as_echo_n "(cached) " >&6 11380else 11381 lt_cv_prog_compiler_rtti_exceptions=no 11382 ac_outfile=conftest.$ac_objext 11383 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11384 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 11385 # Insert the option either (1) after the last *FLAGS variable, or 11386 # (2) before a word containing "conftest.", or (3) at the end. 11387 # Note that $ac_compile itself does not contain backslashes and begins 11388 # with a dollar sign (not a hyphen), so the echo should work correctly. 11389 # The option is referenced via a variable to avoid confusing sed. 11390 lt_compile=`echo "$ac_compile" | $SED \ 11391 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11393 -e 's:$: $lt_compiler_flag:'` 11394 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11395 (eval "$lt_compile" 2>conftest.err) 11396 ac_status=$? 11397 cat conftest.err >&5 11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11399 if (exit $ac_status) && test -s "$ac_outfile"; then 11400 # The compiler can only warn and ignore the option if not recognized 11401 # So say no if there are warnings other than the usual output. 11402 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11403 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11404 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11405 lt_cv_prog_compiler_rtti_exceptions=yes 11406 fi 11407 fi 11408 $RM conftest* 11409 11410fi 11411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 11412$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 11413 11414if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 11415 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 11416else 11417 : 11418fi 11419 11420fi 11421 11422 11423 11424 11425 11426 11427 lt_prog_compiler_wl= 11428lt_prog_compiler_pic= 11429lt_prog_compiler_static= 11430 11431 11432 if test yes = "$GCC"; then 11433 lt_prog_compiler_wl='-Wl,' 11434 lt_prog_compiler_static='-static' 11435 11436 case $host_os in 11437 aix*) 11438 # All AIX code is PIC. 11439 if test ia64 = "$host_cpu"; then 11440 # AIX 5 now supports IA64 processor 11441 lt_prog_compiler_static='-Bstatic' 11442 fi 11443 lt_prog_compiler_pic='-fPIC' 11444 ;; 11445 11446 amigaos*) 11447 case $host_cpu in 11448 powerpc) 11449 # see comment about AmigaOS4 .so support 11450 lt_prog_compiler_pic='-fPIC' 11451 ;; 11452 m68k) 11453 # FIXME: we need at least 68020 code to build shared libraries, but 11454 # adding the '-m68020' flag to GCC prevents building anything better, 11455 # like '-m68040'. 11456 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 11457 ;; 11458 esac 11459 ;; 11460 11461 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11462 # PIC is the default for these OSes. 11463 ;; 11464 11465 mingw* | cygwin* | pw32* | os2* | cegcc*) 11466 # This hack is so that the source file can tell whether it is being 11467 # built for inclusion in a dll (and should export symbols for example). 11468 # Although the cygwin gcc ignores -fPIC, still need this for old-style 11469 # (--disable-auto-import) libraries 11470 lt_prog_compiler_pic='-DDLL_EXPORT' 11471 case $host_os in 11472 os2*) 11473 lt_prog_compiler_static='$wl-static' 11474 ;; 11475 esac 11476 ;; 11477 11478 darwin* | rhapsody*) 11479 # PIC is the default on this platform 11480 # Common symbols not allowed in MH_DYLIB files 11481 lt_prog_compiler_pic='-fno-common' 11482 ;; 11483 11484 haiku*) 11485 # PIC is the default for Haiku. 11486 # The "-static" flag exists, but is broken. 11487 lt_prog_compiler_static= 11488 ;; 11489 11490 hpux*) 11491 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 11492 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 11493 # sets the default TLS model and affects inlining. 11494 case $host_cpu in 11495 hppa*64*) 11496 # +Z the default 11497 ;; 11498 *) 11499 lt_prog_compiler_pic='-fPIC' 11500 ;; 11501 esac 11502 ;; 11503 11504 interix[3-9]*) 11505 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11506 # Instead, we relocate shared libraries at runtime. 11507 ;; 11508 11509 msdosdjgpp*) 11510 # Just because we use GCC doesn't mean we suddenly get shared libraries 11511 # on systems that don't support them. 11512 lt_prog_compiler_can_build_shared=no 11513 enable_shared=no 11514 ;; 11515 11516 *nto* | *qnx*) 11517 # QNX uses GNU C++, but need to define -shared option too, otherwise 11518 # it will coredump. 11519 lt_prog_compiler_pic='-fPIC -shared' 11520 ;; 11521 11522 sysv4*MP*) 11523 if test -d /usr/nec; then 11524 lt_prog_compiler_pic=-Kconform_pic 11525 fi 11526 ;; 11527 11528 *) 11529 lt_prog_compiler_pic='-fPIC' 11530 ;; 11531 esac 11532 11533 case $cc_basename in 11534 nvcc*) # Cuda Compiler Driver 2.2 11535 lt_prog_compiler_wl='-Xlinker ' 11536 if test -n "$lt_prog_compiler_pic"; then 11537 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 11538 fi 11539 ;; 11540 esac 11541 else 11542 # PORTME Check for flag to pass linker flags through the system compiler. 11543 case $host_os in 11544 aix*) 11545 lt_prog_compiler_wl='-Wl,' 11546 if test ia64 = "$host_cpu"; then 11547 # AIX 5 now supports IA64 processor 11548 lt_prog_compiler_static='-Bstatic' 11549 else 11550 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 11551 fi 11552 ;; 11553 11554 darwin* | rhapsody*) 11555 # PIC is the default on this platform 11556 # Common symbols not allowed in MH_DYLIB files 11557 lt_prog_compiler_pic='-fno-common' 11558 case $cc_basename in 11559 nagfor*) 11560 # NAG Fortran compiler 11561 lt_prog_compiler_wl='-Wl,-Wl,,' 11562 lt_prog_compiler_pic='-PIC' 11563 lt_prog_compiler_static='-Bstatic' 11564 ;; 11565 esac 11566 ;; 11567 11568 mingw* | cygwin* | pw32* | os2* | cegcc*) 11569 # This hack is so that the source file can tell whether it is being 11570 # built for inclusion in a dll (and should export symbols for example). 11571 lt_prog_compiler_pic='-DDLL_EXPORT' 11572 case $host_os in 11573 os2*) 11574 lt_prog_compiler_static='$wl-static' 11575 ;; 11576 esac 11577 ;; 11578 11579 hpux9* | hpux10* | hpux11*) 11580 lt_prog_compiler_wl='-Wl,' 11581 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11582 # not for PA HP-UX. 11583 case $host_cpu in 11584 hppa*64*|ia64*) 11585 # +Z the default 11586 ;; 11587 *) 11588 lt_prog_compiler_pic='+Z' 11589 ;; 11590 esac 11591 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11592 lt_prog_compiler_static='$wl-a ${wl}archive' 11593 ;; 11594 11595 irix5* | irix6* | nonstopux*) 11596 lt_prog_compiler_wl='-Wl,' 11597 # PIC (with -KPIC) is the default. 11598 lt_prog_compiler_static='-non_shared' 11599 ;; 11600 11601 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11602 case $cc_basename in 11603 # old Intel for x86_64, which still supported -KPIC. 11604 ecc*) 11605 lt_prog_compiler_wl='-Wl,' 11606 lt_prog_compiler_pic='-KPIC' 11607 lt_prog_compiler_static='-static' 11608 ;; 11609 # icc used to be incompatible with GCC. 11610 # ICC 10 doesn't accept -KPIC any more. 11611 icc* | ifort*) 11612 lt_prog_compiler_wl='-Wl,' 11613 lt_prog_compiler_pic='-fPIC' 11614 lt_prog_compiler_static='-static' 11615 ;; 11616 # Lahey Fortran 8.1. 11617 lf95*) 11618 lt_prog_compiler_wl='-Wl,' 11619 lt_prog_compiler_pic='--shared' 11620 lt_prog_compiler_static='--static' 11621 ;; 11622 nagfor*) 11623 # NAG Fortran compiler 11624 lt_prog_compiler_wl='-Wl,-Wl,,' 11625 lt_prog_compiler_pic='-PIC' 11626 lt_prog_compiler_static='-Bstatic' 11627 ;; 11628 tcc*) 11629 # Fabrice Bellard et al's Tiny C Compiler 11630 lt_prog_compiler_wl='-Wl,' 11631 lt_prog_compiler_pic='-fPIC' 11632 lt_prog_compiler_static='-static' 11633 ;; 11634 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 11635 # Portland Group compilers (*not* the Pentium gcc compiler, 11636 # which looks to be a dead project) 11637 lt_prog_compiler_wl='-Wl,' 11638 lt_prog_compiler_pic='-fpic' 11639 lt_prog_compiler_static='-Bstatic' 11640 ;; 11641 ccc*) 11642 lt_prog_compiler_wl='-Wl,' 11643 # All Alpha code is PIC. 11644 lt_prog_compiler_static='-non_shared' 11645 ;; 11646 xl* | bgxl* | bgf* | mpixl*) 11647 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 11648 lt_prog_compiler_wl='-Wl,' 11649 lt_prog_compiler_pic='-qpic' 11650 lt_prog_compiler_static='-qstaticlink' 11651 ;; 11652 *) 11653 case `$CC -V 2>&1 | sed 5q` in 11654 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 11655 # Sun Fortran 8.3 passes all unrecognized flags to the linker 11656 lt_prog_compiler_pic='-KPIC' 11657 lt_prog_compiler_static='-Bstatic' 11658 lt_prog_compiler_wl='' 11659 ;; 11660 *Sun\ F* | *Sun*Fortran*) 11661 lt_prog_compiler_pic='-KPIC' 11662 lt_prog_compiler_static='-Bstatic' 11663 lt_prog_compiler_wl='-Qoption ld ' 11664 ;; 11665 *Sun\ C*) 11666 # Sun C 5.9 11667 lt_prog_compiler_pic='-KPIC' 11668 lt_prog_compiler_static='-Bstatic' 11669 lt_prog_compiler_wl='-Wl,' 11670 ;; 11671 *Intel*\ [CF]*Compiler*) 11672 lt_prog_compiler_wl='-Wl,' 11673 lt_prog_compiler_pic='-fPIC' 11674 lt_prog_compiler_static='-static' 11675 ;; 11676 *Portland\ Group*) 11677 lt_prog_compiler_wl='-Wl,' 11678 lt_prog_compiler_pic='-fpic' 11679 lt_prog_compiler_static='-Bstatic' 11680 ;; 11681 esac 11682 ;; 11683 esac 11684 ;; 11685 11686 newsos6) 11687 lt_prog_compiler_pic='-KPIC' 11688 lt_prog_compiler_static='-Bstatic' 11689 ;; 11690 11691 *nto* | *qnx*) 11692 # QNX uses GNU C++, but need to define -shared option too, otherwise 11693 # it will coredump. 11694 lt_prog_compiler_pic='-fPIC -shared' 11695 ;; 11696 11697 osf3* | osf4* | osf5*) 11698 lt_prog_compiler_wl='-Wl,' 11699 # All OSF/1 code is PIC. 11700 lt_prog_compiler_static='-non_shared' 11701 ;; 11702 11703 rdos*) 11704 lt_prog_compiler_static='-non_shared' 11705 ;; 11706 11707 solaris*) 11708 lt_prog_compiler_pic='-KPIC' 11709 lt_prog_compiler_static='-Bstatic' 11710 case $cc_basename in 11711 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 11712 lt_prog_compiler_wl='-Qoption ld ';; 11713 *) 11714 lt_prog_compiler_wl='-Wl,';; 11715 esac 11716 ;; 11717 11718 sunos4*) 11719 lt_prog_compiler_wl='-Qoption ld ' 11720 lt_prog_compiler_pic='-PIC' 11721 lt_prog_compiler_static='-Bstatic' 11722 ;; 11723 11724 sysv4 | sysv4.2uw2* | sysv4.3*) 11725 lt_prog_compiler_wl='-Wl,' 11726 lt_prog_compiler_pic='-KPIC' 11727 lt_prog_compiler_static='-Bstatic' 11728 ;; 11729 11730 sysv4*MP*) 11731 if test -d /usr/nec; then 11732 lt_prog_compiler_pic='-Kconform_pic' 11733 lt_prog_compiler_static='-Bstatic' 11734 fi 11735 ;; 11736 11737 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11738 lt_prog_compiler_wl='-Wl,' 11739 lt_prog_compiler_pic='-KPIC' 11740 lt_prog_compiler_static='-Bstatic' 11741 ;; 11742 11743 unicos*) 11744 lt_prog_compiler_wl='-Wl,' 11745 lt_prog_compiler_can_build_shared=no 11746 ;; 11747 11748 uts4*) 11749 lt_prog_compiler_pic='-pic' 11750 lt_prog_compiler_static='-Bstatic' 11751 ;; 11752 11753 *) 11754 lt_prog_compiler_can_build_shared=no 11755 ;; 11756 esac 11757 fi 11758 11759case $host_os in 11760 # For platforms that do not support PIC, -DPIC is meaningless: 11761 *djgpp*) 11762 lt_prog_compiler_pic= 11763 ;; 11764 *) 11765 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11766 ;; 11767esac 11768 11769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11770$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11771if ${lt_cv_prog_compiler_pic+:} false; then : 11772 $as_echo_n "(cached) " >&6 11773else 11774 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 11775fi 11776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 11777$as_echo "$lt_cv_prog_compiler_pic" >&6; } 11778lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 11779 11780# 11781# Check to make sure the PIC flag actually works. 11782# 11783if test -n "$lt_prog_compiler_pic"; then 11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 11785$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 11786if ${lt_cv_prog_compiler_pic_works+:} false; then : 11787 $as_echo_n "(cached) " >&6 11788else 11789 lt_cv_prog_compiler_pic_works=no 11790 ac_outfile=conftest.$ac_objext 11791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11792 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 11793 # Insert the option either (1) after the last *FLAGS variable, or 11794 # (2) before a word containing "conftest.", or (3) at the end. 11795 # Note that $ac_compile itself does not contain backslashes and begins 11796 # with a dollar sign (not a hyphen), so the echo should work correctly. 11797 # The option is referenced via a variable to avoid confusing sed. 11798 lt_compile=`echo "$ac_compile" | $SED \ 11799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11801 -e 's:$: $lt_compiler_flag:'` 11802 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11803 (eval "$lt_compile" 2>conftest.err) 11804 ac_status=$? 11805 cat conftest.err >&5 11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11807 if (exit $ac_status) && test -s "$ac_outfile"; then 11808 # The compiler can only warn and ignore the option if not recognized 11809 # So say no if there are warnings other than the usual output. 11810 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11812 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11813 lt_cv_prog_compiler_pic_works=yes 11814 fi 11815 fi 11816 $RM conftest* 11817 11818fi 11819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 11820$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 11821 11822if test yes = "$lt_cv_prog_compiler_pic_works"; then 11823 case $lt_prog_compiler_pic in 11824 "" | " "*) ;; 11825 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 11826 esac 11827else 11828 lt_prog_compiler_pic= 11829 lt_prog_compiler_can_build_shared=no 11830fi 11831 11832fi 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844# 11845# Check to make sure the static flag actually works. 11846# 11847wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 11848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11849$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11850if ${lt_cv_prog_compiler_static_works+:} false; then : 11851 $as_echo_n "(cached) " >&6 11852else 11853 lt_cv_prog_compiler_static_works=no 11854 save_LDFLAGS=$LDFLAGS 11855 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11856 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11857 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11858 # The linker can only warn and ignore the option if not recognized 11859 # So say no if there are warnings 11860 if test -s conftest.err; then 11861 # Append any errors to the config.log. 11862 cat conftest.err 1>&5 11863 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11864 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11865 if diff conftest.exp conftest.er2 >/dev/null; then 11866 lt_cv_prog_compiler_static_works=yes 11867 fi 11868 else 11869 lt_cv_prog_compiler_static_works=yes 11870 fi 11871 fi 11872 $RM -r conftest* 11873 LDFLAGS=$save_LDFLAGS 11874 11875fi 11876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11877$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 11878 11879if test yes = "$lt_cv_prog_compiler_static_works"; then 11880 : 11881else 11882 lt_prog_compiler_static= 11883fi 11884 11885 11886 11887 11888 11889 11890 11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11892$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11893if ${lt_cv_prog_compiler_c_o+:} false; then : 11894 $as_echo_n "(cached) " >&6 11895else 11896 lt_cv_prog_compiler_c_o=no 11897 $RM -r conftest 2>/dev/null 11898 mkdir conftest 11899 cd conftest 11900 mkdir out 11901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11902 11903 lt_compiler_flag="-o out/conftest2.$ac_objext" 11904 # Insert the option either (1) after the last *FLAGS variable, or 11905 # (2) before a word containing "conftest.", or (3) at the end. 11906 # Note that $ac_compile itself does not contain backslashes and begins 11907 # with a dollar sign (not a hyphen), so the echo should work correctly. 11908 lt_compile=`echo "$ac_compile" | $SED \ 11909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11911 -e 's:$: $lt_compiler_flag:'` 11912 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11913 (eval "$lt_compile" 2>out/conftest.err) 11914 ac_status=$? 11915 cat out/conftest.err >&5 11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11917 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11918 then 11919 # The compiler can only warn and ignore the option if not recognized 11920 # So say no if there are warnings 11921 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11922 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11923 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11924 lt_cv_prog_compiler_c_o=yes 11925 fi 11926 fi 11927 chmod u+w . 2>&5 11928 $RM conftest* 11929 # SGI C++ compiler will create directory out/ii_files/ for 11930 # template instantiation 11931 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11932 $RM out/* && rmdir out 11933 cd .. 11934 $RM -r conftest 11935 $RM conftest* 11936 11937fi 11938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11939$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11940 11941 11942 11943 11944 11945 11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11947$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11948if ${lt_cv_prog_compiler_c_o+:} false; then : 11949 $as_echo_n "(cached) " >&6 11950else 11951 lt_cv_prog_compiler_c_o=no 11952 $RM -r conftest 2>/dev/null 11953 mkdir conftest 11954 cd conftest 11955 mkdir out 11956 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11957 11958 lt_compiler_flag="-o out/conftest2.$ac_objext" 11959 # Insert the option either (1) after the last *FLAGS variable, or 11960 # (2) before a word containing "conftest.", or (3) at the end. 11961 # Note that $ac_compile itself does not contain backslashes and begins 11962 # with a dollar sign (not a hyphen), so the echo should work correctly. 11963 lt_compile=`echo "$ac_compile" | $SED \ 11964 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11965 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11966 -e 's:$: $lt_compiler_flag:'` 11967 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11968 (eval "$lt_compile" 2>out/conftest.err) 11969 ac_status=$? 11970 cat out/conftest.err >&5 11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11972 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11973 then 11974 # The compiler can only warn and ignore the option if not recognized 11975 # So say no if there are warnings 11976 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11977 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11978 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11979 lt_cv_prog_compiler_c_o=yes 11980 fi 11981 fi 11982 chmod u+w . 2>&5 11983 $RM conftest* 11984 # SGI C++ compiler will create directory out/ii_files/ for 11985 # template instantiation 11986 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11987 $RM out/* && rmdir out 11988 cd .. 11989 $RM -r conftest 11990 $RM conftest* 11991 11992fi 11993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11994$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11995 11996 11997 11998 11999hard_links=nottested 12000if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 12001 # do not overwrite the value of need_locks provided by the user 12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 12003$as_echo_n "checking if we can lock with hard links... " >&6; } 12004 hard_links=yes 12005 $RM conftest* 12006 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12007 touch conftest.a 12008 ln conftest.a conftest.b 2>&5 || hard_links=no 12009 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 12011$as_echo "$hard_links" >&6; } 12012 if test no = "$hard_links"; then 12013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 12014$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 12015 need_locks=warn 12016 fi 12017else 12018 need_locks=no 12019fi 12020 12021 12022 12023 12024 12025 12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12027$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12028 12029 runpath_var= 12030 allow_undefined_flag= 12031 always_export_symbols=no 12032 archive_cmds= 12033 archive_expsym_cmds= 12034 compiler_needs_object=no 12035 enable_shared_with_static_runtimes=no 12036 export_dynamic_flag_spec= 12037 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12038 hardcode_automatic=no 12039 hardcode_direct=no 12040 hardcode_direct_absolute=no 12041 hardcode_libdir_flag_spec= 12042 hardcode_libdir_separator= 12043 hardcode_minus_L=no 12044 hardcode_shlibpath_var=unsupported 12045 inherit_rpath=no 12046 link_all_deplibs=unknown 12047 module_cmds= 12048 module_expsym_cmds= 12049 old_archive_from_new_cmds= 12050 old_archive_from_expsyms_cmds= 12051 thread_safe_flag_spec= 12052 whole_archive_flag_spec= 12053 # include_expsyms should be a list of space-separated symbols to be *always* 12054 # included in the symbol list 12055 include_expsyms= 12056 # exclude_expsyms can be an extended regexp of symbols to exclude 12057 # it will be wrapped by ' (' and ')$', so one must not match beginning or 12058 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 12059 # as well as any symbol that contains 'd'. 12060 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12061 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12062 # platforms (ab)use it in PIC code, but their linkers get confused if 12063 # the symbol is explicitly referenced. Since portable code cannot 12064 # rely on this symbol name, it's probably fine to never include it in 12065 # preloaded symbol tables. 12066 # Exclude shared library initialization/finalization symbols. 12067 extract_expsyms_cmds= 12068 12069 case $host_os in 12070 cygwin* | mingw* | pw32* | cegcc*) 12071 # FIXME: the MSVC++ port hasn't been tested in a loooong time 12072 # When not using gcc, we currently assume that we are using 12073 # Microsoft Visual C++. 12074 if test yes != "$GCC"; then 12075 with_gnu_ld=no 12076 fi 12077 ;; 12078 interix*) 12079 # we just hope/assume this is gcc and not c89 (= MSVC++) 12080 with_gnu_ld=yes 12081 ;; 12082 openbsd* | bitrig*) 12083 with_gnu_ld=no 12084 ;; 12085 esac 12086 12087 ld_shlibs=yes 12088 12089 # On some targets, GNU ld is compatible enough with the native linker 12090 # that we're better off using the native interface for both. 12091 lt_use_gnu_ld_interface=no 12092 if test yes = "$with_gnu_ld"; then 12093 case $host_os in 12094 aix*) 12095 # The AIX port of GNU ld has always aspired to compatibility 12096 # with the native linker. However, as the warning in the GNU ld 12097 # block says, versions before 2.19.5* couldn't really create working 12098 # shared libraries, regardless of the interface used. 12099 case `$LD -v 2>&1` in 12100 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 12101 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 12102 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 12103 *) 12104 lt_use_gnu_ld_interface=yes 12105 ;; 12106 esac 12107 ;; 12108 *) 12109 lt_use_gnu_ld_interface=yes 12110 ;; 12111 esac 12112 fi 12113 12114 if test yes = "$lt_use_gnu_ld_interface"; then 12115 # If archive_cmds runs LD, not CC, wlarc should be empty 12116 wlarc='$wl' 12117 12118 # Set some defaults for GNU ld with shared library support. These 12119 # are reset later if shared libraries are not supported. Putting them 12120 # here allows them to be overridden if necessary. 12121 runpath_var=LD_RUN_PATH 12122 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12123 export_dynamic_flag_spec='$wl--export-dynamic' 12124 # ancient GNU ld didn't support --whole-archive et. al. 12125 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 12126 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 12127 else 12128 whole_archive_flag_spec= 12129 fi 12130 supports_anon_versioning=no 12131 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 12132 *GNU\ gold*) supports_anon_versioning=yes ;; 12133 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 12134 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 12135 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 12136 *\ 2.11.*) ;; # other 2.11 versions 12137 *) supports_anon_versioning=yes ;; 12138 esac 12139 12140 # See if GNU ld supports shared libraries. 12141 case $host_os in 12142 aix[3-9]*) 12143 # On AIX/PPC, the GNU linker is very broken 12144 if test ia64 != "$host_cpu"; then 12145 ld_shlibs=no 12146 cat <<_LT_EOF 1>&2 12147 12148*** Warning: the GNU linker, at least up to release 2.19, is reported 12149*** to be unable to reliably create shared libraries on AIX. 12150*** Therefore, libtool is disabling shared libraries support. If you 12151*** really care for shared libraries, you may want to install binutils 12152*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 12153*** You will then need to restart the configuration process. 12154 12155_LT_EOF 12156 fi 12157 ;; 12158 12159 amigaos*) 12160 case $host_cpu in 12161 powerpc) 12162 # see comment about AmigaOS4 .so support 12163 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12164 archive_expsym_cmds='' 12165 ;; 12166 m68k) 12167 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)' 12168 hardcode_libdir_flag_spec='-L$libdir' 12169 hardcode_minus_L=yes 12170 ;; 12171 esac 12172 ;; 12173 12174 beos*) 12175 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12176 allow_undefined_flag=unsupported 12177 # Joseph Beckenbach <[email protected]> says some releases of gcc 12178 # support --undefined. This deserves some investigation. FIXME 12179 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12180 else 12181 ld_shlibs=no 12182 fi 12183 ;; 12184 12185 cygwin* | mingw* | pw32* | cegcc*) 12186 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 12187 # as there is no search path for DLLs. 12188 hardcode_libdir_flag_spec='-L$libdir' 12189 export_dynamic_flag_spec='$wl--export-all-symbols' 12190 allow_undefined_flag=unsupported 12191 always_export_symbols=no 12192 enable_shared_with_static_runtimes=yes 12193 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' 12194 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 12195 12196 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12197 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12198 # If the export-symbols file already is a .def file, use it as 12199 # is; otherwise, prepend EXPORTS... 12200 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12201 cp $export_symbols $output_objdir/$soname.def; 12202 else 12203 echo EXPORTS > $output_objdir/$soname.def; 12204 cat $export_symbols >> $output_objdir/$soname.def; 12205 fi~ 12206 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12207 else 12208 ld_shlibs=no 12209 fi 12210 ;; 12211 12212 haiku*) 12213 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12214 link_all_deplibs=yes 12215 ;; 12216 12217 os2*) 12218 hardcode_libdir_flag_spec='-L$libdir' 12219 hardcode_minus_L=yes 12220 allow_undefined_flag=unsupported 12221 shrext_cmds=.dll 12222 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12223 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12224 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12225 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12226 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12227 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12228 emximp -o $lib $output_objdir/$libname.def' 12229 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12230 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12231 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12232 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12233 prefix_cmds="$SED"~ 12234 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12235 prefix_cmds="$prefix_cmds -e 1d"; 12236 fi~ 12237 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12238 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12239 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12240 emximp -o $lib $output_objdir/$libname.def' 12241 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12242 enable_shared_with_static_runtimes=yes 12243 ;; 12244 12245 interix[3-9]*) 12246 hardcode_direct=no 12247 hardcode_shlibpath_var=no 12248 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12249 export_dynamic_flag_spec='$wl-E' 12250 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12251 # Instead, shared libraries are loaded at an image base (0x10000000 by 12252 # default) and relocated if they conflict, which is a slow very memory 12253 # consuming and fragmenting process. To avoid this, we pick a random, 12254 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12255 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12256 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12257 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' 12258 ;; 12259 12260 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 12261 tmp_diet=no 12262 if test linux-dietlibc = "$host_os"; then 12263 case $cc_basename in 12264 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 12265 esac 12266 fi 12267 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 12268 && test no = "$tmp_diet" 12269 then 12270 tmp_addflag=' $pic_flag' 12271 tmp_sharedflag='-shared' 12272 case $cc_basename,$host_cpu in 12273 pgcc*) # Portland Group C compiler 12274 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' 12275 tmp_addflag=' $pic_flag' 12276 ;; 12277 pgf77* | pgf90* | pgf95* | pgfortran*) 12278 # Portland Group f77 and f90 compilers 12279 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' 12280 tmp_addflag=' $pic_flag -Mnomain' ;; 12281 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 12282 tmp_addflag=' -i_dynamic' ;; 12283 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 12284 tmp_addflag=' -i_dynamic -nofor_main' ;; 12285 ifc* | ifort*) # Intel Fortran compiler 12286 tmp_addflag=' -nofor_main' ;; 12287 lf95*) # Lahey Fortran 8.1 12288 whole_archive_flag_spec= 12289 tmp_sharedflag='--shared' ;; 12290 nagfor*) # NAGFOR 5.3 12291 tmp_sharedflag='-Wl,-shared' ;; 12292 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 12293 tmp_sharedflag='-qmkshrobj' 12294 tmp_addflag= ;; 12295 nvcc*) # Cuda Compiler Driver 2.2 12296 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' 12297 compiler_needs_object=yes 12298 ;; 12299 esac 12300 case `$CC -V 2>&1 | sed 5q` in 12301 *Sun\ C*) # Sun C 5.9 12302 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' 12303 compiler_needs_object=yes 12304 tmp_sharedflag='-G' ;; 12305 *Sun\ F*) # Sun Fortran 8.3 12306 tmp_sharedflag='-G' ;; 12307 esac 12308 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12309 12310 if test yes = "$supports_anon_versioning"; then 12311 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12312 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12313 echo "local: *; };" >> $output_objdir/$libname.ver~ 12314 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 12315 fi 12316 12317 case $cc_basename in 12318 tcc*) 12319 export_dynamic_flag_spec='-rdynamic' 12320 ;; 12321 xlf* | bgf* | bgxlf* | mpixlf*) 12322 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 12323 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 12324 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12325 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 12326 if test yes = "$supports_anon_versioning"; then 12327 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12328 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12329 echo "local: *; };" >> $output_objdir/$libname.ver~ 12330 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 12331 fi 12332 ;; 12333 esac 12334 else 12335 ld_shlibs=no 12336 fi 12337 ;; 12338 12339 netbsd*) 12340 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12341 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 12342 wlarc= 12343 else 12344 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12345 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12346 fi 12347 ;; 12348 12349 solaris*) 12350 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 12351 ld_shlibs=no 12352 cat <<_LT_EOF 1>&2 12353 12354*** Warning: The releases 2.8.* of the GNU linker cannot reliably 12355*** create shared libraries on Solaris systems. Therefore, libtool 12356*** is disabling shared libraries support. We urge you to upgrade GNU 12357*** binutils to release 2.9.1 or newer. Another option is to modify 12358*** your PATH or compiler configuration so that the native linker is 12359*** used, and then restart. 12360 12361_LT_EOF 12362 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12363 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12364 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12365 else 12366 ld_shlibs=no 12367 fi 12368 ;; 12369 12370 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 12371 case `$LD -v 2>&1` in 12372 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 12373 ld_shlibs=no 12374 cat <<_LT_EOF 1>&2 12375 12376*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 12377*** reliably create shared libraries on SCO systems. Therefore, libtool 12378*** is disabling shared libraries support. We urge you to upgrade GNU 12379*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 12380*** your PATH or compiler configuration so that the native linker is 12381*** used, and then restart. 12382 12383_LT_EOF 12384 ;; 12385 *) 12386 # For security reasons, it is highly recommended that you always 12387 # use absolute paths for naming shared libraries, and exclude the 12388 # DT_RUNPATH tag from executables and libraries. But doing so 12389 # requires that you compile everything twice, which is a pain. 12390 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12391 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12392 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12393 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12394 else 12395 ld_shlibs=no 12396 fi 12397 ;; 12398 esac 12399 ;; 12400 12401 sunos4*) 12402 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12403 wlarc= 12404 hardcode_direct=yes 12405 hardcode_shlibpath_var=no 12406 ;; 12407 12408 *) 12409 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12410 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12411 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12412 else 12413 ld_shlibs=no 12414 fi 12415 ;; 12416 esac 12417 12418 if test no = "$ld_shlibs"; then 12419 runpath_var= 12420 hardcode_libdir_flag_spec= 12421 export_dynamic_flag_spec= 12422 whole_archive_flag_spec= 12423 fi 12424 else 12425 # PORTME fill in a description of your system's linker (not GNU ld) 12426 case $host_os in 12427 aix3*) 12428 allow_undefined_flag=unsupported 12429 always_export_symbols=yes 12430 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' 12431 # Note: this linker hardcodes the directories in LIBPATH if there 12432 # are no directories specified by -L. 12433 hardcode_minus_L=yes 12434 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 12435 # Neither direct hardcoding nor static linking is supported with a 12436 # broken collect2. 12437 hardcode_direct=unsupported 12438 fi 12439 ;; 12440 12441 aix[4-9]*) 12442 if test ia64 = "$host_cpu"; then 12443 # On IA64, the linker does run time linking by default, so we don't 12444 # have to do anything special. 12445 aix_use_runtimelinking=no 12446 exp_sym_flag='-Bexport' 12447 no_entry_flag= 12448 else 12449 # If we're using GNU nm, then we don't want the "-C" option. 12450 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 12451 # Without the "-l" option, or with the "-B" option, AIX nm treats 12452 # weak defined symbols like other global defined symbols, whereas 12453 # GNU nm marks them as "W". 12454 # While the 'weak' keyword is ignored in the Export File, we need 12455 # it in the Import File for the 'aix-soname' feature, so we have 12456 # to replace the "-B" option with "-P" for AIX nm. 12457 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 12458 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' 12459 else 12460 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' 12461 fi 12462 aix_use_runtimelinking=no 12463 12464 # Test if we are trying to use run time linking or normal 12465 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12466 # have runtime linking enabled, and use it for executables. 12467 # For shared libraries, we enable/disable runtime linking 12468 # depending on the kind of the shared library created - 12469 # when "with_aix_soname,aix_use_runtimelinking" is: 12470 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 12471 # "aix,yes" lib.so shared, rtl:yes, for executables 12472 # lib.a static archive 12473 # "both,no" lib.so.V(shr.o) shared, rtl:yes 12474 # lib.a(lib.so.V) shared, rtl:no, for executables 12475 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 12476 # lib.a(lib.so.V) shared, rtl:no 12477 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 12478 # lib.a static archive 12479 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12480 for ld_flag in $LDFLAGS; do 12481 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 12482 aix_use_runtimelinking=yes 12483 break 12484 fi 12485 done 12486 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 12487 # With aix-soname=svr4, we create the lib.so.V shared archives only, 12488 # so we don't have lib.a shared libs to link our executables. 12489 # We have to force runtime linking in this case. 12490 aix_use_runtimelinking=yes 12491 LDFLAGS="$LDFLAGS -Wl,-brtl" 12492 fi 12493 ;; 12494 esac 12495 12496 exp_sym_flag='-bexport' 12497 no_entry_flag='-bnoentry' 12498 fi 12499 12500 # When large executables or shared objects are built, AIX ld can 12501 # have problems creating the table of contents. If linking a library 12502 # or program results in "error TOC overflow" add -mminimal-toc to 12503 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12504 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12505 12506 archive_cmds='' 12507 hardcode_direct=yes 12508 hardcode_direct_absolute=yes 12509 hardcode_libdir_separator=':' 12510 link_all_deplibs=yes 12511 file_list_spec='$wl-f,' 12512 case $with_aix_soname,$aix_use_runtimelinking in 12513 aix,*) ;; # traditional, no import file 12514 svr4,* | *,yes) # use import file 12515 # The Import File defines what to hardcode. 12516 hardcode_direct=no 12517 hardcode_direct_absolute=no 12518 ;; 12519 esac 12520 12521 if test yes = "$GCC"; then 12522 case $host_os in aix4.[012]|aix4.[012].*) 12523 # We only want to do this on AIX 4.2 and lower, the check 12524 # below for broken collect2 doesn't work under 4.3+ 12525 collect2name=`$CC -print-prog-name=collect2` 12526 if test -f "$collect2name" && 12527 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12528 then 12529 # We have reworked collect2 12530 : 12531 else 12532 # We have old collect2 12533 hardcode_direct=unsupported 12534 # It fails to find uninstalled libraries when the uninstalled 12535 # path is not listed in the libpath. Setting hardcode_minus_L 12536 # to unsupported forces relinking 12537 hardcode_minus_L=yes 12538 hardcode_libdir_flag_spec='-L$libdir' 12539 hardcode_libdir_separator= 12540 fi 12541 ;; 12542 esac 12543 shared_flag='-shared' 12544 if test yes = "$aix_use_runtimelinking"; then 12545 shared_flag="$shared_flag "'$wl-G' 12546 fi 12547 # Need to ensure runtime linking is disabled for the traditional 12548 # shared library, or the linker may eventually find shared libraries 12549 # /with/ Import File - we do not want to mix them. 12550 shared_flag_aix='-shared' 12551 shared_flag_svr4='-shared $wl-G' 12552 else 12553 # not using gcc 12554 if test ia64 = "$host_cpu"; then 12555 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12556 # chokes on -Wl,-G. The following line is correct: 12557 shared_flag='-G' 12558 else 12559 if test yes = "$aix_use_runtimelinking"; then 12560 shared_flag='$wl-G' 12561 else 12562 shared_flag='$wl-bM:SRE' 12563 fi 12564 shared_flag_aix='$wl-bM:SRE' 12565 shared_flag_svr4='$wl-G' 12566 fi 12567 fi 12568 12569 export_dynamic_flag_spec='$wl-bexpall' 12570 # It seems that -bexpall does not export symbols beginning with 12571 # underscore (_), so it is better to generate a list of symbols to export. 12572 always_export_symbols=yes 12573 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 12574 # Warning - without using the other runtime loading flags (-brtl), 12575 # -berok will link without error, but may produce a broken library. 12576 allow_undefined_flag='-berok' 12577 # Determine the default libpath from the value encoded in an 12578 # empty executable. 12579 if test set = "${lt_cv_aix_libpath+set}"; then 12580 aix_libpath=$lt_cv_aix_libpath 12581else 12582 if ${lt_cv_aix_libpath_+:} false; then : 12583 $as_echo_n "(cached) " >&6 12584else 12585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12586/* end confdefs.h. */ 12587 12588int 12589main () 12590{ 12591 12592 ; 12593 return 0; 12594} 12595_ACEOF 12596if ac_fn_c_try_link "$LINENO"; then : 12597 12598 lt_aix_libpath_sed=' 12599 /Import File Strings/,/^$/ { 12600 /^0/ { 12601 s/^0 *\([^ ]*\) *$/\1/ 12602 p 12603 } 12604 }' 12605 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12606 # Check for a 64-bit object if we didn't find anything. 12607 if test -z "$lt_cv_aix_libpath_"; then 12608 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12609 fi 12610fi 12611rm -f core conftest.err conftest.$ac_objext \ 12612 conftest$ac_exeext conftest.$ac_ext 12613 if test -z "$lt_cv_aix_libpath_"; then 12614 lt_cv_aix_libpath_=/usr/lib:/lib 12615 fi 12616 12617fi 12618 12619 aix_libpath=$lt_cv_aix_libpath_ 12620fi 12621 12622 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12623 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 12624 else 12625 if test ia64 = "$host_cpu"; then 12626 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 12627 allow_undefined_flag="-z nodefs" 12628 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" 12629 else 12630 # Determine the default libpath from the value encoded in an 12631 # empty executable. 12632 if test set = "${lt_cv_aix_libpath+set}"; then 12633 aix_libpath=$lt_cv_aix_libpath 12634else 12635 if ${lt_cv_aix_libpath_+:} false; then : 12636 $as_echo_n "(cached) " >&6 12637else 12638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12639/* end confdefs.h. */ 12640 12641int 12642main () 12643{ 12644 12645 ; 12646 return 0; 12647} 12648_ACEOF 12649if ac_fn_c_try_link "$LINENO"; then : 12650 12651 lt_aix_libpath_sed=' 12652 /Import File Strings/,/^$/ { 12653 /^0/ { 12654 s/^0 *\([^ ]*\) *$/\1/ 12655 p 12656 } 12657 }' 12658 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12659 # Check for a 64-bit object if we didn't find anything. 12660 if test -z "$lt_cv_aix_libpath_"; then 12661 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12662 fi 12663fi 12664rm -f core conftest.err conftest.$ac_objext \ 12665 conftest$ac_exeext conftest.$ac_ext 12666 if test -z "$lt_cv_aix_libpath_"; then 12667 lt_cv_aix_libpath_=/usr/lib:/lib 12668 fi 12669 12670fi 12671 12672 aix_libpath=$lt_cv_aix_libpath_ 12673fi 12674 12675 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12676 # Warning - without using the other run time loading flags, 12677 # -berok will link without error, but may produce a broken library. 12678 no_undefined_flag=' $wl-bernotok' 12679 allow_undefined_flag=' $wl-berok' 12680 if test yes = "$with_gnu_ld"; then 12681 # We only use this code for GNU lds that support --whole-archive. 12682 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 12683 else 12684 # Exported symbols can be pulled into shared objects from archives 12685 whole_archive_flag_spec='$convenience' 12686 fi 12687 archive_cmds_need_lc=yes 12688 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 12689 # -brtl affects multiple linker settings, -berok does not and is overridden later 12690 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 12691 if test svr4 != "$with_aix_soname"; then 12692 # This is similar to how AIX traditionally builds its shared libraries. 12693 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' 12694 fi 12695 if test aix != "$with_aix_soname"; then 12696 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' 12697 else 12698 # used by -dlpreopen to get the symbols 12699 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 12700 fi 12701 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 12702 fi 12703 fi 12704 ;; 12705 12706 amigaos*) 12707 case $host_cpu in 12708 powerpc) 12709 # see comment about AmigaOS4 .so support 12710 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12711 archive_expsym_cmds='' 12712 ;; 12713 m68k) 12714 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)' 12715 hardcode_libdir_flag_spec='-L$libdir' 12716 hardcode_minus_L=yes 12717 ;; 12718 esac 12719 ;; 12720 12721 bsdi[45]*) 12722 export_dynamic_flag_spec=-rdynamic 12723 ;; 12724 12725 cygwin* | mingw* | pw32* | cegcc*) 12726 # When not using gcc, we currently assume that we are using 12727 # Microsoft Visual C++. 12728 # hardcode_libdir_flag_spec is actually meaningless, as there is 12729 # no search path for DLLs. 12730 case $cc_basename in 12731 cl*) 12732 # Native MSVC 12733 hardcode_libdir_flag_spec=' ' 12734 allow_undefined_flag=unsupported 12735 always_export_symbols=yes 12736 file_list_spec='@' 12737 # Tell ltmain to make .lib files, not .a files. 12738 libext=lib 12739 # Tell ltmain to make .dll files, not .so files. 12740 shrext_cmds=.dll 12741 # FIXME: Setting linknames here is a bad hack. 12742 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 12743 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12744 cp "$export_symbols" "$output_objdir/$soname.def"; 12745 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 12746 else 12747 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 12748 fi~ 12749 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12750 linknames=' 12751 # The linker will not automatically build a static lib if we build a DLL. 12752 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 12753 enable_shared_with_static_runtimes=yes 12754 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 12755 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12756 # Don't use ranlib 12757 old_postinstall_cmds='chmod 644 $oldlib' 12758 postlink_cmds='lt_outputfile="@OUTPUT@"~ 12759 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12760 case $lt_outputfile in 12761 *.exe|*.EXE) ;; 12762 *) 12763 lt_outputfile=$lt_outputfile.exe 12764 lt_tool_outputfile=$lt_tool_outputfile.exe 12765 ;; 12766 esac~ 12767 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 12768 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12769 $RM "$lt_outputfile.manifest"; 12770 fi' 12771 ;; 12772 *) 12773 # Assume MSVC wrapper 12774 hardcode_libdir_flag_spec=' ' 12775 allow_undefined_flag=unsupported 12776 # Tell ltmain to make .lib files, not .a files. 12777 libext=lib 12778 # Tell ltmain to make .dll files, not .so files. 12779 shrext_cmds=.dll 12780 # FIXME: Setting linknames here is a bad hack. 12781 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 12782 # The linker will automatically build a .lib file if we build a DLL. 12783 old_archive_from_new_cmds='true' 12784 # FIXME: Should let the user specify the lib program. 12785 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 12786 enable_shared_with_static_runtimes=yes 12787 ;; 12788 esac 12789 ;; 12790 12791 darwin* | rhapsody*) 12792 12793 12794 archive_cmds_need_lc=no 12795 hardcode_direct=no 12796 hardcode_automatic=yes 12797 hardcode_shlibpath_var=unsupported 12798 if test yes = "$lt_cv_ld_force_load"; then 12799 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\"`' 12800 12801 else 12802 whole_archive_flag_spec='' 12803 fi 12804 link_all_deplibs=yes 12805 allow_undefined_flag=$_lt_dar_allow_undefined 12806 case $cc_basename in 12807 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 12808 *) _lt_dar_can_shared=$GCC ;; 12809 esac 12810 if test yes = "$_lt_dar_can_shared"; then 12811 output_verbose_link_cmd=func_echo_all 12812 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 12813 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 12814 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" 12815 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" 12816 12817 else 12818 ld_shlibs=no 12819 fi 12820 12821 ;; 12822 12823 dgux*) 12824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12825 hardcode_libdir_flag_spec='-L$libdir' 12826 hardcode_shlibpath_var=no 12827 ;; 12828 12829 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12830 # support. Future versions do this automatically, but an explicit c++rt0.o 12831 # does not break anything, and helps significantly (at the cost of a little 12832 # extra space). 12833 freebsd2.2*) 12834 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12835 hardcode_libdir_flag_spec='-R$libdir' 12836 hardcode_direct=yes 12837 hardcode_shlibpath_var=no 12838 ;; 12839 12840 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12841 freebsd2.*) 12842 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12843 hardcode_direct=yes 12844 hardcode_minus_L=yes 12845 hardcode_shlibpath_var=no 12846 ;; 12847 12848 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12849 freebsd* | dragonfly*) 12850 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12851 hardcode_libdir_flag_spec='-R$libdir' 12852 hardcode_direct=yes 12853 hardcode_shlibpath_var=no 12854 ;; 12855 12856 hpux9*) 12857 if test yes = "$GCC"; then 12858 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' 12859 else 12860 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' 12861 fi 12862 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12863 hardcode_libdir_separator=: 12864 hardcode_direct=yes 12865 12866 # hardcode_minus_L: Not really in the search PATH, 12867 # but as the default location of the library. 12868 hardcode_minus_L=yes 12869 export_dynamic_flag_spec='$wl-E' 12870 ;; 12871 12872 hpux10*) 12873 if test yes,no = "$GCC,$with_gnu_ld"; then 12874 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12875 else 12876 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12877 fi 12878 if test no = "$with_gnu_ld"; then 12879 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12880 hardcode_libdir_separator=: 12881 hardcode_direct=yes 12882 hardcode_direct_absolute=yes 12883 export_dynamic_flag_spec='$wl-E' 12884 # hardcode_minus_L: Not really in the search PATH, 12885 # but as the default location of the library. 12886 hardcode_minus_L=yes 12887 fi 12888 ;; 12889 12890 hpux11*) 12891 if test yes,no = "$GCC,$with_gnu_ld"; then 12892 case $host_cpu in 12893 hppa*64*) 12894 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12895 ;; 12896 ia64*) 12897 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12898 ;; 12899 *) 12900 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12901 ;; 12902 esac 12903 else 12904 case $host_cpu in 12905 hppa*64*) 12906 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12907 ;; 12908 ia64*) 12909 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12910 ;; 12911 *) 12912 12913 # Older versions of the 11.00 compiler do not understand -b yet 12914 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 12916$as_echo_n "checking if $CC understands -b... " >&6; } 12917if ${lt_cv_prog_compiler__b+:} false; then : 12918 $as_echo_n "(cached) " >&6 12919else 12920 lt_cv_prog_compiler__b=no 12921 save_LDFLAGS=$LDFLAGS 12922 LDFLAGS="$LDFLAGS -b" 12923 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12924 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12925 # The linker can only warn and ignore the option if not recognized 12926 # So say no if there are warnings 12927 if test -s conftest.err; then 12928 # Append any errors to the config.log. 12929 cat conftest.err 1>&5 12930 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12932 if diff conftest.exp conftest.er2 >/dev/null; then 12933 lt_cv_prog_compiler__b=yes 12934 fi 12935 else 12936 lt_cv_prog_compiler__b=yes 12937 fi 12938 fi 12939 $RM -r conftest* 12940 LDFLAGS=$save_LDFLAGS 12941 12942fi 12943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 12944$as_echo "$lt_cv_prog_compiler__b" >&6; } 12945 12946if test yes = "$lt_cv_prog_compiler__b"; then 12947 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12948else 12949 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12950fi 12951 12952 ;; 12953 esac 12954 fi 12955 if test no = "$with_gnu_ld"; then 12956 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12957 hardcode_libdir_separator=: 12958 12959 case $host_cpu in 12960 hppa*64*|ia64*) 12961 hardcode_direct=no 12962 hardcode_shlibpath_var=no 12963 ;; 12964 *) 12965 hardcode_direct=yes 12966 hardcode_direct_absolute=yes 12967 export_dynamic_flag_spec='$wl-E' 12968 12969 # hardcode_minus_L: Not really in the search PATH, 12970 # but as the default location of the library. 12971 hardcode_minus_L=yes 12972 ;; 12973 esac 12974 fi 12975 ;; 12976 12977 irix5* | irix6* | nonstopux*) 12978 if test yes = "$GCC"; then 12979 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' 12980 # Try to use the -exported_symbol ld option, if it does not 12981 # work, assume that -exports_file does not work either and 12982 # implicitly export all symbols. 12983 # This should be the same for all languages, so no per-tag cache variable. 12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 12985$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 12986if ${lt_cv_irix_exported_symbol+:} false; then : 12987 $as_echo_n "(cached) " >&6 12988else 12989 save_LDFLAGS=$LDFLAGS 12990 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 12991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12992/* end confdefs.h. */ 12993int foo (void) { return 0; } 12994_ACEOF 12995if ac_fn_c_try_link "$LINENO"; then : 12996 lt_cv_irix_exported_symbol=yes 12997else 12998 lt_cv_irix_exported_symbol=no 12999fi 13000rm -f core conftest.err conftest.$ac_objext \ 13001 conftest$ac_exeext conftest.$ac_ext 13002 LDFLAGS=$save_LDFLAGS 13003fi 13004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 13005$as_echo "$lt_cv_irix_exported_symbol" >&6; } 13006 if test yes = "$lt_cv_irix_exported_symbol"; then 13007 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' 13008 fi 13009 else 13010 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' 13011 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' 13012 fi 13013 archive_cmds_need_lc='no' 13014 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13015 hardcode_libdir_separator=: 13016 inherit_rpath=yes 13017 link_all_deplibs=yes 13018 ;; 13019 13020 linux*) 13021 case $cc_basename in 13022 tcc*) 13023 # Fabrice Bellard et al's Tiny C Compiler 13024 ld_shlibs=yes 13025 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13026 ;; 13027 esac 13028 ;; 13029 13030 netbsd*) 13031 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13032 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13033 else 13034 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13035 fi 13036 hardcode_libdir_flag_spec='-R$libdir' 13037 hardcode_direct=yes 13038 hardcode_shlibpath_var=no 13039 ;; 13040 13041 newsos6) 13042 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13043 hardcode_direct=yes 13044 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13045 hardcode_libdir_separator=: 13046 hardcode_shlibpath_var=no 13047 ;; 13048 13049 *nto* | *qnx*) 13050 ;; 13051 13052 openbsd* | bitrig*) 13053 if test -f /usr/libexec/ld.so; then 13054 hardcode_direct=yes 13055 hardcode_shlibpath_var=no 13056 hardcode_direct_absolute=yes 13057 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13058 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13059 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 13060 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13061 export_dynamic_flag_spec='$wl-E' 13062 else 13063 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13064 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13065 fi 13066 else 13067 ld_shlibs=no 13068 fi 13069 ;; 13070 13071 os2*) 13072 hardcode_libdir_flag_spec='-L$libdir' 13073 hardcode_minus_L=yes 13074 allow_undefined_flag=unsupported 13075 shrext_cmds=.dll 13076 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13077 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13078 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13079 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13080 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13081 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13082 emximp -o $lib $output_objdir/$libname.def' 13083 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13084 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13085 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13086 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13087 prefix_cmds="$SED"~ 13088 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13089 prefix_cmds="$prefix_cmds -e 1d"; 13090 fi~ 13091 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13092 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13093 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13094 emximp -o $lib $output_objdir/$libname.def' 13095 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13096 enable_shared_with_static_runtimes=yes 13097 ;; 13098 13099 osf3*) 13100 if test yes = "$GCC"; then 13101 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 13102 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' 13103 else 13104 allow_undefined_flag=' -expect_unresolved \*' 13105 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' 13106 fi 13107 archive_cmds_need_lc='no' 13108 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13109 hardcode_libdir_separator=: 13110 ;; 13111 13112 osf4* | osf5*) # as osf3* with the addition of -msym flag 13113 if test yes = "$GCC"; then 13114 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 13115 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' 13116 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13117 else 13118 allow_undefined_flag=' -expect_unresolved \*' 13119 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' 13120 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~ 13121 $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' 13122 13123 # Both c and cxx compiler support -rpath directly 13124 hardcode_libdir_flag_spec='-rpath $libdir' 13125 fi 13126 archive_cmds_need_lc='no' 13127 hardcode_libdir_separator=: 13128 ;; 13129 13130 solaris*) 13131 no_undefined_flag=' -z defs' 13132 if test yes = "$GCC"; then 13133 wlarc='$wl' 13134 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13135 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13136 $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' 13137 else 13138 case `$CC -V 2>&1` in 13139 *"Compilers 5.0"*) 13140 wlarc='' 13141 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 13142 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13143 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 13144 ;; 13145 *) 13146 wlarc='$wl' 13147 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 13148 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13149 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13150 ;; 13151 esac 13152 fi 13153 hardcode_libdir_flag_spec='-R$libdir' 13154 hardcode_shlibpath_var=no 13155 case $host_os in 13156 solaris2.[0-5] | solaris2.[0-5].*) ;; 13157 *) 13158 # The compiler driver will combine and reorder linker options, 13159 # but understands '-z linker_flag'. GCC discards it without '$wl', 13160 # but is careful enough not to reorder. 13161 # Supported since Solaris 2.6 (maybe 2.5.1?) 13162 if test yes = "$GCC"; then 13163 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 13164 else 13165 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 13166 fi 13167 ;; 13168 esac 13169 link_all_deplibs=yes 13170 ;; 13171 13172 sunos4*) 13173 if test sequent = "$host_vendor"; then 13174 # Use $CC to link under sequent, because it throws in some extra .o 13175 # files that make .init and .fini sections work. 13176 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13177 else 13178 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13179 fi 13180 hardcode_libdir_flag_spec='-L$libdir' 13181 hardcode_direct=yes 13182 hardcode_minus_L=yes 13183 hardcode_shlibpath_var=no 13184 ;; 13185 13186 sysv4) 13187 case $host_vendor in 13188 sni) 13189 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13190 hardcode_direct=yes # is this really true??? 13191 ;; 13192 siemens) 13193 ## LD is ld it makes a PLAMLIB 13194 ## CC just makes a GrossModule. 13195 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13196 reload_cmds='$CC -r -o $output$reload_objs' 13197 hardcode_direct=no 13198 ;; 13199 motorola) 13200 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13201 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 13202 ;; 13203 esac 13204 runpath_var='LD_RUN_PATH' 13205 hardcode_shlibpath_var=no 13206 ;; 13207 13208 sysv4.3*) 13209 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13210 hardcode_shlibpath_var=no 13211 export_dynamic_flag_spec='-Bexport' 13212 ;; 13213 13214 sysv4*MP*) 13215 if test -d /usr/nec; then 13216 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13217 hardcode_shlibpath_var=no 13218 runpath_var=LD_RUN_PATH 13219 hardcode_runpath_var=yes 13220 ld_shlibs=yes 13221 fi 13222 ;; 13223 13224 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13225 no_undefined_flag='$wl-z,text' 13226 archive_cmds_need_lc=no 13227 hardcode_shlibpath_var=no 13228 runpath_var='LD_RUN_PATH' 13229 13230 if test yes = "$GCC"; then 13231 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13232 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13233 else 13234 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13235 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13236 fi 13237 ;; 13238 13239 sysv5* | sco3.2v5* | sco5v6*) 13240 # Note: We CANNOT use -z defs as we might desire, because we do not 13241 # link with -lc, and that would cause any symbols used from libc to 13242 # always be unresolved, which means just about no library would 13243 # ever link correctly. If we're not using GNU ld we use -z text 13244 # though, which does catch some bad symbols but isn't as heavy-handed 13245 # as -z defs. 13246 no_undefined_flag='$wl-z,text' 13247 allow_undefined_flag='$wl-z,nodefs' 13248 archive_cmds_need_lc=no 13249 hardcode_shlibpath_var=no 13250 hardcode_libdir_flag_spec='$wl-R,$libdir' 13251 hardcode_libdir_separator=':' 13252 link_all_deplibs=yes 13253 export_dynamic_flag_spec='$wl-Bexport' 13254 runpath_var='LD_RUN_PATH' 13255 13256 if test yes = "$GCC"; then 13257 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13258 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13259 else 13260 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13261 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13262 fi 13263 ;; 13264 13265 uts4*) 13266 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13267 hardcode_libdir_flag_spec='-L$libdir' 13268 hardcode_shlibpath_var=no 13269 ;; 13270 13271 *) 13272 ld_shlibs=no 13273 ;; 13274 esac 13275 13276 if test sni = "$host_vendor"; then 13277 case $host in 13278 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13279 export_dynamic_flag_spec='$wl-Blargedynsym' 13280 ;; 13281 esac 13282 fi 13283 fi 13284 13285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 13286$as_echo "$ld_shlibs" >&6; } 13287test no = "$ld_shlibs" && can_build_shared=no 13288 13289with_gnu_ld=$with_gnu_ld 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305# 13306# Do we need to explicitly link libc? 13307# 13308case "x$archive_cmds_need_lc" in 13309x|xyes) 13310 # Assume -lc should be added 13311 archive_cmds_need_lc=yes 13312 13313 if test yes,yes = "$GCC,$enable_shared"; then 13314 case $archive_cmds in 13315 *'~'*) 13316 # FIXME: we may have to deal with multi-command sequences. 13317 ;; 13318 '$CC '*) 13319 # Test whether the compiler implicitly links with -lc since on some 13320 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13321 # to ld, don't add -lc before -lgcc. 13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13323$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13324if ${lt_cv_archive_cmds_need_lc+:} false; then : 13325 $as_echo_n "(cached) " >&6 13326else 13327 $RM conftest* 13328 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13329 13330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13331 (eval $ac_compile) 2>&5 13332 ac_status=$? 13333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13334 test $ac_status = 0; } 2>conftest.err; then 13335 soname=conftest 13336 lib=conftest 13337 libobjs=conftest.$ac_objext 13338 deplibs= 13339 wl=$lt_prog_compiler_wl 13340 pic_flag=$lt_prog_compiler_pic 13341 compiler_flags=-v 13342 linker_flags=-v 13343 verstring= 13344 output_objdir=. 13345 libname=conftest 13346 lt_save_allow_undefined_flag=$allow_undefined_flag 13347 allow_undefined_flag= 13348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13349 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13350 ac_status=$? 13351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13352 test $ac_status = 0; } 13353 then 13354 lt_cv_archive_cmds_need_lc=no 13355 else 13356 lt_cv_archive_cmds_need_lc=yes 13357 fi 13358 allow_undefined_flag=$lt_save_allow_undefined_flag 13359 else 13360 cat conftest.err 1>&5 13361 fi 13362 $RM conftest* 13363 13364fi 13365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 13366$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 13367 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 13368 ;; 13369 esac 13370 fi 13371 ;; 13372esac 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13526$as_echo_n "checking dynamic linker characteristics... " >&6; } 13527 13528if test yes = "$GCC"; then 13529 case $host_os in 13530 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 13531 *) lt_awk_arg='/^libraries:/' ;; 13532 esac 13533 case $host_os in 13534 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 13535 *) lt_sed_strip_eq='s|=/|/|g' ;; 13536 esac 13537 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 13538 case $lt_search_path_spec in 13539 *\;*) 13540 # if the path contains ";" then we assume it to be the separator 13541 # otherwise default to the standard path separator (i.e. ":") - it is 13542 # assumed that no part of a normal pathname contains ";" but that should 13543 # okay in the real world where ";" in dirpaths is itself problematic. 13544 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 13545 ;; 13546 *) 13547 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 13548 ;; 13549 esac 13550 # Ok, now we have the path, separated by spaces, we can step through it 13551 # and add multilib dir if necessary... 13552 lt_tmp_lt_search_path_spec= 13553 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 13554 # ...but if some path component already ends with the multilib dir we assume 13555 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 13556 case "$lt_multi_os_dir; $lt_search_path_spec " in 13557 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 13558 lt_multi_os_dir= 13559 ;; 13560 esac 13561 for lt_sys_path in $lt_search_path_spec; do 13562 if test -d "$lt_sys_path$lt_multi_os_dir"; then 13563 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 13564 elif test -n "$lt_multi_os_dir"; then 13565 test -d "$lt_sys_path" && \ 13566 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 13567 fi 13568 done 13569 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 13570BEGIN {RS = " "; FS = "/|\n";} { 13571 lt_foo = ""; 13572 lt_count = 0; 13573 for (lt_i = NF; lt_i > 0; lt_i--) { 13574 if ($lt_i != "" && $lt_i != ".") { 13575 if ($lt_i == "..") { 13576 lt_count++; 13577 } else { 13578 if (lt_count == 0) { 13579 lt_foo = "/" $lt_i lt_foo; 13580 } else { 13581 lt_count--; 13582 } 13583 } 13584 } 13585 } 13586 if (lt_foo != "") { lt_freq[lt_foo]++; } 13587 if (lt_freq[lt_foo] == 1) { print lt_foo; } 13588}'` 13589 # AWK program above erroneously prepends '/' to C:/dos/paths 13590 # for these hosts. 13591 case $host_os in 13592 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 13593 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 13594 esac 13595 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 13596else 13597 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13598fi 13599library_names_spec= 13600libname_spec='lib$name' 13601soname_spec= 13602shrext_cmds=.so 13603postinstall_cmds= 13604postuninstall_cmds= 13605finish_cmds= 13606finish_eval= 13607shlibpath_var= 13608shlibpath_overrides_runpath=unknown 13609version_type=none 13610dynamic_linker="$host_os ld.so" 13611sys_lib_dlsearch_path_spec="/lib /usr/lib" 13612need_lib_prefix=unknown 13613hardcode_into_libs=no 13614 13615# when you set need_version to no, make sure it does not cause -set_version 13616# flags to be left without arguments 13617need_version=unknown 13618 13619 13620 13621case $host_os in 13622aix3*) 13623 version_type=linux # correct to gnu/linux during the next big refactor 13624 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 13625 shlibpath_var=LIBPATH 13626 13627 # AIX 3 has no versioning support, so we append a major version to the name. 13628 soname_spec='$libname$release$shared_ext$major' 13629 ;; 13630 13631aix[4-9]*) 13632 version_type=linux # correct to gnu/linux during the next big refactor 13633 need_lib_prefix=no 13634 need_version=no 13635 hardcode_into_libs=yes 13636 if test ia64 = "$host_cpu"; then 13637 # AIX 5 supports IA64 13638 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 13639 shlibpath_var=LD_LIBRARY_PATH 13640 else 13641 # With GCC up to 2.95.x, collect2 would create an import file 13642 # for dependence libraries. The import file would start with 13643 # the line '#! .'. This would cause the generated library to 13644 # depend on '.', always an invalid library. This was fixed in 13645 # development snapshots of GCC prior to 3.0. 13646 case $host_os in 13647 aix4 | aix4.[01] | aix4.[01].*) 13648 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13649 echo ' yes ' 13650 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 13651 : 13652 else 13653 can_build_shared=no 13654 fi 13655 ;; 13656 esac 13657 # Using Import Files as archive members, it is possible to support 13658 # filename-based versioning of shared library archives on AIX. While 13659 # this would work for both with and without runtime linking, it will 13660 # prevent static linking of such archives. So we do filename-based 13661 # shared library versioning with .so extension only, which is used 13662 # when both runtime linking and shared linking is enabled. 13663 # Unfortunately, runtime linking may impact performance, so we do 13664 # not want this to be the default eventually. Also, we use the 13665 # versioned .so libs for executables only if there is the -brtl 13666 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 13667 # To allow for filename-based versioning support, we need to create 13668 # libNAME.so.V as an archive file, containing: 13669 # *) an Import File, referring to the versioned filename of the 13670 # archive as well as the shared archive member, telling the 13671 # bitwidth (32 or 64) of that shared object, and providing the 13672 # list of exported symbols of that shared object, eventually 13673 # decorated with the 'weak' keyword 13674 # *) the shared object with the F_LOADONLY flag set, to really avoid 13675 # it being seen by the linker. 13676 # At run time we better use the real file rather than another symlink, 13677 # but for link time we create the symlink libNAME.so -> libNAME.so.V 13678 13679 case $with_aix_soname,$aix_use_runtimelinking in 13680 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 13681 # soname into executable. Probably we can add versioning support to 13682 # collect2, so additional links can be useful in future. 13683 aix,yes) # traditional libtool 13684 dynamic_linker='AIX unversionable lib.so' 13685 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13686 # instead of lib<name>.a to let people know that these are not 13687 # typical AIX shared libraries. 13688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13689 ;; 13690 aix,no) # traditional AIX only 13691 dynamic_linker='AIX lib.a(lib.so.V)' 13692 # We preserve .a as extension for shared libraries through AIX4.2 13693 # and later when we are not doing run time linking. 13694 library_names_spec='$libname$release.a $libname.a' 13695 soname_spec='$libname$release$shared_ext$major' 13696 ;; 13697 svr4,*) # full svr4 only 13698 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 13699 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13700 # We do not specify a path in Import Files, so LIBPATH fires. 13701 shlibpath_overrides_runpath=yes 13702 ;; 13703 *,yes) # both, prefer svr4 13704 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 13705 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13706 # unpreferred sharedlib libNAME.a needs extra handling 13707 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"' 13708 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"' 13709 # We do not specify a path in Import Files, so LIBPATH fires. 13710 shlibpath_overrides_runpath=yes 13711 ;; 13712 *,no) # both, prefer aix 13713 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 13714 library_names_spec='$libname$release.a $libname.a' 13715 soname_spec='$libname$release$shared_ext$major' 13716 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 13717 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)' 13718 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"' 13719 ;; 13720 esac 13721 shlibpath_var=LIBPATH 13722 fi 13723 ;; 13724 13725amigaos*) 13726 case $host_cpu in 13727 powerpc) 13728 # Since July 2007 AmigaOS4 officially supports .so libraries. 13729 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13730 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13731 ;; 13732 m68k) 13733 library_names_spec='$libname.ixlibrary $libname.a' 13734 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13735 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' 13736 ;; 13737 esac 13738 ;; 13739 13740beos*) 13741 library_names_spec='$libname$shared_ext' 13742 dynamic_linker="$host_os ld.so" 13743 shlibpath_var=LIBRARY_PATH 13744 ;; 13745 13746bsdi[45]*) 13747 version_type=linux # correct to gnu/linux during the next big refactor 13748 need_version=no 13749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13750 soname_spec='$libname$release$shared_ext$major' 13751 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13752 shlibpath_var=LD_LIBRARY_PATH 13753 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13754 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13755 # the default ld.so.conf also contains /usr/contrib/lib and 13756 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13757 # libtool to hard-code these into programs 13758 ;; 13759 13760cygwin* | mingw* | pw32* | cegcc*) 13761 version_type=windows 13762 shrext_cmds=.dll 13763 need_version=no 13764 need_lib_prefix=no 13765 13766 case $GCC,$cc_basename in 13767 yes,*) 13768 # gcc 13769 library_names_spec='$libname.dll.a' 13770 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13771 postinstall_cmds='base_file=`basename \$file`~ 13772 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13773 dldir=$destdir/`dirname \$dlpath`~ 13774 test -d \$dldir || mkdir -p \$dldir~ 13775 $install_prog $dir/$dlname \$dldir/$dlname~ 13776 chmod a+x \$dldir/$dlname~ 13777 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13778 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13779 fi' 13780 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13781 dlpath=$dir/\$dldll~ 13782 $RM \$dlpath' 13783 shlibpath_overrides_runpath=yes 13784 13785 case $host_os in 13786 cygwin*) 13787 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13788 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13789 13790 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 13791 ;; 13792 mingw* | cegcc*) 13793 # MinGW DLLs use traditional 'lib' prefix 13794 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13795 ;; 13796 pw32*) 13797 # pw32 DLLs use 'pw' prefix rather than 'lib' 13798 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13799 ;; 13800 esac 13801 dynamic_linker='Win32 ld.exe' 13802 ;; 13803 13804 *,cl*) 13805 # Native MSVC 13806 libname_spec='$name' 13807 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13808 library_names_spec='$libname.dll.lib' 13809 13810 case $build_os in 13811 mingw*) 13812 sys_lib_search_path_spec= 13813 lt_save_ifs=$IFS 13814 IFS=';' 13815 for lt_path in $LIB 13816 do 13817 IFS=$lt_save_ifs 13818 # Let DOS variable expansion print the short 8.3 style file name. 13819 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 13820 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 13821 done 13822 IFS=$lt_save_ifs 13823 # Convert to MSYS style. 13824 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 13825 ;; 13826 cygwin*) 13827 # Convert to unix form, then to dos form, then back to unix form 13828 # but this time dos style (no spaces!) so that the unix form looks 13829 # like /cygdrive/c/PROGRA~1:/cygdr... 13830 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 13831 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 13832 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13833 ;; 13834 *) 13835 sys_lib_search_path_spec=$LIB 13836 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 13837 # It is most probably a Windows format PATH. 13838 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13839 else 13840 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13841 fi 13842 # FIXME: find the short name or the path components, as spaces are 13843 # common. (e.g. "Program Files" -> "PROGRA~1") 13844 ;; 13845 esac 13846 13847 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13848 postinstall_cmds='base_file=`basename \$file`~ 13849 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13850 dldir=$destdir/`dirname \$dlpath`~ 13851 test -d \$dldir || mkdir -p \$dldir~ 13852 $install_prog $dir/$dlname \$dldir/$dlname' 13853 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13854 dlpath=$dir/\$dldll~ 13855 $RM \$dlpath' 13856 shlibpath_overrides_runpath=yes 13857 dynamic_linker='Win32 link.exe' 13858 ;; 13859 13860 *) 13861 # Assume MSVC wrapper 13862 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 13863 dynamic_linker='Win32 ld.exe' 13864 ;; 13865 esac 13866 # FIXME: first we should search . and the directory the executable is in 13867 shlibpath_var=PATH 13868 ;; 13869 13870darwin* | rhapsody*) 13871 dynamic_linker="$host_os dyld" 13872 version_type=darwin 13873 need_lib_prefix=no 13874 need_version=no 13875 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 13876 soname_spec='$libname$release$major$shared_ext' 13877 shlibpath_overrides_runpath=yes 13878 shlibpath_var=DYLD_LIBRARY_PATH 13879 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13880 13881 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 13882 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13883 ;; 13884 13885dgux*) 13886 version_type=linux # correct to gnu/linux during the next big refactor 13887 need_lib_prefix=no 13888 need_version=no 13889 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13890 soname_spec='$libname$release$shared_ext$major' 13891 shlibpath_var=LD_LIBRARY_PATH 13892 ;; 13893 13894freebsd* | dragonfly*) 13895 # DragonFly does not have aout. When/if they implement a new 13896 # versioning mechanism, adjust this. 13897 if test -x /usr/bin/objformat; then 13898 objformat=`/usr/bin/objformat` 13899 else 13900 case $host_os in 13901 freebsd[23].*) objformat=aout ;; 13902 *) objformat=elf ;; 13903 esac 13904 fi 13905 version_type=freebsd-$objformat 13906 case $version_type in 13907 freebsd-elf*) 13908 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13909 soname_spec='$libname$release$shared_ext$major' 13910 need_version=no 13911 need_lib_prefix=no 13912 ;; 13913 freebsd-*) 13914 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13915 need_version=yes 13916 ;; 13917 esac 13918 shlibpath_var=LD_LIBRARY_PATH 13919 case $host_os in 13920 freebsd2.*) 13921 shlibpath_overrides_runpath=yes 13922 ;; 13923 freebsd3.[01]* | freebsdelf3.[01]*) 13924 shlibpath_overrides_runpath=yes 13925 hardcode_into_libs=yes 13926 ;; 13927 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13928 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13929 shlibpath_overrides_runpath=no 13930 hardcode_into_libs=yes 13931 ;; 13932 *) # from 4.6 on, and DragonFly 13933 shlibpath_overrides_runpath=yes 13934 hardcode_into_libs=yes 13935 ;; 13936 esac 13937 ;; 13938 13939haiku*) 13940 version_type=linux # correct to gnu/linux during the next big refactor 13941 need_lib_prefix=no 13942 need_version=no 13943 dynamic_linker="$host_os runtime_loader" 13944 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13945 soname_spec='$libname$release$shared_ext$major' 13946 shlibpath_var=LIBRARY_PATH 13947 shlibpath_overrides_runpath=no 13948 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13949 hardcode_into_libs=yes 13950 ;; 13951 13952hpux9* | hpux10* | hpux11*) 13953 # Give a soname corresponding to the major version so that dld.sl refuses to 13954 # link against other versions. 13955 version_type=sunos 13956 need_lib_prefix=no 13957 need_version=no 13958 case $host_cpu in 13959 ia64*) 13960 shrext_cmds='.so' 13961 hardcode_into_libs=yes 13962 dynamic_linker="$host_os dld.so" 13963 shlibpath_var=LD_LIBRARY_PATH 13964 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13965 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13966 soname_spec='$libname$release$shared_ext$major' 13967 if test 32 = "$HPUX_IA64_MODE"; then 13968 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13969 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 13970 else 13971 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13972 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 13973 fi 13974 ;; 13975 hppa*64*) 13976 shrext_cmds='.sl' 13977 hardcode_into_libs=yes 13978 dynamic_linker="$host_os dld.sl" 13979 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13980 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13982 soname_spec='$libname$release$shared_ext$major' 13983 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13984 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13985 ;; 13986 *) 13987 shrext_cmds='.sl' 13988 dynamic_linker="$host_os dld.sl" 13989 shlibpath_var=SHLIB_PATH 13990 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13991 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13992 soname_spec='$libname$release$shared_ext$major' 13993 ;; 13994 esac 13995 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13996 postinstall_cmds='chmod 555 $lib' 13997 # or fails outright, so override atomically: 13998 install_override_mode=555 13999 ;; 14000 14001interix[3-9]*) 14002 version_type=linux # correct to gnu/linux during the next big refactor 14003 need_lib_prefix=no 14004 need_version=no 14005 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14006 soname_spec='$libname$release$shared_ext$major' 14007 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14008 shlibpath_var=LD_LIBRARY_PATH 14009 shlibpath_overrides_runpath=no 14010 hardcode_into_libs=yes 14011 ;; 14012 14013irix5* | irix6* | nonstopux*) 14014 case $host_os in 14015 nonstopux*) version_type=nonstopux ;; 14016 *) 14017 if test yes = "$lt_cv_prog_gnu_ld"; then 14018 version_type=linux # correct to gnu/linux during the next big refactor 14019 else 14020 version_type=irix 14021 fi ;; 14022 esac 14023 need_lib_prefix=no 14024 need_version=no 14025 soname_spec='$libname$release$shared_ext$major' 14026 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 14027 case $host_os in 14028 irix5* | nonstopux*) 14029 libsuff= shlibsuff= 14030 ;; 14031 *) 14032 case $LD in # libtool.m4 will add one of these switches to LD 14033 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14034 libsuff= shlibsuff= libmagic=32-bit;; 14035 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14036 libsuff=32 shlibsuff=N32 libmagic=N32;; 14037 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14038 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14039 *) libsuff= shlibsuff= libmagic=never-match;; 14040 esac 14041 ;; 14042 esac 14043 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14044 shlibpath_overrides_runpath=no 14045 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 14046 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 14047 hardcode_into_libs=yes 14048 ;; 14049 14050# No shared lib support for Linux oldld, aout, or coff. 14051linux*oldld* | linux*aout* | linux*coff*) 14052 dynamic_linker=no 14053 ;; 14054 14055linux*android*) 14056 version_type=none # Android doesn't support versioned libraries. 14057 need_lib_prefix=no 14058 need_version=no 14059 library_names_spec='$libname$release$shared_ext' 14060 soname_spec='$libname$release$shared_ext' 14061 finish_cmds= 14062 shlibpath_var=LD_LIBRARY_PATH 14063 shlibpath_overrides_runpath=yes 14064 14065 # This implies no fast_install, which is unacceptable. 14066 # Some rework will be needed to allow for fast_install 14067 # before this can be enabled. 14068 hardcode_into_libs=yes 14069 14070 dynamic_linker='Android linker' 14071 # Don't embed -rpath directories since the linker doesn't support them. 14072 hardcode_libdir_flag_spec='-L$libdir' 14073 ;; 14074 14075# This must be glibc/ELF. 14076linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14077 version_type=linux # correct to gnu/linux during the next big refactor 14078 need_lib_prefix=no 14079 need_version=no 14080 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14081 soname_spec='$libname$release$shared_ext$major' 14082 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14083 shlibpath_var=LD_LIBRARY_PATH 14084 shlibpath_overrides_runpath=no 14085 14086 # Some binutils ld are patched to set DT_RUNPATH 14087 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 14088 $as_echo_n "(cached) " >&6 14089else 14090 lt_cv_shlibpath_overrides_runpath=no 14091 save_LDFLAGS=$LDFLAGS 14092 save_libdir=$libdir 14093 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 14094 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 14095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14096/* end confdefs.h. */ 14097 14098int 14099main () 14100{ 14101 14102 ; 14103 return 0; 14104} 14105_ACEOF 14106if ac_fn_c_try_link "$LINENO"; then : 14107 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14108 lt_cv_shlibpath_overrides_runpath=yes 14109fi 14110fi 14111rm -f core conftest.err conftest.$ac_objext \ 14112 conftest$ac_exeext conftest.$ac_ext 14113 LDFLAGS=$save_LDFLAGS 14114 libdir=$save_libdir 14115 14116fi 14117 14118 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14119 14120 # This implies no fast_install, which is unacceptable. 14121 # Some rework will be needed to allow for fast_install 14122 # before this can be enabled. 14123 hardcode_into_libs=yes 14124 14125 # Ideally, we could use ldconfig to report *all* directores which are 14126 # searched for libraries, however this is still not possible. Aside from not 14127 # being certain /sbin/ldconfig is available, command 14128 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 14129 # even though it is searched at run-time. Try to do the best guess by 14130 # appending ld.so.conf contents (and includes) to the search path. 14131 if test -f /etc/ld.so.conf; then 14132 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' ' '` 14133 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14134 fi 14135 14136 # We used to test for /lib/ld.so.1 and disable shared libraries on 14137 # powerpc, because MkLinux only supported shared libraries with the 14138 # GNU dynamic linker. Since this was broken with cross compilers, 14139 # most powerpc-linux boxes support dynamic linking these days and 14140 # people can always --disable-shared, the test was removed, and we 14141 # assume the GNU/Linux dynamic linker is in use. 14142 dynamic_linker='GNU/Linux ld.so' 14143 ;; 14144 14145netbsd*) 14146 version_type=sunos 14147 need_lib_prefix=no 14148 need_version=no 14149 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14150 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14152 dynamic_linker='NetBSD (a.out) ld.so' 14153 else 14154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14155 soname_spec='$libname$release$shared_ext$major' 14156 dynamic_linker='NetBSD ld.elf_so' 14157 fi 14158 shlibpath_var=LD_LIBRARY_PATH 14159 shlibpath_overrides_runpath=yes 14160 hardcode_into_libs=yes 14161 ;; 14162 14163newsos6) 14164 version_type=linux # correct to gnu/linux during the next big refactor 14165 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14166 shlibpath_var=LD_LIBRARY_PATH 14167 shlibpath_overrides_runpath=yes 14168 ;; 14169 14170*nto* | *qnx*) 14171 version_type=qnx 14172 need_lib_prefix=no 14173 need_version=no 14174 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14175 soname_spec='$libname$release$shared_ext$major' 14176 shlibpath_var=LD_LIBRARY_PATH 14177 shlibpath_overrides_runpath=no 14178 hardcode_into_libs=yes 14179 dynamic_linker='ldqnx.so' 14180 ;; 14181 14182openbsd* | bitrig*) 14183 version_type=sunos 14184 sys_lib_dlsearch_path_spec=/usr/lib 14185 need_lib_prefix=no 14186 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 14187 need_version=no 14188 else 14189 need_version=yes 14190 fi 14191 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14193 shlibpath_var=LD_LIBRARY_PATH 14194 shlibpath_overrides_runpath=yes 14195 ;; 14196 14197os2*) 14198 libname_spec='$name' 14199 version_type=windows 14200 shrext_cmds=.dll 14201 need_version=no 14202 need_lib_prefix=no 14203 # OS/2 can only load a DLL with a base name of 8 characters or less. 14204 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 14205 v=$($ECHO $release$versuffix | tr -d .-); 14206 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 14207 $ECHO $n$v`$shared_ext' 14208 library_names_spec='${libname}_dll.$libext' 14209 dynamic_linker='OS/2 ld.exe' 14210 shlibpath_var=BEGINLIBPATH 14211 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14212 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14213 postinstall_cmds='base_file=`basename \$file`~ 14214 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 14215 dldir=$destdir/`dirname \$dlpath`~ 14216 test -d \$dldir || mkdir -p \$dldir~ 14217 $install_prog $dir/$dlname \$dldir/$dlname~ 14218 chmod a+x \$dldir/$dlname~ 14219 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14220 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14221 fi' 14222 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 14223 dlpath=$dir/\$dldll~ 14224 $RM \$dlpath' 14225 ;; 14226 14227osf3* | osf4* | osf5*) 14228 version_type=osf 14229 need_lib_prefix=no 14230 need_version=no 14231 soname_spec='$libname$release$shared_ext$major' 14232 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14233 shlibpath_var=LD_LIBRARY_PATH 14234 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14235 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14236 ;; 14237 14238rdos*) 14239 dynamic_linker=no 14240 ;; 14241 14242solaris*) 14243 version_type=linux # correct to gnu/linux during the next big refactor 14244 need_lib_prefix=no 14245 need_version=no 14246 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14247 soname_spec='$libname$release$shared_ext$major' 14248 shlibpath_var=LD_LIBRARY_PATH 14249 shlibpath_overrides_runpath=yes 14250 hardcode_into_libs=yes 14251 # ldd complains unless libraries are executable 14252 postinstall_cmds='chmod +x $lib' 14253 ;; 14254 14255sunos4*) 14256 version_type=sunos 14257 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14258 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14259 shlibpath_var=LD_LIBRARY_PATH 14260 shlibpath_overrides_runpath=yes 14261 if test yes = "$with_gnu_ld"; then 14262 need_lib_prefix=no 14263 fi 14264 need_version=yes 14265 ;; 14266 14267sysv4 | sysv4.3*) 14268 version_type=linux # correct to gnu/linux during the next big refactor 14269 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14270 soname_spec='$libname$release$shared_ext$major' 14271 shlibpath_var=LD_LIBRARY_PATH 14272 case $host_vendor in 14273 sni) 14274 shlibpath_overrides_runpath=no 14275 need_lib_prefix=no 14276 runpath_var=LD_RUN_PATH 14277 ;; 14278 siemens) 14279 need_lib_prefix=no 14280 ;; 14281 motorola) 14282 need_lib_prefix=no 14283 need_version=no 14284 shlibpath_overrides_runpath=no 14285 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14286 ;; 14287 esac 14288 ;; 14289 14290sysv4*MP*) 14291 if test -d /usr/nec; then 14292 version_type=linux # correct to gnu/linux during the next big refactor 14293 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 14294 soname_spec='$libname$shared_ext.$major' 14295 shlibpath_var=LD_LIBRARY_PATH 14296 fi 14297 ;; 14298 14299sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14300 version_type=sco 14301 need_lib_prefix=no 14302 need_version=no 14303 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 14304 soname_spec='$libname$release$shared_ext$major' 14305 shlibpath_var=LD_LIBRARY_PATH 14306 shlibpath_overrides_runpath=yes 14307 hardcode_into_libs=yes 14308 if test yes = "$with_gnu_ld"; then 14309 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14310 else 14311 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14312 case $host_os in 14313 sco3.2v5*) 14314 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14315 ;; 14316 esac 14317 fi 14318 sys_lib_dlsearch_path_spec='/usr/lib' 14319 ;; 14320 14321tpf*) 14322 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14323 version_type=linux # correct to gnu/linux during the next big refactor 14324 need_lib_prefix=no 14325 need_version=no 14326 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14327 shlibpath_var=LD_LIBRARY_PATH 14328 shlibpath_overrides_runpath=no 14329 hardcode_into_libs=yes 14330 ;; 14331 14332uts4*) 14333 version_type=linux # correct to gnu/linux during the next big refactor 14334 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14335 soname_spec='$libname$release$shared_ext$major' 14336 shlibpath_var=LD_LIBRARY_PATH 14337 ;; 14338 14339*) 14340 dynamic_linker=no 14341 ;; 14342esac 14343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14344$as_echo "$dynamic_linker" >&6; } 14345test no = "$dynamic_linker" && can_build_shared=no 14346 14347variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14348if test yes = "$GCC"; then 14349 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14350fi 14351 14352if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 14353 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 14354fi 14355 14356if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 14357 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 14358fi 14359 14360# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 14361configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 14362 14363# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 14364func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 14365 14366# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 14367configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410 14411 14412 14413 14414 14415 14416 14417 14418 14419 14420 14421 14422 14423 14424 14425 14426 14427 14428 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14466$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14467hardcode_action= 14468if test -n "$hardcode_libdir_flag_spec" || 14469 test -n "$runpath_var" || 14470 test yes = "$hardcode_automatic"; then 14471 14472 # We can hardcode non-existent directories. 14473 if test no != "$hardcode_direct" && 14474 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14475 # have to relink, otherwise we might link with an installed library 14476 # when we should be linking with a yet-to-be-installed one 14477 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 14478 test no != "$hardcode_minus_L"; then 14479 # Linking always hardcodes the temporary library directory. 14480 hardcode_action=relink 14481 else 14482 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14483 hardcode_action=immediate 14484 fi 14485else 14486 # We cannot hardcode anything, or else we can only hardcode existing 14487 # directories. 14488 hardcode_action=unsupported 14489fi 14490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 14491$as_echo "$hardcode_action" >&6; } 14492 14493if test relink = "$hardcode_action" || 14494 test yes = "$inherit_rpath"; then 14495 # Fast installation is not supported 14496 enable_fast_install=no 14497elif test yes = "$shlibpath_overrides_runpath" || 14498 test no = "$enable_shared"; then 14499 # Fast installation is not necessary 14500 enable_fast_install=needless 14501fi 14502 14503 14504 14505 14506 14507 14508 if test yes != "$enable_dlopen"; then 14509 enable_dlopen=unknown 14510 enable_dlopen_self=unknown 14511 enable_dlopen_self_static=unknown 14512else 14513 lt_cv_dlopen=no 14514 lt_cv_dlopen_libs= 14515 14516 case $host_os in 14517 beos*) 14518 lt_cv_dlopen=load_add_on 14519 lt_cv_dlopen_libs= 14520 lt_cv_dlopen_self=yes 14521 ;; 14522 14523 mingw* | pw32* | cegcc*) 14524 lt_cv_dlopen=LoadLibrary 14525 lt_cv_dlopen_libs= 14526 ;; 14527 14528 cygwin*) 14529 lt_cv_dlopen=dlopen 14530 lt_cv_dlopen_libs= 14531 ;; 14532 14533 darwin*) 14534 # if libdl is installed we need to link against it 14535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14536$as_echo_n "checking for dlopen in -ldl... " >&6; } 14537if ${ac_cv_lib_dl_dlopen+:} false; then : 14538 $as_echo_n "(cached) " >&6 14539else 14540 ac_check_lib_save_LIBS=$LIBS 14541LIBS="-ldl $LIBS" 14542cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14543/* end confdefs.h. */ 14544 14545/* Override any GCC internal prototype to avoid an error. 14546 Use char because int might match the return type of a GCC 14547 builtin and then its argument prototype would still apply. */ 14548#ifdef __cplusplus 14549extern "C" 14550#endif 14551char dlopen (); 14552int 14553main () 14554{ 14555return dlopen (); 14556 ; 14557 return 0; 14558} 14559_ACEOF 14560if ac_fn_c_try_link "$LINENO"; then : 14561 ac_cv_lib_dl_dlopen=yes 14562else 14563 ac_cv_lib_dl_dlopen=no 14564fi 14565rm -f core conftest.err conftest.$ac_objext \ 14566 conftest$ac_exeext conftest.$ac_ext 14567LIBS=$ac_check_lib_save_LIBS 14568fi 14569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14570$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14571if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14572 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14573else 14574 14575 lt_cv_dlopen=dyld 14576 lt_cv_dlopen_libs= 14577 lt_cv_dlopen_self=yes 14578 14579fi 14580 14581 ;; 14582 14583 tpf*) 14584 # Don't try to run any link tests for TPF. We know it's impossible 14585 # because TPF is a cross-compiler, and we know how we open DSOs. 14586 lt_cv_dlopen=dlopen 14587 lt_cv_dlopen_libs= 14588 lt_cv_dlopen_self=no 14589 ;; 14590 14591 *) 14592 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 14593if test "x$ac_cv_func_shl_load" = xyes; then : 14594 lt_cv_dlopen=shl_load 14595else 14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 14597$as_echo_n "checking for shl_load in -ldld... " >&6; } 14598if ${ac_cv_lib_dld_shl_load+:} false; then : 14599 $as_echo_n "(cached) " >&6 14600else 14601 ac_check_lib_save_LIBS=$LIBS 14602LIBS="-ldld $LIBS" 14603cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14604/* end confdefs.h. */ 14605 14606/* Override any GCC internal prototype to avoid an error. 14607 Use char because int might match the return type of a GCC 14608 builtin and then its argument prototype would still apply. */ 14609#ifdef __cplusplus 14610extern "C" 14611#endif 14612char shl_load (); 14613int 14614main () 14615{ 14616return shl_load (); 14617 ; 14618 return 0; 14619} 14620_ACEOF 14621if ac_fn_c_try_link "$LINENO"; then : 14622 ac_cv_lib_dld_shl_load=yes 14623else 14624 ac_cv_lib_dld_shl_load=no 14625fi 14626rm -f core conftest.err conftest.$ac_objext \ 14627 conftest$ac_exeext conftest.$ac_ext 14628LIBS=$ac_check_lib_save_LIBS 14629fi 14630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 14631$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 14632if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 14633 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 14634else 14635 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 14636if test "x$ac_cv_func_dlopen" = xyes; then : 14637 lt_cv_dlopen=dlopen 14638else 14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14640$as_echo_n "checking for dlopen in -ldl... " >&6; } 14641if ${ac_cv_lib_dl_dlopen+:} false; then : 14642 $as_echo_n "(cached) " >&6 14643else 14644 ac_check_lib_save_LIBS=$LIBS 14645LIBS="-ldl $LIBS" 14646cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14647/* end confdefs.h. */ 14648 14649/* Override any GCC internal prototype to avoid an error. 14650 Use char because int might match the return type of a GCC 14651 builtin and then its argument prototype would still apply. */ 14652#ifdef __cplusplus 14653extern "C" 14654#endif 14655char dlopen (); 14656int 14657main () 14658{ 14659return dlopen (); 14660 ; 14661 return 0; 14662} 14663_ACEOF 14664if ac_fn_c_try_link "$LINENO"; then : 14665 ac_cv_lib_dl_dlopen=yes 14666else 14667 ac_cv_lib_dl_dlopen=no 14668fi 14669rm -f core conftest.err conftest.$ac_objext \ 14670 conftest$ac_exeext conftest.$ac_ext 14671LIBS=$ac_check_lib_save_LIBS 14672fi 14673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14674$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14675if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14676 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14677else 14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 14679$as_echo_n "checking for dlopen in -lsvld... " >&6; } 14680if ${ac_cv_lib_svld_dlopen+:} false; then : 14681 $as_echo_n "(cached) " >&6 14682else 14683 ac_check_lib_save_LIBS=$LIBS 14684LIBS="-lsvld $LIBS" 14685cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14686/* end confdefs.h. */ 14687 14688/* Override any GCC internal prototype to avoid an error. 14689 Use char because int might match the return type of a GCC 14690 builtin and then its argument prototype would still apply. */ 14691#ifdef __cplusplus 14692extern "C" 14693#endif 14694char dlopen (); 14695int 14696main () 14697{ 14698return dlopen (); 14699 ; 14700 return 0; 14701} 14702_ACEOF 14703if ac_fn_c_try_link "$LINENO"; then : 14704 ac_cv_lib_svld_dlopen=yes 14705else 14706 ac_cv_lib_svld_dlopen=no 14707fi 14708rm -f core conftest.err conftest.$ac_objext \ 14709 conftest$ac_exeext conftest.$ac_ext 14710LIBS=$ac_check_lib_save_LIBS 14711fi 14712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 14713$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 14714if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 14715 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 14716else 14717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 14718$as_echo_n "checking for dld_link in -ldld... " >&6; } 14719if ${ac_cv_lib_dld_dld_link+:} false; then : 14720 $as_echo_n "(cached) " >&6 14721else 14722 ac_check_lib_save_LIBS=$LIBS 14723LIBS="-ldld $LIBS" 14724cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14725/* end confdefs.h. */ 14726 14727/* Override any GCC internal prototype to avoid an error. 14728 Use char because int might match the return type of a GCC 14729 builtin and then its argument prototype would still apply. */ 14730#ifdef __cplusplus 14731extern "C" 14732#endif 14733char dld_link (); 14734int 14735main () 14736{ 14737return dld_link (); 14738 ; 14739 return 0; 14740} 14741_ACEOF 14742if ac_fn_c_try_link "$LINENO"; then : 14743 ac_cv_lib_dld_dld_link=yes 14744else 14745 ac_cv_lib_dld_dld_link=no 14746fi 14747rm -f core conftest.err conftest.$ac_objext \ 14748 conftest$ac_exeext conftest.$ac_ext 14749LIBS=$ac_check_lib_save_LIBS 14750fi 14751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 14752$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 14753if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 14754 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 14755fi 14756 14757 14758fi 14759 14760 14761fi 14762 14763 14764fi 14765 14766 14767fi 14768 14769 14770fi 14771 14772 ;; 14773 esac 14774 14775 if test no = "$lt_cv_dlopen"; then 14776 enable_dlopen=no 14777 else 14778 enable_dlopen=yes 14779 fi 14780 14781 case $lt_cv_dlopen in 14782 dlopen) 14783 save_CPPFLAGS=$CPPFLAGS 14784 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 14785 14786 save_LDFLAGS=$LDFLAGS 14787 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 14788 14789 save_LIBS=$LIBS 14790 LIBS="$lt_cv_dlopen_libs $LIBS" 14791 14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 14793$as_echo_n "checking whether a program can dlopen itself... " >&6; } 14794if ${lt_cv_dlopen_self+:} false; then : 14795 $as_echo_n "(cached) " >&6 14796else 14797 if test yes = "$cross_compiling"; then : 14798 lt_cv_dlopen_self=cross 14799else 14800 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14801 lt_status=$lt_dlunknown 14802 cat > conftest.$ac_ext <<_LT_EOF 14803#line $LINENO "configure" 14804#include "confdefs.h" 14805 14806#if HAVE_DLFCN_H 14807#include <dlfcn.h> 14808#endif 14809 14810#include <stdio.h> 14811 14812#ifdef RTLD_GLOBAL 14813# define LT_DLGLOBAL RTLD_GLOBAL 14814#else 14815# ifdef DL_GLOBAL 14816# define LT_DLGLOBAL DL_GLOBAL 14817# else 14818# define LT_DLGLOBAL 0 14819# endif 14820#endif 14821 14822/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14823 find out it does not work in some platform. */ 14824#ifndef LT_DLLAZY_OR_NOW 14825# ifdef RTLD_LAZY 14826# define LT_DLLAZY_OR_NOW RTLD_LAZY 14827# else 14828# ifdef DL_LAZY 14829# define LT_DLLAZY_OR_NOW DL_LAZY 14830# else 14831# ifdef RTLD_NOW 14832# define LT_DLLAZY_OR_NOW RTLD_NOW 14833# else 14834# ifdef DL_NOW 14835# define LT_DLLAZY_OR_NOW DL_NOW 14836# else 14837# define LT_DLLAZY_OR_NOW 0 14838# endif 14839# endif 14840# endif 14841# endif 14842#endif 14843 14844/* When -fvisibility=hidden is used, assume the code has been annotated 14845 correspondingly for the symbols needed. */ 14846#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14847int fnord () __attribute__((visibility("default"))); 14848#endif 14849 14850int fnord () { return 42; } 14851int main () 14852{ 14853 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14854 int status = $lt_dlunknown; 14855 14856 if (self) 14857 { 14858 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14859 else 14860 { 14861 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14862 else puts (dlerror ()); 14863 } 14864 /* dlclose (self); */ 14865 } 14866 else 14867 puts (dlerror ()); 14868 14869 return status; 14870} 14871_LT_EOF 14872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14873 (eval $ac_link) 2>&5 14874 ac_status=$? 14875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14876 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14877 (./conftest; exit; ) >&5 2>/dev/null 14878 lt_status=$? 14879 case x$lt_status in 14880 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14881 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14882 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 14883 esac 14884 else : 14885 # compilation failed 14886 lt_cv_dlopen_self=no 14887 fi 14888fi 14889rm -fr conftest* 14890 14891 14892fi 14893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 14894$as_echo "$lt_cv_dlopen_self" >&6; } 14895 14896 if test yes = "$lt_cv_dlopen_self"; then 14897 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 14899$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 14900if ${lt_cv_dlopen_self_static+:} false; then : 14901 $as_echo_n "(cached) " >&6 14902else 14903 if test yes = "$cross_compiling"; then : 14904 lt_cv_dlopen_self_static=cross 14905else 14906 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14907 lt_status=$lt_dlunknown 14908 cat > conftest.$ac_ext <<_LT_EOF 14909#line $LINENO "configure" 14910#include "confdefs.h" 14911 14912#if HAVE_DLFCN_H 14913#include <dlfcn.h> 14914#endif 14915 14916#include <stdio.h> 14917 14918#ifdef RTLD_GLOBAL 14919# define LT_DLGLOBAL RTLD_GLOBAL 14920#else 14921# ifdef DL_GLOBAL 14922# define LT_DLGLOBAL DL_GLOBAL 14923# else 14924# define LT_DLGLOBAL 0 14925# endif 14926#endif 14927 14928/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14929 find out it does not work in some platform. */ 14930#ifndef LT_DLLAZY_OR_NOW 14931# ifdef RTLD_LAZY 14932# define LT_DLLAZY_OR_NOW RTLD_LAZY 14933# else 14934# ifdef DL_LAZY 14935# define LT_DLLAZY_OR_NOW DL_LAZY 14936# else 14937# ifdef RTLD_NOW 14938# define LT_DLLAZY_OR_NOW RTLD_NOW 14939# else 14940# ifdef DL_NOW 14941# define LT_DLLAZY_OR_NOW DL_NOW 14942# else 14943# define LT_DLLAZY_OR_NOW 0 14944# endif 14945# endif 14946# endif 14947# endif 14948#endif 14949 14950/* When -fvisibility=hidden is used, assume the code has been annotated 14951 correspondingly for the symbols needed. */ 14952#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14953int fnord () __attribute__((visibility("default"))); 14954#endif 14955 14956int fnord () { return 42; } 14957int main () 14958{ 14959 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14960 int status = $lt_dlunknown; 14961 14962 if (self) 14963 { 14964 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14965 else 14966 { 14967 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14968 else puts (dlerror ()); 14969 } 14970 /* dlclose (self); */ 14971 } 14972 else 14973 puts (dlerror ()); 14974 14975 return status; 14976} 14977_LT_EOF 14978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14979 (eval $ac_link) 2>&5 14980 ac_status=$? 14981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14982 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14983 (./conftest; exit; ) >&5 2>/dev/null 14984 lt_status=$? 14985 case x$lt_status in 14986 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14987 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14988 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 14989 esac 14990 else : 14991 # compilation failed 14992 lt_cv_dlopen_self_static=no 14993 fi 14994fi 14995rm -fr conftest* 14996 14997 14998fi 14999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 15000$as_echo "$lt_cv_dlopen_self_static" >&6; } 15001 fi 15002 15003 CPPFLAGS=$save_CPPFLAGS 15004 LDFLAGS=$save_LDFLAGS 15005 LIBS=$save_LIBS 15006 ;; 15007 esac 15008 15009 case $lt_cv_dlopen_self in 15010 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 15011 *) enable_dlopen_self=unknown ;; 15012 esac 15013 15014 case $lt_cv_dlopen_self_static in 15015 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 15016 *) enable_dlopen_self_static=unknown ;; 15017 esac 15018fi 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 15036striplib= 15037old_striplib= 15038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 15039$as_echo_n "checking whether stripping libraries is possible... " >&6; } 15040if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 15041 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15042 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15044$as_echo "yes" >&6; } 15045else 15046# FIXME - insert some real tests, host_os isn't really good enough 15047 case $host_os in 15048 darwin*) 15049 if test -n "$STRIP"; then 15050 striplib="$STRIP -x" 15051 old_striplib="$STRIP -S" 15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15053$as_echo "yes" >&6; } 15054 else 15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15056$as_echo "no" >&6; } 15057 fi 15058 ;; 15059 *) 15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15061$as_echo "no" >&6; } 15062 ;; 15063 esac 15064fi 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 # Report what library types will actually be built 15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 15079$as_echo_n "checking if libtool supports shared libraries... " >&6; } 15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 15081$as_echo "$can_build_shared" >&6; } 15082 15083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 15084$as_echo_n "checking whether to build shared libraries... " >&6; } 15085 test no = "$can_build_shared" && enable_shared=no 15086 15087 # On AIX, shared libraries and static libraries use the same namespace, and 15088 # are all built from PIC. 15089 case $host_os in 15090 aix3*) 15091 test yes = "$enable_shared" && enable_static=no 15092 if test -n "$RANLIB"; then 15093 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15094 postinstall_cmds='$RANLIB $lib' 15095 fi 15096 ;; 15097 15098 aix[4-9]*) 15099 if test ia64 != "$host_cpu"; then 15100 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 15101 yes,aix,yes) ;; # shared object as lib.so file only 15102 yes,svr4,*) ;; # shared object as lib.so archive member only 15103 yes,*) enable_static=no ;; # shared object in lib.a archive as well 15104 esac 15105 fi 15106 ;; 15107 esac 15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 15109$as_echo "$enable_shared" >&6; } 15110 15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 15112$as_echo_n "checking whether to build static libraries... " >&6; } 15113 # Make sure either enable_shared or enable_static is yes. 15114 test yes = "$enable_shared" || enable_static=yes 15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 15116$as_echo "$enable_static" >&6; } 15117 15118 15119 15120 15121fi 15122ac_ext=c 15123ac_cpp='$CPP $CPPFLAGS' 15124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15126ac_compiler_gnu=$ac_cv_c_compiler_gnu 15127 15128CC=$lt_save_CC 15129 15130 if test -n "$CXX" && ( test no != "$CXX" && 15131 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 15132 (test g++ != "$CXX"))); then 15133 ac_ext=cpp 15134ac_cpp='$CXXCPP $CPPFLAGS' 15135ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15136ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15137ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 15139$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 15140if test -z "$CXXCPP"; then 15141 if ${ac_cv_prog_CXXCPP+:} false; then : 15142 $as_echo_n "(cached) " >&6 15143else 15144 # Double quotes because CXXCPP needs to be expanded 15145 for CXXCPP in "$CXX -E" "/lib/cpp" 15146 do 15147 ac_preproc_ok=false 15148for ac_cxx_preproc_warn_flag in '' yes 15149do 15150 # Use a header file that comes with gcc, so configuring glibc 15151 # with a fresh cross-compiler works. 15152 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15153 # <limits.h> exists even on freestanding compilers. 15154 # On the NeXT, cc -E runs the code through the compiler's parser, 15155 # not just through cpp. "Syntax error" is here to catch this case. 15156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15157/* end confdefs.h. */ 15158#ifdef __STDC__ 15159# include <limits.h> 15160#else 15161# include <assert.h> 15162#endif 15163 Syntax error 15164_ACEOF 15165if ac_fn_cxx_try_cpp "$LINENO"; then : 15166 15167else 15168 # Broken: fails on valid input. 15169continue 15170fi 15171rm -f conftest.err conftest.i conftest.$ac_ext 15172 15173 # OK, works on sane cases. Now check whether nonexistent headers 15174 # can be detected and how. 15175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15176/* end confdefs.h. */ 15177#include <ac_nonexistent.h> 15178_ACEOF 15179if ac_fn_cxx_try_cpp "$LINENO"; then : 15180 # Broken: success on invalid input. 15181continue 15182else 15183 # Passes both tests. 15184ac_preproc_ok=: 15185break 15186fi 15187rm -f conftest.err conftest.i conftest.$ac_ext 15188 15189done 15190# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 15191rm -f conftest.i conftest.err conftest.$ac_ext 15192if $ac_preproc_ok; then : 15193 break 15194fi 15195 15196 done 15197 ac_cv_prog_CXXCPP=$CXXCPP 15198 15199fi 15200 CXXCPP=$ac_cv_prog_CXXCPP 15201else 15202 ac_cv_prog_CXXCPP=$CXXCPP 15203fi 15204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 15205$as_echo "$CXXCPP" >&6; } 15206ac_preproc_ok=false 15207for ac_cxx_preproc_warn_flag in '' yes 15208do 15209 # Use a header file that comes with gcc, so configuring glibc 15210 # with a fresh cross-compiler works. 15211 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15212 # <limits.h> exists even on freestanding compilers. 15213 # On the NeXT, cc -E runs the code through the compiler's parser, 15214 # not just through cpp. "Syntax error" is here to catch this case. 15215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15216/* end confdefs.h. */ 15217#ifdef __STDC__ 15218# include <limits.h> 15219#else 15220# include <assert.h> 15221#endif 15222 Syntax error 15223_ACEOF 15224if ac_fn_cxx_try_cpp "$LINENO"; then : 15225 15226else 15227 # Broken: fails on valid input. 15228continue 15229fi 15230rm -f conftest.err conftest.i conftest.$ac_ext 15231 15232 # OK, works on sane cases. Now check whether nonexistent headers 15233 # can be detected and how. 15234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15235/* end confdefs.h. */ 15236#include <ac_nonexistent.h> 15237_ACEOF 15238if ac_fn_cxx_try_cpp "$LINENO"; then : 15239 # Broken: success on invalid input. 15240continue 15241else 15242 # Passes both tests. 15243ac_preproc_ok=: 15244break 15245fi 15246rm -f conftest.err conftest.i conftest.$ac_ext 15247 15248done 15249# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 15250rm -f conftest.i conftest.err conftest.$ac_ext 15251if $ac_preproc_ok; then : 15252 15253else 15254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15256as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 15257See \`config.log' for more details" "$LINENO" 5; } 15258fi 15259 15260ac_ext=c 15261ac_cpp='$CPP $CPPFLAGS' 15262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15264ac_compiler_gnu=$ac_cv_c_compiler_gnu 15265 15266else 15267 _lt_caught_CXX_error=yes 15268fi 15269 15270ac_ext=cpp 15271ac_cpp='$CXXCPP $CPPFLAGS' 15272ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15273ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15274ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15275 15276archive_cmds_need_lc_CXX=no 15277allow_undefined_flag_CXX= 15278always_export_symbols_CXX=no 15279archive_expsym_cmds_CXX= 15280compiler_needs_object_CXX=no 15281export_dynamic_flag_spec_CXX= 15282hardcode_direct_CXX=no 15283hardcode_direct_absolute_CXX=no 15284hardcode_libdir_flag_spec_CXX= 15285hardcode_libdir_separator_CXX= 15286hardcode_minus_L_CXX=no 15287hardcode_shlibpath_var_CXX=unsupported 15288hardcode_automatic_CXX=no 15289inherit_rpath_CXX=no 15290module_cmds_CXX= 15291module_expsym_cmds_CXX= 15292link_all_deplibs_CXX=unknown 15293old_archive_cmds_CXX=$old_archive_cmds 15294reload_flag_CXX=$reload_flag 15295reload_cmds_CXX=$reload_cmds 15296no_undefined_flag_CXX= 15297whole_archive_flag_spec_CXX= 15298enable_shared_with_static_runtimes_CXX=no 15299 15300# Source file extension for C++ test sources. 15301ac_ext=cpp 15302 15303# Object file extension for compiled C++ test sources. 15304objext=o 15305objext_CXX=$objext 15306 15307# No sense in running all these tests if we already determined that 15308# the CXX compiler isn't working. Some variables (like enable_shared) 15309# are currently assumed to apply to all compilers on this platform, 15310# and will be corrupted by setting them based on a non-working compiler. 15311if test yes != "$_lt_caught_CXX_error"; then 15312 # Code to be used in simple compile tests 15313 lt_simple_compile_test_code="int some_variable = 0;" 15314 15315 # Code to be used in simple link tests 15316 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 15317 15318 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 15319 15320 15321 15322 15323 15324 15325# If no C compiler was specified, use CC. 15326LTCC=${LTCC-"$CC"} 15327 15328# If no C compiler flags were specified, use CFLAGS. 15329LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15330 15331# Allow CC to be a program name with arguments. 15332compiler=$CC 15333 15334 15335 # save warnings/boilerplate of simple test code 15336 ac_outfile=conftest.$ac_objext 15337echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15338eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15339_lt_compiler_boilerplate=`cat conftest.err` 15340$RM conftest* 15341 15342 ac_outfile=conftest.$ac_objext 15343echo "$lt_simple_link_test_code" >conftest.$ac_ext 15344eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15345_lt_linker_boilerplate=`cat conftest.err` 15346$RM -r conftest* 15347 15348 15349 # Allow CC to be a program name with arguments. 15350 lt_save_CC=$CC 15351 lt_save_CFLAGS=$CFLAGS 15352 lt_save_LD=$LD 15353 lt_save_GCC=$GCC 15354 GCC=$GXX 15355 lt_save_with_gnu_ld=$with_gnu_ld 15356 lt_save_path_LD=$lt_cv_path_LD 15357 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 15358 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 15359 else 15360 $as_unset lt_cv_prog_gnu_ld 15361 fi 15362 if test -n "${lt_cv_path_LDCXX+set}"; then 15363 lt_cv_path_LD=$lt_cv_path_LDCXX 15364 else 15365 $as_unset lt_cv_path_LD 15366 fi 15367 test -z "${LDCXX+set}" || LD=$LDCXX 15368 CC=${CXX-"c++"} 15369 CFLAGS=$CXXFLAGS 15370 compiler=$CC 15371 compiler_CXX=$CC 15372 func_cc_basename $compiler 15373cc_basename=$func_cc_basename_result 15374 15375 15376 if test -n "$compiler"; then 15377 # We don't want -fno-exception when compiling C++ code, so set the 15378 # no_builtin_flag separately 15379 if test yes = "$GXX"; then 15380 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 15381 else 15382 lt_prog_compiler_no_builtin_flag_CXX= 15383 fi 15384 15385 if test yes = "$GXX"; then 15386 # Set up default GNU C++ configuration 15387 15388 15389 15390# Check whether --with-gnu-ld was given. 15391if test "${with_gnu_ld+set}" = set; then : 15392 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 15393else 15394 with_gnu_ld=no 15395fi 15396 15397ac_prog=ld 15398if test yes = "$GCC"; then 15399 # Check if gcc -print-prog-name=ld gives a path. 15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 15401$as_echo_n "checking for ld used by $CC... " >&6; } 15402 case $host in 15403 *-*-mingw*) 15404 # gcc leaves a trailing carriage return, which upsets mingw 15405 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 15406 *) 15407 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 15408 esac 15409 case $ac_prog in 15410 # Accept absolute paths. 15411 [\\/]* | ?:[\\/]*) 15412 re_direlt='/[^/][^/]*/\.\./' 15413 # Canonicalize the pathname of ld 15414 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 15415 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 15416 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 15417 done 15418 test -z "$LD" && LD=$ac_prog 15419 ;; 15420 "") 15421 # If it fails, then pretend we aren't using GCC. 15422 ac_prog=ld 15423 ;; 15424 *) 15425 # If it is relative, then search for the first ld in PATH. 15426 with_gnu_ld=unknown 15427 ;; 15428 esac 15429elif test yes = "$with_gnu_ld"; then 15430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 15431$as_echo_n "checking for GNU ld... " >&6; } 15432else 15433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 15434$as_echo_n "checking for non-GNU ld... " >&6; } 15435fi 15436if ${lt_cv_path_LD+:} false; then : 15437 $as_echo_n "(cached) " >&6 15438else 15439 if test -z "$LD"; then 15440 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15441 for ac_dir in $PATH; do 15442 IFS=$lt_save_ifs 15443 test -z "$ac_dir" && ac_dir=. 15444 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 15445 lt_cv_path_LD=$ac_dir/$ac_prog 15446 # Check to see if the program is GNU ld. I'd rather use --version, 15447 # but apparently some variants of GNU ld only accept -v. 15448 # Break only if it was the GNU/non-GNU ld that we prefer. 15449 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 15450 *GNU* | *'with BFD'*) 15451 test no != "$with_gnu_ld" && break 15452 ;; 15453 *) 15454 test yes != "$with_gnu_ld" && break 15455 ;; 15456 esac 15457 fi 15458 done 15459 IFS=$lt_save_ifs 15460else 15461 lt_cv_path_LD=$LD # Let the user override the test with a path. 15462fi 15463fi 15464 15465LD=$lt_cv_path_LD 15466if test -n "$LD"; then 15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 15468$as_echo "$LD" >&6; } 15469else 15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15471$as_echo "no" >&6; } 15472fi 15473test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 15474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 15475$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 15476if ${lt_cv_prog_gnu_ld+:} false; then : 15477 $as_echo_n "(cached) " >&6 15478else 15479 # I'd rather use --version here, but apparently some GNU lds only accept -v. 15480case `$LD -v 2>&1 </dev/null` in 15481*GNU* | *'with BFD'*) 15482 lt_cv_prog_gnu_ld=yes 15483 ;; 15484*) 15485 lt_cv_prog_gnu_ld=no 15486 ;; 15487esac 15488fi 15489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 15490$as_echo "$lt_cv_prog_gnu_ld" >&6; } 15491with_gnu_ld=$lt_cv_prog_gnu_ld 15492 15493 15494 15495 15496 15497 15498 15499 # Check if GNU C++ uses GNU ld as the underlying linker, since the 15500 # archiving commands below assume that GNU ld is being used. 15501 if test yes = "$with_gnu_ld"; then 15502 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15503 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' 15504 15505 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15506 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15507 15508 # If archive_cmds runs LD, not CC, wlarc should be empty 15509 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 15510 # investigate it a little bit more. (MM) 15511 wlarc='$wl' 15512 15513 # ancient GNU ld didn't support --whole-archive et. al. 15514 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 15515 $GREP 'no-whole-archive' > /dev/null; then 15516 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15517 else 15518 whole_archive_flag_spec_CXX= 15519 fi 15520 else 15521 with_gnu_ld=no 15522 wlarc= 15523 15524 # A generic and very simple default shared library creation 15525 # command for GNU C++ for the case where it uses the native 15526 # linker, instead of GNU ld. If possible, this setting should 15527 # overridden to take advantage of the native linker features on 15528 # the platform it is being used on. 15529 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 15530 fi 15531 15532 # Commands to make compiler produce verbose output that lists 15533 # what "hidden" libraries, object files and flags are used when 15534 # linking a shared library. 15535 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15536 15537 else 15538 GXX=no 15539 with_gnu_ld=no 15540 wlarc= 15541 fi 15542 15543 # PORTME: fill in a description of your system's C++ link characteristics 15544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15545$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15546 ld_shlibs_CXX=yes 15547 case $host_os in 15548 aix3*) 15549 # FIXME: insert proper C++ library support 15550 ld_shlibs_CXX=no 15551 ;; 15552 aix[4-9]*) 15553 if test ia64 = "$host_cpu"; then 15554 # On IA64, the linker does run time linking by default, so we don't 15555 # have to do anything special. 15556 aix_use_runtimelinking=no 15557 exp_sym_flag='-Bexport' 15558 no_entry_flag= 15559 else 15560 aix_use_runtimelinking=no 15561 15562 # Test if we are trying to use run time linking or normal 15563 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15564 # have runtime linking enabled, and use it for executables. 15565 # For shared libraries, we enable/disable runtime linking 15566 # depending on the kind of the shared library created - 15567 # when "with_aix_soname,aix_use_runtimelinking" is: 15568 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 15569 # "aix,yes" lib.so shared, rtl:yes, for executables 15570 # lib.a static archive 15571 # "both,no" lib.so.V(shr.o) shared, rtl:yes 15572 # lib.a(lib.so.V) shared, rtl:no, for executables 15573 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 15574 # lib.a(lib.so.V) shared, rtl:no 15575 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 15576 # lib.a static archive 15577 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15578 for ld_flag in $LDFLAGS; do 15579 case $ld_flag in 15580 *-brtl*) 15581 aix_use_runtimelinking=yes 15582 break 15583 ;; 15584 esac 15585 done 15586 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 15587 # With aix-soname=svr4, we create the lib.so.V shared archives only, 15588 # so we don't have lib.a shared libs to link our executables. 15589 # We have to force runtime linking in this case. 15590 aix_use_runtimelinking=yes 15591 LDFLAGS="$LDFLAGS -Wl,-brtl" 15592 fi 15593 ;; 15594 esac 15595 15596 exp_sym_flag='-bexport' 15597 no_entry_flag='-bnoentry' 15598 fi 15599 15600 # When large executables or shared objects are built, AIX ld can 15601 # have problems creating the table of contents. If linking a library 15602 # or program results in "error TOC overflow" add -mminimal-toc to 15603 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15604 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15605 15606 archive_cmds_CXX='' 15607 hardcode_direct_CXX=yes 15608 hardcode_direct_absolute_CXX=yes 15609 hardcode_libdir_separator_CXX=':' 15610 link_all_deplibs_CXX=yes 15611 file_list_spec_CXX='$wl-f,' 15612 case $with_aix_soname,$aix_use_runtimelinking in 15613 aix,*) ;; # no import file 15614 svr4,* | *,yes) # use import file 15615 # The Import File defines what to hardcode. 15616 hardcode_direct_CXX=no 15617 hardcode_direct_absolute_CXX=no 15618 ;; 15619 esac 15620 15621 if test yes = "$GXX"; then 15622 case $host_os in aix4.[012]|aix4.[012].*) 15623 # We only want to do this on AIX 4.2 and lower, the check 15624 # below for broken collect2 doesn't work under 4.3+ 15625 collect2name=`$CC -print-prog-name=collect2` 15626 if test -f "$collect2name" && 15627 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15628 then 15629 # We have reworked collect2 15630 : 15631 else 15632 # We have old collect2 15633 hardcode_direct_CXX=unsupported 15634 # It fails to find uninstalled libraries when the uninstalled 15635 # path is not listed in the libpath. Setting hardcode_minus_L 15636 # to unsupported forces relinking 15637 hardcode_minus_L_CXX=yes 15638 hardcode_libdir_flag_spec_CXX='-L$libdir' 15639 hardcode_libdir_separator_CXX= 15640 fi 15641 esac 15642 shared_flag='-shared' 15643 if test yes = "$aix_use_runtimelinking"; then 15644 shared_flag=$shared_flag' $wl-G' 15645 fi 15646 # Need to ensure runtime linking is disabled for the traditional 15647 # shared library, or the linker may eventually find shared libraries 15648 # /with/ Import File - we do not want to mix them. 15649 shared_flag_aix='-shared' 15650 shared_flag_svr4='-shared $wl-G' 15651 else 15652 # not using gcc 15653 if test ia64 = "$host_cpu"; then 15654 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15655 # chokes on -Wl,-G. The following line is correct: 15656 shared_flag='-G' 15657 else 15658 if test yes = "$aix_use_runtimelinking"; then 15659 shared_flag='$wl-G' 15660 else 15661 shared_flag='$wl-bM:SRE' 15662 fi 15663 shared_flag_aix='$wl-bM:SRE' 15664 shared_flag_svr4='$wl-G' 15665 fi 15666 fi 15667 15668 export_dynamic_flag_spec_CXX='$wl-bexpall' 15669 # It seems that -bexpall does not export symbols beginning with 15670 # underscore (_), so it is better to generate a list of symbols to 15671 # export. 15672 always_export_symbols_CXX=yes 15673 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 15674 # Warning - without using the other runtime loading flags (-brtl), 15675 # -berok will link without error, but may produce a broken library. 15676 # The "-G" linker flag allows undefined symbols. 15677 no_undefined_flag_CXX='-bernotok' 15678 # Determine the default libpath from the value encoded in an empty 15679 # executable. 15680 if test set = "${lt_cv_aix_libpath+set}"; then 15681 aix_libpath=$lt_cv_aix_libpath 15682else 15683 if ${lt_cv_aix_libpath__CXX+:} false; then : 15684 $as_echo_n "(cached) " >&6 15685else 15686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15687/* end confdefs.h. */ 15688 15689int 15690main () 15691{ 15692 15693 ; 15694 return 0; 15695} 15696_ACEOF 15697if ac_fn_cxx_try_link "$LINENO"; then : 15698 15699 lt_aix_libpath_sed=' 15700 /Import File Strings/,/^$/ { 15701 /^0/ { 15702 s/^0 *\([^ ]*\) *$/\1/ 15703 p 15704 } 15705 }' 15706 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15707 # Check for a 64-bit object if we didn't find anything. 15708 if test -z "$lt_cv_aix_libpath__CXX"; then 15709 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15710 fi 15711fi 15712rm -f core conftest.err conftest.$ac_objext \ 15713 conftest$ac_exeext conftest.$ac_ext 15714 if test -z "$lt_cv_aix_libpath__CXX"; then 15715 lt_cv_aix_libpath__CXX=/usr/lib:/lib 15716 fi 15717 15718fi 15719 15720 aix_libpath=$lt_cv_aix_libpath__CXX 15721fi 15722 15723 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 15724 15725 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 15726 else 15727 if test ia64 = "$host_cpu"; then 15728 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 15729 allow_undefined_flag_CXX="-z nodefs" 15730 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" 15731 else 15732 # Determine the default libpath from the value encoded in an 15733 # empty executable. 15734 if test set = "${lt_cv_aix_libpath+set}"; then 15735 aix_libpath=$lt_cv_aix_libpath 15736else 15737 if ${lt_cv_aix_libpath__CXX+:} false; then : 15738 $as_echo_n "(cached) " >&6 15739else 15740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15741/* end confdefs.h. */ 15742 15743int 15744main () 15745{ 15746 15747 ; 15748 return 0; 15749} 15750_ACEOF 15751if ac_fn_cxx_try_link "$LINENO"; then : 15752 15753 lt_aix_libpath_sed=' 15754 /Import File Strings/,/^$/ { 15755 /^0/ { 15756 s/^0 *\([^ ]*\) *$/\1/ 15757 p 15758 } 15759 }' 15760 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15761 # Check for a 64-bit object if we didn't find anything. 15762 if test -z "$lt_cv_aix_libpath__CXX"; then 15763 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15764 fi 15765fi 15766rm -f core conftest.err conftest.$ac_objext \ 15767 conftest$ac_exeext conftest.$ac_ext 15768 if test -z "$lt_cv_aix_libpath__CXX"; then 15769 lt_cv_aix_libpath__CXX=/usr/lib:/lib 15770 fi 15771 15772fi 15773 15774 aix_libpath=$lt_cv_aix_libpath__CXX 15775fi 15776 15777 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 15778 # Warning - without using the other run time loading flags, 15779 # -berok will link without error, but may produce a broken library. 15780 no_undefined_flag_CXX=' $wl-bernotok' 15781 allow_undefined_flag_CXX=' $wl-berok' 15782 if test yes = "$with_gnu_ld"; then 15783 # We only use this code for GNU lds that support --whole-archive. 15784 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 15785 else 15786 # Exported symbols can be pulled into shared objects from archives 15787 whole_archive_flag_spec_CXX='$convenience' 15788 fi 15789 archive_cmds_need_lc_CXX=yes 15790 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 15791 # -brtl affects multiple linker settings, -berok does not and is overridden later 15792 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 15793 if test svr4 != "$with_aix_soname"; then 15794 # This is similar to how AIX traditionally builds its shared 15795 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 15796 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' 15797 fi 15798 if test aix != "$with_aix_soname"; then 15799 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' 15800 else 15801 # used by -dlpreopen to get the symbols 15802 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 15803 fi 15804 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 15805 fi 15806 fi 15807 ;; 15808 15809 beos*) 15810 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15811 allow_undefined_flag_CXX=unsupported 15812 # Joseph Beckenbach <[email protected]> says some releases of gcc 15813 # support --undefined. This deserves some investigation. FIXME 15814 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15815 else 15816 ld_shlibs_CXX=no 15817 fi 15818 ;; 15819 15820 chorus*) 15821 case $cc_basename in 15822 *) 15823 # FIXME: insert proper C++ library support 15824 ld_shlibs_CXX=no 15825 ;; 15826 esac 15827 ;; 15828 15829 cygwin* | mingw* | pw32* | cegcc*) 15830 case $GXX,$cc_basename in 15831 ,cl* | no,cl*) 15832 # Native MSVC 15833 # hardcode_libdir_flag_spec is actually meaningless, as there is 15834 # no search path for DLLs. 15835 hardcode_libdir_flag_spec_CXX=' ' 15836 allow_undefined_flag_CXX=unsupported 15837 always_export_symbols_CXX=yes 15838 file_list_spec_CXX='@' 15839 # Tell ltmain to make .lib files, not .a files. 15840 libext=lib 15841 # Tell ltmain to make .dll files, not .so files. 15842 shrext_cmds=.dll 15843 # FIXME: Setting linknames here is a bad hack. 15844 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 15845 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15846 cp "$export_symbols" "$output_objdir/$soname.def"; 15847 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 15848 else 15849 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 15850 fi~ 15851 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 15852 linknames=' 15853 # The linker will not automatically build a static lib if we build a DLL. 15854 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 15855 enable_shared_with_static_runtimes_CXX=yes 15856 # Don't use ranlib 15857 old_postinstall_cmds_CXX='chmod 644 $oldlib' 15858 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 15859 lt_tool_outputfile="@TOOL_OUTPUT@"~ 15860 case $lt_outputfile in 15861 *.exe|*.EXE) ;; 15862 *) 15863 lt_outputfile=$lt_outputfile.exe 15864 lt_tool_outputfile=$lt_tool_outputfile.exe 15865 ;; 15866 esac~ 15867 func_to_tool_file "$lt_outputfile"~ 15868 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 15869 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 15870 $RM "$lt_outputfile.manifest"; 15871 fi' 15872 ;; 15873 *) 15874 # g++ 15875 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 15876 # as there is no search path for DLLs. 15877 hardcode_libdir_flag_spec_CXX='-L$libdir' 15878 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 15879 allow_undefined_flag_CXX=unsupported 15880 always_export_symbols_CXX=no 15881 enable_shared_with_static_runtimes_CXX=yes 15882 15883 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15884 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' 15885 # If the export-symbols file already is a .def file, use it as 15886 # is; otherwise, prepend EXPORTS... 15887 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15888 cp $export_symbols $output_objdir/$soname.def; 15889 else 15890 echo EXPORTS > $output_objdir/$soname.def; 15891 cat $export_symbols >> $output_objdir/$soname.def; 15892 fi~ 15893 $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' 15894 else 15895 ld_shlibs_CXX=no 15896 fi 15897 ;; 15898 esac 15899 ;; 15900 darwin* | rhapsody*) 15901 15902 15903 archive_cmds_need_lc_CXX=no 15904 hardcode_direct_CXX=no 15905 hardcode_automatic_CXX=yes 15906 hardcode_shlibpath_var_CXX=unsupported 15907 if test yes = "$lt_cv_ld_force_load"; then 15908 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\"`' 15909 15910 else 15911 whole_archive_flag_spec_CXX='' 15912 fi 15913 link_all_deplibs_CXX=yes 15914 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 15915 case $cc_basename in 15916 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 15917 *) _lt_dar_can_shared=$GCC ;; 15918 esac 15919 if test yes = "$_lt_dar_can_shared"; then 15920 output_verbose_link_cmd=func_echo_all 15921 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" 15922 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 15923 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" 15924 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" 15925 if test yes != "$lt_cv_apple_cc_single_mod"; then 15926 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" 15927 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" 15928 fi 15929 15930 else 15931 ld_shlibs_CXX=no 15932 fi 15933 15934 ;; 15935 15936 os2*) 15937 hardcode_libdir_flag_spec_CXX='-L$libdir' 15938 hardcode_minus_L_CXX=yes 15939 allow_undefined_flag_CXX=unsupported 15940 shrext_cmds=.dll 15941 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15942 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15943 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15944 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15945 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15946 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15947 emximp -o $lib $output_objdir/$libname.def' 15948 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15949 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15950 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15951 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15952 prefix_cmds="$SED"~ 15953 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15954 prefix_cmds="$prefix_cmds -e 1d"; 15955 fi~ 15956 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15957 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15958 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15959 emximp -o $lib $output_objdir/$libname.def' 15960 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15961 enable_shared_with_static_runtimes_CXX=yes 15962 ;; 15963 15964 dgux*) 15965 case $cc_basename in 15966 ec++*) 15967 # FIXME: insert proper C++ library support 15968 ld_shlibs_CXX=no 15969 ;; 15970 ghcx*) 15971 # Green Hills C++ Compiler 15972 # FIXME: insert proper C++ library support 15973 ld_shlibs_CXX=no 15974 ;; 15975 *) 15976 # FIXME: insert proper C++ library support 15977 ld_shlibs_CXX=no 15978 ;; 15979 esac 15980 ;; 15981 15982 freebsd2.*) 15983 # C++ shared libraries reported to be fairly broken before 15984 # switch to ELF 15985 ld_shlibs_CXX=no 15986 ;; 15987 15988 freebsd-elf*) 15989 archive_cmds_need_lc_CXX=no 15990 ;; 15991 15992 freebsd* | dragonfly*) 15993 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 15994 # conventions 15995 ld_shlibs_CXX=yes 15996 ;; 15997 15998 haiku*) 15999 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16000 link_all_deplibs_CXX=yes 16001 ;; 16002 16003 hpux9*) 16004 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 16005 hardcode_libdir_separator_CXX=: 16006 export_dynamic_flag_spec_CXX='$wl-E' 16007 hardcode_direct_CXX=yes 16008 hardcode_minus_L_CXX=yes # Not in the search PATH, 16009 # but as the default 16010 # location of the library. 16011 16012 case $cc_basename in 16013 CC*) 16014 # FIXME: insert proper C++ library support 16015 ld_shlibs_CXX=no 16016 ;; 16017 aCC*) 16018 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' 16019 # Commands to make compiler produce verbose output that lists 16020 # what "hidden" libraries, object files and flags are used when 16021 # linking a shared library. 16022 # 16023 # There doesn't appear to be a way to prevent this compiler from 16024 # explicitly linking system object files so we need to strip them 16025 # from the output so that they don't get included in the library 16026 # dependencies. 16027 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"' 16028 ;; 16029 *) 16030 if test yes = "$GXX"; then 16031 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' 16032 else 16033 # FIXME: insert proper C++ library support 16034 ld_shlibs_CXX=no 16035 fi 16036 ;; 16037 esac 16038 ;; 16039 16040 hpux10*|hpux11*) 16041 if test no = "$with_gnu_ld"; then 16042 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 16043 hardcode_libdir_separator_CXX=: 16044 16045 case $host_cpu in 16046 hppa*64*|ia64*) 16047 ;; 16048 *) 16049 export_dynamic_flag_spec_CXX='$wl-E' 16050 ;; 16051 esac 16052 fi 16053 case $host_cpu in 16054 hppa*64*|ia64*) 16055 hardcode_direct_CXX=no 16056 hardcode_shlibpath_var_CXX=no 16057 ;; 16058 *) 16059 hardcode_direct_CXX=yes 16060 hardcode_direct_absolute_CXX=yes 16061 hardcode_minus_L_CXX=yes # Not in the search PATH, 16062 # but as the default 16063 # location of the library. 16064 ;; 16065 esac 16066 16067 case $cc_basename in 16068 CC*) 16069 # FIXME: insert proper C++ library support 16070 ld_shlibs_CXX=no 16071 ;; 16072 aCC*) 16073 case $host_cpu in 16074 hppa*64*) 16075 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16076 ;; 16077 ia64*) 16078 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16079 ;; 16080 *) 16081 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16082 ;; 16083 esac 16084 # Commands to make compiler produce verbose output that lists 16085 # what "hidden" libraries, object files and flags are used when 16086 # linking a shared library. 16087 # 16088 # There doesn't appear to be a way to prevent this compiler from 16089 # explicitly linking system object files so we need to strip them 16090 # from the output so that they don't get included in the library 16091 # dependencies. 16092 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"' 16093 ;; 16094 *) 16095 if test yes = "$GXX"; then 16096 if test no = "$with_gnu_ld"; then 16097 case $host_cpu in 16098 hppa*64*) 16099 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16100 ;; 16101 ia64*) 16102 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16103 ;; 16104 *) 16105 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' 16106 ;; 16107 esac 16108 fi 16109 else 16110 # FIXME: insert proper C++ library support 16111 ld_shlibs_CXX=no 16112 fi 16113 ;; 16114 esac 16115 ;; 16116 16117 interix[3-9]*) 16118 hardcode_direct_CXX=no 16119 hardcode_shlibpath_var_CXX=no 16120 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16121 export_dynamic_flag_spec_CXX='$wl-E' 16122 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16123 # Instead, shared libraries are loaded at an image base (0x10000000 by 16124 # default) and relocated if they conflict, which is a slow very memory 16125 # consuming and fragmenting process. To avoid this, we pick a random, 16126 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16127 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16128 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' 16129 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' 16130 ;; 16131 irix5* | irix6*) 16132 case $cc_basename in 16133 CC*) 16134 # SGI C++ 16135 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' 16136 16137 # Archives containing C++ object files must be created using 16138 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 16139 # necessary to make sure instantiated templates are included 16140 # in the archive. 16141 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 16142 ;; 16143 *) 16144 if test yes = "$GXX"; then 16145 if test no = "$with_gnu_ld"; then 16146 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' 16147 else 16148 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' 16149 fi 16150 fi 16151 link_all_deplibs_CXX=yes 16152 ;; 16153 esac 16154 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16155 hardcode_libdir_separator_CXX=: 16156 inherit_rpath_CXX=yes 16157 ;; 16158 16159 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16160 case $cc_basename in 16161 KCC*) 16162 # Kuck and Associates, Inc. (KAI) C++ Compiler 16163 16164 # KCC will only create a shared library if the output file 16165 # ends with ".so" (or ".sl" for HP-UX), so rename the library 16166 # to its proper name (with version) after linking. 16167 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' 16168 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' 16169 # Commands to make compiler produce verbose output that lists 16170 # what "hidden" libraries, object files and flags are used when 16171 # linking a shared library. 16172 # 16173 # There doesn't appear to be a way to prevent this compiler from 16174 # explicitly linking system object files so we need to strip them 16175 # from the output so that they don't get included in the library 16176 # dependencies. 16177 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"' 16178 16179 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16180 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16181 16182 # Archives containing C++ object files must be created using 16183 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 16184 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 16185 ;; 16186 icpc* | ecpc* ) 16187 # Intel C++ 16188 with_gnu_ld=yes 16189 # version 8.0 and above of icpc choke on multiply defined symbols 16190 # if we add $predep_objects and $postdep_objects, however 7.1 and 16191 # earlier do not add the objects themselves. 16192 case `$CC -V 2>&1` in 16193 *"Version 7."*) 16194 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16195 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' 16196 ;; 16197 *) # Version 8.0 or newer 16198 tmp_idyn= 16199 case $host_cpu in 16200 ia64*) tmp_idyn=' -i_dynamic';; 16201 esac 16202 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16203 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' 16204 ;; 16205 esac 16206 archive_cmds_need_lc_CXX=no 16207 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16208 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16209 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 16210 ;; 16211 pgCC* | pgcpp*) 16212 # Portland Group C++ compiler 16213 case `$CC -V` in 16214 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 16215 prelink_cmds_CXX='tpldir=Template.dir~ 16216 rm -rf $tpldir~ 16217 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 16218 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 16219 old_archive_cmds_CXX='tpldir=Template.dir~ 16220 rm -rf $tpldir~ 16221 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 16222 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 16223 $RANLIB $oldlib' 16224 archive_cmds_CXX='tpldir=Template.dir~ 16225 rm -rf $tpldir~ 16226 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 16227 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16228 archive_expsym_cmds_CXX='tpldir=Template.dir~ 16229 rm -rf $tpldir~ 16230 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 16231 $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' 16232 ;; 16233 *) # Version 6 and above use weak symbols 16234 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16235 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' 16236 ;; 16237 esac 16238 16239 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 16240 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16241 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' 16242 ;; 16243 cxx*) 16244 # Compaq C++ 16245 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16246 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' 16247 16248 runpath_var=LD_RUN_PATH 16249 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 16250 hardcode_libdir_separator_CXX=: 16251 16252 # Commands to make compiler produce verbose output that lists 16253 # what "hidden" libraries, object files and flags are used when 16254 # linking a shared library. 16255 # 16256 # There doesn't appear to be a way to prevent this compiler from 16257 # explicitly linking system object files so we need to strip them 16258 # from the output so that they don't get included in the library 16259 # dependencies. 16260 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' 16261 ;; 16262 xl* | mpixl* | bgxl*) 16263 # IBM XL 8.0 on PPC, with GNU ld 16264 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16265 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16266 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16267 if test yes = "$supports_anon_versioning"; then 16268 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 16269 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16270 echo "local: *; };" >> $output_objdir/$libname.ver~ 16271 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16272 fi 16273 ;; 16274 *) 16275 case `$CC -V 2>&1 | sed 5q` in 16276 *Sun\ C*) 16277 # Sun C++ 5.9 16278 no_undefined_flag_CXX=' -zdefs' 16279 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16280 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' 16281 hardcode_libdir_flag_spec_CXX='-R$libdir' 16282 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' 16283 compiler_needs_object_CXX=yes 16284 16285 # Not sure whether something based on 16286 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 16287 # would be better. 16288 output_verbose_link_cmd='func_echo_all' 16289 16290 # Archives containing C++ object files must be created using 16291 # "CC -xar", where "CC" is the Sun C++ compiler. This is 16292 # necessary to make sure instantiated templates are included 16293 # in the archive. 16294 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 16295 ;; 16296 esac 16297 ;; 16298 esac 16299 ;; 16300 16301 lynxos*) 16302 # FIXME: insert proper C++ library support 16303 ld_shlibs_CXX=no 16304 ;; 16305 16306 m88k*) 16307 # FIXME: insert proper C++ library support 16308 ld_shlibs_CXX=no 16309 ;; 16310 16311 mvs*) 16312 case $cc_basename in 16313 cxx*) 16314 # FIXME: insert proper C++ library support 16315 ld_shlibs_CXX=no 16316 ;; 16317 *) 16318 # FIXME: insert proper C++ library support 16319 ld_shlibs_CXX=no 16320 ;; 16321 esac 16322 ;; 16323 16324 netbsd*) 16325 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16326 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 16327 wlarc= 16328 hardcode_libdir_flag_spec_CXX='-R$libdir' 16329 hardcode_direct_CXX=yes 16330 hardcode_shlibpath_var_CXX=no 16331 fi 16332 # Workaround some broken pre-1.5 toolchains 16333 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 16334 ;; 16335 16336 *nto* | *qnx*) 16337 ld_shlibs_CXX=yes 16338 ;; 16339 16340 openbsd* | bitrig*) 16341 if test -f /usr/libexec/ld.so; then 16342 hardcode_direct_CXX=yes 16343 hardcode_shlibpath_var_CXX=no 16344 hardcode_direct_absolute_CXX=yes 16345 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 16346 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16347 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 16348 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 16349 export_dynamic_flag_spec_CXX='$wl-E' 16350 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16351 fi 16352 output_verbose_link_cmd=func_echo_all 16353 else 16354 ld_shlibs_CXX=no 16355 fi 16356 ;; 16357 16358 osf3* | osf4* | osf5*) 16359 case $cc_basename in 16360 KCC*) 16361 # Kuck and Associates, Inc. (KAI) C++ Compiler 16362 16363 # KCC will only create a shared library if the output file 16364 # ends with ".so" (or ".sl" for HP-UX), so rename the library 16365 # to its proper name (with version) after linking. 16366 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' 16367 16368 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16369 hardcode_libdir_separator_CXX=: 16370 16371 # Archives containing C++ object files must be created using 16372 # the KAI C++ compiler. 16373 case $host in 16374 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 16375 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 16376 esac 16377 ;; 16378 RCC*) 16379 # Rational C++ 2.4.1 16380 # FIXME: insert proper C++ library support 16381 ld_shlibs_CXX=no 16382 ;; 16383 cxx*) 16384 case $host in 16385 osf3*) 16386 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 16387 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' 16388 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16389 ;; 16390 *) 16391 allow_undefined_flag_CXX=' -expect_unresolved \*' 16392 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' 16393 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 16394 echo "-hidden">> $lib.exp~ 16395 $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~ 16396 $RM $lib.exp' 16397 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 16398 ;; 16399 esac 16400 16401 hardcode_libdir_separator_CXX=: 16402 16403 # Commands to make compiler produce verbose output that lists 16404 # what "hidden" libraries, object files and flags are used when 16405 # linking a shared library. 16406 # 16407 # There doesn't appear to be a way to prevent this compiler from 16408 # explicitly linking system object files so we need to strip them 16409 # from the output so that they don't get included in the library 16410 # dependencies. 16411 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"' 16412 ;; 16413 *) 16414 if test yes,no = "$GXX,$with_gnu_ld"; then 16415 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 16416 case $host in 16417 osf3*) 16418 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' 16419 ;; 16420 *) 16421 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' 16422 ;; 16423 esac 16424 16425 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16426 hardcode_libdir_separator_CXX=: 16427 16428 # Commands to make compiler produce verbose output that lists 16429 # what "hidden" libraries, object files and flags are used when 16430 # linking a shared library. 16431 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16432 16433 else 16434 # FIXME: insert proper C++ library support 16435 ld_shlibs_CXX=no 16436 fi 16437 ;; 16438 esac 16439 ;; 16440 16441 psos*) 16442 # FIXME: insert proper C++ library support 16443 ld_shlibs_CXX=no 16444 ;; 16445 16446 sunos4*) 16447 case $cc_basename in 16448 CC*) 16449 # Sun C++ 4.x 16450 # FIXME: insert proper C++ library support 16451 ld_shlibs_CXX=no 16452 ;; 16453 lcc*) 16454 # Lucid 16455 # FIXME: insert proper C++ library support 16456 ld_shlibs_CXX=no 16457 ;; 16458 *) 16459 # FIXME: insert proper C++ library support 16460 ld_shlibs_CXX=no 16461 ;; 16462 esac 16463 ;; 16464 16465 solaris*) 16466 case $cc_basename in 16467 CC* | sunCC*) 16468 # Sun C++ 4.2, 5.x and Centerline C++ 16469 archive_cmds_need_lc_CXX=yes 16470 no_undefined_flag_CXX=' -zdefs' 16471 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16472 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16473 $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' 16474 16475 hardcode_libdir_flag_spec_CXX='-R$libdir' 16476 hardcode_shlibpath_var_CXX=no 16477 case $host_os in 16478 solaris2.[0-5] | solaris2.[0-5].*) ;; 16479 *) 16480 # The compiler driver will combine and reorder linker options, 16481 # but understands '-z linker_flag'. 16482 # Supported since Solaris 2.6 (maybe 2.5.1?) 16483 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 16484 ;; 16485 esac 16486 link_all_deplibs_CXX=yes 16487 16488 output_verbose_link_cmd='func_echo_all' 16489 16490 # Archives containing C++ object files must be created using 16491 # "CC -xar", where "CC" is the Sun C++ compiler. This is 16492 # necessary to make sure instantiated templates are included 16493 # in the archive. 16494 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 16495 ;; 16496 gcx*) 16497 # Green Hills C++ Compiler 16498 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 16499 16500 # The C++ compiler must be used to create the archive. 16501 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 16502 ;; 16503 *) 16504 # GNU C++ compiler with Solaris linker 16505 if test yes,no = "$GXX,$with_gnu_ld"; then 16506 no_undefined_flag_CXX=' $wl-z ${wl}defs' 16507 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 16508 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 16509 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16510 $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' 16511 16512 # Commands to make compiler produce verbose output that lists 16513 # what "hidden" libraries, object files and flags are used when 16514 # linking a shared library. 16515 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16516 else 16517 # g++ 2.7 appears to require '-G' NOT '-shared' on this 16518 # platform. 16519 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 16520 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16521 $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' 16522 16523 # Commands to make compiler produce verbose output that lists 16524 # what "hidden" libraries, object files and flags are used when 16525 # linking a shared library. 16526 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16527 fi 16528 16529 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 16530 case $host_os in 16531 solaris2.[0-5] | solaris2.[0-5].*) ;; 16532 *) 16533 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 16534 ;; 16535 esac 16536 fi 16537 ;; 16538 esac 16539 ;; 16540 16541 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16542 no_undefined_flag_CXX='$wl-z,text' 16543 archive_cmds_need_lc_CXX=no 16544 hardcode_shlibpath_var_CXX=no 16545 runpath_var='LD_RUN_PATH' 16546 16547 case $cc_basename in 16548 CC*) 16549 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16550 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16551 ;; 16552 *) 16553 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16554 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16555 ;; 16556 esac 16557 ;; 16558 16559 sysv5* | sco3.2v5* | sco5v6*) 16560 # Note: We CANNOT use -z defs as we might desire, because we do not 16561 # link with -lc, and that would cause any symbols used from libc to 16562 # always be unresolved, which means just about no library would 16563 # ever link correctly. If we're not using GNU ld we use -z text 16564 # though, which does catch some bad symbols but isn't as heavy-handed 16565 # as -z defs. 16566 no_undefined_flag_CXX='$wl-z,text' 16567 allow_undefined_flag_CXX='$wl-z,nodefs' 16568 archive_cmds_need_lc_CXX=no 16569 hardcode_shlibpath_var_CXX=no 16570 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 16571 hardcode_libdir_separator_CXX=':' 16572 link_all_deplibs_CXX=yes 16573 export_dynamic_flag_spec_CXX='$wl-Bexport' 16574 runpath_var='LD_RUN_PATH' 16575 16576 case $cc_basename in 16577 CC*) 16578 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16579 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16580 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 16581 '"$old_archive_cmds_CXX" 16582 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 16583 '"$reload_cmds_CXX" 16584 ;; 16585 *) 16586 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16587 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16588 ;; 16589 esac 16590 ;; 16591 16592 tandem*) 16593 case $cc_basename in 16594 NCC*) 16595 # NonStop-UX NCC 3.20 16596 # FIXME: insert proper C++ library support 16597 ld_shlibs_CXX=no 16598 ;; 16599 *) 16600 # FIXME: insert proper C++ library support 16601 ld_shlibs_CXX=no 16602 ;; 16603 esac 16604 ;; 16605 16606 vxworks*) 16607 # FIXME: insert proper C++ library support 16608 ld_shlibs_CXX=no 16609 ;; 16610 16611 *) 16612 # FIXME: insert proper C++ library support 16613 ld_shlibs_CXX=no 16614 ;; 16615 esac 16616 16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 16618$as_echo "$ld_shlibs_CXX" >&6; } 16619 test no = "$ld_shlibs_CXX" && can_build_shared=no 16620 16621 GCC_CXX=$GXX 16622 LD_CXX=$LD 16623 16624 ## CAVEAT EMPTOR: 16625 ## There is no encapsulation within the following macros, do not change 16626 ## the running order or otherwise move them around unless you know exactly 16627 ## what you are doing... 16628 # Dependencies to place before and after the object being linked: 16629predep_objects_CXX= 16630postdep_objects_CXX= 16631predeps_CXX= 16632postdeps_CXX= 16633compiler_lib_search_path_CXX= 16634 16635cat > conftest.$ac_ext <<_LT_EOF 16636class Foo 16637{ 16638public: 16639 Foo (void) { a = 0; } 16640private: 16641 int a; 16642}; 16643_LT_EOF 16644 16645 16646_lt_libdeps_save_CFLAGS=$CFLAGS 16647case "$CC $CFLAGS " in #( 16648*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 16649*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 16650*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 16651esac 16652 16653if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16654 (eval $ac_compile) 2>&5 16655 ac_status=$? 16656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16657 test $ac_status = 0; }; then 16658 # Parse the compiler output and extract the necessary 16659 # objects, libraries and library flags. 16660 16661 # Sentinel used to keep track of whether or not we are before 16662 # the conftest object file. 16663 pre_test_object_deps_done=no 16664 16665 for p in `eval "$output_verbose_link_cmd"`; do 16666 case $prev$p in 16667 16668 -L* | -R* | -l*) 16669 # Some compilers place space between "-{L,R}" and the path. 16670 # Remove the space. 16671 if test x-L = "$p" || 16672 test x-R = "$p"; then 16673 prev=$p 16674 continue 16675 fi 16676 16677 # Expand the sysroot to ease extracting the directories later. 16678 if test -z "$prev"; then 16679 case $p in 16680 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 16681 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 16682 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 16683 esac 16684 fi 16685 case $p in 16686 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 16687 esac 16688 if test no = "$pre_test_object_deps_done"; then 16689 case $prev in 16690 -L | -R) 16691 # Internal compiler library paths should come after those 16692 # provided the user. The postdeps already come after the 16693 # user supplied libs so there is no need to process them. 16694 if test -z "$compiler_lib_search_path_CXX"; then 16695 compiler_lib_search_path_CXX=$prev$p 16696 else 16697 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 16698 fi 16699 ;; 16700 # The "-l" case would never come before the object being 16701 # linked, so don't bother handling this case. 16702 esac 16703 else 16704 if test -z "$postdeps_CXX"; then 16705 postdeps_CXX=$prev$p 16706 else 16707 postdeps_CXX="${postdeps_CXX} $prev$p" 16708 fi 16709 fi 16710 prev= 16711 ;; 16712 16713 *.lto.$objext) ;; # Ignore GCC LTO objects 16714 *.$objext) 16715 # This assumes that the test object file only shows up 16716 # once in the compiler output. 16717 if test "$p" = "conftest.$objext"; then 16718 pre_test_object_deps_done=yes 16719 continue 16720 fi 16721 16722 if test no = "$pre_test_object_deps_done"; then 16723 if test -z "$predep_objects_CXX"; then 16724 predep_objects_CXX=$p 16725 else 16726 predep_objects_CXX="$predep_objects_CXX $p" 16727 fi 16728 else 16729 if test -z "$postdep_objects_CXX"; then 16730 postdep_objects_CXX=$p 16731 else 16732 postdep_objects_CXX="$postdep_objects_CXX $p" 16733 fi 16734 fi 16735 ;; 16736 16737 *) ;; # Ignore the rest. 16738 16739 esac 16740 done 16741 16742 # Clean up. 16743 rm -f a.out a.exe 16744else 16745 echo "libtool.m4: error: problem compiling CXX test program" 16746fi 16747 16748$RM -f confest.$objext 16749CFLAGS=$_lt_libdeps_save_CFLAGS 16750 16751# PORTME: override above test on systems where it is broken 16752case $host_os in 16753interix[3-9]*) 16754 # Interix 3.5 installs completely hosed .la files for C++, so rather than 16755 # hack all around it, let's just trust "g++" to DTRT. 16756 predep_objects_CXX= 16757 postdep_objects_CXX= 16758 postdeps_CXX= 16759 ;; 16760esac 16761 16762 16763case " $postdeps_CXX " in 16764*" -lc "*) archive_cmds_need_lc_CXX=no ;; 16765esac 16766 compiler_lib_search_dirs_CXX= 16767if test -n "${compiler_lib_search_path_CXX}"; then 16768 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 16769fi 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 lt_prog_compiler_wl_CXX= 16802lt_prog_compiler_pic_CXX= 16803lt_prog_compiler_static_CXX= 16804 16805 16806 # C++ specific cases for pic, static, wl, etc. 16807 if test yes = "$GXX"; then 16808 lt_prog_compiler_wl_CXX='-Wl,' 16809 lt_prog_compiler_static_CXX='-static' 16810 16811 case $host_os in 16812 aix*) 16813 # All AIX code is PIC. 16814 if test ia64 = "$host_cpu"; then 16815 # AIX 5 now supports IA64 processor 16816 lt_prog_compiler_static_CXX='-Bstatic' 16817 fi 16818 lt_prog_compiler_pic_CXX='-fPIC' 16819 ;; 16820 16821 amigaos*) 16822 case $host_cpu in 16823 powerpc) 16824 # see comment about AmigaOS4 .so support 16825 lt_prog_compiler_pic_CXX='-fPIC' 16826 ;; 16827 m68k) 16828 # FIXME: we need at least 68020 code to build shared libraries, but 16829 # adding the '-m68020' flag to GCC prevents building anything better, 16830 # like '-m68040'. 16831 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 16832 ;; 16833 esac 16834 ;; 16835 16836 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16837 # PIC is the default for these OSes. 16838 ;; 16839 mingw* | cygwin* | os2* | pw32* | cegcc*) 16840 # This hack is so that the source file can tell whether it is being 16841 # built for inclusion in a dll (and should export symbols for example). 16842 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16843 # (--disable-auto-import) libraries 16844 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 16845 case $host_os in 16846 os2*) 16847 lt_prog_compiler_static_CXX='$wl-static' 16848 ;; 16849 esac 16850 ;; 16851 darwin* | rhapsody*) 16852 # PIC is the default on this platform 16853 # Common symbols not allowed in MH_DYLIB files 16854 lt_prog_compiler_pic_CXX='-fno-common' 16855 ;; 16856 *djgpp*) 16857 # DJGPP does not support shared libraries at all 16858 lt_prog_compiler_pic_CXX= 16859 ;; 16860 haiku*) 16861 # PIC is the default for Haiku. 16862 # The "-static" flag exists, but is broken. 16863 lt_prog_compiler_static_CXX= 16864 ;; 16865 interix[3-9]*) 16866 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16867 # Instead, we relocate shared libraries at runtime. 16868 ;; 16869 sysv4*MP*) 16870 if test -d /usr/nec; then 16871 lt_prog_compiler_pic_CXX=-Kconform_pic 16872 fi 16873 ;; 16874 hpux*) 16875 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 16876 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 16877 # sets the default TLS model and affects inlining. 16878 case $host_cpu in 16879 hppa*64*) 16880 ;; 16881 *) 16882 lt_prog_compiler_pic_CXX='-fPIC' 16883 ;; 16884 esac 16885 ;; 16886 *qnx* | *nto*) 16887 # QNX uses GNU C++, but need to define -shared option too, otherwise 16888 # it will coredump. 16889 lt_prog_compiler_pic_CXX='-fPIC -shared' 16890 ;; 16891 *) 16892 lt_prog_compiler_pic_CXX='-fPIC' 16893 ;; 16894 esac 16895 else 16896 case $host_os in 16897 aix[4-9]*) 16898 # All AIX code is PIC. 16899 if test ia64 = "$host_cpu"; then 16900 # AIX 5 now supports IA64 processor 16901 lt_prog_compiler_static_CXX='-Bstatic' 16902 else 16903 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 16904 fi 16905 ;; 16906 chorus*) 16907 case $cc_basename in 16908 cxch68*) 16909 # Green Hills C++ Compiler 16910 # _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" 16911 ;; 16912 esac 16913 ;; 16914 mingw* | cygwin* | os2* | pw32* | cegcc*) 16915 # This hack is so that the source file can tell whether it is being 16916 # built for inclusion in a dll (and should export symbols for example). 16917 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 16918 ;; 16919 dgux*) 16920 case $cc_basename in 16921 ec++*) 16922 lt_prog_compiler_pic_CXX='-KPIC' 16923 ;; 16924 ghcx*) 16925 # Green Hills C++ Compiler 16926 lt_prog_compiler_pic_CXX='-pic' 16927 ;; 16928 *) 16929 ;; 16930 esac 16931 ;; 16932 freebsd* | dragonfly*) 16933 # FreeBSD uses GNU C++ 16934 ;; 16935 hpux9* | hpux10* | hpux11*) 16936 case $cc_basename in 16937 CC*) 16938 lt_prog_compiler_wl_CXX='-Wl,' 16939 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 16940 if test ia64 != "$host_cpu"; then 16941 lt_prog_compiler_pic_CXX='+Z' 16942 fi 16943 ;; 16944 aCC*) 16945 lt_prog_compiler_wl_CXX='-Wl,' 16946 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 16947 case $host_cpu in 16948 hppa*64*|ia64*) 16949 # +Z the default 16950 ;; 16951 *) 16952 lt_prog_compiler_pic_CXX='+Z' 16953 ;; 16954 esac 16955 ;; 16956 *) 16957 ;; 16958 esac 16959 ;; 16960 interix*) 16961 # This is c89, which is MS Visual C++ (no shared libs) 16962 # Anyone wants to do a port? 16963 ;; 16964 irix5* | irix6* | nonstopux*) 16965 case $cc_basename in 16966 CC*) 16967 lt_prog_compiler_wl_CXX='-Wl,' 16968 lt_prog_compiler_static_CXX='-non_shared' 16969 # CC pic flag -KPIC is the default. 16970 ;; 16971 *) 16972 ;; 16973 esac 16974 ;; 16975 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16976 case $cc_basename in 16977 KCC*) 16978 # KAI C++ Compiler 16979 lt_prog_compiler_wl_CXX='--backend -Wl,' 16980 lt_prog_compiler_pic_CXX='-fPIC' 16981 ;; 16982 ecpc* ) 16983 # old Intel C++ for x86_64, which still supported -KPIC. 16984 lt_prog_compiler_wl_CXX='-Wl,' 16985 lt_prog_compiler_pic_CXX='-KPIC' 16986 lt_prog_compiler_static_CXX='-static' 16987 ;; 16988 icpc* ) 16989 # Intel C++, used to be incompatible with GCC. 16990 # ICC 10 doesn't accept -KPIC any more. 16991 lt_prog_compiler_wl_CXX='-Wl,' 16992 lt_prog_compiler_pic_CXX='-fPIC' 16993 lt_prog_compiler_static_CXX='-static' 16994 ;; 16995 pgCC* | pgcpp*) 16996 # Portland Group C++ compiler 16997 lt_prog_compiler_wl_CXX='-Wl,' 16998 lt_prog_compiler_pic_CXX='-fpic' 16999 lt_prog_compiler_static_CXX='-Bstatic' 17000 ;; 17001 cxx*) 17002 # Compaq C++ 17003 # Make sure the PIC flag is empty. It appears that all Alpha 17004 # Linux and Compaq Tru64 Unix objects are PIC. 17005 lt_prog_compiler_pic_CXX= 17006 lt_prog_compiler_static_CXX='-non_shared' 17007 ;; 17008 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 17009 # IBM XL 8.0, 9.0 on PPC and BlueGene 17010 lt_prog_compiler_wl_CXX='-Wl,' 17011 lt_prog_compiler_pic_CXX='-qpic' 17012 lt_prog_compiler_static_CXX='-qstaticlink' 17013 ;; 17014 *) 17015 case `$CC -V 2>&1 | sed 5q` in 17016 *Sun\ C*) 17017 # Sun C++ 5.9 17018 lt_prog_compiler_pic_CXX='-KPIC' 17019 lt_prog_compiler_static_CXX='-Bstatic' 17020 lt_prog_compiler_wl_CXX='-Qoption ld ' 17021 ;; 17022 esac 17023 ;; 17024 esac 17025 ;; 17026 lynxos*) 17027 ;; 17028 m88k*) 17029 ;; 17030 mvs*) 17031 case $cc_basename in 17032 cxx*) 17033 lt_prog_compiler_pic_CXX='-W c,exportall' 17034 ;; 17035 *) 17036 ;; 17037 esac 17038 ;; 17039 netbsd*) 17040 ;; 17041 *qnx* | *nto*) 17042 # QNX uses GNU C++, but need to define -shared option too, otherwise 17043 # it will coredump. 17044 lt_prog_compiler_pic_CXX='-fPIC -shared' 17045 ;; 17046 osf3* | osf4* | osf5*) 17047 case $cc_basename in 17048 KCC*) 17049 lt_prog_compiler_wl_CXX='--backend -Wl,' 17050 ;; 17051 RCC*) 17052 # Rational C++ 2.4.1 17053 lt_prog_compiler_pic_CXX='-pic' 17054 ;; 17055 cxx*) 17056 # Digital/Compaq C++ 17057 lt_prog_compiler_wl_CXX='-Wl,' 17058 # Make sure the PIC flag is empty. It appears that all Alpha 17059 # Linux and Compaq Tru64 Unix objects are PIC. 17060 lt_prog_compiler_pic_CXX= 17061 lt_prog_compiler_static_CXX='-non_shared' 17062 ;; 17063 *) 17064 ;; 17065 esac 17066 ;; 17067 psos*) 17068 ;; 17069 solaris*) 17070 case $cc_basename in 17071 CC* | sunCC*) 17072 # Sun C++ 4.2, 5.x and Centerline C++ 17073 lt_prog_compiler_pic_CXX='-KPIC' 17074 lt_prog_compiler_static_CXX='-Bstatic' 17075 lt_prog_compiler_wl_CXX='-Qoption ld ' 17076 ;; 17077 gcx*) 17078 # Green Hills C++ Compiler 17079 lt_prog_compiler_pic_CXX='-PIC' 17080 ;; 17081 *) 17082 ;; 17083 esac 17084 ;; 17085 sunos4*) 17086 case $cc_basename in 17087 CC*) 17088 # Sun C++ 4.x 17089 lt_prog_compiler_pic_CXX='-pic' 17090 lt_prog_compiler_static_CXX='-Bstatic' 17091 ;; 17092 lcc*) 17093 # Lucid 17094 lt_prog_compiler_pic_CXX='-pic' 17095 ;; 17096 *) 17097 ;; 17098 esac 17099 ;; 17100 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17101 case $cc_basename in 17102 CC*) 17103 lt_prog_compiler_wl_CXX='-Wl,' 17104 lt_prog_compiler_pic_CXX='-KPIC' 17105 lt_prog_compiler_static_CXX='-Bstatic' 17106 ;; 17107 esac 17108 ;; 17109 tandem*) 17110 case $cc_basename in 17111 NCC*) 17112 # NonStop-UX NCC 3.20 17113 lt_prog_compiler_pic_CXX='-KPIC' 17114 ;; 17115 *) 17116 ;; 17117 esac 17118 ;; 17119 vxworks*) 17120 ;; 17121 *) 17122 lt_prog_compiler_can_build_shared_CXX=no 17123 ;; 17124 esac 17125 fi 17126 17127case $host_os in 17128 # For platforms that do not support PIC, -DPIC is meaningless: 17129 *djgpp*) 17130 lt_prog_compiler_pic_CXX= 17131 ;; 17132 *) 17133 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 17134 ;; 17135esac 17136 17137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 17138$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 17139if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 17140 $as_echo_n "(cached) " >&6 17141else 17142 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 17143fi 17144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 17145$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 17146lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 17147 17148# 17149# Check to make sure the PIC flag actually works. 17150# 17151if test -n "$lt_prog_compiler_pic_CXX"; then 17152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 17153$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 17154if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 17155 $as_echo_n "(cached) " >&6 17156else 17157 lt_cv_prog_compiler_pic_works_CXX=no 17158 ac_outfile=conftest.$ac_objext 17159 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17160 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 17161 # Insert the option either (1) after the last *FLAGS variable, or 17162 # (2) before a word containing "conftest.", or (3) at the end. 17163 # Note that $ac_compile itself does not contain backslashes and begins 17164 # with a dollar sign (not a hyphen), so the echo should work correctly. 17165 # The option is referenced via a variable to avoid confusing sed. 17166 lt_compile=`echo "$ac_compile" | $SED \ 17167 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17169 -e 's:$: $lt_compiler_flag:'` 17170 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17171 (eval "$lt_compile" 2>conftest.err) 17172 ac_status=$? 17173 cat conftest.err >&5 17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17175 if (exit $ac_status) && test -s "$ac_outfile"; then 17176 # The compiler can only warn and ignore the option if not recognized 17177 # So say no if there are warnings other than the usual output. 17178 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 17179 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17180 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17181 lt_cv_prog_compiler_pic_works_CXX=yes 17182 fi 17183 fi 17184 $RM conftest* 17185 17186fi 17187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 17188$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 17189 17190if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 17191 case $lt_prog_compiler_pic_CXX in 17192 "" | " "*) ;; 17193 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 17194 esac 17195else 17196 lt_prog_compiler_pic_CXX= 17197 lt_prog_compiler_can_build_shared_CXX=no 17198fi 17199 17200fi 17201 17202 17203 17204 17205 17206# 17207# Check to make sure the static flag actually works. 17208# 17209wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 17210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17211$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17212if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 17213 $as_echo_n "(cached) " >&6 17214else 17215 lt_cv_prog_compiler_static_works_CXX=no 17216 save_LDFLAGS=$LDFLAGS 17217 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17218 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17219 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17220 # The linker can only warn and ignore the option if not recognized 17221 # So say no if there are warnings 17222 if test -s conftest.err; then 17223 # Append any errors to the config.log. 17224 cat conftest.err 1>&5 17225 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17226 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17227 if diff conftest.exp conftest.er2 >/dev/null; then 17228 lt_cv_prog_compiler_static_works_CXX=yes 17229 fi 17230 else 17231 lt_cv_prog_compiler_static_works_CXX=yes 17232 fi 17233 fi 17234 $RM -r conftest* 17235 LDFLAGS=$save_LDFLAGS 17236 17237fi 17238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 17239$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 17240 17241if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 17242 : 17243else 17244 lt_prog_compiler_static_CXX= 17245fi 17246 17247 17248 17249 17250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17251$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17252if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 17253 $as_echo_n "(cached) " >&6 17254else 17255 lt_cv_prog_compiler_c_o_CXX=no 17256 $RM -r conftest 2>/dev/null 17257 mkdir conftest 17258 cd conftest 17259 mkdir out 17260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17261 17262 lt_compiler_flag="-o out/conftest2.$ac_objext" 17263 # Insert the option either (1) after the last *FLAGS variable, or 17264 # (2) before a word containing "conftest.", or (3) at the end. 17265 # Note that $ac_compile itself does not contain backslashes and begins 17266 # with a dollar sign (not a hyphen), so the echo should work correctly. 17267 lt_compile=`echo "$ac_compile" | $SED \ 17268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17270 -e 's:$: $lt_compiler_flag:'` 17271 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17272 (eval "$lt_compile" 2>out/conftest.err) 17273 ac_status=$? 17274 cat out/conftest.err >&5 17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17276 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17277 then 17278 # The compiler can only warn and ignore the option if not recognized 17279 # So say no if there are warnings 17280 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17281 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17282 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17283 lt_cv_prog_compiler_c_o_CXX=yes 17284 fi 17285 fi 17286 chmod u+w . 2>&5 17287 $RM conftest* 17288 # SGI C++ compiler will create directory out/ii_files/ for 17289 # template instantiation 17290 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17291 $RM out/* && rmdir out 17292 cd .. 17293 $RM -r conftest 17294 $RM conftest* 17295 17296fi 17297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 17298$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 17299 17300 17301 17302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17303$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17304if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 17305 $as_echo_n "(cached) " >&6 17306else 17307 lt_cv_prog_compiler_c_o_CXX=no 17308 $RM -r conftest 2>/dev/null 17309 mkdir conftest 17310 cd conftest 17311 mkdir out 17312 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17313 17314 lt_compiler_flag="-o out/conftest2.$ac_objext" 17315 # Insert the option either (1) after the last *FLAGS variable, or 17316 # (2) before a word containing "conftest.", or (3) at the end. 17317 # Note that $ac_compile itself does not contain backslashes and begins 17318 # with a dollar sign (not a hyphen), so the echo should work correctly. 17319 lt_compile=`echo "$ac_compile" | $SED \ 17320 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17322 -e 's:$: $lt_compiler_flag:'` 17323 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17324 (eval "$lt_compile" 2>out/conftest.err) 17325 ac_status=$? 17326 cat out/conftest.err >&5 17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17328 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17329 then 17330 # The compiler can only warn and ignore the option if not recognized 17331 # So say no if there are warnings 17332 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17333 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17334 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17335 lt_cv_prog_compiler_c_o_CXX=yes 17336 fi 17337 fi 17338 chmod u+w . 2>&5 17339 $RM conftest* 17340 # SGI C++ compiler will create directory out/ii_files/ for 17341 # template instantiation 17342 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17343 $RM out/* && rmdir out 17344 cd .. 17345 $RM -r conftest 17346 $RM conftest* 17347 17348fi 17349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 17350$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 17351 17352 17353 17354 17355hard_links=nottested 17356if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 17357 # do not overwrite the value of need_locks provided by the user 17358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 17359$as_echo_n "checking if we can lock with hard links... " >&6; } 17360 hard_links=yes 17361 $RM conftest* 17362 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17363 touch conftest.a 17364 ln conftest.a conftest.b 2>&5 || hard_links=no 17365 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 17367$as_echo "$hard_links" >&6; } 17368 if test no = "$hard_links"; then 17369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 17370$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 17371 need_locks=warn 17372 fi 17373else 17374 need_locks=no 17375fi 17376 17377 17378 17379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17380$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17381 17382 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17383 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17384 case $host_os in 17385 aix[4-9]*) 17386 # If we're using GNU nm, then we don't want the "-C" option. 17387 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 17388 # Without the "-l" option, or with the "-B" option, AIX nm treats 17389 # weak defined symbols like other global defined symbols, whereas 17390 # GNU nm marks them as "W". 17391 # While the 'weak' keyword is ignored in the Export File, we need 17392 # it in the Import File for the 'aix-soname' feature, so we have 17393 # to replace the "-B" option with "-P" for AIX nm. 17394 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 17395 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' 17396 else 17397 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' 17398 fi 17399 ;; 17400 pw32*) 17401 export_symbols_cmds_CXX=$ltdll_cmds 17402 ;; 17403 cygwin* | mingw* | cegcc*) 17404 case $cc_basename in 17405 cl*) 17406 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 17407 ;; 17408 *) 17409 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' 17410 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 17411 ;; 17412 esac 17413 ;; 17414 *) 17415 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17416 ;; 17417 esac 17418 17419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 17420$as_echo "$ld_shlibs_CXX" >&6; } 17421test no = "$ld_shlibs_CXX" && can_build_shared=no 17422 17423with_gnu_ld_CXX=$with_gnu_ld 17424 17425 17426 17427 17428 17429 17430# 17431# Do we need to explicitly link libc? 17432# 17433case "x$archive_cmds_need_lc_CXX" in 17434x|xyes) 17435 # Assume -lc should be added 17436 archive_cmds_need_lc_CXX=yes 17437 17438 if test yes,yes = "$GCC,$enable_shared"; then 17439 case $archive_cmds_CXX in 17440 *'~'*) 17441 # FIXME: we may have to deal with multi-command sequences. 17442 ;; 17443 '$CC '*) 17444 # Test whether the compiler implicitly links with -lc since on some 17445 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17446 # to ld, don't add -lc before -lgcc. 17447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17448$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 17449if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 17450 $as_echo_n "(cached) " >&6 17451else 17452 $RM conftest* 17453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17454 17455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17456 (eval $ac_compile) 2>&5 17457 ac_status=$? 17458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17459 test $ac_status = 0; } 2>conftest.err; then 17460 soname=conftest 17461 lib=conftest 17462 libobjs=conftest.$ac_objext 17463 deplibs= 17464 wl=$lt_prog_compiler_wl_CXX 17465 pic_flag=$lt_prog_compiler_pic_CXX 17466 compiler_flags=-v 17467 linker_flags=-v 17468 verstring= 17469 output_objdir=. 17470 libname=conftest 17471 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 17472 allow_undefined_flag_CXX= 17473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17474 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17475 ac_status=$? 17476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17477 test $ac_status = 0; } 17478 then 17479 lt_cv_archive_cmds_need_lc_CXX=no 17480 else 17481 lt_cv_archive_cmds_need_lc_CXX=yes 17482 fi 17483 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 17484 else 17485 cat conftest.err 1>&5 17486 fi 17487 $RM conftest* 17488 17489fi 17490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 17491$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 17492 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 17493 ;; 17494 esac 17495 fi 17496 ;; 17497esac 17498 17499 17500 17501 17502 17503 17504 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527 17528 17529 17530 17531 17532 17533 17534 17535 17536 17537 17538 17539 17540 17541 17542 17543 17544 17545 17546 17547 17548 17549 17550 17551 17552 17553 17554 17555 17556 17557 17558 17559 17560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17561$as_echo_n "checking dynamic linker characteristics... " >&6; } 17562 17563library_names_spec= 17564libname_spec='lib$name' 17565soname_spec= 17566shrext_cmds=.so 17567postinstall_cmds= 17568postuninstall_cmds= 17569finish_cmds= 17570finish_eval= 17571shlibpath_var= 17572shlibpath_overrides_runpath=unknown 17573version_type=none 17574dynamic_linker="$host_os ld.so" 17575sys_lib_dlsearch_path_spec="/lib /usr/lib" 17576need_lib_prefix=unknown 17577hardcode_into_libs=no 17578 17579# when you set need_version to no, make sure it does not cause -set_version 17580# flags to be left without arguments 17581need_version=unknown 17582 17583 17584 17585case $host_os in 17586aix3*) 17587 version_type=linux # correct to gnu/linux during the next big refactor 17588 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 17589 shlibpath_var=LIBPATH 17590 17591 # AIX 3 has no versioning support, so we append a major version to the name. 17592 soname_spec='$libname$release$shared_ext$major' 17593 ;; 17594 17595aix[4-9]*) 17596 version_type=linux # correct to gnu/linux during the next big refactor 17597 need_lib_prefix=no 17598 need_version=no 17599 hardcode_into_libs=yes 17600 if test ia64 = "$host_cpu"; then 17601 # AIX 5 supports IA64 17602 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 17603 shlibpath_var=LD_LIBRARY_PATH 17604 else 17605 # With GCC up to 2.95.x, collect2 would create an import file 17606 # for dependence libraries. The import file would start with 17607 # the line '#! .'. This would cause the generated library to 17608 # depend on '.', always an invalid library. This was fixed in 17609 # development snapshots of GCC prior to 3.0. 17610 case $host_os in 17611 aix4 | aix4.[01] | aix4.[01].*) 17612 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17613 echo ' yes ' 17614 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 17615 : 17616 else 17617 can_build_shared=no 17618 fi 17619 ;; 17620 esac 17621 # Using Import Files as archive members, it is possible to support 17622 # filename-based versioning of shared library archives on AIX. While 17623 # this would work for both with and without runtime linking, it will 17624 # prevent static linking of such archives. So we do filename-based 17625 # shared library versioning with .so extension only, which is used 17626 # when both runtime linking and shared linking is enabled. 17627 # Unfortunately, runtime linking may impact performance, so we do 17628 # not want this to be the default eventually. Also, we use the 17629 # versioned .so libs for executables only if there is the -brtl 17630 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 17631 # To allow for filename-based versioning support, we need to create 17632 # libNAME.so.V as an archive file, containing: 17633 # *) an Import File, referring to the versioned filename of the 17634 # archive as well as the shared archive member, telling the 17635 # bitwidth (32 or 64) of that shared object, and providing the 17636 # list of exported symbols of that shared object, eventually 17637 # decorated with the 'weak' keyword 17638 # *) the shared object with the F_LOADONLY flag set, to really avoid 17639 # it being seen by the linker. 17640 # At run time we better use the real file rather than another symlink, 17641 # but for link time we create the symlink libNAME.so -> libNAME.so.V 17642 17643 case $with_aix_soname,$aix_use_runtimelinking in 17644 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 17645 # soname into executable. Probably we can add versioning support to 17646 # collect2, so additional links can be useful in future. 17647 aix,yes) # traditional libtool 17648 dynamic_linker='AIX unversionable lib.so' 17649 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17650 # instead of lib<name>.a to let people know that these are not 17651 # typical AIX shared libraries. 17652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17653 ;; 17654 aix,no) # traditional AIX only 17655 dynamic_linker='AIX lib.a(lib.so.V)' 17656 # We preserve .a as extension for shared libraries through AIX4.2 17657 # and later when we are not doing run time linking. 17658 library_names_spec='$libname$release.a $libname.a' 17659 soname_spec='$libname$release$shared_ext$major' 17660 ;; 17661 svr4,*) # full svr4 only 17662 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17663 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17664 # We do not specify a path in Import Files, so LIBPATH fires. 17665 shlibpath_overrides_runpath=yes 17666 ;; 17667 *,yes) # both, prefer svr4 17668 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17669 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17670 # unpreferred sharedlib libNAME.a needs extra handling 17671 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"' 17672 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"' 17673 # We do not specify a path in Import Files, so LIBPATH fires. 17674 shlibpath_overrides_runpath=yes 17675 ;; 17676 *,no) # both, prefer aix 17677 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17678 library_names_spec='$libname$release.a $libname.a' 17679 soname_spec='$libname$release$shared_ext$major' 17680 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17681 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)' 17682 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"' 17683 ;; 17684 esac 17685 shlibpath_var=LIBPATH 17686 fi 17687 ;; 17688 17689amigaos*) 17690 case $host_cpu in 17691 powerpc) 17692 # Since July 2007 AmigaOS4 officially supports .so libraries. 17693 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17694 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17695 ;; 17696 m68k) 17697 library_names_spec='$libname.ixlibrary $libname.a' 17698 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17699 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' 17700 ;; 17701 esac 17702 ;; 17703 17704beos*) 17705 library_names_spec='$libname$shared_ext' 17706 dynamic_linker="$host_os ld.so" 17707 shlibpath_var=LIBRARY_PATH 17708 ;; 17709 17710bsdi[45]*) 17711 version_type=linux # correct to gnu/linux during the next big refactor 17712 need_version=no 17713 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17714 soname_spec='$libname$release$shared_ext$major' 17715 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17716 shlibpath_var=LD_LIBRARY_PATH 17717 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17718 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17719 # the default ld.so.conf also contains /usr/contrib/lib and 17720 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17721 # libtool to hard-code these into programs 17722 ;; 17723 17724cygwin* | mingw* | pw32* | cegcc*) 17725 version_type=windows 17726 shrext_cmds=.dll 17727 need_version=no 17728 need_lib_prefix=no 17729 17730 case $GCC,$cc_basename in 17731 yes,*) 17732 # gcc 17733 library_names_spec='$libname.dll.a' 17734 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17735 postinstall_cmds='base_file=`basename \$file`~ 17736 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17737 dldir=$destdir/`dirname \$dlpath`~ 17738 test -d \$dldir || mkdir -p \$dldir~ 17739 $install_prog $dir/$dlname \$dldir/$dlname~ 17740 chmod a+x \$dldir/$dlname~ 17741 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17742 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17743 fi' 17744 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17745 dlpath=$dir/\$dldll~ 17746 $RM \$dlpath' 17747 shlibpath_overrides_runpath=yes 17748 17749 case $host_os in 17750 cygwin*) 17751 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17752 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17753 17754 ;; 17755 mingw* | cegcc*) 17756 # MinGW DLLs use traditional 'lib' prefix 17757 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17758 ;; 17759 pw32*) 17760 # pw32 DLLs use 'pw' prefix rather than 'lib' 17761 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17762 ;; 17763 esac 17764 dynamic_linker='Win32 ld.exe' 17765 ;; 17766 17767 *,cl*) 17768 # Native MSVC 17769 libname_spec='$name' 17770 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17771 library_names_spec='$libname.dll.lib' 17772 17773 case $build_os in 17774 mingw*) 17775 sys_lib_search_path_spec= 17776 lt_save_ifs=$IFS 17777 IFS=';' 17778 for lt_path in $LIB 17779 do 17780 IFS=$lt_save_ifs 17781 # Let DOS variable expansion print the short 8.3 style file name. 17782 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17783 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17784 done 17785 IFS=$lt_save_ifs 17786 # Convert to MSYS style. 17787 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17788 ;; 17789 cygwin*) 17790 # Convert to unix form, then to dos form, then back to unix form 17791 # but this time dos style (no spaces!) so that the unix form looks 17792 # like /cygdrive/c/PROGRA~1:/cygdr... 17793 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17794 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17795 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17796 ;; 17797 *) 17798 sys_lib_search_path_spec=$LIB 17799 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17800 # It is most probably a Windows format PATH. 17801 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17802 else 17803 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17804 fi 17805 # FIXME: find the short name or the path components, as spaces are 17806 # common. (e.g. "Program Files" -> "PROGRA~1") 17807 ;; 17808 esac 17809 17810 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17811 postinstall_cmds='base_file=`basename \$file`~ 17812 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17813 dldir=$destdir/`dirname \$dlpath`~ 17814 test -d \$dldir || mkdir -p \$dldir~ 17815 $install_prog $dir/$dlname \$dldir/$dlname' 17816 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17817 dlpath=$dir/\$dldll~ 17818 $RM \$dlpath' 17819 shlibpath_overrides_runpath=yes 17820 dynamic_linker='Win32 link.exe' 17821 ;; 17822 17823 *) 17824 # Assume MSVC wrapper 17825 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17826 dynamic_linker='Win32 ld.exe' 17827 ;; 17828 esac 17829 # FIXME: first we should search . and the directory the executable is in 17830 shlibpath_var=PATH 17831 ;; 17832 17833darwin* | rhapsody*) 17834 dynamic_linker="$host_os dyld" 17835 version_type=darwin 17836 need_lib_prefix=no 17837 need_version=no 17838 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17839 soname_spec='$libname$release$major$shared_ext' 17840 shlibpath_overrides_runpath=yes 17841 shlibpath_var=DYLD_LIBRARY_PATH 17842 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17843 17844 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17845 ;; 17846 17847dgux*) 17848 version_type=linux # correct to gnu/linux during the next big refactor 17849 need_lib_prefix=no 17850 need_version=no 17851 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17852 soname_spec='$libname$release$shared_ext$major' 17853 shlibpath_var=LD_LIBRARY_PATH 17854 ;; 17855 17856freebsd* | dragonfly*) 17857 # DragonFly does not have aout. When/if they implement a new 17858 # versioning mechanism, adjust this. 17859 if test -x /usr/bin/objformat; then 17860 objformat=`/usr/bin/objformat` 17861 else 17862 case $host_os in 17863 freebsd[23].*) objformat=aout ;; 17864 *) objformat=elf ;; 17865 esac 17866 fi 17867 version_type=freebsd-$objformat 17868 case $version_type in 17869 freebsd-elf*) 17870 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17871 soname_spec='$libname$release$shared_ext$major' 17872 need_version=no 17873 need_lib_prefix=no 17874 ;; 17875 freebsd-*) 17876 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17877 need_version=yes 17878 ;; 17879 esac 17880 shlibpath_var=LD_LIBRARY_PATH 17881 case $host_os in 17882 freebsd2.*) 17883 shlibpath_overrides_runpath=yes 17884 ;; 17885 freebsd3.[01]* | freebsdelf3.[01]*) 17886 shlibpath_overrides_runpath=yes 17887 hardcode_into_libs=yes 17888 ;; 17889 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17890 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17891 shlibpath_overrides_runpath=no 17892 hardcode_into_libs=yes 17893 ;; 17894 *) # from 4.6 on, and DragonFly 17895 shlibpath_overrides_runpath=yes 17896 hardcode_into_libs=yes 17897 ;; 17898 esac 17899 ;; 17900 17901haiku*) 17902 version_type=linux # correct to gnu/linux during the next big refactor 17903 need_lib_prefix=no 17904 need_version=no 17905 dynamic_linker="$host_os runtime_loader" 17906 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17907 soname_spec='$libname$release$shared_ext$major' 17908 shlibpath_var=LIBRARY_PATH 17909 shlibpath_overrides_runpath=no 17910 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17911 hardcode_into_libs=yes 17912 ;; 17913 17914hpux9* | hpux10* | hpux11*) 17915 # Give a soname corresponding to the major version so that dld.sl refuses to 17916 # link against other versions. 17917 version_type=sunos 17918 need_lib_prefix=no 17919 need_version=no 17920 case $host_cpu in 17921 ia64*) 17922 shrext_cmds='.so' 17923 hardcode_into_libs=yes 17924 dynamic_linker="$host_os dld.so" 17925 shlibpath_var=LD_LIBRARY_PATH 17926 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17927 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17928 soname_spec='$libname$release$shared_ext$major' 17929 if test 32 = "$HPUX_IA64_MODE"; then 17930 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17931 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 17932 else 17933 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17934 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 17935 fi 17936 ;; 17937 hppa*64*) 17938 shrext_cmds='.sl' 17939 hardcode_into_libs=yes 17940 dynamic_linker="$host_os dld.sl" 17941 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17942 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17944 soname_spec='$libname$release$shared_ext$major' 17945 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17946 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17947 ;; 17948 *) 17949 shrext_cmds='.sl' 17950 dynamic_linker="$host_os dld.sl" 17951 shlibpath_var=SHLIB_PATH 17952 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17954 soname_spec='$libname$release$shared_ext$major' 17955 ;; 17956 esac 17957 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17958 postinstall_cmds='chmod 555 $lib' 17959 # or fails outright, so override atomically: 17960 install_override_mode=555 17961 ;; 17962 17963interix[3-9]*) 17964 version_type=linux # correct to gnu/linux during the next big refactor 17965 need_lib_prefix=no 17966 need_version=no 17967 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17968 soname_spec='$libname$release$shared_ext$major' 17969 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17970 shlibpath_var=LD_LIBRARY_PATH 17971 shlibpath_overrides_runpath=no 17972 hardcode_into_libs=yes 17973 ;; 17974 17975irix5* | irix6* | nonstopux*) 17976 case $host_os in 17977 nonstopux*) version_type=nonstopux ;; 17978 *) 17979 if test yes = "$lt_cv_prog_gnu_ld"; then 17980 version_type=linux # correct to gnu/linux during the next big refactor 17981 else 17982 version_type=irix 17983 fi ;; 17984 esac 17985 need_lib_prefix=no 17986 need_version=no 17987 soname_spec='$libname$release$shared_ext$major' 17988 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 17989 case $host_os in 17990 irix5* | nonstopux*) 17991 libsuff= shlibsuff= 17992 ;; 17993 *) 17994 case $LD in # libtool.m4 will add one of these switches to LD 17995 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17996 libsuff= shlibsuff= libmagic=32-bit;; 17997 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17998 libsuff=32 shlibsuff=N32 libmagic=N32;; 17999 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18000 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18001 *) libsuff= shlibsuff= libmagic=never-match;; 18002 esac 18003 ;; 18004 esac 18005 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18006 shlibpath_overrides_runpath=no 18007 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18008 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18009 hardcode_into_libs=yes 18010 ;; 18011 18012# No shared lib support for Linux oldld, aout, or coff. 18013linux*oldld* | linux*aout* | linux*coff*) 18014 dynamic_linker=no 18015 ;; 18016 18017linux*android*) 18018 version_type=none # Android doesn't support versioned libraries. 18019 need_lib_prefix=no 18020 need_version=no 18021 library_names_spec='$libname$release$shared_ext' 18022 soname_spec='$libname$release$shared_ext' 18023 finish_cmds= 18024 shlibpath_var=LD_LIBRARY_PATH 18025 shlibpath_overrides_runpath=yes 18026 18027 # This implies no fast_install, which is unacceptable. 18028 # Some rework will be needed to allow for fast_install 18029 # before this can be enabled. 18030 hardcode_into_libs=yes 18031 18032 dynamic_linker='Android linker' 18033 # Don't embed -rpath directories since the linker doesn't support them. 18034 hardcode_libdir_flag_spec_CXX='-L$libdir' 18035 ;; 18036 18037# This must be glibc/ELF. 18038linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18039 version_type=linux # correct to gnu/linux during the next big refactor 18040 need_lib_prefix=no 18041 need_version=no 18042 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18043 soname_spec='$libname$release$shared_ext$major' 18044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18045 shlibpath_var=LD_LIBRARY_PATH 18046 shlibpath_overrides_runpath=no 18047 18048 # Some binutils ld are patched to set DT_RUNPATH 18049 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 18050 $as_echo_n "(cached) " >&6 18051else 18052 lt_cv_shlibpath_overrides_runpath=no 18053 save_LDFLAGS=$LDFLAGS 18054 save_libdir=$libdir 18055 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 18056 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 18057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18058/* end confdefs.h. */ 18059 18060int 18061main () 18062{ 18063 18064 ; 18065 return 0; 18066} 18067_ACEOF 18068if ac_fn_cxx_try_link "$LINENO"; then : 18069 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 18070 lt_cv_shlibpath_overrides_runpath=yes 18071fi 18072fi 18073rm -f core conftest.err conftest.$ac_objext \ 18074 conftest$ac_exeext conftest.$ac_ext 18075 LDFLAGS=$save_LDFLAGS 18076 libdir=$save_libdir 18077 18078fi 18079 18080 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18081 18082 # This implies no fast_install, which is unacceptable. 18083 # Some rework will be needed to allow for fast_install 18084 # before this can be enabled. 18085 hardcode_into_libs=yes 18086 18087 # Ideally, we could use ldconfig to report *all* directores which are 18088 # searched for libraries, however this is still not possible. Aside from not 18089 # being certain /sbin/ldconfig is available, command 18090 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18091 # even though it is searched at run-time. Try to do the best guess by 18092 # appending ld.so.conf contents (and includes) to the search path. 18093 if test -f /etc/ld.so.conf; then 18094 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' ' '` 18095 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18096 fi 18097 18098 # We used to test for /lib/ld.so.1 and disable shared libraries on 18099 # powerpc, because MkLinux only supported shared libraries with the 18100 # GNU dynamic linker. Since this was broken with cross compilers, 18101 # most powerpc-linux boxes support dynamic linking these days and 18102 # people can always --disable-shared, the test was removed, and we 18103 # assume the GNU/Linux dynamic linker is in use. 18104 dynamic_linker='GNU/Linux ld.so' 18105 ;; 18106 18107netbsd*) 18108 version_type=sunos 18109 need_lib_prefix=no 18110 need_version=no 18111 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18112 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18114 dynamic_linker='NetBSD (a.out) ld.so' 18115 else 18116 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18117 soname_spec='$libname$release$shared_ext$major' 18118 dynamic_linker='NetBSD ld.elf_so' 18119 fi 18120 shlibpath_var=LD_LIBRARY_PATH 18121 shlibpath_overrides_runpath=yes 18122 hardcode_into_libs=yes 18123 ;; 18124 18125newsos6) 18126 version_type=linux # correct to gnu/linux during the next big refactor 18127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18128 shlibpath_var=LD_LIBRARY_PATH 18129 shlibpath_overrides_runpath=yes 18130 ;; 18131 18132*nto* | *qnx*) 18133 version_type=qnx 18134 need_lib_prefix=no 18135 need_version=no 18136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18137 soname_spec='$libname$release$shared_ext$major' 18138 shlibpath_var=LD_LIBRARY_PATH 18139 shlibpath_overrides_runpath=no 18140 hardcode_into_libs=yes 18141 dynamic_linker='ldqnx.so' 18142 ;; 18143 18144openbsd* | bitrig*) 18145 version_type=sunos 18146 sys_lib_dlsearch_path_spec=/usr/lib 18147 need_lib_prefix=no 18148 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18149 need_version=no 18150 else 18151 need_version=yes 18152 fi 18153 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18155 shlibpath_var=LD_LIBRARY_PATH 18156 shlibpath_overrides_runpath=yes 18157 ;; 18158 18159os2*) 18160 libname_spec='$name' 18161 version_type=windows 18162 shrext_cmds=.dll 18163 need_version=no 18164 need_lib_prefix=no 18165 # OS/2 can only load a DLL with a base name of 8 characters or less. 18166 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18167 v=$($ECHO $release$versuffix | tr -d .-); 18168 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18169 $ECHO $n$v`$shared_ext' 18170 library_names_spec='${libname}_dll.$libext' 18171 dynamic_linker='OS/2 ld.exe' 18172 shlibpath_var=BEGINLIBPATH 18173 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18174 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18175 postinstall_cmds='base_file=`basename \$file`~ 18176 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18177 dldir=$destdir/`dirname \$dlpath`~ 18178 test -d \$dldir || mkdir -p \$dldir~ 18179 $install_prog $dir/$dlname \$dldir/$dlname~ 18180 chmod a+x \$dldir/$dlname~ 18181 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18182 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18183 fi' 18184 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18185 dlpath=$dir/\$dldll~ 18186 $RM \$dlpath' 18187 ;; 18188 18189osf3* | osf4* | osf5*) 18190 version_type=osf 18191 need_lib_prefix=no 18192 need_version=no 18193 soname_spec='$libname$release$shared_ext$major' 18194 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18195 shlibpath_var=LD_LIBRARY_PATH 18196 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18197 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18198 ;; 18199 18200rdos*) 18201 dynamic_linker=no 18202 ;; 18203 18204solaris*) 18205 version_type=linux # correct to gnu/linux during the next big refactor 18206 need_lib_prefix=no 18207 need_version=no 18208 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18209 soname_spec='$libname$release$shared_ext$major' 18210 shlibpath_var=LD_LIBRARY_PATH 18211 shlibpath_overrides_runpath=yes 18212 hardcode_into_libs=yes 18213 # ldd complains unless libraries are executable 18214 postinstall_cmds='chmod +x $lib' 18215 ;; 18216 18217sunos4*) 18218 version_type=sunos 18219 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18220 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18221 shlibpath_var=LD_LIBRARY_PATH 18222 shlibpath_overrides_runpath=yes 18223 if test yes = "$with_gnu_ld"; then 18224 need_lib_prefix=no 18225 fi 18226 need_version=yes 18227 ;; 18228 18229sysv4 | sysv4.3*) 18230 version_type=linux # correct to gnu/linux during the next big refactor 18231 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18232 soname_spec='$libname$release$shared_ext$major' 18233 shlibpath_var=LD_LIBRARY_PATH 18234 case $host_vendor in 18235 sni) 18236 shlibpath_overrides_runpath=no 18237 need_lib_prefix=no 18238 runpath_var=LD_RUN_PATH 18239 ;; 18240 siemens) 18241 need_lib_prefix=no 18242 ;; 18243 motorola) 18244 need_lib_prefix=no 18245 need_version=no 18246 shlibpath_overrides_runpath=no 18247 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18248 ;; 18249 esac 18250 ;; 18251 18252sysv4*MP*) 18253 if test -d /usr/nec; then 18254 version_type=linux # correct to gnu/linux during the next big refactor 18255 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18256 soname_spec='$libname$shared_ext.$major' 18257 shlibpath_var=LD_LIBRARY_PATH 18258 fi 18259 ;; 18260 18261sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18262 version_type=sco 18263 need_lib_prefix=no 18264 need_version=no 18265 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18266 soname_spec='$libname$release$shared_ext$major' 18267 shlibpath_var=LD_LIBRARY_PATH 18268 shlibpath_overrides_runpath=yes 18269 hardcode_into_libs=yes 18270 if test yes = "$with_gnu_ld"; then 18271 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18272 else 18273 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18274 case $host_os in 18275 sco3.2v5*) 18276 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18277 ;; 18278 esac 18279 fi 18280 sys_lib_dlsearch_path_spec='/usr/lib' 18281 ;; 18282 18283tpf*) 18284 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18285 version_type=linux # correct to gnu/linux during the next big refactor 18286 need_lib_prefix=no 18287 need_version=no 18288 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18289 shlibpath_var=LD_LIBRARY_PATH 18290 shlibpath_overrides_runpath=no 18291 hardcode_into_libs=yes 18292 ;; 18293 18294uts4*) 18295 version_type=linux # correct to gnu/linux during the next big refactor 18296 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18297 soname_spec='$libname$release$shared_ext$major' 18298 shlibpath_var=LD_LIBRARY_PATH 18299 ;; 18300 18301*) 18302 dynamic_linker=no 18303 ;; 18304esac 18305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18306$as_echo "$dynamic_linker" >&6; } 18307test no = "$dynamic_linker" && can_build_shared=no 18308 18309variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18310if test yes = "$GCC"; then 18311 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18312fi 18313 18314if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 18315 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 18316fi 18317 18318if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 18319 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 18320fi 18321 18322# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 18323configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 18324 18325# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 18326func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 18327 18328# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 18329configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 18330 18331 18332 18333 18334 18335 18336 18337 18338 18339 18340 18341 18342 18343 18344 18345 18346 18347 18348 18349 18350 18351 18352 18353 18354 18355 18356 18357 18358 18359 18360 18361 18362 18363 18364 18365 18366 18367 18368 18369 18370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18371$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18372hardcode_action_CXX= 18373if test -n "$hardcode_libdir_flag_spec_CXX" || 18374 test -n "$runpath_var_CXX" || 18375 test yes = "$hardcode_automatic_CXX"; then 18376 18377 # We can hardcode non-existent directories. 18378 if test no != "$hardcode_direct_CXX" && 18379 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18380 # have to relink, otherwise we might link with an installed library 18381 # when we should be linking with a yet-to-be-installed one 18382 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 18383 test no != "$hardcode_minus_L_CXX"; then 18384 # Linking always hardcodes the temporary library directory. 18385 hardcode_action_CXX=relink 18386 else 18387 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18388 hardcode_action_CXX=immediate 18389 fi 18390else 18391 # We cannot hardcode anything, or else we can only hardcode existing 18392 # directories. 18393 hardcode_action_CXX=unsupported 18394fi 18395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 18396$as_echo "$hardcode_action_CXX" >&6; } 18397 18398if test relink = "$hardcode_action_CXX" || 18399 test yes = "$inherit_rpath_CXX"; then 18400 # Fast installation is not supported 18401 enable_fast_install=no 18402elif test yes = "$shlibpath_overrides_runpath" || 18403 test no = "$enable_shared"; then 18404 # Fast installation is not necessary 18405 enable_fast_install=needless 18406fi 18407 18408 18409 18410 18411 18412 18413 18414 fi # test -n "$compiler" 18415 18416 CC=$lt_save_CC 18417 CFLAGS=$lt_save_CFLAGS 18418 LDCXX=$LD 18419 LD=$lt_save_LD 18420 GCC=$lt_save_GCC 18421 with_gnu_ld=$lt_save_with_gnu_ld 18422 lt_cv_path_LDCXX=$lt_cv_path_LD 18423 lt_cv_path_LD=$lt_save_path_LD 18424 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 18425 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 18426fi # test yes != "$_lt_caught_CXX_error" 18427 18428ac_ext=c 18429ac_cpp='$CPP $CPPFLAGS' 18430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18432ac_compiler_gnu=$ac_cv_c_compiler_gnu 18433 18434 18435 18436 18437 18438 18439 18440 18441 18442 18443 18444 18445 18446 18447 18448 ac_config_commands="$ac_config_commands libtool" 18449 18450 18451 18452 18453# Only expand once: 18454 18455 18456# Check whether --enable-experimental-libtool was given. 18457if test "${enable_experimental_libtool+set}" = set; then : 18458 enableval=$enable_experimental_libtool; experimental_libtool=$enableval 18459else 18460 experimental_libtool=no 18461fi 18462 18463 18464if test "$experimental_libtool" = "yes"; then 18465 echo "using APR's libtool" 18466 sh_libtool="`$apr_config --apr-libtool`" 18467 LIBTOOL="$sh_libtool" 18468 SVN_LIBTOOL="$sh_libtool" 18469else 18470 sh_libtool="$abs_builddir/libtool" 18471 SVN_LIBTOOL="\$(SHELL) \"$sh_libtool\"" 18472fi 18473 18474 18475lt_pversion=`$LIBTOOL --version 2>/dev/null|$SED -e 's/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q'` 18476lt_version=`echo $lt_pversion|$SED -e 's/\([a-z]*\)$/.\1/'` 18477lt_major_version=`echo $lt_version | cut -d'.' -f 1` 18478 18479svn_enable_static=yes 18480svn_enable_shared=yes 18481 18482# Check whether --enable-static was given. 18483if test "${enable_static+set}" = set; then : 18484 enableval=$enable_static; svn_enable_static="$enableval" 18485else 18486 svn_enable_static="yes" 18487fi 18488 18489 18490# Check whether --enable-shared was given. 18491if test "${enable_shared+set}" = set; then : 18492 enableval=$enable_shared; svn_enable_shared="$enableval" 18493else 18494 svn_enable_shared="yes" 18495fi 18496 18497 18498if test "$svn_enable_static" = "yes" && test "$svn_enable_shared" = "yes" ; then 18499 { $as_echo "$as_me:${as_lineno-$LINENO}: building both shared and static libraries" >&5 18500$as_echo "$as_me: building both shared and static libraries" >&6;} 18501elif test "$svn_enable_static" = "yes" ; then 18502 { $as_echo "$as_me:${as_lineno-$LINENO}: building static libraries only" >&5 18503$as_echo "$as_me: building static libraries only" >&6;} 18504 LT_CFLAGS="-static $LT_CFLAGS" 18505 LT_LDFLAGS="-static $LT_LDFLAGS" 18506elif test "$svn_enable_shared" = "yes" ; then 18507 { $as_echo "$as_me:${as_lineno-$LINENO}: building shared libraries only" >&5 18508$as_echo "$as_me: building shared libraries only" >&6;} 18509 if test "$lt_major_version" = "1" ; then 18510 LT_CFLAGS="-prefer-pic $LT_CFLAGS" 18511 elif test "$lt_major_version" = "2" ; then 18512 LT_CFLAGS="-shared $LT_CFLAGS" 18513 fi 18514 LT_LDFLAGS="-shared $LT_LDFLAGS" 18515else 18516 as_fn_error $? "cannot disable both shared and static libraries" "$LINENO" 5 18517fi 18518 18519# Check whether --enable-all-static was given. 18520if test "${enable_all_static+set}" = set; then : 18521 enableval=$enable_all_static; 18522 if test "$enableval" = "yes" ; then 18523 LT_LDFLAGS="-all-static $LT_LDFLAGS" 18524 elif test "$enableval" != "no" ; then 18525 as_fn_error $? "--enable-all-static doesn't accept argument" "$LINENO" 5 18526 fi 18527 18528fi 18529 18530 18531 18532 18533 18534# Check whether --enable-local-library-preloading was given. 18535if test "${enable_local_library_preloading+set}" = set; then : 18536 enableval=$enable_local_library_preloading; 18537 if test "$enableval" != "no"; then 18538 if test "$svn_enable_shared" = "yes"; then 18539 TRANSFORM_LIBTOOL_SCRIPTS="transform-libtool-scripts" 18540 else 18541 as_fn_error $? "--enable-local-library-preloading conflicts with --disable-shared" "$LINENO" 5 18542 fi 18543 else 18544 TRANSFORM_LIBTOOL_SCRIPTS="" 18545 fi 18546 18547else 18548 18549 TRANSFORM_LIBTOOL_SCRIPTS="" 18550 18551fi 18552 18553 18554 18555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool needs -no-undefined" >&5 18556$as_echo_n "checking whether libtool needs -no-undefined... " >&6; } 18557case $host in 18558 *-*-cygwin*) 18559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18560$as_echo "yes" >&6; } 18561 LT_NO_UNDEFINED="-no-undefined" 18562 ;; 18563 *) 18564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18565$as_echo "no" >&6; } 18566 LT_NO_UNDEFINED="" 18567 ;; 18568esac 18569 18570 18571trang=yes 18572 18573# Check whether --with-trang was given. 18574if test "${with_trang+set}" = set; then : 18575 withval=$with_trang; 18576 trang="$withval" 18577 18578fi 18579 18580if test "$trang" = "yes"; then 18581 # Extract the first word of "trang", so it can be a program name with args. 18582set dummy trang; ac_word=$2 18583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18584$as_echo_n "checking for $ac_word... " >&6; } 18585if ${ac_cv_path_TRANG+:} false; then : 18586 $as_echo_n "(cached) " >&6 18587else 18588 case $TRANG in 18589 [\\/]* | ?:[\\/]*) 18590 ac_cv_path_TRANG="$TRANG" # Let the user override the test with a path. 18591 ;; 18592 *) 18593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18594for as_dir in $PATH 18595do 18596 IFS=$as_save_IFS 18597 test -z "$as_dir" && as_dir=. 18598 for ac_exec_ext in '' $ac_executable_extensions; do 18599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18600 ac_cv_path_TRANG="$as_dir/$ac_word$ac_exec_ext" 18601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18602 break 2 18603 fi 18604done 18605 done 18606IFS=$as_save_IFS 18607 18608 test -z "$ac_cv_path_TRANG" && ac_cv_path_TRANG="none" 18609 ;; 18610esac 18611fi 18612TRANG=$ac_cv_path_TRANG 18613if test -n "$TRANG"; then 18614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRANG" >&5 18615$as_echo "$TRANG" >&6; } 18616else 18617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18618$as_echo "no" >&6; } 18619fi 18620 18621 18622else 18623 TRANG="$trang" 18624 18625fi 18626 18627doxygen=yes 18628 18629# Check whether --with-doxygen was given. 18630if test "${with_doxygen+set}" = set; then : 18631 withval=$with_doxygen; 18632 doxygen="$withval" 18633 18634fi 18635 18636if test "$doxygen" = "yes"; then 18637 # Extract the first word of "doxygen", so it can be a program name with args. 18638set dummy doxygen; ac_word=$2 18639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18640$as_echo_n "checking for $ac_word... " >&6; } 18641if ${ac_cv_path_DOXYGEN+:} false; then : 18642 $as_echo_n "(cached) " >&6 18643else 18644 case $DOXYGEN in 18645 [\\/]* | ?:[\\/]*) 18646 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 18647 ;; 18648 *) 18649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18650for as_dir in $PATH 18651do 18652 IFS=$as_save_IFS 18653 test -z "$as_dir" && as_dir=. 18654 for ac_exec_ext in '' $ac_executable_extensions; do 18655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18656 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 18657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18658 break 2 18659 fi 18660done 18661 done 18662IFS=$as_save_IFS 18663 18664 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="none" 18665 ;; 18666esac 18667fi 18668DOXYGEN=$ac_cv_path_DOXYGEN 18669if test -n "$DOXYGEN"; then 18670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 18671$as_echo "$DOXYGEN" >&6; } 18672else 18673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18674$as_echo "no" >&6; } 18675fi 18676 18677 18678else 18679 DOXYGEN="$doxygen" 18680 18681fi 18682 18683 18684 18685 18686 18687# Check whether --with-expat was given. 18688if test "${with_expat+set}" = set; then : 18689 withval=$with_expat; svn_lib_expat="$withval" 18690else 18691 svn_lib_expat="::expat" 18692fi 18693 18694 18695# APR-util accepts "builtin" as an argument to this option so if the user 18696# passed "builtin" pretend the user didn't specify the --with-expat option 18697# at all. Expat will (hopefully) be found in apr-util. 18698test "_$svn_lib_expat" = "_builtin" && svn_lib_expat="::expat" 18699 18700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Expat" >&5 18701$as_echo_n "checking for Expat... " >&6; } 18702if test -n "`echo "$svn_lib_expat" | $EGREP ":.*:"`"; then 18703 SVN_XML_INCLUDES="" 18704 for i in `echo "$svn_lib_expat" | $SED -e "s/\([^:]*\):.*/\1/"`; do 18705 SVN_XML_INCLUDES="$SVN_XML_INCLUDES -I$i" 18706 done 18707 SVN_XML_INCLUDES="${SVN_XML_INCLUDES## }" 18708 for l in `echo "$svn_lib_expat" | $SED -e "s/.*:\([^:]*\):.*/\1/"`; do 18709 LDFLAGS="$LDFLAGS -L$l" 18710 done 18711 for l in `echo "$svn_lib_expat" | $SED -e "s/.*:\([^:]*\)/\1/"`; do 18712 SVN_XML_LIBS="$SVN_XML_LIBS -l$l" 18713 done 18714 SVN_XML_LIBS="${SVN_XML_LIBS## }" 18715 old_CPPFLAGS="$CPPFLAGS" 18716 old_LIBS="$LIBS" 18717 CPPFLAGS="$CPPFLAGS $SVN_XML_INCLUDES" 18718 LIBS="$LIBS $SVN_XML_LIBS" 18719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18720/* end confdefs.h. */ 18721 18722#include <expat.h> 18723int main() 18724{XML_ParserCreate(NULL);} 18725_ACEOF 18726if ac_fn_c_try_link "$LINENO"; then : 18727 svn_lib_expat="yes" 18728else 18729 svn_lib_expat="no" 18730fi 18731rm -f core conftest.err conftest.$ac_objext \ 18732 conftest$ac_exeext conftest.$ac_ext 18733 LIBS="$old_LIBS" 18734 if test "$svn_lib_expat" = "yes"; then 18735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18736$as_echo "yes" >&6; } 18737 else 18738 SVN_XML_INCLUDES="" 18739 SVN_XML_LIBS="" 18740 CPPFLAGS="$CPPFLAGS $SVN_APRUTIL_INCLUDES" 18741 if test "$enable_all_static" != "yes"; then 18742 SVN_APRUTIL_LIBS="$SVN_APRUTIL_LIBS `$apu_config --libs`" 18743 fi 18744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18745/* end confdefs.h. */ 18746 18747#include <expat.h> 18748int main() 18749{XML_ParserCreate(NULL);} 18750_ACEOF 18751if ac_fn_c_try_compile "$LINENO"; then : 18752 svn_lib_expat="yes" 18753else 18754 svn_lib_expat="no" 18755fi 18756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18757 if test "$svn_lib_expat" = "yes"; then 18758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18759$as_echo "yes" >&6; } 18760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expat found amongst libraries used by APR-Util, but Subversion libraries might be needlessly linked against additional unused libraries. It can be avoided by specifying exact location of Expat in argument of --with-expat option." >&5 18761$as_echo "$as_me: WARNING: Expat found amongst libraries used by APR-Util, but Subversion libraries might be needlessly linked against additional unused libraries. It can be avoided by specifying exact location of Expat in argument of --with-expat option." >&2;} 18762 else 18763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18764$as_echo "no" >&6; } 18765 as_fn_error $? "Expat not found" "$LINENO" 5 18766 fi 18767 fi 18768 CPPFLAGS="$old_CPPFLAGS" 18769else 18770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18771$as_echo "no" >&6; } 18772 if test "$svn_lib_expat" = "yes"; then 18773 as_fn_error $? "--with-expat option requires argument" "$LINENO" 5 18774 elif test "$svn_lib_expat" = "no"; then 18775 as_fn_error $? "Expat is required" "$LINENO" 5 18776 else 18777 as_fn_error $? "Invalid syntax of argument of --with-expat option" "$LINENO" 5 18778 fi 18779fi 18780 18781 18782 18783 18784# Berkeley DB on SCO OpenServer needs -lsocket 18785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 18786$as_echo_n "checking for socket in -lsocket... " >&6; } 18787if ${ac_cv_lib_socket_socket+:} false; then : 18788 $as_echo_n "(cached) " >&6 18789else 18790 ac_check_lib_save_LIBS=$LIBS 18791LIBS="-lsocket $LIBS" 18792cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18793/* end confdefs.h. */ 18794 18795/* Override any GCC internal prototype to avoid an error. 18796 Use char because int might match the return type of a GCC 18797 builtin and then its argument prototype would still apply. */ 18798#ifdef __cplusplus 18799extern "C" 18800#endif 18801char socket (); 18802int 18803main () 18804{ 18805return socket (); 18806 ; 18807 return 0; 18808} 18809_ACEOF 18810if ac_fn_c_try_link "$LINENO"; then : 18811 ac_cv_lib_socket_socket=yes 18812else 18813 ac_cv_lib_socket_socket=no 18814fi 18815rm -f core conftest.err conftest.$ac_objext \ 18816 conftest$ac_exeext conftest.$ac_ext 18817LIBS=$ac_check_lib_save_LIBS 18818fi 18819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 18820$as_echo "$ac_cv_lib_socket_socket" >&6; } 18821if test "x$ac_cv_lib_socket_socket" = xyes; then : 18822 cat >>confdefs.h <<_ACEOF 18823#define HAVE_LIBSOCKET 1 18824_ACEOF 18825 18826 LIBS="-lsocket $LIBS" 18827 18828fi 18829 18830 18831# Build the BDB filesystem library only if we have an appropriate 18832# version of Berkeley DB. 18833case "$host" in 18834powerpc-apple-darwin*) 18835 # Berkeley DB 4.0 does not work on OS X. 18836 SVN_FS_WANT_DB_MAJOR=4 18837 SVN_FS_WANT_DB_MINOR=1 18838 SVN_FS_WANT_DB_PATCH=25 18839 ;; 18840*) 18841 SVN_FS_WANT_DB_MAJOR=4 18842 SVN_FS_WANT_DB_MINOR=0 18843 SVN_FS_WANT_DB_PATCH=14 18844 ;; 18845esac 18846db_alt_version="5.x" 18847# Look for libdb4.so first: 18848 18849 db_version=$SVN_FS_WANT_DB_MAJOR.$SVN_FS_WANT_DB_MINOR.$SVN_FS_WANT_DB_PATCH 18850 18851 18852# Check whether --with-berkeley-db was given. 18853if test "${with_berkeley_db+set}" = set; then : 18854 withval=$with_berkeley_db; 18855 if test "$withval" = "no"; then 18856 bdb_status=skip 18857 elif test "$withval" = "yes"; then 18858 apu_db_version="`$apu_config --db-version`" 18859 if test $? -ne 0; then 18860 as_fn_error $? "Can't determine whether apr-util is linked against a 18861 proper version of Berkeley DB." "$LINENO" 5 18862 fi 18863 18864 if test "$withval" = "yes"; then 18865 if test "$apu_db_version" -lt "4"; then 18866 as_fn_error $? "APR-UTIL was linked against Berkeley DB version $apu_db_version, 18867 while version 4 or higher is required. Reinstall 18868 APR-UTIL with the appropriate options." "$LINENO" 5 18869 fi 18870 18871 bdb_status=required 18872 18873 elif test "$apu_found" != "reconfig"; then 18874 if test "$apu_db_version" -lt 4; then 18875 as_fn_error $? "APR-UTIL was installed independently, it won't be 18876 possible to use the specified Berkeley DB: $withval" "$LINENO" 5 18877 fi 18878 18879 bdb_status=required 18880 fi 18881 else 18882 if echo "$withval" | $EGREP ":.*:.*:" > /dev/null; then 18883 svn_berkeley_db_header="`echo "$withval" | $SED -e "s/\([^:]*\):.*/\1/"`" 18884 SVN_DB_INCLUDES="" 18885 for i in `echo "$withval" | $SED -e "s/.*:\([^:]*\):[^:]*:.*/\1/"`; do 18886 SVN_DB_INCLUDES="$SVN_DB_INCLUDES -I$i" 18887 done 18888 SVN_DB_INCLUDES="${SVN_DB_INCLUDES## }" 18889 for l in `echo "$withval" | $SED -e "s/.*:[^:]*:\([^:]*\):.*/\1/"`; do 18890 LDFLAGS="$LDFLAGS ` 18891 input_flags="-L$l" 18892 output_flags="" 18893 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 18894 for flag in $input_flags; do 18895 filter="no" 18896 for dir in $filtered_dirs; do 18897 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 18898 filter="yes" 18899 break 18900 fi 18901 done 18902 if test "$filter" = "no"; then 18903 output_flags="$output_flags $flag" 18904 fi 18905 done 18906 if test -n "$output_flags"; then 18907 printf "%s" "${output_flags# }" 18908 fi 18909`" 18910 done 18911 SVN_DB_LIBS="" 18912 for l in `echo "$withval" | $SED -e "s/.*:\([^:]*\)/\1/"`; do 18913 SVN_DB_LIBS="$SVN_DB_LIBS -l$l" 18914 done 18915 SVN_DB_LIBS="${SVN_DB_LIBS## }" 18916 18917 bdb_status=required 18918 else 18919 as_fn_error $? "Invalid syntax of argument of --with-berkeley-db option" "$LINENO" 5 18920 fi 18921 fi 18922 18923else 18924 18925 # No --with-berkeley-db option: 18926 # 18927 # Check if APR-UTIL is providing the correct Berkeley DB version 18928 # for us. 18929 # 18930 apu_db_version="`$apu_config --db-version`" 18931 if test $? -ne 0; then 18932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected older version of APR-UTIL, trying to determine 18933 whether apr-util is linked against Berkeley DB 18934 $db_version" >&5 18935$as_echo "$as_me: WARNING: Detected older version of APR-UTIL, trying to determine 18936 whether apr-util is linked against Berkeley DB 18937 $db_version" >&2;} 18938 bdb_status=try-link 18939 elif test "$apu_db_version" -lt "4"; then 18940 bdb_status=skip 18941 else 18942 bdb_status=try-link 18943 fi 18944 18945fi 18946 18947 18948 if test "$bdb_status" = "skip"; then 18949 svn_lib_berkeley_db=no 18950 else 18951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for availability of Berkeley DB" >&5 18952$as_echo_n "checking for availability of Berkeley DB... " >&6; } 18953 # Check whether --enable-bdb6 was given. 18954if test "${enable_bdb6+set}" = set; then : 18955 enableval=$enable_bdb6; enable_bdb6=$enableval 18956else 18957 enable_bdb6=unspecified 18958fi 18959 18960 18961 18962 svn_lib_berkeley_db_try_save_cppflags="$CPPFLAGS" 18963 svn_lib_berkeley_db_try_save_libs="$LIBS" 18964 18965 svn_check_berkeley_db_major=$SVN_FS_WANT_DB_MAJOR 18966 svn_check_berkeley_db_minor=$SVN_FS_WANT_DB_MINOR 18967 svn_check_berkeley_db_patch=$SVN_FS_WANT_DB_PATCH 18968 enable_bdb6=$enable_bdb6 18969 18970 if test -z "$SVN_DB_LIBS"; then 18971 # We pass --dbm-libs here since Debian has modified apu-config not 18972 # to return -ldb unless --dbm-libs is passed. This may also produce 18973 # extra output beyond -ldb but since we're only filtering for -ldb 18974 # it won't matter to us. However, --dbm-libs was added to apu-config 18975 # in 1.3.8 so it's possible the version we have doesn't support it 18976 # so fallback without it if we get an error. 18977 svn_db_libs_prefiltered="`$apu_config --libs --dbm-libs`" 18978 if test $? -ne 0; then 18979 svn_db_libs_prefiltered="`$apu_config --libs`" 18980 fi 18981 18982 # Extract only the -ldb.* flag from the libs supplied by apu-config 18983 # Otherwise we get bit by the fact that expat might not be built yet 18984 # Or that it resides in a non-standard location which we would have 18985 # to compensate with using something like -R`$apu_config --prefix`/lib. 18986 # 18987 SVN_DB_LIBS="`echo \"$svn_db_libs_prefiltered\" | $SED -e 's/.*\(-ldb[^[:space:]]*\).*/\1/' | $EGREP -- '-ldb[^[:space:]]*'`" 18988 fi 18989 18990 CPPFLAGS="$SVN_DB_INCLUDES $SVN_APRUTIL_INCLUDES $CPPFLAGS" 18991 LIBS="`$apu_config --ldflags` $SVN_DB_LIBS $LIBS" 18992 18993 if test -n "$svn_berkeley_db_header"; then 18994 SVN_DB_HEADER="#include <$svn_berkeley_db_header>" 18995 svn_db_header="#include <$svn_berkeley_db_header>" 18996 else 18997 SVN_DB_HEADER="#include <apu_want.h>" 18998 svn_db_header="#define APU_WANT_DB 18999#include <apu_want.h>" 19000 fi 19001 19002 19003 19004 if test "$cross_compiling" = yes; then : 19005 svn_have_berkeley_db=yes 19006 19007else 19008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19009/* end confdefs.h. */ 19010 19011#include <string.h> 19012#include <stdlib.h> 19013$svn_db_header 19014 19015int main () 19016{ 19017 int major, minor, patch; 19018 19019 db_version (&major, &minor, &patch); 19020 19021 /* Sanity check: ensure that db.h constants actually match the db library */ 19022 if (major != DB_VERSION_MAJOR 19023 || minor != DB_VERSION_MINOR 19024 || patch != DB_VERSION_PATCH) 19025 exit (1); 19026 19027 /* Block Berkeley DB 6, because (a) we haven't tested with it, (b) 6.0.20 19028 and newer are under the AGPL, and we want use of AGPL dependencies to be 19029 opt-in. */ 19030 if (major >= 6 && strcmp("$enable_bdb6", "yes")) 19031 exit(2); 19032 19033 /* Run-time check: ensure the library claims to be the correct version. */ 19034 19035 if (major < $svn_check_berkeley_db_major) 19036 exit (1); 19037 if (major > $svn_check_berkeley_db_major) 19038 exit (0); 19039 19040 if (minor < $svn_check_berkeley_db_minor) 19041 exit (1); 19042 if (minor > $svn_check_berkeley_db_minor) 19043 exit (0); 19044 19045 if (patch >= $svn_check_berkeley_db_patch) 19046 exit (0); 19047 else 19048 exit (1); 19049} 19050 19051_ACEOF 19052if ac_fn_c_try_run "$LINENO"; then : 19053 svn_have_berkeley_db=yes 19054else 19055 rc=$? 19056 svn_have_berkeley_db=no 19057 if test $rc = 2; then 19058 svn_have_berkeley_db=no6 19059 fi 19060fi 19061rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19062 conftest.$ac_objext conftest.beam conftest.$ac_ext 19063fi 19064 19065 19066 CPPFLAGS="$svn_lib_berkeley_db_try_save_cppflags" 19067 LIBS="$svn_lib_berkeley_db_try_save_libs" 19068 19069 19070 if test "$svn_have_berkeley_db" = "yes"; then 19071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19072$as_echo "yes" >&6; } 19073 svn_lib_berkeley_db=yes 19074 else 19075 if test "$svn_have_berkeley_db" = "no6"; then 19076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (found version 6, but --enable-bdb6 not specified)" >&5 19077$as_echo "no (found version 6, but --enable-bdb6 not specified)" >&6; } 19078 # A warning will be printed at the end of configure.ac. 19079 else 19080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19081$as_echo "no" >&6; } 19082 fi 19083 svn_lib_berkeley_db=no 19084 if test "$bdb_status" = "required"; then 19085 as_fn_error $? "Berkeley DB $db_version or $db_alt_version wasn't found." "$LINENO" 5 19086 fi 19087 fi 19088 fi 19089 19090 19091 19092cat >>confdefs.h <<_ACEOF 19093#define SVN_FS_WANT_DB_MAJOR $SVN_FS_WANT_DB_MAJOR 19094_ACEOF 19095 19096 19097cat >>confdefs.h <<_ACEOF 19098#define SVN_FS_WANT_DB_MINOR $SVN_FS_WANT_DB_MINOR 19099_ACEOF 19100 19101 19102cat >>confdefs.h <<_ACEOF 19103#define SVN_FS_WANT_DB_PATCH $SVN_FS_WANT_DB_PATCH 19104_ACEOF 19105 19106 19107 19108 19109 19110 19111 19112# Check whether --with-sasl was given. 19113if test "${with_sasl+set}" = set; then : 19114 withval=$with_sasl; 19115 with_sasl="$withval" 19116 required="yes" 19117 19118else 19119 19120 with_sasl="yes" 19121 required="no" 19122 19123fi 19124 19125 19126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for SASL" >&5 19127$as_echo_n "checking whether to look for SASL... " >&6; } 19128 19129 if test "${with_sasl}" = "no"; then 19130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19131$as_echo "no" >&6; } 19132 svn_lib_sasl=no 19133 else 19134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19135$as_echo "yes" >&6; } 19136 saved_LDFLAGS="$LDFLAGS" 19137 saved_CPPFLAGS="$CPPFLAGS" 19138 19139 if test "$with_sasl" = "yes"; then 19140 { $as_echo "$as_me:${as_lineno-$LINENO}: Looking in default locations" >&5 19141$as_echo "$as_me: Looking in default locations" >&6;} 19142 ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default" 19143if test "x$ac_cv_header_sasl_sasl_h" = xyes; then : 19144 ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default" 19145if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then : 19146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5 19147$as_echo_n "checking for prop_get in -lsasl2... " >&6; } 19148if ${ac_cv_lib_sasl2_prop_get+:} false; then : 19149 $as_echo_n "(cached) " >&6 19150else 19151 ac_check_lib_save_LIBS=$LIBS 19152LIBS="-lsasl2 $LIBS" 19153cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19154/* end confdefs.h. */ 19155 19156/* Override any GCC internal prototype to avoid an error. 19157 Use char because int might match the return type of a GCC 19158 builtin and then its argument prototype would still apply. */ 19159#ifdef __cplusplus 19160extern "C" 19161#endif 19162char prop_get (); 19163int 19164main () 19165{ 19166return prop_get (); 19167 ; 19168 return 0; 19169} 19170_ACEOF 19171if ac_fn_c_try_link "$LINENO"; then : 19172 ac_cv_lib_sasl2_prop_get=yes 19173else 19174 ac_cv_lib_sasl2_prop_get=no 19175fi 19176rm -f core conftest.err conftest.$ac_objext \ 19177 conftest$ac_exeext conftest.$ac_ext 19178LIBS=$ac_check_lib_save_LIBS 19179fi 19180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5 19181$as_echo "$ac_cv_lib_sasl2_prop_get" >&6; } 19182if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then : 19183 svn_lib_sasl=yes 19184else 19185 svn_lib_sasl=no 19186fi 19187 19188else 19189 svn_lib_sasl=no 19190fi 19191 19192 19193else 19194 svn_lib_sasl=no 19195fi 19196 19197 19198 if test "$svn_lib_sasl" = "no"; then 19199 with_sasl="/usr/local" 19200 fi 19201 else 19202 svn_lib_sasl=no 19203 fi 19204 19205 if test "$svn_lib_sasl" = "no"; then 19206 SVN_SASL_INCLUDES="-I${with_sasl}/include" 19207 CPPFLAGS="$CPPFLAGS $SVN_SASL_INCLUDES" 19208 LDFLAGS="$LDFLAGS ` 19209 input_flags="-L${with_sasl}/lib" 19210 output_flags="" 19211 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 19212 for flag in $input_flags; do 19213 filter="no" 19214 for dir in $filtered_dirs; do 19215 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 19216 filter="yes" 19217 break 19218 fi 19219 done 19220 if test "$filter" = "no"; then 19221 output_flags="$output_flags $flag" 19222 fi 19223 done 19224 if test -n "$output_flags"; then 19225 printf "%s" "${output_flags# }" 19226 fi 19227`" 19228 19229 ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default" 19230if test "x$ac_cv_header_sasl_sasl_h" = xyes; then : 19231 ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default" 19232if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then : 19233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5 19234$as_echo_n "checking for prop_get in -lsasl2... " >&6; } 19235if ${ac_cv_lib_sasl2_prop_get+:} false; then : 19236 $as_echo_n "(cached) " >&6 19237else 19238 ac_check_lib_save_LIBS=$LIBS 19239LIBS="-lsasl2 $LIBS" 19240cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19241/* end confdefs.h. */ 19242 19243/* Override any GCC internal prototype to avoid an error. 19244 Use char because int might match the return type of a GCC 19245 builtin and then its argument prototype would still apply. */ 19246#ifdef __cplusplus 19247extern "C" 19248#endif 19249char prop_get (); 19250int 19251main () 19252{ 19253return prop_get (); 19254 ; 19255 return 0; 19256} 19257_ACEOF 19258if ac_fn_c_try_link "$LINENO"; then : 19259 ac_cv_lib_sasl2_prop_get=yes 19260else 19261 ac_cv_lib_sasl2_prop_get=no 19262fi 19263rm -f core conftest.err conftest.$ac_objext \ 19264 conftest$ac_exeext conftest.$ac_ext 19265LIBS=$ac_check_lib_save_LIBS 19266fi 19267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5 19268$as_echo "$ac_cv_lib_sasl2_prop_get" >&6; } 19269if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then : 19270 svn_lib_sasl=yes 19271else 19272 svn_lib_sasl=no 19273fi 19274 19275else 19276 svn_lib_sasl=no 19277fi 19278 19279 19280else 19281 svn_lib_sasl=no 19282fi 19283 19284 19285 fi 19286 19287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for availability of Cyrus SASL v2" >&5 19288$as_echo_n "checking for availability of Cyrus SASL v2... " >&6; } 19289 if test "$svn_lib_sasl" = "yes"; then 19290 SVN_SASL_LIBS="-lsasl2" 19291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19292$as_echo "yes" >&6; } 19293 else 19294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19295$as_echo "no" >&6; } 19296 19297 if test "$required" = "yes"; then 19298 as_fn_error $? "Could not find Cyrus SASL v2" "$LINENO" 5 19299 fi 19300 19301 SVN_SASL_INCLUDES="" 19302 LDFLAGS="$saved_LDFLAGS" 19303 fi 19304 19305 CPPFLAGS="$saved_CPPFLAGS" 19306 fi 19307 19308 19309 19310 19311 19312if test "$svn_lib_sasl" = "yes"; then 19313 19314$as_echo "#define SVN_HAVE_SASL 1" >>confdefs.h 19315 19316fi 19317 19318 19319 19320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O dynamic module iteration functions" >&5 19321$as_echo_n "checking for Mach-O dynamic module iteration functions... " >&6; } 19322 if test "$cross_compiling" = yes; then : 19323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19325as_fn_error $? "cannot run test program while cross compiling 19326See \`config.log' for more details" "$LINENO" 5; } 19327else 19328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19329/* end confdefs.h. */ 19330 19331 #include <mach-o/dyld.h> 19332 #include <mach-o/loader.h> 19333 19334int 19335main () 19336{ 19337 19338 const struct mach_header *header = _dyld_get_image_header(0); 19339 const char *name = _dyld_get_image_name(0); 19340 if (name && header) return 0; 19341 return 1; 19342 19343 ; 19344 return 0; 19345} 19346_ACEOF 19347if ac_fn_c_try_run "$LINENO"; then : 19348 19349 19350$as_echo "#define SVN_HAVE_MACHO_ITERATE 1" >>confdefs.h 19351 19352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19353$as_echo "yes" >&6; } 19354 19355else 19356 19357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19358$as_echo "no" >&6; } 19359 19360fi 19361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19362 conftest.$ac_objext conftest.beam conftest.$ac_ext 19363fi 19364 19365 19366 19367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS property list utilities" >&5 19368$as_echo_n "checking for Mac OS property list utilities... " >&6; } 19369 19370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19371/* end confdefs.h. */ 19372 19373 #include <AvailabilityMacros.h> 19374 #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \ 19375 || !defined(MAC_OS_X_VERSION_10_0) \ 19376 || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_0) 19377 #error ProperyList API unavailable. 19378 #endif 19379 19380int 19381main () 19382{ 19383 19384 ; 19385 return 0; 19386} 19387_ACEOF 19388if ac_fn_c_try_compile "$LINENO"; then : 19389 19390 19391 LIBS="$LIBS -framework CoreFoundation" 19392 19393$as_echo "#define SVN_HAVE_MACOS_PLIST 1" >>confdefs.h 19394 19395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19396$as_echo "yes" >&6; } 19397 19398else 19399 19400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19401$as_echo "no" >&6; } 19402 19403fi 19404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19405 19406 19407 # Check whether --enable-keychain was given. 19408if test "${enable_keychain+set}" = set; then : 19409 enableval=$enable_keychain; enable_keychain=$enableval 19410else 19411 enable_keychain=yes 19412fi 19413 19414 19415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS KeyChain Services" >&5 19416$as_echo_n "checking for Mac OS KeyChain Services... " >&6; } 19417 19418 if test "$enable_keychain" = "yes"; then 19419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19420/* end confdefs.h. */ 19421 19422 #include <AvailabilityMacros.h> 19423 #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \ 19424 || !defined(MAC_OS_X_VERSION_10_2) \ 19425 || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2) 19426 #error KeyChain API unavailable. 19427 #endif 19428 19429int 19430main () 19431{ 19432 19433 ; 19434 return 0; 19435} 19436_ACEOF 19437if ac_fn_c_try_compile "$LINENO"; then : 19438 19439 LIBS="$LIBS -framework Security" 19440 LIBS="$LIBS -framework CoreServices" 19441 19442$as_echo "#define SVN_HAVE_KEYCHAIN_SERVICES 1" >>confdefs.h 19443 19444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19445$as_echo "yes" >&6; } 19446 19447else 19448 19449 enable_keychain=no 19450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19451$as_echo "no" >&6; } 19452 19453fi 19454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19455 fi 19456 19457 19458 19459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether APR has support for DSOs" >&5 19460$as_echo_n "checking whether APR has support for DSOs... " >&6; } 19461old_CPPFLAGS="$CPPFLAGS" 19462CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES" 19463cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19464/* end confdefs.h. */ 19465 19466#include <apr.h> 19467#if !APR_HAS_DSO 19468#error 19469#endif 19470_ACEOF 19471if ac_fn_c_try_cpp "$LINENO"; then : 19472 APR_HAS_DSO="yes" 19473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19474$as_echo "yes" >&6; } 19475else 19476 APR_HAS_DSO="no" 19477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19478$as_echo "no" >&6; } 19479fi 19480rm -f conftest.err conftest.i conftest.$ac_ext 19481CPPFLAGS="$old_CPPFLAGS" 19482 19483 19484 19485if test -n "$PKG_CONFIG"; then 19486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus .pc file" >&5 19487$as_echo_n "checking for D-Bus .pc file... " >&6; } 19488 if $PKG_CONFIG --exists dbus-1; then 19489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19490$as_echo "yes" >&6; } 19491 old_CPPFLAGS="$CPPFLAGS" 19492 old_LIBS="$LIBS" 19493 DBUS_CPPFLAGS="`$PKG_CONFIG --cflags dbus-1`" 19494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D-Bus version" >&5 19495$as_echo_n "checking D-Bus version... " >&6; } 19496 DBUS_VERSION="`$PKG_CONFIG --modversion dbus-1`" 19497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_VERSION" >&5 19498$as_echo "$DBUS_VERSION" >&6; } 19499 # D-Bus 0.* requires DBUS_API_SUBJECT_TO_CHANGE 19500 if test -n "`echo "$DBUS_VERSION" | $EGREP '^0\.[[:digit:]]+'`"; then 19501 DBUS_CPPFLAGS="$DBUS_CPPFLAGS -DDBUS_API_SUBJECT_TO_CHANGE" 19502 fi 19503 DBUS_LIBS="`$PKG_CONFIG --libs dbus-1`" 19504 CPPFLAGS="$CPPFLAGS $DBUS_CPPFLAGS" 19505 LIBS="$LIBS $DBUS_LIBS" 19506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5 19507$as_echo_n "checking for D-Bus... " >&6; } 19508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19509/* end confdefs.h. */ 19510 19511#include <dbus/dbus.h> 19512int main() 19513{dbus_bus_get(DBUS_BUS_SESSION, NULL);} 19514_ACEOF 19515if ac_fn_c_try_link "$LINENO"; then : 19516 HAVE_DBUS="yes" 19517else 19518 HAVE_DBUS="no" 19519fi 19520rm -f core conftest.err conftest.$ac_objext \ 19521 conftest$ac_exeext conftest.$ac_ext 19522 if test "$HAVE_DBUS" = "yes"; then 19523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19524$as_echo "yes" >&6; } 19525 else 19526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19527$as_echo "no" >&6; } 19528 fi 19529 CPPFLAGS="$old_CPPFLAGS" 19530 LIBS="$old_LIBS" 19531 else 19532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19533$as_echo "no" >&6; } 19534 fi 19535fi 19536 19537 19538 19539# Check whether --with-gpg_agent was given. 19540if test "${with_gpg_agent+set}" = set; then : 19541 withval=$with_gpg_agent; 19542else 19543 with_gpg_agent=yes 19544fi 19545 19546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support GPG-Agent" >&5 19547$as_echo_n "checking whether to support GPG-Agent... " >&6; } 19548if test "$with_gpg_agent" = "yes"; then 19549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19550$as_echo "yes" >&6; } 19551 19552$as_echo "#define SVN_HAVE_GPG_AGENT 1" >>confdefs.h 19553 19554else 19555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19556$as_echo "no" >&6; } 19557fi 19558 19559 19560 19561 19562 19563# Check whether --with-old_gnome_keyring was given. 19564if test "${with_old_gnome_keyring+set}" = set; then : 19565 withval=$with_old_gnome_keyring; with_old_gnome_keyring="$withval" 19566else 19567 with_old_gnome_keyring=no 19568fi 19569 19570 19571found_old_gnome_keyring=no 19572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for old GNOME Keyring" >&5 19573$as_echo_n "checking whether to look for old GNOME Keyring... " >&6; } 19574if test "$with_old_gnome_keyring" != "no"; then 19575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19576$as_echo "yes" >&6; } 19577 case "$host" in 19578 *-*-darwin*) 19579 if test "$with_old_gnome_keyring" = "yes"; then 19580 as_fn_error $? "--with-old-gnome-keyring is not supported on Mac OS X." "$LINENO" 5 19581 else 19582 with_old_gnome_keyring=no 19583 fi 19584 ;; 19585 *) 19586 if test "$svn_enable_shared" = "yes"; then 19587 if test "$APR_HAS_DSO" = "yes"; then 19588 if test -n "$PKG_CONFIG"; then 19589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLib and GNOME Keyring .pc files" >&5 19590$as_echo_n "checking for GLib and GNOME Keyring .pc files... " >&6; } 19591 if $PKG_CONFIG --exists glib-2.0 gnome-keyring-1; then 19592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19593$as_echo "yes" >&6; } 19594 old_CPPFLAGS="$CPPFLAGS" 19595 SVN_GNOME_KEYRING_INCLUDES="`$PKG_CONFIG --cflags glib-2.0 gnome-keyring-1`" 19596 CPPFLAGS="$CPPFLAGS $SVN_GNOME_KEYRING_INCLUDES" 19597 ac_fn_c_check_header_mongrel "$LINENO" "gnome-keyring.h" "ac_cv_header_gnome_keyring_h" "$ac_includes_default" 19598if test "x$ac_cv_header_gnome_keyring_h" = xyes; then : 19599 found_old_gnome_keyring=yes 19600else 19601 found_old_gnome_keyring=no 19602fi 19603 19604 19605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOME Keyring" >&5 19606$as_echo_n "checking for GNOME Keyring... " >&6; } 19607 if test "$found_old_gnome_keyring" = "yes"; then 19608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19609$as_echo "yes" >&6; } 19610 19611$as_echo "#define SVN_HAVE_GNOME_KEYRING 1" >>confdefs.h 19612 19613 CPPFLAGS="$old_CPPFLAGS" 19614 SVN_GNOME_KEYRING_LIBS="`$PKG_CONFIG --libs glib-2.0 gnome-keyring-1`" 19615 else 19616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19617$as_echo "no" >&6; } 19618 if test "$with_old_gnome_keyring" = "yes"; then 19619 as_fn_error $? "cannot find GNOME Keyring" "$LINENO" 5 19620 fi 19621 fi 19622 else 19623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19624$as_echo "no" >&6; } 19625 if test "$with_old_gnome_keyring" = "yes"; then 19626 as_fn_error $? "cannot find GLib and GNOME Keyring .pc files." "$LINENO" 5 19627 else 19628 with_old_gnome_keyring=no 19629 fi 19630 fi 19631 else 19632 if test "$with_old_gnome_keyring" = "yes"; then 19633 as_fn_error $? "cannot find pkg-config. GNOME Keyring requires this." "$LINENO" 5 19634 else 19635 with_old_gnome_keyring=no 19636 fi 19637 fi 19638 else 19639 if test "$with_old_gnome_keyring" = "yes"; then 19640 as_fn_error $? "APR does not have support for DSOs. GNOME Keyring requires this." "$LINENO" 5 19641 else 19642 with_old_gnome_keyring=no 19643 fi 19644 fi 19645 else 19646 if test "$with_old_gnome_keyring" = "yes"; then 19647 as_fn_error $? "--with-old-gnome-keyring conflicts with --disable-shared" "$LINENO" 5 19648 else 19649 with_old_gnome_keyring=no 19650 fi 19651 fi 19652 ;; 19653 esac 19654else 19655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19656$as_echo "no" >&6; } 19657fi 19658 19659 19660 19661 19662 19663# Check whether --with-gnome_keyring was given. 19664if test "${with_gnome_keyring+set}" = set; then : 19665 withval=$with_gnome_keyring; with_gnome_keyring="$withval" 19666else 19667 with_gnome_keyring=auto 19668fi 19669 19670 19671 found_gnome_keyring="no" 19672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for GNOME Keyring" >&5 19673$as_echo_n "checking whether to look for GNOME Keyring... " >&6; } 19674 if test "$found_old_gnome_keyring" = "yes" && test "$with_gnome_keyring" = "auto"; then 19675 with_gnome_keyring="no" 19676 fi 19677 if test "$with_gnome_keyring" != "no"; then 19678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19679$as_echo "yes" >&6; } 19680 case "$host" in 19681 *-*-darwin*) 19682 if test "$with_gnome_keyring" = "yes"; then 19683 as_fn_error $? "--with-gnome-keyring is not supported on Mac OS X." "$LINENO" 5 19684 fi 19685 ;; 19686 *) 19687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOME Keyring" >&5 19688$as_echo_n "checking for GNOME Keyring... " >&6; } 19689 if test "$found_old_gnome_keyring" = "no"; then 19690 if test "$svn_enable_shared" = "yes"; then 19691 if test "$APR_HAS_DSO" = "yes"; then 19692 if test -n "$PKG_CONFIG"; then 19693 if $PKG_CONFIG --exists libsecret-1; then 19694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19695$as_echo "yes" >&6; } 19696 19697$as_echo "#define SVN_HAVE_LIBSECRET 1" >>confdefs.h 19698 19699 SVN_GNOME_KEYRING_INCLUDES="`$PKG_CONFIG --cflags libsecret-1`" 19700 SVN_GNOME_KEYRING_LIBS="`$PKG_CONFIG --libs libsecret-1`" 19701 found_gnome_keyring="yes" 19702 else 19703 if test "$with_gnome_keyring" = "yes"; then 19704 as_fn_error $? "cannot find libsecret" "$LINENO" 5 19705 fi 19706 fi 19707 else 19708 if test "$with_gnome_keyring" = "yes"; then 19709 as_fn_error $? "cannot find pkg-config" "$LINENO" 5 19710 fi 19711 fi 19712 else 19713 if test "$with_gnome_keyring" = "yes"; then 19714 as_fn_error $? "APR does not support DSOs" "$LINENO" 5 19715 fi 19716 fi 19717 else 19718 if test "$with_gnome_keyring" = "yes"; then 19719 as_fn_error $? "--with-gnome-keyring conflicts with --disable-shared" "$LINENO" 5 19720 fi 19721 fi 19722 else 19723 if test "$with_gnome_keyring" = "yes"; then 19724 as_fn_error $? "--with-gnome-keyring conflicts with --with-old-gnome-keyring" "$LINENO" 5 19725 fi 19726 fi 19727 if test "$found_gnome_keyring" = "no"; then 19728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19729$as_echo "no" >&6; } 19730 fi 19731 ;; 19732 esac 19733 else 19734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19735$as_echo "no" >&6; } 19736 fi 19737 19738 19739 19740 19741# Check whether --enable-googlemock was given. 19742if test "${enable_googlemock+set}" = set; then : 19743 enableval=$enable_googlemock; 19744else 19745 enable_googlemock=yes 19746fi 19747 19748 19749GOOGLEMOCK_SRCDIR=$abs_srcdir/googlemock 19750 19751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use Googlemock" >&5 19752$as_echo_n "checking whether use Googlemock... " >&6; } 19753if test "$enable_googlemock" != "no"; then 19754 if test -d "$GOOGLEMOCK_SRCDIR"; then 19755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19756$as_echo "yes" >&6; } 19757 SVN_USE_GOOGLEMOCK=true 19758 else 19759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19760$as_echo "no" >&6; } 19761 SVN_USE_GOOGLEMOCK=false 19762 fi 19763else 19764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19765$as_echo "no" >&6; } 19766 SVN_USE_GOOGLEMOCK=false 19767fi 19768 19769 19770# Check whether --enable-ev2-impl was given. 19771if test "${enable_ev2_impl+set}" = set; then : 19772 enableval=$enable_ev2_impl; enable_ev2_impl=$enableval 19773else 19774 enable_ev2_impl=no 19775fi 19776 19777if test "$enable_ev2_impl" = "yes"; then 19778 19779$as_echo "#define ENABLE_EV2_IMPL 1" >>confdefs.h 19780 19781fi 19782 19783 19784 19785# Check whether --enable-nls was given. 19786if test "${enable_nls+set}" = set; then : 19787 enableval=$enable_nls; enable_nls=$enableval 19788else 19789 enable_nls=yes 19790fi 19791 19792 19793USE_NLS="no" 19794SVN_INTL_LIBS="" 19795if test "$enable_nls" = "yes"; then 19796 # Extract the first word of "msgfmt", so it can be a program name with args. 19797set dummy msgfmt; ac_word=$2 19798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19799$as_echo_n "checking for $ac_word... " >&6; } 19800if ${ac_cv_path_MSGFMT+:} false; then : 19801 $as_echo_n "(cached) " >&6 19802else 19803 case $MSGFMT in 19804 [\\/]* | ?:[\\/]*) 19805 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 19806 ;; 19807 *) 19808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19809for as_dir in $PATH 19810do 19811 IFS=$as_save_IFS 19812 test -z "$as_dir" && as_dir=. 19813 for ac_exec_ext in '' $ac_executable_extensions; do 19814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19815 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" 19816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19817 break 2 19818 fi 19819done 19820 done 19821IFS=$as_save_IFS 19822 19823 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="none" 19824 ;; 19825esac 19826fi 19827MSGFMT=$ac_cv_path_MSGFMT 19828if test -n "$MSGFMT"; then 19829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 19830$as_echo "$MSGFMT" >&6; } 19831else 19832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19833$as_echo "no" >&6; } 19834fi 19835 19836 19837 # Extract the first word of "msgmerge", so it can be a program name with args. 19838set dummy msgmerge; ac_word=$2 19839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19840$as_echo_n "checking for $ac_word... " >&6; } 19841if ${ac_cv_path_MSGMERGE+:} false; then : 19842 $as_echo_n "(cached) " >&6 19843else 19844 case $MSGMERGE in 19845 [\\/]* | ?:[\\/]*) 19846 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 19847 ;; 19848 *) 19849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19850for as_dir in $PATH 19851do 19852 IFS=$as_save_IFS 19853 test -z "$as_dir" && as_dir=. 19854 for ac_exec_ext in '' $ac_executable_extensions; do 19855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19856 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext" 19857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19858 break 2 19859 fi 19860done 19861 done 19862IFS=$as_save_IFS 19863 19864 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE="none" 19865 ;; 19866esac 19867fi 19868MSGMERGE=$ac_cv_path_MSGMERGE 19869if test -n "$MSGMERGE"; then 19870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 19871$as_echo "$MSGMERGE" >&6; } 19872else 19873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19874$as_echo "no" >&6; } 19875fi 19876 19877 19878 # Extract the first word of "xgettext", so it can be a program name with args. 19879set dummy xgettext; ac_word=$2 19880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19881$as_echo_n "checking for $ac_word... " >&6; } 19882if ${ac_cv_path_XGETTEXT+:} false; then : 19883 $as_echo_n "(cached) " >&6 19884else 19885 case $XGETTEXT in 19886 [\\/]* | ?:[\\/]*) 19887 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 19888 ;; 19889 *) 19890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19891for as_dir in $PATH 19892do 19893 IFS=$as_save_IFS 19894 test -z "$as_dir" && as_dir=. 19895 for ac_exec_ext in '' $ac_executable_extensions; do 19896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19897 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext" 19898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19899 break 2 19900 fi 19901done 19902 done 19903IFS=$as_save_IFS 19904 19905 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="none" 19906 ;; 19907esac 19908fi 19909XGETTEXT=$ac_cv_path_XGETTEXT 19910if test -n "$XGETTEXT"; then 19911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 19912$as_echo "$XGETTEXT" >&6; } 19913else 19914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19915$as_echo "no" >&6; } 19916fi 19917 19918 19919 if test "$MSGFMT" != "none"; then 19920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5 19921$as_echo_n "checking for library containing bindtextdomain... " >&6; } 19922if ${ac_cv_search_bindtextdomain+:} false; then : 19923 $as_echo_n "(cached) " >&6 19924else 19925 ac_func_search_save_LIBS=$LIBS 19926cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19927/* end confdefs.h. */ 19928 19929/* Override any GCC internal prototype to avoid an error. 19930 Use char because int might match the return type of a GCC 19931 builtin and then its argument prototype would still apply. */ 19932#ifdef __cplusplus 19933extern "C" 19934#endif 19935char bindtextdomain (); 19936int 19937main () 19938{ 19939return bindtextdomain (); 19940 ; 19941 return 0; 19942} 19943_ACEOF 19944for ac_lib in '' intl; do 19945 if test -z "$ac_lib"; then 19946 ac_res="none required" 19947 else 19948 ac_res=-l$ac_lib 19949 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19950 fi 19951 if ac_fn_c_try_link "$LINENO"; then : 19952 ac_cv_search_bindtextdomain=$ac_res 19953fi 19954rm -f core conftest.err conftest.$ac_objext \ 19955 conftest$ac_exeext 19956 if ${ac_cv_search_bindtextdomain+:} false; then : 19957 break 19958fi 19959done 19960if ${ac_cv_search_bindtextdomain+:} false; then : 19961 19962else 19963 ac_cv_search_bindtextdomain=no 19964fi 19965rm conftest.$ac_ext 19966LIBS=$ac_func_search_save_LIBS 19967fi 19968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bindtextdomain" >&5 19969$as_echo "$ac_cv_search_bindtextdomain" >&6; } 19970ac_res=$ac_cv_search_bindtextdomain 19971if test "$ac_res" != no; then : 19972 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19973 19974 # in case libintl needs to be linked explicitly, 19975 # $ac_cv_search_bindtextdomain contains -l linker flags 19976 if echo "$ac_cv_search_bindtextdomain" | grep '^-l' >/dev/null 19977 then 19978 SVN_INTL_LIBS="$ac_cv_search_bindtextdomain" 19979 fi 19980 19981else 19982 19983 enable_nls="no" 19984 19985fi 19986 19987 if test "$enable_nls" = "no"; then 19988 # Destroy the cached result so we can test again 19989 unset ac_cv_search_bindtextdomain 19990 # On some systems, libintl needs libiconv to link properly, 19991 # so try again with -liconv. 19992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5 19993$as_echo_n "checking for library containing bindtextdomain... " >&6; } 19994if ${ac_cv_search_bindtextdomain+:} false; then : 19995 $as_echo_n "(cached) " >&6 19996else 19997 ac_func_search_save_LIBS=$LIBS 19998cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19999/* end confdefs.h. */ 20000 20001/* Override any GCC internal prototype to avoid an error. 20002 Use char because int might match the return type of a GCC 20003 builtin and then its argument prototype would still apply. */ 20004#ifdef __cplusplus 20005extern "C" 20006#endif 20007char bindtextdomain (); 20008int 20009main () 20010{ 20011return bindtextdomain (); 20012 ; 20013 return 0; 20014} 20015_ACEOF 20016for ac_lib in '' intl; do 20017 if test -z "$ac_lib"; then 20018 ac_res="none required" 20019 else 20020 ac_res=-l$ac_lib 20021 LIBS="-l$ac_lib -liconv $ac_func_search_save_LIBS" 20022 fi 20023 if ac_fn_c_try_link "$LINENO"; then : 20024 ac_cv_search_bindtextdomain=$ac_res 20025fi 20026rm -f core conftest.err conftest.$ac_objext \ 20027 conftest$ac_exeext 20028 if ${ac_cv_search_bindtextdomain+:} false; then : 20029 break 20030fi 20031done 20032if ${ac_cv_search_bindtextdomain+:} false; then : 20033 20034else 20035 ac_cv_search_bindtextdomain=no 20036fi 20037rm conftest.$ac_ext 20038LIBS=$ac_func_search_save_LIBS 20039fi 20040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bindtextdomain" >&5 20041$as_echo "$ac_cv_search_bindtextdomain" >&6; } 20042ac_res=$ac_cv_search_bindtextdomain 20043if test "$ac_res" != no; then : 20044 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20045 20046 enable_nls="yes" 20047 if echo "$ac_cv_search_bindtextdomain" | grep '^-l' >/dev/null 20048 then 20049 SVN_INTL_LIBS="$ac_cv_search_bindtextdomain" 20050 fi 20051 # This is here so that -liconv ends up in LIBS 20052 # if it worked with -liconv. 20053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5 20054$as_echo_n "checking for libiconv_open in -liconv... " >&6; } 20055if ${ac_cv_lib_iconv_libiconv_open+:} false; then : 20056 $as_echo_n "(cached) " >&6 20057else 20058 ac_check_lib_save_LIBS=$LIBS 20059LIBS="-liconv $LIBS" 20060cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20061/* end confdefs.h. */ 20062 20063/* Override any GCC internal prototype to avoid an error. 20064 Use char because int might match the return type of a GCC 20065 builtin and then its argument prototype would still apply. */ 20066#ifdef __cplusplus 20067extern "C" 20068#endif 20069char libiconv_open (); 20070int 20071main () 20072{ 20073return libiconv_open (); 20074 ; 20075 return 0; 20076} 20077_ACEOF 20078if ac_fn_c_try_link "$LINENO"; then : 20079 ac_cv_lib_iconv_libiconv_open=yes 20080else 20081 ac_cv_lib_iconv_libiconv_open=no 20082fi 20083rm -f core conftest.err conftest.$ac_objext \ 20084 conftest$ac_exeext conftest.$ac_ext 20085LIBS=$ac_check_lib_save_LIBS 20086fi 20087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5 20088$as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; } 20089if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then : 20090 cat >>confdefs.h <<_ACEOF 20091#define HAVE_LIBICONV 1 20092_ACEOF 20093 20094 LIBS="-liconv $LIBS" 20095 20096fi 20097 20098 20099else 20100 20101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bindtextdomain() not found. Disabling NLS." >&5 20102$as_echo "$as_me: WARNING: bindtextdomain() not found. Disabling NLS." >&2;} 20103 enable_nls="no" 20104 20105fi 20106 20107 fi 20108 if test "$enable_nls" = "yes"; then 20109 20110$as_echo "#define ENABLE_NLS 1" >>confdefs.h 20111 20112 USE_NLS="yes" 20113 fi 20114 fi 20115fi 20116 20117 20118 20119 20120 20121GETTEXT_CODESET=\# 20122NO_GETTEXT_CODESET=\# 20123if test $USE_NLS = "yes"; then 20124 for ac_func in bind_textdomain_codeset 20125do : 20126 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 20127if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 20128 cat >>confdefs.h <<_ACEOF 20129#define HAVE_BIND_TEXTDOMAIN_CODESET 1 20130_ACEOF 20131 GETTEXT_CODESET="" 20132else 20133 NO_GETTEXT_CODESET="" 20134fi 20135done 20136 20137fi 20138 20139 20140 20141# Check if we are using GNU gettext. 20142GNU_GETTEXT=no 20143MSGFMTFLAGS='' 20144if test $USE_NLS = "yes"; then 20145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are using GNU gettext" >&5 20146$as_echo_n "checking if we are using GNU gettext... " >&6; } 20147 if $MSGFMT --version 2>&1 | $EGREP GNU > /dev/null; then 20148 GNU_GETTEXT=yes 20149 MSGFMTFLAGS='-c' 20150 fi 20151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNU_GETTEXT" >&5 20152$as_echo "$GNU_GETTEXT" >&6; } 20153fi 20154 20155 20156 20157libmagic_found=no 20158 20159 20160# Check whether --with-libmagic was given. 20161if test "${with_libmagic+set}" = set; then : 20162 withval=$with_libmagic; 20163 if test "$withval" = "yes" ; then 20164 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default" 20165if test "x$ac_cv_header_magic_h" = xyes; then : 20166 20167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5 20168$as_echo_n "checking for magic_open in -lmagic... " >&6; } 20169if ${ac_cv_lib_magic_magic_open+:} false; then : 20170 $as_echo_n "(cached) " >&6 20171else 20172 ac_check_lib_save_LIBS=$LIBS 20173LIBS="-lmagic $LIBS" 20174cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20175/* end confdefs.h. */ 20176 20177/* Override any GCC internal prototype to avoid an error. 20178 Use char because int might match the return type of a GCC 20179 builtin and then its argument prototype would still apply. */ 20180#ifdef __cplusplus 20181extern "C" 20182#endif 20183char magic_open (); 20184int 20185main () 20186{ 20187return magic_open (); 20188 ; 20189 return 0; 20190} 20191_ACEOF 20192if ac_fn_c_try_link "$LINENO"; then : 20193 ac_cv_lib_magic_magic_open=yes 20194else 20195 ac_cv_lib_magic_magic_open=no 20196fi 20197rm -f core conftest.err conftest.$ac_objext \ 20198 conftest$ac_exeext conftest.$ac_ext 20199LIBS=$ac_check_lib_save_LIBS 20200fi 20201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5 20202$as_echo "$ac_cv_lib_magic_magic_open" >&6; } 20203if test "x$ac_cv_lib_magic_magic_open" = xyes; then : 20204 libmagic_found="builtin" 20205fi 20206 20207 20208fi 20209 20210 20211 libmagic_prefix="the default locations" 20212 elif test "$withval" != "no"; then 20213 libmagic_prefix=$withval 20214 save_cppflags="$CPPFLAGS" 20215 CPPFLAGS="$CPPFLAGS -I$libmagic_prefix/include" 20216 for ac_header in magic.h 20217do : 20218 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default" 20219if test "x$ac_cv_header_magic_h" = xyes; then : 20220 cat >>confdefs.h <<_ACEOF 20221#define HAVE_MAGIC_H 1 20222_ACEOF 20223 20224 save_ldflags="$LDFLAGS" 20225 LDFLAGS="-L$libmagic_prefix/lib $LDFLAGS" 20226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5 20227$as_echo_n "checking for magic_open in -lmagic... " >&6; } 20228if ${ac_cv_lib_magic_magic_open+:} false; then : 20229 $as_echo_n "(cached) " >&6 20230else 20231 ac_check_lib_save_LIBS=$LIBS 20232LIBS="-lmagic $LIBS" 20233cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20234/* end confdefs.h. */ 20235 20236/* Override any GCC internal prototype to avoid an error. 20237 Use char because int might match the return type of a GCC 20238 builtin and then its argument prototype would still apply. */ 20239#ifdef __cplusplus 20240extern "C" 20241#endif 20242char magic_open (); 20243int 20244main () 20245{ 20246return magic_open (); 20247 ; 20248 return 0; 20249} 20250_ACEOF 20251if ac_fn_c_try_link "$LINENO"; then : 20252 ac_cv_lib_magic_magic_open=yes 20253else 20254 ac_cv_lib_magic_magic_open=no 20255fi 20256rm -f core conftest.err conftest.$ac_objext \ 20257 conftest$ac_exeext conftest.$ac_ext 20258LIBS=$ac_check_lib_save_LIBS 20259fi 20260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5 20261$as_echo "$ac_cv_lib_magic_magic_open" >&6; } 20262if test "x$ac_cv_lib_magic_magic_open" = xyes; then : 20263 libmagic_found="yes" 20264fi 20265 20266 LDFLAGS="$save_ldflags" 20267 20268fi 20269 20270done 20271 20272 CPPFLAGS="$save_cppflags" 20273 fi 20274 if test "$withval" != "no" && test "$libmagic_found" = "no"; then 20275 as_fn_error $? "--with-libmagic requested, but libmagic not found at $libmagic_prefix" "$LINENO" 5 20276 fi 20277 20278else 20279 20280 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default" 20281if test "x$ac_cv_header_magic_h" = xyes; then : 20282 20283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5 20284$as_echo_n "checking for magic_open in -lmagic... " >&6; } 20285if ${ac_cv_lib_magic_magic_open+:} false; then : 20286 $as_echo_n "(cached) " >&6 20287else 20288 ac_check_lib_save_LIBS=$LIBS 20289LIBS="-lmagic $LIBS" 20290cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20291/* end confdefs.h. */ 20292 20293/* Override any GCC internal prototype to avoid an error. 20294 Use char because int might match the return type of a GCC 20295 builtin and then its argument prototype would still apply. */ 20296#ifdef __cplusplus 20297extern "C" 20298#endif 20299char magic_open (); 20300int 20301main () 20302{ 20303return magic_open (); 20304 ; 20305 return 0; 20306} 20307_ACEOF 20308if ac_fn_c_try_link "$LINENO"; then : 20309 ac_cv_lib_magic_magic_open=yes 20310else 20311 ac_cv_lib_magic_magic_open=no 20312fi 20313rm -f core conftest.err conftest.$ac_objext \ 20314 conftest$ac_exeext conftest.$ac_ext 20315LIBS=$ac_check_lib_save_LIBS 20316fi 20317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5 20318$as_echo "$ac_cv_lib_magic_magic_open" >&6; } 20319if test "x$ac_cv_lib_magic_magic_open" = xyes; then : 20320 libmagic_found="builtin" 20321fi 20322 20323 20324fi 20325 20326 20327 20328fi 20329 20330 20331if test "$libmagic_found" != "no"; then 20332 20333$as_echo "#define SVN_HAVE_LIBMAGIC 1" >>confdefs.h 20334 20335 SVN_MAGIC_LIBS="-lmagic" 20336fi 20337 20338if test "$libmagic_found" = "yes"; then 20339 SVN_MAGIC_INCLUDES="-I$libmagic_prefix/include" 20340 LDFLAGS="$LDFLAGS ` 20341 input_flags="-L$libmagic_prefix/lib" 20342 output_flags="" 20343 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 20344 for flag in $input_flags; do 20345 filter="no" 20346 for dir in $filtered_dirs; do 20347 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 20348 filter="yes" 20349 break 20350 fi 20351 done 20352 if test "$filter" = "no"; then 20353 output_flags="$output_flags $flag" 20354 fi 20355 done 20356 if test -n "$output_flags"; then 20357 printf "%s" "${output_flags# }" 20358 fi 20359`" 20360fi 20361 20362 20363 20364 20365 20366 20367# Check whether --with-kwallet was given. 20368if test "${with_kwallet+set}" = set; then : 20369 withval=$with_kwallet; svn_lib_kwallet="$withval" 20370else 20371 svn_lib_kwallet=no 20372fi 20373 20374 20375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for KWallet" >&5 20376$as_echo_n "checking whether to look for KWallet... " >&6; } 20377 if test "$svn_lib_kwallet" != "no"; then 20378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20379$as_echo "yes" >&6; } 20380 case "$host" in 20381 *-*-darwin*) 20382 as_fn_error $? "--with-kwallet is not supported on Mac OS X." "$LINENO" 5 20383 ;; 20384 *) 20385 if test "$svn_enable_shared" = "yes"; then 20386 if test "$APR_HAS_DSO" = "yes"; then 20387 if test -n "$PKG_CONFIG"; then 20388 if test "$HAVE_DBUS" = "yes"; then 20389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt" >&5 20390$as_echo_n "checking for Qt... " >&6; } 20391 if $PKG_CONFIG --exists Qt5Core Qt5DBus Qt5Gui; then 20392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Qt5" >&5 20393$as_echo "yes, Qt5" >&6; } 20394 qt_pkg_config_names="Qt5Core Qt5DBus Qt5Gui" 20395 kde_config_name="kf5-config" 20396 kde_inc_names="KF5/KWallet KF5/KCoreAddons KF5/KI18n" 20397 kde_lib_names="-lKF5Wallet -lKF5I18n -lKF5CoreAddons -lQt5Gui -lQt5DBus -lQt5Core" 20398 elif $PKG_CONFIG --exists QtCore QtDBus QtGui; then 20399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Qt4" >&5 20400$as_echo "yes, Qt4" >&6; } 20401 qt_pkg_config_names="QtCore QtDBus QtGui" 20402 kde_config_name="kde4-config" 20403 kde_inc_names="/" 20404 kde_lib_names="-lkdeui -lkdecore -lQtGui -lQtDBus -lQtCore" 20405 fi 20406 if test -n "$qt_pkg_config_names"; then 20407 if test "$svn_lib_kwallet" != "yes"; then 20408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $kde_config_name" >&5 20409$as_echo_n "checking for $kde_config_name... " >&6; } 20410 KDE_CONFIG="$svn_lib_kwallet/bin/$kde_config_name" 20411 if test -f "$KDE_CONFIG" && test -x "$KDE_CONFIG"; then 20412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20413$as_echo "yes" >&6; } 20414 else 20415 if echo "$svn_lib_kwallet" | $EGREP ":" > /dev/null; then 20416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unneeded" >&5 20417$as_echo "unneeded" >&6; } 20418 KDE_CONFIG="unneeded" 20419 kde_incdir="`echo "$svn_lib_kwallet" | $SED -e "s/:.*//"`" 20420 kde_libdir="`echo "$svn_lib_kwallet" | $SED -e "s/.*://"`" 20421 else 20422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20423$as_echo "no" >&6; } 20424 KDE_CONFIG="" 20425 fi 20426 fi 20427 else 20428 # Extract the first word of "$kde_config_name", so it can be a program name with args. 20429set dummy $kde_config_name; ac_word=$2 20430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20431$as_echo_n "checking for $ac_word... " >&6; } 20432if ${ac_cv_path_KDE_CONFIG+:} false; then : 20433 $as_echo_n "(cached) " >&6 20434else 20435 case $KDE_CONFIG in 20436 [\\/]* | ?:[\\/]*) 20437 ac_cv_path_KDE_CONFIG="$KDE_CONFIG" # Let the user override the test with a path. 20438 ;; 20439 *) 20440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20441for as_dir in $PATH 20442do 20443 IFS=$as_save_IFS 20444 test -z "$as_dir" && as_dir=. 20445 for ac_exec_ext in '' $ac_executable_extensions; do 20446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20447 ac_cv_path_KDE_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20449 break 2 20450 fi 20451done 20452 done 20453IFS=$as_save_IFS 20454 20455 ;; 20456esac 20457fi 20458KDE_CONFIG=$ac_cv_path_KDE_CONFIG 20459if test -n "$KDE_CONFIG"; then 20460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE_CONFIG" >&5 20461$as_echo "$KDE_CONFIG" >&6; } 20462else 20463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20464$as_echo "no" >&6; } 20465fi 20466 20467 20468 if test -n "$KDE_CONFIG"; then 20469 kde_incdir="`$KDE_CONFIG --install include`" 20470 kde_libdir="`$KDE_CONFIG --install lib`" 20471 fi 20472 fi 20473 if test -n "$KDE_CONFIG"; then 20474 if test $kde_config_name = "kf5-config"; then 20475 20476 CXXFLAGS_KEEP="$CXXFLAGS" 20477 CXXFLAGS="" 20478 20479 if test "$GXX" = "yes"; then 20480 20481 _svn_xxflags__save="$CXXFLAGS" 20482 ac_ext=cpp 20483ac_cpp='$CXXCPP $CPPFLAGS' 20484ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20485ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20486ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20487 20488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -std=c++11" >&5 20489$as_echo_n "checking if $CXX accepts -std=c++11... " >&6; } 20490 CXXFLAGS="-std=c++11 $CXXFLAGS" 20491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20492/* end confdefs.h. */ 20493int main(){} 20494_ACEOF 20495if ac_fn_cxx_try_link "$LINENO"; then : 20496 20497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20498$as_echo "yes" >&6; } 20499 20500 20501else 20502 20503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20504$as_echo "no" >&6; } 20505 CXXFLAGS="$_svn_xxflags__save" 20506 20507 20508fi 20509rm -f core conftest.err conftest.$ac_objext \ 20510 conftest$ac_exeext conftest.$ac_ext 20511 ac_ext=c 20512ac_cpp='$CPP $CPPFLAGS' 20513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20515ac_compiler_gnu=$ac_cv_c_compiler_gnu 20516 20517 20518 fi 20519 20520 CXXMODEFLAGS="$CXXFLAGS" 20521 CXXFLAGS="$CXXFLAGS_KEEP" 20522 20523 20524 fi 20525 old_CXXFLAGS="$CXXFLAGS" 20526 old_LDFLAGS="$LDFLAGS" 20527 old_LIBS="$LIBS" 20528 CXXFLAGS="$CXXFLAGS $CXXMODEFLAGS" 20529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KWallet" >&5 20530$as_echo_n "checking for KWallet... " >&6; } 20531 for d in `$PKG_CONFIG --cflags $qt_pkg_config_names`; do 20532 if test -n "`echo "$d" | $EGREP -- '^-D[^[:space:]]*'`"; then 20533 CPPFLAGS="$CPPFLAGS $d" 20534 fi 20535 done 20536 qt_include_dirs="`$PKG_CONFIG --cflags-only-I $qt_pkg_config_names`" 20537 for kde_inc_name in $kde_inc_names; do 20538 kde_kwallet_includes="$kde_kwallet_includes -I$kde_incdir/$kde_inc_name" 20539 done 20540 SVN_KWALLET_INCLUDES="$DBUS_CPPFLAGS $qt_include_dirs $kde_kwallet_includes" 20541 qt_libs_other_options="`$PKG_CONFIG --libs-only-other $qt_pkg_config_names`" 20542 SVN_KWALLET_LIBS="$DBUS_LIBS $kde_lib_names $qt_libs_other_options" 20543 CXXFLAGS="$CXXFLAGS $SVN_KWALLET_INCLUDES -fPIC" 20544 LIBS="$LIBS $SVN_KWALLET_LIBS" 20545 qt_lib_dirs="`$PKG_CONFIG --libs-only-L $qt_pkg_config_names`" 20546 LDFLAGS="$old_LDFLAGS ` 20547 input_flags="$qt_lib_dirs -L$kde_libdir" 20548 output_flags="" 20549 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 20550 for flag in $input_flags; do 20551 filter="no" 20552 for dir in $filtered_dirs; do 20553 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 20554 filter="yes" 20555 break 20556 fi 20557 done 20558 if test "$filter" = "no"; then 20559 output_flags="$output_flags $flag" 20560 fi 20561 done 20562 if test -n "$output_flags"; then 20563 printf "%s" "${output_flags# }" 20564 fi 20565`" 20566 ac_ext=cpp 20567ac_cpp='$CXXCPP $CPPFLAGS' 20568ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20569ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20570ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20571 20572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20573/* end confdefs.h. */ 20574 20575#include <kwallet.h> 20576int main() 20577{KWallet::Wallet::walletList();} 20578_ACEOF 20579if ac_fn_cxx_try_link "$LINENO"; then : 20580 svn_lib_kwallet="yes" 20581else 20582 svn_lib_kwallet="no" 20583fi 20584rm -f core conftest.err conftest.$ac_objext \ 20585 conftest$ac_exeext conftest.$ac_ext 20586 ac_ext=c 20587ac_cpp='$CPP $CPPFLAGS' 20588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20590ac_compiler_gnu=$ac_cv_c_compiler_gnu 20591 20592 if test "$svn_lib_kwallet" = "yes"; then 20593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20594$as_echo "yes" >&6; } 20595 CXXFLAGS="$old_CXXFLAGS" 20596 LIBS="$old_LIBS" 20597 if test "$kde_config_name" = "kf5-config"; then 20598 20599$as_echo "#define SVN_HAVE_KF5 1" >>confdefs.h 20600 20601 fi 20602 else 20603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20604$as_echo "no" >&6; } 20605 as_fn_error $? "cannot find KWallet" "$LINENO" 5 20606 fi 20607 else 20608 as_fn_error $? "cannot find $kde_config_name" "$LINENO" 5 20609 fi 20610 else 20611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20612$as_echo "no" >&6; } 20613 as_fn_error $? "cannot find Qt" "$LINENO" 5 20614 fi 20615 else 20616 as_fn_error $? "cannot find D-Bus" "$LINENO" 5 20617 fi 20618 else 20619 as_fn_error $? "cannot find pkg-config" "$LINENO" 5 20620 fi 20621 else 20622 as_fn_error $? "APR does not have support for DSOs" "$LINENO" 5 20623 fi 20624 else 20625 as_fn_error $? "--with-kwallet conflicts with --disable-shared" "$LINENO" 5 20626 fi 20627 ;; 20628 esac 20629 else 20630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20631$as_echo "no" >&6; } 20632 fi 20633 20634 20635 20636 20637if test "$svn_lib_kwallet" = "yes"; then 20638 20639$as_echo "#define SVN_HAVE_KWALLET 1" >>confdefs.h 20640 20641fi 20642 20643# Check whether --enable-plaintext-password-storage was given. 20644if test "${enable_plaintext_password_storage+set}" = set; then : 20645 enableval=$enable_plaintext_password_storage; 20646 if test "$enableval" = "no"; then 20647 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling plaintext password/passphrase storage" >&5 20648$as_echo "$as_me: Disabling plaintext password/passphrase storage" >&6;} 20649 20650$as_echo "#define SVN_DISABLE_PLAINTEXT_PASSWORD_STORAGE 1" >>confdefs.h 20651 20652 fi 20653 20654fi 20655 20656 20657 20658INSTALL_STATIC_RULES="install-bin install-docs" 20659INSTALL_RULES="install-fsmod-lib install-ramod-lib install-lib install-include install-static" 20660INSTALL_RULES="$INSTALL_RULES $INSTALL_APACHE_RULE" 20661BUILD_RULES="fsmod-lib ramod-lib lib bin test sub-test $BUILD_APACHE_RULE tools" 20662 20663if test "$svn_lib_berkeley_db" = "yes"; then 20664 BUILD_RULES="$BUILD_RULES bdb-lib bdb-test" 20665 INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-fsmod-lib/install-fsmod-lib install-bdb-lib/'`" 20666 INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-bdb-lib" 20667 BDB_TEST_DEPS="\$(BDB_TEST_DEPS)" 20668 BDB_TEST_PROGRAMS="\$(BDB_TEST_PROGRAMS)" 20669fi 20670 20671if test "$svn_lib_serf" = "yes"; then 20672 BUILD_RULES="$BUILD_RULES serf-lib" 20673 INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-ramod-lib/install-ramod-lib install-serf-lib/'`" 20674 INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-serf-lib" 20675fi 20676 20677if test "$svn_lib_kwallet" = "yes"; then 20678 BUILD_RULES="$BUILD_RULES kwallet-lib" 20679 INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-lib/install-lib install-kwallet-lib/'`" 20680 INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-kwallet-lib" 20681fi 20682 20683if test "$found_old_gnome_keyring" = "yes" || test "$found_gnome_keyring" = "yes"; then 20684 BUILD_RULES="$BUILD_RULES gnome-keyring-lib" 20685 INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-lib/install-lib install-gnome-keyring-lib/'`" 20686 INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-gnome-keyring-lib" 20687fi 20688 20689if test "$USE_NLS" = "yes"; then 20690 BUILD_RULES="$BUILD_RULES locale" 20691 INSTALL_RULES="$INSTALL_RULES install-locale" 20692fi 20693 20694 20695 20696 20697 20698 20699 20700 20701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 20702$as_echo_n "checking for ANSI C header files... " >&6; } 20703if ${ac_cv_header_stdc+:} false; then : 20704 $as_echo_n "(cached) " >&6 20705else 20706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20707/* end confdefs.h. */ 20708#include <stdlib.h> 20709#include <stdarg.h> 20710#include <string.h> 20711#include <float.h> 20712 20713int 20714main () 20715{ 20716 20717 ; 20718 return 0; 20719} 20720_ACEOF 20721if ac_fn_c_try_compile "$LINENO"; then : 20722 ac_cv_header_stdc=yes 20723else 20724 ac_cv_header_stdc=no 20725fi 20726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20727 20728if test $ac_cv_header_stdc = yes; then 20729 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 20730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20731/* end confdefs.h. */ 20732#include <string.h> 20733 20734_ACEOF 20735if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20736 $EGREP "memchr" >/dev/null 2>&1; then : 20737 20738else 20739 ac_cv_header_stdc=no 20740fi 20741rm -f conftest* 20742 20743fi 20744 20745if test $ac_cv_header_stdc = yes; then 20746 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 20747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20748/* end confdefs.h. */ 20749#include <stdlib.h> 20750 20751_ACEOF 20752if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20753 $EGREP "free" >/dev/null 2>&1; then : 20754 20755else 20756 ac_cv_header_stdc=no 20757fi 20758rm -f conftest* 20759 20760fi 20761 20762if test $ac_cv_header_stdc = yes; then 20763 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 20764 if test "$cross_compiling" = yes; then : 20765 : 20766else 20767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20768/* end confdefs.h. */ 20769#include <ctype.h> 20770#include <stdlib.h> 20771#if ((' ' & 0x0FF) == 0x020) 20772# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20773# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20774#else 20775# define ISLOWER(c) \ 20776 (('a' <= (c) && (c) <= 'i') \ 20777 || ('j' <= (c) && (c) <= 'r') \ 20778 || ('s' <= (c) && (c) <= 'z')) 20779# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20780#endif 20781 20782#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20783int 20784main () 20785{ 20786 int i; 20787 for (i = 0; i < 256; i++) 20788 if (XOR (islower (i), ISLOWER (i)) 20789 || toupper (i) != TOUPPER (i)) 20790 return 2; 20791 return 0; 20792} 20793_ACEOF 20794if ac_fn_c_try_run "$LINENO"; then : 20795 20796else 20797 ac_cv_header_stdc=no 20798fi 20799rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20800 conftest.$ac_objext conftest.beam conftest.$ac_ext 20801fi 20802 20803fi 20804fi 20805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 20806$as_echo "$ac_cv_header_stdc" >&6; } 20807if test $ac_cv_header_stdc = yes; then 20808 20809$as_echo "#define STDC_HEADERS 1" >>confdefs.h 20810 20811fi 20812 20813 20814 20815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 20816$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 20817if ${ac_cv_c_const+:} false; then : 20818 $as_echo_n "(cached) " >&6 20819else 20820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20821/* end confdefs.h. */ 20822 20823int 20824main () 20825{ 20826 20827#ifndef __cplusplus 20828 /* Ultrix mips cc rejects this sort of thing. */ 20829 typedef int charset[2]; 20830 const charset cs = { 0, 0 }; 20831 /* SunOS 4.1.1 cc rejects this. */ 20832 char const *const *pcpcc; 20833 char **ppc; 20834 /* NEC SVR4.0.2 mips cc rejects this. */ 20835 struct point {int x, y;}; 20836 static struct point const zero = {0,0}; 20837 /* AIX XL C 1.02.0.0 rejects this. 20838 It does not let you subtract one const X* pointer from another in 20839 an arm of an if-expression whose if-part is not a constant 20840 expression */ 20841 const char *g = "string"; 20842 pcpcc = &g + (g ? g-g : 0); 20843 /* HPUX 7.0 cc rejects these. */ 20844 ++pcpcc; 20845 ppc = (char**) pcpcc; 20846 pcpcc = (char const *const *) ppc; 20847 { /* SCO 3.2v4 cc rejects this sort of thing. */ 20848 char tx; 20849 char *t = &tx; 20850 char const *s = 0 ? (char *) 0 : (char const *) 0; 20851 20852 *t++ = 0; 20853 if (s) return 0; 20854 } 20855 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20856 int x[] = {25, 17}; 20857 const int *foo = &x[0]; 20858 ++foo; 20859 } 20860 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20861 typedef const int *iptr; 20862 iptr p = 0; 20863 ++p; 20864 } 20865 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 20866 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20867 struct s { int j; const int *ap[3]; } bx; 20868 struct s *b = &bx; b->j = 5; 20869 } 20870 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20871 const int foo = 10; 20872 if (!foo) return 0; 20873 } 20874 return !cs[0] && !zero.x; 20875#endif 20876 20877 ; 20878 return 0; 20879} 20880_ACEOF 20881if ac_fn_c_try_compile "$LINENO"; then : 20882 ac_cv_c_const=yes 20883else 20884 ac_cv_c_const=no 20885fi 20886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20887fi 20888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 20889$as_echo "$ac_cv_c_const" >&6; } 20890if test $ac_cv_c_const = no; then 20891 20892$as_echo "#define const /**/" >>confdefs.h 20893 20894fi 20895 20896 20897ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 20898if test "x$ac_cv_type_size_t" = xyes; then : 20899 20900else 20901 20902cat >>confdefs.h <<_ACEOF 20903#define size_t unsigned int 20904_ACEOF 20905 20906fi 20907 20908 20909 20910 20911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 20912$as_echo_n "checking for working memcmp... " >&6; } 20913if ${ac_cv_func_memcmp_working+:} false; then : 20914 $as_echo_n "(cached) " >&6 20915else 20916 if test "$cross_compiling" = yes; then : 20917 ac_cv_func_memcmp_working=no 20918else 20919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20920/* end confdefs.h. */ 20921$ac_includes_default 20922int 20923main () 20924{ 20925 20926 /* Some versions of memcmp are not 8-bit clean. */ 20927 char c0 = '\100', c1 = '\200', c2 = '\201'; 20928 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 20929 return 1; 20930 20931 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 20932 or more and with at least one buffer not starting on a 4-byte boundary. 20933 William Lewis provided this test program. */ 20934 { 20935 char foo[21]; 20936 char bar[21]; 20937 int i; 20938 for (i = 0; i < 4; i++) 20939 { 20940 char *a = foo + i; 20941 char *b = bar + i; 20942 strcpy (a, "--------01111111"); 20943 strcpy (b, "--------10000000"); 20944 if (memcmp (a, b, 16) >= 0) 20945 return 1; 20946 } 20947 return 0; 20948 } 20949 20950 ; 20951 return 0; 20952} 20953_ACEOF 20954if ac_fn_c_try_run "$LINENO"; then : 20955 ac_cv_func_memcmp_working=yes 20956else 20957 ac_cv_func_memcmp_working=no 20958fi 20959rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20960 conftest.$ac_objext conftest.beam conftest.$ac_ext 20961fi 20962 20963fi 20964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 20965$as_echo "$ac_cv_func_memcmp_working" >&6; } 20966test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 20967 *" memcmp.$ac_objext "* ) ;; 20968 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 20969 ;; 20970esac 20971 20972 20973 20974for ac_func in vprintf 20975do : 20976 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 20977if test "x$ac_cv_func_vprintf" = xyes; then : 20978 cat >>confdefs.h <<_ACEOF 20979#define HAVE_VPRINTF 1 20980_ACEOF 20981 20982ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 20983if test "x$ac_cv_func__doprnt" = xyes; then : 20984 20985$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 20986 20987fi 20988 20989fi 20990done 20991 20992 20993 20994for ac_func in symlink readlink 20995do : 20996 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20997ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20998if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20999 cat >>confdefs.h <<_ACEOF 21000#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21001_ACEOF 21002 21003fi 21004done 21005 21006 21007for ac_header in sys/utsname.h 21008do : 21009 ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default" 21010if test "x$ac_cv_header_sys_utsname_h" = xyes; then : 21011 cat >>confdefs.h <<_ACEOF 21012#define HAVE_SYS_UTSNAME_H 1 21013_ACEOF 21014 for ac_func in uname 21015do : 21016 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname" 21017if test "x$ac_cv_func_uname" = xyes; then : 21018 cat >>confdefs.h <<_ACEOF 21019#define HAVE_UNAME 1 21020_ACEOF 21021 21022fi 21023done 21024 21025fi 21026 21027done 21028 21029 21030ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" 21031if test "x$ac_cv_header_termios_h" = xyes; then : 21032 21033 for ac_func in tcgetattr tcsetattr 21034do : 21035 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21036ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21037if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 21038 cat >>confdefs.h <<_ACEOF 21039#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21040_ACEOF 21041 21042 21043$as_echo "#define HAVE_TERMIOS_H 1" >>confdefs.h 21044 21045 21046fi 21047done 21048 21049 21050fi 21051 21052 21053 21054 21055# Check whether --enable-debug was given. 21056if test "${enable_debug+set}" = set; then : 21057 enableval=$enable_debug; 21058 if test "$enableval" = "yes" ; then 21059 enable_debugging="yes" 21060 else 21061 enable_debugging="no" 21062 fi 21063 21064else 21065 21066 # Neither --enable-debug nor --disable-debug was passed. 21067 enable_debugging="maybe" 21068 21069fi 21070 21071 21072# Check whether --enable-optimize was given. 21073if test "${enable_optimize+set}" = set; then : 21074 enableval=$enable_optimize; 21075 if test "$enableval" = "yes" ; then 21076 enable_optimization="yes" 21077 else 21078 enable_optimization="no" 21079 fi 21080 21081else 21082 21083 # Neither --enable-optimize nor --disable-optimize was passed. 21084 enable_optimization="maybe" 21085 21086fi 21087 21088 21089# Check whether --enable-disallowing-of-undefined-references was given. 21090if test "${enable_disallowing_of_undefined_references+set}" = set; then : 21091 enableval=$enable_disallowing_of_undefined_references; 21092fi 21093 21094if test "$enable_disallowing_of_undefined_references" != "yes" && test "`uname`" != "Linux"; then 21095 enable_disallowing_of_undefined_references="no" 21096fi 21097if test "$enable_disallowing_of_undefined_references" != "no"; then 21098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-undefined" >&5 21099$as_echo_n "checking for -Wl,--no-undefined... " >&6; } 21100 old_LDFLAGS="$LDFLAGS" 21101 LDFLAGS="$LDFLAGS -Wl,--no-undefined" 21102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21103/* end confdefs.h. */ 21104int main(){;} 21105_ACEOF 21106if ac_fn_c_try_link "$LINENO"; then : 21107 svn_wl_no_undefined="yes" 21108else 21109 svn_wl_no_undefined="no" 21110fi 21111rm -f core conftest.err conftest.$ac_objext \ 21112 conftest$ac_exeext conftest.$ac_ext 21113 LDFLAGS="$old_LDFLAGS" 21114 if test "$svn_wl_no_undefined" = "yes"; then 21115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21116$as_echo "yes" >&6; } 21117 for library_dir in "$abs_srcdir/subversion/libsvn_"*; do 21118 eval "`basename $library_dir`_LDFLAGS=-Wl,--no-undefined" 21119 done 21120 shared_only_LDFLAGS="-Wl,--no-undefined" 21121 else 21122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21123$as_echo "no" >&6; } 21124 if test "$enable_disallowing_of_undefined_references" = "yes"; then 21125 as_fn_error $? "--enable-disallowing-of-undefined-references explicitly requested, but -Wl,--no-undefined not supported" "$LINENO" 5 21126 fi 21127 fi 21128fi 21129 21130 21131 21132 21133 21134 21135 21136 21137 21138 21139 21140 21141 21142 21143 21144 21145 21146# Check whether --enable-maintainer-mode was given. 21147if test "${enable_maintainer_mode+set}" = set; then : 21148 enableval=$enable_maintainer_mode; 21149 if test "$enableval" = "yes" ; then 21150 if test "$enable_debugging" = "no" ; then 21151 as_fn_error $? "Can't have --disable-debug and --enable-maintainer-mode" "$LINENO" 5 21152 fi 21153 enable_debugging=yes 21154 21155 if test "$GCC" = "yes"; then 21156 { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: adding GCC warning flags" >&5 21157$as_echo "$as_me: maintainer-mode: adding GCC warning flags" >&6;} 21158 21159 21160 CFLAGS_KEEP="$CFLAGS" 21161 CFLAGS="" 21162 21163 21164 _svn_xxflags__save="$CFLAGS" 21165 ac_ext=c 21166ac_cpp='$CPP $CPPFLAGS' 21167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21169ac_compiler_gnu=$ac_cv_c_compiler_gnu 21170 21171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=implicit-function-declaration" >&5 21172$as_echo_n "checking if $CC accepts -Werror=implicit-function-declaration... " >&6; } 21173 CFLAGS="-Werror=implicit-function-declaration $CFLAGS" 21174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21175/* end confdefs.h. */ 21176int main(void){return 0;} 21177_ACEOF 21178if ac_fn_c_try_link "$LINENO"; then : 21179 21180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21181$as_echo "yes" >&6; } 21182 21183 21184else 21185 21186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21187$as_echo "no" >&6; } 21188 CFLAGS="$_svn_xxflags__save" 21189 21190 21191fi 21192rm -f core conftest.err conftest.$ac_objext \ 21193 conftest$ac_exeext conftest.$ac_ext 21194 ac_ext=c 21195ac_cpp='$CPP $CPPFLAGS' 21196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21198ac_compiler_gnu=$ac_cv_c_compiler_gnu 21199 21200 21201 21202 _svn_xxflags__save="$CFLAGS" 21203 ac_ext=c 21204ac_cpp='$CPP $CPPFLAGS' 21205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21207ac_compiler_gnu=$ac_cv_c_compiler_gnu 21208 21209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=declaration-after-statement" >&5 21210$as_echo_n "checking if $CC accepts -Werror=declaration-after-statement... " >&6; } 21211 CFLAGS="-Werror=declaration-after-statement $CFLAGS" 21212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21213/* end confdefs.h. */ 21214int main(void){return 0;} 21215_ACEOF 21216if ac_fn_c_try_link "$LINENO"; then : 21217 21218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21219$as_echo "yes" >&6; } 21220 21221 21222else 21223 21224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21225$as_echo "no" >&6; } 21226 CFLAGS="$_svn_xxflags__save" 21227 21228 21229fi 21230rm -f core conftest.err conftest.$ac_objext \ 21231 conftest$ac_exeext conftest.$ac_ext 21232 ac_ext=c 21233ac_cpp='$CPP $CPPFLAGS' 21234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21236ac_compiler_gnu=$ac_cv_c_compiler_gnu 21237 21238 21239 21240 _svn_xxflags__save="$CFLAGS" 21241 ac_ext=c 21242ac_cpp='$CPP $CPPFLAGS' 21243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21245ac_compiler_gnu=$ac_cv_c_compiler_gnu 21246 21247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wextra-tokens" >&5 21248$as_echo_n "checking if $CC accepts -Wextra-tokens... " >&6; } 21249 CFLAGS="-Wextra-tokens $CFLAGS" 21250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21251/* end confdefs.h. */ 21252int main(void){return 0;} 21253_ACEOF 21254if ac_fn_c_try_link "$LINENO"; then : 21255 21256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21257$as_echo "yes" >&6; } 21258 21259 21260else 21261 21262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21263$as_echo "no" >&6; } 21264 CFLAGS="$_svn_xxflags__save" 21265 21266 21267fi 21268rm -f core conftest.err conftest.$ac_objext \ 21269 conftest$ac_exeext conftest.$ac_ext 21270 ac_ext=c 21271ac_cpp='$CPP $CPPFLAGS' 21272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21274ac_compiler_gnu=$ac_cv_c_compiler_gnu 21275 21276 21277 21278 _svn_xxflags__save="$CFLAGS" 21279 ac_ext=c 21280ac_cpp='$CPP $CPPFLAGS' 21281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21283ac_compiler_gnu=$ac_cv_c_compiler_gnu 21284 21285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wnewline-eof" >&5 21286$as_echo_n "checking if $CC accepts -Wnewline-eof... " >&6; } 21287 CFLAGS="-Wnewline-eof $CFLAGS" 21288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21289/* end confdefs.h. */ 21290int main(void){return 0;} 21291_ACEOF 21292if ac_fn_c_try_link "$LINENO"; then : 21293 21294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21295$as_echo "yes" >&6; } 21296 21297 21298else 21299 21300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21301$as_echo "no" >&6; } 21302 CFLAGS="$_svn_xxflags__save" 21303 21304 21305fi 21306rm -f core conftest.err conftest.$ac_objext \ 21307 conftest$ac_exeext conftest.$ac_ext 21308 ac_ext=c 21309ac_cpp='$CPP $CPPFLAGS' 21310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21312ac_compiler_gnu=$ac_cv_c_compiler_gnu 21313 21314 21315 21316 _svn_xxflags__save="$CFLAGS" 21317 ac_ext=c 21318ac_cpp='$CPP $CPPFLAGS' 21319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21321ac_compiler_gnu=$ac_cv_c_compiler_gnu 21322 21323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wshorten-64-to-32" >&5 21324$as_echo_n "checking if $CC accepts -Wshorten-64-to-32... " >&6; } 21325 CFLAGS="-Wshorten-64-to-32 $CFLAGS" 21326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21327/* end confdefs.h. */ 21328int main(void){return 0;} 21329_ACEOF 21330if ac_fn_c_try_link "$LINENO"; then : 21331 21332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21333$as_echo "yes" >&6; } 21334 21335 21336else 21337 21338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21339$as_echo "no" >&6; } 21340 CFLAGS="$_svn_xxflags__save" 21341 21342 21343fi 21344rm -f core conftest.err conftest.$ac_objext \ 21345 conftest$ac_exeext conftest.$ac_ext 21346 ac_ext=c 21347ac_cpp='$CPP $CPPFLAGS' 21348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21350ac_compiler_gnu=$ac_cv_c_compiler_gnu 21351 21352 21353 21354 _svn_xxflags__save="$CFLAGS" 21355 ac_ext=c 21356ac_cpp='$CPP $CPPFLAGS' 21357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21359ac_compiler_gnu=$ac_cv_c_compiler_gnu 21360 21361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wold-style-definition" >&5 21362$as_echo_n "checking if $CC accepts -Wold-style-definition... " >&6; } 21363 CFLAGS="-Wold-style-definition $CFLAGS" 21364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21365/* end confdefs.h. */ 21366int main(void){return 0;} 21367_ACEOF 21368if ac_fn_c_try_link "$LINENO"; then : 21369 21370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21371$as_echo "yes" >&6; } 21372 21373 21374else 21375 21376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21377$as_echo "no" >&6; } 21378 CFLAGS="$_svn_xxflags__save" 21379 21380 21381fi 21382rm -f core conftest.err conftest.$ac_objext \ 21383 conftest$ac_exeext conftest.$ac_ext 21384 ac_ext=c 21385ac_cpp='$CPP $CPPFLAGS' 21386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21388ac_compiler_gnu=$ac_cv_c_compiler_gnu 21389 21390 21391 21392 _svn_xxflags__save="$CFLAGS" 21393 ac_ext=c 21394ac_cpp='$CPP $CPPFLAGS' 21395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21397ac_compiler_gnu=$ac_cv_c_compiler_gnu 21398 21399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-system-headers" >&5 21400$as_echo_n "checking if $CC accepts -Wno-system-headers... " >&6; } 21401 CFLAGS="-Wno-system-headers $CFLAGS" 21402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21403/* end confdefs.h. */ 21404int main(void){return 0;} 21405_ACEOF 21406if ac_fn_c_try_link "$LINENO"; then : 21407 21408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21409$as_echo "yes" >&6; } 21410 21411 21412else 21413 21414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21415$as_echo "no" >&6; } 21416 CFLAGS="$_svn_xxflags__save" 21417 21418 21419fi 21420rm -f core conftest.err conftest.$ac_objext \ 21421 conftest$ac_exeext conftest.$ac_ext 21422 ac_ext=c 21423ac_cpp='$CPP $CPPFLAGS' 21424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21426ac_compiler_gnu=$ac_cv_c_compiler_gnu 21427 21428 21429 21430 _svn_xxflags__save="$CFLAGS" 21431 ac_ext=c 21432ac_cpp='$CPP $CPPFLAGS' 21433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21435ac_compiler_gnu=$ac_cv_c_compiler_gnu 21436 21437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-format-nonliteral" >&5 21438$as_echo_n "checking if $CC accepts -Wno-format-nonliteral... " >&6; } 21439 CFLAGS="-Wno-format-nonliteral $CFLAGS" 21440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21441/* end confdefs.h. */ 21442int main(void){return 0;} 21443_ACEOF 21444if ac_fn_c_try_link "$LINENO"; then : 21445 21446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21447$as_echo "yes" >&6; } 21448 21449 21450else 21451 21452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21453$as_echo "no" >&6; } 21454 CFLAGS="$_svn_xxflags__save" 21455 21456 21457fi 21458rm -f core conftest.err conftest.$ac_objext \ 21459 conftest$ac_exeext conftest.$ac_ext 21460 ac_ext=c 21461ac_cpp='$CPP $CPPFLAGS' 21462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21464ac_compiler_gnu=$ac_cv_c_compiler_gnu 21465 21466 21467 21468 _svn_xxflags__save="$CFLAGS" 21469 ac_ext=c 21470ac_cpp='$CPP $CPPFLAGS' 21471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21473ac_compiler_gnu=$ac_cv_c_compiler_gnu 21474 21475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wmissing-variable-declarations" >&5 21476$as_echo_n "checking if $CC accepts -Wmissing-variable-declarations... " >&6; } 21477 CFLAGS="-Wmissing-variable-declarations $CFLAGS" 21478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21479/* end confdefs.h. */ 21480int main(void){return 0;} 21481_ACEOF 21482if ac_fn_c_try_link "$LINENO"; then : 21483 21484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21485$as_echo "yes" >&6; } 21486 21487 21488else 21489 21490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21491$as_echo "no" >&6; } 21492 CFLAGS="$_svn_xxflags__save" 21493 21494 21495fi 21496rm -f core conftest.err conftest.$ac_objext \ 21497 conftest$ac_exeext conftest.$ac_ext 21498 ac_ext=c 21499ac_cpp='$CPP $CPPFLAGS' 21500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21502ac_compiler_gnu=$ac_cv_c_compiler_gnu 21503 21504 21505 21506 _svn_xxflags__save="$CFLAGS" 21507 ac_ext=c 21508ac_cpp='$CPP $CPPFLAGS' 21509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21511ac_compiler_gnu=$ac_cv_c_compiler_gnu 21512 21513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-unused-const-variable" >&5 21514$as_echo_n "checking if $CC accepts -Wno-unused-const-variable... " >&6; } 21515 CFLAGS="-Wno-unused-const-variable $CFLAGS" 21516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21517/* end confdefs.h. */ 21518int main(void){return 0;} 21519_ACEOF 21520if ac_fn_c_try_link "$LINENO"; then : 21521 21522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21523$as_echo "yes" >&6; } 21524 21525 21526else 21527 21528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21529$as_echo "no" >&6; } 21530 CFLAGS="$_svn_xxflags__save" 21531 21532 21533fi 21534rm -f core conftest.err conftest.$ac_objext \ 21535 conftest$ac_exeext conftest.$ac_ext 21536 ac_ext=c 21537ac_cpp='$CPP $CPPFLAGS' 21538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21540ac_compiler_gnu=$ac_cv_c_compiler_gnu 21541 21542 21543 21544 CMAINTAINERFLAGS="$CFLAGS" 21545 CFLAGS="$CFLAGS_KEEP" 21546 21547 CMAINTAINERFLAGS="-Wall -Wpointer-arith -Wwrite-strings -Wshadow -Wformat=2 -Wunused -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wno-multichar -Wredundant-decls -Wnested-externs -Winline -Wno-long-long -Wbad-function-cast $CMAINTAINERFLAGS" 21548 fi 21549 if test "$GXX" = "yes"; then 21550 { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: adding G++ warning flags" >&5 21551$as_echo "$as_me: maintainer-mode: adding G++ warning flags" >&6;} 21552 21553 CXXFLAGS_KEEP="$CXXFLAGS" 21554 CXXFLAGS="" 21555 21556 21557 _svn_xxflags__save="$CXXFLAGS" 21558 ac_ext=cpp 21559ac_cpp='$CXXCPP $CPPFLAGS' 21560ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21561ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21562ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21563 21564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wextra-tokens" >&5 21565$as_echo_n "checking if $CXX accepts -Wextra-tokens... " >&6; } 21566 CXXFLAGS="-Wextra-tokens $CXXFLAGS" 21567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21568/* end confdefs.h. */ 21569int main(){} 21570_ACEOF 21571if ac_fn_cxx_try_link "$LINENO"; then : 21572 21573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21574$as_echo "yes" >&6; } 21575 21576 21577else 21578 21579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21580$as_echo "no" >&6; } 21581 CXXFLAGS="$_svn_xxflags__save" 21582 21583 21584fi 21585rm -f core conftest.err conftest.$ac_objext \ 21586 conftest$ac_exeext conftest.$ac_ext 21587 ac_ext=c 21588ac_cpp='$CPP $CPPFLAGS' 21589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21591ac_compiler_gnu=$ac_cv_c_compiler_gnu 21592 21593 21594 21595 _svn_xxflags__save="$CXXFLAGS" 21596 ac_ext=cpp 21597ac_cpp='$CXXCPP $CPPFLAGS' 21598ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21599ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21600ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21601 21602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wnewline-eof" >&5 21603$as_echo_n "checking if $CXX accepts -Wnewline-eof... " >&6; } 21604 CXXFLAGS="-Wnewline-eof $CXXFLAGS" 21605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21606/* end confdefs.h. */ 21607int main(){} 21608_ACEOF 21609if ac_fn_cxx_try_link "$LINENO"; then : 21610 21611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21612$as_echo "yes" >&6; } 21613 21614 21615else 21616 21617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21618$as_echo "no" >&6; } 21619 CXXFLAGS="$_svn_xxflags__save" 21620 21621 21622fi 21623rm -f core conftest.err conftest.$ac_objext \ 21624 conftest$ac_exeext conftest.$ac_ext 21625 ac_ext=c 21626ac_cpp='$CPP $CPPFLAGS' 21627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21629ac_compiler_gnu=$ac_cv_c_compiler_gnu 21630 21631 21632 21633 _svn_xxflags__save="$CXXFLAGS" 21634 ac_ext=cpp 21635ac_cpp='$CXXCPP $CPPFLAGS' 21636ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21637ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21638ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21639 21640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wshorten-64-to-32" >&5 21641$as_echo_n "checking if $CXX accepts -Wshorten-64-to-32... " >&6; } 21642 CXXFLAGS="-Wshorten-64-to-32 $CXXFLAGS" 21643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21644/* end confdefs.h. */ 21645int main(){} 21646_ACEOF 21647if ac_fn_cxx_try_link "$LINENO"; then : 21648 21649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21650$as_echo "yes" >&6; } 21651 21652 21653else 21654 21655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21656$as_echo "no" >&6; } 21657 CXXFLAGS="$_svn_xxflags__save" 21658 21659 21660fi 21661rm -f core conftest.err conftest.$ac_objext \ 21662 conftest$ac_exeext conftest.$ac_ext 21663 ac_ext=c 21664ac_cpp='$CPP $CPPFLAGS' 21665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21667ac_compiler_gnu=$ac_cv_c_compiler_gnu 21668 21669 21670 21671 _svn_xxflags__save="$CXXFLAGS" 21672 ac_ext=cpp 21673ac_cpp='$CXXCPP $CPPFLAGS' 21674ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21675ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21676ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21677 21678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wno-system-headers" >&5 21679$as_echo_n "checking if $CXX accepts -Wno-system-headers... " >&6; } 21680 CXXFLAGS="-Wno-system-headers $CXXFLAGS" 21681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21682/* end confdefs.h. */ 21683int main(){} 21684_ACEOF 21685if ac_fn_cxx_try_link "$LINENO"; then : 21686 21687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21688$as_echo "yes" >&6; } 21689 21690 21691else 21692 21693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21694$as_echo "no" >&6; } 21695 CXXFLAGS="$_svn_xxflags__save" 21696 21697 21698fi 21699rm -f core conftest.err conftest.$ac_objext \ 21700 conftest$ac_exeext conftest.$ac_ext 21701 ac_ext=c 21702ac_cpp='$CPP $CPPFLAGS' 21703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21705ac_compiler_gnu=$ac_cv_c_compiler_gnu 21706 21707 21708 21709 CXXMAINTAINERFLAGS="$CXXFLAGS" 21710 CXXFLAGS="$CXXFLAGS_KEEP" 21711 21712 CXXMAINTAINERFLAGS="-Wall -Wpointer-arith -Wwrite-strings -Wshadow -Wunused -Wunreachable-code $CXXMAINTAINERFLAGS" 21713 fi 21714 fi 21715 21716fi 21717 21718 21719if test "$enable_debugging" = "yes" ; then 21720 if test "$enable_optimization" != "yes"; then 21721 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling optimizations for debugging" >&5 21722$as_echo "$as_me: Disabling optimizations for debugging" >&6;} 21723 CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`" 21724 CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`" 21725 fi 21726 if test -z "`echo $CUSERFLAGS' ' | $EGREP -- '-g[0-9]? '`"; then 21727 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling debugging for C" >&5 21728$as_echo "$as_me: Enabling debugging for C" >&6;} 21729 CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`" 21730 21731 _svn_xxflags__save="$CFLAGS" 21732 ac_ext=c 21733ac_cpp='$CPP $CPPFLAGS' 21734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21736ac_compiler_gnu=$ac_cv_c_compiler_gnu 21737 21738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-inline" >&5 21739$as_echo_n "checking if $CC accepts -fno-inline... " >&6; } 21740 CFLAGS="-fno-inline $CFLAGS" 21741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21742/* end confdefs.h. */ 21743int main(void){return 0;} 21744_ACEOF 21745if ac_fn_c_try_link "$LINENO"; then : 21746 21747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21748$as_echo "yes" >&6; } 21749 21750 21751else 21752 21753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21754$as_echo "no" >&6; } 21755 CFLAGS="$_svn_xxflags__save" 21756 21757 21758fi 21759rm -f core conftest.err conftest.$ac_objext \ 21760 conftest$ac_exeext conftest.$ac_ext 21761 ac_ext=c 21762ac_cpp='$CPP $CPPFLAGS' 21763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21765ac_compiler_gnu=$ac_cv_c_compiler_gnu 21766 21767 21768 21769 _svn_xxflags__save="$CFLAGS" 21770 ac_ext=c 21771ac_cpp='$CPP $CPPFLAGS' 21772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21774ac_compiler_gnu=$ac_cv_c_compiler_gnu 21775 21776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-omit-frame-pointer" >&5 21777$as_echo_n "checking if $CC accepts -fno-omit-frame-pointer... " >&6; } 21778 CFLAGS="-fno-omit-frame-pointer $CFLAGS" 21779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21780/* end confdefs.h. */ 21781int main(void){return 0;} 21782_ACEOF 21783if ac_fn_c_try_link "$LINENO"; then : 21784 21785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21786$as_echo "yes" >&6; } 21787 21788 21789else 21790 21791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21792$as_echo "no" >&6; } 21793 CFLAGS="$_svn_xxflags__save" 21794 21795 21796fi 21797rm -f core conftest.err conftest.$ac_objext \ 21798 conftest$ac_exeext conftest.$ac_ext 21799 ac_ext=c 21800ac_cpp='$CPP $CPPFLAGS' 21801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21803ac_compiler_gnu=$ac_cv_c_compiler_gnu 21804 21805 21806 21807 _svn_xxflags__save="$CFLAGS" 21808 ac_ext=c 21809ac_cpp='$CPP $CPPFLAGS' 21810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21812ac_compiler_gnu=$ac_cv_c_compiler_gnu 21813 21814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g3" >&5 21815$as_echo_n "checking if $CC accepts -g3... " >&6; } 21816 CFLAGS="-g3 $CFLAGS" 21817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21818/* end confdefs.h. */ 21819int main(void){return 0;} 21820_ACEOF 21821if ac_fn_c_try_link "$LINENO"; then : 21822 21823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21824$as_echo "yes" >&6; } 21825 21826 21827else 21828 21829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21830$as_echo "no" >&6; } 21831 CFLAGS="$_svn_xxflags__save" 21832 21833 21834 _svn_xxflags__save="$CFLAGS" 21835 ac_ext=c 21836ac_cpp='$CPP $CPPFLAGS' 21837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21839ac_compiler_gnu=$ac_cv_c_compiler_gnu 21840 21841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g2" >&5 21842$as_echo_n "checking if $CC accepts -g2... " >&6; } 21843 CFLAGS="-g2 $CFLAGS" 21844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21845/* end confdefs.h. */ 21846int main(void){return 0;} 21847_ACEOF 21848if ac_fn_c_try_link "$LINENO"; then : 21849 21850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21851$as_echo "yes" >&6; } 21852 21853 21854else 21855 21856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21857$as_echo "no" >&6; } 21858 CFLAGS="$_svn_xxflags__save" 21859 21860 21861 _svn_xxflags__save="$CFLAGS" 21862 ac_ext=c 21863ac_cpp='$CPP $CPPFLAGS' 21864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21866ac_compiler_gnu=$ac_cv_c_compiler_gnu 21867 21868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g" >&5 21869$as_echo_n "checking if $CC accepts -g... " >&6; } 21870 CFLAGS="-g $CFLAGS" 21871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21872/* end confdefs.h. */ 21873int main(void){return 0;} 21874_ACEOF 21875if ac_fn_c_try_link "$LINENO"; then : 21876 21877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21878$as_echo "yes" >&6; } 21879 21880 21881else 21882 21883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21884$as_echo "no" >&6; } 21885 CFLAGS="$_svn_xxflags__save" 21886 21887 21888fi 21889rm -f core conftest.err conftest.$ac_objext \ 21890 conftest$ac_exeext conftest.$ac_ext 21891 ac_ext=c 21892ac_cpp='$CPP $CPPFLAGS' 21893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21895ac_compiler_gnu=$ac_cv_c_compiler_gnu 21896 21897 21898 21899fi 21900rm -f core conftest.err conftest.$ac_objext \ 21901 conftest$ac_exeext conftest.$ac_ext 21902 ac_ext=c 21903ac_cpp='$CPP $CPPFLAGS' 21904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21906ac_compiler_gnu=$ac_cv_c_compiler_gnu 21907 21908 21909 21910fi 21911rm -f core conftest.err conftest.$ac_objext \ 21912 conftest$ac_exeext conftest.$ac_ext 21913 ac_ext=c 21914ac_cpp='$CPP $CPPFLAGS' 21915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21917ac_compiler_gnu=$ac_cv_c_compiler_gnu 21918 21919 21920 fi 21921 if test -z "`echo $CXXUSERFLAGS' ' | $EGREP -- '-g[0-9]? '`"; then 21922 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling debugging for C++" >&5 21923$as_echo "$as_me: Enabling debugging for C++" >&6;} 21924 CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`" 21925 21926 _svn_xxflags__save="$CXXFLAGS" 21927 ac_ext=cpp 21928ac_cpp='$CXXCPP $CPPFLAGS' 21929ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21930ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21931ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21932 21933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fno-inline" >&5 21934$as_echo_n "checking if $CXX accepts -fno-inline... " >&6; } 21935 CXXFLAGS="-fno-inline $CXXFLAGS" 21936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21937/* end confdefs.h. */ 21938int main(){} 21939_ACEOF 21940if ac_fn_cxx_try_link "$LINENO"; then : 21941 21942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21943$as_echo "yes" >&6; } 21944 21945 21946else 21947 21948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21949$as_echo "no" >&6; } 21950 CXXFLAGS="$_svn_xxflags__save" 21951 21952 21953fi 21954rm -f core conftest.err conftest.$ac_objext \ 21955 conftest$ac_exeext conftest.$ac_ext 21956 ac_ext=c 21957ac_cpp='$CPP $CPPFLAGS' 21958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21960ac_compiler_gnu=$ac_cv_c_compiler_gnu 21961 21962 21963 21964 _svn_xxflags__save="$CXXFLAGS" 21965 ac_ext=cpp 21966ac_cpp='$CXXCPP $CPPFLAGS' 21967ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21968ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21969ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21970 21971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fno-omit-frame-pointer" >&5 21972$as_echo_n "checking if $CXX accepts -fno-omit-frame-pointer... " >&6; } 21973 CXXFLAGS="-fno-omit-frame-pointer $CXXFLAGS" 21974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21975/* end confdefs.h. */ 21976int main(){} 21977_ACEOF 21978if ac_fn_cxx_try_link "$LINENO"; then : 21979 21980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21981$as_echo "yes" >&6; } 21982 21983 21984else 21985 21986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21987$as_echo "no" >&6; } 21988 CXXFLAGS="$_svn_xxflags__save" 21989 21990 21991fi 21992rm -f core conftest.err conftest.$ac_objext \ 21993 conftest$ac_exeext conftest.$ac_ext 21994 ac_ext=c 21995ac_cpp='$CPP $CPPFLAGS' 21996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21998ac_compiler_gnu=$ac_cv_c_compiler_gnu 21999 22000 22001 22002 _svn_xxflags__save="$CXXFLAGS" 22003 ac_ext=cpp 22004ac_cpp='$CXXCPP $CPPFLAGS' 22005ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22006ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22007ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22008 22009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g3" >&5 22010$as_echo_n "checking if $CXX accepts -g3... " >&6; } 22011 CXXFLAGS="-g3 $CXXFLAGS" 22012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22013/* end confdefs.h. */ 22014int main(){} 22015_ACEOF 22016if ac_fn_cxx_try_link "$LINENO"; then : 22017 22018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22019$as_echo "yes" >&6; } 22020 22021 22022else 22023 22024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22025$as_echo "no" >&6; } 22026 CXXFLAGS="$_svn_xxflags__save" 22027 22028 22029 _svn_xxflags__save="$CXXFLAGS" 22030 ac_ext=cpp 22031ac_cpp='$CXXCPP $CPPFLAGS' 22032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22035 22036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g2" >&5 22037$as_echo_n "checking if $CXX accepts -g2... " >&6; } 22038 CXXFLAGS="-g2 $CXXFLAGS" 22039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22040/* end confdefs.h. */ 22041int main(){} 22042_ACEOF 22043if ac_fn_cxx_try_link "$LINENO"; then : 22044 22045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22046$as_echo "yes" >&6; } 22047 22048 22049else 22050 22051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22052$as_echo "no" >&6; } 22053 CXXFLAGS="$_svn_xxflags__save" 22054 22055 22056 _svn_xxflags__save="$CXXFLAGS" 22057 ac_ext=cpp 22058ac_cpp='$CXXCPP $CPPFLAGS' 22059ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22060ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22061ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22062 22063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g" >&5 22064$as_echo_n "checking if $CXX accepts -g... " >&6; } 22065 CXXFLAGS="-g $CXXFLAGS" 22066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22067/* end confdefs.h. */ 22068int main(){} 22069_ACEOF 22070if ac_fn_cxx_try_link "$LINENO"; then : 22071 22072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22073$as_echo "yes" >&6; } 22074 22075 22076else 22077 22078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22079$as_echo "no" >&6; } 22080 CXXFLAGS="$_svn_xxflags__save" 22081 22082 22083fi 22084rm -f core conftest.err conftest.$ac_objext \ 22085 conftest$ac_exeext conftest.$ac_ext 22086 ac_ext=cpp 22087ac_cpp='$CXXCPP $CPPFLAGS' 22088ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22089ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22090ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22091 22092 22093 22094fi 22095rm -f core conftest.err conftest.$ac_objext \ 22096 conftest$ac_exeext conftest.$ac_ext 22097 ac_ext=cpp 22098ac_cpp='$CXXCPP $CPPFLAGS' 22099ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22100ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22101ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22102 22103 22104 22105fi 22106rm -f core conftest.err conftest.$ac_objext \ 22107 conftest$ac_exeext conftest.$ac_ext 22108 ac_ext=c 22109ac_cpp='$CPP $CPPFLAGS' 22110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22112ac_compiler_gnu=$ac_cv_c_compiler_gnu 22113 22114 22115 fi 22116 CFLAGS="$CFLAGS -DSVN_DEBUG -DAP_DEBUG" 22117 CXXFLAGS="$CXXFLAGS -DSVN_DEBUG -DAP_DEBUG" 22118elif test "$enable_debugging" = "no" ; then 22119 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling debugging" >&5 22120$as_echo "$as_me: Disabling debugging" >&6;} 22121 CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`" 22122 CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`" 22123 CFLAGS="$CFLAGS -DNDEBUG" 22124 CXXFLAGS="$CXXFLAGS -DNDEBUG" 22125# elif test "$enable_debugging" = "maybe" ; then 22126# # do nothing 22127fi 22128 22129if test "$enable_optimization" = "yes"; then 22130 if test -z "`echo $CUSERFLAGS' ' | $EGREP -- '-O[^ ]* '`"; then 22131 CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`" 22132 if test "$enable_debugging" = "yes"; then 22133 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C (with debugging enabled)" >&5 22134$as_echo "$as_me: Enabling optimizations for C (with debugging enabled)" >&6;} 22135 22136 _svn_xxflags__save="$CFLAGS" 22137 ac_ext=c 22138ac_cpp='$CPP $CPPFLAGS' 22139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22141ac_compiler_gnu=$ac_cv_c_compiler_gnu 22142 22143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O1" >&5 22144$as_echo_n "checking if $CC accepts -O1... " >&6; } 22145 CFLAGS="-O1 $CFLAGS" 22146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22147/* end confdefs.h. */ 22148int main(void){return 0;} 22149_ACEOF 22150if ac_fn_c_try_link "$LINENO"; then : 22151 22152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22153$as_echo "yes" >&6; } 22154 22155 22156else 22157 22158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22159$as_echo "no" >&6; } 22160 CFLAGS="$_svn_xxflags__save" 22161 22162 22163 _svn_xxflags__save="$CFLAGS" 22164 ac_ext=c 22165ac_cpp='$CPP $CPPFLAGS' 22166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22168ac_compiler_gnu=$ac_cv_c_compiler_gnu 22169 22170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5 22171$as_echo_n "checking if $CC accepts -O... " >&6; } 22172 CFLAGS="-O $CFLAGS" 22173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22174/* end confdefs.h. */ 22175int main(void){return 0;} 22176_ACEOF 22177if ac_fn_c_try_link "$LINENO"; then : 22178 22179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22180$as_echo "yes" >&6; } 22181 22182 22183else 22184 22185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22186$as_echo "no" >&6; } 22187 CFLAGS="$_svn_xxflags__save" 22188 22189 22190fi 22191rm -f core conftest.err conftest.$ac_objext \ 22192 conftest$ac_exeext conftest.$ac_ext 22193 ac_ext=c 22194ac_cpp='$CPP $CPPFLAGS' 22195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22197ac_compiler_gnu=$ac_cv_c_compiler_gnu 22198 22199 22200 22201fi 22202rm -f core conftest.err conftest.$ac_objext \ 22203 conftest$ac_exeext conftest.$ac_ext 22204 ac_ext=c 22205ac_cpp='$CPP $CPPFLAGS' 22206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22208ac_compiler_gnu=$ac_cv_c_compiler_gnu 22209 22210 22211 else 22212 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C" >&5 22213$as_echo "$as_me: Enabling optimizations for C" >&6;} 22214 22215 _svn_xxflags__save="$CFLAGS" 22216 ac_ext=c 22217ac_cpp='$CPP $CPPFLAGS' 22218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22220ac_compiler_gnu=$ac_cv_c_compiler_gnu 22221 22222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O3" >&5 22223$as_echo_n "checking if $CC accepts -O3... " >&6; } 22224 CFLAGS="-O3 $CFLAGS" 22225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22226/* end confdefs.h. */ 22227int main(void){return 0;} 22228_ACEOF 22229if ac_fn_c_try_link "$LINENO"; then : 22230 22231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22232$as_echo "yes" >&6; } 22233 22234 22235else 22236 22237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22238$as_echo "no" >&6; } 22239 CFLAGS="$_svn_xxflags__save" 22240 22241 22242 _svn_xxflags__save="$CFLAGS" 22243 ac_ext=c 22244ac_cpp='$CPP $CPPFLAGS' 22245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22247ac_compiler_gnu=$ac_cv_c_compiler_gnu 22248 22249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O2" >&5 22250$as_echo_n "checking if $CC accepts -O2... " >&6; } 22251 CFLAGS="-O2 $CFLAGS" 22252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22253/* end confdefs.h. */ 22254int main(void){return 0;} 22255_ACEOF 22256if ac_fn_c_try_link "$LINENO"; then : 22257 22258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22259$as_echo "yes" >&6; } 22260 22261 22262else 22263 22264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22265$as_echo "no" >&6; } 22266 CFLAGS="$_svn_xxflags__save" 22267 22268 22269 _svn_xxflags__save="$CFLAGS" 22270 ac_ext=c 22271ac_cpp='$CPP $CPPFLAGS' 22272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22274ac_compiler_gnu=$ac_cv_c_compiler_gnu 22275 22276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O1" >&5 22277$as_echo_n "checking if $CC accepts -O1... " >&6; } 22278 CFLAGS="-O1 $CFLAGS" 22279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22280/* end confdefs.h. */ 22281int main(void){return 0;} 22282_ACEOF 22283if ac_fn_c_try_link "$LINENO"; then : 22284 22285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22286$as_echo "yes" >&6; } 22287 22288 22289else 22290 22291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22292$as_echo "no" >&6; } 22293 CFLAGS="$_svn_xxflags__save" 22294 22295 22296 _svn_xxflags__save="$CFLAGS" 22297 ac_ext=c 22298ac_cpp='$CPP $CPPFLAGS' 22299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22301ac_compiler_gnu=$ac_cv_c_compiler_gnu 22302 22303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5 22304$as_echo_n "checking if $CC accepts -O... " >&6; } 22305 CFLAGS="-O $CFLAGS" 22306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22307/* end confdefs.h. */ 22308int main(void){return 0;} 22309_ACEOF 22310if ac_fn_c_try_link "$LINENO"; then : 22311 22312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22313$as_echo "yes" >&6; } 22314 22315 22316else 22317 22318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22319$as_echo "no" >&6; } 22320 CFLAGS="$_svn_xxflags__save" 22321 22322 22323fi 22324rm -f core conftest.err conftest.$ac_objext \ 22325 conftest$ac_exeext conftest.$ac_ext 22326 ac_ext=c 22327ac_cpp='$CPP $CPPFLAGS' 22328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22330ac_compiler_gnu=$ac_cv_c_compiler_gnu 22331 22332 22333 22334fi 22335rm -f core conftest.err conftest.$ac_objext \ 22336 conftest$ac_exeext conftest.$ac_ext 22337 ac_ext=c 22338ac_cpp='$CPP $CPPFLAGS' 22339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22341ac_compiler_gnu=$ac_cv_c_compiler_gnu 22342 22343 22344 22345fi 22346rm -f core conftest.err conftest.$ac_objext \ 22347 conftest$ac_exeext conftest.$ac_ext 22348 ac_ext=c 22349ac_cpp='$CPP $CPPFLAGS' 22350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22352ac_compiler_gnu=$ac_cv_c_compiler_gnu 22353 22354 22355 22356fi 22357rm -f core conftest.err conftest.$ac_objext \ 22358 conftest$ac_exeext conftest.$ac_ext 22359 ac_ext=c 22360ac_cpp='$CPP $CPPFLAGS' 22361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22363ac_compiler_gnu=$ac_cv_c_compiler_gnu 22364 22365 22366 22367 _svn_xxflags__save="$CFLAGS" 22368 ac_ext=c 22369ac_cpp='$CPP $CPPFLAGS' 22370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22372ac_compiler_gnu=$ac_cv_c_compiler_gnu 22373 22374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-clobbered" >&5 22375$as_echo_n "checking if $CC accepts -Wno-clobbered... " >&6; } 22376 CFLAGS="-Wno-clobbered $CFLAGS" 22377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22378/* end confdefs.h. */ 22379int main(void){return 0;} 22380_ACEOF 22381if ac_fn_c_try_link "$LINENO"; then : 22382 22383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22384$as_echo "yes" >&6; } 22385 22386 22387else 22388 22389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22390$as_echo "no" >&6; } 22391 CFLAGS="$_svn_xxflags__save" 22392 22393 22394fi 22395rm -f core conftest.err conftest.$ac_objext \ 22396 conftest$ac_exeext conftest.$ac_ext 22397 ac_ext=c 22398ac_cpp='$CPP $CPPFLAGS' 22399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22401ac_compiler_gnu=$ac_cv_c_compiler_gnu 22402 22403 22404 22405 _svn_xxflags__save="$CFLAGS" 22406 ac_ext=c 22407ac_cpp='$CPP $CPPFLAGS' 22408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22410ac_compiler_gnu=$ac_cv_c_compiler_gnu 22411 22412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -flto" >&5 22413$as_echo_n "checking if $CC accepts -flto... " >&6; } 22414 CFLAGS="-flto $CFLAGS" 22415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22416/* end confdefs.h. */ 22417int main(void){return 0;} 22418_ACEOF 22419if ac_fn_c_try_link "$LINENO"; then : 22420 22421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22422$as_echo "yes" >&6; } 22423 22424 22425else 22426 22427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22428$as_echo "no" >&6; } 22429 CFLAGS="$_svn_xxflags__save" 22430 22431 22432fi 22433rm -f core conftest.err conftest.$ac_objext \ 22434 conftest$ac_exeext conftest.$ac_ext 22435 ac_ext=c 22436ac_cpp='$CPP $CPPFLAGS' 22437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22439ac_compiler_gnu=$ac_cv_c_compiler_gnu 22440 22441 22442 fi 22443 fi 22444 if test -z "`echo $CXXUSERFLAGS' ' | $EGREP -- '-O[^ ]* '`"; then 22445 CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`" 22446 if test "$enable_debugging" = "yes"; then 22447 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C++ (with debugging enabled)" >&5 22448$as_echo "$as_me: Enabling optimizations for C++ (with debugging enabled)" >&6;} 22449 22450 _svn_xxflags__save="$CXXFLAGS" 22451 ac_ext=cpp 22452ac_cpp='$CXXCPP $CPPFLAGS' 22453ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22454ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22455ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22456 22457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O1" >&5 22458$as_echo_n "checking if $CXX accepts -O1... " >&6; } 22459 CXXFLAGS="-O1 $CXXFLAGS" 22460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22461/* end confdefs.h. */ 22462int main(){} 22463_ACEOF 22464if ac_fn_cxx_try_link "$LINENO"; then : 22465 22466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22467$as_echo "yes" >&6; } 22468 22469 22470else 22471 22472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22473$as_echo "no" >&6; } 22474 CXXFLAGS="$_svn_xxflags__save" 22475 22476 22477 _svn_xxflags__save="$CXXFLAGS" 22478 ac_ext=cpp 22479ac_cpp='$CXXCPP $CPPFLAGS' 22480ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22481ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22482ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22483 22484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O" >&5 22485$as_echo_n "checking if $CXX accepts -O... " >&6; } 22486 CXXFLAGS="-O $CXXFLAGS" 22487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22488/* end confdefs.h. */ 22489int main(){} 22490_ACEOF 22491if ac_fn_cxx_try_link "$LINENO"; then : 22492 22493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22494$as_echo "yes" >&6; } 22495 22496 22497else 22498 22499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22500$as_echo "no" >&6; } 22501 CXXFLAGS="$_svn_xxflags__save" 22502 22503 22504fi 22505rm -f core conftest.err conftest.$ac_objext \ 22506 conftest$ac_exeext conftest.$ac_ext 22507 ac_ext=cpp 22508ac_cpp='$CXXCPP $CPPFLAGS' 22509ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22510ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22511ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22512 22513 22514 22515fi 22516rm -f core conftest.err conftest.$ac_objext \ 22517 conftest$ac_exeext conftest.$ac_ext 22518 ac_ext=c 22519ac_cpp='$CPP $CPPFLAGS' 22520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22522ac_compiler_gnu=$ac_cv_c_compiler_gnu 22523 22524 22525 else 22526 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C++" >&5 22527$as_echo "$as_me: Enabling optimizations for C++" >&6;} 22528 22529 _svn_xxflags__save="$CXXFLAGS" 22530 ac_ext=cpp 22531ac_cpp='$CXXCPP $CPPFLAGS' 22532ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22533ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22534ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22535 22536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O3" >&5 22537$as_echo_n "checking if $CXX accepts -O3... " >&6; } 22538 CXXFLAGS="-O3 $CXXFLAGS" 22539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22540/* end confdefs.h. */ 22541int main(){} 22542_ACEOF 22543if ac_fn_cxx_try_link "$LINENO"; then : 22544 22545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22546$as_echo "yes" >&6; } 22547 22548 22549else 22550 22551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22552$as_echo "no" >&6; } 22553 CXXFLAGS="$_svn_xxflags__save" 22554 22555 22556 _svn_xxflags__save="$CXXFLAGS" 22557 ac_ext=cpp 22558ac_cpp='$CXXCPP $CPPFLAGS' 22559ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22560ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22561ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22562 22563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O2" >&5 22564$as_echo_n "checking if $CXX accepts -O2... " >&6; } 22565 CXXFLAGS="-O2 $CXXFLAGS" 22566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22567/* end confdefs.h. */ 22568int main(){} 22569_ACEOF 22570if ac_fn_cxx_try_link "$LINENO"; then : 22571 22572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22573$as_echo "yes" >&6; } 22574 22575 22576else 22577 22578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22579$as_echo "no" >&6; } 22580 CXXFLAGS="$_svn_xxflags__save" 22581 22582 22583 _svn_xxflags__save="$CXXFLAGS" 22584 ac_ext=cpp 22585ac_cpp='$CXXCPP $CPPFLAGS' 22586ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22587ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22588ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22589 22590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O1" >&5 22591$as_echo_n "checking if $CXX accepts -O1... " >&6; } 22592 CXXFLAGS="-O1 $CXXFLAGS" 22593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22594/* end confdefs.h. */ 22595int main(){} 22596_ACEOF 22597if ac_fn_cxx_try_link "$LINENO"; then : 22598 22599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22600$as_echo "yes" >&6; } 22601 22602 22603else 22604 22605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22606$as_echo "no" >&6; } 22607 CXXFLAGS="$_svn_xxflags__save" 22608 22609 22610 _svn_xxflags__save="$CXXFLAGS" 22611 ac_ext=cpp 22612ac_cpp='$CXXCPP $CPPFLAGS' 22613ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22614ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22615ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22616 22617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O" >&5 22618$as_echo_n "checking if $CXX accepts -O... " >&6; } 22619 CXXFLAGS="-O $CXXFLAGS" 22620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22621/* end confdefs.h. */ 22622int main(){} 22623_ACEOF 22624if ac_fn_cxx_try_link "$LINENO"; then : 22625 22626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22627$as_echo "yes" >&6; } 22628 22629 22630else 22631 22632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22633$as_echo "no" >&6; } 22634 CXXFLAGS="$_svn_xxflags__save" 22635 22636 22637fi 22638rm -f core conftest.err conftest.$ac_objext \ 22639 conftest$ac_exeext conftest.$ac_ext 22640 ac_ext=cpp 22641ac_cpp='$CXXCPP $CPPFLAGS' 22642ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22643ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22644ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22645 22646 22647 22648fi 22649rm -f core conftest.err conftest.$ac_objext \ 22650 conftest$ac_exeext conftest.$ac_ext 22651 ac_ext=cpp 22652ac_cpp='$CXXCPP $CPPFLAGS' 22653ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22654ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22655ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22656 22657 22658 22659fi 22660rm -f core conftest.err conftest.$ac_objext \ 22661 conftest$ac_exeext conftest.$ac_ext 22662 ac_ext=cpp 22663ac_cpp='$CXXCPP $CPPFLAGS' 22664ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22665ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22666ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22667 22668 22669 22670fi 22671rm -f core conftest.err conftest.$ac_objext \ 22672 conftest$ac_exeext conftest.$ac_ext 22673 ac_ext=c 22674ac_cpp='$CPP $CPPFLAGS' 22675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22677ac_compiler_gnu=$ac_cv_c_compiler_gnu 22678 22679 22680 22681 _svn_xxflags__save="$CXXFLAGS" 22682 ac_ext=cpp 22683ac_cpp='$CXXCPP $CPPFLAGS' 22684ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22685ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22686ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22687 22688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wno-clobbered" >&5 22689$as_echo_n "checking if $CXX accepts -Wno-clobbered... " >&6; } 22690 CXXFLAGS="-Wno-clobbered $CXXFLAGS" 22691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22692/* end confdefs.h. */ 22693int main(){} 22694_ACEOF 22695if ac_fn_cxx_try_link "$LINENO"; then : 22696 22697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22698$as_echo "yes" >&6; } 22699 22700 22701else 22702 22703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22704$as_echo "no" >&6; } 22705 CXXFLAGS="$_svn_xxflags__save" 22706 22707 22708fi 22709rm -f core conftest.err conftest.$ac_objext \ 22710 conftest$ac_exeext conftest.$ac_ext 22711 ac_ext=c 22712ac_cpp='$CPP $CPPFLAGS' 22713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22715ac_compiler_gnu=$ac_cv_c_compiler_gnu 22716 22717 22718 22719 _svn_xxflags__save="$CXXFLAGS" 22720 ac_ext=cpp 22721ac_cpp='$CXXCPP $CPPFLAGS' 22722ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22723ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22724ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22725 22726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -flto" >&5 22727$as_echo_n "checking if $CXX accepts -flto... " >&6; } 22728 CXXFLAGS="-flto $CXXFLAGS" 22729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22730/* end confdefs.h. */ 22731int main(){} 22732_ACEOF 22733if ac_fn_cxx_try_link "$LINENO"; then : 22734 22735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22736$as_echo "yes" >&6; } 22737 22738 22739else 22740 22741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22742$as_echo "no" >&6; } 22743 CXXFLAGS="$_svn_xxflags__save" 22744 22745 22746fi 22747rm -f core conftest.err conftest.$ac_objext \ 22748 conftest$ac_exeext conftest.$ac_ext 22749 ac_ext=c 22750ac_cpp='$CPP $CPPFLAGS' 22751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22753ac_compiler_gnu=$ac_cv_c_compiler_gnu 22754 22755 22756 fi 22757 fi 22758elif test "$enable_optimization" = "no"; then 22759 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling optimizations" >&5 22760$as_echo "$as_me: Disabling optimizations" >&6;} 22761 CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`" 22762 CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`" 22763# elif test "$enable_optimization" = "maybe" ; then 22764# # do nothing 22765fi 22766 22767{ $as_echo "$as_me:${as_lineno-$LINENO}: C compiler flags: $CFLAGS" >&5 22768$as_echo "$as_me: C compiler flags: $CFLAGS" >&6;} 22769{ $as_echo "$as_me:${as_lineno-$LINENO}: user-defined: $CUSERFLAGS" >&5 22770$as_echo "$as_me: user-defined: $CUSERFLAGS" >&6;} 22771{ $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: $CMAINTAINERFLAGS" >&5 22772$as_echo "$as_me: maintainer-mode: $CMAINTAINERFLAGS" >&6;} 22773{ $as_echo "$as_me:${as_lineno-$LINENO}: C++ compiler flags: $CXXFLAGS" >&5 22774$as_echo "$as_me: C++ compiler flags: $CXXFLAGS" >&6;} 22775{ $as_echo "$as_me:${as_lineno-$LINENO}: user-defined: $CXXUSERFLAGS" >&5 22776$as_echo "$as_me: user-defined: $CXXUSERFLAGS" >&6;} 22777{ $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: $CXXMAINTAINERFLAGS" >&5 22778$as_echo "$as_me: maintainer-mode: $CXXMAINTAINERFLAGS" >&6;} 22779 22780# Check whether --enable-full-version-match was given. 22781if test "${enable_full_version_match+set}" = set; then : 22782 enableval=$enable_full_version_match; 22783 if test "$enableval" = "no" ; then 22784 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling svn full version matching" >&5 22785$as_echo "$as_me: Disabling svn full version matching" >&6;} 22786 22787$as_echo "#define SVN_DISABLE_FULL_VERSION_MATCH 1" >>confdefs.h 22788 22789 fi 22790 22791fi 22792 22793 22794 22795# Check whether --with-editor was given. 22796if test "${with_editor+set}" = set; then : 22797 withval=$with_editor; 22798 22799 if test "$withval" = "yes" ; then 22800 as_fn_error $? "--with-editor requires an argument." "$LINENO" 5 22801 else 22802 SVN_CLIENT_EDITOR=$withval 22803 22804cat >>confdefs.h <<_ACEOF 22805#define SVN_CLIENT_EDITOR "$SVN_CLIENT_EDITOR" 22806_ACEOF 22807 22808 22809 fi 22810 22811 22812fi 22813 22814 22815 22816 zlib_found=no 22817 zlib_skip=no 22818 22819 22820# Check whether --with-zlib was given. 22821if test "${with_zlib+set}" = set; then : 22822 withval=$with_zlib; 22823 if test "$withval" = "yes"; then 22824 zlib_skip=no 22825 elif test "$withval" = "no"; then 22826 zlib_skip=yes 22827 else 22828 zlib_skip=no 22829 zlib_prefix="$withval" 22830 fi 22831 22832fi 22833 22834 22835 if test "$zlib_skip" = "yes"; then 22836 as_fn_error $? "subversion requires zlib" "$LINENO" 5 22837 fi 22838 22839 if test -n "$zlib_prefix"; then 22840 { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library configuration via prefix" >&5 22841$as_echo "$as_me: zlib library configuration via prefix" >&6;} 22842 save_cppflags="$CPPFLAGS" 22843 CPPFLAGS="$CPPFLAGS -I$zlib_prefix/include" 22844 for ac_header in zlib.h 22845do : 22846 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 22847if test "x$ac_cv_header_zlib_h" = xyes; then : 22848 cat >>confdefs.h <<_ACEOF 22849#define HAVE_ZLIB_H 1 22850_ACEOF 22851 22852 save_ldflags="$LDFLAGS" 22853 LDFLAGS="$LDFLAGS -L$zlib_prefix/lib" 22854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 22855$as_echo_n "checking for inflate in -lz... " >&6; } 22856if ${ac_cv_lib_z_inflate+:} false; then : 22857 $as_echo_n "(cached) " >&6 22858else 22859 ac_check_lib_save_LIBS=$LIBS 22860LIBS="-lz $LIBS" 22861cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22862/* end confdefs.h. */ 22863 22864/* Override any GCC internal prototype to avoid an error. 22865 Use char because int might match the return type of a GCC 22866 builtin and then its argument prototype would still apply. */ 22867#ifdef __cplusplus 22868extern "C" 22869#endif 22870char inflate (); 22871int 22872main () 22873{ 22874return inflate (); 22875 ; 22876 return 0; 22877} 22878_ACEOF 22879if ac_fn_c_try_link "$LINENO"; then : 22880 ac_cv_lib_z_inflate=yes 22881else 22882 ac_cv_lib_z_inflate=no 22883fi 22884rm -f core conftest.err conftest.$ac_objext \ 22885 conftest$ac_exeext conftest.$ac_ext 22886LIBS=$ac_check_lib_save_LIBS 22887fi 22888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 22889$as_echo "$ac_cv_lib_z_inflate" >&6; } 22890if test "x$ac_cv_lib_z_inflate" = xyes; then : 22891 22892 zlib_found="yes" 22893 SVN_ZLIB_INCLUDES="-I$zlib_prefix/include" 22894 SVN_ZLIB_LIBS="` 22895 input_flags="-L$zlib_prefix/lib" 22896 output_flags="" 22897 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 22898 for flag in $input_flags; do 22899 filter="no" 22900 for dir in $filtered_dirs; do 22901 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 22902 filter="yes" 22903 break 22904 fi 22905 done 22906 if test "$filter" = "no"; then 22907 output_flags="$output_flags $flag" 22908 fi 22909 done 22910 if test -n "$output_flags"; then 22911 printf "%s" "${output_flags# }" 22912 fi 22913` -lz" 22914 22915fi 22916 22917 LDFLAGS="$save_ldflags" 22918 22919fi 22920 22921done 22922 22923 CPPFLAGS="$save_cppflags" 22924 else 22925 22926 { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library configuration via pkg-config" >&5 22927$as_echo "$as_me: zlib library configuration via pkg-config" >&6;} 22928 if test -n "$PKG_CONFIG"; then 22929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib library" >&5 22930$as_echo_n "checking for zlib library... " >&6; } 22931 if $PKG_CONFIG zlib --exists; then 22932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22933$as_echo "yes" >&6; } 22934 zlib_found=yes 22935 SVN_ZLIB_INCLUDES=`$PKG_CONFIG zlib --cflags` 22936 SVN_ZLIB_LIBS=`$PKG_CONFIG zlib --libs` 22937 SVN_ZLIB_LIBS="` 22938 input_flags="$SVN_ZLIB_LIBS" 22939 output_flags="" 22940 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 22941 for flag in $input_flags; do 22942 filter="no" 22943 for dir in $filtered_dirs; do 22944 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 22945 filter="yes" 22946 break 22947 fi 22948 done 22949 if test "$filter" = "no"; then 22950 output_flags="$output_flags $flag" 22951 fi 22952 done 22953 if test -n "$output_flags"; then 22954 printf "%s" "${output_flags# }" 22955 fi 22956`" 22957 else 22958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22959$as_echo "no" >&6; } 22960 fi 22961 fi 22962 22963 22964 if test "$zlib_found" = "no"; then 22965 { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library configuration" >&5 22966$as_echo "$as_me: zlib library configuration" >&6;} 22967 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 22968if test "x$ac_cv_header_zlib_h" = xyes; then : 22969 22970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 22971$as_echo_n "checking for inflate in -lz... " >&6; } 22972if ${ac_cv_lib_z_inflate+:} false; then : 22973 $as_echo_n "(cached) " >&6 22974else 22975 ac_check_lib_save_LIBS=$LIBS 22976LIBS="-lz $LIBS" 22977cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22978/* end confdefs.h. */ 22979 22980/* Override any GCC internal prototype to avoid an error. 22981 Use char because int might match the return type of a GCC 22982 builtin and then its argument prototype would still apply. */ 22983#ifdef __cplusplus 22984extern "C" 22985#endif 22986char inflate (); 22987int 22988main () 22989{ 22990return inflate (); 22991 ; 22992 return 0; 22993} 22994_ACEOF 22995if ac_fn_c_try_link "$LINENO"; then : 22996 ac_cv_lib_z_inflate=yes 22997else 22998 ac_cv_lib_z_inflate=no 22999fi 23000rm -f core conftest.err conftest.$ac_objext \ 23001 conftest$ac_exeext conftest.$ac_ext 23002LIBS=$ac_check_lib_save_LIBS 23003fi 23004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 23005$as_echo "$ac_cv_lib_z_inflate" >&6; } 23006if test "x$ac_cv_lib_z_inflate" = xyes; then : 23007 23008 zlib_found="builtin" 23009 SVN_ZLIB_LIBS="-lz" 23010 23011fi 23012 23013 23014fi 23015 23016 23017 fi 23018 fi 23019 23020 if test "$zlib_found" = "no"; then 23021 as_fn_error $? "subversion requires zlib" "$LINENO" 5 23022 fi 23023 23024 23025 23026 23027 23028 23029 23030# Check whether --with-lz4 was given. 23031if test "${with_lz4+set}" = set; then : 23032 withval=$with_lz4; 23033 if test "$withval" = internal; then 23034 lz4_prefix=internal 23035 elif test "$withval" = yes; then 23036 lz4_prefix=std 23037 else 23038 lz4_prefix="$withval" 23039 fi 23040 23041else 23042 lz4_prefix=std 23043fi 23044 23045 23046 if test "$lz4_prefix" = "internal"; then 23047 { $as_echo "$as_me:${as_lineno-$LINENO}: using internal lz4" >&5 23048$as_echo "$as_me: using internal lz4" >&6;} 23049 23050$as_echo "#define SVN_INTERNAL_LZ4 1" >>confdefs.h 23051 23052 else 23053 if test "$lz4_prefix" = "std"; then 23054 23055 if test -n "$PKG_CONFIG"; then 23056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lz4 library via pkg-config" >&5 23057$as_echo_n "checking for lz4 library via pkg-config... " >&6; } 23058 if $PKG_CONFIG liblz4 --atleast-version=129 || $PKG_CONFIG liblz4 --max-version=3; then 23059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23060$as_echo "yes" >&6; } 23061 lz4_found=yes 23062 SVN_LZ4_INCLUDES=`$PKG_CONFIG liblz4 --cflags` 23063 SVN_LZ4_LIBS=`$PKG_CONFIG liblz4 --libs` 23064 SVN_LZ4_LIBS="` 23065 input_flags="$SVN_LZ4_LIBS" 23066 output_flags="" 23067 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 23068 for flag in $input_flags; do 23069 filter="no" 23070 for dir in $filtered_dirs; do 23071 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 23072 filter="yes" 23073 break 23074 fi 23075 done 23076 if test "$filter" = "no"; then 23077 output_flags="$output_flags $flag" 23078 fi 23079 done 23080 if test -n "$output_flags"; then 23081 printf "%s" "${output_flags# }" 23082 fi 23083`" 23084 else 23085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23086$as_echo "no" >&6; } 23087 fi 23088 fi 23089 if test "$lz4_found" != "yes"; then 23090 { $as_echo "$as_me:${as_lineno-$LINENO}: lz4 configuration without pkg-config" >&5 23091$as_echo "$as_me: lz4 configuration without pkg-config" >&6;} 23092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4_compress_default in -llz4" >&5 23093$as_echo_n "checking for LZ4_compress_default in -llz4... " >&6; } 23094if ${ac_cv_lib_lz4_LZ4_compress_default+:} false; then : 23095 $as_echo_n "(cached) " >&6 23096else 23097 ac_check_lib_save_LIBS=$LIBS 23098LIBS="-llz4 $LIBS" 23099cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23100/* end confdefs.h. */ 23101 23102/* Override any GCC internal prototype to avoid an error. 23103 Use char because int might match the return type of a GCC 23104 builtin and then its argument prototype would still apply. */ 23105#ifdef __cplusplus 23106extern "C" 23107#endif 23108char LZ4_compress_default (); 23109int 23110main () 23111{ 23112return LZ4_compress_default (); 23113 ; 23114 return 0; 23115} 23116_ACEOF 23117if ac_fn_c_try_link "$LINENO"; then : 23118 ac_cv_lib_lz4_LZ4_compress_default=yes 23119else 23120 ac_cv_lib_lz4_LZ4_compress_default=no 23121fi 23122rm -f core conftest.err conftest.$ac_objext \ 23123 conftest$ac_exeext conftest.$ac_ext 23124LIBS=$ac_check_lib_save_LIBS 23125fi 23126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_compress_default" >&5 23127$as_echo "$ac_cv_lib_lz4_LZ4_compress_default" >&6; } 23128if test "x$ac_cv_lib_lz4_LZ4_compress_default" = xyes; then : 23129 23130 lz4_found=yes 23131 SVN_LZ4_LIBS="-llz4" 23132 23133fi 23134 23135 fi 23136 23137 else 23138 23139 { $as_echo "$as_me:${as_lineno-$LINENO}: lz4 configuration via prefix" >&5 23140$as_echo "$as_me: lz4 configuration via prefix" >&6;} 23141 save_cppflags="$CPPFLAGS" 23142 CPPFLAGS="$CPPFLAGS -I$lz4_prefix/include" 23143 save_ldflags="$LDFLAGS" 23144 LDFLAGS="$LDFLAGS -L$lz4_prefix/lib" 23145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4_compress_default in -llz4" >&5 23146$as_echo_n "checking for LZ4_compress_default in -llz4... " >&6; } 23147if ${ac_cv_lib_lz4_LZ4_compress_default+:} false; then : 23148 $as_echo_n "(cached) " >&6 23149else 23150 ac_check_lib_save_LIBS=$LIBS 23151LIBS="-llz4 $LIBS" 23152cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23153/* end confdefs.h. */ 23154 23155/* Override any GCC internal prototype to avoid an error. 23156 Use char because int might match the return type of a GCC 23157 builtin and then its argument prototype would still apply. */ 23158#ifdef __cplusplus 23159extern "C" 23160#endif 23161char LZ4_compress_default (); 23162int 23163main () 23164{ 23165return LZ4_compress_default (); 23166 ; 23167 return 0; 23168} 23169_ACEOF 23170if ac_fn_c_try_link "$LINENO"; then : 23171 ac_cv_lib_lz4_LZ4_compress_default=yes 23172else 23173 ac_cv_lib_lz4_LZ4_compress_default=no 23174fi 23175rm -f core conftest.err conftest.$ac_objext \ 23176 conftest$ac_exeext conftest.$ac_ext 23177LIBS=$ac_check_lib_save_LIBS 23178fi 23179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_compress_default" >&5 23180$as_echo "$ac_cv_lib_lz4_LZ4_compress_default" >&6; } 23181if test "x$ac_cv_lib_lz4_LZ4_compress_default" = xyes; then : 23182 23183 lz4_found=yes 23184 SVN_LZ4_INCLUDES="-I$lz4_prefix/include" 23185 SVN_LZ4_LIBS="` 23186 input_flags="-L$lz4_prefix/lib" 23187 output_flags="" 23188 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 23189 for flag in $input_flags; do 23190 filter="no" 23191 for dir in $filtered_dirs; do 23192 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 23193 filter="yes" 23194 break 23195 fi 23196 done 23197 if test "$filter" = "no"; then 23198 output_flags="$output_flags $flag" 23199 fi 23200 done 23201 if test -n "$output_flags"; then 23202 printf "%s" "${output_flags# }" 23203 fi 23204` -llz4" 23205 23206fi 23207 23208 LDFLAGS="$save_ldflags" 23209 CPPFLAGS="$save_cppflags" 23210 23211 fi 23212 if test "$lz4_found" != "yes"; then 23213 as_fn_error $? "Subversion requires LZ4 >= r129, or use --with-lz4=internal" "$LINENO" 5 23214 fi 23215 fi 23216 23217 23218 23219 23220 23221 23222# Check whether --with-utf8proc was given. 23223if test "${with_utf8proc+set}" = set; then : 23224 withval=$with_utf8proc; 23225 if test "$withval" = internal; then 23226 utf8proc_prefix=internal 23227 elif test "$withval" = yes; then 23228 utf8proc_prefix=std 23229 else 23230 utf8proc_prefix="$withval" 23231 fi 23232 23233else 23234 utf8proc_prefix=std 23235fi 23236 23237 23238 if test "$utf8proc_prefix" = "internal"; then 23239 { $as_echo "$as_me:${as_lineno-$LINENO}: using internal utf8proc" >&5 23240$as_echo "$as_me: using internal utf8proc" >&6;} 23241 23242$as_echo "#define SVN_INTERNAL_UTF8PROC 1" >>confdefs.h 23243 23244 else 23245 if test "$utf8proc_prefix" = "std"; then 23246 23247 { $as_echo "$as_me:${as_lineno-$LINENO}: utf8proc configuration without pkg-config" >&5 23248$as_echo "$as_me: utf8proc configuration without pkg-config" >&6;} 23249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8proc_version in -lutf8proc" >&5 23250$as_echo_n "checking for utf8proc_version in -lutf8proc... " >&6; } 23251if ${ac_cv_lib_utf8proc_utf8proc_version+:} false; then : 23252 $as_echo_n "(cached) " >&6 23253else 23254 ac_check_lib_save_LIBS=$LIBS 23255LIBS="-lutf8proc $LIBS" 23256cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23257/* end confdefs.h. */ 23258 23259/* Override any GCC internal prototype to avoid an error. 23260 Use char because int might match the return type of a GCC 23261 builtin and then its argument prototype would still apply. */ 23262#ifdef __cplusplus 23263extern "C" 23264#endif 23265char utf8proc_version (); 23266int 23267main () 23268{ 23269return utf8proc_version (); 23270 ; 23271 return 0; 23272} 23273_ACEOF 23274if ac_fn_c_try_link "$LINENO"; then : 23275 ac_cv_lib_utf8proc_utf8proc_version=yes 23276else 23277 ac_cv_lib_utf8proc_utf8proc_version=no 23278fi 23279rm -f core conftest.err conftest.$ac_objext \ 23280 conftest$ac_exeext conftest.$ac_ext 23281LIBS=$ac_check_lib_save_LIBS 23282fi 23283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_utf8proc_utf8proc_version" >&5 23284$as_echo "$ac_cv_lib_utf8proc_utf8proc_version" >&6; } 23285if test "x$ac_cv_lib_utf8proc_utf8proc_version" = xyes; then : 23286 23287 utf8proc_found=yes 23288 SVN_UTF8PROC_LIBS="-lutf8proc" 23289 23290fi 23291 23292 23293 else 23294 23295 { $as_echo "$as_me:${as_lineno-$LINENO}: utf8proc configuration via prefix" >&5 23296$as_echo "$as_me: utf8proc configuration via prefix" >&6;} 23297 save_cppflags="$CPPFLAGS" 23298 CPPFLAGS="$CPPFLAGS -I$utf8proc_prefix/include" 23299 save_ldflags="$LDFLAGS" 23300 LDFLAGS="$LDFLAGS -L$utf8proc_prefix/lib" 23301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8proc_version in -lutf8proc" >&5 23302$as_echo_n "checking for utf8proc_version in -lutf8proc... " >&6; } 23303if ${ac_cv_lib_utf8proc_utf8proc_version+:} false; then : 23304 $as_echo_n "(cached) " >&6 23305else 23306 ac_check_lib_save_LIBS=$LIBS 23307LIBS="-lutf8proc $LIBS" 23308cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23309/* end confdefs.h. */ 23310 23311/* Override any GCC internal prototype to avoid an error. 23312 Use char because int might match the return type of a GCC 23313 builtin and then its argument prototype would still apply. */ 23314#ifdef __cplusplus 23315extern "C" 23316#endif 23317char utf8proc_version (); 23318int 23319main () 23320{ 23321return utf8proc_version (); 23322 ; 23323 return 0; 23324} 23325_ACEOF 23326if ac_fn_c_try_link "$LINENO"; then : 23327 ac_cv_lib_utf8proc_utf8proc_version=yes 23328else 23329 ac_cv_lib_utf8proc_utf8proc_version=no 23330fi 23331rm -f core conftest.err conftest.$ac_objext \ 23332 conftest$ac_exeext conftest.$ac_ext 23333LIBS=$ac_check_lib_save_LIBS 23334fi 23335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_utf8proc_utf8proc_version" >&5 23336$as_echo "$ac_cv_lib_utf8proc_utf8proc_version" >&6; } 23337if test "x$ac_cv_lib_utf8proc_utf8proc_version" = xyes; then : 23338 23339 utf8proc_found=yes 23340 SVN_UTF8PROC_INCLUDES="-I$utf8proc_prefix/include" 23341 SVN_UTF8PROC_LIBS="` 23342 input_flags="-L$utf8proc_prefix/lib" 23343 output_flags="" 23344 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 23345 for flag in $input_flags; do 23346 filter="no" 23347 for dir in $filtered_dirs; do 23348 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 23349 filter="yes" 23350 break 23351 fi 23352 done 23353 if test "$filter" = "no"; then 23354 output_flags="$output_flags $flag" 23355 fi 23356 done 23357 if test -n "$output_flags"; then 23358 printf "%s" "${output_flags# }" 23359 fi 23360` -lutf8proc" 23361 23362fi 23363 23364 LDFLAGS="$save_ldflags" 23365 CPPFLAGS="$save_cppflags" 23366 23367 fi 23368 if test "$utf8proc_found" != "yes"; then 23369 as_fn_error $? "Subversion requires UTF8PROC" "$LINENO" 5 23370 fi 23371 fi 23372 23373 23374 23375 23376MOD_ACTIVATION="" 23377# Check whether --enable-mod-activation was given. 23378if test "${enable_mod_activation+set}" = set; then : 23379 enableval=$enable_mod_activation; 23380 if test "$enableval" = "yes" ; then 23381 MOD_ACTIVATION="-a" 23382 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling apache module activation" >&5 23383$as_echo "$as_me: Enabling apache module activation" >&6;} 23384 else 23385 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling apache module activation" >&5 23386$as_echo "$as_me: Disabling apache module activation" >&6;} 23387 fi 23388 23389fi 23390 23391 23392 23393 23394 23395# Check whether --enable-gcov was given. 23396if test "${enable_gcov+set}" = set; then : 23397 enableval=$enable_gcov; 23398 if test "$enableval" = "yes" ; then 23399 if test "$GCC" = "yes"; then 23400 if test "$svn_enable_shared" = "yes" ; then 23401 as_fn_error $? "Can't have --enable-gcov without --disable-shared (we 23402 recommend also using --enable-all-static)." "$LINENO" 5 23403 fi 23404 if test ! "$enable_all_static" = "yes" ; then 23405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We recommend --enable-all-static with --enable-gcov." >&5 23406$as_echo "$as_me: WARNING: We recommend --enable-all-static with --enable-gcov." >&2;} 23407 fi 23408 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling gcov coverage testing." >&5 23409$as_echo "$as_me: Enabling gcov coverage testing." >&6;} 23410 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage" 23411 CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage" 23412 else 23413 as_fn_error $? "We only support --enable-gcov with GCC right now." "$LINENO" 5 23414 fi 23415 fi 23416 23417fi 23418 23419 23420# Check whether --enable-gprof was given. 23421if test "${enable_gprof+set}" = set; then : 23422 enableval=$enable_gprof; 23423 if test "$enableval" = "yes" ; then 23424 if test "$GCC" = "yes"; then 23425 if test "$svn_enable_shared" = "yes" ; then 23426 as_fn_error $? "Can't have --enable-gprof without --disable-shared (we 23427 recommend also using --enable-all-static)." "$LINENO" 5 23428 fi 23429 if test ! "$enable_all_static" = "yes" ; then 23430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We recommend --enable-all-static with --enable-gprof." >&5 23431$as_echo "$as_me: WARNING: We recommend --enable-all-static with --enable-gprof." >&2;} 23432 fi 23433 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling gprof profiling data (to gmon.out)." >&5 23434$as_echo "$as_me: Enabling gprof profiling data (to gmon.out)." >&6;} 23435 CFLAGS="$CFLAGS -pg" 23436 CXXFLAGS="$CXXFLAGS -pg" 23437 LT_LDFLAGS="$LT_LDFLAGS -pg" 23438 else 23439 as_fn_error $? "We only support --enable-gprof with GCC right now." "$LINENO" 5 23440 fi 23441 fi 23442 23443fi 23444 23445 23446 23447# Scripting and Bindings languages 23448 23449# Python: Used for testsuite, and bindings 23450 23451 23452PYTHON="`$abs_srcdir/build/find_python.sh`" 23453if test -z "$PYTHON"; then 23454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python 2.7 or later is required to run the testsuite" >&5 23455$as_echo "$as_me: WARNING: Python 2.7 or later is required to run the testsuite" >&2;} 23456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: or to use the Subversion Python bindings" >&5 23457$as_echo "$as_me: WARNING: or to use the Subversion Python bindings" >&2;} 23458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 23459$as_echo "$as_me: WARNING: " >&2;} 23460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you have a suitable Python installed, but not on the" >&5 23461$as_echo "$as_me: WARNING: If you have a suitable Python installed, but not on the" >&2;} 23462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PATH, set the environment variable PYTHON to the full path" >&5 23463$as_echo "$as_me: WARNING: PATH, set the environment variable PYTHON to the full path" >&2;} 23464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to the Python executable, and re-run configure" >&5 23465$as_echo "$as_me: WARNING: to the Python executable, and re-run configure" >&2;} 23466fi 23467for ac_prog in "$PYTHON" 23468do 23469 # Extract the first word of "$ac_prog", so it can be a program name with args. 23470set dummy $ac_prog; ac_word=$2 23471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23472$as_echo_n "checking for $ac_word... " >&6; } 23473if ${ac_cv_path_PYTHON+:} false; then : 23474 $as_echo_n "(cached) " >&6 23475else 23476 case $PYTHON in 23477 [\\/]* | ?:[\\/]*) 23478 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 23479 ;; 23480 *) 23481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23482for as_dir in $PATH 23483do 23484 IFS=$as_save_IFS 23485 test -z "$as_dir" && as_dir=. 23486 for ac_exec_ext in '' $ac_executable_extensions; do 23487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23488 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 23489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23490 break 2 23491 fi 23492done 23493 done 23494IFS=$as_save_IFS 23495 23496 ;; 23497esac 23498fi 23499PYTHON=$ac_cv_path_PYTHON 23500if test -n "$PYTHON"; then 23501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 23502$as_echo "$PYTHON" >&6; } 23503else 23504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23505$as_echo "no" >&6; } 23506fi 23507 23508 23509 test -n "$PYTHON" && break 23510done 23511test -n "$PYTHON" || PYTHON="none" 23512 23513 23514# The minimum version for the JVM runtime for our Java bytecode. 23515JAVA_OLDEST_WORKING_VER='1.6' 23516# SVN_CHECK_JDK sets $JAVA_CLASSPATH 23517 23518 JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER" 23519 23520# Check whether --with-jdk was given. 23521if test "${with_jdk+set}" = set; then : 23522 withval=$with_jdk; 23523 case "$withval" in 23524 "no") 23525 JDK_SUITABLE=no 23526 ;; 23527 "yes") 23528 23529 where=check 23530 JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER" 23531 23532 JDK=none 23533 JAVA_BIN=none 23534 JAVADOC=none 23535 JAVAC=none 23536 JAVAH=none 23537 JAR=none 23538 JNI_INCLUDES=none 23539 23540 JDK_SUITABLE=no 23541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5 23542$as_echo_n "checking for JDK... " >&6; } 23543 if test $where = check; then 23544 if test -x "$JAVA_HOME/bin/java"; then 23545 JDK="$JAVA_HOME" 23546 elif test -x "/usr/libexec/java_home"; then 23547 JDK=`/usr/libexec/java_home` 23548 elif test -x "/Library/Java/Home/bin/java"; then 23549 JDK="/Library/Java/Home" 23550 elif test -x "/usr/bin/java"; then 23551 JDK="/usr" 23552 elif test -x "/usr/local/bin/java"; then 23553 JDK="/usr/local" 23554 fi 23555 else 23556 JDK=$where 23557 fi 23558 23559 os_arch="`uname`" 23560 if test "$os_arch" = "Darwin"; then 23561 OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2` 23562 23563 if test "$OSX_VER" = "10.4"; then 23564 OSX_VER="10.4u" 23565 fi 23566 23567 OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework" 23568 OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library" 23569 OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework" 23570 fi 23571 23572 if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" && 23573 test -d "/Library/Java/Home"; then 23574 JDK="/Library/Java/Home" 23575 fi 23576 23577 if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then 23578 JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes" 23579 else 23580 JRE_LIB_DIR="$JDK/jre/lib" 23581 fi 23582 23583 if test -f "$JDK/include/jni.h"; then 23584 JNI_INCLUDEDIR="$JDK/include" 23585 JDK_SUITABLE=yes 23586 elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then 23587 JNI_INCLUDEDIR="$JDK/Headers" 23588 JDK_SUITABLE=yes 23589 elif test "$os_arch" = "Darwin" && 23590 test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then 23591 JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers" 23592 JDK_SUITABLE=yes 23593 elif test "$os_arch" = "Darwin" && 23594 test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then 23595 JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers" 23596 JDK_SUITABLE=yes 23597 else 23598 JDK_SUITABLE=no 23599 fi 23600 if test "$JDK_SUITABLE" = "yes"; then 23601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5 23602$as_echo "$JNI_INCLUDEDIR/jni.h" >&6; } 23603 else 23604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23605$as_echo "no" >&6; } 23606 if test "$where" != "check"; then 23607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5 23608$as_echo "$as_me: WARNING: no JNI header files found." >&2;} 23609 if test "$os_arch" = "Darwin"; then 23610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/. Apple no longer includes the JNI header files by default on Java updates." >&5 23611$as_echo "$as_me: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/. Apple no longer includes the JNI header files by default on Java updates." >&2;} 23612 fi 23613 fi 23614 fi 23615 23616 if test "$JDK_SUITABLE" = "yes"; then 23617 JAVA_BIN='$(JDK)/bin' 23618 23619 JAVA="$JAVA_BIN/java" 23620 JAVAC="$JAVA_BIN/javac" 23621 JAVAH="$JAVA_BIN/javah" 23622 JAVADOC="$JAVA_BIN/javadoc" 23623 JAR="$JAVA_BIN/jar" 23624 23625 23626# Check whether --with-jikes was given. 23627if test "${with_jikes+set}" = set; then : 23628 withval=$with_jikes; 23629 if test "$withval" != "no"; then 23630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The --with-jikes option was ignored" >&5 23631$as_echo "$as_me: WARNING: The --with-jikes option was ignored" >&2;} 23632 fi 23633 23634fi 23635 23636 23637 # The release for "-source" could actually be greater than that 23638 # of "-target", if we want to cross-compile for lesser JVMs. 23639 if test -z "$JAVAC_FLAGS"; then 23640 JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.6" 23641 if test "$enable_debugging" = "yes"; then 23642 JAVAC_FLAGS="-g -Xlint -Xlint:unchecked -Xlint:serial -Xlint:path $JAVAC_FLAGS" 23643 if test -z "$JAVAC_COMPAT_FLAGS"; then 23644 JAVAC_COMPAT_FLAGS="$JAVAC_FLAGS -Xlint:-unchecked -Xlint:-deprecation -Xlint:-dep-ann -Xlint:-rawtypes" 23645 fi 23646 fi 23647 fi 23648 23649 JNI_INCLUDES="-I$JNI_INCLUDEDIR" 23650 list="`find "$JNI_INCLUDEDIR" -type d -print`" 23651 for dir in $list; do 23652 JNI_INCLUDES="$JNI_INCLUDES -I$dir" 23653 done 23654 fi 23655 23656 23657 23658 23659 23660 23661 23662 23663 23664 23665 23666 ;; 23667 *) 23668 23669 where=$withval 23670 JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER" 23671 23672 JDK=none 23673 JAVA_BIN=none 23674 JAVADOC=none 23675 JAVAC=none 23676 JAVAH=none 23677 JAR=none 23678 JNI_INCLUDES=none 23679 23680 JDK_SUITABLE=no 23681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5 23682$as_echo_n "checking for JDK... " >&6; } 23683 if test $where = check; then 23684 if test -x "$JAVA_HOME/bin/java"; then 23685 JDK="$JAVA_HOME" 23686 elif test -x "/usr/libexec/java_home"; then 23687 JDK=`/usr/libexec/java_home` 23688 elif test -x "/Library/Java/Home/bin/java"; then 23689 JDK="/Library/Java/Home" 23690 elif test -x "/usr/bin/java"; then 23691 JDK="/usr" 23692 elif test -x "/usr/local/bin/java"; then 23693 JDK="/usr/local" 23694 fi 23695 else 23696 JDK=$where 23697 fi 23698 23699 os_arch="`uname`" 23700 if test "$os_arch" = "Darwin"; then 23701 OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2` 23702 23703 if test "$OSX_VER" = "10.4"; then 23704 OSX_VER="10.4u" 23705 fi 23706 23707 OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework" 23708 OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library" 23709 OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework" 23710 fi 23711 23712 if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" && 23713 test -d "/Library/Java/Home"; then 23714 JDK="/Library/Java/Home" 23715 fi 23716 23717 if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then 23718 JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes" 23719 else 23720 JRE_LIB_DIR="$JDK/jre/lib" 23721 fi 23722 23723 if test -f "$JDK/include/jni.h"; then 23724 JNI_INCLUDEDIR="$JDK/include" 23725 JDK_SUITABLE=yes 23726 elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then 23727 JNI_INCLUDEDIR="$JDK/Headers" 23728 JDK_SUITABLE=yes 23729 elif test "$os_arch" = "Darwin" && 23730 test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then 23731 JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers" 23732 JDK_SUITABLE=yes 23733 elif test "$os_arch" = "Darwin" && 23734 test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then 23735 JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers" 23736 JDK_SUITABLE=yes 23737 else 23738 JDK_SUITABLE=no 23739 fi 23740 if test "$JDK_SUITABLE" = "yes"; then 23741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5 23742$as_echo "$JNI_INCLUDEDIR/jni.h" >&6; } 23743 else 23744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23745$as_echo "no" >&6; } 23746 if test "$where" != "check"; then 23747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5 23748$as_echo "$as_me: WARNING: no JNI header files found." >&2;} 23749 if test "$os_arch" = "Darwin"; then 23750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/. Apple no longer includes the JNI header files by default on Java updates." >&5 23751$as_echo "$as_me: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/. Apple no longer includes the JNI header files by default on Java updates." >&2;} 23752 fi 23753 fi 23754 fi 23755 23756 if test "$JDK_SUITABLE" = "yes"; then 23757 JAVA_BIN='$(JDK)/bin' 23758 23759 JAVA="$JAVA_BIN/java" 23760 JAVAC="$JAVA_BIN/javac" 23761 JAVAH="$JAVA_BIN/javah" 23762 JAVADOC="$JAVA_BIN/javadoc" 23763 JAR="$JAVA_BIN/jar" 23764 23765 23766# Check whether --with-jikes was given. 23767if test "${with_jikes+set}" = set; then : 23768 withval=$with_jikes; 23769 if test "$withval" != "no"; then 23770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The --with-jikes option was ignored" >&5 23771$as_echo "$as_me: WARNING: The --with-jikes option was ignored" >&2;} 23772 fi 23773 23774fi 23775 23776 23777 # The release for "-source" could actually be greater than that 23778 # of "-target", if we want to cross-compile for lesser JVMs. 23779 if test -z "$JAVAC_FLAGS"; then 23780 JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.6" 23781 if test "$enable_debugging" = "yes"; then 23782 JAVAC_FLAGS="-g -Xlint -Xlint:unchecked -Xlint:serial -Xlint:path $JAVAC_FLAGS" 23783 if test -z "$JAVAC_COMPAT_FLAGS"; then 23784 JAVAC_COMPAT_FLAGS="$JAVAC_FLAGS -Xlint:-unchecked -Xlint:-deprecation -Xlint:-dep-ann -Xlint:-rawtypes" 23785 fi 23786 fi 23787 fi 23788 23789 JNI_INCLUDES="-I$JNI_INCLUDEDIR" 23790 list="`find "$JNI_INCLUDEDIR" -type d -print`" 23791 for dir in $list; do 23792 JNI_INCLUDES="$JNI_INCLUDES -I$dir" 23793 done 23794 fi 23795 23796 23797 23798 23799 23800 23801 23802 23803 23804 23805 23806 ;; 23807 esac 23808 23809else 23810 23811 23812 where=check 23813 JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER" 23814 23815 JDK=none 23816 JAVA_BIN=none 23817 JAVADOC=none 23818 JAVAC=none 23819 JAVAH=none 23820 JAR=none 23821 JNI_INCLUDES=none 23822 23823 JDK_SUITABLE=no 23824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5 23825$as_echo_n "checking for JDK... " >&6; } 23826 if test $where = check; then 23827 if test -x "$JAVA_HOME/bin/java"; then 23828 JDK="$JAVA_HOME" 23829 elif test -x "/usr/libexec/java_home"; then 23830 JDK=`/usr/libexec/java_home` 23831 elif test -x "/Library/Java/Home/bin/java"; then 23832 JDK="/Library/Java/Home" 23833 elif test -x "/usr/bin/java"; then 23834 JDK="/usr" 23835 elif test -x "/usr/local/bin/java"; then 23836 JDK="/usr/local" 23837 fi 23838 else 23839 JDK=$where 23840 fi 23841 23842 os_arch="`uname`" 23843 if test "$os_arch" = "Darwin"; then 23844 OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2` 23845 23846 if test "$OSX_VER" = "10.4"; then 23847 OSX_VER="10.4u" 23848 fi 23849 23850 OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework" 23851 OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library" 23852 OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework" 23853 fi 23854 23855 if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" && 23856 test -d "/Library/Java/Home"; then 23857 JDK="/Library/Java/Home" 23858 fi 23859 23860 if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then 23861 JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes" 23862 else 23863 JRE_LIB_DIR="$JDK/jre/lib" 23864 fi 23865 23866 if test -f "$JDK/include/jni.h"; then 23867 JNI_INCLUDEDIR="$JDK/include" 23868 JDK_SUITABLE=yes 23869 elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then 23870 JNI_INCLUDEDIR="$JDK/Headers" 23871 JDK_SUITABLE=yes 23872 elif test "$os_arch" = "Darwin" && 23873 test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then 23874 JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers" 23875 JDK_SUITABLE=yes 23876 elif test "$os_arch" = "Darwin" && 23877 test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then 23878 JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers" 23879 JDK_SUITABLE=yes 23880 else 23881 JDK_SUITABLE=no 23882 fi 23883 if test "$JDK_SUITABLE" = "yes"; then 23884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5 23885$as_echo "$JNI_INCLUDEDIR/jni.h" >&6; } 23886 else 23887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23888$as_echo "no" >&6; } 23889 if test "$where" != "check"; then 23890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5 23891$as_echo "$as_me: WARNING: no JNI header files found." >&2;} 23892 if test "$os_arch" = "Darwin"; then 23893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/. Apple no longer includes the JNI header files by default on Java updates." >&5 23894$as_echo "$as_me: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/. Apple no longer includes the JNI header files by default on Java updates." >&2;} 23895 fi 23896 fi 23897 fi 23898 23899 if test "$JDK_SUITABLE" = "yes"; then 23900 JAVA_BIN='$(JDK)/bin' 23901 23902 JAVA="$JAVA_BIN/java" 23903 JAVAC="$JAVA_BIN/javac" 23904 JAVAH="$JAVA_BIN/javah" 23905 JAVADOC="$JAVA_BIN/javadoc" 23906 JAR="$JAVA_BIN/jar" 23907 23908 23909# Check whether --with-jikes was given. 23910if test "${with_jikes+set}" = set; then : 23911 withval=$with_jikes; 23912 if test "$withval" != "no"; then 23913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The --with-jikes option was ignored" >&5 23914$as_echo "$as_me: WARNING: The --with-jikes option was ignored" >&2;} 23915 fi 23916 23917fi 23918 23919 23920 # The release for "-source" could actually be greater than that 23921 # of "-target", if we want to cross-compile for lesser JVMs. 23922 if test -z "$JAVAC_FLAGS"; then 23923 JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.6" 23924 if test "$enable_debugging" = "yes"; then 23925 JAVAC_FLAGS="-g -Xlint -Xlint:unchecked -Xlint:serial -Xlint:path $JAVAC_FLAGS" 23926 if test -z "$JAVAC_COMPAT_FLAGS"; then 23927 JAVAC_COMPAT_FLAGS="$JAVAC_FLAGS -Xlint:-unchecked -Xlint:-deprecation -Xlint:-dep-ann -Xlint:-rawtypes" 23928 fi 23929 fi 23930 fi 23931 23932 JNI_INCLUDES="-I$JNI_INCLUDEDIR" 23933 list="`find "$JNI_INCLUDEDIR" -type d -print`" 23934 for dir in $list; do 23935 JNI_INCLUDES="$JNI_INCLUDES -I$dir" 23936 done 23937 fi 23938 23939 23940 23941 23942 23943 23944 23945 23946 23947 23948 23949 23950fi 23951 23952 23953 23954# Extract the first word of "perl", so it can be a program name with args. 23955set dummy perl; ac_word=$2 23956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23957$as_echo_n "checking for $ac_word... " >&6; } 23958if ${ac_cv_path_PERL+:} false; then : 23959 $as_echo_n "(cached) " >&6 23960else 23961 case $PERL in 23962 [\\/]* | ?:[\\/]*) 23963 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 23964 ;; 23965 *) 23966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23967for as_dir in $PATH 23968do 23969 IFS=$as_save_IFS 23970 test -z "$as_dir" && as_dir=. 23971 for ac_exec_ext in '' $ac_executable_extensions; do 23972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23973 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 23974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23975 break 2 23976 fi 23977done 23978 done 23979IFS=$as_save_IFS 23980 23981 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" 23982 ;; 23983esac 23984fi 23985PERL=$ac_cv_path_PERL 23986if test -n "$PERL"; then 23987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 23988$as_echo "$PERL" >&6; } 23989else 23990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23991$as_echo "no" >&6; } 23992fi 23993 23994 23995 23996if test -n "$RUBY"; then 23997 # Extract the first word of ""$RUBY"", so it can be a program name with args. 23998set dummy "$RUBY"; ac_word=$2 23999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24000$as_echo_n "checking for $ac_word... " >&6; } 24001if ${ac_cv_path_RUBY+:} false; then : 24002 $as_echo_n "(cached) " >&6 24003else 24004 case $RUBY in 24005 [\\/]* | ?:[\\/]*) 24006 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path. 24007 ;; 24008 *) 24009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24010for as_dir in $PATH 24011do 24012 IFS=$as_save_IFS 24013 test -z "$as_dir" && as_dir=. 24014 for ac_exec_ext in '' $ac_executable_extensions; do 24015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24016 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext" 24017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24018 break 2 24019 fi 24020done 24021 done 24022IFS=$as_save_IFS 24023 24024 test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="none" 24025 ;; 24026esac 24027fi 24028RUBY=$ac_cv_path_RUBY 24029if test -n "$RUBY"; then 24030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5 24031$as_echo "$RUBY" >&6; } 24032else 24033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24034$as_echo "no" >&6; } 24035fi 24036 24037 24038else 24039 for ac_prog in ruby ruby1 ruby1.8 ruby18 ruby1.9 ruby19 ruby1.9.3 ruby193 ruby2 ruby2.0 ruby20 ruby2.1 ruby21 ruby2.2 ruby22 ruby2.3 ruby23 ruby2.4 ruby24 24040do 24041 # Extract the first word of "$ac_prog", so it can be a program name with args. 24042set dummy $ac_prog; ac_word=$2 24043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24044$as_echo_n "checking for $ac_word... " >&6; } 24045if ${ac_cv_path_RUBY+:} false; then : 24046 $as_echo_n "(cached) " >&6 24047else 24048 case $RUBY in 24049 [\\/]* | ?:[\\/]*) 24050 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path. 24051 ;; 24052 *) 24053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24054for as_dir in $PATH 24055do 24056 IFS=$as_save_IFS 24057 test -z "$as_dir" && as_dir=. 24058 for ac_exec_ext in '' $ac_executable_extensions; do 24059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24060 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext" 24061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24062 break 2 24063 fi 24064done 24065 done 24066IFS=$as_save_IFS 24067 24068 ;; 24069esac 24070fi 24071RUBY=$ac_cv_path_RUBY 24072if test -n "$RUBY"; then 24073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5 24074$as_echo "$RUBY" >&6; } 24075else 24076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24077$as_echo "no" >&6; } 24078fi 24079 24080 24081 test -n "$RUBY" && break 24082done 24083test -n "$RUBY" || RUBY="none" 24084 24085fi 24086if test "$RUBY" != "none"; then 24087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking rb_hash_foreach" >&5 24088$as_echo_n "checking rb_hash_foreach... " >&6; } 24089 if "$RUBY" -r mkmf -e 'exit(have_func("rb_hash_foreach") ? 0 : 1)' >/dev/null; then 24090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24091$as_echo "yes" >&6; } 24092 if test -n "$RDOC"; then 24093 # Extract the first word of ""$RDOC"", so it can be a program name with args. 24094set dummy "$RDOC"; ac_word=$2 24095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24096$as_echo_n "checking for $ac_word... " >&6; } 24097if ${ac_cv_path_RDOC+:} false; then : 24098 $as_echo_n "(cached) " >&6 24099else 24100 case $RDOC in 24101 [\\/]* | ?:[\\/]*) 24102 ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path. 24103 ;; 24104 *) 24105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24106for as_dir in $PATH 24107do 24108 IFS=$as_save_IFS 24109 test -z "$as_dir" && as_dir=. 24110 for ac_exec_ext in '' $ac_executable_extensions; do 24111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24112 ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext" 24113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24114 break 2 24115 fi 24116done 24117 done 24118IFS=$as_save_IFS 24119 24120 test -z "$ac_cv_path_RDOC" && ac_cv_path_RDOC="none" 24121 ;; 24122esac 24123fi 24124RDOC=$ac_cv_path_RDOC 24125if test -n "$RDOC"; then 24126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5 24127$as_echo "$RDOC" >&6; } 24128else 24129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24130$as_echo "no" >&6; } 24131fi 24132 24133 24134 else 24135 for ac_prog in rdoc rdoc1 rdoc1.8 rdoc18 rdoc1.9 rdoc19 rdoc1.9.3 rdoc193 rdoc2 rdoc2.0 rdoc20 rdoc2.1 rdoc21 rdoc2.2 rdoc22 rdoc2.3 rdoc23 rdoc2.4 rdoc24 24136do 24137 # Extract the first word of "$ac_prog", so it can be a program name with args. 24138set dummy $ac_prog; ac_word=$2 24139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24140$as_echo_n "checking for $ac_word... " >&6; } 24141if ${ac_cv_path_RUBY+:} false; then : 24142 $as_echo_n "(cached) " >&6 24143else 24144 case $RUBY in 24145 [\\/]* | ?:[\\/]*) 24146 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path. 24147 ;; 24148 *) 24149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24150for as_dir in $PATH 24151do 24152 IFS=$as_save_IFS 24153 test -z "$as_dir" && as_dir=. 24154 for ac_exec_ext in '' $ac_executable_extensions; do 24155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24156 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext" 24157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24158 break 2 24159 fi 24160done 24161 done 24162IFS=$as_save_IFS 24163 24164 ;; 24165esac 24166fi 24167RUBY=$ac_cv_path_RUBY 24168if test -n "$RUBY"; then 24169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5 24170$as_echo "$RUBY" >&6; } 24171else 24172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24173$as_echo "no" >&6; } 24174fi 24175 24176 24177 test -n "$RUBY" && break 24178done 24179test -n "$RUBY" || RUBY="none" 24180 24181 fi 24182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby major version" >&5 24183$as_echo_n "checking for Ruby major version... " >&6; } 24184if ${svn_cv_ruby_major+:} false; then : 24185 $as_echo_n "(cached) " >&6 24186else 24187 24188 svn_cv_ruby_major="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MAJOR))'`" 24189 24190fi 24191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_major" >&5 24192$as_echo "$svn_cv_ruby_major" >&6; } 24193 RUBY_MAJOR="$svn_cv_ruby_major" 24194 24195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby minor version" >&5 24196$as_echo_n "checking for Ruby minor version... " >&6; } 24197if ${svn_cv_ruby_minor+:} false; then : 24198 $as_echo_n "(cached) " >&6 24199else 24200 24201 svn_cv_ruby_minor="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MINOR))'`" 24202 24203fi 24204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_minor" >&5 24205$as_echo "$svn_cv_ruby_minor" >&6; } 24206 RUBY_MINOR="$svn_cv_ruby_minor" 24207 24208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby teeny version" >&5 24209$as_echo_n "checking for Ruby teeny version... " >&6; } 24210if ${svn_cv_ruby_teeny+:} false; then : 24211 $as_echo_n "(cached) " >&6 24212else 24213 24214 svn_cv_ruby_teeny="`$RUBY -rrbconfig -e 'major, minor, teeny = RUBY_VERSION.split("."); print teeny;'`" 24215 24216fi 24217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_teeny" >&5 24218$as_echo "$svn_cv_ruby_teeny" >&6; } 24219 RUBY_TEENY="$svn_cv_ruby_teeny" 24220 24221 24222 24223 24224 if test \( "$RUBY_MAJOR" -eq "1" -a "$RUBY_MINOR" -gt "8" -a "$RUBY_TEENY" -lt "3" \); then 24225 # Disallow Ruby between 1.8.7 and 1.9.3 24226 RUBY="none" 24227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The detected Ruby is between 1.9 and 1.9.3" >&5 24228$as_echo "$as_me: WARNING: The detected Ruby is between 1.9 and 1.9.3" >&2;} 24229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Only 1.8.x and 1.9.3 or later are supported at this time" >&5 24230$as_echo "$as_me: WARNING: Only 1.8.x and 1.9.3 or later are supported at this time" >&2;} 24231 fi 24232 else 24233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24234$as_echo "no" >&6; } 24235 RUBY="none" 24236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The detected Ruby is too old for Subversion to use" >&5 24237$as_echo "$as_me: WARNING: The detected Ruby is too old for Subversion to use" >&2;} 24238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: A Ruby which has rb_hash_foreach is required to use the" >&5 24239$as_echo "$as_me: WARNING: A Ruby which has rb_hash_foreach is required to use the" >&2;} 24240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Ruby bindings" >&5 24241$as_echo "$as_me: WARNING: Subversion Ruby bindings" >&2;} 24242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Upgrade to the official 1.8.2 release, or later" >&5 24243$as_echo "$as_me: WARNING: Upgrade to the official 1.8.2 release, or later" >&2;} 24244 fi 24245fi 24246 24247 24248 24249# Check whether --with-swig was given. 24250if test "${with_swig+set}" = set; then : 24251 withval=$with_swig; 24252 case "$withval" in 24253 "no") 24254 SWIG_SUITABLE=no 24255 24256 where=no 24257 24258 if test $where = no; then 24259 SWIG=none 24260 elif test $where = required || test $where = check; then 24261 # Extract the first word of "swig", so it can be a program name with args. 24262set dummy swig; ac_word=$2 24263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24264$as_echo_n "checking for $ac_word... " >&6; } 24265if ${ac_cv_path_SWIG+:} false; then : 24266 $as_echo_n "(cached) " >&6 24267else 24268 case $SWIG in 24269 [\\/]* | ?:[\\/]*) 24270 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 24271 ;; 24272 *) 24273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24274for as_dir in $PATH 24275do 24276 IFS=$as_save_IFS 24277 test -z "$as_dir" && as_dir=. 24278 for ac_exec_ext in '' $ac_executable_extensions; do 24279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24280 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 24281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24282 break 2 24283 fi 24284done 24285 done 24286IFS=$as_save_IFS 24287 24288 test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none" 24289 ;; 24290esac 24291fi 24292SWIG=$ac_cv_path_SWIG 24293if test -n "$SWIG"; then 24294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 24295$as_echo "$SWIG" >&6; } 24296else 24297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24298$as_echo "no" >&6; } 24299fi 24300 24301 24302 if test "$SWIG" = "none" && test $where = required; then 24303 as_fn_error $? "SWIG required, but not found" "$LINENO" 5 24304 fi 24305 else 24306 if test -f "$where"; then 24307 SWIG="$where" 24308 else 24309 SWIG="$where/bin/swig" 24310 fi 24311 if test ! -f "$SWIG" || test ! -x "$SWIG"; then 24312 as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5 24313 fi 24314 fi 24315 24316 if test "$SWIG" != "none"; then 24317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5 24318$as_echo_n "checking swig version... " >&6; } 24319 SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \ 24320 $SED -ne 's/^.*Version \(.*\)$/\1/p'`" 24321 # We want the version as an integer so we can test against 24322 # which version we're using. SWIG doesn't provide this 24323 # to us so we have to come up with it on our own. 24324 # The major is passed straight through, 24325 # the minor is zero padded to two places, 24326 # and the patch level is zero padded to three places. 24327 # e.g. 1.3.24 becomes 103024 24328 SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \ 24329 $SED -e 's/[^0-9\.].*$//' \ 24330 -e 's/\.\([0-9]\)$/.0\1/' \ 24331 -e 's/\.\([0-9][0-9]\)$/.0\1/' \ 24332 -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`" 24333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5 24334$as_echo "$SWIG_VERSION_RAW" >&6; } 24335 # If you change the required swig version number, don't forget to update: 24336 # subversion/bindings/swig/INSTALL 24337 if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then 24338 SWIG_SUITABLE=yes 24339 else 24340 SWIG_SUITABLE=no 24341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5 24342$as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;} 24343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG >= 1.3.24" >&5 24344$as_echo "$as_me: WARNING: Subversion requires SWIG >= 1.3.24" >&2;} 24345 fi 24346 24347 SWIG_PY_COMPILE="none" 24348 SWIG_PY_LINK="none" 24349 if test "$PYTHON" != "none"; then 24350 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5 24351$as_echo "$as_me: Configuring python swig binding" >&6;} 24352 24353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5 24354$as_echo_n "checking for Python includes... " >&6; } 24355if ${ac_cv_python_includes+:} false; then : 24356 $as_echo_n "(cached) " >&6 24357else 24358 24359 ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`" 24360 24361fi 24362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5 24363$as_echo "$ac_cv_python_includes" >&6; } 24364 SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes" 24365 24366 if test "$ac_cv_python_includes" = "none"; then 24367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5 24368$as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;} 24369 fi 24370 24371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5 24372$as_echo_n "checking for compiling Python extensions... " >&6; } 24373if ${ac_cv_python_compile+:} false; then : 24374 $as_echo_n "(cached) " >&6 24375else 24376 24377 ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`" 24378 24379fi 24380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5 24381$as_echo "$ac_cv_python_compile" >&6; } 24382 SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS" 24383 24384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5 24385$as_echo_n "checking for linking Python extensions... " >&6; } 24386if ${ac_cv_python_link+:} false; then : 24387 $as_echo_n "(cached) " >&6 24388else 24389 24390 ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`" 24391 24392fi 24393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5 24394$as_echo "$ac_cv_python_link" >&6; } 24395 SWIG_PY_LINK="$ac_cv_python_link" 24396 24397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5 24398$as_echo_n "checking for linking Python libraries... " >&6; } 24399if ${ac_cv_python_libs+:} false; then : 24400 $as_echo_n "(cached) " >&6 24401else 24402 24403 ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`" 24404 24405fi 24406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5 24407$as_echo "$ac_cv_python_libs" >&6; } 24408 SWIG_PY_LIBS="` 24409 input_flags="$ac_cv_python_libs" 24410 output_flags="" 24411 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 24412 for flag in $input_flags; do 24413 filter="no" 24414 for dir in $filtered_dirs; do 24415 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 24416 filter="yes" 24417 break 24418 fi 24419 done 24420 if test "$filter" = "no"; then 24421 output_flags="$output_flags $flag" 24422 fi 24423 done 24424 if test -n "$output_flags"; then 24425 printf "%s" "${output_flags# }" 24426 fi 24427`" 24428 24429 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS" 24430 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES" 24431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5 24432$as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; } 24433if ${svn_cv_pycfmt_apr_int64_t+:} false; then : 24434 $as_echo_n "(cached) " >&6 24435else 24436 24437 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 24438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24439/* end confdefs.h. */ 24440#include <apr.h> 24441 MaTcHtHiS APR_INT64_T_FMT EnDeNd 24442_ACEOF 24443if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24444 $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then : 24445 svn_cv_pycfmt_apr_int64_t="L" 24446fi 24447rm -f conftest* 24448 24449 fi 24450 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 24451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24452/* end confdefs.h. */ 24453r 24454 #include <apr.h> 24455 MaTcHtHiS APR_INT64_T_FMT EnDeNd 24456_ACEOF 24457if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24458 $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then : 24459 svn_cv_pycfmt_apr_int64_t="l" 24460fi 24461rm -f conftest* 24462 24463 fi 24464 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 24465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24466/* end confdefs.h. */ 24467#include <apr.h> 24468 MaTcHtHiS APR_INT64_T_FMT EnDeNd 24469_ACEOF 24470if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24471 $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then : 24472 svn_cv_pycfmt_apr_int64_t="i" 24473fi 24474rm -f conftest* 24475 24476 fi 24477 24478fi 24479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5 24480$as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; } 24481 CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS" 24482 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 24483 as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5 24484 fi 24485 24486cat >>confdefs.h <<_ACEOF 24487#define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t" 24488_ACEOF 24489 24490 fi 24491 24492 if test "$PERL" != "none"; then 24493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5 24494$as_echo_n "checking perl version... " >&6; } 24495 PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`" 24496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5 24497$as_echo "$PERL_VERSION" >&6; } 24498 if test "$PERL_VERSION" -ge "5008000"; then 24499 SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`" 24500 SWIG_PL_LINK="`$PERL -MExtUtils::Embed -e ldopts`" 24501 SWIG_PL_LINK="` 24502 input_flags="$SWIG_PL_LINK" 24503 output_flags="" 24504 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 24505 for flag in $input_flags; do 24506 filter="no" 24507 for dir in $filtered_dirs; do 24508 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 24509 filter="yes" 24510 break 24511 fi 24512 done 24513 if test "$filter" = "no"; then 24514 output_flags="$output_flags $flag" 24515 fi 24516 done 24517 if test -n "$output_flags"; then 24518 printf "%s" "${output_flags# }" 24519 fi 24520`" 24521 else 24522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5 24523$as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;} 24524 fi 24525 fi 24526 24527 SWIG_RB_COMPILE="none" 24528 SWIG_RB_LINK="none" 24529 if test "$RUBY" != "none"; then 24530 rbconfig="$RUBY -rrbconfig -e " 24531 24532 for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \ 24533 rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir 24534 do 24535 rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"` 24536 eval "rbconfig_$var_name=\"$rbconfig_tmp\"" 24537 done 24538 24539 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5 24540$as_echo "$as_me: Configuring Ruby SWIG binding" >&6;} 24541 24542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5 24543$as_echo_n "checking for Ruby include path... " >&6; } 24544if ${svn_cv_ruby_includes+:} false; then : 24545 $as_echo_n "(cached) " >&6 24546else 24547 24548 if test -d "$rbconfig_rubyhdrdir"; then 24549 svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward" 24550 if test -d "$rbconfig_rubyarchhdrdir"; then 24551 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir" 24552 else 24553 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch" 24554 fi 24555 else 24556 svn_cv_ruby_includes="-I. -I$rbconfig_archdir" 24557 fi 24558 24559fi 24560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5 24561$as_echo "$svn_cv_ruby_includes" >&6; } 24562 SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes" 24563 24564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5 24565$as_echo_n "checking how to compile Ruby extensions... " >&6; } 24566if ${svn_cv_ruby_compile+:} false; then : 24567 $as_echo_n "(cached) " >&6 24568else 24569 24570 svn_cv_ruby_compile="$rbconfig_CC $CFLAGS" 24571 24572fi 24573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5 24574$as_echo "$svn_cv_ruby_compile" >&6; } 24575 SWIG_RB_COMPILE="$svn_cv_ruby_compile" 24576 24577 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'` 24578 24579 24580 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'` 24581 24582 24583 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'` 24584 24585 SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast" 24586 24587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5 24588$as_echo_n "checking how to link Ruby extensions... " >&6; } 24589if ${svn_cv_ruby_link+:} false; then : 24590 $as_echo_n "(cached) " >&6 24591else 24592 24593 svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \ 24594 $rbconfig_LDSHARED`" 24595 svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link" 24596 svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT" 24597 24598fi 24599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5 24600$as_echo "$svn_cv_ruby_link" >&6; } 24601 SWIG_RB_LINK="$svn_cv_ruby_link" 24602 24603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5 24604$as_echo_n "checking how to link Ruby libraries... " >&6; } 24605if ${ac_cv_ruby_libs+:} false; then : 24606 $as_echo_n "(cached) " >&6 24607else 24608 24609 ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS" 24610 24611fi 24612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5 24613$as_echo "$ac_cv_ruby_libs" >&6; } 24614 SWIG_RB_LIBS="` 24615 input_flags="$ac_cv_ruby_libs" 24616 output_flags="" 24617 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 24618 for flag in $input_flags; do 24619 filter="no" 24620 for dir in $filtered_dirs; do 24621 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 24622 filter="yes" 24623 break 24624 fi 24625 done 24626 if test "$filter" = "no"; then 24627 output_flags="$output_flags $flag" 24628 fi 24629 done 24630 if test -n "$output_flags"; then 24631 printf "%s" "${output_flags# }" 24632 fi 24633`" 24634 24635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5 24636$as_echo_n "checking for rb_errinfo... " >&6; } 24637 old_CFLAGS="$CFLAGS" 24638 old_LIBS="$LIBS" 24639 CFLAGS="$CFLAGS $svn_cv_ruby_includes" 24640 24641 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'` 24642 24643 24644 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'` 24645 24646 24647 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'` 24648 24649 LIBS="$SWIG_RB_LIBS" 24650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24651/* end confdefs.h. */ 24652 24653#include <ruby.h> 24654int main() 24655{rb_errinfo();} 24656_ACEOF 24657if ac_fn_c_try_link "$LINENO"; then : 24658 have_rb_errinfo="yes" 24659else 24660 have_rb_errinfo="no" 24661fi 24662rm -f core conftest.err conftest.$ac_objext \ 24663 conftest$ac_exeext conftest.$ac_ext 24664 if test "$have_rb_errinfo" = "yes"; then 24665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24666$as_echo "yes" >&6; } 24667 24668$as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h 24669 24670 else 24671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24672$as_echo "no" >&6; } 24673 fi 24674 CFLAGS="$old_CFLAGS" 24675 LIBS="$old_LIBS" 24676 24677 if ${svn_cv_ruby_sitedir+:} false; then : 24678 $as_echo_n "(cached) " >&6 24679else 24680 24681 svn_cv_ruby_sitedir="$rbconfig_sitedir" 24682 24683fi 24684 24685 24686# Check whether --with-ruby-sitedir was given. 24687if test "${with_ruby_sitedir+set}" = set; then : 24688 withval=$with_ruby_sitedir; svn_ruby_installdir="$withval" 24689else 24690 svn_ruby_installdir="$svn_cv_ruby_sitedir" 24691fi 24692 24693 24694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5 24695$as_echo_n "checking where to install Ruby scripts... " >&6; } 24696 if ${svn_cv_ruby_sitedir_libsuffix+:} false; then : 24697 $as_echo_n "(cached) " >&6 24698else 24699 24700 svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \ 24701 $SED -e "s,^$rbconfig_sitedir,,"`" 24702 24703fi 24704 24705 SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}" 24706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5 24707$as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; } 24708 24709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5 24710$as_echo_n "checking where to install Ruby extensions... " >&6; } 24711 if ${svn_cv_ruby_sitedir_archsuffix+:} false; then : 24712 $as_echo_n "(cached) " >&6 24713else 24714 24715 svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \ 24716 $SED -e "s,^$rbconfig_sitedir,,"`" 24717 24718fi 24719 24720 SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}" 24721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5 24722$as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; } 24723 24724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5 24725$as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; } 24726 if ${svn_cv_ruby_test_verbose+:} false; then : 24727 $as_echo_n "(cached) " >&6 24728else 24729 24730 svn_cv_ruby_test_verbose="normal" 24731 24732fi 24733 24734 24735# Check whether --with-ruby-test-verbose was given. 24736if test "${with_ruby_test_verbose+set}" = set; then : 24737 withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval" 24738else 24739 svn_ruby_test_verbose="$svn_cv_ruby_test_verbose" 24740fi 24741 24742 SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose" 24743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5 24744$as_echo "$SWIG_RB_TEST_VERBOSE" >&6; } 24745 fi 24746 fi 24747 24748 24749 24750 24751 24752 24753 24754 24755 24756 24757 24758 24759 24760 24761 24762 ;; 24763 "yes") 24764 24765 where=required 24766 24767 if test $where = no; then 24768 SWIG=none 24769 elif test $where = required || test $where = check; then 24770 # Extract the first word of "swig", so it can be a program name with args. 24771set dummy swig; ac_word=$2 24772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24773$as_echo_n "checking for $ac_word... " >&6; } 24774if ${ac_cv_path_SWIG+:} false; then : 24775 $as_echo_n "(cached) " >&6 24776else 24777 case $SWIG in 24778 [\\/]* | ?:[\\/]*) 24779 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 24780 ;; 24781 *) 24782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24783for as_dir in $PATH 24784do 24785 IFS=$as_save_IFS 24786 test -z "$as_dir" && as_dir=. 24787 for ac_exec_ext in '' $ac_executable_extensions; do 24788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24789 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 24790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24791 break 2 24792 fi 24793done 24794 done 24795IFS=$as_save_IFS 24796 24797 test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none" 24798 ;; 24799esac 24800fi 24801SWIG=$ac_cv_path_SWIG 24802if test -n "$SWIG"; then 24803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 24804$as_echo "$SWIG" >&6; } 24805else 24806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24807$as_echo "no" >&6; } 24808fi 24809 24810 24811 if test "$SWIG" = "none" && test $where = required; then 24812 as_fn_error $? "SWIG required, but not found" "$LINENO" 5 24813 fi 24814 else 24815 if test -f "$where"; then 24816 SWIG="$where" 24817 else 24818 SWIG="$where/bin/swig" 24819 fi 24820 if test ! -f "$SWIG" || test ! -x "$SWIG"; then 24821 as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5 24822 fi 24823 fi 24824 24825 if test "$SWIG" != "none"; then 24826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5 24827$as_echo_n "checking swig version... " >&6; } 24828 SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \ 24829 $SED -ne 's/^.*Version \(.*\)$/\1/p'`" 24830 # We want the version as an integer so we can test against 24831 # which version we're using. SWIG doesn't provide this 24832 # to us so we have to come up with it on our own. 24833 # The major is passed straight through, 24834 # the minor is zero padded to two places, 24835 # and the patch level is zero padded to three places. 24836 # e.g. 1.3.24 becomes 103024 24837 SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \ 24838 $SED -e 's/[^0-9\.].*$//' \ 24839 -e 's/\.\([0-9]\)$/.0\1/' \ 24840 -e 's/\.\([0-9][0-9]\)$/.0\1/' \ 24841 -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`" 24842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5 24843$as_echo "$SWIG_VERSION_RAW" >&6; } 24844 # If you change the required swig version number, don't forget to update: 24845 # subversion/bindings/swig/INSTALL 24846 if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then 24847 SWIG_SUITABLE=yes 24848 else 24849 SWIG_SUITABLE=no 24850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5 24851$as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;} 24852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG >= 1.3.24" >&5 24853$as_echo "$as_me: WARNING: Subversion requires SWIG >= 1.3.24" >&2;} 24854 fi 24855 24856 SWIG_PY_COMPILE="none" 24857 SWIG_PY_LINK="none" 24858 if test "$PYTHON" != "none"; then 24859 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5 24860$as_echo "$as_me: Configuring python swig binding" >&6;} 24861 24862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5 24863$as_echo_n "checking for Python includes... " >&6; } 24864if ${ac_cv_python_includes+:} false; then : 24865 $as_echo_n "(cached) " >&6 24866else 24867 24868 ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`" 24869 24870fi 24871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5 24872$as_echo "$ac_cv_python_includes" >&6; } 24873 SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes" 24874 24875 if test "$ac_cv_python_includes" = "none"; then 24876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5 24877$as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;} 24878 fi 24879 24880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5 24881$as_echo_n "checking for compiling Python extensions... " >&6; } 24882if ${ac_cv_python_compile+:} false; then : 24883 $as_echo_n "(cached) " >&6 24884else 24885 24886 ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`" 24887 24888fi 24889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5 24890$as_echo "$ac_cv_python_compile" >&6; } 24891 SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS" 24892 24893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5 24894$as_echo_n "checking for linking Python extensions... " >&6; } 24895if ${ac_cv_python_link+:} false; then : 24896 $as_echo_n "(cached) " >&6 24897else 24898 24899 ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`" 24900 24901fi 24902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5 24903$as_echo "$ac_cv_python_link" >&6; } 24904 SWIG_PY_LINK="$ac_cv_python_link" 24905 24906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5 24907$as_echo_n "checking for linking Python libraries... " >&6; } 24908if ${ac_cv_python_libs+:} false; then : 24909 $as_echo_n "(cached) " >&6 24910else 24911 24912 ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`" 24913 24914fi 24915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5 24916$as_echo "$ac_cv_python_libs" >&6; } 24917 SWIG_PY_LIBS="` 24918 input_flags="$ac_cv_python_libs" 24919 output_flags="" 24920 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 24921 for flag in $input_flags; do 24922 filter="no" 24923 for dir in $filtered_dirs; do 24924 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 24925 filter="yes" 24926 break 24927 fi 24928 done 24929 if test "$filter" = "no"; then 24930 output_flags="$output_flags $flag" 24931 fi 24932 done 24933 if test -n "$output_flags"; then 24934 printf "%s" "${output_flags# }" 24935 fi 24936`" 24937 24938 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS" 24939 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES" 24940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5 24941$as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; } 24942if ${svn_cv_pycfmt_apr_int64_t+:} false; then : 24943 $as_echo_n "(cached) " >&6 24944else 24945 24946 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 24947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24948/* end confdefs.h. */ 24949#include <apr.h> 24950 MaTcHtHiS APR_INT64_T_FMT EnDeNd 24951_ACEOF 24952if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24953 $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then : 24954 svn_cv_pycfmt_apr_int64_t="L" 24955fi 24956rm -f conftest* 24957 24958 fi 24959 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 24960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24961/* end confdefs.h. */ 24962r 24963 #include <apr.h> 24964 MaTcHtHiS APR_INT64_T_FMT EnDeNd 24965_ACEOF 24966if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24967 $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then : 24968 svn_cv_pycfmt_apr_int64_t="l" 24969fi 24970rm -f conftest* 24971 24972 fi 24973 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 24974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24975/* end confdefs.h. */ 24976#include <apr.h> 24977 MaTcHtHiS APR_INT64_T_FMT EnDeNd 24978_ACEOF 24979if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24980 $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then : 24981 svn_cv_pycfmt_apr_int64_t="i" 24982fi 24983rm -f conftest* 24984 24985 fi 24986 24987fi 24988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5 24989$as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; } 24990 CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS" 24991 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 24992 as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5 24993 fi 24994 24995cat >>confdefs.h <<_ACEOF 24996#define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t" 24997_ACEOF 24998 24999 fi 25000 25001 if test "$PERL" != "none"; then 25002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5 25003$as_echo_n "checking perl version... " >&6; } 25004 PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`" 25005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5 25006$as_echo "$PERL_VERSION" >&6; } 25007 if test "$PERL_VERSION" -ge "5008000"; then 25008 SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`" 25009 SWIG_PL_LINK="`$PERL -MExtUtils::Embed -e ldopts`" 25010 SWIG_PL_LINK="` 25011 input_flags="$SWIG_PL_LINK" 25012 output_flags="" 25013 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 25014 for flag in $input_flags; do 25015 filter="no" 25016 for dir in $filtered_dirs; do 25017 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 25018 filter="yes" 25019 break 25020 fi 25021 done 25022 if test "$filter" = "no"; then 25023 output_flags="$output_flags $flag" 25024 fi 25025 done 25026 if test -n "$output_flags"; then 25027 printf "%s" "${output_flags# }" 25028 fi 25029`" 25030 else 25031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5 25032$as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;} 25033 fi 25034 fi 25035 25036 SWIG_RB_COMPILE="none" 25037 SWIG_RB_LINK="none" 25038 if test "$RUBY" != "none"; then 25039 rbconfig="$RUBY -rrbconfig -e " 25040 25041 for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \ 25042 rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir 25043 do 25044 rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"` 25045 eval "rbconfig_$var_name=\"$rbconfig_tmp\"" 25046 done 25047 25048 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5 25049$as_echo "$as_me: Configuring Ruby SWIG binding" >&6;} 25050 25051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5 25052$as_echo_n "checking for Ruby include path... " >&6; } 25053if ${svn_cv_ruby_includes+:} false; then : 25054 $as_echo_n "(cached) " >&6 25055else 25056 25057 if test -d "$rbconfig_rubyhdrdir"; then 25058 svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward" 25059 if test -d "$rbconfig_rubyarchhdrdir"; then 25060 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir" 25061 else 25062 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch" 25063 fi 25064 else 25065 svn_cv_ruby_includes="-I. -I$rbconfig_archdir" 25066 fi 25067 25068fi 25069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5 25070$as_echo "$svn_cv_ruby_includes" >&6; } 25071 SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes" 25072 25073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5 25074$as_echo_n "checking how to compile Ruby extensions... " >&6; } 25075if ${svn_cv_ruby_compile+:} false; then : 25076 $as_echo_n "(cached) " >&6 25077else 25078 25079 svn_cv_ruby_compile="$rbconfig_CC $CFLAGS" 25080 25081fi 25082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5 25083$as_echo "$svn_cv_ruby_compile" >&6; } 25084 SWIG_RB_COMPILE="$svn_cv_ruby_compile" 25085 25086 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'` 25087 25088 25089 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'` 25090 25091 25092 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'` 25093 25094 SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast" 25095 25096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5 25097$as_echo_n "checking how to link Ruby extensions... " >&6; } 25098if ${svn_cv_ruby_link+:} false; then : 25099 $as_echo_n "(cached) " >&6 25100else 25101 25102 svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \ 25103 $rbconfig_LDSHARED`" 25104 svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link" 25105 svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT" 25106 25107fi 25108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5 25109$as_echo "$svn_cv_ruby_link" >&6; } 25110 SWIG_RB_LINK="$svn_cv_ruby_link" 25111 25112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5 25113$as_echo_n "checking how to link Ruby libraries... " >&6; } 25114if ${ac_cv_ruby_libs+:} false; then : 25115 $as_echo_n "(cached) " >&6 25116else 25117 25118 ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS" 25119 25120fi 25121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5 25122$as_echo "$ac_cv_ruby_libs" >&6; } 25123 SWIG_RB_LIBS="` 25124 input_flags="$ac_cv_ruby_libs" 25125 output_flags="" 25126 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 25127 for flag in $input_flags; do 25128 filter="no" 25129 for dir in $filtered_dirs; do 25130 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 25131 filter="yes" 25132 break 25133 fi 25134 done 25135 if test "$filter" = "no"; then 25136 output_flags="$output_flags $flag" 25137 fi 25138 done 25139 if test -n "$output_flags"; then 25140 printf "%s" "${output_flags# }" 25141 fi 25142`" 25143 25144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5 25145$as_echo_n "checking for rb_errinfo... " >&6; } 25146 old_CFLAGS="$CFLAGS" 25147 old_LIBS="$LIBS" 25148 CFLAGS="$CFLAGS $svn_cv_ruby_includes" 25149 25150 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'` 25151 25152 25153 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'` 25154 25155 25156 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'` 25157 25158 LIBS="$SWIG_RB_LIBS" 25159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25160/* end confdefs.h. */ 25161 25162#include <ruby.h> 25163int main() 25164{rb_errinfo();} 25165_ACEOF 25166if ac_fn_c_try_link "$LINENO"; then : 25167 have_rb_errinfo="yes" 25168else 25169 have_rb_errinfo="no" 25170fi 25171rm -f core conftest.err conftest.$ac_objext \ 25172 conftest$ac_exeext conftest.$ac_ext 25173 if test "$have_rb_errinfo" = "yes"; then 25174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25175$as_echo "yes" >&6; } 25176 25177$as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h 25178 25179 else 25180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25181$as_echo "no" >&6; } 25182 fi 25183 CFLAGS="$old_CFLAGS" 25184 LIBS="$old_LIBS" 25185 25186 if ${svn_cv_ruby_sitedir+:} false; then : 25187 $as_echo_n "(cached) " >&6 25188else 25189 25190 svn_cv_ruby_sitedir="$rbconfig_sitedir" 25191 25192fi 25193 25194 25195# Check whether --with-ruby-sitedir was given. 25196if test "${with_ruby_sitedir+set}" = set; then : 25197 withval=$with_ruby_sitedir; svn_ruby_installdir="$withval" 25198else 25199 svn_ruby_installdir="$svn_cv_ruby_sitedir" 25200fi 25201 25202 25203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5 25204$as_echo_n "checking where to install Ruby scripts... " >&6; } 25205 if ${svn_cv_ruby_sitedir_libsuffix+:} false; then : 25206 $as_echo_n "(cached) " >&6 25207else 25208 25209 svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \ 25210 $SED -e "s,^$rbconfig_sitedir,,"`" 25211 25212fi 25213 25214 SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}" 25215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5 25216$as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; } 25217 25218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5 25219$as_echo_n "checking where to install Ruby extensions... " >&6; } 25220 if ${svn_cv_ruby_sitedir_archsuffix+:} false; then : 25221 $as_echo_n "(cached) " >&6 25222else 25223 25224 svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \ 25225 $SED -e "s,^$rbconfig_sitedir,,"`" 25226 25227fi 25228 25229 SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}" 25230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5 25231$as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; } 25232 25233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5 25234$as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; } 25235 if ${svn_cv_ruby_test_verbose+:} false; then : 25236 $as_echo_n "(cached) " >&6 25237else 25238 25239 svn_cv_ruby_test_verbose="normal" 25240 25241fi 25242 25243 25244# Check whether --with-ruby-test-verbose was given. 25245if test "${with_ruby_test_verbose+set}" = set; then : 25246 withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval" 25247else 25248 svn_ruby_test_verbose="$svn_cv_ruby_test_verbose" 25249fi 25250 25251 SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose" 25252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5 25253$as_echo "$SWIG_RB_TEST_VERBOSE" >&6; } 25254 fi 25255 fi 25256 25257 25258 25259 25260 25261 25262 25263 25264 25265 25266 25267 25268 25269 25270 25271 ;; 25272 *) 25273 25274 where=$withval 25275 25276 if test $where = no; then 25277 SWIG=none 25278 elif test $where = required || test $where = check; then 25279 # Extract the first word of "swig", so it can be a program name with args. 25280set dummy swig; ac_word=$2 25281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25282$as_echo_n "checking for $ac_word... " >&6; } 25283if ${ac_cv_path_SWIG+:} false; then : 25284 $as_echo_n "(cached) " >&6 25285else 25286 case $SWIG in 25287 [\\/]* | ?:[\\/]*) 25288 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 25289 ;; 25290 *) 25291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25292for as_dir in $PATH 25293do 25294 IFS=$as_save_IFS 25295 test -z "$as_dir" && as_dir=. 25296 for ac_exec_ext in '' $ac_executable_extensions; do 25297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25298 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 25299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25300 break 2 25301 fi 25302done 25303 done 25304IFS=$as_save_IFS 25305 25306 test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none" 25307 ;; 25308esac 25309fi 25310SWIG=$ac_cv_path_SWIG 25311if test -n "$SWIG"; then 25312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 25313$as_echo "$SWIG" >&6; } 25314else 25315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25316$as_echo "no" >&6; } 25317fi 25318 25319 25320 if test "$SWIG" = "none" && test $where = required; then 25321 as_fn_error $? "SWIG required, but not found" "$LINENO" 5 25322 fi 25323 else 25324 if test -f "$where"; then 25325 SWIG="$where" 25326 else 25327 SWIG="$where/bin/swig" 25328 fi 25329 if test ! -f "$SWIG" || test ! -x "$SWIG"; then 25330 as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5 25331 fi 25332 fi 25333 25334 if test "$SWIG" != "none"; then 25335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5 25336$as_echo_n "checking swig version... " >&6; } 25337 SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \ 25338 $SED -ne 's/^.*Version \(.*\)$/\1/p'`" 25339 # We want the version as an integer so we can test against 25340 # which version we're using. SWIG doesn't provide this 25341 # to us so we have to come up with it on our own. 25342 # The major is passed straight through, 25343 # the minor is zero padded to two places, 25344 # and the patch level is zero padded to three places. 25345 # e.g. 1.3.24 becomes 103024 25346 SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \ 25347 $SED -e 's/[^0-9\.].*$//' \ 25348 -e 's/\.\([0-9]\)$/.0\1/' \ 25349 -e 's/\.\([0-9][0-9]\)$/.0\1/' \ 25350 -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`" 25351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5 25352$as_echo "$SWIG_VERSION_RAW" >&6; } 25353 # If you change the required swig version number, don't forget to update: 25354 # subversion/bindings/swig/INSTALL 25355 if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then 25356 SWIG_SUITABLE=yes 25357 else 25358 SWIG_SUITABLE=no 25359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5 25360$as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;} 25361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG >= 1.3.24" >&5 25362$as_echo "$as_me: WARNING: Subversion requires SWIG >= 1.3.24" >&2;} 25363 fi 25364 25365 SWIG_PY_COMPILE="none" 25366 SWIG_PY_LINK="none" 25367 if test "$PYTHON" != "none"; then 25368 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5 25369$as_echo "$as_me: Configuring python swig binding" >&6;} 25370 25371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5 25372$as_echo_n "checking for Python includes... " >&6; } 25373if ${ac_cv_python_includes+:} false; then : 25374 $as_echo_n "(cached) " >&6 25375else 25376 25377 ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`" 25378 25379fi 25380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5 25381$as_echo "$ac_cv_python_includes" >&6; } 25382 SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes" 25383 25384 if test "$ac_cv_python_includes" = "none"; then 25385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5 25386$as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;} 25387 fi 25388 25389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5 25390$as_echo_n "checking for compiling Python extensions... " >&6; } 25391if ${ac_cv_python_compile+:} false; then : 25392 $as_echo_n "(cached) " >&6 25393else 25394 25395 ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`" 25396 25397fi 25398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5 25399$as_echo "$ac_cv_python_compile" >&6; } 25400 SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS" 25401 25402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5 25403$as_echo_n "checking for linking Python extensions... " >&6; } 25404if ${ac_cv_python_link+:} false; then : 25405 $as_echo_n "(cached) " >&6 25406else 25407 25408 ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`" 25409 25410fi 25411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5 25412$as_echo "$ac_cv_python_link" >&6; } 25413 SWIG_PY_LINK="$ac_cv_python_link" 25414 25415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5 25416$as_echo_n "checking for linking Python libraries... " >&6; } 25417if ${ac_cv_python_libs+:} false; then : 25418 $as_echo_n "(cached) " >&6 25419else 25420 25421 ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`" 25422 25423fi 25424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5 25425$as_echo "$ac_cv_python_libs" >&6; } 25426 SWIG_PY_LIBS="` 25427 input_flags="$ac_cv_python_libs" 25428 output_flags="" 25429 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 25430 for flag in $input_flags; do 25431 filter="no" 25432 for dir in $filtered_dirs; do 25433 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 25434 filter="yes" 25435 break 25436 fi 25437 done 25438 if test "$filter" = "no"; then 25439 output_flags="$output_flags $flag" 25440 fi 25441 done 25442 if test -n "$output_flags"; then 25443 printf "%s" "${output_flags# }" 25444 fi 25445`" 25446 25447 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS" 25448 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES" 25449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5 25450$as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; } 25451if ${svn_cv_pycfmt_apr_int64_t+:} false; then : 25452 $as_echo_n "(cached) " >&6 25453else 25454 25455 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 25456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25457/* end confdefs.h. */ 25458#include <apr.h> 25459 MaTcHtHiS APR_INT64_T_FMT EnDeNd 25460_ACEOF 25461if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25462 $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then : 25463 svn_cv_pycfmt_apr_int64_t="L" 25464fi 25465rm -f conftest* 25466 25467 fi 25468 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 25469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25470/* end confdefs.h. */ 25471r 25472 #include <apr.h> 25473 MaTcHtHiS APR_INT64_T_FMT EnDeNd 25474_ACEOF 25475if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25476 $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then : 25477 svn_cv_pycfmt_apr_int64_t="l" 25478fi 25479rm -f conftest* 25480 25481 fi 25482 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 25483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25484/* end confdefs.h. */ 25485#include <apr.h> 25486 MaTcHtHiS APR_INT64_T_FMT EnDeNd 25487_ACEOF 25488if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25489 $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then : 25490 svn_cv_pycfmt_apr_int64_t="i" 25491fi 25492rm -f conftest* 25493 25494 fi 25495 25496fi 25497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5 25498$as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; } 25499 CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS" 25500 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 25501 as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5 25502 fi 25503 25504cat >>confdefs.h <<_ACEOF 25505#define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t" 25506_ACEOF 25507 25508 fi 25509 25510 if test "$PERL" != "none"; then 25511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5 25512$as_echo_n "checking perl version... " >&6; } 25513 PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`" 25514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5 25515$as_echo "$PERL_VERSION" >&6; } 25516 if test "$PERL_VERSION" -ge "5008000"; then 25517 SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`" 25518 SWIG_PL_LINK="`$PERL -MExtUtils::Embed -e ldopts`" 25519 SWIG_PL_LINK="` 25520 input_flags="$SWIG_PL_LINK" 25521 output_flags="" 25522 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 25523 for flag in $input_flags; do 25524 filter="no" 25525 for dir in $filtered_dirs; do 25526 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 25527 filter="yes" 25528 break 25529 fi 25530 done 25531 if test "$filter" = "no"; then 25532 output_flags="$output_flags $flag" 25533 fi 25534 done 25535 if test -n "$output_flags"; then 25536 printf "%s" "${output_flags# }" 25537 fi 25538`" 25539 else 25540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5 25541$as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;} 25542 fi 25543 fi 25544 25545 SWIG_RB_COMPILE="none" 25546 SWIG_RB_LINK="none" 25547 if test "$RUBY" != "none"; then 25548 rbconfig="$RUBY -rrbconfig -e " 25549 25550 for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \ 25551 rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir 25552 do 25553 rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"` 25554 eval "rbconfig_$var_name=\"$rbconfig_tmp\"" 25555 done 25556 25557 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5 25558$as_echo "$as_me: Configuring Ruby SWIG binding" >&6;} 25559 25560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5 25561$as_echo_n "checking for Ruby include path... " >&6; } 25562if ${svn_cv_ruby_includes+:} false; then : 25563 $as_echo_n "(cached) " >&6 25564else 25565 25566 if test -d "$rbconfig_rubyhdrdir"; then 25567 svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward" 25568 if test -d "$rbconfig_rubyarchhdrdir"; then 25569 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir" 25570 else 25571 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch" 25572 fi 25573 else 25574 svn_cv_ruby_includes="-I. -I$rbconfig_archdir" 25575 fi 25576 25577fi 25578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5 25579$as_echo "$svn_cv_ruby_includes" >&6; } 25580 SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes" 25581 25582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5 25583$as_echo_n "checking how to compile Ruby extensions... " >&6; } 25584if ${svn_cv_ruby_compile+:} false; then : 25585 $as_echo_n "(cached) " >&6 25586else 25587 25588 svn_cv_ruby_compile="$rbconfig_CC $CFLAGS" 25589 25590fi 25591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5 25592$as_echo "$svn_cv_ruby_compile" >&6; } 25593 SWIG_RB_COMPILE="$svn_cv_ruby_compile" 25594 25595 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'` 25596 25597 25598 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'` 25599 25600 25601 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'` 25602 25603 SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast" 25604 25605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5 25606$as_echo_n "checking how to link Ruby extensions... " >&6; } 25607if ${svn_cv_ruby_link+:} false; then : 25608 $as_echo_n "(cached) " >&6 25609else 25610 25611 svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \ 25612 $rbconfig_LDSHARED`" 25613 svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link" 25614 svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT" 25615 25616fi 25617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5 25618$as_echo "$svn_cv_ruby_link" >&6; } 25619 SWIG_RB_LINK="$svn_cv_ruby_link" 25620 25621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5 25622$as_echo_n "checking how to link Ruby libraries... " >&6; } 25623if ${ac_cv_ruby_libs+:} false; then : 25624 $as_echo_n "(cached) " >&6 25625else 25626 25627 ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS" 25628 25629fi 25630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5 25631$as_echo "$ac_cv_ruby_libs" >&6; } 25632 SWIG_RB_LIBS="` 25633 input_flags="$ac_cv_ruby_libs" 25634 output_flags="" 25635 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 25636 for flag in $input_flags; do 25637 filter="no" 25638 for dir in $filtered_dirs; do 25639 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 25640 filter="yes" 25641 break 25642 fi 25643 done 25644 if test "$filter" = "no"; then 25645 output_flags="$output_flags $flag" 25646 fi 25647 done 25648 if test -n "$output_flags"; then 25649 printf "%s" "${output_flags# }" 25650 fi 25651`" 25652 25653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5 25654$as_echo_n "checking for rb_errinfo... " >&6; } 25655 old_CFLAGS="$CFLAGS" 25656 old_LIBS="$LIBS" 25657 CFLAGS="$CFLAGS $svn_cv_ruby_includes" 25658 25659 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'` 25660 25661 25662 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'` 25663 25664 25665 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'` 25666 25667 LIBS="$SWIG_RB_LIBS" 25668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25669/* end confdefs.h. */ 25670 25671#include <ruby.h> 25672int main() 25673{rb_errinfo();} 25674_ACEOF 25675if ac_fn_c_try_link "$LINENO"; then : 25676 have_rb_errinfo="yes" 25677else 25678 have_rb_errinfo="no" 25679fi 25680rm -f core conftest.err conftest.$ac_objext \ 25681 conftest$ac_exeext conftest.$ac_ext 25682 if test "$have_rb_errinfo" = "yes"; then 25683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25684$as_echo "yes" >&6; } 25685 25686$as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h 25687 25688 else 25689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25690$as_echo "no" >&6; } 25691 fi 25692 CFLAGS="$old_CFLAGS" 25693 LIBS="$old_LIBS" 25694 25695 if ${svn_cv_ruby_sitedir+:} false; then : 25696 $as_echo_n "(cached) " >&6 25697else 25698 25699 svn_cv_ruby_sitedir="$rbconfig_sitedir" 25700 25701fi 25702 25703 25704# Check whether --with-ruby-sitedir was given. 25705if test "${with_ruby_sitedir+set}" = set; then : 25706 withval=$with_ruby_sitedir; svn_ruby_installdir="$withval" 25707else 25708 svn_ruby_installdir="$svn_cv_ruby_sitedir" 25709fi 25710 25711 25712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5 25713$as_echo_n "checking where to install Ruby scripts... " >&6; } 25714 if ${svn_cv_ruby_sitedir_libsuffix+:} false; then : 25715 $as_echo_n "(cached) " >&6 25716else 25717 25718 svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \ 25719 $SED -e "s,^$rbconfig_sitedir,,"`" 25720 25721fi 25722 25723 SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}" 25724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5 25725$as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; } 25726 25727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5 25728$as_echo_n "checking where to install Ruby extensions... " >&6; } 25729 if ${svn_cv_ruby_sitedir_archsuffix+:} false; then : 25730 $as_echo_n "(cached) " >&6 25731else 25732 25733 svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \ 25734 $SED -e "s,^$rbconfig_sitedir,,"`" 25735 25736fi 25737 25738 SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}" 25739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5 25740$as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; } 25741 25742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5 25743$as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; } 25744 if ${svn_cv_ruby_test_verbose+:} false; then : 25745 $as_echo_n "(cached) " >&6 25746else 25747 25748 svn_cv_ruby_test_verbose="normal" 25749 25750fi 25751 25752 25753# Check whether --with-ruby-test-verbose was given. 25754if test "${with_ruby_test_verbose+set}" = set; then : 25755 withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval" 25756else 25757 svn_ruby_test_verbose="$svn_cv_ruby_test_verbose" 25758fi 25759 25760 SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose" 25761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5 25762$as_echo "$SWIG_RB_TEST_VERBOSE" >&6; } 25763 fi 25764 fi 25765 25766 25767 25768 25769 25770 25771 25772 25773 25774 25775 25776 25777 25778 25779 25780 ;; 25781 esac 25782 25783else 25784 25785 25786 where=check 25787 25788 if test $where = no; then 25789 SWIG=none 25790 elif test $where = required || test $where = check; then 25791 # Extract the first word of "swig", so it can be a program name with args. 25792set dummy swig; ac_word=$2 25793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25794$as_echo_n "checking for $ac_word... " >&6; } 25795if ${ac_cv_path_SWIG+:} false; then : 25796 $as_echo_n "(cached) " >&6 25797else 25798 case $SWIG in 25799 [\\/]* | ?:[\\/]*) 25800 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 25801 ;; 25802 *) 25803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25804for as_dir in $PATH 25805do 25806 IFS=$as_save_IFS 25807 test -z "$as_dir" && as_dir=. 25808 for ac_exec_ext in '' $ac_executable_extensions; do 25809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25810 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 25811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25812 break 2 25813 fi 25814done 25815 done 25816IFS=$as_save_IFS 25817 25818 test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none" 25819 ;; 25820esac 25821fi 25822SWIG=$ac_cv_path_SWIG 25823if test -n "$SWIG"; then 25824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 25825$as_echo "$SWIG" >&6; } 25826else 25827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25828$as_echo "no" >&6; } 25829fi 25830 25831 25832 if test "$SWIG" = "none" && test $where = required; then 25833 as_fn_error $? "SWIG required, but not found" "$LINENO" 5 25834 fi 25835 else 25836 if test -f "$where"; then 25837 SWIG="$where" 25838 else 25839 SWIG="$where/bin/swig" 25840 fi 25841 if test ! -f "$SWIG" || test ! -x "$SWIG"; then 25842 as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5 25843 fi 25844 fi 25845 25846 if test "$SWIG" != "none"; then 25847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5 25848$as_echo_n "checking swig version... " >&6; } 25849 SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \ 25850 $SED -ne 's/^.*Version \(.*\)$/\1/p'`" 25851 # We want the version as an integer so we can test against 25852 # which version we're using. SWIG doesn't provide this 25853 # to us so we have to come up with it on our own. 25854 # The major is passed straight through, 25855 # the minor is zero padded to two places, 25856 # and the patch level is zero padded to three places. 25857 # e.g. 1.3.24 becomes 103024 25858 SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \ 25859 $SED -e 's/[^0-9\.].*$//' \ 25860 -e 's/\.\([0-9]\)$/.0\1/' \ 25861 -e 's/\.\([0-9][0-9]\)$/.0\1/' \ 25862 -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`" 25863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5 25864$as_echo "$SWIG_VERSION_RAW" >&6; } 25865 # If you change the required swig version number, don't forget to update: 25866 # subversion/bindings/swig/INSTALL 25867 if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then 25868 SWIG_SUITABLE=yes 25869 else 25870 SWIG_SUITABLE=no 25871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5 25872$as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;} 25873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG >= 1.3.24" >&5 25874$as_echo "$as_me: WARNING: Subversion requires SWIG >= 1.3.24" >&2;} 25875 fi 25876 25877 SWIG_PY_COMPILE="none" 25878 SWIG_PY_LINK="none" 25879 if test "$PYTHON" != "none"; then 25880 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5 25881$as_echo "$as_me: Configuring python swig binding" >&6;} 25882 25883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5 25884$as_echo_n "checking for Python includes... " >&6; } 25885if ${ac_cv_python_includes+:} false; then : 25886 $as_echo_n "(cached) " >&6 25887else 25888 25889 ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`" 25890 25891fi 25892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5 25893$as_echo "$ac_cv_python_includes" >&6; } 25894 SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes" 25895 25896 if test "$ac_cv_python_includes" = "none"; then 25897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5 25898$as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;} 25899 fi 25900 25901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5 25902$as_echo_n "checking for compiling Python extensions... " >&6; } 25903if ${ac_cv_python_compile+:} false; then : 25904 $as_echo_n "(cached) " >&6 25905else 25906 25907 ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`" 25908 25909fi 25910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5 25911$as_echo "$ac_cv_python_compile" >&6; } 25912 SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS" 25913 25914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5 25915$as_echo_n "checking for linking Python extensions... " >&6; } 25916if ${ac_cv_python_link+:} false; then : 25917 $as_echo_n "(cached) " >&6 25918else 25919 25920 ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`" 25921 25922fi 25923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5 25924$as_echo "$ac_cv_python_link" >&6; } 25925 SWIG_PY_LINK="$ac_cv_python_link" 25926 25927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5 25928$as_echo_n "checking for linking Python libraries... " >&6; } 25929if ${ac_cv_python_libs+:} false; then : 25930 $as_echo_n "(cached) " >&6 25931else 25932 25933 ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`" 25934 25935fi 25936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5 25937$as_echo "$ac_cv_python_libs" >&6; } 25938 SWIG_PY_LIBS="` 25939 input_flags="$ac_cv_python_libs" 25940 output_flags="" 25941 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 25942 for flag in $input_flags; do 25943 filter="no" 25944 for dir in $filtered_dirs; do 25945 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 25946 filter="yes" 25947 break 25948 fi 25949 done 25950 if test "$filter" = "no"; then 25951 output_flags="$output_flags $flag" 25952 fi 25953 done 25954 if test -n "$output_flags"; then 25955 printf "%s" "${output_flags# }" 25956 fi 25957`" 25958 25959 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS" 25960 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES" 25961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5 25962$as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; } 25963if ${svn_cv_pycfmt_apr_int64_t+:} false; then : 25964 $as_echo_n "(cached) " >&6 25965else 25966 25967 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 25968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25969/* end confdefs.h. */ 25970#include <apr.h> 25971 MaTcHtHiS APR_INT64_T_FMT EnDeNd 25972_ACEOF 25973if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25974 $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then : 25975 svn_cv_pycfmt_apr_int64_t="L" 25976fi 25977rm -f conftest* 25978 25979 fi 25980 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 25981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25982/* end confdefs.h. */ 25983r 25984 #include <apr.h> 25985 MaTcHtHiS APR_INT64_T_FMT EnDeNd 25986_ACEOF 25987if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25988 $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then : 25989 svn_cv_pycfmt_apr_int64_t="l" 25990fi 25991rm -f conftest* 25992 25993 fi 25994 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 25995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25996/* end confdefs.h. */ 25997#include <apr.h> 25998 MaTcHtHiS APR_INT64_T_FMT EnDeNd 25999_ACEOF 26000if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26001 $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then : 26002 svn_cv_pycfmt_apr_int64_t="i" 26003fi 26004rm -f conftest* 26005 26006 fi 26007 26008fi 26009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5 26010$as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; } 26011 CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS" 26012 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 26013 as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5 26014 fi 26015 26016cat >>confdefs.h <<_ACEOF 26017#define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t" 26018_ACEOF 26019 26020 fi 26021 26022 if test "$PERL" != "none"; then 26023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5 26024$as_echo_n "checking perl version... " >&6; } 26025 PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`" 26026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5 26027$as_echo "$PERL_VERSION" >&6; } 26028 if test "$PERL_VERSION" -ge "5008000"; then 26029 SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`" 26030 SWIG_PL_LINK="`$PERL -MExtUtils::Embed -e ldopts`" 26031 SWIG_PL_LINK="` 26032 input_flags="$SWIG_PL_LINK" 26033 output_flags="" 26034 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 26035 for flag in $input_flags; do 26036 filter="no" 26037 for dir in $filtered_dirs; do 26038 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 26039 filter="yes" 26040 break 26041 fi 26042 done 26043 if test "$filter" = "no"; then 26044 output_flags="$output_flags $flag" 26045 fi 26046 done 26047 if test -n "$output_flags"; then 26048 printf "%s" "${output_flags# }" 26049 fi 26050`" 26051 else 26052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5 26053$as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;} 26054 fi 26055 fi 26056 26057 SWIG_RB_COMPILE="none" 26058 SWIG_RB_LINK="none" 26059 if test "$RUBY" != "none"; then 26060 rbconfig="$RUBY -rrbconfig -e " 26061 26062 for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \ 26063 rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir 26064 do 26065 rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"` 26066 eval "rbconfig_$var_name=\"$rbconfig_tmp\"" 26067 done 26068 26069 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5 26070$as_echo "$as_me: Configuring Ruby SWIG binding" >&6;} 26071 26072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5 26073$as_echo_n "checking for Ruby include path... " >&6; } 26074if ${svn_cv_ruby_includes+:} false; then : 26075 $as_echo_n "(cached) " >&6 26076else 26077 26078 if test -d "$rbconfig_rubyhdrdir"; then 26079 svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward" 26080 if test -d "$rbconfig_rubyarchhdrdir"; then 26081 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir" 26082 else 26083 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch" 26084 fi 26085 else 26086 svn_cv_ruby_includes="-I. -I$rbconfig_archdir" 26087 fi 26088 26089fi 26090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5 26091$as_echo "$svn_cv_ruby_includes" >&6; } 26092 SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes" 26093 26094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5 26095$as_echo_n "checking how to compile Ruby extensions... " >&6; } 26096if ${svn_cv_ruby_compile+:} false; then : 26097 $as_echo_n "(cached) " >&6 26098else 26099 26100 svn_cv_ruby_compile="$rbconfig_CC $CFLAGS" 26101 26102fi 26103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5 26104$as_echo "$svn_cv_ruby_compile" >&6; } 26105 SWIG_RB_COMPILE="$svn_cv_ruby_compile" 26106 26107 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'` 26108 26109 26110 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'` 26111 26112 26113 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'` 26114 26115 SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast" 26116 26117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5 26118$as_echo_n "checking how to link Ruby extensions... " >&6; } 26119if ${svn_cv_ruby_link+:} false; then : 26120 $as_echo_n "(cached) " >&6 26121else 26122 26123 svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \ 26124 $rbconfig_LDSHARED`" 26125 svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link" 26126 svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT" 26127 26128fi 26129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5 26130$as_echo "$svn_cv_ruby_link" >&6; } 26131 SWIG_RB_LINK="$svn_cv_ruby_link" 26132 26133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5 26134$as_echo_n "checking how to link Ruby libraries... " >&6; } 26135if ${ac_cv_ruby_libs+:} false; then : 26136 $as_echo_n "(cached) " >&6 26137else 26138 26139 ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS" 26140 26141fi 26142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5 26143$as_echo "$ac_cv_ruby_libs" >&6; } 26144 SWIG_RB_LIBS="` 26145 input_flags="$ac_cv_ruby_libs" 26146 output_flags="" 26147 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 26148 for flag in $input_flags; do 26149 filter="no" 26150 for dir in $filtered_dirs; do 26151 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 26152 filter="yes" 26153 break 26154 fi 26155 done 26156 if test "$filter" = "no"; then 26157 output_flags="$output_flags $flag" 26158 fi 26159 done 26160 if test -n "$output_flags"; then 26161 printf "%s" "${output_flags# }" 26162 fi 26163`" 26164 26165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5 26166$as_echo_n "checking for rb_errinfo... " >&6; } 26167 old_CFLAGS="$CFLAGS" 26168 old_LIBS="$LIBS" 26169 CFLAGS="$CFLAGS $svn_cv_ruby_includes" 26170 26171 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'` 26172 26173 26174 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'` 26175 26176 26177 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'` 26178 26179 LIBS="$SWIG_RB_LIBS" 26180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26181/* end confdefs.h. */ 26182 26183#include <ruby.h> 26184int main() 26185{rb_errinfo();} 26186_ACEOF 26187if ac_fn_c_try_link "$LINENO"; then : 26188 have_rb_errinfo="yes" 26189else 26190 have_rb_errinfo="no" 26191fi 26192rm -f core conftest.err conftest.$ac_objext \ 26193 conftest$ac_exeext conftest.$ac_ext 26194 if test "$have_rb_errinfo" = "yes"; then 26195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26196$as_echo "yes" >&6; } 26197 26198$as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h 26199 26200 else 26201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26202$as_echo "no" >&6; } 26203 fi 26204 CFLAGS="$old_CFLAGS" 26205 LIBS="$old_LIBS" 26206 26207 if ${svn_cv_ruby_sitedir+:} false; then : 26208 $as_echo_n "(cached) " >&6 26209else 26210 26211 svn_cv_ruby_sitedir="$rbconfig_sitedir" 26212 26213fi 26214 26215 26216# Check whether --with-ruby-sitedir was given. 26217if test "${with_ruby_sitedir+set}" = set; then : 26218 withval=$with_ruby_sitedir; svn_ruby_installdir="$withval" 26219else 26220 svn_ruby_installdir="$svn_cv_ruby_sitedir" 26221fi 26222 26223 26224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5 26225$as_echo_n "checking where to install Ruby scripts... " >&6; } 26226 if ${svn_cv_ruby_sitedir_libsuffix+:} false; then : 26227 $as_echo_n "(cached) " >&6 26228else 26229 26230 svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \ 26231 $SED -e "s,^$rbconfig_sitedir,,"`" 26232 26233fi 26234 26235 SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}" 26236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5 26237$as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; } 26238 26239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5 26240$as_echo_n "checking where to install Ruby extensions... " >&6; } 26241 if ${svn_cv_ruby_sitedir_archsuffix+:} false; then : 26242 $as_echo_n "(cached) " >&6 26243else 26244 26245 svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \ 26246 $SED -e "s,^$rbconfig_sitedir,,"`" 26247 26248fi 26249 26250 SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}" 26251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5 26252$as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; } 26253 26254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5 26255$as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; } 26256 if ${svn_cv_ruby_test_verbose+:} false; then : 26257 $as_echo_n "(cached) " >&6 26258else 26259 26260 svn_cv_ruby_test_verbose="normal" 26261 26262fi 26263 26264 26265# Check whether --with-ruby-test-verbose was given. 26266if test "${with_ruby_test_verbose+set}" = set; then : 26267 withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval" 26268else 26269 svn_ruby_test_verbose="$svn_cv_ruby_test_verbose" 26270fi 26271 26272 SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose" 26273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5 26274$as_echo "$SWIG_RB_TEST_VERBOSE" >&6; } 26275 fi 26276 fi 26277 26278 26279 26280 26281 26282 26283 26284 26285 26286 26287 26288 26289 26290 26291 26292 26293fi 26294 26295 26296 26297 26298 26299 26300 26301 26302 26303# Check whether --with-ctypesgen was given. 26304if test "${with_ctypesgen+set}" = set; then : 26305 withval=$with_ctypesgen; 26306 case "$withval" in 26307 "no") 26308 26309 where=no 26310 26311 CTYPESGEN=none 26312 26313 if test $where = check; then 26314 # Extract the first word of ""ctypesgen.py"", so it can be a program name with args. 26315set dummy "ctypesgen.py"; ac_word=$2 26316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26317$as_echo_n "checking for $ac_word... " >&6; } 26318if ${ac_cv_path_CTYPESGEN+:} false; then : 26319 $as_echo_n "(cached) " >&6 26320else 26321 case $CTYPESGEN in 26322 [\\/]* | ?:[\\/]*) 26323 ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path. 26324 ;; 26325 *) 26326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26327for as_dir in $PATH 26328do 26329 IFS=$as_save_IFS 26330 test -z "$as_dir" && as_dir=. 26331 for ac_exec_ext in '' $ac_executable_extensions; do 26332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26333 ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext" 26334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26335 break 2 26336 fi 26337done 26338 done 26339IFS=$as_save_IFS 26340 26341 test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none" 26342 ;; 26343esac 26344fi 26345CTYPESGEN=$ac_cv_path_CTYPESGEN 26346if test -n "$CTYPESGEN"; then 26347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5 26348$as_echo "$CTYPESGEN" >&6; } 26349else 26350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26351$as_echo "no" >&6; } 26352fi 26353 26354 26355 elif test $where != no; then 26356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5 26357$as_echo_n "checking for ctypesgen.py... " >&6; } 26358 26359 if test -f "$where"; then 26360 CTYPESGEN="$where" 26361 elif test -f "$where/bin/ctypesgen.py"; then 26362 CTYPESGEN="$where/bin/ctypesgen.py" 26363 else 26364 CTYPESGEN="$where/ctypesgen.py" 26365 fi 26366 26367 if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then 26368 as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at 26369 $where/bin/ctypesgen.py" "$LINENO" 5 26370 else 26371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5 26372$as_echo "$CTYPESGEN" >&6; } 26373 fi 26374 fi 26375 26376 26377 26378 ;; 26379 "yes") 26380 26381 where=check 26382 26383 CTYPESGEN=none 26384 26385 if test $where = check; then 26386 # Extract the first word of ""ctypesgen.py"", so it can be a program name with args. 26387set dummy "ctypesgen.py"; ac_word=$2 26388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26389$as_echo_n "checking for $ac_word... " >&6; } 26390if ${ac_cv_path_CTYPESGEN+:} false; then : 26391 $as_echo_n "(cached) " >&6 26392else 26393 case $CTYPESGEN in 26394 [\\/]* | ?:[\\/]*) 26395 ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path. 26396 ;; 26397 *) 26398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26399for as_dir in $PATH 26400do 26401 IFS=$as_save_IFS 26402 test -z "$as_dir" && as_dir=. 26403 for ac_exec_ext in '' $ac_executable_extensions; do 26404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26405 ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext" 26406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26407 break 2 26408 fi 26409done 26410 done 26411IFS=$as_save_IFS 26412 26413 test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none" 26414 ;; 26415esac 26416fi 26417CTYPESGEN=$ac_cv_path_CTYPESGEN 26418if test -n "$CTYPESGEN"; then 26419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5 26420$as_echo "$CTYPESGEN" >&6; } 26421else 26422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26423$as_echo "no" >&6; } 26424fi 26425 26426 26427 elif test $where != no; then 26428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5 26429$as_echo_n "checking for ctypesgen.py... " >&6; } 26430 26431 if test -f "$where"; then 26432 CTYPESGEN="$where" 26433 elif test -f "$where/bin/ctypesgen.py"; then 26434 CTYPESGEN="$where/bin/ctypesgen.py" 26435 else 26436 CTYPESGEN="$where/ctypesgen.py" 26437 fi 26438 26439 if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then 26440 as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at 26441 $where/bin/ctypesgen.py" "$LINENO" 5 26442 else 26443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5 26444$as_echo "$CTYPESGEN" >&6; } 26445 fi 26446 fi 26447 26448 26449 26450 ;; 26451 *) 26452 26453 where=$withval 26454 26455 CTYPESGEN=none 26456 26457 if test $where = check; then 26458 # Extract the first word of ""ctypesgen.py"", so it can be a program name with args. 26459set dummy "ctypesgen.py"; ac_word=$2 26460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26461$as_echo_n "checking for $ac_word... " >&6; } 26462if ${ac_cv_path_CTYPESGEN+:} false; then : 26463 $as_echo_n "(cached) " >&6 26464else 26465 case $CTYPESGEN in 26466 [\\/]* | ?:[\\/]*) 26467 ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path. 26468 ;; 26469 *) 26470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26471for as_dir in $PATH 26472do 26473 IFS=$as_save_IFS 26474 test -z "$as_dir" && as_dir=. 26475 for ac_exec_ext in '' $ac_executable_extensions; do 26476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26477 ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext" 26478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26479 break 2 26480 fi 26481done 26482 done 26483IFS=$as_save_IFS 26484 26485 test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none" 26486 ;; 26487esac 26488fi 26489CTYPESGEN=$ac_cv_path_CTYPESGEN 26490if test -n "$CTYPESGEN"; then 26491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5 26492$as_echo "$CTYPESGEN" >&6; } 26493else 26494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26495$as_echo "no" >&6; } 26496fi 26497 26498 26499 elif test $where != no; then 26500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5 26501$as_echo_n "checking for ctypesgen.py... " >&6; } 26502 26503 if test -f "$where"; then 26504 CTYPESGEN="$where" 26505 elif test -f "$where/bin/ctypesgen.py"; then 26506 CTYPESGEN="$where/bin/ctypesgen.py" 26507 else 26508 CTYPESGEN="$where/ctypesgen.py" 26509 fi 26510 26511 if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then 26512 as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at 26513 $where/bin/ctypesgen.py" "$LINENO" 5 26514 else 26515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5 26516$as_echo "$CTYPESGEN" >&6; } 26517 fi 26518 fi 26519 26520 26521 26522 ;; 26523 esac 26524 26525else 26526 26527 26528 where=check 26529 26530 CTYPESGEN=none 26531 26532 if test $where = check; then 26533 # Extract the first word of ""ctypesgen.py"", so it can be a program name with args. 26534set dummy "ctypesgen.py"; ac_word=$2 26535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26536$as_echo_n "checking for $ac_word... " >&6; } 26537if ${ac_cv_path_CTYPESGEN+:} false; then : 26538 $as_echo_n "(cached) " >&6 26539else 26540 case $CTYPESGEN in 26541 [\\/]* | ?:[\\/]*) 26542 ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path. 26543 ;; 26544 *) 26545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26546for as_dir in $PATH 26547do 26548 IFS=$as_save_IFS 26549 test -z "$as_dir" && as_dir=. 26550 for ac_exec_ext in '' $ac_executable_extensions; do 26551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26552 ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext" 26553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26554 break 2 26555 fi 26556done 26557 done 26558IFS=$as_save_IFS 26559 26560 test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none" 26561 ;; 26562esac 26563fi 26564CTYPESGEN=$ac_cv_path_CTYPESGEN 26565if test -n "$CTYPESGEN"; then 26566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5 26567$as_echo "$CTYPESGEN" >&6; } 26568else 26569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26570$as_echo "no" >&6; } 26571fi 26572 26573 26574 elif test $where != no; then 26575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5 26576$as_echo_n "checking for ctypesgen.py... " >&6; } 26577 26578 if test -f "$where"; then 26579 CTYPESGEN="$where" 26580 elif test -f "$where/bin/ctypesgen.py"; then 26581 CTYPESGEN="$where/bin/ctypesgen.py" 26582 else 26583 CTYPESGEN="$where/ctypesgen.py" 26584 fi 26585 26586 if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then 26587 as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at 26588 $where/bin/ctypesgen.py" "$LINENO" 5 26589 else 26590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5 26591$as_echo "$CTYPESGEN" >&6; } 26592 fi 26593 fi 26594 26595 26596 26597 26598fi 26599 26600 26601 26602# Check whether --enable-runtime-module-search was given. 26603if test "${enable_runtime_module_search+set}" = set; then : 26604 enableval=$enable_runtime_module_search; 26605 if test "$enableval" = "yes"; then 26606 use_dso=yes 26607 if test "$svn_enable_shared" = "no"; then 26608 as_fn_error $? "--enable-runtime-module-search conflicts with --disable-shared" "$LINENO" 5 26609 fi 26610 26611$as_echo "#define SVN_USE_DSO 1" >>confdefs.h 26612 26613 26614 case "$host" in 26615 *-*-darwin*) 26616 26617$as_echo "#define SVN_DSO_SUFFIX_FMT \"%d.%d.dylib\"" >>confdefs.h 26618 26619 ;; 26620 *) 26621 26622$as_echo "#define SVN_DSO_SUFFIX_FMT \"%d.so.%d\"" >>confdefs.h 26623 26624 ;; 26625 esac 26626 fi 26627 26628fi 26629 26630 26631if test "$svn_enable_shared" = "no" || test "$use_dso" != "yes"; then 26632 26633$as_echo "#define SVN_LIBSVN_RA_LINKS_RA_LOCAL 1" >>confdefs.h 26634 26635 svn_ra_lib_deps="\$(RA_LOCAL_DEPS)" 26636 svn_ra_lib_install_deps="install-ramod-lib" 26637 svn_ra_lib_link="\$(RA_LOCAL_LINK)" 26638 26639 26640$as_echo "#define SVN_LIBSVN_RA_LINKS_RA_SVN 1" >>confdefs.h 26641 26642 svn_ra_lib_deps="$svn_ra_lib_deps \$(RA_SVN_DEPS)" 26643 svn_ra_lib_link="$svn_ra_lib_link \$(RA_SVN_LINK)" 26644 26645 if test "$svn_lib_serf" = "yes"; then 26646 26647$as_echo "#define SVN_LIBSVN_RA_LINKS_RA_SERF 1" >>confdefs.h 26648 26649 svn_ra_lib_deps="$svn_ra_lib_deps \$(RA_SERF_DEPS)" 26650 svn_ra_lib_install_deps="$svn_ra_lib_install_deps install-serf-lib" 26651 svn_ra_lib_link="$svn_ra_lib_link \$(RA_SERF_LINK)" 26652 fi 26653 26654 SVN_RA_LIB_DEPS=$svn_ra_lib_deps 26655 SVN_RA_LIB_INSTALL_DEPS=$svn_ra_lib_install_deps 26656 SVN_RA_LIB_LINK=$svn_ra_lib_link 26657 26658 26659$as_echo "#define SVN_LIBSVN_FS_LINKS_FS_FS 1" >>confdefs.h 26660 26661 svn_fs_lib_deps="\$(FS_FS_DEPS)" 26662 svn_fs_lib_install_deps="install-fsmod-lib" 26663 svn_fs_lib_link="\$(FS_FS_LINK)" 26664 26665 26666$as_echo "#define SVN_LIBSVN_FS_LINKS_FS_X 1" >>confdefs.h 26667 26668 svn_fs_lib_deps="$svn_fs_lib_deps \$(FS_X_DEPS)" 26669 svn_fs_lib_link="$svn_fs_lib_link \$(FS_X_LINK)" 26670 26671 if test "$svn_lib_berkeley_db" = "yes"; then 26672 26673$as_echo "#define SVN_LIBSVN_FS_LINKS_FS_BASE 1" >>confdefs.h 26674 26675 svn_fs_lib_deps="$svn_fs_lib_deps \$(FS_BASE_DEPS)" 26676 svn_fs_lib_install_deps="$svn_fs_lib_install_deps install-bdb-lib" 26677 svn_fs_lib_link="$svn_fs_lib_link \$(FS_BASE_LINK)" 26678 fi 26679 26680 SVN_FS_LIB_DEPS=$svn_fs_lib_deps 26681 SVN_FS_LIB_INSTALL_DEPS=$svn_fs_lib_install_deps 26682 SVN_FS_LIB_LINK=$svn_fs_lib_link 26683fi 26684 26685 26686 26687 26688 26689 26690 26691 26692# ==== JavaHL ================================================================ 26693 26694do_javahl_build=no 26695# Check whether --enable-javahl was given. 26696if test "${enable_javahl+set}" = set; then : 26697 enableval=$enable_javahl; if test "$enableval" = "yes" ; then 26698 do_javahl_build="yes" 26699 fi 26700 26701fi 26702 26703 26704JAVAHL_OBJDIR="" 26705INSTALL_EXTRA_JAVAHL_LIB="" 26706FIX_JAVAHL_LIB="" 26707JAVAHL_TESTS_TARGET="" 26708JAVAHL_COMPAT_TESTS_TARGET="" 26709LT_CXX_LIBADD="" 26710if test "$do_javahl_build" = "yes"; then 26711 if test "$JDK_SUITABLE" = "no"; then 26712 as_fn_error $? "Cannot compile JavaHL without a suitable JDK. 26713 Please specify a suitable JDK using the --with-jdk option." "$LINENO" 5 26714 fi 26715 26716 JAVAHL_OBJDIR='$(libsvnjavahl_PATH)/.libs' 26717 26718 os_arch=`uname` 26719 if test "$os_arch" = "Darwin"; then 26720 INSTALL_EXTRA_JAVAHL_LIB='ln -sf $(libdir)/libsvnjavahl-1.dylib $(libdir)/libsvnjavahl-1.jnilib' 26721 FIX_JAVAHL_LIB="ln -sf libsvnjavahl-1.dylib $JAVAHL_OBJDIR/libsvnjavahl-1.jnilib" 26722 fi 26723 # This segment (and the rest of r10800) is very likely unnecessary 26724 # with libtool 1.5, which automatically adds libstdc++ as a 26725 # dependency to the C++ libraries it builds. So at some future time 26726 # when autogen.sh requires libtool 1.5 or higher, we can get rid of 26727 # it. 26728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional flags to link C++ libraries" >&5 26729$as_echo_n "checking for additional flags to link C++ libraries... " >&6; } 26730 if test "x$ac_compiler_gnu" = "xyes"; then 26731 case "$host" in 26732 *freebsd10*) 26733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 26734$as_echo "none needed" >&6; } 26735 ;; 26736 *) 26737 LT_CXX_LIBADD="-lstdc++" 26738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LT_CXX_LIBADD" >&5 26739$as_echo "$LT_CXX_LIBADD" >&6; } 26740 ;; 26741 esac 26742 else 26743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 26744$as_echo "none needed" >&6; } 26745 fi 26746fi 26747 26748 26749 26750 26751 26752 26753# Check whether --with-junit was given. 26754if test "${with_junit+set}" = set; then : 26755 withval=$with_junit; 26756 if test "$withval" != "no"; then 26757 if test -n "$JAVA_CLASSPATH"; then 26758 JAVA_CLASSPATH="$withval:$JAVA_CLASSPATH" 26759 else 26760 JAVA_CLASSPATH="$withval" 26761 fi 26762 JAVAHL_TESTS_TARGET="javahl-tests" 26763 JAVAHL_COMPAT_TESTS_TARGET="javahl-compat-tests" 26764 fi 26765 26766fi 26767 26768 26769 26770 26771 26772# ==== Miscellaneous bits ==================================================== 26773 26774for ac_header in stdbool.h stdint.h 26775do : 26776 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26777ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 26778if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 26779 cat >>confdefs.h <<_ACEOF 26780#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26781_ACEOF 26782 26783fi 26784 26785done 26786 26787 26788# Strip '-no-cpp-precomp' from CPPFLAGS for the clang compiler 26789### I think we get this flag from APR, so the fix probably belongs there 26790if test "$CC" = "clang"; then 26791 26792 CPPFLAGS=`echo "$CPPFLAGS" | $SED -e 's/-no-cpp-precomp //'` 26793 26794fi 26795 26796 26797cat >>confdefs.h <<_ACEOF 26798#define SVN_PATH_LOCAL_SEPARATOR '/' 26799_ACEOF 26800 26801 26802 26803cat >>confdefs.h <<_ACEOF 26804#define SVN_NULL_DEVICE_NAME "/dev/null" 26805_ACEOF 26806 26807 26808DEFAULT_FS_TYPE="fsfs" 26809 26810cat >>confdefs.h <<_ACEOF 26811#define DEFAULT_FS_TYPE "$DEFAULT_FS_TYPE" 26812_ACEOF 26813 26814 26815DEFAULT_HTTP_LIBRARY="serf" 26816 26817cat >>confdefs.h <<_ACEOF 26818#define DEFAULT_HTTP_LIBRARY "$DEFAULT_HTTP_LIBRARY" 26819_ACEOF 26820 26821 26822# BSD/OS (BSDi) needs to use a different include syntax in Makefile 26823INCLUDE_OUTPUTS="include \$(top_srcdir)/build-outputs.mk" 26824case "$host" in 26825 *bsdi*) 26826 # Check whether they've installed GNU make 26827 if ! make --version > /dev/null 2>&1; then 26828 # BSDi make 26829 INCLUDE_OUTPUTS=".include \"\$(top_srcdir)/build-outputs.mk\"" 26830 fi 26831 ;; 26832esac 26833 26834 26835# ==== Detection complete - output and run config.status ===================== 26836 26837ac_config_headers="$ac_config_headers subversion/svn_private_config.h.tmp:subversion/svn_private_config.h.in" 26838 26839ac_config_commands="$ac_config_commands svn_private_config.h.tmp" 26840 26841ac_config_files="$ac_config_files Makefile" 26842 26843 26844# Create pkg-config .pc files from .pc.in files 26845for pc_in_file in "${abs_srcdir}"/subversion/libsvn_*/*.pc.in; do 26846 pc_file=${pc_in_file#${abs_srcdir}/} 26847 pc_file=${pc_file%.in} 26848 ac_config_files="$ac_config_files ${pc_file}" 26849 26850done 26851 26852 26853 SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES tools/backup/hot-backup.py" 26854 ac_config_files="$ac_config_files tools/backup/hot-backup.py" 26855 26856 26857 SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES tools/hook-scripts/commit-access-control.pl" 26858 ac_config_files="$ac_config_files tools/hook-scripts/commit-access-control.pl" 26859 26860 26861 SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES subversion/bindings/swig/perl/native/Makefile.PL" 26862 ac_config_files="$ac_config_files subversion/bindings/swig/perl/native/Makefile.PL" 26863 26864if test -e packages/solaris/pkginfo.in; then 26865 26866 SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES packages/solaris/pkginfo" 26867 ac_config_files="$ac_config_files packages/solaris/pkginfo" 26868 26869fi 26870 26871 26872# Ensure that SWIG is checked after reconfiguration. 26873rm -f .swig_checked 26874 26875 26876cat >>confdefs.h <<_ACEOF 26877#define SVN_BUILD_HOST "${host}" 26878_ACEOF 26879 26880 26881 26882cat >>confdefs.h <<_ACEOF 26883#define SVN_BUILD_TARGET "${target}" 26884_ACEOF 26885 26886 26887cat >confcache <<\_ACEOF 26888# This file is a shell script that caches the results of configure 26889# tests run on this system so they can be shared between configure 26890# scripts and configure runs, see configure's option --config-cache. 26891# It is not useful on other systems. If it contains results you don't 26892# want to keep, you may remove or edit it. 26893# 26894# config.status only pays attention to the cache file if you give it 26895# the --recheck option to rerun configure. 26896# 26897# `ac_cv_env_foo' variables (set or unset) will be overridden when 26898# loading this file, other *unset* `ac_cv_foo' will be assigned the 26899# following values. 26900 26901_ACEOF 26902 26903# The following way of writing the cache mishandles newlines in values, 26904# but we know of no workaround that is simple, portable, and efficient. 26905# So, we kill variables containing newlines. 26906# Ultrix sh set writes to stderr and can't be redirected directly, 26907# and sets the high bit in the cache file unless we assign to the vars. 26908( 26909 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 26910 eval ac_val=\$$ac_var 26911 case $ac_val in #( 26912 *${as_nl}*) 26913 case $ac_var in #( 26914 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 26915$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 26916 esac 26917 case $ac_var in #( 26918 _ | IFS | as_nl) ;; #( 26919 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 26920 *) { eval $ac_var=; unset $ac_var;} ;; 26921 esac ;; 26922 esac 26923 done 26924 26925 (set) 2>&1 | 26926 case $as_nl`(ac_space=' '; set) 2>&1` in #( 26927 *${as_nl}ac_space=\ *) 26928 # `set' does not quote correctly, so add quotes: double-quote 26929 # substitution turns \\\\ into \\, and sed turns \\ into \. 26930 sed -n \ 26931 "s/'/'\\\\''/g; 26932 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 26933 ;; #( 26934 *) 26935 # `set' quotes correctly as required by POSIX, so do not add quotes. 26936 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 26937 ;; 26938 esac | 26939 sort 26940) | 26941 sed ' 26942 /^ac_cv_env_/b end 26943 t clear 26944 :clear 26945 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 26946 t end 26947 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 26948 :end' >>confcache 26949if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 26950 if test -w "$cache_file"; then 26951 if test "x$cache_file" != "x/dev/null"; then 26952 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 26953$as_echo "$as_me: updating cache $cache_file" >&6;} 26954 if test ! -f "$cache_file" || test -h "$cache_file"; then 26955 cat confcache >"$cache_file" 26956 else 26957 case $cache_file in #( 26958 */* | ?:*) 26959 mv -f confcache "$cache_file"$$ && 26960 mv -f "$cache_file"$$ "$cache_file" ;; #( 26961 *) 26962 mv -f confcache "$cache_file" ;; 26963 esac 26964 fi 26965 fi 26966 else 26967 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 26968$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 26969 fi 26970fi 26971rm -f confcache 26972 26973test "x$prefix" = xNONE && prefix=$ac_default_prefix 26974# Let make expand exec_prefix. 26975test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 26976 26977DEFS=-DHAVE_CONFIG_H 26978 26979ac_libobjs= 26980ac_ltlibobjs= 26981U= 26982for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 26983 # 1. Remove the extension, and $U if already installed. 26984 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 26985 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 26986 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 26987 # will be set to the directory where LIBOBJS objects are built. 26988 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 26989 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 26990done 26991LIBOBJS=$ac_libobjs 26992 26993LTLIBOBJS=$ac_ltlibobjs 26994 26995 26996 26997: "${CONFIG_STATUS=./config.status}" 26998ac_write_fail=0 26999ac_clean_files_save=$ac_clean_files 27000ac_clean_files="$ac_clean_files $CONFIG_STATUS" 27001{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 27002$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 27003as_write_fail=0 27004cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 27005#! $SHELL 27006# Generated by $as_me. 27007# Run this file to recreate the current configuration. 27008# Compiler output produced by configure, useful for debugging 27009# configure, is in config.log if it exists. 27010 27011debug=false 27012ac_cs_recheck=false 27013ac_cs_silent=false 27014 27015SHELL=\${CONFIG_SHELL-$SHELL} 27016export SHELL 27017_ASEOF 27018cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 27019## -------------------- ## 27020## M4sh Initialization. ## 27021## -------------------- ## 27022 27023# Be more Bourne compatible 27024DUALCASE=1; export DUALCASE # for MKS sh 27025if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 27026 emulate sh 27027 NULLCMD=: 27028 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 27029 # is contrary to our usage. Disable this feature. 27030 alias -g '${1+"$@"}'='"$@"' 27031 setopt NO_GLOB_SUBST 27032else 27033 case `(set -o) 2>/dev/null` in #( 27034 *posix*) : 27035 set -o posix ;; #( 27036 *) : 27037 ;; 27038esac 27039fi 27040 27041 27042as_nl=' 27043' 27044export as_nl 27045# Printing a long string crashes Solaris 7 /usr/bin/printf. 27046as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 27047as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 27048as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 27049# Prefer a ksh shell builtin over an external printf program on Solaris, 27050# but without wasting forks for bash or zsh. 27051if test -z "$BASH_VERSION$ZSH_VERSION" \ 27052 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 27053 as_echo='print -r --' 27054 as_echo_n='print -rn --' 27055elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 27056 as_echo='printf %s\n' 27057 as_echo_n='printf %s' 27058else 27059 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 27060 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 27061 as_echo_n='/usr/ucb/echo -n' 27062 else 27063 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 27064 as_echo_n_body='eval 27065 arg=$1; 27066 case $arg in #( 27067 *"$as_nl"*) 27068 expr "X$arg" : "X\\(.*\\)$as_nl"; 27069 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 27070 esac; 27071 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 27072 ' 27073 export as_echo_n_body 27074 as_echo_n='sh -c $as_echo_n_body as_echo' 27075 fi 27076 export as_echo_body 27077 as_echo='sh -c $as_echo_body as_echo' 27078fi 27079 27080# The user is always right. 27081if test "${PATH_SEPARATOR+set}" != set; then 27082 PATH_SEPARATOR=: 27083 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 27084 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 27085 PATH_SEPARATOR=';' 27086 } 27087fi 27088 27089 27090# IFS 27091# We need space, tab and new line, in precisely that order. Quoting is 27092# there to prevent editors from complaining about space-tab. 27093# (If _AS_PATH_WALK were called with IFS unset, it would disable word 27094# splitting by setting IFS to empty value.) 27095IFS=" "" $as_nl" 27096 27097# Find who we are. Look in the path if we contain no directory separator. 27098as_myself= 27099case $0 in #(( 27100 *[\\/]* ) as_myself=$0 ;; 27101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27102for as_dir in $PATH 27103do 27104 IFS=$as_save_IFS 27105 test -z "$as_dir" && as_dir=. 27106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 27107 done 27108IFS=$as_save_IFS 27109 27110 ;; 27111esac 27112# We did not find ourselves, most probably we were run as `sh COMMAND' 27113# in which case we are not to be found in the path. 27114if test "x$as_myself" = x; then 27115 as_myself=$0 27116fi 27117if test ! -f "$as_myself"; then 27118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 27119 exit 1 27120fi 27121 27122# Unset variables that we do not need and which cause bugs (e.g. in 27123# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 27124# suppresses any "Segmentation fault" message there. '((' could 27125# trigger a bug in pdksh 5.2.14. 27126for as_var in BASH_ENV ENV MAIL MAILPATH 27127do eval test x\${$as_var+set} = xset \ 27128 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 27129done 27130PS1='$ ' 27131PS2='> ' 27132PS4='+ ' 27133 27134# NLS nuisances. 27135LC_ALL=C 27136export LC_ALL 27137LANGUAGE=C 27138export LANGUAGE 27139 27140# CDPATH. 27141(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 27142 27143 27144# as_fn_error STATUS ERROR [LINENO LOG_FD] 27145# ---------------------------------------- 27146# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 27147# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 27148# script with STATUS, using 1 if that was 0. 27149as_fn_error () 27150{ 27151 as_status=$1; test $as_status -eq 0 && as_status=1 27152 if test "$4"; then 27153 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 27154 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 27155 fi 27156 $as_echo "$as_me: error: $2" >&2 27157 as_fn_exit $as_status 27158} # as_fn_error 27159 27160 27161# as_fn_set_status STATUS 27162# ----------------------- 27163# Set $? to STATUS, without forking. 27164as_fn_set_status () 27165{ 27166 return $1 27167} # as_fn_set_status 27168 27169# as_fn_exit STATUS 27170# ----------------- 27171# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 27172as_fn_exit () 27173{ 27174 set +e 27175 as_fn_set_status $1 27176 exit $1 27177} # as_fn_exit 27178 27179# as_fn_unset VAR 27180# --------------- 27181# Portably unset VAR. 27182as_fn_unset () 27183{ 27184 { eval $1=; unset $1;} 27185} 27186as_unset=as_fn_unset 27187# as_fn_append VAR VALUE 27188# ---------------------- 27189# Append the text in VALUE to the end of the definition contained in VAR. Take 27190# advantage of any shell optimizations that allow amortized linear growth over 27191# repeated appends, instead of the typical quadratic growth present in naive 27192# implementations. 27193if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 27194 eval 'as_fn_append () 27195 { 27196 eval $1+=\$2 27197 }' 27198else 27199 as_fn_append () 27200 { 27201 eval $1=\$$1\$2 27202 } 27203fi # as_fn_append 27204 27205# as_fn_arith ARG... 27206# ------------------ 27207# Perform arithmetic evaluation on the ARGs, and store the result in the 27208# global $as_val. Take advantage of shells that can avoid forks. The arguments 27209# must be portable across $(()) and expr. 27210if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 27211 eval 'as_fn_arith () 27212 { 27213 as_val=$(( $* )) 27214 }' 27215else 27216 as_fn_arith () 27217 { 27218 as_val=`expr "$@" || test $? -eq 1` 27219 } 27220fi # as_fn_arith 27221 27222 27223if expr a : '\(a\)' >/dev/null 2>&1 && 27224 test "X`expr 00001 : '.*\(...\)'`" = X001; then 27225 as_expr=expr 27226else 27227 as_expr=false 27228fi 27229 27230if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 27231 as_basename=basename 27232else 27233 as_basename=false 27234fi 27235 27236if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 27237 as_dirname=dirname 27238else 27239 as_dirname=false 27240fi 27241 27242as_me=`$as_basename -- "$0" || 27243$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 27244 X"$0" : 'X\(//\)$' \| \ 27245 X"$0" : 'X\(/\)' \| . 2>/dev/null || 27246$as_echo X/"$0" | 27247 sed '/^.*\/\([^/][^/]*\)\/*$/{ 27248 s//\1/ 27249 q 27250 } 27251 /^X\/\(\/\/\)$/{ 27252 s//\1/ 27253 q 27254 } 27255 /^X\/\(\/\).*/{ 27256 s//\1/ 27257 q 27258 } 27259 s/.*/./; q'` 27260 27261# Avoid depending upon Character Ranges. 27262as_cr_letters='abcdefghijklmnopqrstuvwxyz' 27263as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 27264as_cr_Letters=$as_cr_letters$as_cr_LETTERS 27265as_cr_digits='0123456789' 27266as_cr_alnum=$as_cr_Letters$as_cr_digits 27267 27268ECHO_C= ECHO_N= ECHO_T= 27269case `echo -n x` in #((((( 27270-n*) 27271 case `echo 'xy\c'` in 27272 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 27273 xy) ECHO_C='\c';; 27274 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 27275 ECHO_T=' ';; 27276 esac;; 27277*) 27278 ECHO_N='-n';; 27279esac 27280 27281rm -f conf$$ conf$$.exe conf$$.file 27282if test -d conf$$.dir; then 27283 rm -f conf$$.dir/conf$$.file 27284else 27285 rm -f conf$$.dir 27286 mkdir conf$$.dir 2>/dev/null 27287fi 27288if (echo >conf$$.file) 2>/dev/null; then 27289 if ln -s conf$$.file conf$$ 2>/dev/null; then 27290 as_ln_s='ln -s' 27291 # ... but there are two gotchas: 27292 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 27293 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 27294 # In both cases, we have to default to `cp -pR'. 27295 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 27296 as_ln_s='cp -pR' 27297 elif ln conf$$.file conf$$ 2>/dev/null; then 27298 as_ln_s=ln 27299 else 27300 as_ln_s='cp -pR' 27301 fi 27302else 27303 as_ln_s='cp -pR' 27304fi 27305rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 27306rmdir conf$$.dir 2>/dev/null 27307 27308 27309# as_fn_mkdir_p 27310# ------------- 27311# Create "$as_dir" as a directory, including parents if necessary. 27312as_fn_mkdir_p () 27313{ 27314 27315 case $as_dir in #( 27316 -*) as_dir=./$as_dir;; 27317 esac 27318 test -d "$as_dir" || eval $as_mkdir_p || { 27319 as_dirs= 27320 while :; do 27321 case $as_dir in #( 27322 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 27323 *) as_qdir=$as_dir;; 27324 esac 27325 as_dirs="'$as_qdir' $as_dirs" 27326 as_dir=`$as_dirname -- "$as_dir" || 27327$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27328 X"$as_dir" : 'X\(//\)[^/]' \| \ 27329 X"$as_dir" : 'X\(//\)$' \| \ 27330 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 27331$as_echo X"$as_dir" | 27332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 27333 s//\1/ 27334 q 27335 } 27336 /^X\(\/\/\)[^/].*/{ 27337 s//\1/ 27338 q 27339 } 27340 /^X\(\/\/\)$/{ 27341 s//\1/ 27342 q 27343 } 27344 /^X\(\/\).*/{ 27345 s//\1/ 27346 q 27347 } 27348 s/.*/./; q'` 27349 test -d "$as_dir" && break 27350 done 27351 test -z "$as_dirs" || eval "mkdir $as_dirs" 27352 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 27353 27354 27355} # as_fn_mkdir_p 27356if mkdir -p . 2>/dev/null; then 27357 as_mkdir_p='mkdir -p "$as_dir"' 27358else 27359 test -d ./-p && rmdir ./-p 27360 as_mkdir_p=false 27361fi 27362 27363 27364# as_fn_executable_p FILE 27365# ----------------------- 27366# Test if FILE is an executable regular file. 27367as_fn_executable_p () 27368{ 27369 test -f "$1" && test -x "$1" 27370} # as_fn_executable_p 27371as_test_x='test -x' 27372as_executable_p=as_fn_executable_p 27373 27374# Sed expression to map a string onto a valid CPP name. 27375as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 27376 27377# Sed expression to map a string onto a valid variable name. 27378as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 27379 27380 27381exec 6>&1 27382## ----------------------------------- ## 27383## Main body of $CONFIG_STATUS script. ## 27384## ----------------------------------- ## 27385_ASEOF 27386test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 27387 27388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27389# Save the log message, to keep $0 and so on meaningful, and to 27390# report actual input values of CONFIG_FILES etc. instead of their 27391# values after options handling. 27392ac_log=" 27393This file was extended by subversion $as_me 1.10.0, which was 27394generated by GNU Autoconf 2.69. Invocation command line was 27395 27396 CONFIG_FILES = $CONFIG_FILES 27397 CONFIG_HEADERS = $CONFIG_HEADERS 27398 CONFIG_LINKS = $CONFIG_LINKS 27399 CONFIG_COMMANDS = $CONFIG_COMMANDS 27400 $ $0 $@ 27401 27402on `(hostname || uname -n) 2>/dev/null | sed 1q` 27403" 27404 27405_ACEOF 27406 27407case $ac_config_files in *" 27408"*) set x $ac_config_files; shift; ac_config_files=$*;; 27409esac 27410 27411case $ac_config_headers in *" 27412"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 27413esac 27414 27415 27416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27417# Files that config.status was made for. 27418config_files="$ac_config_files" 27419config_headers="$ac_config_headers" 27420config_commands="$ac_config_commands" 27421 27422_ACEOF 27423 27424cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27425ac_cs_usage="\ 27426\`$as_me' instantiates files and other configuration actions 27427from templates according to the current configuration. Unless the files 27428and actions are specified as TAGs, all are instantiated by default. 27429 27430Usage: $0 [OPTION]... [TAG]... 27431 27432 -h, --help print this help, then exit 27433 -V, --version print version number and configuration settings, then exit 27434 --config print configuration, then exit 27435 -q, --quiet, --silent 27436 do not print progress messages 27437 -d, --debug don't remove temporary files 27438 --recheck update $as_me by reconfiguring in the same conditions 27439 --file=FILE[:TEMPLATE] 27440 instantiate the configuration file FILE 27441 --header=FILE[:TEMPLATE] 27442 instantiate the configuration header FILE 27443 27444Configuration files: 27445$config_files 27446 27447Configuration headers: 27448$config_headers 27449 27450Configuration commands: 27451$config_commands 27452 27453Report bugs to <http://subversion.apache.org/>." 27454 27455_ACEOF 27456cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27457ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 27458ac_cs_version="\\ 27459subversion config.status 1.10.0 27460configured by $0, generated by GNU Autoconf 2.69, 27461 with options \\"\$ac_cs_config\\" 27462 27463Copyright (C) 2012 Free Software Foundation, Inc. 27464This config.status script is free software; the Free Software Foundation 27465gives unlimited permission to copy, distribute and modify it." 27466 27467ac_pwd='$ac_pwd' 27468srcdir='$srcdir' 27469INSTALL='$INSTALL' 27470AWK='$AWK' 27471test -n "\$AWK" || AWK=awk 27472_ACEOF 27473 27474cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27475# The default lists apply if the user does not specify any file. 27476ac_need_defaults=: 27477while test $# != 0 27478do 27479 case $1 in 27480 --*=?*) 27481 ac_option=`expr "X$1" : 'X\([^=]*\)='` 27482 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 27483 ac_shift=: 27484 ;; 27485 --*=) 27486 ac_option=`expr "X$1" : 'X\([^=]*\)='` 27487 ac_optarg= 27488 ac_shift=: 27489 ;; 27490 *) 27491 ac_option=$1 27492 ac_optarg=$2 27493 ac_shift=shift 27494 ;; 27495 esac 27496 27497 case $ac_option in 27498 # Handling of the options. 27499 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 27500 ac_cs_recheck=: ;; 27501 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 27502 $as_echo "$ac_cs_version"; exit ;; 27503 --config | --confi | --conf | --con | --co | --c ) 27504 $as_echo "$ac_cs_config"; exit ;; 27505 --debug | --debu | --deb | --de | --d | -d ) 27506 debug=: ;; 27507 --file | --fil | --fi | --f ) 27508 $ac_shift 27509 case $ac_optarg in 27510 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 27511 '') as_fn_error $? "missing file argument" ;; 27512 esac 27513 as_fn_append CONFIG_FILES " '$ac_optarg'" 27514 ac_need_defaults=false;; 27515 --header | --heade | --head | --hea ) 27516 $ac_shift 27517 case $ac_optarg in 27518 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 27519 esac 27520 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 27521 ac_need_defaults=false;; 27522 --he | --h) 27523 # Conflict between --help and --header 27524 as_fn_error $? "ambiguous option: \`$1' 27525Try \`$0 --help' for more information.";; 27526 --help | --hel | -h ) 27527 $as_echo "$ac_cs_usage"; exit ;; 27528 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 27529 | -silent | --silent | --silen | --sile | --sil | --si | --s) 27530 ac_cs_silent=: ;; 27531 27532 # This is an error. 27533 -*) as_fn_error $? "unrecognized option: \`$1' 27534Try \`$0 --help' for more information." ;; 27535 27536 *) as_fn_append ac_config_targets " $1" 27537 ac_need_defaults=false ;; 27538 27539 esac 27540 shift 27541done 27542 27543ac_configure_extra_args= 27544 27545if $ac_cs_silent; then 27546 exec 6>/dev/null 27547 ac_configure_extra_args="$ac_configure_extra_args --silent" 27548fi 27549 27550_ACEOF 27551cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27552if \$ac_cs_recheck; then 27553 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 27554 shift 27555 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 27556 CONFIG_SHELL='$SHELL' 27557 export CONFIG_SHELL 27558 exec "\$@" 27559fi 27560 27561_ACEOF 27562cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27563exec 5>>config.log 27564{ 27565 echo 27566 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 27567## Running $as_me. ## 27568_ASBOX 27569 $as_echo "$ac_log" 27570} >&5 27571 27572_ACEOF 27573cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27574# 27575# INIT-COMMANDS 27576# 27577 27578 27579# The HP-UX ksh and POSIX shell print the target directory to stdout 27580# if CDPATH is set. 27581(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 27582 27583sed_quote_subst='$sed_quote_subst' 27584double_quote_subst='$double_quote_subst' 27585delay_variable_subst='$delay_variable_subst' 27586macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 27587macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 27588enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 27589enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 27590pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 27591enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 27592shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 27593SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 27594ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 27595PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 27596host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 27597host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 27598host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 27599build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 27600build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 27601build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 27602SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 27603Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 27604GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 27605EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 27606FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 27607LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 27608NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 27609LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 27610max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 27611ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 27612exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 27613lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 27614lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 27615lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 27616lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 27617lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 27618reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 27619reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 27620OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 27621deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 27622file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 27623file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 27624want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 27625DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 27626sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 27627AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 27628AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 27629archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 27630STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 27631RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 27632old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 27633old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 27634old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 27635lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 27636CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 27637CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 27638compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 27639GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 27640lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 27641lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 27642lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 27643lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 27644lt_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"`' 27645lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 27646nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 27647lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 27648lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 27649objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 27650MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 27651lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 27652lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 27653lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 27654lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 27655lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 27656need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 27657MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 27658DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 27659NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 27660LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 27661OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 27662OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 27663libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 27664shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 27665extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 27666archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 27667enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 27668export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 27669whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 27670compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 27671old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 27672old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 27673archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 27674archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 27675module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 27676module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 27677with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 27678allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 27679no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 27680hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 27681hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 27682hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 27683hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 27684hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 27685hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 27686hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 27687inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 27688link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 27689always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 27690export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 27691exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 27692include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 27693prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 27694postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 27695file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 27696variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 27697need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 27698need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 27699version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 27700runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 27701shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 27702shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 27703libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 27704library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 27705soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 27706install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 27707postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 27708postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 27709finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 27710finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 27711hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 27712sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 27713configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 27714configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 27715hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 27716enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 27717enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 27718enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 27719old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 27720striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 27721compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 27722predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 27723postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 27724predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 27725postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 27726compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 27727LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 27728reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 27729reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 27730old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 27731compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 27732GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 27733lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 27734lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 27735lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 27736lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 27737lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 27738archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 27739enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 27740export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 27741whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 27742compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 27743old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 27744old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 27745archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 27746archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 27747module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 27748module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 27749with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 27750allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 27751no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 27752hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 27753hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 27754hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 27755hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 27756hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 27757hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 27758hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 27759inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 27760link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 27761always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 27762export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 27763exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 27764include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 27765prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 27766postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 27767file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 27768hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 27769compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 27770predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 27771postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 27772predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 27773postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 27774compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 27775 27776LTCC='$LTCC' 27777LTCFLAGS='$LTCFLAGS' 27778compiler='$compiler_DEFAULT' 27779 27780# A function that is used when there is no print builtin or printf. 27781func_fallback_echo () 27782{ 27783 eval 'cat <<_LTECHO_EOF 27784\$1 27785_LTECHO_EOF' 27786} 27787 27788# Quote evaled strings. 27789for var in SHELL \ 27790ECHO \ 27791PATH_SEPARATOR \ 27792SED \ 27793GREP \ 27794EGREP \ 27795FGREP \ 27796LD \ 27797NM \ 27798LN_S \ 27799lt_SP2NL \ 27800lt_NL2SP \ 27801reload_flag \ 27802OBJDUMP \ 27803deplibs_check_method \ 27804file_magic_cmd \ 27805file_magic_glob \ 27806want_nocaseglob \ 27807DLLTOOL \ 27808sharedlib_from_linklib_cmd \ 27809AR \ 27810AR_FLAGS \ 27811archiver_list_spec \ 27812STRIP \ 27813RANLIB \ 27814CC \ 27815CFLAGS \ 27816compiler \ 27817lt_cv_sys_global_symbol_pipe \ 27818lt_cv_sys_global_symbol_to_cdecl \ 27819lt_cv_sys_global_symbol_to_import \ 27820lt_cv_sys_global_symbol_to_c_name_address \ 27821lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 27822lt_cv_nm_interface \ 27823nm_file_list_spec \ 27824lt_cv_truncate_bin \ 27825lt_prog_compiler_no_builtin_flag \ 27826lt_prog_compiler_pic \ 27827lt_prog_compiler_wl \ 27828lt_prog_compiler_static \ 27829lt_cv_prog_compiler_c_o \ 27830need_locks \ 27831MANIFEST_TOOL \ 27832DSYMUTIL \ 27833NMEDIT \ 27834LIPO \ 27835OTOOL \ 27836OTOOL64 \ 27837shrext_cmds \ 27838export_dynamic_flag_spec \ 27839whole_archive_flag_spec \ 27840compiler_needs_object \ 27841with_gnu_ld \ 27842allow_undefined_flag \ 27843no_undefined_flag \ 27844hardcode_libdir_flag_spec \ 27845hardcode_libdir_separator \ 27846exclude_expsyms \ 27847include_expsyms \ 27848file_list_spec \ 27849variables_saved_for_relink \ 27850libname_spec \ 27851library_names_spec \ 27852soname_spec \ 27853install_override_mode \ 27854finish_eval \ 27855old_striplib \ 27856striplib \ 27857compiler_lib_search_dirs \ 27858predep_objects \ 27859postdep_objects \ 27860predeps \ 27861postdeps \ 27862compiler_lib_search_path \ 27863LD_CXX \ 27864reload_flag_CXX \ 27865compiler_CXX \ 27866lt_prog_compiler_no_builtin_flag_CXX \ 27867lt_prog_compiler_pic_CXX \ 27868lt_prog_compiler_wl_CXX \ 27869lt_prog_compiler_static_CXX \ 27870lt_cv_prog_compiler_c_o_CXX \ 27871export_dynamic_flag_spec_CXX \ 27872whole_archive_flag_spec_CXX \ 27873compiler_needs_object_CXX \ 27874with_gnu_ld_CXX \ 27875allow_undefined_flag_CXX \ 27876no_undefined_flag_CXX \ 27877hardcode_libdir_flag_spec_CXX \ 27878hardcode_libdir_separator_CXX \ 27879exclude_expsyms_CXX \ 27880include_expsyms_CXX \ 27881file_list_spec_CXX \ 27882compiler_lib_search_dirs_CXX \ 27883predep_objects_CXX \ 27884postdep_objects_CXX \ 27885predeps_CXX \ 27886postdeps_CXX \ 27887compiler_lib_search_path_CXX; do 27888 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 27889 *[\\\\\\\`\\"\\\$]*) 27890 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 27891 ;; 27892 *) 27893 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 27894 ;; 27895 esac 27896done 27897 27898# Double-quote double-evaled strings. 27899for var in reload_cmds \ 27900old_postinstall_cmds \ 27901old_postuninstall_cmds \ 27902old_archive_cmds \ 27903extract_expsyms_cmds \ 27904old_archive_from_new_cmds \ 27905old_archive_from_expsyms_cmds \ 27906archive_cmds \ 27907archive_expsym_cmds \ 27908module_cmds \ 27909module_expsym_cmds \ 27910export_symbols_cmds \ 27911prelink_cmds \ 27912postlink_cmds \ 27913postinstall_cmds \ 27914postuninstall_cmds \ 27915finish_cmds \ 27916sys_lib_search_path_spec \ 27917configure_time_dlsearch_path \ 27918configure_time_lt_sys_library_path \ 27919reload_cmds_CXX \ 27920old_archive_cmds_CXX \ 27921old_archive_from_new_cmds_CXX \ 27922old_archive_from_expsyms_cmds_CXX \ 27923archive_cmds_CXX \ 27924archive_expsym_cmds_CXX \ 27925module_cmds_CXX \ 27926module_expsym_cmds_CXX \ 27927export_symbols_cmds_CXX \ 27928prelink_cmds_CXX \ 27929postlink_cmds_CXX; do 27930 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 27931 *[\\\\\\\`\\"\\\$]*) 27932 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 27933 ;; 27934 *) 27935 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 27936 ;; 27937 esac 27938done 27939 27940ac_aux_dir='$ac_aux_dir' 27941 27942# See if we are running on zsh, and set the options that allow our 27943# commands through without removal of \ escapes INIT. 27944if test -n "\${ZSH_VERSION+set}"; then 27945 setopt NO_GLOB_SUBST 27946fi 27947 27948 27949 PACKAGE='$PACKAGE' 27950 VERSION='$VERSION' 27951 RM='$RM' 27952 ofile='$ofile' 27953 27954 27955 27956 27957 27958SED="$SED" 27959 SVN_DB_HEADER="$SVN_DB_HEADER" 27960 27961_ACEOF 27962 27963cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27964 27965# Handling of arguments. 27966for ac_config_target in $ac_config_targets 27967do 27968 case $ac_config_target in 27969 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 27970 "subversion/svn_private_config.h.tmp") CONFIG_HEADERS="$CONFIG_HEADERS subversion/svn_private_config.h.tmp:subversion/svn_private_config.h.in" ;; 27971 "svn_private_config.h.tmp") CONFIG_COMMANDS="$CONFIG_COMMANDS svn_private_config.h.tmp" ;; 27972 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 27973 "${pc_file}") CONFIG_FILES="$CONFIG_FILES ${pc_file}" ;; 27974 "tools/backup/hot-backup.py") CONFIG_FILES="$CONFIG_FILES tools/backup/hot-backup.py" ;; 27975 "tools/hook-scripts/commit-access-control.pl") CONFIG_FILES="$CONFIG_FILES tools/hook-scripts/commit-access-control.pl" ;; 27976 "subversion/bindings/swig/perl/native/Makefile.PL") CONFIG_FILES="$CONFIG_FILES subversion/bindings/swig/perl/native/Makefile.PL" ;; 27977 "packages/solaris/pkginfo") CONFIG_FILES="$CONFIG_FILES packages/solaris/pkginfo" ;; 27978 27979 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 27980 esac 27981done 27982 27983 27984# If the user did not use the arguments to specify the items to instantiate, 27985# then the envvar interface is used. Set only those that are not. 27986# We use the long form for the default assignment because of an extremely 27987# bizarre bug on SunOS 4.1.3. 27988if $ac_need_defaults; then 27989 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 27990 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 27991 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 27992fi 27993 27994# Have a temporary directory for convenience. Make it in the build tree 27995# simply because there is no reason against having it here, and in addition, 27996# creating and moving files from /tmp can sometimes cause problems. 27997# Hook for its removal unless debugging. 27998# Note that there is a small window in which the directory will not be cleaned: 27999# after its creation but before its name has been assigned to `$tmp'. 28000$debug || 28001{ 28002 tmp= ac_tmp= 28003 trap 'exit_status=$? 28004 : "${ac_tmp:=$tmp}" 28005 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 28006' 0 28007 trap 'as_fn_exit 1' 1 2 13 15 28008} 28009# Create a (secure) tmp directory for tmp files. 28010 28011{ 28012 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 28013 test -d "$tmp" 28014} || 28015{ 28016 tmp=./conf$$-$RANDOM 28017 (umask 077 && mkdir "$tmp") 28018} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 28019ac_tmp=$tmp 28020 28021# Set up the scripts for CONFIG_FILES section. 28022# No need to generate them if there are no CONFIG_FILES. 28023# This happens for instance with `./config.status config.h'. 28024if test -n "$CONFIG_FILES"; then 28025 28026 28027ac_cr=`echo X | tr X '\015'` 28028# On cygwin, bash can eat \r inside `` if the user requested igncr. 28029# But we know of no other shell where ac_cr would be empty at this 28030# point, so we can use a bashism as a fallback. 28031if test "x$ac_cr" = x; then 28032 eval ac_cr=\$\'\\r\' 28033fi 28034ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 28035if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 28036 ac_cs_awk_cr='\\r' 28037else 28038 ac_cs_awk_cr=$ac_cr 28039fi 28040 28041echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 28042_ACEOF 28043 28044 28045{ 28046 echo "cat >conf$$subs.awk <<_ACEOF" && 28047 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 28048 echo "_ACEOF" 28049} >conf$$subs.sh || 28050 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 28051ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 28052ac_delim='%!_!# ' 28053for ac_last_try in false false false false false :; do 28054 . ./conf$$subs.sh || 28055 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 28056 28057 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 28058 if test $ac_delim_n = $ac_delim_num; then 28059 break 28060 elif $ac_last_try; then 28061 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 28062 else 28063 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 28064 fi 28065done 28066rm -f conf$$subs.sh 28067 28068cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28069cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 28070_ACEOF 28071sed -n ' 28072h 28073s/^/S["/; s/!.*/"]=/ 28074p 28075g 28076s/^[^!]*!// 28077:repl 28078t repl 28079s/'"$ac_delim"'$// 28080t delim 28081:nl 28082h 28083s/\(.\{148\}\)..*/\1/ 28084t more1 28085s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 28086p 28087n 28088b repl 28089:more1 28090s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 28091p 28092g 28093s/.\{148\}// 28094t nl 28095:delim 28096h 28097s/\(.\{148\}\)..*/\1/ 28098t more2 28099s/["\\]/\\&/g; s/^/"/; s/$/"/ 28100p 28101b 28102:more2 28103s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 28104p 28105g 28106s/.\{148\}// 28107t delim 28108' <conf$$subs.awk | sed ' 28109/^[^""]/{ 28110 N 28111 s/\n// 28112} 28113' >>$CONFIG_STATUS || ac_write_fail=1 28114rm -f conf$$subs.awk 28115cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28116_ACAWK 28117cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 28118 for (key in S) S_is_set[key] = 1 28119 FS = "" 28120 28121} 28122{ 28123 line = $ 0 28124 nfields = split(line, field, "@") 28125 substed = 0 28126 len = length(field[1]) 28127 for (i = 2; i < nfields; i++) { 28128 key = field[i] 28129 keylen = length(key) 28130 if (S_is_set[key]) { 28131 value = S[key] 28132 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 28133 len += length(value) + length(field[++i]) 28134 substed = 1 28135 } else 28136 len += 1 + keylen 28137 } 28138 28139 print line 28140} 28141 28142_ACAWK 28143_ACEOF 28144cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28145if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 28146 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 28147else 28148 cat 28149fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 28150 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 28151_ACEOF 28152 28153# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 28154# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 28155# trailing colons and then remove the whole line if VPATH becomes empty 28156# (actually we leave an empty line to preserve line numbers). 28157if test "x$srcdir" = x.; then 28158 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 28159h 28160s/// 28161s/^/:/ 28162s/[ ]*$/:/ 28163s/:\$(srcdir):/:/g 28164s/:\${srcdir}:/:/g 28165s/:@srcdir@:/:/g 28166s/^:*// 28167s/:*$// 28168x 28169s/\(=[ ]*\).*/\1/ 28170G 28171s/\n// 28172s/^[^=]*=[ ]*$// 28173}' 28174fi 28175 28176cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28177fi # test -n "$CONFIG_FILES" 28178 28179# Set up the scripts for CONFIG_HEADERS section. 28180# No need to generate them if there are no CONFIG_HEADERS. 28181# This happens for instance with `./config.status Makefile'. 28182if test -n "$CONFIG_HEADERS"; then 28183cat >"$ac_tmp/defines.awk" <<\_ACAWK || 28184BEGIN { 28185_ACEOF 28186 28187# Transform confdefs.h into an awk script `defines.awk', embedded as 28188# here-document in config.status, that substitutes the proper values into 28189# config.h.in to produce config.h. 28190 28191# Create a delimiter string that does not exist in confdefs.h, to ease 28192# handling of long lines. 28193ac_delim='%!_!# ' 28194for ac_last_try in false false :; do 28195 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 28196 if test -z "$ac_tt"; then 28197 break 28198 elif $ac_last_try; then 28199 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 28200 else 28201 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 28202 fi 28203done 28204 28205# For the awk script, D is an array of macro values keyed by name, 28206# likewise P contains macro parameters if any. Preserve backslash 28207# newline sequences. 28208 28209ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 28210sed -n ' 28211s/.\{148\}/&'"$ac_delim"'/g 28212t rset 28213:rset 28214s/^[ ]*#[ ]*define[ ][ ]*/ / 28215t def 28216d 28217:def 28218s/\\$// 28219t bsnl 28220s/["\\]/\\&/g 28221s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 28222D["\1"]=" \3"/p 28223s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 28224d 28225:bsnl 28226s/["\\]/\\&/g 28227s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 28228D["\1"]=" \3\\\\\\n"\\/p 28229t cont 28230s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 28231t cont 28232d 28233:cont 28234n 28235s/.\{148\}/&'"$ac_delim"'/g 28236t clear 28237:clear 28238s/\\$// 28239t bsnlc 28240s/["\\]/\\&/g; s/^/"/; s/$/"/p 28241d 28242:bsnlc 28243s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 28244b cont 28245' <confdefs.h | sed ' 28246s/'"$ac_delim"'/"\\\ 28247"/g' >>$CONFIG_STATUS || ac_write_fail=1 28248 28249cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28250 for (key in D) D_is_set[key] = 1 28251 FS = "" 28252} 28253/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 28254 line = \$ 0 28255 split(line, arg, " ") 28256 if (arg[1] == "#") { 28257 defundef = arg[2] 28258 mac1 = arg[3] 28259 } else { 28260 defundef = substr(arg[1], 2) 28261 mac1 = arg[2] 28262 } 28263 split(mac1, mac2, "(") #) 28264 macro = mac2[1] 28265 prefix = substr(line, 1, index(line, defundef) - 1) 28266 if (D_is_set[macro]) { 28267 # Preserve the white space surrounding the "#". 28268 print prefix "define", macro P[macro] D[macro] 28269 next 28270 } else { 28271 # Replace #undef with comments. This is necessary, for example, 28272 # in the case of _POSIX_SOURCE, which is predefined and required 28273 # on some systems where configure will not decide to define it. 28274 if (defundef == "undef") { 28275 print "/*", prefix defundef, macro, "*/" 28276 next 28277 } 28278 } 28279} 28280{ print } 28281_ACAWK 28282_ACEOF 28283cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28284 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 28285fi # test -n "$CONFIG_HEADERS" 28286 28287 28288eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 28289shift 28290for ac_tag 28291do 28292 case $ac_tag in 28293 :[FHLC]) ac_mode=$ac_tag; continue;; 28294 esac 28295 case $ac_mode$ac_tag in 28296 :[FHL]*:*);; 28297 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 28298 :[FH]-) ac_tag=-:-;; 28299 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 28300 esac 28301 ac_save_IFS=$IFS 28302 IFS=: 28303 set x $ac_tag 28304 IFS=$ac_save_IFS 28305 shift 28306 ac_file=$1 28307 shift 28308 28309 case $ac_mode in 28310 :L) ac_source=$1;; 28311 :[FH]) 28312 ac_file_inputs= 28313 for ac_f 28314 do 28315 case $ac_f in 28316 -) ac_f="$ac_tmp/stdin";; 28317 *) # Look for the file first in the build tree, then in the source tree 28318 # (if the path is not absolute). The absolute path cannot be DOS-style, 28319 # because $ac_f cannot contain `:'. 28320 test -f "$ac_f" || 28321 case $ac_f in 28322 [\\/$]*) false;; 28323 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 28324 esac || 28325 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 28326 esac 28327 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 28328 as_fn_append ac_file_inputs " '$ac_f'" 28329 done 28330 28331 # Let's still pretend it is `configure' which instantiates (i.e., don't 28332 # use $as_me), people would be surprised to read: 28333 # /* config.h. Generated by config.status. */ 28334 configure_input='Generated from '` 28335 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 28336 `' by configure.' 28337 if test x"$ac_file" != x-; then 28338 configure_input="$ac_file. $configure_input" 28339 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 28340$as_echo "$as_me: creating $ac_file" >&6;} 28341 fi 28342 # Neutralize special characters interpreted by sed in replacement strings. 28343 case $configure_input in #( 28344 *\&* | *\|* | *\\* ) 28345 ac_sed_conf_input=`$as_echo "$configure_input" | 28346 sed 's/[\\\\&|]/\\\\&/g'`;; #( 28347 *) ac_sed_conf_input=$configure_input;; 28348 esac 28349 28350 case $ac_tag in 28351 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 28352 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 28353 esac 28354 ;; 28355 esac 28356 28357 ac_dir=`$as_dirname -- "$ac_file" || 28358$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28359 X"$ac_file" : 'X\(//\)[^/]' \| \ 28360 X"$ac_file" : 'X\(//\)$' \| \ 28361 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 28362$as_echo X"$ac_file" | 28363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28364 s//\1/ 28365 q 28366 } 28367 /^X\(\/\/\)[^/].*/{ 28368 s//\1/ 28369 q 28370 } 28371 /^X\(\/\/\)$/{ 28372 s//\1/ 28373 q 28374 } 28375 /^X\(\/\).*/{ 28376 s//\1/ 28377 q 28378 } 28379 s/.*/./; q'` 28380 as_dir="$ac_dir"; as_fn_mkdir_p 28381 ac_builddir=. 28382 28383case "$ac_dir" in 28384.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 28385*) 28386 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 28387 # A ".." for each directory in $ac_dir_suffix. 28388 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 28389 case $ac_top_builddir_sub in 28390 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 28391 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 28392 esac ;; 28393esac 28394ac_abs_top_builddir=$ac_pwd 28395ac_abs_builddir=$ac_pwd$ac_dir_suffix 28396# for backward compatibility: 28397ac_top_builddir=$ac_top_build_prefix 28398 28399case $srcdir in 28400 .) # We are building in place. 28401 ac_srcdir=. 28402 ac_top_srcdir=$ac_top_builddir_sub 28403 ac_abs_top_srcdir=$ac_pwd ;; 28404 [\\/]* | ?:[\\/]* ) # Absolute name. 28405 ac_srcdir=$srcdir$ac_dir_suffix; 28406 ac_top_srcdir=$srcdir 28407 ac_abs_top_srcdir=$srcdir ;; 28408 *) # Relative name. 28409 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 28410 ac_top_srcdir=$ac_top_build_prefix$srcdir 28411 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 28412esac 28413ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 28414 28415 28416 case $ac_mode in 28417 :F) 28418 # 28419 # CONFIG_FILE 28420 # 28421 28422 case $INSTALL in 28423 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 28424 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 28425 esac 28426_ACEOF 28427 28428cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28429# If the template does not know about datarootdir, expand it. 28430# FIXME: This hack should be removed a few years after 2.60. 28431ac_datarootdir_hack=; ac_datarootdir_seen= 28432ac_sed_dataroot=' 28433/datarootdir/ { 28434 p 28435 q 28436} 28437/@datadir@/p 28438/@docdir@/p 28439/@infodir@/p 28440/@localedir@/p 28441/@mandir@/p' 28442case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 28443*datarootdir*) ac_datarootdir_seen=yes;; 28444*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 28445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 28446$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 28447_ACEOF 28448cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28449 ac_datarootdir_hack=' 28450 s&@datadir@&$datadir&g 28451 s&@docdir@&$docdir&g 28452 s&@infodir@&$infodir&g 28453 s&@localedir@&$localedir&g 28454 s&@mandir@&$mandir&g 28455 s&\\\${datarootdir}&$datarootdir&g' ;; 28456esac 28457_ACEOF 28458 28459# Neutralize VPATH when `$srcdir' = `.'. 28460# Shell code in configure.ac might set extrasub. 28461# FIXME: do we really want to maintain this feature? 28462cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28463ac_sed_extra="$ac_vpsub 28464$extrasub 28465_ACEOF 28466cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28467:t 28468/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 28469s|@configure_input@|$ac_sed_conf_input|;t t 28470s&@top_builddir@&$ac_top_builddir_sub&;t t 28471s&@top_build_prefix@&$ac_top_build_prefix&;t t 28472s&@srcdir@&$ac_srcdir&;t t 28473s&@abs_srcdir@&$ac_abs_srcdir&;t t 28474s&@top_srcdir@&$ac_top_srcdir&;t t 28475s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 28476s&@builddir@&$ac_builddir&;t t 28477s&@abs_builddir@&$ac_abs_builddir&;t t 28478s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 28479s&@INSTALL@&$ac_INSTALL&;t t 28480$ac_datarootdir_hack 28481" 28482eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 28483 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 28484 28485test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 28486 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 28487 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 28488 "$ac_tmp/out"`; test -z "$ac_out"; } && 28489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 28490which seems to be undefined. Please make sure it is defined" >&5 28491$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 28492which seems to be undefined. Please make sure it is defined" >&2;} 28493 28494 rm -f "$ac_tmp/stdin" 28495 case $ac_file in 28496 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 28497 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 28498 esac \ 28499 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 28500 ;; 28501 :H) 28502 # 28503 # CONFIG_HEADER 28504 # 28505 if test x"$ac_file" != x-; then 28506 { 28507 $as_echo "/* $configure_input */" \ 28508 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 28509 } >"$ac_tmp/config.h" \ 28510 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 28511 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 28512 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 28513$as_echo "$as_me: $ac_file is unchanged" >&6;} 28514 else 28515 rm -f "$ac_file" 28516 mv "$ac_tmp/config.h" "$ac_file" \ 28517 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 28518 fi 28519 else 28520 $as_echo "/* $configure_input */" \ 28521 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 28522 || as_fn_error $? "could not create -" "$LINENO" 5 28523 fi 28524 ;; 28525 28526 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 28527$as_echo "$as_me: executing $ac_file commands" >&6;} 28528 ;; 28529 esac 28530 28531 28532 case $ac_file$ac_mode in 28533 "libtool":C) 28534 28535 # See if we are running on zsh, and set the options that allow our 28536 # commands through without removal of \ escapes. 28537 if test -n "${ZSH_VERSION+set}"; then 28538 setopt NO_GLOB_SUBST 28539 fi 28540 28541 cfgfile=${ofile}T 28542 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 28543 $RM "$cfgfile" 28544 28545 cat <<_LT_EOF >> "$cfgfile" 28546#! $SHELL 28547# Generated automatically by $as_me ($PACKAGE) $VERSION 28548# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 28549# NOTE: Changes made to this file will be lost: look at ltmain.sh. 28550 28551# Provide generalized library-building support services. 28552# Written by Gordon Matzigkeit, 1996 28553 28554# Copyright (C) 2014 Free Software Foundation, Inc. 28555# This is free software; see the source for copying conditions. There is NO 28556# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 28557 28558# GNU Libtool is free software; you can redistribute it and/or modify 28559# it under the terms of the GNU General Public License as published by 28560# the Free Software Foundation; either version 2 of of the License, or 28561# (at your option) any later version. 28562# 28563# As a special exception to the GNU General Public License, if you 28564# distribute this file as part of a program or library that is built 28565# using GNU Libtool, you may include this file under the same 28566# distribution terms that you use for the rest of that program. 28567# 28568# GNU Libtool is distributed in the hope that it will be useful, but 28569# WITHOUT ANY WARRANTY; without even the implied warranty of 28570# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 28571# GNU General Public License for more details. 28572# 28573# You should have received a copy of the GNU General Public License 28574# along with this program. If not, see <http://www.gnu.org/licenses/>. 28575 28576 28577# The names of the tagged configurations supported by this script. 28578available_tags='CXX ' 28579 28580# Configured defaults for sys_lib_dlsearch_path munging. 28581: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 28582 28583# ### BEGIN LIBTOOL CONFIG 28584 28585# Which release of libtool.m4 was used? 28586macro_version=$macro_version 28587macro_revision=$macro_revision 28588 28589# Whether or not to build shared libraries. 28590build_libtool_libs=$enable_shared 28591 28592# Whether or not to build static libraries. 28593build_old_libs=$enable_static 28594 28595# What type of objects to build. 28596pic_mode=$pic_mode 28597 28598# Whether or not to optimize for fast installation. 28599fast_install=$enable_fast_install 28600 28601# Shared archive member basename,for filename based shared library versioning on AIX. 28602shared_archive_member_spec=$shared_archive_member_spec 28603 28604# Shell to use when invoking shell scripts. 28605SHELL=$lt_SHELL 28606 28607# An echo program that protects backslashes. 28608ECHO=$lt_ECHO 28609 28610# The PATH separator for the build system. 28611PATH_SEPARATOR=$lt_PATH_SEPARATOR 28612 28613# The host system. 28614host_alias=$host_alias 28615host=$host 28616host_os=$host_os 28617 28618# The build system. 28619build_alias=$build_alias 28620build=$build 28621build_os=$build_os 28622 28623# A sed program that does not truncate output. 28624SED=$lt_SED 28625 28626# Sed that helps us avoid accidentally triggering echo(1) options like -n. 28627Xsed="\$SED -e 1s/^X//" 28628 28629# A grep program that handles long lines. 28630GREP=$lt_GREP 28631 28632# An ERE matcher. 28633EGREP=$lt_EGREP 28634 28635# A literal string matcher. 28636FGREP=$lt_FGREP 28637 28638# A BSD- or MS-compatible name lister. 28639NM=$lt_NM 28640 28641# Whether we need soft or hard links. 28642LN_S=$lt_LN_S 28643 28644# What is the maximum length of a command? 28645max_cmd_len=$max_cmd_len 28646 28647# Object file suffix (normally "o"). 28648objext=$ac_objext 28649 28650# Executable file suffix (normally ""). 28651exeext=$exeext 28652 28653# whether the shell understands "unset". 28654lt_unset=$lt_unset 28655 28656# turn spaces into newlines. 28657SP2NL=$lt_lt_SP2NL 28658 28659# turn newlines into spaces. 28660NL2SP=$lt_lt_NL2SP 28661 28662# convert \$build file names to \$host format. 28663to_host_file_cmd=$lt_cv_to_host_file_cmd 28664 28665# convert \$build files to toolchain format. 28666to_tool_file_cmd=$lt_cv_to_tool_file_cmd 28667 28668# An object symbol dumper. 28669OBJDUMP=$lt_OBJDUMP 28670 28671# Method to check whether dependent libraries are shared objects. 28672deplibs_check_method=$lt_deplibs_check_method 28673 28674# Command to use when deplibs_check_method = "file_magic". 28675file_magic_cmd=$lt_file_magic_cmd 28676 28677# How to find potential files when deplibs_check_method = "file_magic". 28678file_magic_glob=$lt_file_magic_glob 28679 28680# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 28681want_nocaseglob=$lt_want_nocaseglob 28682 28683# DLL creation program. 28684DLLTOOL=$lt_DLLTOOL 28685 28686# Command to associate shared and link libraries. 28687sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 28688 28689# The archiver. 28690AR=$lt_AR 28691 28692# Flags to create an archive. 28693AR_FLAGS=$lt_AR_FLAGS 28694 28695# How to feed a file listing to the archiver. 28696archiver_list_spec=$lt_archiver_list_spec 28697 28698# A symbol stripping program. 28699STRIP=$lt_STRIP 28700 28701# Commands used to install an old-style archive. 28702RANLIB=$lt_RANLIB 28703old_postinstall_cmds=$lt_old_postinstall_cmds 28704old_postuninstall_cmds=$lt_old_postuninstall_cmds 28705 28706# Whether to use a lock for old archive extraction. 28707lock_old_archive_extraction=$lock_old_archive_extraction 28708 28709# A C compiler. 28710LTCC=$lt_CC 28711 28712# LTCC compiler flags. 28713LTCFLAGS=$lt_CFLAGS 28714 28715# Take the output of nm and produce a listing of raw symbols and C names. 28716global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 28717 28718# Transform the output of nm in a proper C declaration. 28719global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 28720 28721# Transform the output of nm into a list of symbols to manually relocate. 28722global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 28723 28724# Transform the output of nm in a C name address pair. 28725global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 28726 28727# Transform the output of nm in a C name address pair when lib prefix is needed. 28728global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 28729 28730# The name lister interface. 28731nm_interface=$lt_lt_cv_nm_interface 28732 28733# Specify filename containing input files for \$NM. 28734nm_file_list_spec=$lt_nm_file_list_spec 28735 28736# The root where to search for dependent libraries,and where our libraries should be installed. 28737lt_sysroot=$lt_sysroot 28738 28739# Command to truncate a binary pipe. 28740lt_truncate_bin=$lt_lt_cv_truncate_bin 28741 28742# The name of the directory that contains temporary libtool files. 28743objdir=$objdir 28744 28745# Used to examine libraries when file_magic_cmd begins with "file". 28746MAGIC_CMD=$MAGIC_CMD 28747 28748# Must we lock files when doing compilation? 28749need_locks=$lt_need_locks 28750 28751# Manifest tool. 28752MANIFEST_TOOL=$lt_MANIFEST_TOOL 28753 28754# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 28755DSYMUTIL=$lt_DSYMUTIL 28756 28757# Tool to change global to local symbols on Mac OS X. 28758NMEDIT=$lt_NMEDIT 28759 28760# Tool to manipulate fat objects and archives on Mac OS X. 28761LIPO=$lt_LIPO 28762 28763# ldd/readelf like tool for Mach-O binaries on Mac OS X. 28764OTOOL=$lt_OTOOL 28765 28766# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 28767OTOOL64=$lt_OTOOL64 28768 28769# Old archive suffix (normally "a"). 28770libext=$libext 28771 28772# Shared library suffix (normally ".so"). 28773shrext_cmds=$lt_shrext_cmds 28774 28775# The commands to extract the exported symbol list from a shared archive. 28776extract_expsyms_cmds=$lt_extract_expsyms_cmds 28777 28778# Variables whose values should be saved in libtool wrapper scripts and 28779# restored at link time. 28780variables_saved_for_relink=$lt_variables_saved_for_relink 28781 28782# Do we need the "lib" prefix for modules? 28783need_lib_prefix=$need_lib_prefix 28784 28785# Do we need a version for libraries? 28786need_version=$need_version 28787 28788# Library versioning type. 28789version_type=$version_type 28790 28791# Shared library runtime path variable. 28792runpath_var=$runpath_var 28793 28794# Shared library path variable. 28795shlibpath_var=$shlibpath_var 28796 28797# Is shlibpath searched before the hard-coded library search path? 28798shlibpath_overrides_runpath=$shlibpath_overrides_runpath 28799 28800# Format of library name prefix. 28801libname_spec=$lt_libname_spec 28802 28803# List of archive names. First name is the real one, the rest are links. 28804# The last name is the one that the linker finds with -lNAME 28805library_names_spec=$lt_library_names_spec 28806 28807# The coded name of the library, if different from the real name. 28808soname_spec=$lt_soname_spec 28809 28810# Permission mode override for installation of shared libraries. 28811install_override_mode=$lt_install_override_mode 28812 28813# Command to use after installation of a shared archive. 28814postinstall_cmds=$lt_postinstall_cmds 28815 28816# Command to use after uninstallation of a shared archive. 28817postuninstall_cmds=$lt_postuninstall_cmds 28818 28819# Commands used to finish a libtool library installation in a directory. 28820finish_cmds=$lt_finish_cmds 28821 28822# As "finish_cmds", except a single script fragment to be evaled but 28823# not shown. 28824finish_eval=$lt_finish_eval 28825 28826# Whether we should hardcode library paths into libraries. 28827hardcode_into_libs=$hardcode_into_libs 28828 28829# Compile-time system search path for libraries. 28830sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 28831 28832# Detected run-time system search path for libraries. 28833sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 28834 28835# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 28836configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 28837 28838# Whether dlopen is supported. 28839dlopen_support=$enable_dlopen 28840 28841# Whether dlopen of programs is supported. 28842dlopen_self=$enable_dlopen_self 28843 28844# Whether dlopen of statically linked programs is supported. 28845dlopen_self_static=$enable_dlopen_self_static 28846 28847# Commands to strip libraries. 28848old_striplib=$lt_old_striplib 28849striplib=$lt_striplib 28850 28851 28852# The linker used to build libraries. 28853LD=$lt_LD 28854 28855# How to create reloadable object files. 28856reload_flag=$lt_reload_flag 28857reload_cmds=$lt_reload_cmds 28858 28859# Commands used to build an old-style archive. 28860old_archive_cmds=$lt_old_archive_cmds 28861 28862# A language specific compiler. 28863CC=$lt_compiler 28864 28865# Is the compiler the GNU compiler? 28866with_gcc=$GCC 28867 28868# Compiler flag to turn off builtin functions. 28869no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 28870 28871# Additional compiler flags for building library objects. 28872pic_flag=$lt_lt_prog_compiler_pic 28873 28874# How to pass a linker flag through the compiler. 28875wl=$lt_lt_prog_compiler_wl 28876 28877# Compiler flag to prevent dynamic linking. 28878link_static_flag=$lt_lt_prog_compiler_static 28879 28880# Does compiler simultaneously support -c and -o options? 28881compiler_c_o=$lt_lt_cv_prog_compiler_c_o 28882 28883# Whether or not to add -lc for building shared libraries. 28884build_libtool_need_lc=$archive_cmds_need_lc 28885 28886# Whether or not to disallow shared libs when runtime libs are static. 28887allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 28888 28889# Compiler flag to allow reflexive dlopens. 28890export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 28891 28892# Compiler flag to generate shared objects directly from archives. 28893whole_archive_flag_spec=$lt_whole_archive_flag_spec 28894 28895# Whether the compiler copes with passing no objects directly. 28896compiler_needs_object=$lt_compiler_needs_object 28897 28898# Create an old-style archive from a shared archive. 28899old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 28900 28901# Create a temporary old-style archive to link instead of a shared archive. 28902old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 28903 28904# Commands used to build a shared archive. 28905archive_cmds=$lt_archive_cmds 28906archive_expsym_cmds=$lt_archive_expsym_cmds 28907 28908# Commands used to build a loadable module if different from building 28909# a shared archive. 28910module_cmds=$lt_module_cmds 28911module_expsym_cmds=$lt_module_expsym_cmds 28912 28913# Whether we are building with GNU ld or not. 28914with_gnu_ld=$lt_with_gnu_ld 28915 28916# Flag that allows shared libraries with undefined symbols to be built. 28917allow_undefined_flag=$lt_allow_undefined_flag 28918 28919# Flag that enforces no undefined symbols. 28920no_undefined_flag=$lt_no_undefined_flag 28921 28922# Flag to hardcode \$libdir into a binary during linking. 28923# This must work even if \$libdir does not exist 28924hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 28925 28926# Whether we need a single "-rpath" flag with a separated argument. 28927hardcode_libdir_separator=$lt_hardcode_libdir_separator 28928 28929# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 28930# DIR into the resulting binary. 28931hardcode_direct=$hardcode_direct 28932 28933# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 28934# DIR into the resulting binary and the resulting library dependency is 28935# "absolute",i.e impossible to change by setting \$shlibpath_var if the 28936# library is relocated. 28937hardcode_direct_absolute=$hardcode_direct_absolute 28938 28939# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 28940# into the resulting binary. 28941hardcode_minus_L=$hardcode_minus_L 28942 28943# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 28944# into the resulting binary. 28945hardcode_shlibpath_var=$hardcode_shlibpath_var 28946 28947# Set to "yes" if building a shared library automatically hardcodes DIR 28948# into the library and all subsequent libraries and executables linked 28949# against it. 28950hardcode_automatic=$hardcode_automatic 28951 28952# Set to yes if linker adds runtime paths of dependent libraries 28953# to runtime path list. 28954inherit_rpath=$inherit_rpath 28955 28956# Whether libtool must link a program against all its dependency libraries. 28957link_all_deplibs=$link_all_deplibs 28958 28959# Set to "yes" if exported symbols are required. 28960always_export_symbols=$always_export_symbols 28961 28962# The commands to list exported symbols. 28963export_symbols_cmds=$lt_export_symbols_cmds 28964 28965# Symbols that should not be listed in the preloaded symbols. 28966exclude_expsyms=$lt_exclude_expsyms 28967 28968# Symbols that must always be exported. 28969include_expsyms=$lt_include_expsyms 28970 28971# Commands necessary for linking programs (against libraries) with templates. 28972prelink_cmds=$lt_prelink_cmds 28973 28974# Commands necessary for finishing linking programs. 28975postlink_cmds=$lt_postlink_cmds 28976 28977# Specify filename containing input files. 28978file_list_spec=$lt_file_list_spec 28979 28980# How to hardcode a shared library path into an executable. 28981hardcode_action=$hardcode_action 28982 28983# The directories searched by this compiler when creating a shared library. 28984compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 28985 28986# Dependencies to place before and after the objects being linked to 28987# create a shared library. 28988predep_objects=$lt_predep_objects 28989postdep_objects=$lt_postdep_objects 28990predeps=$lt_predeps 28991postdeps=$lt_postdeps 28992 28993# The library search path used internally by the compiler when linking 28994# a shared library. 28995compiler_lib_search_path=$lt_compiler_lib_search_path 28996 28997# ### END LIBTOOL CONFIG 28998 28999_LT_EOF 29000 29001 cat <<'_LT_EOF' >> "$cfgfile" 29002 29003# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 29004 29005# func_munge_path_list VARIABLE PATH 29006# ----------------------------------- 29007# VARIABLE is name of variable containing _space_ separated list of 29008# directories to be munged by the contents of PATH, which is string 29009# having a format: 29010# "DIR[:DIR]:" 29011# string "DIR[ DIR]" will be prepended to VARIABLE 29012# ":DIR[:DIR]" 29013# string "DIR[ DIR]" will be appended to VARIABLE 29014# "DIRP[:DIRP]::[DIRA:]DIRA" 29015# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 29016# "DIRA[ DIRA]" will be appended to VARIABLE 29017# "DIR[:DIR]" 29018# VARIABLE will be replaced by "DIR[ DIR]" 29019func_munge_path_list () 29020{ 29021 case x$2 in 29022 x) 29023 ;; 29024 *:) 29025 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 29026 ;; 29027 x:*) 29028 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 29029 ;; 29030 *::*) 29031 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 29032 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 29033 ;; 29034 *) 29035 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 29036 ;; 29037 esac 29038} 29039 29040 29041# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 29042func_cc_basename () 29043{ 29044 for cc_temp in $*""; do 29045 case $cc_temp in 29046 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 29047 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 29048 \-*) ;; 29049 *) break;; 29050 esac 29051 done 29052 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 29053} 29054 29055 29056# ### END FUNCTIONS SHARED WITH CONFIGURE 29057 29058_LT_EOF 29059 29060 case $host_os in 29061 aix3*) 29062 cat <<\_LT_EOF >> "$cfgfile" 29063# AIX sometimes has problems with the GCC collect2 program. For some 29064# reason, if we set the COLLECT_NAMES environment variable, the problems 29065# vanish in a puff of smoke. 29066if test set != "${COLLECT_NAMES+set}"; then 29067 COLLECT_NAMES= 29068 export COLLECT_NAMES 29069fi 29070_LT_EOF 29071 ;; 29072 esac 29073 29074 29075ltmain=$ac_aux_dir/ltmain.sh 29076 29077 29078 # We use sed instead of cat because bash on DJGPP gets confused if 29079 # if finds mixed CR/LF and LF-only lines. Since sed operates in 29080 # text mode, it properly converts lines to CR/LF. This bash problem 29081 # is reportedly fixed, but why not run on old versions too? 29082 sed '$q' "$ltmain" >> "$cfgfile" \ 29083 || (rm -f "$cfgfile"; exit 1) 29084 29085 mv -f "$cfgfile" "$ofile" || 29086 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 29087 chmod +x "$ofile" 29088 29089 29090 cat <<_LT_EOF >> "$ofile" 29091 29092# ### BEGIN LIBTOOL TAG CONFIG: CXX 29093 29094# The linker used to build libraries. 29095LD=$lt_LD_CXX 29096 29097# How to create reloadable object files. 29098reload_flag=$lt_reload_flag_CXX 29099reload_cmds=$lt_reload_cmds_CXX 29100 29101# Commands used to build an old-style archive. 29102old_archive_cmds=$lt_old_archive_cmds_CXX 29103 29104# A language specific compiler. 29105CC=$lt_compiler_CXX 29106 29107# Is the compiler the GNU compiler? 29108with_gcc=$GCC_CXX 29109 29110# Compiler flag to turn off builtin functions. 29111no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 29112 29113# Additional compiler flags for building library objects. 29114pic_flag=$lt_lt_prog_compiler_pic_CXX 29115 29116# How to pass a linker flag through the compiler. 29117wl=$lt_lt_prog_compiler_wl_CXX 29118 29119# Compiler flag to prevent dynamic linking. 29120link_static_flag=$lt_lt_prog_compiler_static_CXX 29121 29122# Does compiler simultaneously support -c and -o options? 29123compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 29124 29125# Whether or not to add -lc for building shared libraries. 29126build_libtool_need_lc=$archive_cmds_need_lc_CXX 29127 29128# Whether or not to disallow shared libs when runtime libs are static. 29129allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 29130 29131# Compiler flag to allow reflexive dlopens. 29132export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 29133 29134# Compiler flag to generate shared objects directly from archives. 29135whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 29136 29137# Whether the compiler copes with passing no objects directly. 29138compiler_needs_object=$lt_compiler_needs_object_CXX 29139 29140# Create an old-style archive from a shared archive. 29141old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 29142 29143# Create a temporary old-style archive to link instead of a shared archive. 29144old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 29145 29146# Commands used to build a shared archive. 29147archive_cmds=$lt_archive_cmds_CXX 29148archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 29149 29150# Commands used to build a loadable module if different from building 29151# a shared archive. 29152module_cmds=$lt_module_cmds_CXX 29153module_expsym_cmds=$lt_module_expsym_cmds_CXX 29154 29155# Whether we are building with GNU ld or not. 29156with_gnu_ld=$lt_with_gnu_ld_CXX 29157 29158# Flag that allows shared libraries with undefined symbols to be built. 29159allow_undefined_flag=$lt_allow_undefined_flag_CXX 29160 29161# Flag that enforces no undefined symbols. 29162no_undefined_flag=$lt_no_undefined_flag_CXX 29163 29164# Flag to hardcode \$libdir into a binary during linking. 29165# This must work even if \$libdir does not exist 29166hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 29167 29168# Whether we need a single "-rpath" flag with a separated argument. 29169hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 29170 29171# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 29172# DIR into the resulting binary. 29173hardcode_direct=$hardcode_direct_CXX 29174 29175# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 29176# DIR into the resulting binary and the resulting library dependency is 29177# "absolute",i.e impossible to change by setting \$shlibpath_var if the 29178# library is relocated. 29179hardcode_direct_absolute=$hardcode_direct_absolute_CXX 29180 29181# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 29182# into the resulting binary. 29183hardcode_minus_L=$hardcode_minus_L_CXX 29184 29185# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 29186# into the resulting binary. 29187hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 29188 29189# Set to "yes" if building a shared library automatically hardcodes DIR 29190# into the library and all subsequent libraries and executables linked 29191# against it. 29192hardcode_automatic=$hardcode_automatic_CXX 29193 29194# Set to yes if linker adds runtime paths of dependent libraries 29195# to runtime path list. 29196inherit_rpath=$inherit_rpath_CXX 29197 29198# Whether libtool must link a program against all its dependency libraries. 29199link_all_deplibs=$link_all_deplibs_CXX 29200 29201# Set to "yes" if exported symbols are required. 29202always_export_symbols=$always_export_symbols_CXX 29203 29204# The commands to list exported symbols. 29205export_symbols_cmds=$lt_export_symbols_cmds_CXX 29206 29207# Symbols that should not be listed in the preloaded symbols. 29208exclude_expsyms=$lt_exclude_expsyms_CXX 29209 29210# Symbols that must always be exported. 29211include_expsyms=$lt_include_expsyms_CXX 29212 29213# Commands necessary for linking programs (against libraries) with templates. 29214prelink_cmds=$lt_prelink_cmds_CXX 29215 29216# Commands necessary for finishing linking programs. 29217postlink_cmds=$lt_postlink_cmds_CXX 29218 29219# Specify filename containing input files. 29220file_list_spec=$lt_file_list_spec_CXX 29221 29222# How to hardcode a shared library path into an executable. 29223hardcode_action=$hardcode_action_CXX 29224 29225# The directories searched by this compiler when creating a shared library. 29226compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 29227 29228# Dependencies to place before and after the objects being linked to 29229# create a shared library. 29230predep_objects=$lt_predep_objects_CXX 29231postdep_objects=$lt_postdep_objects_CXX 29232predeps=$lt_predeps_CXX 29233postdeps=$lt_postdeps_CXX 29234 29235# The library search path used internally by the compiler when linking 29236# a shared library. 29237compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 29238 29239# ### END LIBTOOL TAG CONFIG: CXX 29240_LT_EOF 29241 29242 ;; 29243 "svn_private_config.h.tmp":C) svn_cf=subversion/svn_private_config.h; 29244 $SED -e "s/@SVN_DB_HEADER@/$SVN_DB_HEADER/" $svn_cf.tmp > $svn_cf.tmp.new 29245 cmp -s $svn_cf.tmp.new $svn_cf || mv -f $svn_cf.tmp.new $svn_cf 29246 rm -f $svn_cf.tmp.new $svn_cf.tmp ;; 29247 "tools/backup/hot-backup.py":F) chmod +x tools/backup/hot-backup.py ;; 29248 "tools/hook-scripts/commit-access-control.pl":F) chmod +x tools/hook-scripts/commit-access-control.pl ;; 29249 "subversion/bindings/swig/perl/native/Makefile.PL":F) chmod +x subversion/bindings/swig/perl/native/Makefile.PL ;; 29250 "packages/solaris/pkginfo":F) chmod +x packages/solaris/pkginfo ;; 29251 29252 esac 29253done # for ac_tag 29254 29255 29256as_fn_exit 0 29257_ACEOF 29258ac_clean_files=$ac_clean_files_save 29259 29260test $ac_write_fail = 0 || 29261 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 29262 29263 29264# configure is writing to config.log, and then calls config.status. 29265# config.status does its own redirection, appending to config.log. 29266# Unfortunately, on DOS this fails, as config.log is still kept open 29267# by configure, so config.status won't be able to write to it; its 29268# output is simply discarded. So we exec the FD to /dev/null, 29269# effectively closing config.log, so it can be properly (re)opened and 29270# appended to by config.status. When coming back to configure, we 29271# need to make the FD available again. 29272if test "$no_create" != yes; then 29273 ac_cs_success=: 29274 ac_config_status_args= 29275 test "$silent" = yes && 29276 ac_config_status_args="$ac_config_status_args --quiet" 29277 exec 5>/dev/null 29278 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 29279 exec 5>>config.log 29280 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 29281 # would make configure fail if this is the last instruction. 29282 $ac_cs_success || as_fn_exit 1 29283fi 29284if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 29285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 29286$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 29287fi 29288 29289 29290# ==== Print final messages to user ========================================== 29291 29292 29293if test "$svn_have_berkeley_db" = "no6" && test "$enable_bdb6" != "no"; then 29294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We have configured without BDB filesystem support 29295 29296 29297Berkeley DB 6 was found, but not used. Please re-run configure (see 29298./config.nice) with the '--enable-bdb6' flag to use it, 29299or explicitly specify '--disable-bdb6' or '--without-berkeley-db' 29300to silence this warning. 29301 29302Please note that some versions of Berkeley DB 6+ are under the GNU Affero 29303General Public License, version 3: 29304https://oss.oracle.com/pipermail/bdb/2013-June/000056.html 29305 29306The AGPL-3.0 licence may impose special requirements for making available 29307source code of server-side software. The text of the licence is: 29308https://www.gnu.org/licenses/agpl-3.0.html 29309http://opensource.org/licenses/AGPL-3.0 29310 29311The Berkeley DB backend to Subversion is deprecated; see 29312http://subversion.apache.org/docs/release-notes/1.8#bdb-deprecated 29313 29314The Subversion developers have not tested Subversion with Berkeley DB 6 for 29315technical problems or bugs. 29316" >&5 29317$as_echo "$as_me: WARNING: We have configured without BDB filesystem support 29318 29319 29320Berkeley DB 6 was found, but not used. Please re-run configure (see 29321./config.nice) with the '--enable-bdb6' flag to use it, 29322or explicitly specify '--disable-bdb6' or '--without-berkeley-db' 29323to silence this warning. 29324 29325Please note that some versions of Berkeley DB 6+ are under the GNU Affero 29326General Public License, version 3: 29327https://oss.oracle.com/pipermail/bdb/2013-June/000056.html 29328 29329The AGPL-3.0 licence may impose special requirements for making available 29330source code of server-side software. The text of the licence is: 29331https://www.gnu.org/licenses/agpl-3.0.html 29332http://opensource.org/licenses/AGPL-3.0 29333 29334The Berkeley DB backend to Subversion is deprecated; see 29335http://subversion.apache.org/docs/release-notes/1.8#bdb-deprecated 29336 29337The Subversion developers have not tested Subversion with Berkeley DB 6 for 29338technical problems or bugs. 29339" >&2;} 29340fi 29341