1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for DAR 2.5.14-bis. 4# 5# Report bugs to <http://sourceforge.net/tracker/?group_id=65612&atid=511612>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: [http://sourceforge.net/tracker/?group_id=65612&atid=511612] 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='DAR' 593PACKAGE_TARNAME='dar' 594PACKAGE_VERSION='2.5.14-bis' 595PACKAGE_STRING='DAR 2.5.14-bis' 596PACKAGE_BUGREPORT='http://sourceforge.net/tracker/?group_id=65612&atid=511612' 597PACKAGE_URL='' 598 599ac_unique_file="src/libdar/catalogue.cpp" 600gt_needs= 601# Factoring default headers for most tests. 602ac_includes_default="\ 603#include <stdio.h> 604#ifdef HAVE_SYS_TYPES_H 605# include <sys/types.h> 606#endif 607#ifdef HAVE_SYS_STAT_H 608# include <sys/stat.h> 609#endif 610#ifdef STDC_HEADERS 611# include <stdlib.h> 612# include <stddef.h> 613#else 614# ifdef HAVE_STDLIB_H 615# include <stdlib.h> 616# endif 617#endif 618#ifdef HAVE_STRING_H 619# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 620# include <memory.h> 621# endif 622# include <string.h> 623#endif 624#ifdef HAVE_STRINGS_H 625# include <strings.h> 626#endif 627#ifdef HAVE_INTTYPES_H 628# include <inttypes.h> 629#endif 630#ifdef HAVE_STDINT_H 631# include <stdint.h> 632#endif 633#ifdef HAVE_UNISTD_H 634# include <unistd.h> 635#endif" 636 637ac_header_list= 638ac_default_prefix=/usr/local 639ac_subst_vars='am__EXEEXT_FALSE 640am__EXEEXT_TRUE 641LTLIBOBJS 642DOXYGEN_PROG 643UPX_PROG 644CXXSTDFLAGS 645WITH_LIBTHREADAR_FALSE 646WITH_LIBTHREADAR_TRUE 647BSD_SED_FALSE 648BSD_SED_TRUE 649PROFILING_FALSE 650PROFILING_TRUE 651USE_GROFF_FALSE 652USE_GROFF_TRUE 653USE_DOXYGEN_FALSE 654USE_DOXYGEN_TRUE 655USE_UPX_FALSE 656USE_UPX_TRUE 657BUILD_MODE64_FALSE 658BUILD_MODE64_TRUE 659BUILD_MODE32_FALSE 660BUILD_MODE32_TRUE 661DEBUG_STATIC_FALSE 662DEBUG_STATIC_TRUE 663BUILD_DAR_STATIC_FALSE 664BUILD_DAR_STATIC_TRUE 665MAKE_ALL_DIR_FALSE 666MAKE_ALL_DIR_TRUE 667GPGME_LIBS 668GPGME_CFLAGS 669GPGME_CONFIG 670upx 671groff 672tmp 673doxygen 674LIBOBJS 675CPP 676OTOOL64 677OTOOL 678LIPO 679NMEDIT 680DSYMUTIL 681MANIFEST_TOOL 682RANLIB 683ac_ct_AR 684AR 685DLLTOOL 686OBJDUMP 687LN_S 688NM 689ac_ct_DUMPBIN 690DUMPBIN 691LD 692FGREP 693LIBTOOL 694pkgconfigdir 695POSUB 696LTLIBINTL 697LIBINTL 698INTLLIBS 699LTLIBICONV 700LIBICONV 701INTL_MACOSX_LIBS 702EGREP 703GREP 704CXXCPP 705am__fastdepCXX_FALSE 706am__fastdepCXX_TRUE 707CXXDEPMODE 708ac_ct_CXX 709CXXFLAGS 710CXX 711host_os 712host_vendor 713host_cpu 714host 715build_os 716build_vendor 717build_cpu 718build 719am__fastdepCC_FALSE 720am__fastdepCC_TRUE 721CCDEPMODE 722am__nodep 723AMDEPBACKSLASH 724AMDEP_FALSE 725AMDEP_TRUE 726am__quote 727am__include 728DEPDIR 729OBJEXT 730EXEEXT 731ac_ct_CC 732CPPFLAGS 733LDFLAGS 734CFLAGS 735CC 736XGETTEXT_EXTRA_OPTIONS 737MSGMERGE 738XGETTEXT_015 739XGETTEXT 740GMSGFMT_015 741MSGFMT_015 742GMSGFMT 743MSGFMT 744GETTEXT_MACRO_VERSION 745USE_NLS 746SED 747AM_BACKSLASH 748AM_DEFAULT_VERBOSITY 749AM_DEFAULT_V 750AM_V 751am__untar 752am__tar 753AMTAR 754am__leading_dot 755SET_MAKE 756AWK 757mkdir_p 758MKDIR_P 759INSTALL_STRIP_PROGRAM 760STRIP 761install_sh 762MAKEINFO 763AUTOHEADER 764AUTOMAKE 765AUTOCONF 766ACLOCAL 767VERSION 768PACKAGE 769CYGPATH_W 770am__isrc 771INSTALL_DATA 772INSTALL_SCRIPT 773INSTALL_PROGRAM 774target_alias 775host_alias 776build_alias 777LIBS 778ECHO_T 779ECHO_N 780ECHO_C 781DEFS 782mandir 783localedir 784libdir 785psdir 786pdfdir 787dvidir 788htmldir 789infodir 790docdir 791oldincludedir 792includedir 793localstatedir 794sharedstatedir 795sysconfdir 796datadir 797datarootdir 798libexecdir 799sbindir 800bindir 801program_transform_name 802prefix 803exec_prefix 804PACKAGE_URL 805PACKAGE_BUGREPORT 806PACKAGE_STRING 807PACKAGE_VERSION 808PACKAGE_TARNAME 809PACKAGE_NAME 810PATH_SEPARATOR 811SHELL' 812ac_subst_files='' 813ac_user_opts=' 814enable_option_checking 815enable_silent_rules 816enable_nls 817enable_dependency_tracking 818with_gnu_ld 819enable_rpath 820with_libiconv_prefix 821with_libintl_prefix 822with_pkgconfigdir 823enable_shared 824enable_static 825with_pic 826enable_fast_install 827with_sysroot 828enable_libtool_lock 829enable_libdl_linking 830enable_largefile 831enable_libz_linking 832enable_libbz2_linking 833enable_liblzo2_linking 834enable_libxz_linking 835enable_libgcrypt_linking 836enable_ea_support 837enable_nodump_flag 838enable_birthtime 839enable_gnugetopt 840enable_fadvise 841enable_examples 842enable_os_bits 843enable_mode 844enable_furtive_read 845enable_debug 846enable_pedantic 847enable_build_html 848enable_special_alloc 849enable_upx 850enable_fast_dir 851enable_thread_safe 852enable_gpgme_linking 853with_gpgme_prefix 854enable_execinfo 855enable_profiling 856enable_debug_memory 857enable_dar_static 858enable_threadar 859' 860 ac_precious_vars='build_alias 861host_alias 862target_alias 863CC 864CFLAGS 865LDFLAGS 866LIBS 867CPPFLAGS 868CXX 869CXXFLAGS 870CCC 871CXXCPP 872CPP' 873 874 875# Initialize some variables set by options. 876ac_init_help= 877ac_init_version=false 878ac_unrecognized_opts= 879ac_unrecognized_sep= 880# The variables have the same names as the options, with 881# dashes changed to underlines. 882cache_file=/dev/null 883exec_prefix=NONE 884no_create= 885no_recursion= 886prefix=NONE 887program_prefix=NONE 888program_suffix=NONE 889program_transform_name=s,x,x, 890silent= 891site= 892srcdir= 893verbose= 894x_includes=NONE 895x_libraries=NONE 896 897# Installation directory options. 898# These are left unexpanded so users can "make install exec_prefix=/foo" 899# and all the variables that are supposed to be based on exec_prefix 900# by default will actually change. 901# Use braces instead of parens because sh, perl, etc. also accept them. 902# (The list follows the same order as the GNU Coding Standards.) 903bindir='${exec_prefix}/bin' 904sbindir='${exec_prefix}/sbin' 905libexecdir='${exec_prefix}/libexec' 906datarootdir='${prefix}/share' 907datadir='${datarootdir}' 908sysconfdir='${prefix}/etc' 909sharedstatedir='${prefix}/com' 910localstatedir='${prefix}/var' 911includedir='${prefix}/include' 912oldincludedir='/usr/include' 913docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 914infodir='${datarootdir}/info' 915htmldir='${docdir}' 916dvidir='${docdir}' 917pdfdir='${docdir}' 918psdir='${docdir}' 919libdir='${exec_prefix}/lib' 920localedir='${datarootdir}/locale' 921mandir='${datarootdir}/man' 922 923ac_prev= 924ac_dashdash= 925for ac_option 926do 927 # If the previous option needs an argument, assign it. 928 if test -n "$ac_prev"; then 929 eval $ac_prev=\$ac_option 930 ac_prev= 931 continue 932 fi 933 934 case $ac_option in 935 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 936 *=) ac_optarg= ;; 937 *) ac_optarg=yes ;; 938 esac 939 940 # Accept the important Cygnus configure options, so we can diagnose typos. 941 942 case $ac_dashdash$ac_option in 943 --) 944 ac_dashdash=yes ;; 945 946 -bindir | --bindir | --bindi | --bind | --bin | --bi) 947 ac_prev=bindir ;; 948 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 949 bindir=$ac_optarg ;; 950 951 -build | --build | --buil | --bui | --bu) 952 ac_prev=build_alias ;; 953 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 954 build_alias=$ac_optarg ;; 955 956 -cache-file | --cache-file | --cache-fil | --cache-fi \ 957 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 958 ac_prev=cache_file ;; 959 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 960 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 961 cache_file=$ac_optarg ;; 962 963 --config-cache | -C) 964 cache_file=config.cache ;; 965 966 -datadir | --datadir | --datadi | --datad) 967 ac_prev=datadir ;; 968 -datadir=* | --datadir=* | --datadi=* | --datad=*) 969 datadir=$ac_optarg ;; 970 971 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 972 | --dataroo | --dataro | --datar) 973 ac_prev=datarootdir ;; 974 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 975 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 976 datarootdir=$ac_optarg ;; 977 978 -disable-* | --disable-*) 979 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 980 # Reject names that are not valid shell variable names. 981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 982 as_fn_error $? "invalid feature name: $ac_useropt" 983 ac_useropt_orig=$ac_useropt 984 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 985 case $ac_user_opts in 986 *" 987"enable_$ac_useropt" 988"*) ;; 989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 990 ac_unrecognized_sep=', ';; 991 esac 992 eval enable_$ac_useropt=no ;; 993 994 -docdir | --docdir | --docdi | --doc | --do) 995 ac_prev=docdir ;; 996 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 997 docdir=$ac_optarg ;; 998 999 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1000 ac_prev=dvidir ;; 1001 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1002 dvidir=$ac_optarg ;; 1003 1004 -enable-* | --enable-*) 1005 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1006 # Reject names that are not valid shell variable names. 1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1008 as_fn_error $? "invalid feature name: $ac_useropt" 1009 ac_useropt_orig=$ac_useropt 1010 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1011 case $ac_user_opts in 1012 *" 1013"enable_$ac_useropt" 1014"*) ;; 1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1016 ac_unrecognized_sep=', ';; 1017 esac 1018 eval enable_$ac_useropt=\$ac_optarg ;; 1019 1020 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1021 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1022 | --exec | --exe | --ex) 1023 ac_prev=exec_prefix ;; 1024 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1025 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1026 | --exec=* | --exe=* | --ex=*) 1027 exec_prefix=$ac_optarg ;; 1028 1029 -gas | --gas | --ga | --g) 1030 # Obsolete; use --with-gas. 1031 with_gas=yes ;; 1032 1033 -help | --help | --hel | --he | -h) 1034 ac_init_help=long ;; 1035 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1036 ac_init_help=recursive ;; 1037 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1038 ac_init_help=short ;; 1039 1040 -host | --host | --hos | --ho) 1041 ac_prev=host_alias ;; 1042 -host=* | --host=* | --hos=* | --ho=*) 1043 host_alias=$ac_optarg ;; 1044 1045 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1046 ac_prev=htmldir ;; 1047 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1048 | --ht=*) 1049 htmldir=$ac_optarg ;; 1050 1051 -includedir | --includedir | --includedi | --included | --include \ 1052 | --includ | --inclu | --incl | --inc) 1053 ac_prev=includedir ;; 1054 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1055 | --includ=* | --inclu=* | --incl=* | --inc=*) 1056 includedir=$ac_optarg ;; 1057 1058 -infodir | --infodir | --infodi | --infod | --info | --inf) 1059 ac_prev=infodir ;; 1060 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1061 infodir=$ac_optarg ;; 1062 1063 -libdir | --libdir | --libdi | --libd) 1064 ac_prev=libdir ;; 1065 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1066 libdir=$ac_optarg ;; 1067 1068 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1069 | --libexe | --libex | --libe) 1070 ac_prev=libexecdir ;; 1071 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1072 | --libexe=* | --libex=* | --libe=*) 1073 libexecdir=$ac_optarg ;; 1074 1075 -localedir | --localedir | --localedi | --localed | --locale) 1076 ac_prev=localedir ;; 1077 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1078 localedir=$ac_optarg ;; 1079 1080 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1081 | --localstate | --localstat | --localsta | --localst | --locals) 1082 ac_prev=localstatedir ;; 1083 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1084 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1085 localstatedir=$ac_optarg ;; 1086 1087 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1088 ac_prev=mandir ;; 1089 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1090 mandir=$ac_optarg ;; 1091 1092 -nfp | --nfp | --nf) 1093 # Obsolete; use --without-fp. 1094 with_fp=no ;; 1095 1096 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1097 | --no-cr | --no-c | -n) 1098 no_create=yes ;; 1099 1100 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1101 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1102 no_recursion=yes ;; 1103 1104 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1105 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1106 | --oldin | --oldi | --old | --ol | --o) 1107 ac_prev=oldincludedir ;; 1108 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1109 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1110 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1111 oldincludedir=$ac_optarg ;; 1112 1113 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1114 ac_prev=prefix ;; 1115 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1116 prefix=$ac_optarg ;; 1117 1118 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1119 | --program-pre | --program-pr | --program-p) 1120 ac_prev=program_prefix ;; 1121 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1122 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1123 program_prefix=$ac_optarg ;; 1124 1125 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1126 | --program-suf | --program-su | --program-s) 1127 ac_prev=program_suffix ;; 1128 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1129 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1130 program_suffix=$ac_optarg ;; 1131 1132 -program-transform-name | --program-transform-name \ 1133 | --program-transform-nam | --program-transform-na \ 1134 | --program-transform-n | --program-transform- \ 1135 | --program-transform | --program-transfor \ 1136 | --program-transfo | --program-transf \ 1137 | --program-trans | --program-tran \ 1138 | --progr-tra | --program-tr | --program-t) 1139 ac_prev=program_transform_name ;; 1140 -program-transform-name=* | --program-transform-name=* \ 1141 | --program-transform-nam=* | --program-transform-na=* \ 1142 | --program-transform-n=* | --program-transform-=* \ 1143 | --program-transform=* | --program-transfor=* \ 1144 | --program-transfo=* | --program-transf=* \ 1145 | --program-trans=* | --program-tran=* \ 1146 | --progr-tra=* | --program-tr=* | --program-t=*) 1147 program_transform_name=$ac_optarg ;; 1148 1149 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1150 ac_prev=pdfdir ;; 1151 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1152 pdfdir=$ac_optarg ;; 1153 1154 -psdir | --psdir | --psdi | --psd | --ps) 1155 ac_prev=psdir ;; 1156 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1157 psdir=$ac_optarg ;; 1158 1159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1160 | -silent | --silent | --silen | --sile | --sil) 1161 silent=yes ;; 1162 1163 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1164 ac_prev=sbindir ;; 1165 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1166 | --sbi=* | --sb=*) 1167 sbindir=$ac_optarg ;; 1168 1169 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1170 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1171 | --sharedst | --shareds | --shared | --share | --shar \ 1172 | --sha | --sh) 1173 ac_prev=sharedstatedir ;; 1174 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1175 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1176 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1177 | --sha=* | --sh=*) 1178 sharedstatedir=$ac_optarg ;; 1179 1180 -site | --site | --sit) 1181 ac_prev=site ;; 1182 -site=* | --site=* | --sit=*) 1183 site=$ac_optarg ;; 1184 1185 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1186 ac_prev=srcdir ;; 1187 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1188 srcdir=$ac_optarg ;; 1189 1190 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1191 | --syscon | --sysco | --sysc | --sys | --sy) 1192 ac_prev=sysconfdir ;; 1193 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1194 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1195 sysconfdir=$ac_optarg ;; 1196 1197 -target | --target | --targe | --targ | --tar | --ta | --t) 1198 ac_prev=target_alias ;; 1199 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1200 target_alias=$ac_optarg ;; 1201 1202 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1203 verbose=yes ;; 1204 1205 -version | --version | --versio | --versi | --vers | -V) 1206 ac_init_version=: ;; 1207 1208 -with-* | --with-*) 1209 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1210 # Reject names that are not valid shell variable names. 1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1212 as_fn_error $? "invalid package name: $ac_useropt" 1213 ac_useropt_orig=$ac_useropt 1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1215 case $ac_user_opts in 1216 *" 1217"with_$ac_useropt" 1218"*) ;; 1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1220 ac_unrecognized_sep=', ';; 1221 esac 1222 eval with_$ac_useropt=\$ac_optarg ;; 1223 1224 -without-* | --without-*) 1225 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1226 # Reject names that are not valid shell variable names. 1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1228 as_fn_error $? "invalid package name: $ac_useropt" 1229 ac_useropt_orig=$ac_useropt 1230 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1231 case $ac_user_opts in 1232 *" 1233"with_$ac_useropt" 1234"*) ;; 1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1236 ac_unrecognized_sep=', ';; 1237 esac 1238 eval with_$ac_useropt=no ;; 1239 1240 --x) 1241 # Obsolete; use --with-x. 1242 with_x=yes ;; 1243 1244 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1245 | --x-incl | --x-inc | --x-in | --x-i) 1246 ac_prev=x_includes ;; 1247 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1248 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1249 x_includes=$ac_optarg ;; 1250 1251 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1252 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1253 ac_prev=x_libraries ;; 1254 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1255 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1256 x_libraries=$ac_optarg ;; 1257 1258 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1259Try \`$0 --help' for more information" 1260 ;; 1261 1262 *=*) 1263 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1264 # Reject names that are not valid shell variable names. 1265 case $ac_envvar in #( 1266 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1267 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1268 esac 1269 eval $ac_envvar=\$ac_optarg 1270 export $ac_envvar ;; 1271 1272 *) 1273 # FIXME: should be removed in autoconf 3.0. 1274 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1275 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1276 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1277 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1278 ;; 1279 1280 esac 1281done 1282 1283if test -n "$ac_prev"; then 1284 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1285 as_fn_error $? "missing argument to $ac_option" 1286fi 1287 1288if test -n "$ac_unrecognized_opts"; then 1289 case $enable_option_checking in 1290 no) ;; 1291 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1292 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1293 esac 1294fi 1295 1296# Check all directory arguments for consistency. 1297for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1298 datadir sysconfdir sharedstatedir localstatedir includedir \ 1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1300 libdir localedir mandir 1301do 1302 eval ac_val=\$$ac_var 1303 # Remove trailing slashes. 1304 case $ac_val in 1305 */ ) 1306 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1307 eval $ac_var=\$ac_val;; 1308 esac 1309 # Be sure to have absolute directory names. 1310 case $ac_val in 1311 [\\/$]* | ?:[\\/]* ) continue;; 1312 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1313 esac 1314 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1315done 1316 1317# There might be people who depend on the old broken behavior: `$host' 1318# used to hold the argument of --host etc. 1319# FIXME: To remove some day. 1320build=$build_alias 1321host=$host_alias 1322target=$target_alias 1323 1324# FIXME: To remove some day. 1325if test "x$host_alias" != x; then 1326 if test "x$build_alias" = x; then 1327 cross_compiling=maybe 1328 elif test "x$build_alias" != "x$host_alias"; then 1329 cross_compiling=yes 1330 fi 1331fi 1332 1333ac_tool_prefix= 1334test -n "$host_alias" && ac_tool_prefix=$host_alias- 1335 1336test "$silent" = yes && exec 6>/dev/null 1337 1338 1339ac_pwd=`pwd` && test -n "$ac_pwd" && 1340ac_ls_di=`ls -di .` && 1341ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1342 as_fn_error $? "working directory cannot be determined" 1343test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1344 as_fn_error $? "pwd does not report name of working directory" 1345 1346 1347# Find the source files, if location was not specified. 1348if test -z "$srcdir"; then 1349 ac_srcdir_defaulted=yes 1350 # Try the directory containing this script, then the parent directory. 1351 ac_confdir=`$as_dirname -- "$as_myself" || 1352$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1353 X"$as_myself" : 'X\(//\)[^/]' \| \ 1354 X"$as_myself" : 'X\(//\)$' \| \ 1355 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1356$as_echo X"$as_myself" | 1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1358 s//\1/ 1359 q 1360 } 1361 /^X\(\/\/\)[^/].*/{ 1362 s//\1/ 1363 q 1364 } 1365 /^X\(\/\/\)$/{ 1366 s//\1/ 1367 q 1368 } 1369 /^X\(\/\).*/{ 1370 s//\1/ 1371 q 1372 } 1373 s/.*/./; q'` 1374 srcdir=$ac_confdir 1375 if test ! -r "$srcdir/$ac_unique_file"; then 1376 srcdir=.. 1377 fi 1378else 1379 ac_srcdir_defaulted=no 1380fi 1381if test ! -r "$srcdir/$ac_unique_file"; then 1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1383 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1384fi 1385ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1386ac_abs_confdir=`( 1387 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1388 pwd)` 1389# When building in place, set srcdir=. 1390if test "$ac_abs_confdir" = "$ac_pwd"; then 1391 srcdir=. 1392fi 1393# Remove unnecessary trailing slashes from srcdir. 1394# Double slashes in file names in object file debugging info 1395# mess up M-x gdb in Emacs. 1396case $srcdir in 1397*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1398esac 1399for ac_var in $ac_precious_vars; do 1400 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1401 eval ac_env_${ac_var}_value=\$${ac_var} 1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1403 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1404done 1405 1406# 1407# Report the --help message. 1408# 1409if test "$ac_init_help" = "long"; then 1410 # Omit some internal or obsolete options to make the list less imposing. 1411 # This message is too long to be a string in the A/UX 3.1 sh. 1412 cat <<_ACEOF 1413\`configure' configures DAR 2.5.14-bis to adapt to many kinds of systems. 1414 1415Usage: $0 [OPTION]... [VAR=VALUE]... 1416 1417To assign environment variables (e.g., CC, CFLAGS...), specify them as 1418VAR=VALUE. See below for descriptions of some of the useful variables. 1419 1420Defaults for the options are specified in brackets. 1421 1422Configuration: 1423 -h, --help display this help and exit 1424 --help=short display options specific to this package 1425 --help=recursive display the short help of all the included packages 1426 -V, --version display version information and exit 1427 -q, --quiet, --silent do not print \`checking ...' messages 1428 --cache-file=FILE cache test results in FILE [disabled] 1429 -C, --config-cache alias for \`--cache-file=config.cache' 1430 -n, --no-create do not create output files 1431 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1432 1433Installation directories: 1434 --prefix=PREFIX install architecture-independent files in PREFIX 1435 [$ac_default_prefix] 1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1437 [PREFIX] 1438 1439By default, \`make install' will install all the files in 1440\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1441an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1442for instance \`--prefix=\$HOME'. 1443 1444For better control, use the options below. 1445 1446Fine tuning of the installation directories: 1447 --bindir=DIR user executables [EPREFIX/bin] 1448 --sbindir=DIR system admin executables [EPREFIX/sbin] 1449 --libexecdir=DIR program executables [EPREFIX/libexec] 1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1453 --libdir=DIR object code libraries [EPREFIX/lib] 1454 --includedir=DIR C header files [PREFIX/include] 1455 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1458 --infodir=DIR info documentation [DATAROOTDIR/info] 1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1460 --mandir=DIR man documentation [DATAROOTDIR/man] 1461 --docdir=DIR documentation root [DATAROOTDIR/doc/dar] 1462 --htmldir=DIR html documentation [DOCDIR] 1463 --dvidir=DIR dvi documentation [DOCDIR] 1464 --pdfdir=DIR pdf documentation [DOCDIR] 1465 --psdir=DIR ps documentation [DOCDIR] 1466_ACEOF 1467 1468 cat <<\_ACEOF 1469 1470Program names: 1471 --program-prefix=PREFIX prepend PREFIX to installed program names 1472 --program-suffix=SUFFIX append SUFFIX to installed program names 1473 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1474 1475System types: 1476 --build=BUILD configure for building on BUILD [guessed] 1477 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1478_ACEOF 1479fi 1480 1481if test -n "$ac_init_help"; then 1482 case $ac_init_help in 1483 short | recursive ) echo "Configuration of DAR 2.5.14-bis:";; 1484 esac 1485 cat <<\_ACEOF 1486 1487Optional Features: 1488 --disable-option-checking ignore unrecognized --enable/--with options 1489 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1490 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1491 --enable-silent-rules less verbose build output (undo: "make V=1") 1492 --disable-silent-rules verbose build output (undo: "make V=0") 1493 --disable-nls do not use Native Language Support 1494 --enable-dependency-tracking 1495 do not reject slow dependency extractors 1496 --disable-dependency-tracking 1497 speeds up one-time build 1498 --disable-rpath do not hardcode runtime library paths 1499 --enable-shared[=PKGS] build shared libraries [default=yes] 1500 --enable-static[=PKGS] build static libraries [default=yes] 1501 --enable-fast-install[=PKGS] 1502 optimize for fast installation [default=yes] 1503 --disable-libtool-lock avoid locking (might break parallel builds) 1504 --disable-libdl-linking ignore any libdl and avoid linking against it 1505 --disable-largefile omit support for large files 1506 --disable-libz-linking disable linking with libz and disable libz 1507 compression support 1508 --disable-libbz2-linking 1509 disable linking with libbz2 and disables libbz2 1510 compression support 1511 --disable-liblzo2-linking 1512 disable linking with liblzo2 and disables lzo 1513 compression support 1514 --disable-libxz-linking disable linking with libxz/liblzma and disable libxz 1515 compression support 1516 --disable-libgcrypt-linking 1517 disable linking with libgcrypt which disables strong 1518 encryption support 1519 --disable-ea-support disable Extended Attributes support 1520 --disable-nodump-flag disable the ext2/3/4 Filesystem Specific Attribute 1521 support, in particular the --nodump feature 1522 --disable-birthtime disable the HFS+ Filesystem Specific Attribute 1523 support 1524 --disable-gnugetopt avoid linking with libgnugetopt 1525 --disable-fadvise avoid using fadvise(2) system call 1526 --enable-examples buld example and testing programs 1527 --enable-os-bits=arg arg is 32 or 64. If for some reason, one wants to 1528 overcome detected system value 1529 --enable-mode=arg where arg is 32 or 64. Makes dar internally use 32 1530 bits or 64 bits integers in place of infinint (which 1531 is the case if this option is not given) 1532 --disable-furtive-read Ignore furtive read mode availability on systems 1533 that support it 1534 --enable-debug build targets with debugging option and no 1535 optimization 1536 --enable-pedantic enable pedantic syntaxical check at compilation, use 1537 only for debugging purposes ! 1538 --disable-build-html don't build programming documentation (in particular 1539 libdar API documentation) and html man page 1540 --enable-special-alloc special memory allcation scheme makes dar using less 1541 memory and run a bit faster, in particular in 1542 conjunction with --enable-mode=32 or 64, deprecated 1543 since release 2.5.5 you can re-enable it if you like 1544 --disable-upx by default configure looks for UPX and if available 1545 make executables compressed at installation time, 1546 you can disable this feature 1547 --disable-fast-dir disable optimization for large directories, doing so 1548 has a little positive impact on memory requirement 1549 but a huge drawback on execution time 1550 --disable-thread-safe libdar is thread safe if POSIX mutex are available, 1551 you can manually disable the use of POSIX mutex, the 1552 resulting libdar library will not be thread-safe 1553 anymore unless special-alloc is disabled too 1554 --disable-gpgme-linking disable linking with gpgme which disables asymetric 1555 crypto algorithms 1556 --disable-execinfo disable reporting stack information on self 1557 diagnostic bugs even 1558 --enable-profiling enable executable profiling 1559 --enable-debug-memory log memory allocations and releases to 1560 /tmp/dar_debug_mem_allocation.txt this debugging 1561 option lead to a slow executable 1562 --disable-dar-static avoids building dar_static, a dar statically linked 1563 version 1564 --enable-threadar EXPERIMENTAL! links with libthreadar if available in 1565 order to use several threads inside libdar 1566 1567Optional Packages: 1568 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1569 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1570 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1571 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1572 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1573 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1574 --without-libintl-prefix don't search for libintl in includedir and libdir 1575 --with-pkgconfigdir=DIR defines an alternative directory to install pkconfig 1576 files, default is '${libdir}/pkgconfig' 1577 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1578 both] 1579 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1580 --with-sysroot=DIR Search for dependent libraries within DIR 1581 (or the compiler's sysroot if not specified). 1582 --with-gpgme-prefix=PFX prefix where GPGME is installed (optional) 1583 1584Some influential environment variables: 1585 CC C compiler command 1586 CFLAGS C compiler flags 1587 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1588 nonstandard directory <lib dir> 1589 LIBS libraries to pass to the linker, e.g. -l<library> 1590 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1591 you have headers in a nonstandard directory <include dir> 1592 CXX C++ compiler command 1593 CXXFLAGS C++ compiler flags 1594 CXXCPP C++ preprocessor 1595 CPP C preprocessor 1596 1597Use these variables to override the choices made by `configure' or to help 1598it to find libraries and programs with nonstandard names/locations. 1599 1600Report bugs to <http://sourceforge.net/tracker/?group_id=65612&atid=511612>. 1601_ACEOF 1602ac_status=$? 1603fi 1604 1605if test "$ac_init_help" = "recursive"; then 1606 # If there are subdirs, report their specific --help. 1607 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1608 test -d "$ac_dir" || 1609 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1610 continue 1611 ac_builddir=. 1612 1613case "$ac_dir" in 1614.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1615*) 1616 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1617 # A ".." for each directory in $ac_dir_suffix. 1618 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1619 case $ac_top_builddir_sub in 1620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1622 esac ;; 1623esac 1624ac_abs_top_builddir=$ac_pwd 1625ac_abs_builddir=$ac_pwd$ac_dir_suffix 1626# for backward compatibility: 1627ac_top_builddir=$ac_top_build_prefix 1628 1629case $srcdir in 1630 .) # We are building in place. 1631 ac_srcdir=. 1632 ac_top_srcdir=$ac_top_builddir_sub 1633 ac_abs_top_srcdir=$ac_pwd ;; 1634 [\\/]* | ?:[\\/]* ) # Absolute name. 1635 ac_srcdir=$srcdir$ac_dir_suffix; 1636 ac_top_srcdir=$srcdir 1637 ac_abs_top_srcdir=$srcdir ;; 1638 *) # Relative name. 1639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1640 ac_top_srcdir=$ac_top_build_prefix$srcdir 1641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1642esac 1643ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1644 1645 cd "$ac_dir" || { ac_status=$?; continue; } 1646 # Check for guested configure. 1647 if test -f "$ac_srcdir/configure.gnu"; then 1648 echo && 1649 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1650 elif test -f "$ac_srcdir/configure"; then 1651 echo && 1652 $SHELL "$ac_srcdir/configure" --help=recursive 1653 else 1654 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1655 fi || ac_status=$? 1656 cd "$ac_pwd" || { ac_status=$?; break; } 1657 done 1658fi 1659 1660test -n "$ac_init_help" && exit $ac_status 1661if $ac_init_version; then 1662 cat <<\_ACEOF 1663DAR configure 2.5.14-bis 1664generated by GNU Autoconf 2.69 1665 1666Copyright (C) 2012 Free Software Foundation, Inc. 1667This configure script is free software; the Free Software Foundation 1668gives unlimited permission to copy, distribute and modify it. 1669_ACEOF 1670 exit 1671fi 1672 1673## ------------------------ ## 1674## Autoconf initialization. ## 1675## ------------------------ ## 1676 1677# ac_fn_c_try_compile LINENO 1678# -------------------------- 1679# Try to compile conftest.$ac_ext, and return whether this succeeded. 1680ac_fn_c_try_compile () 1681{ 1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1683 rm -f conftest.$ac_objext 1684 if { { ac_try="$ac_compile" 1685case "(($ac_try" in 1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1687 *) ac_try_echo=$ac_try;; 1688esac 1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1690$as_echo "$ac_try_echo"; } >&5 1691 (eval "$ac_compile") 2>conftest.err 1692 ac_status=$? 1693 if test -s conftest.err; then 1694 grep -v '^ *+' conftest.err >conftest.er1 1695 cat conftest.er1 >&5 1696 mv -f conftest.er1 conftest.err 1697 fi 1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1699 test $ac_status = 0; } && { 1700 test -z "$ac_c_werror_flag" || 1701 test ! -s conftest.err 1702 } && test -s conftest.$ac_objext; then : 1703 ac_retval=0 1704else 1705 $as_echo "$as_me: failed program was:" >&5 1706sed 's/^/| /' conftest.$ac_ext >&5 1707 1708 ac_retval=1 1709fi 1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1711 as_fn_set_status $ac_retval 1712 1713} # ac_fn_c_try_compile 1714 1715# ac_fn_cxx_try_compile LINENO 1716# ---------------------------- 1717# Try to compile conftest.$ac_ext, and return whether this succeeded. 1718ac_fn_cxx_try_compile () 1719{ 1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1721 rm -f conftest.$ac_objext 1722 if { { ac_try="$ac_compile" 1723case "(($ac_try" in 1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1725 *) ac_try_echo=$ac_try;; 1726esac 1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1728$as_echo "$ac_try_echo"; } >&5 1729 (eval "$ac_compile") 2>conftest.err 1730 ac_status=$? 1731 if test -s conftest.err; then 1732 grep -v '^ *+' conftest.err >conftest.er1 1733 cat conftest.er1 >&5 1734 mv -f conftest.er1 conftest.err 1735 fi 1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1737 test $ac_status = 0; } && { 1738 test -z "$ac_cxx_werror_flag" || 1739 test ! -s conftest.err 1740 } && test -s conftest.$ac_objext; then : 1741 ac_retval=0 1742else 1743 $as_echo "$as_me: failed program was:" >&5 1744sed 's/^/| /' conftest.$ac_ext >&5 1745 1746 ac_retval=1 1747fi 1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1749 as_fn_set_status $ac_retval 1750 1751} # ac_fn_cxx_try_compile 1752 1753# ac_fn_cxx_try_cpp LINENO 1754# ------------------------ 1755# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1756ac_fn_cxx_try_cpp () 1757{ 1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1759 if { { ac_try="$ac_cpp conftest.$ac_ext" 1760case "(($ac_try" in 1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1762 *) ac_try_echo=$ac_try;; 1763esac 1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1765$as_echo "$ac_try_echo"; } >&5 1766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1767 ac_status=$? 1768 if test -s conftest.err; then 1769 grep -v '^ *+' conftest.err >conftest.er1 1770 cat conftest.er1 >&5 1771 mv -f conftest.er1 conftest.err 1772 fi 1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1774 test $ac_status = 0; } > conftest.i && { 1775 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1776 test ! -s conftest.err 1777 }; then : 1778 ac_retval=0 1779else 1780 $as_echo "$as_me: failed program was:" >&5 1781sed 's/^/| /' conftest.$ac_ext >&5 1782 1783 ac_retval=1 1784fi 1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1786 as_fn_set_status $ac_retval 1787 1788} # ac_fn_cxx_try_cpp 1789 1790# ac_fn_cxx_try_link LINENO 1791# ------------------------- 1792# Try to link conftest.$ac_ext, and return whether this succeeded. 1793ac_fn_cxx_try_link () 1794{ 1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1796 rm -f conftest.$ac_objext conftest$ac_exeext 1797 if { { ac_try="$ac_link" 1798case "(($ac_try" in 1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1800 *) ac_try_echo=$ac_try;; 1801esac 1802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1803$as_echo "$ac_try_echo"; } >&5 1804 (eval "$ac_link") 2>conftest.err 1805 ac_status=$? 1806 if test -s conftest.err; then 1807 grep -v '^ *+' conftest.err >conftest.er1 1808 cat conftest.er1 >&5 1809 mv -f conftest.er1 conftest.err 1810 fi 1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1812 test $ac_status = 0; } && { 1813 test -z "$ac_cxx_werror_flag" || 1814 test ! -s conftest.err 1815 } && test -s conftest$ac_exeext && { 1816 test "$cross_compiling" = yes || 1817 test -x conftest$ac_exeext 1818 }; then : 1819 ac_retval=0 1820else 1821 $as_echo "$as_me: failed program was:" >&5 1822sed 's/^/| /' conftest.$ac_ext >&5 1823 1824 ac_retval=1 1825fi 1826 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1827 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1828 # interfere with the next link command; also delete a directory that is 1829 # left behind by Apple's compiler. We do this before executing the actions. 1830 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1832 as_fn_set_status $ac_retval 1833 1834} # ac_fn_cxx_try_link 1835 1836# ac_fn_cxx_try_run LINENO 1837# ------------------------ 1838# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1839# that executables *can* be run. 1840ac_fn_cxx_try_run () 1841{ 1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1843 if { { ac_try="$ac_link" 1844case "(($ac_try" in 1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1846 *) ac_try_echo=$ac_try;; 1847esac 1848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1849$as_echo "$ac_try_echo"; } >&5 1850 (eval "$ac_link") 2>&5 1851 ac_status=$? 1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1853 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1854 { { case "(($ac_try" in 1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1856 *) ac_try_echo=$ac_try;; 1857esac 1858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1859$as_echo "$ac_try_echo"; } >&5 1860 (eval "$ac_try") 2>&5 1861 ac_status=$? 1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1863 test $ac_status = 0; }; }; then : 1864 ac_retval=0 1865else 1866 $as_echo "$as_me: program exited with status $ac_status" >&5 1867 $as_echo "$as_me: failed program was:" >&5 1868sed 's/^/| /' conftest.$ac_ext >&5 1869 1870 ac_retval=$ac_status 1871fi 1872 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1874 as_fn_set_status $ac_retval 1875 1876} # ac_fn_cxx_try_run 1877 1878# ac_fn_c_try_link LINENO 1879# ----------------------- 1880# Try to link conftest.$ac_ext, and return whether this succeeded. 1881ac_fn_c_try_link () 1882{ 1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1884 rm -f conftest.$ac_objext conftest$ac_exeext 1885 if { { ac_try="$ac_link" 1886case "(($ac_try" in 1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1888 *) ac_try_echo=$ac_try;; 1889esac 1890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1891$as_echo "$ac_try_echo"; } >&5 1892 (eval "$ac_link") 2>conftest.err 1893 ac_status=$? 1894 if test -s conftest.err; then 1895 grep -v '^ *+' conftest.err >conftest.er1 1896 cat conftest.er1 >&5 1897 mv -f conftest.er1 conftest.err 1898 fi 1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1900 test $ac_status = 0; } && { 1901 test -z "$ac_c_werror_flag" || 1902 test ! -s conftest.err 1903 } && test -s conftest$ac_exeext && { 1904 test "$cross_compiling" = yes || 1905 test -x conftest$ac_exeext 1906 }; then : 1907 ac_retval=0 1908else 1909 $as_echo "$as_me: failed program was:" >&5 1910sed 's/^/| /' conftest.$ac_ext >&5 1911 1912 ac_retval=1 1913fi 1914 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1915 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1916 # interfere with the next link command; also delete a directory that is 1917 # left behind by Apple's compiler. We do this before executing the actions. 1918 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1920 as_fn_set_status $ac_retval 1921 1922} # ac_fn_c_try_link 1923 1924# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1925# ------------------------------------------------------- 1926# Tests whether HEADER exists and can be compiled using the include files in 1927# INCLUDES, setting the cache variable VAR accordingly. 1928ac_fn_c_check_header_compile () 1929{ 1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1932$as_echo_n "checking for $2... " >&6; } 1933if eval \${$3+:} false; then : 1934 $as_echo_n "(cached) " >&6 1935else 1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1937/* end confdefs.h. */ 1938$4 1939#include <$2> 1940_ACEOF 1941if ac_fn_c_try_compile "$LINENO"; then : 1942 eval "$3=yes" 1943else 1944 eval "$3=no" 1945fi 1946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1947fi 1948eval ac_res=\$$3 1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1950$as_echo "$ac_res" >&6; } 1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1952 1953} # ac_fn_c_check_header_compile 1954 1955# ac_fn_c_try_cpp LINENO 1956# ---------------------- 1957# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1958ac_fn_c_try_cpp () 1959{ 1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1961 if { { ac_try="$ac_cpp conftest.$ac_ext" 1962case "(($ac_try" in 1963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1964 *) ac_try_echo=$ac_try;; 1965esac 1966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1967$as_echo "$ac_try_echo"; } >&5 1968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1969 ac_status=$? 1970 if test -s conftest.err; then 1971 grep -v '^ *+' conftest.err >conftest.er1 1972 cat conftest.er1 >&5 1973 mv -f conftest.er1 conftest.err 1974 fi 1975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1976 test $ac_status = 0; } > conftest.i && { 1977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1978 test ! -s conftest.err 1979 }; then : 1980 ac_retval=0 1981else 1982 $as_echo "$as_me: failed program was:" >&5 1983sed 's/^/| /' conftest.$ac_ext >&5 1984 1985 ac_retval=1 1986fi 1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1988 as_fn_set_status $ac_retval 1989 1990} # ac_fn_c_try_cpp 1991 1992# ac_fn_c_try_run LINENO 1993# ---------------------- 1994# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1995# that executables *can* be run. 1996ac_fn_c_try_run () 1997{ 1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1999 if { { ac_try="$ac_link" 2000case "(($ac_try" in 2001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2002 *) ac_try_echo=$ac_try;; 2003esac 2004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2005$as_echo "$ac_try_echo"; } >&5 2006 (eval "$ac_link") 2>&5 2007 ac_status=$? 2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2009 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2010 { { case "(($ac_try" in 2011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2012 *) ac_try_echo=$ac_try;; 2013esac 2014eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2015$as_echo "$ac_try_echo"; } >&5 2016 (eval "$ac_try") 2>&5 2017 ac_status=$? 2018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2019 test $ac_status = 0; }; }; then : 2020 ac_retval=0 2021else 2022 $as_echo "$as_me: program exited with status $ac_status" >&5 2023 $as_echo "$as_me: failed program was:" >&5 2024sed 's/^/| /' conftest.$ac_ext >&5 2025 2026 ac_retval=$ac_status 2027fi 2028 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2030 as_fn_set_status $ac_retval 2031 2032} # ac_fn_c_try_run 2033 2034# ac_fn_c_check_func LINENO FUNC VAR 2035# ---------------------------------- 2036# Tests whether FUNC exists, setting the cache variable VAR accordingly 2037ac_fn_c_check_func () 2038{ 2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2041$as_echo_n "checking for $2... " >&6; } 2042if eval \${$3+:} false; then : 2043 $as_echo_n "(cached) " >&6 2044else 2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2046/* end confdefs.h. */ 2047/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2048 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2049#define $2 innocuous_$2 2050 2051/* System header to define __stub macros and hopefully few prototypes, 2052 which can conflict with char $2 (); below. 2053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2054 <limits.h> exists even on freestanding compilers. */ 2055 2056#ifdef __STDC__ 2057# include <limits.h> 2058#else 2059# include <assert.h> 2060#endif 2061 2062#undef $2 2063 2064/* Override any GCC internal prototype to avoid an error. 2065 Use char because int might match the return type of a GCC 2066 builtin and then its argument prototype would still apply. */ 2067#ifdef __cplusplus 2068extern "C" 2069#endif 2070char $2 (); 2071/* The GNU C library defines this for functions which it implements 2072 to always fail with ENOSYS. Some functions are actually named 2073 something starting with __ and the normal name is an alias. */ 2074#if defined __stub_$2 || defined __stub___$2 2075choke me 2076#endif 2077 2078int 2079main () 2080{ 2081return $2 (); 2082 ; 2083 return 0; 2084} 2085_ACEOF 2086if ac_fn_c_try_link "$LINENO"; then : 2087 eval "$3=yes" 2088else 2089 eval "$3=no" 2090fi 2091rm -f core conftest.err conftest.$ac_objext \ 2092 conftest$ac_exeext conftest.$ac_ext 2093fi 2094eval ac_res=\$$3 2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2096$as_echo "$ac_res" >&6; } 2097 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2098 2099} # ac_fn_c_check_func 2100 2101# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2102# --------------------------------------------------------- 2103# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2104# the include files in INCLUDES and setting the cache variable VAR 2105# accordingly. 2106ac_fn_cxx_check_header_mongrel () 2107{ 2108 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2109 if eval \${$3+:} false; then : 2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2111$as_echo_n "checking for $2... " >&6; } 2112if eval \${$3+:} false; then : 2113 $as_echo_n "(cached) " >&6 2114fi 2115eval ac_res=\$$3 2116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2117$as_echo "$ac_res" >&6; } 2118else 2119 # Is the header compilable? 2120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2121$as_echo_n "checking $2 usability... " >&6; } 2122cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2123/* end confdefs.h. */ 2124$4 2125#include <$2> 2126_ACEOF 2127if ac_fn_cxx_try_compile "$LINENO"; then : 2128 ac_header_compiler=yes 2129else 2130 ac_header_compiler=no 2131fi 2132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2134$as_echo "$ac_header_compiler" >&6; } 2135 2136# Is the header present? 2137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2138$as_echo_n "checking $2 presence... " >&6; } 2139cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2140/* end confdefs.h. */ 2141#include <$2> 2142_ACEOF 2143if ac_fn_cxx_try_cpp "$LINENO"; then : 2144 ac_header_preproc=yes 2145else 2146 ac_header_preproc=no 2147fi 2148rm -f conftest.err conftest.i conftest.$ac_ext 2149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2150$as_echo "$ac_header_preproc" >&6; } 2151 2152# So? What about this header? 2153case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2154 yes:no: ) 2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2156$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2158$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2159 ;; 2160 no:yes:* ) 2161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2162$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2164$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2166$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2168$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2170$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2171( $as_echo "## ------------------------------------------------------------------------- ## 2172## Report this to http://sourceforge.net/tracker/?group_id=65612&atid=511612 ## 2173## ------------------------------------------------------------------------- ##" 2174 ) | sed "s/^/$as_me: WARNING: /" >&2 2175 ;; 2176esac 2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2178$as_echo_n "checking for $2... " >&6; } 2179if eval \${$3+:} false; then : 2180 $as_echo_n "(cached) " >&6 2181else 2182 eval "$3=\$ac_header_compiler" 2183fi 2184eval ac_res=\$$3 2185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2186$as_echo "$ac_res" >&6; } 2187fi 2188 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2189 2190} # ac_fn_cxx_check_header_mongrel 2191 2192# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES 2193# --------------------------------------------- 2194# Tests whether TYPE exists after having included INCLUDES, setting cache 2195# variable VAR accordingly. 2196ac_fn_cxx_check_type () 2197{ 2198 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2200$as_echo_n "checking for $2... " >&6; } 2201if eval \${$3+:} false; then : 2202 $as_echo_n "(cached) " >&6 2203else 2204 eval "$3=no" 2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2206/* end confdefs.h. */ 2207$4 2208int 2209main () 2210{ 2211if (sizeof ($2)) 2212 return 0; 2213 ; 2214 return 0; 2215} 2216_ACEOF 2217if ac_fn_cxx_try_compile "$LINENO"; then : 2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2219/* end confdefs.h. */ 2220$4 2221int 2222main () 2223{ 2224if (sizeof (($2))) 2225 return 0; 2226 ; 2227 return 0; 2228} 2229_ACEOF 2230if ac_fn_cxx_try_compile "$LINENO"; then : 2231 2232else 2233 eval "$3=yes" 2234fi 2235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2236fi 2237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2238fi 2239eval ac_res=\$$3 2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2241$as_echo "$ac_res" >&6; } 2242 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2243 2244} # ac_fn_cxx_check_type 2245 2246# ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES 2247# ------------------------------------------------------ 2248# Tries to find if the field MEMBER exists in type AGGR, after including 2249# INCLUDES, setting cache variable VAR accordingly. 2250ac_fn_cxx_check_member () 2251{ 2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2254$as_echo_n "checking for $2.$3... " >&6; } 2255if eval \${$4+:} false; then : 2256 $as_echo_n "(cached) " >&6 2257else 2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2259/* end confdefs.h. */ 2260$5 2261int 2262main () 2263{ 2264static $2 ac_aggr; 2265if (ac_aggr.$3) 2266return 0; 2267 ; 2268 return 0; 2269} 2270_ACEOF 2271if ac_fn_cxx_try_compile "$LINENO"; then : 2272 eval "$4=yes" 2273else 2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2275/* end confdefs.h. */ 2276$5 2277int 2278main () 2279{ 2280static $2 ac_aggr; 2281if (sizeof ac_aggr.$3) 2282return 0; 2283 ; 2284 return 0; 2285} 2286_ACEOF 2287if ac_fn_cxx_try_compile "$LINENO"; then : 2288 eval "$4=yes" 2289else 2290 eval "$4=no" 2291fi 2292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2293fi 2294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2295fi 2296eval ac_res=\$$4 2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2298$as_echo "$ac_res" >&6; } 2299 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2300 2301} # ac_fn_cxx_check_member 2302 2303# ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES 2304# ----------------------------------------------- 2305# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2306# accordingly. 2307ac_fn_cxx_check_decl () 2308{ 2309 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2310 as_decl_name=`echo $2|sed 's/ *(.*//'` 2311 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2313$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2314if eval \${$3+:} false; then : 2315 $as_echo_n "(cached) " >&6 2316else 2317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2318/* end confdefs.h. */ 2319$4 2320int 2321main () 2322{ 2323#ifndef $as_decl_name 2324#ifdef __cplusplus 2325 (void) $as_decl_use; 2326#else 2327 (void) $as_decl_name; 2328#endif 2329#endif 2330 2331 ; 2332 return 0; 2333} 2334_ACEOF 2335if ac_fn_cxx_try_compile "$LINENO"; then : 2336 eval "$3=yes" 2337else 2338 eval "$3=no" 2339fi 2340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2341fi 2342eval ac_res=\$$3 2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2344$as_echo "$ac_res" >&6; } 2345 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2346 2347} # ac_fn_cxx_check_decl 2348 2349# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2350# ---------------------------------------------- 2351# Tries to find the compile-time value of EXPR in a program that includes 2352# INCLUDES, setting VAR accordingly. Returns whether the value could be 2353# computed 2354ac_fn_cxx_compute_int () 2355{ 2356 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2357 if test "$cross_compiling" = yes; then 2358 # Depending upon the size, compute the lo and hi bounds. 2359cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2360/* end confdefs.h. */ 2361$4 2362int 2363main () 2364{ 2365static int test_array [1 - 2 * !(($2) >= 0)]; 2366test_array [0] = 0; 2367return test_array [0]; 2368 2369 ; 2370 return 0; 2371} 2372_ACEOF 2373if ac_fn_cxx_try_compile "$LINENO"; then : 2374 ac_lo=0 ac_mid=0 2375 while :; do 2376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2377/* end confdefs.h. */ 2378$4 2379int 2380main () 2381{ 2382static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2383test_array [0] = 0; 2384return test_array [0]; 2385 2386 ; 2387 return 0; 2388} 2389_ACEOF 2390if ac_fn_cxx_try_compile "$LINENO"; then : 2391 ac_hi=$ac_mid; break 2392else 2393 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2394 if test $ac_lo -le $ac_mid; then 2395 ac_lo= ac_hi= 2396 break 2397 fi 2398 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2399fi 2400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2401 done 2402else 2403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2404/* end confdefs.h. */ 2405$4 2406int 2407main () 2408{ 2409static int test_array [1 - 2 * !(($2) < 0)]; 2410test_array [0] = 0; 2411return test_array [0]; 2412 2413 ; 2414 return 0; 2415} 2416_ACEOF 2417if ac_fn_cxx_try_compile "$LINENO"; then : 2418 ac_hi=-1 ac_mid=-1 2419 while :; do 2420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2421/* end confdefs.h. */ 2422$4 2423int 2424main () 2425{ 2426static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2427test_array [0] = 0; 2428return test_array [0]; 2429 2430 ; 2431 return 0; 2432} 2433_ACEOF 2434if ac_fn_cxx_try_compile "$LINENO"; then : 2435 ac_lo=$ac_mid; break 2436else 2437 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2438 if test $ac_mid -le $ac_hi; then 2439 ac_lo= ac_hi= 2440 break 2441 fi 2442 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2443fi 2444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2445 done 2446else 2447 ac_lo= ac_hi= 2448fi 2449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2450fi 2451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2452# Binary search between lo and hi bounds. 2453while test "x$ac_lo" != "x$ac_hi"; do 2454 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2456/* end confdefs.h. */ 2457$4 2458int 2459main () 2460{ 2461static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2462test_array [0] = 0; 2463return test_array [0]; 2464 2465 ; 2466 return 0; 2467} 2468_ACEOF 2469if ac_fn_cxx_try_compile "$LINENO"; then : 2470 ac_hi=$ac_mid 2471else 2472 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2473fi 2474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2475done 2476case $ac_lo in #(( 2477?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2478'') ac_retval=1 ;; 2479esac 2480 else 2481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2482/* end confdefs.h. */ 2483$4 2484static long int longval () { return $2; } 2485static unsigned long int ulongval () { return $2; } 2486#include <stdio.h> 2487#include <stdlib.h> 2488int 2489main () 2490{ 2491 2492 FILE *f = fopen ("conftest.val", "w"); 2493 if (! f) 2494 return 1; 2495 if (($2) < 0) 2496 { 2497 long int i = longval (); 2498 if (i != ($2)) 2499 return 1; 2500 fprintf (f, "%ld", i); 2501 } 2502 else 2503 { 2504 unsigned long int i = ulongval (); 2505 if (i != ($2)) 2506 return 1; 2507 fprintf (f, "%lu", i); 2508 } 2509 /* Do not output a trailing newline, as this causes \r\n confusion 2510 on some platforms. */ 2511 return ferror (f) || fclose (f) != 0; 2512 2513 ; 2514 return 0; 2515} 2516_ACEOF 2517if ac_fn_cxx_try_run "$LINENO"; then : 2518 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2519else 2520 ac_retval=1 2521fi 2522rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2523 conftest.$ac_objext conftest.beam conftest.$ac_ext 2524rm -f conftest.val 2525 2526 fi 2527 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2528 as_fn_set_status $ac_retval 2529 2530} # ac_fn_cxx_compute_int 2531 2532# ac_fn_cxx_check_func LINENO FUNC VAR 2533# ------------------------------------ 2534# Tests whether FUNC exists, setting the cache variable VAR accordingly 2535ac_fn_cxx_check_func () 2536{ 2537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2539$as_echo_n "checking for $2... " >&6; } 2540if eval \${$3+:} false; then : 2541 $as_echo_n "(cached) " >&6 2542else 2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2544/* end confdefs.h. */ 2545/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2546 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2547#define $2 innocuous_$2 2548 2549/* System header to define __stub macros and hopefully few prototypes, 2550 which can conflict with char $2 (); below. 2551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2552 <limits.h> exists even on freestanding compilers. */ 2553 2554#ifdef __STDC__ 2555# include <limits.h> 2556#else 2557# include <assert.h> 2558#endif 2559 2560#undef $2 2561 2562/* Override any GCC internal prototype to avoid an error. 2563 Use char because int might match the return type of a GCC 2564 builtin and then its argument prototype would still apply. */ 2565#ifdef __cplusplus 2566extern "C" 2567#endif 2568char $2 (); 2569/* The GNU C library defines this for functions which it implements 2570 to always fail with ENOSYS. Some functions are actually named 2571 something starting with __ and the normal name is an alias. */ 2572#if defined __stub_$2 || defined __stub___$2 2573choke me 2574#endif 2575 2576int 2577main () 2578{ 2579return $2 (); 2580 ; 2581 return 0; 2582} 2583_ACEOF 2584if ac_fn_cxx_try_link "$LINENO"; then : 2585 eval "$3=yes" 2586else 2587 eval "$3=no" 2588fi 2589rm -f core conftest.err conftest.$ac_objext \ 2590 conftest$ac_exeext conftest.$ac_ext 2591fi 2592eval ac_res=\$$3 2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2594$as_echo "$ac_res" >&6; } 2595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2596 2597} # ac_fn_cxx_check_func 2598 2599# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2600# --------------------------------------------------------- 2601# Tests whether HEADER exists and can be compiled using the include files in 2602# INCLUDES, setting the cache variable VAR accordingly. 2603ac_fn_cxx_check_header_compile () 2604{ 2605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2607$as_echo_n "checking for $2... " >&6; } 2608if eval \${$3+:} false; then : 2609 $as_echo_n "(cached) " >&6 2610else 2611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2612/* end confdefs.h. */ 2613$4 2614#include <$2> 2615_ACEOF 2616if ac_fn_cxx_try_compile "$LINENO"; then : 2617 eval "$3=yes" 2618else 2619 eval "$3=no" 2620fi 2621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2622fi 2623eval ac_res=\$$3 2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2625$as_echo "$ac_res" >&6; } 2626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2627 2628} # ac_fn_cxx_check_header_compile 2629cat >config.log <<_ACEOF 2630This file contains any messages produced by compilers while 2631running configure, to aid debugging if configure makes a mistake. 2632 2633It was created by DAR $as_me 2.5.14-bis, which was 2634generated by GNU Autoconf 2.69. Invocation command line was 2635 2636 $ $0 $@ 2637 2638_ACEOF 2639exec 5>>config.log 2640{ 2641cat <<_ASUNAME 2642## --------- ## 2643## Platform. ## 2644## --------- ## 2645 2646hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2647uname -m = `(uname -m) 2>/dev/null || echo unknown` 2648uname -r = `(uname -r) 2>/dev/null || echo unknown` 2649uname -s = `(uname -s) 2>/dev/null || echo unknown` 2650uname -v = `(uname -v) 2>/dev/null || echo unknown` 2651 2652/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2653/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2654 2655/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2656/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2657/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2658/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2659/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2660/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2661/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2662 2663_ASUNAME 2664 2665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2666for as_dir in $PATH 2667do 2668 IFS=$as_save_IFS 2669 test -z "$as_dir" && as_dir=. 2670 $as_echo "PATH: $as_dir" 2671 done 2672IFS=$as_save_IFS 2673 2674} >&5 2675 2676cat >&5 <<_ACEOF 2677 2678 2679## ----------- ## 2680## Core tests. ## 2681## ----------- ## 2682 2683_ACEOF 2684 2685 2686# Keep a trace of the command line. 2687# Strip out --no-create and --no-recursion so they do not pile up. 2688# Strip out --silent because we don't want to record it for future runs. 2689# Also quote any args containing shell meta-characters. 2690# Make two passes to allow for proper duplicate-argument suppression. 2691ac_configure_args= 2692ac_configure_args0= 2693ac_configure_args1= 2694ac_must_keep_next=false 2695for ac_pass in 1 2 2696do 2697 for ac_arg 2698 do 2699 case $ac_arg in 2700 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2702 | -silent | --silent | --silen | --sile | --sil) 2703 continue ;; 2704 *\'*) 2705 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2706 esac 2707 case $ac_pass in 2708 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2709 2) 2710 as_fn_append ac_configure_args1 " '$ac_arg'" 2711 if test $ac_must_keep_next = true; then 2712 ac_must_keep_next=false # Got value, back to normal. 2713 else 2714 case $ac_arg in 2715 *=* | --config-cache | -C | -disable-* | --disable-* \ 2716 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2717 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2718 | -with-* | --with-* | -without-* | --without-* | --x) 2719 case "$ac_configure_args0 " in 2720 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2721 esac 2722 ;; 2723 -* ) ac_must_keep_next=true ;; 2724 esac 2725 fi 2726 as_fn_append ac_configure_args " '$ac_arg'" 2727 ;; 2728 esac 2729 done 2730done 2731{ ac_configure_args0=; unset ac_configure_args0;} 2732{ ac_configure_args1=; unset ac_configure_args1;} 2733 2734# When interrupted or exit'd, cleanup temporary files, and complete 2735# config.log. We remove comments because anyway the quotes in there 2736# would cause problems or look ugly. 2737# WARNING: Use '\'' to represent an apostrophe within the trap. 2738# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2739trap 'exit_status=$? 2740 # Save into config.log some information that might help in debugging. 2741 { 2742 echo 2743 2744 $as_echo "## ---------------- ## 2745## Cache variables. ## 2746## ---------------- ##" 2747 echo 2748 # The following way of writing the cache mishandles newlines in values, 2749( 2750 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2751 eval ac_val=\$$ac_var 2752 case $ac_val in #( 2753 *${as_nl}*) 2754 case $ac_var in #( 2755 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2756$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2757 esac 2758 case $ac_var in #( 2759 _ | IFS | as_nl) ;; #( 2760 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2761 *) { eval $ac_var=; unset $ac_var;} ;; 2762 esac ;; 2763 esac 2764 done 2765 (set) 2>&1 | 2766 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2767 *${as_nl}ac_space=\ *) 2768 sed -n \ 2769 "s/'\''/'\''\\\\'\'''\''/g; 2770 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2771 ;; #( 2772 *) 2773 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2774 ;; 2775 esac | 2776 sort 2777) 2778 echo 2779 2780 $as_echo "## ----------------- ## 2781## Output variables. ## 2782## ----------------- ##" 2783 echo 2784 for ac_var in $ac_subst_vars 2785 do 2786 eval ac_val=\$$ac_var 2787 case $ac_val in 2788 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2789 esac 2790 $as_echo "$ac_var='\''$ac_val'\''" 2791 done | sort 2792 echo 2793 2794 if test -n "$ac_subst_files"; then 2795 $as_echo "## ------------------- ## 2796## File substitutions. ## 2797## ------------------- ##" 2798 echo 2799 for ac_var in $ac_subst_files 2800 do 2801 eval ac_val=\$$ac_var 2802 case $ac_val in 2803 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2804 esac 2805 $as_echo "$ac_var='\''$ac_val'\''" 2806 done | sort 2807 echo 2808 fi 2809 2810 if test -s confdefs.h; then 2811 $as_echo "## ----------- ## 2812## confdefs.h. ## 2813## ----------- ##" 2814 echo 2815 cat confdefs.h 2816 echo 2817 fi 2818 test "$ac_signal" != 0 && 2819 $as_echo "$as_me: caught signal $ac_signal" 2820 $as_echo "$as_me: exit $exit_status" 2821 } >&5 2822 rm -f core *.core core.conftest.* && 2823 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2824 exit $exit_status 2825' 0 2826for ac_signal in 1 2 13 15; do 2827 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2828done 2829ac_signal=0 2830 2831# confdefs.h avoids OS command line length limits that DEFS can exceed. 2832rm -f -r conftest* confdefs.h 2833 2834$as_echo "/* confdefs.h */" > confdefs.h 2835 2836# Predefined preprocessor variables. 2837 2838cat >>confdefs.h <<_ACEOF 2839#define PACKAGE_NAME "$PACKAGE_NAME" 2840_ACEOF 2841 2842cat >>confdefs.h <<_ACEOF 2843#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2844_ACEOF 2845 2846cat >>confdefs.h <<_ACEOF 2847#define PACKAGE_VERSION "$PACKAGE_VERSION" 2848_ACEOF 2849 2850cat >>confdefs.h <<_ACEOF 2851#define PACKAGE_STRING "$PACKAGE_STRING" 2852_ACEOF 2853 2854cat >>confdefs.h <<_ACEOF 2855#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2856_ACEOF 2857 2858cat >>confdefs.h <<_ACEOF 2859#define PACKAGE_URL "$PACKAGE_URL" 2860_ACEOF 2861 2862 2863# Let the site file select an alternate cache file if it wants to. 2864# Prefer an explicitly selected file to automatically selected ones. 2865ac_site_file1=NONE 2866ac_site_file2=NONE 2867if test -n "$CONFIG_SITE"; then 2868 # We do not want a PATH search for config.site. 2869 case $CONFIG_SITE in #(( 2870 -*) ac_site_file1=./$CONFIG_SITE;; 2871 */*) ac_site_file1=$CONFIG_SITE;; 2872 *) ac_site_file1=./$CONFIG_SITE;; 2873 esac 2874elif test "x$prefix" != xNONE; then 2875 ac_site_file1=$prefix/share/config.site 2876 ac_site_file2=$prefix/etc/config.site 2877else 2878 ac_site_file1=$ac_default_prefix/share/config.site 2879 ac_site_file2=$ac_default_prefix/etc/config.site 2880fi 2881for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2882do 2883 test "x$ac_site_file" = xNONE && continue 2884 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2885 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2886$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2887 sed 's/^/| /' "$ac_site_file" >&5 2888 . "$ac_site_file" \ 2889 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2890$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2891as_fn_error $? "failed to load site script $ac_site_file 2892See \`config.log' for more details" "$LINENO" 5; } 2893 fi 2894done 2895 2896if test -r "$cache_file"; then 2897 # Some versions of bash will fail to source /dev/null (special files 2898 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2899 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2900 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2901$as_echo "$as_me: loading cache $cache_file" >&6;} 2902 case $cache_file in 2903 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2904 *) . "./$cache_file";; 2905 esac 2906 fi 2907else 2908 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2909$as_echo "$as_me: creating cache $cache_file" >&6;} 2910 >$cache_file 2911fi 2912 2913gt_needs="$gt_needs " 2914as_fn_append ac_header_list " utime.h" 2915# Check that the precious variables saved in the cache have kept the same 2916# value. 2917ac_cache_corrupted=false 2918for ac_var in $ac_precious_vars; do 2919 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2920 eval ac_new_set=\$ac_env_${ac_var}_set 2921 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2922 eval ac_new_val=\$ac_env_${ac_var}_value 2923 case $ac_old_set,$ac_new_set in 2924 set,) 2925 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2926$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2927 ac_cache_corrupted=: ;; 2928 ,set) 2929 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2930$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2931 ac_cache_corrupted=: ;; 2932 ,);; 2933 *) 2934 if test "x$ac_old_val" != "x$ac_new_val"; then 2935 # differences in whitespace do not lead to failure. 2936 ac_old_val_w=`echo x $ac_old_val` 2937 ac_new_val_w=`echo x $ac_new_val` 2938 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2939 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2940$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2941 ac_cache_corrupted=: 2942 else 2943 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2944$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2945 eval $ac_var=\$ac_old_val 2946 fi 2947 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2948$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2949 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2950$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2951 fi;; 2952 esac 2953 # Pass precious variables to config.status. 2954 if test "$ac_new_set" = set; then 2955 case $ac_new_val in 2956 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2957 *) ac_arg=$ac_var=$ac_new_val ;; 2958 esac 2959 case " $ac_configure_args " in 2960 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2961 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2962 esac 2963 fi 2964done 2965if $ac_cache_corrupted; then 2966 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2968 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2969$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2970 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2971fi 2972## -------------------- ## 2973## Main body of script. ## 2974## -------------------- ## 2975 2976ac_ext=c 2977ac_cpp='$CPP $CPPFLAGS' 2978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2980ac_compiler_gnu=$ac_cv_c_compiler_gnu 2981 2982 2983ac_config_headers="$ac_config_headers config.h" 2984 2985ac_ext=cpp 2986ac_cpp='$CXXCPP $CPPFLAGS' 2987ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2988ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2989ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2990 2991 2992 2993cat >>confdefs.h <<_ACEOF 2994#define DAR_VERSION "2.5.14-bis" 2995_ACEOF 2996 2997 2998am__api_version='1.14' 2999 3000ac_aux_dir= 3001for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3002 if test -f "$ac_dir/install-sh"; then 3003 ac_aux_dir=$ac_dir 3004 ac_install_sh="$ac_aux_dir/install-sh -c" 3005 break 3006 elif test -f "$ac_dir/install.sh"; then 3007 ac_aux_dir=$ac_dir 3008 ac_install_sh="$ac_aux_dir/install.sh -c" 3009 break 3010 elif test -f "$ac_dir/shtool"; then 3011 ac_aux_dir=$ac_dir 3012 ac_install_sh="$ac_aux_dir/shtool install -c" 3013 break 3014 fi 3015done 3016if test -z "$ac_aux_dir"; then 3017 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3018fi 3019 3020# These three variables are undocumented and unsupported, 3021# and are intended to be withdrawn in a future Autoconf release. 3022# They can cause serious problems if a builder's source tree is in a directory 3023# whose full name contains unusual characters. 3024ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3025ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3026ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3027 3028 3029# Find a good install program. We prefer a C program (faster), 3030# so one script is as good as another. But avoid the broken or 3031# incompatible versions: 3032# SysV /etc/install, /usr/sbin/install 3033# SunOS /usr/etc/install 3034# IRIX /sbin/install 3035# AIX /bin/install 3036# AmigaOS /C/install, which installs bootblocks on floppy discs 3037# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3038# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3039# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3040# OS/2's system install, which has a completely different semantic 3041# ./install, which can be erroneously created by make from ./install.sh. 3042# Reject install programs that cannot install multiple files. 3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3044$as_echo_n "checking for a BSD-compatible install... " >&6; } 3045if test -z "$INSTALL"; then 3046if ${ac_cv_path_install+:} false; then : 3047 $as_echo_n "(cached) " >&6 3048else 3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3050for as_dir in $PATH 3051do 3052 IFS=$as_save_IFS 3053 test -z "$as_dir" && as_dir=. 3054 # Account for people who put trailing slashes in PATH elements. 3055case $as_dir/ in #(( 3056 ./ | .// | /[cC]/* | \ 3057 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3058 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3059 /usr/ucb/* ) ;; 3060 *) 3061 # OSF1 and SCO ODT 3.0 have their own names for install. 3062 # Don't use installbsd from OSF since it installs stuff as root 3063 # by default. 3064 for ac_prog in ginstall scoinst install; do 3065 for ac_exec_ext in '' $ac_executable_extensions; do 3066 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3067 if test $ac_prog = install && 3068 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3069 # AIX install. It has an incompatible calling convention. 3070 : 3071 elif test $ac_prog = install && 3072 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3073 # program-specific install script used by HP pwplus--don't use. 3074 : 3075 else 3076 rm -rf conftest.one conftest.two conftest.dir 3077 echo one > conftest.one 3078 echo two > conftest.two 3079 mkdir conftest.dir 3080 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3081 test -s conftest.one && test -s conftest.two && 3082 test -s conftest.dir/conftest.one && 3083 test -s conftest.dir/conftest.two 3084 then 3085 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3086 break 3 3087 fi 3088 fi 3089 fi 3090 done 3091 done 3092 ;; 3093esac 3094 3095 done 3096IFS=$as_save_IFS 3097 3098rm -rf conftest.one conftest.two conftest.dir 3099 3100fi 3101 if test "${ac_cv_path_install+set}" = set; then 3102 INSTALL=$ac_cv_path_install 3103 else 3104 # As a last resort, use the slow shell script. Don't cache a 3105 # value for INSTALL within a source directory, because that will 3106 # break other packages using the cache if that directory is 3107 # removed, or if the value is a relative name. 3108 INSTALL=$ac_install_sh 3109 fi 3110fi 3111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3112$as_echo "$INSTALL" >&6; } 3113 3114# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3115# It thinks the first close brace ends the variable substitution. 3116test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3117 3118test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3119 3120test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3121 3122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3123$as_echo_n "checking whether build environment is sane... " >&6; } 3124# Reject unsafe characters in $srcdir or the absolute working directory 3125# name. Accept space and tab only in the latter. 3126am_lf=' 3127' 3128case `pwd` in 3129 *[\\\"\#\$\&\'\`$am_lf]*) 3130 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3131esac 3132case $srcdir in 3133 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3134 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3135esac 3136 3137# Do 'set' in a subshell so we don't clobber the current shell's 3138# arguments. Must try -L first in case configure is actually a 3139# symlink; some systems play weird games with the mod time of symlinks 3140# (eg FreeBSD returns the mod time of the symlink's containing 3141# directory). 3142if ( 3143 am_has_slept=no 3144 for am_try in 1 2; do 3145 echo "timestamp, slept: $am_has_slept" > conftest.file 3146 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3147 if test "$*" = "X"; then 3148 # -L didn't work. 3149 set X `ls -t "$srcdir/configure" conftest.file` 3150 fi 3151 if test "$*" != "X $srcdir/configure conftest.file" \ 3152 && test "$*" != "X conftest.file $srcdir/configure"; then 3153 3154 # If neither matched, then we have a broken ls. This can happen 3155 # if, for instance, CONFIG_SHELL is bash and it inherits a 3156 # broken ls alias from the environment. This has actually 3157 # happened. Such a system could not be considered "sane". 3158 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3159 alias in your environment" "$LINENO" 5 3160 fi 3161 if test "$2" = conftest.file || test $am_try -eq 2; then 3162 break 3163 fi 3164 # Just in case. 3165 sleep 1 3166 am_has_slept=yes 3167 done 3168 test "$2" = conftest.file 3169 ) 3170then 3171 # Ok. 3172 : 3173else 3174 as_fn_error $? "newly created file is older than distributed files! 3175Check your system clock" "$LINENO" 5 3176fi 3177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3178$as_echo "yes" >&6; } 3179# If we didn't sleep, we still need to ensure time stamps of config.status and 3180# generated files are strictly newer. 3181am_sleep_pid= 3182if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3183 ( sleep 1 ) & 3184 am_sleep_pid=$! 3185fi 3186 3187rm -f conftest.file 3188 3189test "$program_prefix" != NONE && 3190 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3191# Use a double $ so make ignores it. 3192test "$program_suffix" != NONE && 3193 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3194# Double any \ or $. 3195# By default was `s,x,x', remove it if useless. 3196ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3197program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3198 3199# Expand $ac_aux_dir to an absolute path. 3200am_aux_dir=`cd "$ac_aux_dir" && pwd` 3201 3202if test x"${MISSING+set}" != xset; then 3203 case $am_aux_dir in 3204 *\ * | *\ *) 3205 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3206 *) 3207 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3208 esac 3209fi 3210# Use eval to expand $SHELL 3211if eval "$MISSING --is-lightweight"; then 3212 am_missing_run="$MISSING " 3213else 3214 am_missing_run= 3215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3216$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3217fi 3218 3219if test x"${install_sh}" != xset; then 3220 case $am_aux_dir in 3221 *\ * | *\ *) 3222 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3223 *) 3224 install_sh="\${SHELL} $am_aux_dir/install-sh" 3225 esac 3226fi 3227 3228# Installed binaries are usually stripped using 'strip' when the user 3229# run "make install-strip". However 'strip' might not be the right 3230# tool to use in cross-compilation environments, therefore Automake 3231# will honor the 'STRIP' environment variable to overrule this program. 3232if test "$cross_compiling" != no; then 3233 if test -n "$ac_tool_prefix"; then 3234 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3235set dummy ${ac_tool_prefix}strip; ac_word=$2 3236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3237$as_echo_n "checking for $ac_word... " >&6; } 3238if ${ac_cv_prog_STRIP+:} false; then : 3239 $as_echo_n "(cached) " >&6 3240else 3241 if test -n "$STRIP"; then 3242 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3243else 3244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3245for as_dir in $PATH 3246do 3247 IFS=$as_save_IFS 3248 test -z "$as_dir" && as_dir=. 3249 for ac_exec_ext in '' $ac_executable_extensions; do 3250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3251 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3253 break 2 3254 fi 3255done 3256 done 3257IFS=$as_save_IFS 3258 3259fi 3260fi 3261STRIP=$ac_cv_prog_STRIP 3262if test -n "$STRIP"; then 3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3264$as_echo "$STRIP" >&6; } 3265else 3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3267$as_echo "no" >&6; } 3268fi 3269 3270 3271fi 3272if test -z "$ac_cv_prog_STRIP"; then 3273 ac_ct_STRIP=$STRIP 3274 # Extract the first word of "strip", so it can be a program name with args. 3275set dummy strip; ac_word=$2 3276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3277$as_echo_n "checking for $ac_word... " >&6; } 3278if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3279 $as_echo_n "(cached) " >&6 3280else 3281 if test -n "$ac_ct_STRIP"; then 3282 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3283else 3284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3285for as_dir in $PATH 3286do 3287 IFS=$as_save_IFS 3288 test -z "$as_dir" && as_dir=. 3289 for ac_exec_ext in '' $ac_executable_extensions; do 3290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3291 ac_cv_prog_ac_ct_STRIP="strip" 3292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3293 break 2 3294 fi 3295done 3296 done 3297IFS=$as_save_IFS 3298 3299fi 3300fi 3301ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3302if test -n "$ac_ct_STRIP"; then 3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3304$as_echo "$ac_ct_STRIP" >&6; } 3305else 3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3307$as_echo "no" >&6; } 3308fi 3309 3310 if test "x$ac_ct_STRIP" = x; then 3311 STRIP=":" 3312 else 3313 case $cross_compiling:$ac_tool_warned in 3314yes:) 3315{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3316$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3317ac_tool_warned=yes ;; 3318esac 3319 STRIP=$ac_ct_STRIP 3320 fi 3321else 3322 STRIP="$ac_cv_prog_STRIP" 3323fi 3324 3325fi 3326INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3327 3328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3329$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3330if test -z "$MKDIR_P"; then 3331 if ${ac_cv_path_mkdir+:} false; then : 3332 $as_echo_n "(cached) " >&6 3333else 3334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3335for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3336do 3337 IFS=$as_save_IFS 3338 test -z "$as_dir" && as_dir=. 3339 for ac_prog in mkdir gmkdir; do 3340 for ac_exec_ext in '' $ac_executable_extensions; do 3341 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3342 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3343 'mkdir (GNU coreutils) '* | \ 3344 'mkdir (coreutils) '* | \ 3345 'mkdir (fileutils) '4.1*) 3346 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3347 break 3;; 3348 esac 3349 done 3350 done 3351 done 3352IFS=$as_save_IFS 3353 3354fi 3355 3356 test -d ./--version && rmdir ./--version 3357 if test "${ac_cv_path_mkdir+set}" = set; then 3358 MKDIR_P="$ac_cv_path_mkdir -p" 3359 else 3360 # As a last resort, use the slow shell script. Don't cache a 3361 # value for MKDIR_P within a source directory, because that will 3362 # break other packages using the cache if that directory is 3363 # removed, or if the value is a relative name. 3364 MKDIR_P="$ac_install_sh -d" 3365 fi 3366fi 3367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3368$as_echo "$MKDIR_P" >&6; } 3369 3370for ac_prog in gawk mawk nawk awk 3371do 3372 # Extract the first word of "$ac_prog", so it can be a program name with args. 3373set dummy $ac_prog; ac_word=$2 3374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3375$as_echo_n "checking for $ac_word... " >&6; } 3376if ${ac_cv_prog_AWK+:} false; then : 3377 $as_echo_n "(cached) " >&6 3378else 3379 if test -n "$AWK"; then 3380 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3381else 3382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3383for as_dir in $PATH 3384do 3385 IFS=$as_save_IFS 3386 test -z "$as_dir" && as_dir=. 3387 for ac_exec_ext in '' $ac_executable_extensions; do 3388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3389 ac_cv_prog_AWK="$ac_prog" 3390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3391 break 2 3392 fi 3393done 3394 done 3395IFS=$as_save_IFS 3396 3397fi 3398fi 3399AWK=$ac_cv_prog_AWK 3400if test -n "$AWK"; then 3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3402$as_echo "$AWK" >&6; } 3403else 3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3405$as_echo "no" >&6; } 3406fi 3407 3408 3409 test -n "$AWK" && break 3410done 3411 3412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3413$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3414set x ${MAKE-make} 3415ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3416if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3417 $as_echo_n "(cached) " >&6 3418else 3419 cat >conftest.make <<\_ACEOF 3420SHELL = /bin/sh 3421all: 3422 @echo '@@@%%%=$(MAKE)=@@@%%%' 3423_ACEOF 3424# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3425case `${MAKE-make} -f conftest.make 2>/dev/null` in 3426 *@@@%%%=?*=@@@%%%*) 3427 eval ac_cv_prog_make_${ac_make}_set=yes;; 3428 *) 3429 eval ac_cv_prog_make_${ac_make}_set=no;; 3430esac 3431rm -f conftest.make 3432fi 3433if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3435$as_echo "yes" >&6; } 3436 SET_MAKE= 3437else 3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3439$as_echo "no" >&6; } 3440 SET_MAKE="MAKE=${MAKE-make}" 3441fi 3442 3443rm -rf .tst 2>/dev/null 3444mkdir .tst 2>/dev/null 3445if test -d .tst; then 3446 am__leading_dot=. 3447else 3448 am__leading_dot=_ 3449fi 3450rmdir .tst 2>/dev/null 3451 3452# Check whether --enable-silent-rules was given. 3453if test "${enable_silent_rules+set}" = set; then : 3454 enableval=$enable_silent_rules; 3455fi 3456 3457case $enable_silent_rules in # ((( 3458 yes) AM_DEFAULT_VERBOSITY=0;; 3459 no) AM_DEFAULT_VERBOSITY=1;; 3460 *) AM_DEFAULT_VERBOSITY=1;; 3461esac 3462am_make=${MAKE-make} 3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3464$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3465if ${am_cv_make_support_nested_variables+:} false; then : 3466 $as_echo_n "(cached) " >&6 3467else 3468 if $as_echo 'TRUE=$(BAR$(V)) 3469BAR0=false 3470BAR1=true 3471V=1 3472am__doit: 3473 @$(TRUE) 3474.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3475 am_cv_make_support_nested_variables=yes 3476else 3477 am_cv_make_support_nested_variables=no 3478fi 3479fi 3480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3481$as_echo "$am_cv_make_support_nested_variables" >&6; } 3482if test $am_cv_make_support_nested_variables = yes; then 3483 AM_V='$(V)' 3484 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3485else 3486 AM_V=$AM_DEFAULT_VERBOSITY 3487 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3488fi 3489AM_BACKSLASH='\' 3490 3491if test "`cd $srcdir && pwd`" != "`pwd`"; then 3492 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3493 # is not polluted with repeated "-I." 3494 am__isrc=' -I$(srcdir)' 3495 # test to see if srcdir already configured 3496 if test -f $srcdir/config.status; then 3497 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3498 fi 3499fi 3500 3501# test whether we have cygpath 3502if test -z "$CYGPATH_W"; then 3503 if (cygpath --version) >/dev/null 2>/dev/null; then 3504 CYGPATH_W='cygpath -w' 3505 else 3506 CYGPATH_W=echo 3507 fi 3508fi 3509 3510 3511# Define the identity of the package. 3512 PACKAGE='dar' 3513 VERSION='2.5.14-bis' 3514 3515 3516cat >>confdefs.h <<_ACEOF 3517#define PACKAGE "$PACKAGE" 3518_ACEOF 3519 3520 3521cat >>confdefs.h <<_ACEOF 3522#define VERSION "$VERSION" 3523_ACEOF 3524 3525# Some tools Automake needs. 3526 3527ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3528 3529 3530AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3531 3532 3533AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3534 3535 3536AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3537 3538 3539MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3540 3541# For better backward compatibility. To be removed once Automake 1.9.x 3542# dies out for good. For more background, see: 3543# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3544# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3545mkdir_p='$(MKDIR_P)' 3546 3547# We need awk for the "check" target. The system "awk" is bad on 3548# some platforms. 3549# Always define AMTAR for backward compatibility. Yes, it's still used 3550# in the wild :-( We should find a proper way to deprecate it ... 3551AMTAR='$${TAR-tar}' 3552 3553 3554# We'll loop over all known methods to create a tar archive until one works. 3555_am_tools='gnutar pax cpio none' 3556 3557am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3558 3559 3560 3561 3562 3563 3564# POSIX will say in a future version that running "rm -f" with no argument 3565# is OK; and we want to be able to make that assumption in our Makefile 3566# recipes. So use an aggressive probe to check that the usage we want is 3567# actually supported "in the wild" to an acceptable degree. 3568# See automake bug#10828. 3569# To make any issue more visible, cause the running configure to be aborted 3570# by default if the 'rm' program in use doesn't match our expectations; the 3571# user can still override this though. 3572if rm -f && rm -fr && rm -rf; then : OK; else 3573 cat >&2 <<'END' 3574Oops! 3575 3576Your 'rm' program seems unable to run without file operands specified 3577on the command line, even when the '-f' option is present. This is contrary 3578to the behaviour of most rm programs out there, and not conforming with 3579the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3580 3581Please tell bug-automake@gnu.org about your system, including the value 3582of your $PATH and any error possibly output before this message. This 3583can help us improve future automake versions. 3584 3585END 3586 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3587 echo 'Configuration will proceed anyway, since you have set the' >&2 3588 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3589 echo >&2 3590 else 3591 cat >&2 <<'END' 3592Aborting the configuration process, to ensure you take notice of the issue. 3593 3594You can download and install GNU coreutils to get an 'rm' implementation 3595that behaves properly: <http://www.gnu.org/software/coreutils/>. 3596 3597If you want to complete the configuration process using your problematic 3598'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3599to "yes", and re-run configure. 3600 3601END 3602 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3603 fi 3604fi 3605 3606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3607$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3608if ${ac_cv_path_SED+:} false; then : 3609 $as_echo_n "(cached) " >&6 3610else 3611 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3612 for ac_i in 1 2 3 4 5 6 7; do 3613 ac_script="$ac_script$as_nl$ac_script" 3614 done 3615 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3616 { ac_script=; unset ac_script;} 3617 if test -z "$SED"; then 3618 ac_path_SED_found=false 3619 # Loop through the user's path and test for each of PROGNAME-LIST 3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3621for as_dir in $PATH 3622do 3623 IFS=$as_save_IFS 3624 test -z "$as_dir" && as_dir=. 3625 for ac_prog in sed gsed; do 3626 for ac_exec_ext in '' $ac_executable_extensions; do 3627 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3628 as_fn_executable_p "$ac_path_SED" || continue 3629# Check for GNU ac_path_SED and select it if it is found. 3630 # Check for GNU $ac_path_SED 3631case `"$ac_path_SED" --version 2>&1` in 3632*GNU*) 3633 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3634*) 3635 ac_count=0 3636 $as_echo_n 0123456789 >"conftest.in" 3637 while : 3638 do 3639 cat "conftest.in" "conftest.in" >"conftest.tmp" 3640 mv "conftest.tmp" "conftest.in" 3641 cp "conftest.in" "conftest.nl" 3642 $as_echo '' >> "conftest.nl" 3643 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3644 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3645 as_fn_arith $ac_count + 1 && ac_count=$as_val 3646 if test $ac_count -gt ${ac_path_SED_max-0}; then 3647 # Best one so far, save it but keep looking for a better one 3648 ac_cv_path_SED="$ac_path_SED" 3649 ac_path_SED_max=$ac_count 3650 fi 3651 # 10*(2^10) chars as input seems more than enough 3652 test $ac_count -gt 10 && break 3653 done 3654 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3655esac 3656 3657 $ac_path_SED_found && break 3 3658 done 3659 done 3660 done 3661IFS=$as_save_IFS 3662 if test -z "$ac_cv_path_SED"; then 3663 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3664 fi 3665else 3666 ac_cv_path_SED=$SED 3667fi 3668 3669fi 3670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3671$as_echo "$ac_cv_path_SED" >&6; } 3672 SED="$ac_cv_path_SED" 3673 rm -f conftest.sed 3674 3675 3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 3677$as_echo_n "checking whether NLS is requested... " >&6; } 3678 # Check whether --enable-nls was given. 3679if test "${enable_nls+set}" = set; then : 3680 enableval=$enable_nls; USE_NLS=$enableval 3681else 3682 USE_NLS=yes 3683fi 3684 3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 3686$as_echo "$USE_NLS" >&6; } 3687 3688 3689 3690 3691 GETTEXT_MACRO_VERSION=0.19 3692 3693 3694 3695 3696# Prepare PATH_SEPARATOR. 3697# The user is always right. 3698if test "${PATH_SEPARATOR+set}" != set; then 3699 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 3700 # contains only /bin. Note that ksh looks also at the FPATH variable, 3701 # so we have to set that as well for the test. 3702 PATH_SEPARATOR=: 3703 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 3704 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 3705 || PATH_SEPARATOR=';' 3706 } 3707fi 3708 3709# Find out how to test for executable files. Don't use a zero-byte file, 3710# as systems may use methods other than mode bits to determine executability. 3711cat >conf$$.file <<_ASEOF 3712#! /bin/sh 3713exit 0 3714_ASEOF 3715chmod +x conf$$.file 3716if test -x conf$$.file >/dev/null 2>&1; then 3717 ac_executable_p="test -x" 3718else 3719 ac_executable_p="test -f" 3720fi 3721rm -f conf$$.file 3722 3723# Extract the first word of "msgfmt", so it can be a program name with args. 3724set dummy msgfmt; ac_word=$2 3725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3726$as_echo_n "checking for $ac_word... " >&6; } 3727if ${ac_cv_path_MSGFMT+:} false; then : 3728 $as_echo_n "(cached) " >&6 3729else 3730 case "$MSGFMT" in 3731 [\\/]* | ?:[\\/]*) 3732 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 3733 ;; 3734 *) 3735 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 3736 for ac_dir in $PATH; do 3737 IFS="$ac_save_IFS" 3738 test -z "$ac_dir" && ac_dir=. 3739 for ac_exec_ext in '' $ac_executable_extensions; do 3740 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 3741 echo "$as_me: trying $ac_dir/$ac_word..." >&5 3742 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 3743 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 3744 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 3745 break 2 3746 fi 3747 fi 3748 done 3749 done 3750 IFS="$ac_save_IFS" 3751 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 3752 ;; 3753esac 3754fi 3755MSGFMT="$ac_cv_path_MSGFMT" 3756if test "$MSGFMT" != ":"; then 3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 3758$as_echo "$MSGFMT" >&6; } 3759else 3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3761$as_echo "no" >&6; } 3762fi 3763 3764 # Extract the first word of "gmsgfmt", so it can be a program name with args. 3765set dummy gmsgfmt; ac_word=$2 3766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3767$as_echo_n "checking for $ac_word... " >&6; } 3768if ${ac_cv_path_GMSGFMT+:} false; then : 3769 $as_echo_n "(cached) " >&6 3770else 3771 case $GMSGFMT in 3772 [\\/]* | ?:[\\/]*) 3773 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 3774 ;; 3775 *) 3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3777for as_dir in $PATH 3778do 3779 IFS=$as_save_IFS 3780 test -z "$as_dir" && as_dir=. 3781 for ac_exec_ext in '' $ac_executable_extensions; do 3782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3783 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 3784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3785 break 2 3786 fi 3787done 3788 done 3789IFS=$as_save_IFS 3790 3791 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 3792 ;; 3793esac 3794fi 3795GMSGFMT=$ac_cv_path_GMSGFMT 3796if test -n "$GMSGFMT"; then 3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 3798$as_echo "$GMSGFMT" >&6; } 3799else 3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3801$as_echo "no" >&6; } 3802fi 3803 3804 3805 3806 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 3807 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 3808 *) MSGFMT_015=$MSGFMT ;; 3809 esac 3810 3811 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 3812 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 3813 *) GMSGFMT_015=$GMSGFMT ;; 3814 esac 3815 3816 3817 3818# Prepare PATH_SEPARATOR. 3819# The user is always right. 3820if test "${PATH_SEPARATOR+set}" != set; then 3821 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 3822 # contains only /bin. Note that ksh looks also at the FPATH variable, 3823 # so we have to set that as well for the test. 3824 PATH_SEPARATOR=: 3825 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 3826 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 3827 || PATH_SEPARATOR=';' 3828 } 3829fi 3830 3831# Find out how to test for executable files. Don't use a zero-byte file, 3832# as systems may use methods other than mode bits to determine executability. 3833cat >conf$$.file <<_ASEOF 3834#! /bin/sh 3835exit 0 3836_ASEOF 3837chmod +x conf$$.file 3838if test -x conf$$.file >/dev/null 2>&1; then 3839 ac_executable_p="test -x" 3840else 3841 ac_executable_p="test -f" 3842fi 3843rm -f conf$$.file 3844 3845# Extract the first word of "xgettext", so it can be a program name with args. 3846set dummy xgettext; ac_word=$2 3847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3848$as_echo_n "checking for $ac_word... " >&6; } 3849if ${ac_cv_path_XGETTEXT+:} false; then : 3850 $as_echo_n "(cached) " >&6 3851else 3852 case "$XGETTEXT" in 3853 [\\/]* | ?:[\\/]*) 3854 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 3855 ;; 3856 *) 3857 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 3858 for ac_dir in $PATH; do 3859 IFS="$ac_save_IFS" 3860 test -z "$ac_dir" && ac_dir=. 3861 for ac_exec_ext in '' $ac_executable_extensions; do 3862 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 3863 echo "$as_me: trying $ac_dir/$ac_word..." >&5 3864 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 3865 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 3866 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 3867 break 2 3868 fi 3869 fi 3870 done 3871 done 3872 IFS="$ac_save_IFS" 3873 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 3874 ;; 3875esac 3876fi 3877XGETTEXT="$ac_cv_path_XGETTEXT" 3878if test "$XGETTEXT" != ":"; then 3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 3880$as_echo "$XGETTEXT" >&6; } 3881else 3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3883$as_echo "no" >&6; } 3884fi 3885 3886 rm -f messages.po 3887 3888 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 3889 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 3890 *) XGETTEXT_015=$XGETTEXT ;; 3891 esac 3892 3893 3894 3895# Prepare PATH_SEPARATOR. 3896# The user is always right. 3897if test "${PATH_SEPARATOR+set}" != set; then 3898 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 3899 # contains only /bin. Note that ksh looks also at the FPATH variable, 3900 # so we have to set that as well for the test. 3901 PATH_SEPARATOR=: 3902 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 3903 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 3904 || PATH_SEPARATOR=';' 3905 } 3906fi 3907 3908# Find out how to test for executable files. Don't use a zero-byte file, 3909# as systems may use methods other than mode bits to determine executability. 3910cat >conf$$.file <<_ASEOF 3911#! /bin/sh 3912exit 0 3913_ASEOF 3914chmod +x conf$$.file 3915if test -x conf$$.file >/dev/null 2>&1; then 3916 ac_executable_p="test -x" 3917else 3918 ac_executable_p="test -f" 3919fi 3920rm -f conf$$.file 3921 3922# Extract the first word of "msgmerge", so it can be a program name with args. 3923set dummy msgmerge; ac_word=$2 3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3925$as_echo_n "checking for $ac_word... " >&6; } 3926if ${ac_cv_path_MSGMERGE+:} false; then : 3927 $as_echo_n "(cached) " >&6 3928else 3929 case "$MSGMERGE" in 3930 [\\/]* | ?:[\\/]*) 3931 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 3932 ;; 3933 *) 3934 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 3935 for ac_dir in $PATH; do 3936 IFS="$ac_save_IFS" 3937 test -z "$ac_dir" && ac_dir=. 3938 for ac_exec_ext in '' $ac_executable_extensions; do 3939 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 3940 echo "$as_me: trying $ac_dir/$ac_word..." >&5 3941 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 3942 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 3943 break 2 3944 fi 3945 fi 3946 done 3947 done 3948 IFS="$ac_save_IFS" 3949 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 3950 ;; 3951esac 3952fi 3953MSGMERGE="$ac_cv_path_MSGMERGE" 3954if test "$MSGMERGE" != ":"; then 3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 3956$as_echo "$MSGMERGE" >&6; } 3957else 3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3959$as_echo "no" >&6; } 3960fi 3961 3962 3963 test -n "$localedir" || localedir='${datadir}/locale' 3964 3965 3966 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= 3967 3968 3969 ac_config_commands="$ac_config_commands po-directories" 3970 3971 3972 3973 if test "X$prefix" = "XNONE"; then 3974 acl_final_prefix="$ac_default_prefix" 3975 else 3976 acl_final_prefix="$prefix" 3977 fi 3978 if test "X$exec_prefix" = "XNONE"; then 3979 acl_final_exec_prefix='${prefix}' 3980 else 3981 acl_final_exec_prefix="$exec_prefix" 3982 fi 3983 acl_save_prefix="$prefix" 3984 prefix="$acl_final_prefix" 3985 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 3986 prefix="$acl_save_prefix" 3987 3988DEPDIR="${am__leading_dot}deps" 3989 3990ac_config_commands="$ac_config_commands depfiles" 3991 3992 3993am_make=${MAKE-make} 3994cat > confinc << 'END' 3995am__doit: 3996 @echo this is the am__doit target 3997.PHONY: am__doit 3998END 3999# If we don't find an include directive, just comment out the code. 4000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4001$as_echo_n "checking for style of include used by $am_make... " >&6; } 4002am__include="#" 4003am__quote= 4004_am_result=none 4005# First try GNU make style include. 4006echo "include confinc" > confmf 4007# Ignore all kinds of additional output from 'make'. 4008case `$am_make -s -f confmf 2> /dev/null` in #( 4009*the\ am__doit\ target*) 4010 am__include=include 4011 am__quote= 4012 _am_result=GNU 4013 ;; 4014esac 4015# Now try BSD make style include. 4016if test "$am__include" = "#"; then 4017 echo '.include "confinc"' > confmf 4018 case `$am_make -s -f confmf 2> /dev/null` in #( 4019 *the\ am__doit\ target*) 4020 am__include=.include 4021 am__quote="\"" 4022 _am_result=BSD 4023 ;; 4024 esac 4025fi 4026 4027 4028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4029$as_echo "$_am_result" >&6; } 4030rm -f confinc confmf 4031 4032# Check whether --enable-dependency-tracking was given. 4033if test "${enable_dependency_tracking+set}" = set; then : 4034 enableval=$enable_dependency_tracking; 4035fi 4036 4037if test "x$enable_dependency_tracking" != xno; then 4038 am_depcomp="$ac_aux_dir/depcomp" 4039 AMDEPBACKSLASH='\' 4040 am__nodep='_no' 4041fi 4042 if test "x$enable_dependency_tracking" != xno; then 4043 AMDEP_TRUE= 4044 AMDEP_FALSE='#' 4045else 4046 AMDEP_TRUE='#' 4047 AMDEP_FALSE= 4048fi 4049 4050 4051ac_ext=c 4052ac_cpp='$CPP $CPPFLAGS' 4053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4055ac_compiler_gnu=$ac_cv_c_compiler_gnu 4056if test -n "$ac_tool_prefix"; then 4057 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4058set dummy ${ac_tool_prefix}gcc; ac_word=$2 4059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4060$as_echo_n "checking for $ac_word... " >&6; } 4061if ${ac_cv_prog_CC+:} false; then : 4062 $as_echo_n "(cached) " >&6 4063else 4064 if test -n "$CC"; then 4065 ac_cv_prog_CC="$CC" # Let the user override the test. 4066else 4067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4068for as_dir in $PATH 4069do 4070 IFS=$as_save_IFS 4071 test -z "$as_dir" && as_dir=. 4072 for ac_exec_ext in '' $ac_executable_extensions; do 4073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4074 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4076 break 2 4077 fi 4078done 4079 done 4080IFS=$as_save_IFS 4081 4082fi 4083fi 4084CC=$ac_cv_prog_CC 4085if test -n "$CC"; then 4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4087$as_echo "$CC" >&6; } 4088else 4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4090$as_echo "no" >&6; } 4091fi 4092 4093 4094fi 4095if test -z "$ac_cv_prog_CC"; then 4096 ac_ct_CC=$CC 4097 # Extract the first word of "gcc", so it can be a program name with args. 4098set dummy gcc; ac_word=$2 4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4100$as_echo_n "checking for $ac_word... " >&6; } 4101if ${ac_cv_prog_ac_ct_CC+:} false; then : 4102 $as_echo_n "(cached) " >&6 4103else 4104 if test -n "$ac_ct_CC"; then 4105 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4106else 4107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4108for as_dir in $PATH 4109do 4110 IFS=$as_save_IFS 4111 test -z "$as_dir" && as_dir=. 4112 for ac_exec_ext in '' $ac_executable_extensions; do 4113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4114 ac_cv_prog_ac_ct_CC="gcc" 4115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4116 break 2 4117 fi 4118done 4119 done 4120IFS=$as_save_IFS 4121 4122fi 4123fi 4124ac_ct_CC=$ac_cv_prog_ac_ct_CC 4125if test -n "$ac_ct_CC"; then 4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4127$as_echo "$ac_ct_CC" >&6; } 4128else 4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4130$as_echo "no" >&6; } 4131fi 4132 4133 if test "x$ac_ct_CC" = x; then 4134 CC="" 4135 else 4136 case $cross_compiling:$ac_tool_warned in 4137yes:) 4138{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4139$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4140ac_tool_warned=yes ;; 4141esac 4142 CC=$ac_ct_CC 4143 fi 4144else 4145 CC="$ac_cv_prog_CC" 4146fi 4147 4148if test -z "$CC"; then 4149 if test -n "$ac_tool_prefix"; then 4150 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4151set dummy ${ac_tool_prefix}cc; ac_word=$2 4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4153$as_echo_n "checking for $ac_word... " >&6; } 4154if ${ac_cv_prog_CC+:} false; then : 4155 $as_echo_n "(cached) " >&6 4156else 4157 if test -n "$CC"; then 4158 ac_cv_prog_CC="$CC" # Let the user override the test. 4159else 4160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4161for as_dir in $PATH 4162do 4163 IFS=$as_save_IFS 4164 test -z "$as_dir" && as_dir=. 4165 for ac_exec_ext in '' $ac_executable_extensions; do 4166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4167 ac_cv_prog_CC="${ac_tool_prefix}cc" 4168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4169 break 2 4170 fi 4171done 4172 done 4173IFS=$as_save_IFS 4174 4175fi 4176fi 4177CC=$ac_cv_prog_CC 4178if test -n "$CC"; then 4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4180$as_echo "$CC" >&6; } 4181else 4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4183$as_echo "no" >&6; } 4184fi 4185 4186 4187 fi 4188fi 4189if test -z "$CC"; then 4190 # Extract the first word of "cc", so it can be a program name with args. 4191set dummy cc; ac_word=$2 4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4193$as_echo_n "checking for $ac_word... " >&6; } 4194if ${ac_cv_prog_CC+:} false; then : 4195 $as_echo_n "(cached) " >&6 4196else 4197 if test -n "$CC"; then 4198 ac_cv_prog_CC="$CC" # Let the user override the test. 4199else 4200 ac_prog_rejected=no 4201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4202for as_dir in $PATH 4203do 4204 IFS=$as_save_IFS 4205 test -z "$as_dir" && as_dir=. 4206 for ac_exec_ext in '' $ac_executable_extensions; do 4207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4208 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4209 ac_prog_rejected=yes 4210 continue 4211 fi 4212 ac_cv_prog_CC="cc" 4213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4214 break 2 4215 fi 4216done 4217 done 4218IFS=$as_save_IFS 4219 4220if test $ac_prog_rejected = yes; then 4221 # We found a bogon in the path, so make sure we never use it. 4222 set dummy $ac_cv_prog_CC 4223 shift 4224 if test $# != 0; then 4225 # We chose a different compiler from the bogus one. 4226 # However, it has the same basename, so the bogon will be chosen 4227 # first if we set CC to just the basename; use the full file name. 4228 shift 4229 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4230 fi 4231fi 4232fi 4233fi 4234CC=$ac_cv_prog_CC 4235if test -n "$CC"; then 4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4237$as_echo "$CC" >&6; } 4238else 4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4240$as_echo "no" >&6; } 4241fi 4242 4243 4244fi 4245if test -z "$CC"; then 4246 if test -n "$ac_tool_prefix"; then 4247 for ac_prog in cl.exe 4248 do 4249 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4250set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4252$as_echo_n "checking for $ac_word... " >&6; } 4253if ${ac_cv_prog_CC+:} false; then : 4254 $as_echo_n "(cached) " >&6 4255else 4256 if test -n "$CC"; then 4257 ac_cv_prog_CC="$CC" # Let the user override the test. 4258else 4259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4260for as_dir in $PATH 4261do 4262 IFS=$as_save_IFS 4263 test -z "$as_dir" && as_dir=. 4264 for ac_exec_ext in '' $ac_executable_extensions; do 4265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4266 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4268 break 2 4269 fi 4270done 4271 done 4272IFS=$as_save_IFS 4273 4274fi 4275fi 4276CC=$ac_cv_prog_CC 4277if test -n "$CC"; then 4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4279$as_echo "$CC" >&6; } 4280else 4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4282$as_echo "no" >&6; } 4283fi 4284 4285 4286 test -n "$CC" && break 4287 done 4288fi 4289if test -z "$CC"; then 4290 ac_ct_CC=$CC 4291 for ac_prog in cl.exe 4292do 4293 # Extract the first word of "$ac_prog", so it can be a program name with args. 4294set dummy $ac_prog; ac_word=$2 4295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4296$as_echo_n "checking for $ac_word... " >&6; } 4297if ${ac_cv_prog_ac_ct_CC+:} false; then : 4298 $as_echo_n "(cached) " >&6 4299else 4300 if test -n "$ac_ct_CC"; then 4301 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4302else 4303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4304for as_dir in $PATH 4305do 4306 IFS=$as_save_IFS 4307 test -z "$as_dir" && as_dir=. 4308 for ac_exec_ext in '' $ac_executable_extensions; do 4309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4310 ac_cv_prog_ac_ct_CC="$ac_prog" 4311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4312 break 2 4313 fi 4314done 4315 done 4316IFS=$as_save_IFS 4317 4318fi 4319fi 4320ac_ct_CC=$ac_cv_prog_ac_ct_CC 4321if test -n "$ac_ct_CC"; then 4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4323$as_echo "$ac_ct_CC" >&6; } 4324else 4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4326$as_echo "no" >&6; } 4327fi 4328 4329 4330 test -n "$ac_ct_CC" && break 4331done 4332 4333 if test "x$ac_ct_CC" = x; then 4334 CC="" 4335 else 4336 case $cross_compiling:$ac_tool_warned in 4337yes:) 4338{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4339$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4340ac_tool_warned=yes ;; 4341esac 4342 CC=$ac_ct_CC 4343 fi 4344fi 4345 4346fi 4347 4348 4349test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4351as_fn_error $? "no acceptable C compiler found in \$PATH 4352See \`config.log' for more details" "$LINENO" 5; } 4353 4354# Provide some information about the compiler. 4355$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4356set X $ac_compile 4357ac_compiler=$2 4358for ac_option in --version -v -V -qversion; do 4359 { { ac_try="$ac_compiler $ac_option >&5" 4360case "(($ac_try" in 4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4362 *) ac_try_echo=$ac_try;; 4363esac 4364eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4365$as_echo "$ac_try_echo"; } >&5 4366 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4367 ac_status=$? 4368 if test -s conftest.err; then 4369 sed '10a\ 4370... rest of stderr output deleted ... 4371 10q' conftest.err >conftest.er1 4372 cat conftest.er1 >&5 4373 fi 4374 rm -f conftest.er1 conftest.err 4375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4376 test $ac_status = 0; } 4377done 4378 4379cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4380/* end confdefs.h. */ 4381 4382int 4383main () 4384{ 4385 4386 ; 4387 return 0; 4388} 4389_ACEOF 4390ac_clean_files_save=$ac_clean_files 4391ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4392# Try to create an executable without -o first, disregard a.out. 4393# It will help us diagnose broken compilers, and finding out an intuition 4394# of exeext. 4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4396$as_echo_n "checking whether the C compiler works... " >&6; } 4397ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4398 4399# The possible output files: 4400ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4401 4402ac_rmfiles= 4403for ac_file in $ac_files 4404do 4405 case $ac_file in 4406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4407 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4408 esac 4409done 4410rm -f $ac_rmfiles 4411 4412if { { ac_try="$ac_link_default" 4413case "(($ac_try" in 4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4415 *) ac_try_echo=$ac_try;; 4416esac 4417eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4418$as_echo "$ac_try_echo"; } >&5 4419 (eval "$ac_link_default") 2>&5 4420 ac_status=$? 4421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4422 test $ac_status = 0; }; then : 4423 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4424# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4425# in a Makefile. We should not override ac_cv_exeext if it was cached, 4426# so that the user can short-circuit this test for compilers unknown to 4427# Autoconf. 4428for ac_file in $ac_files '' 4429do 4430 test -f "$ac_file" || continue 4431 case $ac_file in 4432 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4433 ;; 4434 [ab].out ) 4435 # We found the default executable, but exeext='' is most 4436 # certainly right. 4437 break;; 4438 *.* ) 4439 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4440 then :; else 4441 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4442 fi 4443 # We set ac_cv_exeext here because the later test for it is not 4444 # safe: cross compilers may not add the suffix if given an `-o' 4445 # argument, so we may need to know it at that point already. 4446 # Even if this section looks crufty: it has the advantage of 4447 # actually working. 4448 break;; 4449 * ) 4450 break;; 4451 esac 4452done 4453test "$ac_cv_exeext" = no && ac_cv_exeext= 4454 4455else 4456 ac_file='' 4457fi 4458if test -z "$ac_file"; then : 4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4460$as_echo "no" >&6; } 4461$as_echo "$as_me: failed program was:" >&5 4462sed 's/^/| /' conftest.$ac_ext >&5 4463 4464{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4465$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4466as_fn_error 77 "C compiler cannot create executables 4467See \`config.log' for more details" "$LINENO" 5; } 4468else 4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4470$as_echo "yes" >&6; } 4471fi 4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4473$as_echo_n "checking for C compiler default output file name... " >&6; } 4474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4475$as_echo "$ac_file" >&6; } 4476ac_exeext=$ac_cv_exeext 4477 4478rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4479ac_clean_files=$ac_clean_files_save 4480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4481$as_echo_n "checking for suffix of executables... " >&6; } 4482if { { ac_try="$ac_link" 4483case "(($ac_try" in 4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4485 *) ac_try_echo=$ac_try;; 4486esac 4487eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4488$as_echo "$ac_try_echo"; } >&5 4489 (eval "$ac_link") 2>&5 4490 ac_status=$? 4491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4492 test $ac_status = 0; }; then : 4493 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4494# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4495# work properly (i.e., refer to `conftest.exe'), while it won't with 4496# `rm'. 4497for ac_file in conftest.exe conftest conftest.*; do 4498 test -f "$ac_file" || continue 4499 case $ac_file in 4500 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4501 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4502 break;; 4503 * ) break;; 4504 esac 4505done 4506else 4507 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4508$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4509as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4510See \`config.log' for more details" "$LINENO" 5; } 4511fi 4512rm -f conftest conftest$ac_cv_exeext 4513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4514$as_echo "$ac_cv_exeext" >&6; } 4515 4516rm -f conftest.$ac_ext 4517EXEEXT=$ac_cv_exeext 4518ac_exeext=$EXEEXT 4519cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4520/* end confdefs.h. */ 4521#include <stdio.h> 4522int 4523main () 4524{ 4525FILE *f = fopen ("conftest.out", "w"); 4526 return ferror (f) || fclose (f) != 0; 4527 4528 ; 4529 return 0; 4530} 4531_ACEOF 4532ac_clean_files="$ac_clean_files conftest.out" 4533# Check that the compiler produces executables we can run. If not, either 4534# the compiler is broken, or we cross compile. 4535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4536$as_echo_n "checking whether we are cross compiling... " >&6; } 4537if test "$cross_compiling" != yes; then 4538 { { ac_try="$ac_link" 4539case "(($ac_try" in 4540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4541 *) ac_try_echo=$ac_try;; 4542esac 4543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4544$as_echo "$ac_try_echo"; } >&5 4545 (eval "$ac_link") 2>&5 4546 ac_status=$? 4547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4548 test $ac_status = 0; } 4549 if { ac_try='./conftest$ac_cv_exeext' 4550 { { case "(($ac_try" in 4551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4552 *) ac_try_echo=$ac_try;; 4553esac 4554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4555$as_echo "$ac_try_echo"; } >&5 4556 (eval "$ac_try") 2>&5 4557 ac_status=$? 4558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4559 test $ac_status = 0; }; }; then 4560 cross_compiling=no 4561 else 4562 if test "$cross_compiling" = maybe; then 4563 cross_compiling=yes 4564 else 4565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4566$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4567as_fn_error $? "cannot run C compiled programs. 4568If you meant to cross compile, use \`--host'. 4569See \`config.log' for more details" "$LINENO" 5; } 4570 fi 4571 fi 4572fi 4573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4574$as_echo "$cross_compiling" >&6; } 4575 4576rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4577ac_clean_files=$ac_clean_files_save 4578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4579$as_echo_n "checking for suffix of object files... " >&6; } 4580if ${ac_cv_objext+:} false; then : 4581 $as_echo_n "(cached) " >&6 4582else 4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4584/* end confdefs.h. */ 4585 4586int 4587main () 4588{ 4589 4590 ; 4591 return 0; 4592} 4593_ACEOF 4594rm -f conftest.o conftest.obj 4595if { { ac_try="$ac_compile" 4596case "(($ac_try" in 4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4598 *) ac_try_echo=$ac_try;; 4599esac 4600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4601$as_echo "$ac_try_echo"; } >&5 4602 (eval "$ac_compile") 2>&5 4603 ac_status=$? 4604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4605 test $ac_status = 0; }; then : 4606 for ac_file in conftest.o conftest.obj conftest.*; do 4607 test -f "$ac_file" || continue; 4608 case $ac_file in 4609 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4610 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4611 break;; 4612 esac 4613done 4614else 4615 $as_echo "$as_me: failed program was:" >&5 4616sed 's/^/| /' conftest.$ac_ext >&5 4617 4618{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4620as_fn_error $? "cannot compute suffix of object files: cannot compile 4621See \`config.log' for more details" "$LINENO" 5; } 4622fi 4623rm -f conftest.$ac_cv_objext conftest.$ac_ext 4624fi 4625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4626$as_echo "$ac_cv_objext" >&6; } 4627OBJEXT=$ac_cv_objext 4628ac_objext=$OBJEXT 4629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4630$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4631if ${ac_cv_c_compiler_gnu+:} false; then : 4632 $as_echo_n "(cached) " >&6 4633else 4634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4635/* end confdefs.h. */ 4636 4637int 4638main () 4639{ 4640#ifndef __GNUC__ 4641 choke me 4642#endif 4643 4644 ; 4645 return 0; 4646} 4647_ACEOF 4648if ac_fn_c_try_compile "$LINENO"; then : 4649 ac_compiler_gnu=yes 4650else 4651 ac_compiler_gnu=no 4652fi 4653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4654ac_cv_c_compiler_gnu=$ac_compiler_gnu 4655 4656fi 4657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4658$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4659if test $ac_compiler_gnu = yes; then 4660 GCC=yes 4661else 4662 GCC= 4663fi 4664ac_test_CFLAGS=${CFLAGS+set} 4665ac_save_CFLAGS=$CFLAGS 4666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4667$as_echo_n "checking whether $CC accepts -g... " >&6; } 4668if ${ac_cv_prog_cc_g+:} false; then : 4669 $as_echo_n "(cached) " >&6 4670else 4671 ac_save_c_werror_flag=$ac_c_werror_flag 4672 ac_c_werror_flag=yes 4673 ac_cv_prog_cc_g=no 4674 CFLAGS="-g" 4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4676/* end confdefs.h. */ 4677 4678int 4679main () 4680{ 4681 4682 ; 4683 return 0; 4684} 4685_ACEOF 4686if ac_fn_c_try_compile "$LINENO"; then : 4687 ac_cv_prog_cc_g=yes 4688else 4689 CFLAGS="" 4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4691/* end confdefs.h. */ 4692 4693int 4694main () 4695{ 4696 4697 ; 4698 return 0; 4699} 4700_ACEOF 4701if ac_fn_c_try_compile "$LINENO"; then : 4702 4703else 4704 ac_c_werror_flag=$ac_save_c_werror_flag 4705 CFLAGS="-g" 4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4707/* end confdefs.h. */ 4708 4709int 4710main () 4711{ 4712 4713 ; 4714 return 0; 4715} 4716_ACEOF 4717if ac_fn_c_try_compile "$LINENO"; then : 4718 ac_cv_prog_cc_g=yes 4719fi 4720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4721fi 4722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4723fi 4724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4725 ac_c_werror_flag=$ac_save_c_werror_flag 4726fi 4727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4728$as_echo "$ac_cv_prog_cc_g" >&6; } 4729if test "$ac_test_CFLAGS" = set; then 4730 CFLAGS=$ac_save_CFLAGS 4731elif test $ac_cv_prog_cc_g = yes; then 4732 if test "$GCC" = yes; then 4733 CFLAGS="-g -O2" 4734 else 4735 CFLAGS="-g" 4736 fi 4737else 4738 if test "$GCC" = yes; then 4739 CFLAGS="-O2" 4740 else 4741 CFLAGS= 4742 fi 4743fi 4744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4745$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4746if ${ac_cv_prog_cc_c89+:} false; then : 4747 $as_echo_n "(cached) " >&6 4748else 4749 ac_cv_prog_cc_c89=no 4750ac_save_CC=$CC 4751cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4752/* end confdefs.h. */ 4753#include <stdarg.h> 4754#include <stdio.h> 4755struct stat; 4756/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4757struct buf { int x; }; 4758FILE * (*rcsopen) (struct buf *, struct stat *, int); 4759static char *e (p, i) 4760 char **p; 4761 int i; 4762{ 4763 return p[i]; 4764} 4765static char *f (char * (*g) (char **, int), char **p, ...) 4766{ 4767 char *s; 4768 va_list v; 4769 va_start (v,p); 4770 s = g (p, va_arg (v,int)); 4771 va_end (v); 4772 return s; 4773} 4774 4775/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4776 function prototypes and stuff, but not '\xHH' hex character constants. 4777 These don't provoke an error unfortunately, instead are silently treated 4778 as 'x'. The following induces an error, until -std is added to get 4779 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4780 array size at least. It's necessary to write '\x00'==0 to get something 4781 that's true only with -std. */ 4782int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4783 4784/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4785 inside strings and character constants. */ 4786#define FOO(x) 'x' 4787int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4788 4789int test (int i, double x); 4790struct s1 {int (*f) (int a);}; 4791struct s2 {int (*f) (double a);}; 4792int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4793int argc; 4794char **argv; 4795int 4796main () 4797{ 4798return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4799 ; 4800 return 0; 4801} 4802_ACEOF 4803for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4804 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4805do 4806 CC="$ac_save_CC $ac_arg" 4807 if ac_fn_c_try_compile "$LINENO"; then : 4808 ac_cv_prog_cc_c89=$ac_arg 4809fi 4810rm -f core conftest.err conftest.$ac_objext 4811 test "x$ac_cv_prog_cc_c89" != "xno" && break 4812done 4813rm -f conftest.$ac_ext 4814CC=$ac_save_CC 4815 4816fi 4817# AC_CACHE_VAL 4818case "x$ac_cv_prog_cc_c89" in 4819 x) 4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4821$as_echo "none needed" >&6; } ;; 4822 xno) 4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4824$as_echo "unsupported" >&6; } ;; 4825 *) 4826 CC="$CC $ac_cv_prog_cc_c89" 4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4828$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4829esac 4830if test "x$ac_cv_prog_cc_c89" != xno; then : 4831 4832fi 4833 4834ac_ext=cpp 4835ac_cpp='$CXXCPP $CPPFLAGS' 4836ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4837ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4838ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4839 4840ac_ext=c 4841ac_cpp='$CPP $CPPFLAGS' 4842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4844ac_compiler_gnu=$ac_cv_c_compiler_gnu 4845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4846$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4847if ${am_cv_prog_cc_c_o+:} false; then : 4848 $as_echo_n "(cached) " >&6 4849else 4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4851/* end confdefs.h. */ 4852 4853int 4854main () 4855{ 4856 4857 ; 4858 return 0; 4859} 4860_ACEOF 4861 # Make sure it works both with $CC and with simple cc. 4862 # Following AC_PROG_CC_C_O, we do the test twice because some 4863 # compilers refuse to overwrite an existing .o file with -o, 4864 # though they will create one. 4865 am_cv_prog_cc_c_o=yes 4866 for am_i in 1 2; do 4867 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4868 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4869 ac_status=$? 4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4871 (exit $ac_status); } \ 4872 && test -f conftest2.$ac_objext; then 4873 : OK 4874 else 4875 am_cv_prog_cc_c_o=no 4876 break 4877 fi 4878 done 4879 rm -f core conftest* 4880 unset am_i 4881fi 4882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4883$as_echo "$am_cv_prog_cc_c_o" >&6; } 4884if test "$am_cv_prog_cc_c_o" != yes; then 4885 # Losing compiler, so override with the script. 4886 # FIXME: It is wrong to rewrite CC. 4887 # But if we don't then we get into trouble of one sort or another. 4888 # A longer-term fix would be to have automake use am__CC in this case, 4889 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4890 CC="$am_aux_dir/compile $CC" 4891fi 4892ac_ext=cpp 4893ac_cpp='$CXXCPP $CPPFLAGS' 4894ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4895ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4896ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4897 4898 4899depcc="$CC" am_compiler_list= 4900 4901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4902$as_echo_n "checking dependency style of $depcc... " >&6; } 4903if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4904 $as_echo_n "(cached) " >&6 4905else 4906 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4907 # We make a subdir and do the tests there. Otherwise we can end up 4908 # making bogus files that we don't know about and never remove. For 4909 # instance it was reported that on HP-UX the gcc test will end up 4910 # making a dummy file named 'D' -- because '-MD' means "put the output 4911 # in D". 4912 rm -rf conftest.dir 4913 mkdir conftest.dir 4914 # Copy depcomp to subdir because otherwise we won't find it if we're 4915 # using a relative directory. 4916 cp "$am_depcomp" conftest.dir 4917 cd conftest.dir 4918 # We will build objects and dependencies in a subdirectory because 4919 # it helps to detect inapplicable dependency modes. For instance 4920 # both Tru64's cc and ICC support -MD to output dependencies as a 4921 # side effect of compilation, but ICC will put the dependencies in 4922 # the current directory while Tru64 will put them in the object 4923 # directory. 4924 mkdir sub 4925 4926 am_cv_CC_dependencies_compiler_type=none 4927 if test "$am_compiler_list" = ""; then 4928 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4929 fi 4930 am__universal=false 4931 case " $depcc " in #( 4932 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4933 esac 4934 4935 for depmode in $am_compiler_list; do 4936 # Setup a source with many dependencies, because some compilers 4937 # like to wrap large dependency lists on column 80 (with \), and 4938 # we should not choose a depcomp mode which is confused by this. 4939 # 4940 # We need to recreate these files for each test, as the compiler may 4941 # overwrite some of them when testing with obscure command lines. 4942 # This happens at least with the AIX C compiler. 4943 : > sub/conftest.c 4944 for i in 1 2 3 4 5 6; do 4945 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4946 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4947 # Solaris 10 /bin/sh. 4948 echo '/* dummy */' > sub/conftst$i.h 4949 done 4950 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4951 4952 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4953 # mode. It turns out that the SunPro C++ compiler does not properly 4954 # handle '-M -o', and we need to detect this. Also, some Intel 4955 # versions had trouble with output in subdirs. 4956 am__obj=sub/conftest.${OBJEXT-o} 4957 am__minus_obj="-o $am__obj" 4958 case $depmode in 4959 gcc) 4960 # This depmode causes a compiler race in universal mode. 4961 test "$am__universal" = false || continue 4962 ;; 4963 nosideeffect) 4964 # After this tag, mechanisms are not by side-effect, so they'll 4965 # only be used when explicitly requested. 4966 if test "x$enable_dependency_tracking" = xyes; then 4967 continue 4968 else 4969 break 4970 fi 4971 ;; 4972 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4973 # This compiler won't grok '-c -o', but also, the minuso test has 4974 # not run yet. These depmodes are late enough in the game, and 4975 # so weak that their functioning should not be impacted. 4976 am__obj=conftest.${OBJEXT-o} 4977 am__minus_obj= 4978 ;; 4979 none) break ;; 4980 esac 4981 if depmode=$depmode \ 4982 source=sub/conftest.c object=$am__obj \ 4983 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4984 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4985 >/dev/null 2>conftest.err && 4986 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4987 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4988 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4989 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4990 # icc doesn't choke on unknown options, it will just issue warnings 4991 # or remarks (even with -Werror). So we grep stderr for any message 4992 # that says an option was ignored or not supported. 4993 # When given -MP, icc 7.0 and 7.1 complain thusly: 4994 # icc: Command line warning: ignoring option '-M'; no argument required 4995 # The diagnosis changed in icc 8.0: 4996 # icc: Command line remark: option '-MP' not supported 4997 if (grep 'ignoring option' conftest.err || 4998 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4999 am_cv_CC_dependencies_compiler_type=$depmode 5000 break 5001 fi 5002 fi 5003 done 5004 5005 cd .. 5006 rm -rf conftest.dir 5007else 5008 am_cv_CC_dependencies_compiler_type=none 5009fi 5010 5011fi 5012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5013$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5014CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5015 5016 if 5017 test "x$enable_dependency_tracking" != xno \ 5018 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5019 am__fastdepCC_TRUE= 5020 am__fastdepCC_FALSE='#' 5021else 5022 am__fastdepCC_TRUE='#' 5023 am__fastdepCC_FALSE= 5024fi 5025 5026 5027# Make sure we can run config.sub. 5028$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5029 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5030 5031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5032$as_echo_n "checking build system type... " >&6; } 5033if ${ac_cv_build+:} false; then : 5034 $as_echo_n "(cached) " >&6 5035else 5036 ac_build_alias=$build_alias 5037test "x$ac_build_alias" = x && 5038 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5039test "x$ac_build_alias" = x && 5040 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5041ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5042 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5043 5044fi 5045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5046$as_echo "$ac_cv_build" >&6; } 5047case $ac_cv_build in 5048*-*-*) ;; 5049*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5050esac 5051build=$ac_cv_build 5052ac_save_IFS=$IFS; IFS='-' 5053set x $ac_cv_build 5054shift 5055build_cpu=$1 5056build_vendor=$2 5057shift; shift 5058# Remember, the first character of IFS is used to create $*, 5059# except with old shells: 5060build_os=$* 5061IFS=$ac_save_IFS 5062case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5063 5064 5065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5066$as_echo_n "checking host system type... " >&6; } 5067if ${ac_cv_host+:} false; then : 5068 $as_echo_n "(cached) " >&6 5069else 5070 if test "x$host_alias" = x; then 5071 ac_cv_host=$ac_cv_build 5072else 5073 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5074 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5075fi 5076 5077fi 5078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5079$as_echo "$ac_cv_host" >&6; } 5080case $ac_cv_host in 5081*-*-*) ;; 5082*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5083esac 5084host=$ac_cv_host 5085ac_save_IFS=$IFS; IFS='-' 5086set x $ac_cv_host 5087shift 5088host_cpu=$1 5089host_vendor=$2 5090shift; shift 5091# Remember, the first character of IFS is used to create $*, 5092# except with old shells: 5093host_os=$* 5094IFS=$ac_save_IFS 5095case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5096 5097 5098 5099 5100# Check whether --with-gnu-ld was given. 5101if test "${with_gnu_ld+set}" = set; then : 5102 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5103else 5104 with_gnu_ld=no 5105fi 5106 5107# Prepare PATH_SEPARATOR. 5108# The user is always right. 5109if test "${PATH_SEPARATOR+set}" != set; then 5110 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 5111 # contains only /bin. Note that ksh looks also at the FPATH variable, 5112 # so we have to set that as well for the test. 5113 PATH_SEPARATOR=: 5114 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 5115 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 5116 || PATH_SEPARATOR=';' 5117 } 5118fi 5119 5120ac_prog=ld 5121if test "$GCC" = yes; then 5122 # Check if gcc -print-prog-name=ld gives a path. 5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5124$as_echo_n "checking for ld used by $CC... " >&6; } 5125 case $host in 5126 *-*-mingw*) 5127 # gcc leaves a trailing carriage return which upsets mingw 5128 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5129 *) 5130 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5131 esac 5132 case $ac_prog in 5133 # Accept absolute paths. 5134 [\\/]* | ?:[\\/]*) 5135 re_direlt='/[^/][^/]*/\.\./' 5136 # Canonicalize the pathname of ld 5137 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` 5138 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do 5139 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 5140 done 5141 test -z "$LD" && LD="$ac_prog" 5142 ;; 5143 "") 5144 # If it fails, then pretend we aren't using GCC. 5145 ac_prog=ld 5146 ;; 5147 *) 5148 # If it is relative, then search for the first ld in PATH. 5149 with_gnu_ld=unknown 5150 ;; 5151 esac 5152elif test "$with_gnu_ld" = yes; then 5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5154$as_echo_n "checking for GNU ld... " >&6; } 5155else 5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5157$as_echo_n "checking for non-GNU ld... " >&6; } 5158fi 5159if ${acl_cv_path_LD+:} false; then : 5160 $as_echo_n "(cached) " >&6 5161else 5162 if test -z "$LD"; then 5163 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5164 for ac_dir in $PATH; do 5165 IFS="$acl_save_ifs" 5166 test -z "$ac_dir" && ac_dir=. 5167 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5168 acl_cv_path_LD="$ac_dir/$ac_prog" 5169 # Check to see if the program is GNU ld. I'd rather use --version, 5170 # but apparently some variants of GNU ld only accept -v. 5171 # Break only if it was the GNU/non-GNU ld that we prefer. 5172 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in 5173 *GNU* | *'with BFD'*) 5174 test "$with_gnu_ld" != no && break 5175 ;; 5176 *) 5177 test "$with_gnu_ld" != yes && break 5178 ;; 5179 esac 5180 fi 5181 done 5182 IFS="$acl_save_ifs" 5183else 5184 acl_cv_path_LD="$LD" # Let the user override the test with a path. 5185fi 5186fi 5187 5188LD="$acl_cv_path_LD" 5189if test -n "$LD"; then 5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5191$as_echo "$LD" >&6; } 5192else 5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5194$as_echo "no" >&6; } 5195fi 5196test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5198$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5199if ${acl_cv_prog_gnu_ld+:} false; then : 5200 $as_echo_n "(cached) " >&6 5201else 5202 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5203case `$LD -v 2>&1 </dev/null` in 5204*GNU* | *'with BFD'*) 5205 acl_cv_prog_gnu_ld=yes 5206 ;; 5207*) 5208 acl_cv_prog_gnu_ld=no 5209 ;; 5210esac 5211fi 5212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 5213$as_echo "$acl_cv_prog_gnu_ld" >&6; } 5214with_gnu_ld=$acl_cv_prog_gnu_ld 5215 5216 5217 5218 5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 5220$as_echo_n "checking for shared library run path origin... " >&6; } 5221if ${acl_cv_rpath+:} false; then : 5222 $as_echo_n "(cached) " >&6 5223else 5224 5225 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 5226 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 5227 . ./conftest.sh 5228 rm -f ./conftest.sh 5229 acl_cv_rpath=done 5230 5231fi 5232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 5233$as_echo "$acl_cv_rpath" >&6; } 5234 wl="$acl_cv_wl" 5235 acl_libext="$acl_cv_libext" 5236 acl_shlibext="$acl_cv_shlibext" 5237 acl_libname_spec="$acl_cv_libname_spec" 5238 acl_library_names_spec="$acl_cv_library_names_spec" 5239 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 5240 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 5241 acl_hardcode_direct="$acl_cv_hardcode_direct" 5242 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 5243 # Check whether --enable-rpath was given. 5244if test "${enable_rpath+set}" = set; then : 5245 enableval=$enable_rpath; : 5246else 5247 enable_rpath=yes 5248fi 5249 5250 5251ac_ext=cpp 5252ac_cpp='$CXXCPP $CPPFLAGS' 5253ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5254ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5255ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5256if test -z "$CXX"; then 5257 if test -n "$CCC"; then 5258 CXX=$CCC 5259 else 5260 if test -n "$ac_tool_prefix"; then 5261 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5262 do 5263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5264set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5266$as_echo_n "checking for $ac_word... " >&6; } 5267if ${ac_cv_prog_CXX+:} false; then : 5268 $as_echo_n "(cached) " >&6 5269else 5270 if test -n "$CXX"; then 5271 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5272else 5273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5274for as_dir in $PATH 5275do 5276 IFS=$as_save_IFS 5277 test -z "$as_dir" && as_dir=. 5278 for ac_exec_ext in '' $ac_executable_extensions; do 5279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5280 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5282 break 2 5283 fi 5284done 5285 done 5286IFS=$as_save_IFS 5287 5288fi 5289fi 5290CXX=$ac_cv_prog_CXX 5291if test -n "$CXX"; then 5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 5293$as_echo "$CXX" >&6; } 5294else 5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5296$as_echo "no" >&6; } 5297fi 5298 5299 5300 test -n "$CXX" && break 5301 done 5302fi 5303if test -z "$CXX"; then 5304 ac_ct_CXX=$CXX 5305 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5306do 5307 # Extract the first word of "$ac_prog", so it can be a program name with args. 5308set dummy $ac_prog; ac_word=$2 5309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5310$as_echo_n "checking for $ac_word... " >&6; } 5311if ${ac_cv_prog_ac_ct_CXX+:} false; then : 5312 $as_echo_n "(cached) " >&6 5313else 5314 if test -n "$ac_ct_CXX"; then 5315 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5316else 5317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5318for as_dir in $PATH 5319do 5320 IFS=$as_save_IFS 5321 test -z "$as_dir" && as_dir=. 5322 for ac_exec_ext in '' $ac_executable_extensions; do 5323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5324 ac_cv_prog_ac_ct_CXX="$ac_prog" 5325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5326 break 2 5327 fi 5328done 5329 done 5330IFS=$as_save_IFS 5331 5332fi 5333fi 5334ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5335if test -n "$ac_ct_CXX"; then 5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 5337$as_echo "$ac_ct_CXX" >&6; } 5338else 5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5340$as_echo "no" >&6; } 5341fi 5342 5343 5344 test -n "$ac_ct_CXX" && break 5345done 5346 5347 if test "x$ac_ct_CXX" = x; then 5348 CXX="g++" 5349 else 5350 case $cross_compiling:$ac_tool_warned in 5351yes:) 5352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5354ac_tool_warned=yes ;; 5355esac 5356 CXX=$ac_ct_CXX 5357 fi 5358fi 5359 5360 fi 5361fi 5362# Provide some information about the compiler. 5363$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 5364set X $ac_compile 5365ac_compiler=$2 5366for ac_option in --version -v -V -qversion; do 5367 { { ac_try="$ac_compiler $ac_option >&5" 5368case "(($ac_try" in 5369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5370 *) ac_try_echo=$ac_try;; 5371esac 5372eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5373$as_echo "$ac_try_echo"; } >&5 5374 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5375 ac_status=$? 5376 if test -s conftest.err; then 5377 sed '10a\ 5378... rest of stderr output deleted ... 5379 10q' conftest.err >conftest.er1 5380 cat conftest.er1 >&5 5381 fi 5382 rm -f conftest.er1 conftest.err 5383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5384 test $ac_status = 0; } 5385done 5386 5387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 5388$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5389if ${ac_cv_cxx_compiler_gnu+:} false; then : 5390 $as_echo_n "(cached) " >&6 5391else 5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5393/* end confdefs.h. */ 5394 5395int 5396main () 5397{ 5398#ifndef __GNUC__ 5399 choke me 5400#endif 5401 5402 ; 5403 return 0; 5404} 5405_ACEOF 5406if ac_fn_cxx_try_compile "$LINENO"; then : 5407 ac_compiler_gnu=yes 5408else 5409 ac_compiler_gnu=no 5410fi 5411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5412ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5413 5414fi 5415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 5416$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5417if test $ac_compiler_gnu = yes; then 5418 GXX=yes 5419else 5420 GXX= 5421fi 5422ac_test_CXXFLAGS=${CXXFLAGS+set} 5423ac_save_CXXFLAGS=$CXXFLAGS 5424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 5425$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5426if ${ac_cv_prog_cxx_g+:} false; then : 5427 $as_echo_n "(cached) " >&6 5428else 5429 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5430 ac_cxx_werror_flag=yes 5431 ac_cv_prog_cxx_g=no 5432 CXXFLAGS="-g" 5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5434/* end confdefs.h. */ 5435 5436int 5437main () 5438{ 5439 5440 ; 5441 return 0; 5442} 5443_ACEOF 5444if ac_fn_cxx_try_compile "$LINENO"; then : 5445 ac_cv_prog_cxx_g=yes 5446else 5447 CXXFLAGS="" 5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5449/* end confdefs.h. */ 5450 5451int 5452main () 5453{ 5454 5455 ; 5456 return 0; 5457} 5458_ACEOF 5459if ac_fn_cxx_try_compile "$LINENO"; then : 5460 5461else 5462 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5463 CXXFLAGS="-g" 5464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5465/* end confdefs.h. */ 5466 5467int 5468main () 5469{ 5470 5471 ; 5472 return 0; 5473} 5474_ACEOF 5475if ac_fn_cxx_try_compile "$LINENO"; then : 5476 ac_cv_prog_cxx_g=yes 5477fi 5478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5479fi 5480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5481fi 5482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5483 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5484fi 5485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5486$as_echo "$ac_cv_prog_cxx_g" >&6; } 5487if test "$ac_test_CXXFLAGS" = set; then 5488 CXXFLAGS=$ac_save_CXXFLAGS 5489elif test $ac_cv_prog_cxx_g = yes; then 5490 if test "$GXX" = yes; then 5491 CXXFLAGS="-g -O2" 5492 else 5493 CXXFLAGS="-g" 5494 fi 5495else 5496 if test "$GXX" = yes; then 5497 CXXFLAGS="-O2" 5498 else 5499 CXXFLAGS= 5500 fi 5501fi 5502ac_ext=cpp 5503ac_cpp='$CXXCPP $CPPFLAGS' 5504ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5505ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5506ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5507 5508depcc="$CXX" am_compiler_list= 5509 5510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5511$as_echo_n "checking dependency style of $depcc... " >&6; } 5512if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 5513 $as_echo_n "(cached) " >&6 5514else 5515 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5516 # We make a subdir and do the tests there. Otherwise we can end up 5517 # making bogus files that we don't know about and never remove. For 5518 # instance it was reported that on HP-UX the gcc test will end up 5519 # making a dummy file named 'D' -- because '-MD' means "put the output 5520 # in D". 5521 rm -rf conftest.dir 5522 mkdir conftest.dir 5523 # Copy depcomp to subdir because otherwise we won't find it if we're 5524 # using a relative directory. 5525 cp "$am_depcomp" conftest.dir 5526 cd conftest.dir 5527 # We will build objects and dependencies in a subdirectory because 5528 # it helps to detect inapplicable dependency modes. For instance 5529 # both Tru64's cc and ICC support -MD to output dependencies as a 5530 # side effect of compilation, but ICC will put the dependencies in 5531 # the current directory while Tru64 will put them in the object 5532 # directory. 5533 mkdir sub 5534 5535 am_cv_CXX_dependencies_compiler_type=none 5536 if test "$am_compiler_list" = ""; then 5537 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5538 fi 5539 am__universal=false 5540 case " $depcc " in #( 5541 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5542 esac 5543 5544 for depmode in $am_compiler_list; do 5545 # Setup a source with many dependencies, because some compilers 5546 # like to wrap large dependency lists on column 80 (with \), and 5547 # we should not choose a depcomp mode which is confused by this. 5548 # 5549 # We need to recreate these files for each test, as the compiler may 5550 # overwrite some of them when testing with obscure command lines. 5551 # This happens at least with the AIX C compiler. 5552 : > sub/conftest.c 5553 for i in 1 2 3 4 5 6; do 5554 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5555 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5556 # Solaris 10 /bin/sh. 5557 echo '/* dummy */' > sub/conftst$i.h 5558 done 5559 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5560 5561 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5562 # mode. It turns out that the SunPro C++ compiler does not properly 5563 # handle '-M -o', and we need to detect this. Also, some Intel 5564 # versions had trouble with output in subdirs. 5565 am__obj=sub/conftest.${OBJEXT-o} 5566 am__minus_obj="-o $am__obj" 5567 case $depmode in 5568 gcc) 5569 # This depmode causes a compiler race in universal mode. 5570 test "$am__universal" = false || continue 5571 ;; 5572 nosideeffect) 5573 # After this tag, mechanisms are not by side-effect, so they'll 5574 # only be used when explicitly requested. 5575 if test "x$enable_dependency_tracking" = xyes; then 5576 continue 5577 else 5578 break 5579 fi 5580 ;; 5581 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5582 # This compiler won't grok '-c -o', but also, the minuso test has 5583 # not run yet. These depmodes are late enough in the game, and 5584 # so weak that their functioning should not be impacted. 5585 am__obj=conftest.${OBJEXT-o} 5586 am__minus_obj= 5587 ;; 5588 none) break ;; 5589 esac 5590 if depmode=$depmode \ 5591 source=sub/conftest.c object=$am__obj \ 5592 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5593 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5594 >/dev/null 2>conftest.err && 5595 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5596 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5597 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5598 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5599 # icc doesn't choke on unknown options, it will just issue warnings 5600 # or remarks (even with -Werror). So we grep stderr for any message 5601 # that says an option was ignored or not supported. 5602 # When given -MP, icc 7.0 and 7.1 complain thusly: 5603 # icc: Command line warning: ignoring option '-M'; no argument required 5604 # The diagnosis changed in icc 8.0: 5605 # icc: Command line remark: option '-MP' not supported 5606 if (grep 'ignoring option' conftest.err || 5607 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5608 am_cv_CXX_dependencies_compiler_type=$depmode 5609 break 5610 fi 5611 fi 5612 done 5613 5614 cd .. 5615 rm -rf conftest.dir 5616else 5617 am_cv_CXX_dependencies_compiler_type=none 5618fi 5619 5620fi 5621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 5622$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5623CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5624 5625 if 5626 test "x$enable_dependency_tracking" != xno \ 5627 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5628 am__fastdepCXX_TRUE= 5629 am__fastdepCXX_FALSE='#' 5630else 5631 am__fastdepCXX_TRUE='#' 5632 am__fastdepCXX_FALSE= 5633fi 5634 5635 5636 5637ac_ext=cpp 5638ac_cpp='$CXXCPP $CPPFLAGS' 5639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 5643$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 5644if test -z "$CXXCPP"; then 5645 if ${ac_cv_prog_CXXCPP+:} false; then : 5646 $as_echo_n "(cached) " >&6 5647else 5648 # Double quotes because CXXCPP needs to be expanded 5649 for CXXCPP in "$CXX -E" "/lib/cpp" 5650 do 5651 ac_preproc_ok=false 5652for ac_cxx_preproc_warn_flag in '' yes 5653do 5654 # Use a header file that comes with gcc, so configuring glibc 5655 # with a fresh cross-compiler works. 5656 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5657 # <limits.h> exists even on freestanding compilers. 5658 # On the NeXT, cc -E runs the code through the compiler's parser, 5659 # not just through cpp. "Syntax error" is here to catch this case. 5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5661/* end confdefs.h. */ 5662#ifdef __STDC__ 5663# include <limits.h> 5664#else 5665# include <assert.h> 5666#endif 5667 Syntax error 5668_ACEOF 5669if ac_fn_cxx_try_cpp "$LINENO"; then : 5670 5671else 5672 # Broken: fails on valid input. 5673continue 5674fi 5675rm -f conftest.err conftest.i conftest.$ac_ext 5676 5677 # OK, works on sane cases. Now check whether nonexistent headers 5678 # can be detected and how. 5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5680/* end confdefs.h. */ 5681#include <ac_nonexistent.h> 5682_ACEOF 5683if ac_fn_cxx_try_cpp "$LINENO"; then : 5684 # Broken: success on invalid input. 5685continue 5686else 5687 # Passes both tests. 5688ac_preproc_ok=: 5689break 5690fi 5691rm -f conftest.err conftest.i conftest.$ac_ext 5692 5693done 5694# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5695rm -f conftest.i conftest.err conftest.$ac_ext 5696if $ac_preproc_ok; then : 5697 break 5698fi 5699 5700 done 5701 ac_cv_prog_CXXCPP=$CXXCPP 5702 5703fi 5704 CXXCPP=$ac_cv_prog_CXXCPP 5705else 5706 ac_cv_prog_CXXCPP=$CXXCPP 5707fi 5708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 5709$as_echo "$CXXCPP" >&6; } 5710ac_preproc_ok=false 5711for ac_cxx_preproc_warn_flag in '' yes 5712do 5713 # Use a header file that comes with gcc, so configuring glibc 5714 # with a fresh cross-compiler works. 5715 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5716 # <limits.h> exists even on freestanding compilers. 5717 # On the NeXT, cc -E runs the code through the compiler's parser, 5718 # not just through cpp. "Syntax error" is here to catch this case. 5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5720/* end confdefs.h. */ 5721#ifdef __STDC__ 5722# include <limits.h> 5723#else 5724# include <assert.h> 5725#endif 5726 Syntax error 5727_ACEOF 5728if ac_fn_cxx_try_cpp "$LINENO"; then : 5729 5730else 5731 # Broken: fails on valid input. 5732continue 5733fi 5734rm -f conftest.err conftest.i conftest.$ac_ext 5735 5736 # OK, works on sane cases. Now check whether nonexistent headers 5737 # can be detected and how. 5738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5739/* end confdefs.h. */ 5740#include <ac_nonexistent.h> 5741_ACEOF 5742if ac_fn_cxx_try_cpp "$LINENO"; then : 5743 # Broken: success on invalid input. 5744continue 5745else 5746 # Passes both tests. 5747ac_preproc_ok=: 5748break 5749fi 5750rm -f conftest.err conftest.i conftest.$ac_ext 5751 5752done 5753# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5754rm -f conftest.i conftest.err conftest.$ac_ext 5755if $ac_preproc_ok; then : 5756 5757else 5758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5760as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 5761See \`config.log' for more details" "$LINENO" 5; } 5762fi 5763 5764ac_ext=cpp 5765ac_cpp='$CXXCPP $CPPFLAGS' 5766ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5767ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5768ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5769 5770 5771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5772$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5773if ${ac_cv_path_GREP+:} false; then : 5774 $as_echo_n "(cached) " >&6 5775else 5776 if test -z "$GREP"; then 5777 ac_path_GREP_found=false 5778 # Loop through the user's path and test for each of PROGNAME-LIST 5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5780for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5781do 5782 IFS=$as_save_IFS 5783 test -z "$as_dir" && as_dir=. 5784 for ac_prog in grep ggrep; do 5785 for ac_exec_ext in '' $ac_executable_extensions; do 5786 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5787 as_fn_executable_p "$ac_path_GREP" || continue 5788# Check for GNU ac_path_GREP and select it if it is found. 5789 # Check for GNU $ac_path_GREP 5790case `"$ac_path_GREP" --version 2>&1` in 5791*GNU*) 5792 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5793*) 5794 ac_count=0 5795 $as_echo_n 0123456789 >"conftest.in" 5796 while : 5797 do 5798 cat "conftest.in" "conftest.in" >"conftest.tmp" 5799 mv "conftest.tmp" "conftest.in" 5800 cp "conftest.in" "conftest.nl" 5801 $as_echo 'GREP' >> "conftest.nl" 5802 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5803 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5804 as_fn_arith $ac_count + 1 && ac_count=$as_val 5805 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5806 # Best one so far, save it but keep looking for a better one 5807 ac_cv_path_GREP="$ac_path_GREP" 5808 ac_path_GREP_max=$ac_count 5809 fi 5810 # 10*(2^10) chars as input seems more than enough 5811 test $ac_count -gt 10 && break 5812 done 5813 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5814esac 5815 5816 $ac_path_GREP_found && break 3 5817 done 5818 done 5819 done 5820IFS=$as_save_IFS 5821 if test -z "$ac_cv_path_GREP"; then 5822 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5823 fi 5824else 5825 ac_cv_path_GREP=$GREP 5826fi 5827 5828fi 5829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5830$as_echo "$ac_cv_path_GREP" >&6; } 5831 GREP="$ac_cv_path_GREP" 5832 5833 5834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5835$as_echo_n "checking for egrep... " >&6; } 5836if ${ac_cv_path_EGREP+:} false; then : 5837 $as_echo_n "(cached) " >&6 5838else 5839 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5840 then ac_cv_path_EGREP="$GREP -E" 5841 else 5842 if test -z "$EGREP"; then 5843 ac_path_EGREP_found=false 5844 # Loop through the user's path and test for each of PROGNAME-LIST 5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5846for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5847do 5848 IFS=$as_save_IFS 5849 test -z "$as_dir" && as_dir=. 5850 for ac_prog in egrep; do 5851 for ac_exec_ext in '' $ac_executable_extensions; do 5852 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5853 as_fn_executable_p "$ac_path_EGREP" || continue 5854# Check for GNU ac_path_EGREP and select it if it is found. 5855 # Check for GNU $ac_path_EGREP 5856case `"$ac_path_EGREP" --version 2>&1` in 5857*GNU*) 5858 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5859*) 5860 ac_count=0 5861 $as_echo_n 0123456789 >"conftest.in" 5862 while : 5863 do 5864 cat "conftest.in" "conftest.in" >"conftest.tmp" 5865 mv "conftest.tmp" "conftest.in" 5866 cp "conftest.in" "conftest.nl" 5867 $as_echo 'EGREP' >> "conftest.nl" 5868 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5869 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5870 as_fn_arith $ac_count + 1 && ac_count=$as_val 5871 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5872 # Best one so far, save it but keep looking for a better one 5873 ac_cv_path_EGREP="$ac_path_EGREP" 5874 ac_path_EGREP_max=$ac_count 5875 fi 5876 # 10*(2^10) chars as input seems more than enough 5877 test $ac_count -gt 10 && break 5878 done 5879 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5880esac 5881 5882 $ac_path_EGREP_found && break 3 5883 done 5884 done 5885 done 5886IFS=$as_save_IFS 5887 if test -z "$ac_cv_path_EGREP"; then 5888 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5889 fi 5890else 5891 ac_cv_path_EGREP=$EGREP 5892fi 5893 5894 fi 5895fi 5896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5897$as_echo "$ac_cv_path_EGREP" >&6; } 5898 EGREP="$ac_cv_path_EGREP" 5899 5900 5901 5902 5903 acl_libdirstem=lib 5904 acl_libdirstem2= 5905 case "$host_os" in 5906 solaris*) 5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 5908$as_echo_n "checking for 64-bit host... " >&6; } 5909if ${gl_cv_solaris_64bit+:} false; then : 5910 $as_echo_n "(cached) " >&6 5911else 5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5913/* end confdefs.h. */ 5914 5915#ifdef _LP64 5916sixtyfour bits 5917#endif 5918 5919_ACEOF 5920if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5921 $EGREP "sixtyfour bits" >/dev/null 2>&1; then : 5922 gl_cv_solaris_64bit=yes 5923else 5924 gl_cv_solaris_64bit=no 5925fi 5926rm -f conftest* 5927 5928 5929fi 5930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 5931$as_echo "$gl_cv_solaris_64bit" >&6; } 5932 if test $gl_cv_solaris_64bit = yes; then 5933 acl_libdirstem=lib/64 5934 case "$host_cpu" in 5935 sparc*) acl_libdirstem2=lib/sparcv9 ;; 5936 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 5937 esac 5938 fi 5939 ;; 5940 *) 5941 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 5942 if test -n "$searchpath"; then 5943 acl_save_IFS="${IFS= }"; IFS=":" 5944 for searchdir in $searchpath; do 5945 if test -d "$searchdir"; then 5946 case "$searchdir" in 5947 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 5948 */../ | */.. ) 5949 # Better ignore directories of this form. They are misleading. 5950 ;; 5951 *) searchdir=`cd "$searchdir" && pwd` 5952 case "$searchdir" in 5953 */lib64 ) acl_libdirstem=lib64 ;; 5954 esac ;; 5955 esac 5956 fi 5957 done 5958 IFS="$acl_save_IFS" 5959 fi 5960 ;; 5961 esac 5962 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 use_additional=yes 5976 5977 acl_save_prefix="$prefix" 5978 prefix="$acl_final_prefix" 5979 acl_save_exec_prefix="$exec_prefix" 5980 exec_prefix="$acl_final_exec_prefix" 5981 5982 eval additional_includedir=\"$includedir\" 5983 eval additional_libdir=\"$libdir\" 5984 5985 exec_prefix="$acl_save_exec_prefix" 5986 prefix="$acl_save_prefix" 5987 5988 5989# Check whether --with-libiconv-prefix was given. 5990if test "${with_libiconv_prefix+set}" = set; then : 5991 withval=$with_libiconv_prefix; 5992 if test "X$withval" = "Xno"; then 5993 use_additional=no 5994 else 5995 if test "X$withval" = "X"; then 5996 5997 acl_save_prefix="$prefix" 5998 prefix="$acl_final_prefix" 5999 acl_save_exec_prefix="$exec_prefix" 6000 exec_prefix="$acl_final_exec_prefix" 6001 6002 eval additional_includedir=\"$includedir\" 6003 eval additional_libdir=\"$libdir\" 6004 6005 exec_prefix="$acl_save_exec_prefix" 6006 prefix="$acl_save_prefix" 6007 6008 else 6009 additional_includedir="$withval/include" 6010 additional_libdir="$withval/$acl_libdirstem" 6011 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 6012 && ! test -d "$withval/$acl_libdirstem"; then 6013 additional_libdir="$withval/$acl_libdirstem2" 6014 fi 6015 fi 6016 fi 6017 6018fi 6019 6020 LIBICONV= 6021 LTLIBICONV= 6022 INCICONV= 6023 LIBICONV_PREFIX= 6024 HAVE_LIBICONV= 6025 rpathdirs= 6026 ltrpathdirs= 6027 names_already_handled= 6028 names_next_round='iconv ' 6029 while test -n "$names_next_round"; do 6030 names_this_round="$names_next_round" 6031 names_next_round= 6032 for name in $names_this_round; do 6033 already_handled= 6034 for n in $names_already_handled; do 6035 if test "$n" = "$name"; then 6036 already_handled=yes 6037 break 6038 fi 6039 done 6040 if test -z "$already_handled"; then 6041 names_already_handled="$names_already_handled $name" 6042 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 6043 eval value=\"\$HAVE_LIB$uppername\" 6044 if test -n "$value"; then 6045 if test "$value" = yes; then 6046 eval value=\"\$LIB$uppername\" 6047 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 6048 eval value=\"\$LTLIB$uppername\" 6049 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 6050 else 6051 : 6052 fi 6053 else 6054 found_dir= 6055 found_la= 6056 found_so= 6057 found_a= 6058 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 6059 if test -n "$acl_shlibext"; then 6060 shrext=".$acl_shlibext" # typically: shrext=.so 6061 else 6062 shrext= 6063 fi 6064 if test $use_additional = yes; then 6065 dir="$additional_libdir" 6066 if test -n "$acl_shlibext"; then 6067 if test -f "$dir/$libname$shrext"; then 6068 found_dir="$dir" 6069 found_so="$dir/$libname$shrext" 6070 else 6071 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 6072 ver=`(cd "$dir" && \ 6073 for f in "$libname$shrext".*; do echo "$f"; done \ 6074 | sed -e "s,^$libname$shrext\\\\.,," \ 6075 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 6076 | sed 1q ) 2>/dev/null` 6077 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 6078 found_dir="$dir" 6079 found_so="$dir/$libname$shrext.$ver" 6080 fi 6081 else 6082 eval library_names=\"$acl_library_names_spec\" 6083 for f in $library_names; do 6084 if test -f "$dir/$f"; then 6085 found_dir="$dir" 6086 found_so="$dir/$f" 6087 break 6088 fi 6089 done 6090 fi 6091 fi 6092 fi 6093 if test "X$found_dir" = "X"; then 6094 if test -f "$dir/$libname.$acl_libext"; then 6095 found_dir="$dir" 6096 found_a="$dir/$libname.$acl_libext" 6097 fi 6098 fi 6099 if test "X$found_dir" != "X"; then 6100 if test -f "$dir/$libname.la"; then 6101 found_la="$dir/$libname.la" 6102 fi 6103 fi 6104 fi 6105 if test "X$found_dir" = "X"; then 6106 for x in $LDFLAGS $LTLIBICONV; do 6107 6108 acl_save_prefix="$prefix" 6109 prefix="$acl_final_prefix" 6110 acl_save_exec_prefix="$exec_prefix" 6111 exec_prefix="$acl_final_exec_prefix" 6112 eval x=\"$x\" 6113 exec_prefix="$acl_save_exec_prefix" 6114 prefix="$acl_save_prefix" 6115 6116 case "$x" in 6117 -L*) 6118 dir=`echo "X$x" | sed -e 's/^X-L//'` 6119 if test -n "$acl_shlibext"; then 6120 if test -f "$dir/$libname$shrext"; then 6121 found_dir="$dir" 6122 found_so="$dir/$libname$shrext" 6123 else 6124 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 6125 ver=`(cd "$dir" && \ 6126 for f in "$libname$shrext".*; do echo "$f"; done \ 6127 | sed -e "s,^$libname$shrext\\\\.,," \ 6128 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 6129 | sed 1q ) 2>/dev/null` 6130 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 6131 found_dir="$dir" 6132 found_so="$dir/$libname$shrext.$ver" 6133 fi 6134 else 6135 eval library_names=\"$acl_library_names_spec\" 6136 for f in $library_names; do 6137 if test -f "$dir/$f"; then 6138 found_dir="$dir" 6139 found_so="$dir/$f" 6140 break 6141 fi 6142 done 6143 fi 6144 fi 6145 fi 6146 if test "X$found_dir" = "X"; then 6147 if test -f "$dir/$libname.$acl_libext"; then 6148 found_dir="$dir" 6149 found_a="$dir/$libname.$acl_libext" 6150 fi 6151 fi 6152 if test "X$found_dir" != "X"; then 6153 if test -f "$dir/$libname.la"; then 6154 found_la="$dir/$libname.la" 6155 fi 6156 fi 6157 ;; 6158 esac 6159 if test "X$found_dir" != "X"; then 6160 break 6161 fi 6162 done 6163 fi 6164 if test "X$found_dir" != "X"; then 6165 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 6166 if test "X$found_so" != "X"; then 6167 if test "$enable_rpath" = no \ 6168 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 6169 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 6170 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 6171 else 6172 haveit= 6173 for x in $ltrpathdirs; do 6174 if test "X$x" = "X$found_dir"; then 6175 haveit=yes 6176 break 6177 fi 6178 done 6179 if test -z "$haveit"; then 6180 ltrpathdirs="$ltrpathdirs $found_dir" 6181 fi 6182 if test "$acl_hardcode_direct" = yes; then 6183 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 6184 else 6185 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 6186 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 6187 haveit= 6188 for x in $rpathdirs; do 6189 if test "X$x" = "X$found_dir"; then 6190 haveit=yes 6191 break 6192 fi 6193 done 6194 if test -z "$haveit"; then 6195 rpathdirs="$rpathdirs $found_dir" 6196 fi 6197 else 6198 haveit= 6199 for x in $LDFLAGS $LIBICONV; do 6200 6201 acl_save_prefix="$prefix" 6202 prefix="$acl_final_prefix" 6203 acl_save_exec_prefix="$exec_prefix" 6204 exec_prefix="$acl_final_exec_prefix" 6205 eval x=\"$x\" 6206 exec_prefix="$acl_save_exec_prefix" 6207 prefix="$acl_save_prefix" 6208 6209 if test "X$x" = "X-L$found_dir"; then 6210 haveit=yes 6211 break 6212 fi 6213 done 6214 if test -z "$haveit"; then 6215 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 6216 fi 6217 if test "$acl_hardcode_minus_L" != no; then 6218 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 6219 else 6220 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 6221 fi 6222 fi 6223 fi 6224 fi 6225 else 6226 if test "X$found_a" != "X"; then 6227 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 6228 else 6229 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 6230 fi 6231 fi 6232 additional_includedir= 6233 case "$found_dir" in 6234 */$acl_libdirstem | */$acl_libdirstem/) 6235 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 6236 if test "$name" = 'iconv'; then 6237 LIBICONV_PREFIX="$basedir" 6238 fi 6239 additional_includedir="$basedir/include" 6240 ;; 6241 */$acl_libdirstem2 | */$acl_libdirstem2/) 6242 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 6243 if test "$name" = 'iconv'; then 6244 LIBICONV_PREFIX="$basedir" 6245 fi 6246 additional_includedir="$basedir/include" 6247 ;; 6248 esac 6249 if test "X$additional_includedir" != "X"; then 6250 if test "X$additional_includedir" != "X/usr/include"; then 6251 haveit= 6252 if test "X$additional_includedir" = "X/usr/local/include"; then 6253 if test -n "$GCC"; then 6254 case $host_os in 6255 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 6256 esac 6257 fi 6258 fi 6259 if test -z "$haveit"; then 6260 for x in $CPPFLAGS $INCICONV; do 6261 6262 acl_save_prefix="$prefix" 6263 prefix="$acl_final_prefix" 6264 acl_save_exec_prefix="$exec_prefix" 6265 exec_prefix="$acl_final_exec_prefix" 6266 eval x=\"$x\" 6267 exec_prefix="$acl_save_exec_prefix" 6268 prefix="$acl_save_prefix" 6269 6270 if test "X$x" = "X-I$additional_includedir"; then 6271 haveit=yes 6272 break 6273 fi 6274 done 6275 if test -z "$haveit"; then 6276 if test -d "$additional_includedir"; then 6277 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 6278 fi 6279 fi 6280 fi 6281 fi 6282 fi 6283 if test -n "$found_la"; then 6284 save_libdir="$libdir" 6285 case "$found_la" in 6286 */* | *\\*) . "$found_la" ;; 6287 *) . "./$found_la" ;; 6288 esac 6289 libdir="$save_libdir" 6290 for dep in $dependency_libs; do 6291 case "$dep" in 6292 -L*) 6293 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 6294 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 6295 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 6296 haveit= 6297 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 6298 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 6299 if test -n "$GCC"; then 6300 case $host_os in 6301 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 6302 esac 6303 fi 6304 fi 6305 if test -z "$haveit"; then 6306 haveit= 6307 for x in $LDFLAGS $LIBICONV; do 6308 6309 acl_save_prefix="$prefix" 6310 prefix="$acl_final_prefix" 6311 acl_save_exec_prefix="$exec_prefix" 6312 exec_prefix="$acl_final_exec_prefix" 6313 eval x=\"$x\" 6314 exec_prefix="$acl_save_exec_prefix" 6315 prefix="$acl_save_prefix" 6316 6317 if test "X$x" = "X-L$additional_libdir"; then 6318 haveit=yes 6319 break 6320 fi 6321 done 6322 if test -z "$haveit"; then 6323 if test -d "$additional_libdir"; then 6324 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 6325 fi 6326 fi 6327 haveit= 6328 for x in $LDFLAGS $LTLIBICONV; do 6329 6330 acl_save_prefix="$prefix" 6331 prefix="$acl_final_prefix" 6332 acl_save_exec_prefix="$exec_prefix" 6333 exec_prefix="$acl_final_exec_prefix" 6334 eval x=\"$x\" 6335 exec_prefix="$acl_save_exec_prefix" 6336 prefix="$acl_save_prefix" 6337 6338 if test "X$x" = "X-L$additional_libdir"; then 6339 haveit=yes 6340 break 6341 fi 6342 done 6343 if test -z "$haveit"; then 6344 if test -d "$additional_libdir"; then 6345 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 6346 fi 6347 fi 6348 fi 6349 fi 6350 ;; 6351 -R*) 6352 dir=`echo "X$dep" | sed -e 's/^X-R//'` 6353 if test "$enable_rpath" != no; then 6354 haveit= 6355 for x in $rpathdirs; do 6356 if test "X$x" = "X$dir"; then 6357 haveit=yes 6358 break 6359 fi 6360 done 6361 if test -z "$haveit"; then 6362 rpathdirs="$rpathdirs $dir" 6363 fi 6364 haveit= 6365 for x in $ltrpathdirs; do 6366 if test "X$x" = "X$dir"; then 6367 haveit=yes 6368 break 6369 fi 6370 done 6371 if test -z "$haveit"; then 6372 ltrpathdirs="$ltrpathdirs $dir" 6373 fi 6374 fi 6375 ;; 6376 -l*) 6377 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 6378 ;; 6379 *.la) 6380 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 6381 ;; 6382 *) 6383 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 6384 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 6385 ;; 6386 esac 6387 done 6388 fi 6389 else 6390 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 6391 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 6392 fi 6393 fi 6394 fi 6395 done 6396 done 6397 if test "X$rpathdirs" != "X"; then 6398 if test -n "$acl_hardcode_libdir_separator"; then 6399 alldirs= 6400 for found_dir in $rpathdirs; do 6401 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 6402 done 6403 acl_save_libdir="$libdir" 6404 libdir="$alldirs" 6405 eval flag=\"$acl_hardcode_libdir_flag_spec\" 6406 libdir="$acl_save_libdir" 6407 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 6408 else 6409 for found_dir in $rpathdirs; do 6410 acl_save_libdir="$libdir" 6411 libdir="$found_dir" 6412 eval flag=\"$acl_hardcode_libdir_flag_spec\" 6413 libdir="$acl_save_libdir" 6414 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 6415 done 6416 fi 6417 fi 6418 if test "X$ltrpathdirs" != "X"; then 6419 for found_dir in $ltrpathdirs; do 6420 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 6421 done 6422 fi 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 6455$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 6456if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 6457 $as_echo_n "(cached) " >&6 6458else 6459 gt_save_LIBS="$LIBS" 6460 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6462/* end confdefs.h. */ 6463#include <CoreFoundation/CFPreferences.h> 6464int 6465main () 6466{ 6467CFPreferencesCopyAppValue(NULL, NULL) 6468 ; 6469 return 0; 6470} 6471_ACEOF 6472if ac_fn_cxx_try_link "$LINENO"; then : 6473 gt_cv_func_CFPreferencesCopyAppValue=yes 6474else 6475 gt_cv_func_CFPreferencesCopyAppValue=no 6476fi 6477rm -f core conftest.err conftest.$ac_objext \ 6478 conftest$ac_exeext conftest.$ac_ext 6479 LIBS="$gt_save_LIBS" 6480fi 6481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 6482$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 6483 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 6484 6485$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 6486 6487 fi 6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 6489$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } 6490if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : 6491 $as_echo_n "(cached) " >&6 6492else 6493 gt_save_LIBS="$LIBS" 6494 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6496/* end confdefs.h. */ 6497#include <CoreFoundation/CFLocale.h> 6498int 6499main () 6500{ 6501CFLocaleCopyCurrent(); 6502 ; 6503 return 0; 6504} 6505_ACEOF 6506if ac_fn_cxx_try_link "$LINENO"; then : 6507 gt_cv_func_CFLocaleCopyCurrent=yes 6508else 6509 gt_cv_func_CFLocaleCopyCurrent=no 6510fi 6511rm -f core conftest.err conftest.$ac_objext \ 6512 conftest$ac_exeext conftest.$ac_ext 6513 LIBS="$gt_save_LIBS" 6514fi 6515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 6516$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } 6517 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 6518 6519$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h 6520 6521 fi 6522 INTL_MACOSX_LIBS= 6523 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 6524 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 6525 fi 6526 6527 6528 6529 6530 6531 6532 LIBINTL= 6533 LTLIBINTL= 6534 POSUB= 6535 6536 case " $gt_needs " in 6537 *" need-formatstring-macros "*) gt_api_version=3 ;; 6538 *" need-ngettext "*) gt_api_version=2 ;; 6539 *) gt_api_version=1 ;; 6540 esac 6541 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 6542 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 6543 6544 if test "$USE_NLS" = "yes"; then 6545 gt_use_preinstalled_gnugettext=no 6546 6547 6548 if test $gt_api_version -ge 3; then 6549 gt_revision_test_code=' 6550#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 6551#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 6552#endif 6553typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 6554' 6555 else 6556 gt_revision_test_code= 6557 fi 6558 if test $gt_api_version -ge 2; then 6559 gt_expression_test_code=' + * ngettext ("", "", 0)' 6560 else 6561 gt_expression_test_code= 6562 fi 6563 6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 6565$as_echo_n "checking for GNU gettext in libc... " >&6; } 6566if eval \${$gt_func_gnugettext_libc+:} false; then : 6567 $as_echo_n "(cached) " >&6 6568else 6569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6570/* end confdefs.h. */ 6571 6572#include <libintl.h> 6573$gt_revision_test_code 6574extern int _nl_msg_cat_cntr; 6575extern int *_nl_domain_bindings; 6576 6577int 6578main () 6579{ 6580 6581bindtextdomain ("", ""); 6582return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings 6583 6584 ; 6585 return 0; 6586} 6587_ACEOF 6588if ac_fn_cxx_try_link "$LINENO"; then : 6589 eval "$gt_func_gnugettext_libc=yes" 6590else 6591 eval "$gt_func_gnugettext_libc=no" 6592fi 6593rm -f core conftest.err conftest.$ac_objext \ 6594 conftest$ac_exeext conftest.$ac_ext 6595fi 6596eval ac_res=\$$gt_func_gnugettext_libc 6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6598$as_echo "$ac_res" >&6; } 6599 6600 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 6601 6602 6603 6604 6605 6606 am_save_CPPFLAGS="$CPPFLAGS" 6607 6608 for element in $INCICONV; do 6609 haveit= 6610 for x in $CPPFLAGS; do 6611 6612 acl_save_prefix="$prefix" 6613 prefix="$acl_final_prefix" 6614 acl_save_exec_prefix="$exec_prefix" 6615 exec_prefix="$acl_final_exec_prefix" 6616 eval x=\"$x\" 6617 exec_prefix="$acl_save_exec_prefix" 6618 prefix="$acl_save_prefix" 6619 6620 if test "X$x" = "X$element"; then 6621 haveit=yes 6622 break 6623 fi 6624 done 6625 if test -z "$haveit"; then 6626 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 6627 fi 6628 done 6629 6630 6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 6632$as_echo_n "checking for iconv... " >&6; } 6633if ${am_cv_func_iconv+:} false; then : 6634 $as_echo_n "(cached) " >&6 6635else 6636 6637 am_cv_func_iconv="no, consider installing GNU libiconv" 6638 am_cv_lib_iconv=no 6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6640/* end confdefs.h. */ 6641 6642#include <stdlib.h> 6643#include <iconv.h> 6644 6645int 6646main () 6647{ 6648iconv_t cd = iconv_open("",""); 6649 iconv(cd,NULL,NULL,NULL,NULL); 6650 iconv_close(cd); 6651 ; 6652 return 0; 6653} 6654_ACEOF 6655if ac_fn_cxx_try_link "$LINENO"; then : 6656 am_cv_func_iconv=yes 6657fi 6658rm -f core conftest.err conftest.$ac_objext \ 6659 conftest$ac_exeext conftest.$ac_ext 6660 if test "$am_cv_func_iconv" != yes; then 6661 am_save_LIBS="$LIBS" 6662 LIBS="$LIBS $LIBICONV" 6663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6664/* end confdefs.h. */ 6665 6666#include <stdlib.h> 6667#include <iconv.h> 6668 6669int 6670main () 6671{ 6672iconv_t cd = iconv_open("",""); 6673 iconv(cd,NULL,NULL,NULL,NULL); 6674 iconv_close(cd); 6675 ; 6676 return 0; 6677} 6678_ACEOF 6679if ac_fn_cxx_try_link "$LINENO"; then : 6680 am_cv_lib_iconv=yes 6681 am_cv_func_iconv=yes 6682fi 6683rm -f core conftest.err conftest.$ac_objext \ 6684 conftest$ac_exeext conftest.$ac_ext 6685 LIBS="$am_save_LIBS" 6686 fi 6687 6688fi 6689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 6690$as_echo "$am_cv_func_iconv" >&6; } 6691 if test "$am_cv_func_iconv" = yes; then 6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 6693$as_echo_n "checking for working iconv... " >&6; } 6694if ${am_cv_func_iconv_works+:} false; then : 6695 $as_echo_n "(cached) " >&6 6696else 6697 6698 am_save_LIBS="$LIBS" 6699 if test $am_cv_lib_iconv = yes; then 6700 LIBS="$LIBS $LIBICONV" 6701 fi 6702 if test "$cross_compiling" = yes; then : 6703 6704 case "$host_os" in 6705 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 6706 *) am_cv_func_iconv_works="guessing yes" ;; 6707 esac 6708 6709else 6710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6711/* end confdefs.h. */ 6712 6713#include <iconv.h> 6714#include <string.h> 6715int main () 6716{ 6717 int result = 0; 6718 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 6719 returns. */ 6720 { 6721 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 6722 if (cd_utf8_to_88591 != (iconv_t)(-1)) 6723 { 6724 static const char input[] = "\342\202\254"; /* EURO SIGN */ 6725 char buf[10]; 6726 const char *inptr = input; 6727 size_t inbytesleft = strlen (input); 6728 char *outptr = buf; 6729 size_t outbytesleft = sizeof (buf); 6730 size_t res = iconv (cd_utf8_to_88591, 6731 &inptr, &inbytesleft, 6732 &outptr, &outbytesleft); 6733 if (res == 0) 6734 result |= 1; 6735 iconv_close (cd_utf8_to_88591); 6736 } 6737 } 6738 /* Test against Solaris 10 bug: Failures are not distinguishable from 6739 successful returns. */ 6740 { 6741 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 6742 if (cd_ascii_to_88591 != (iconv_t)(-1)) 6743 { 6744 static const char input[] = "\263"; 6745 char buf[10]; 6746 const char *inptr = input; 6747 size_t inbytesleft = strlen (input); 6748 char *outptr = buf; 6749 size_t outbytesleft = sizeof (buf); 6750 size_t res = iconv (cd_ascii_to_88591, 6751 &inptr, &inbytesleft, 6752 &outptr, &outbytesleft); 6753 if (res == 0) 6754 result |= 2; 6755 iconv_close (cd_ascii_to_88591); 6756 } 6757 } 6758 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 6759 { 6760 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 6761 if (cd_88591_to_utf8 != (iconv_t)(-1)) 6762 { 6763 static const char input[] = "\304"; 6764 static char buf[2] = { (char)0xDE, (char)0xAD }; 6765 const char *inptr = input; 6766 size_t inbytesleft = 1; 6767 char *outptr = buf; 6768 size_t outbytesleft = 1; 6769 size_t res = iconv (cd_88591_to_utf8, 6770 &inptr, &inbytesleft, 6771 &outptr, &outbytesleft); 6772 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 6773 result |= 4; 6774 iconv_close (cd_88591_to_utf8); 6775 } 6776 } 6777#if 0 /* This bug could be worked around by the caller. */ 6778 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 6779 { 6780 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 6781 if (cd_88591_to_utf8 != (iconv_t)(-1)) 6782 { 6783 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 6784 char buf[50]; 6785 const char *inptr = input; 6786 size_t inbytesleft = strlen (input); 6787 char *outptr = buf; 6788 size_t outbytesleft = sizeof (buf); 6789 size_t res = iconv (cd_88591_to_utf8, 6790 &inptr, &inbytesleft, 6791 &outptr, &outbytesleft); 6792 if ((int)res > 0) 6793 result |= 8; 6794 iconv_close (cd_88591_to_utf8); 6795 } 6796 } 6797#endif 6798 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 6799 provided. */ 6800 if (/* Try standardized names. */ 6801 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 6802 /* Try IRIX, OSF/1 names. */ 6803 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 6804 /* Try AIX names. */ 6805 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 6806 /* Try HP-UX names. */ 6807 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 6808 result |= 16; 6809 return result; 6810} 6811_ACEOF 6812if ac_fn_cxx_try_run "$LINENO"; then : 6813 am_cv_func_iconv_works=yes 6814else 6815 am_cv_func_iconv_works=no 6816fi 6817rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6818 conftest.$ac_objext conftest.beam conftest.$ac_ext 6819fi 6820 6821 LIBS="$am_save_LIBS" 6822 6823fi 6824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 6825$as_echo "$am_cv_func_iconv_works" >&6; } 6826 case "$am_cv_func_iconv_works" in 6827 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 6828 *) am_func_iconv=yes ;; 6829 esac 6830 else 6831 am_func_iconv=no am_cv_lib_iconv=no 6832 fi 6833 if test "$am_func_iconv" = yes; then 6834 6835$as_echo "#define HAVE_ICONV 1" >>confdefs.h 6836 6837 fi 6838 if test "$am_cv_lib_iconv" = yes; then 6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 6840$as_echo_n "checking how to link with libiconv... " >&6; } 6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 6842$as_echo "$LIBICONV" >&6; } 6843 else 6844 CPPFLAGS="$am_save_CPPFLAGS" 6845 LIBICONV= 6846 LTLIBICONV= 6847 fi 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 use_additional=yes 6860 6861 acl_save_prefix="$prefix" 6862 prefix="$acl_final_prefix" 6863 acl_save_exec_prefix="$exec_prefix" 6864 exec_prefix="$acl_final_exec_prefix" 6865 6866 eval additional_includedir=\"$includedir\" 6867 eval additional_libdir=\"$libdir\" 6868 6869 exec_prefix="$acl_save_exec_prefix" 6870 prefix="$acl_save_prefix" 6871 6872 6873# Check whether --with-libintl-prefix was given. 6874if test "${with_libintl_prefix+set}" = set; then : 6875 withval=$with_libintl_prefix; 6876 if test "X$withval" = "Xno"; then 6877 use_additional=no 6878 else 6879 if test "X$withval" = "X"; then 6880 6881 acl_save_prefix="$prefix" 6882 prefix="$acl_final_prefix" 6883 acl_save_exec_prefix="$exec_prefix" 6884 exec_prefix="$acl_final_exec_prefix" 6885 6886 eval additional_includedir=\"$includedir\" 6887 eval additional_libdir=\"$libdir\" 6888 6889 exec_prefix="$acl_save_exec_prefix" 6890 prefix="$acl_save_prefix" 6891 6892 else 6893 additional_includedir="$withval/include" 6894 additional_libdir="$withval/$acl_libdirstem" 6895 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 6896 && ! test -d "$withval/$acl_libdirstem"; then 6897 additional_libdir="$withval/$acl_libdirstem2" 6898 fi 6899 fi 6900 fi 6901 6902fi 6903 6904 LIBINTL= 6905 LTLIBINTL= 6906 INCINTL= 6907 LIBINTL_PREFIX= 6908 HAVE_LIBINTL= 6909 rpathdirs= 6910 ltrpathdirs= 6911 names_already_handled= 6912 names_next_round='intl ' 6913 while test -n "$names_next_round"; do 6914 names_this_round="$names_next_round" 6915 names_next_round= 6916 for name in $names_this_round; do 6917 already_handled= 6918 for n in $names_already_handled; do 6919 if test "$n" = "$name"; then 6920 already_handled=yes 6921 break 6922 fi 6923 done 6924 if test -z "$already_handled"; then 6925 names_already_handled="$names_already_handled $name" 6926 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 6927 eval value=\"\$HAVE_LIB$uppername\" 6928 if test -n "$value"; then 6929 if test "$value" = yes; then 6930 eval value=\"\$LIB$uppername\" 6931 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 6932 eval value=\"\$LTLIB$uppername\" 6933 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 6934 else 6935 : 6936 fi 6937 else 6938 found_dir= 6939 found_la= 6940 found_so= 6941 found_a= 6942 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 6943 if test -n "$acl_shlibext"; then 6944 shrext=".$acl_shlibext" # typically: shrext=.so 6945 else 6946 shrext= 6947 fi 6948 if test $use_additional = yes; then 6949 dir="$additional_libdir" 6950 if test -n "$acl_shlibext"; then 6951 if test -f "$dir/$libname$shrext"; then 6952 found_dir="$dir" 6953 found_so="$dir/$libname$shrext" 6954 else 6955 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 6956 ver=`(cd "$dir" && \ 6957 for f in "$libname$shrext".*; do echo "$f"; done \ 6958 | sed -e "s,^$libname$shrext\\\\.,," \ 6959 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 6960 | sed 1q ) 2>/dev/null` 6961 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 6962 found_dir="$dir" 6963 found_so="$dir/$libname$shrext.$ver" 6964 fi 6965 else 6966 eval library_names=\"$acl_library_names_spec\" 6967 for f in $library_names; do 6968 if test -f "$dir/$f"; then 6969 found_dir="$dir" 6970 found_so="$dir/$f" 6971 break 6972 fi 6973 done 6974 fi 6975 fi 6976 fi 6977 if test "X$found_dir" = "X"; then 6978 if test -f "$dir/$libname.$acl_libext"; then 6979 found_dir="$dir" 6980 found_a="$dir/$libname.$acl_libext" 6981 fi 6982 fi 6983 if test "X$found_dir" != "X"; then 6984 if test -f "$dir/$libname.la"; then 6985 found_la="$dir/$libname.la" 6986 fi 6987 fi 6988 fi 6989 if test "X$found_dir" = "X"; then 6990 for x in $LDFLAGS $LTLIBINTL; do 6991 6992 acl_save_prefix="$prefix" 6993 prefix="$acl_final_prefix" 6994 acl_save_exec_prefix="$exec_prefix" 6995 exec_prefix="$acl_final_exec_prefix" 6996 eval x=\"$x\" 6997 exec_prefix="$acl_save_exec_prefix" 6998 prefix="$acl_save_prefix" 6999 7000 case "$x" in 7001 -L*) 7002 dir=`echo "X$x" | sed -e 's/^X-L//'` 7003 if test -n "$acl_shlibext"; then 7004 if test -f "$dir/$libname$shrext"; then 7005 found_dir="$dir" 7006 found_so="$dir/$libname$shrext" 7007 else 7008 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 7009 ver=`(cd "$dir" && \ 7010 for f in "$libname$shrext".*; do echo "$f"; done \ 7011 | sed -e "s,^$libname$shrext\\\\.,," \ 7012 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 7013 | sed 1q ) 2>/dev/null` 7014 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 7015 found_dir="$dir" 7016 found_so="$dir/$libname$shrext.$ver" 7017 fi 7018 else 7019 eval library_names=\"$acl_library_names_spec\" 7020 for f in $library_names; do 7021 if test -f "$dir/$f"; then 7022 found_dir="$dir" 7023 found_so="$dir/$f" 7024 break 7025 fi 7026 done 7027 fi 7028 fi 7029 fi 7030 if test "X$found_dir" = "X"; then 7031 if test -f "$dir/$libname.$acl_libext"; then 7032 found_dir="$dir" 7033 found_a="$dir/$libname.$acl_libext" 7034 fi 7035 fi 7036 if test "X$found_dir" != "X"; then 7037 if test -f "$dir/$libname.la"; then 7038 found_la="$dir/$libname.la" 7039 fi 7040 fi 7041 ;; 7042 esac 7043 if test "X$found_dir" != "X"; then 7044 break 7045 fi 7046 done 7047 fi 7048 if test "X$found_dir" != "X"; then 7049 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 7050 if test "X$found_so" != "X"; then 7051 if test "$enable_rpath" = no \ 7052 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 7053 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 7054 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 7055 else 7056 haveit= 7057 for x in $ltrpathdirs; do 7058 if test "X$x" = "X$found_dir"; then 7059 haveit=yes 7060 break 7061 fi 7062 done 7063 if test -z "$haveit"; then 7064 ltrpathdirs="$ltrpathdirs $found_dir" 7065 fi 7066 if test "$acl_hardcode_direct" = yes; then 7067 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 7068 else 7069 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 7070 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 7071 haveit= 7072 for x in $rpathdirs; do 7073 if test "X$x" = "X$found_dir"; then 7074 haveit=yes 7075 break 7076 fi 7077 done 7078 if test -z "$haveit"; then 7079 rpathdirs="$rpathdirs $found_dir" 7080 fi 7081 else 7082 haveit= 7083 for x in $LDFLAGS $LIBINTL; do 7084 7085 acl_save_prefix="$prefix" 7086 prefix="$acl_final_prefix" 7087 acl_save_exec_prefix="$exec_prefix" 7088 exec_prefix="$acl_final_exec_prefix" 7089 eval x=\"$x\" 7090 exec_prefix="$acl_save_exec_prefix" 7091 prefix="$acl_save_prefix" 7092 7093 if test "X$x" = "X-L$found_dir"; then 7094 haveit=yes 7095 break 7096 fi 7097 done 7098 if test -z "$haveit"; then 7099 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 7100 fi 7101 if test "$acl_hardcode_minus_L" != no; then 7102 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 7103 else 7104 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 7105 fi 7106 fi 7107 fi 7108 fi 7109 else 7110 if test "X$found_a" != "X"; then 7111 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 7112 else 7113 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 7114 fi 7115 fi 7116 additional_includedir= 7117 case "$found_dir" in 7118 */$acl_libdirstem | */$acl_libdirstem/) 7119 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 7120 if test "$name" = 'intl'; then 7121 LIBINTL_PREFIX="$basedir" 7122 fi 7123 additional_includedir="$basedir/include" 7124 ;; 7125 */$acl_libdirstem2 | */$acl_libdirstem2/) 7126 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 7127 if test "$name" = 'intl'; then 7128 LIBINTL_PREFIX="$basedir" 7129 fi 7130 additional_includedir="$basedir/include" 7131 ;; 7132 esac 7133 if test "X$additional_includedir" != "X"; then 7134 if test "X$additional_includedir" != "X/usr/include"; then 7135 haveit= 7136 if test "X$additional_includedir" = "X/usr/local/include"; then 7137 if test -n "$GCC"; then 7138 case $host_os in 7139 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 7140 esac 7141 fi 7142 fi 7143 if test -z "$haveit"; then 7144 for x in $CPPFLAGS $INCINTL; do 7145 7146 acl_save_prefix="$prefix" 7147 prefix="$acl_final_prefix" 7148 acl_save_exec_prefix="$exec_prefix" 7149 exec_prefix="$acl_final_exec_prefix" 7150 eval x=\"$x\" 7151 exec_prefix="$acl_save_exec_prefix" 7152 prefix="$acl_save_prefix" 7153 7154 if test "X$x" = "X-I$additional_includedir"; then 7155 haveit=yes 7156 break 7157 fi 7158 done 7159 if test -z "$haveit"; then 7160 if test -d "$additional_includedir"; then 7161 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 7162 fi 7163 fi 7164 fi 7165 fi 7166 fi 7167 if test -n "$found_la"; then 7168 save_libdir="$libdir" 7169 case "$found_la" in 7170 */* | *\\*) . "$found_la" ;; 7171 *) . "./$found_la" ;; 7172 esac 7173 libdir="$save_libdir" 7174 for dep in $dependency_libs; do 7175 case "$dep" in 7176 -L*) 7177 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 7178 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 7179 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 7180 haveit= 7181 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 7182 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 7183 if test -n "$GCC"; then 7184 case $host_os in 7185 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 7186 esac 7187 fi 7188 fi 7189 if test -z "$haveit"; then 7190 haveit= 7191 for x in $LDFLAGS $LIBINTL; do 7192 7193 acl_save_prefix="$prefix" 7194 prefix="$acl_final_prefix" 7195 acl_save_exec_prefix="$exec_prefix" 7196 exec_prefix="$acl_final_exec_prefix" 7197 eval x=\"$x\" 7198 exec_prefix="$acl_save_exec_prefix" 7199 prefix="$acl_save_prefix" 7200 7201 if test "X$x" = "X-L$additional_libdir"; then 7202 haveit=yes 7203 break 7204 fi 7205 done 7206 if test -z "$haveit"; then 7207 if test -d "$additional_libdir"; then 7208 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 7209 fi 7210 fi 7211 haveit= 7212 for x in $LDFLAGS $LTLIBINTL; do 7213 7214 acl_save_prefix="$prefix" 7215 prefix="$acl_final_prefix" 7216 acl_save_exec_prefix="$exec_prefix" 7217 exec_prefix="$acl_final_exec_prefix" 7218 eval x=\"$x\" 7219 exec_prefix="$acl_save_exec_prefix" 7220 prefix="$acl_save_prefix" 7221 7222 if test "X$x" = "X-L$additional_libdir"; then 7223 haveit=yes 7224 break 7225 fi 7226 done 7227 if test -z "$haveit"; then 7228 if test -d "$additional_libdir"; then 7229 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 7230 fi 7231 fi 7232 fi 7233 fi 7234 ;; 7235 -R*) 7236 dir=`echo "X$dep" | sed -e 's/^X-R//'` 7237 if test "$enable_rpath" != no; then 7238 haveit= 7239 for x in $rpathdirs; do 7240 if test "X$x" = "X$dir"; then 7241 haveit=yes 7242 break 7243 fi 7244 done 7245 if test -z "$haveit"; then 7246 rpathdirs="$rpathdirs $dir" 7247 fi 7248 haveit= 7249 for x in $ltrpathdirs; do 7250 if test "X$x" = "X$dir"; then 7251 haveit=yes 7252 break 7253 fi 7254 done 7255 if test -z "$haveit"; then 7256 ltrpathdirs="$ltrpathdirs $dir" 7257 fi 7258 fi 7259 ;; 7260 -l*) 7261 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 7262 ;; 7263 *.la) 7264 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 7265 ;; 7266 *) 7267 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 7268 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 7269 ;; 7270 esac 7271 done 7272 fi 7273 else 7274 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 7275 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 7276 fi 7277 fi 7278 fi 7279 done 7280 done 7281 if test "X$rpathdirs" != "X"; then 7282 if test -n "$acl_hardcode_libdir_separator"; then 7283 alldirs= 7284 for found_dir in $rpathdirs; do 7285 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 7286 done 7287 acl_save_libdir="$libdir" 7288 libdir="$alldirs" 7289 eval flag=\"$acl_hardcode_libdir_flag_spec\" 7290 libdir="$acl_save_libdir" 7291 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 7292 else 7293 for found_dir in $rpathdirs; do 7294 acl_save_libdir="$libdir" 7295 libdir="$found_dir" 7296 eval flag=\"$acl_hardcode_libdir_flag_spec\" 7297 libdir="$acl_save_libdir" 7298 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 7299 done 7300 fi 7301 fi 7302 if test "X$ltrpathdirs" != "X"; then 7303 for found_dir in $ltrpathdirs; do 7304 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 7305 done 7306 fi 7307 7308 7309 7310 7311 7312 7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 7314$as_echo_n "checking for GNU gettext in libintl... " >&6; } 7315if eval \${$gt_func_gnugettext_libintl+:} false; then : 7316 $as_echo_n "(cached) " >&6 7317else 7318 gt_save_CPPFLAGS="$CPPFLAGS" 7319 CPPFLAGS="$CPPFLAGS $INCINTL" 7320 gt_save_LIBS="$LIBS" 7321 LIBS="$LIBS $LIBINTL" 7322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7323/* end confdefs.h. */ 7324 7325#include <libintl.h> 7326$gt_revision_test_code 7327extern int _nl_msg_cat_cntr; 7328extern 7329#ifdef __cplusplus 7330"C" 7331#endif 7332const char *_nl_expand_alias (const char *); 7333 7334int 7335main () 7336{ 7337 7338bindtextdomain ("", ""); 7339return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 7340 7341 ; 7342 return 0; 7343} 7344_ACEOF 7345if ac_fn_cxx_try_link "$LINENO"; then : 7346 eval "$gt_func_gnugettext_libintl=yes" 7347else 7348 eval "$gt_func_gnugettext_libintl=no" 7349fi 7350rm -f core conftest.err conftest.$ac_objext \ 7351 conftest$ac_exeext conftest.$ac_ext 7352 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 7353 LIBS="$LIBS $LIBICONV" 7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7355/* end confdefs.h. */ 7356 7357#include <libintl.h> 7358$gt_revision_test_code 7359extern int _nl_msg_cat_cntr; 7360extern 7361#ifdef __cplusplus 7362"C" 7363#endif 7364const char *_nl_expand_alias (const char *); 7365 7366int 7367main () 7368{ 7369 7370bindtextdomain ("", ""); 7371return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 7372 7373 ; 7374 return 0; 7375} 7376_ACEOF 7377if ac_fn_cxx_try_link "$LINENO"; then : 7378 LIBINTL="$LIBINTL $LIBICONV" 7379 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 7380 eval "$gt_func_gnugettext_libintl=yes" 7381 7382fi 7383rm -f core conftest.err conftest.$ac_objext \ 7384 conftest$ac_exeext conftest.$ac_ext 7385 fi 7386 CPPFLAGS="$gt_save_CPPFLAGS" 7387 LIBS="$gt_save_LIBS" 7388fi 7389eval ac_res=\$$gt_func_gnugettext_libintl 7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7391$as_echo "$ac_res" >&6; } 7392 fi 7393 7394 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 7395 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 7396 && test "$PACKAGE" != gettext-runtime \ 7397 && test "$PACKAGE" != gettext-tools; }; then 7398 gt_use_preinstalled_gnugettext=yes 7399 else 7400 LIBINTL= 7401 LTLIBINTL= 7402 INCINTL= 7403 fi 7404 7405 7406 7407 if test -n "$INTL_MACOSX_LIBS"; then 7408 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 7409 || test "$nls_cv_use_gnu_gettext" = "yes"; then 7410 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 7411 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 7412 fi 7413 fi 7414 7415 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 7416 || test "$nls_cv_use_gnu_gettext" = "yes"; then 7417 7418$as_echo "#define ENABLE_NLS 1" >>confdefs.h 7419 7420 else 7421 USE_NLS=no 7422 fi 7423 fi 7424 7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 7426$as_echo_n "checking whether to use NLS... " >&6; } 7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 7428$as_echo "$USE_NLS" >&6; } 7429 if test "$USE_NLS" = "yes"; then 7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 7431$as_echo_n "checking where the gettext function comes from... " >&6; } 7432 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 7433 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 7434 gt_source="external libintl" 7435 else 7436 gt_source="libc" 7437 fi 7438 else 7439 gt_source="included intl directory" 7440 fi 7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 7442$as_echo "$gt_source" >&6; } 7443 fi 7444 7445 if test "$USE_NLS" = "yes"; then 7446 7447 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 7448 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 7450$as_echo_n "checking how to link with libintl... " >&6; } 7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 7452$as_echo "$LIBINTL" >&6; } 7453 7454 for element in $INCINTL; do 7455 haveit= 7456 for x in $CPPFLAGS; do 7457 7458 acl_save_prefix="$prefix" 7459 prefix="$acl_final_prefix" 7460 acl_save_exec_prefix="$exec_prefix" 7461 exec_prefix="$acl_final_exec_prefix" 7462 eval x=\"$x\" 7463 exec_prefix="$acl_save_exec_prefix" 7464 prefix="$acl_save_prefix" 7465 7466 if test "X$x" = "X$element"; then 7467 haveit=yes 7468 break 7469 fi 7470 done 7471 if test -z "$haveit"; then 7472 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 7473 fi 7474 done 7475 7476 fi 7477 7478 7479$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 7480 7481 7482$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 7483 7484 fi 7485 7486 POSUB=po 7487 fi 7488 7489 7490 7491 INTLLIBS="$LIBINTL" 7492 7493 7494 7495 7496 7497 7498 7499XGETTEXT_EXTRA_OPTIONS='--keyword=dar_gettext' 7500 7501 7502 7503 7504 7505 am_save_CPPFLAGS="$CPPFLAGS" 7506 7507 for element in $INCICONV; do 7508 haveit= 7509 for x in $CPPFLAGS; do 7510 7511 acl_save_prefix="$prefix" 7512 prefix="$acl_final_prefix" 7513 acl_save_exec_prefix="$exec_prefix" 7514 exec_prefix="$acl_final_exec_prefix" 7515 eval x=\"$x\" 7516 exec_prefix="$acl_save_exec_prefix" 7517 prefix="$acl_save_prefix" 7518 7519 if test "X$x" = "X$element"; then 7520 haveit=yes 7521 break 7522 fi 7523 done 7524 if test -z "$haveit"; then 7525 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 7526 fi 7527 done 7528 7529 7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 7531$as_echo_n "checking for iconv... " >&6; } 7532if ${am_cv_func_iconv+:} false; then : 7533 $as_echo_n "(cached) " >&6 7534else 7535 7536 am_cv_func_iconv="no, consider installing GNU libiconv" 7537 am_cv_lib_iconv=no 7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7539/* end confdefs.h. */ 7540 7541#include <stdlib.h> 7542#include <iconv.h> 7543 7544int 7545main () 7546{ 7547iconv_t cd = iconv_open("",""); 7548 iconv(cd,NULL,NULL,NULL,NULL); 7549 iconv_close(cd); 7550 ; 7551 return 0; 7552} 7553_ACEOF 7554if ac_fn_cxx_try_link "$LINENO"; then : 7555 am_cv_func_iconv=yes 7556fi 7557rm -f core conftest.err conftest.$ac_objext \ 7558 conftest$ac_exeext conftest.$ac_ext 7559 if test "$am_cv_func_iconv" != yes; then 7560 am_save_LIBS="$LIBS" 7561 LIBS="$LIBS $LIBICONV" 7562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7563/* end confdefs.h. */ 7564 7565#include <stdlib.h> 7566#include <iconv.h> 7567 7568int 7569main () 7570{ 7571iconv_t cd = iconv_open("",""); 7572 iconv(cd,NULL,NULL,NULL,NULL); 7573 iconv_close(cd); 7574 ; 7575 return 0; 7576} 7577_ACEOF 7578if ac_fn_cxx_try_link "$LINENO"; then : 7579 am_cv_lib_iconv=yes 7580 am_cv_func_iconv=yes 7581fi 7582rm -f core conftest.err conftest.$ac_objext \ 7583 conftest$ac_exeext conftest.$ac_ext 7584 LIBS="$am_save_LIBS" 7585 fi 7586 7587fi 7588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 7589$as_echo "$am_cv_func_iconv" >&6; } 7590 if test "$am_cv_func_iconv" = yes; then 7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 7592$as_echo_n "checking for working iconv... " >&6; } 7593if ${am_cv_func_iconv_works+:} false; then : 7594 $as_echo_n "(cached) " >&6 7595else 7596 7597 am_save_LIBS="$LIBS" 7598 if test $am_cv_lib_iconv = yes; then 7599 LIBS="$LIBS $LIBICONV" 7600 fi 7601 if test "$cross_compiling" = yes; then : 7602 7603 case "$host_os" in 7604 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 7605 *) am_cv_func_iconv_works="guessing yes" ;; 7606 esac 7607 7608else 7609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7610/* end confdefs.h. */ 7611 7612#include <iconv.h> 7613#include <string.h> 7614int main () 7615{ 7616 int result = 0; 7617 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 7618 returns. */ 7619 { 7620 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 7621 if (cd_utf8_to_88591 != (iconv_t)(-1)) 7622 { 7623 static const char input[] = "\342\202\254"; /* EURO SIGN */ 7624 char buf[10]; 7625 const char *inptr = input; 7626 size_t inbytesleft = strlen (input); 7627 char *outptr = buf; 7628 size_t outbytesleft = sizeof (buf); 7629 size_t res = iconv (cd_utf8_to_88591, 7630 &inptr, &inbytesleft, 7631 &outptr, &outbytesleft); 7632 if (res == 0) 7633 result |= 1; 7634 iconv_close (cd_utf8_to_88591); 7635 } 7636 } 7637 /* Test against Solaris 10 bug: Failures are not distinguishable from 7638 successful returns. */ 7639 { 7640 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 7641 if (cd_ascii_to_88591 != (iconv_t)(-1)) 7642 { 7643 static const char input[] = "\263"; 7644 char buf[10]; 7645 const char *inptr = input; 7646 size_t inbytesleft = strlen (input); 7647 char *outptr = buf; 7648 size_t outbytesleft = sizeof (buf); 7649 size_t res = iconv (cd_ascii_to_88591, 7650 &inptr, &inbytesleft, 7651 &outptr, &outbytesleft); 7652 if (res == 0) 7653 result |= 2; 7654 iconv_close (cd_ascii_to_88591); 7655 } 7656 } 7657 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 7658 { 7659 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 7660 if (cd_88591_to_utf8 != (iconv_t)(-1)) 7661 { 7662 static const char input[] = "\304"; 7663 static char buf[2] = { (char)0xDE, (char)0xAD }; 7664 const char *inptr = input; 7665 size_t inbytesleft = 1; 7666 char *outptr = buf; 7667 size_t outbytesleft = 1; 7668 size_t res = iconv (cd_88591_to_utf8, 7669 &inptr, &inbytesleft, 7670 &outptr, &outbytesleft); 7671 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 7672 result |= 4; 7673 iconv_close (cd_88591_to_utf8); 7674 } 7675 } 7676#if 0 /* This bug could be worked around by the caller. */ 7677 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 7678 { 7679 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 7680 if (cd_88591_to_utf8 != (iconv_t)(-1)) 7681 { 7682 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 7683 char buf[50]; 7684 const char *inptr = input; 7685 size_t inbytesleft = strlen (input); 7686 char *outptr = buf; 7687 size_t outbytesleft = sizeof (buf); 7688 size_t res = iconv (cd_88591_to_utf8, 7689 &inptr, &inbytesleft, 7690 &outptr, &outbytesleft); 7691 if ((int)res > 0) 7692 result |= 8; 7693 iconv_close (cd_88591_to_utf8); 7694 } 7695 } 7696#endif 7697 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 7698 provided. */ 7699 if (/* Try standardized names. */ 7700 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 7701 /* Try IRIX, OSF/1 names. */ 7702 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 7703 /* Try AIX names. */ 7704 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 7705 /* Try HP-UX names. */ 7706 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 7707 result |= 16; 7708 return result; 7709} 7710_ACEOF 7711if ac_fn_cxx_try_run "$LINENO"; then : 7712 am_cv_func_iconv_works=yes 7713else 7714 am_cv_func_iconv_works=no 7715fi 7716rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7717 conftest.$ac_objext conftest.beam conftest.$ac_ext 7718fi 7719 7720 LIBS="$am_save_LIBS" 7721 7722fi 7723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 7724$as_echo "$am_cv_func_iconv_works" >&6; } 7725 case "$am_cv_func_iconv_works" in 7726 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 7727 *) am_func_iconv=yes ;; 7728 esac 7729 else 7730 am_func_iconv=no am_cv_lib_iconv=no 7731 fi 7732 if test "$am_func_iconv" = yes; then 7733 7734$as_echo "#define HAVE_ICONV 1" >>confdefs.h 7735 7736 fi 7737 if test "$am_cv_lib_iconv" = yes; then 7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 7739$as_echo_n "checking how to link with libiconv... " >&6; } 7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 7741$as_echo "$LIBICONV" >&6; } 7742 else 7743 CPPFLAGS="$am_save_CPPFLAGS" 7744 LIBICONV= 7745 LTLIBICONV= 7746 fi 7747 7748 7749 7750 if test "$am_cv_func_iconv" = yes; then 7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 7752$as_echo_n "checking for iconv declaration... " >&6; } 7753 if ${am_cv_proto_iconv+:} false; then : 7754 $as_echo_n "(cached) " >&6 7755else 7756 7757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7758/* end confdefs.h. */ 7759 7760#include <stdlib.h> 7761#include <iconv.h> 7762extern 7763#ifdef __cplusplus 7764"C" 7765#endif 7766#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) 7767size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 7768#else 7769size_t iconv(); 7770#endif 7771 7772int 7773main () 7774{ 7775 7776 ; 7777 return 0; 7778} 7779_ACEOF 7780if ac_fn_cxx_try_compile "$LINENO"; then : 7781 am_cv_proto_iconv_arg1="" 7782else 7783 am_cv_proto_iconv_arg1="const" 7784fi 7785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7786 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 7787fi 7788 7789 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 7791 $am_cv_proto_iconv" >&5 7792$as_echo " 7793 $am_cv_proto_iconv" >&6; } 7794 7795cat >>confdefs.h <<_ACEOF 7796#define ICONV_CONST $am_cv_proto_iconv_arg1 7797_ACEOF 7798 7799 7800 fi 7801 7802 7803 7804# have a specific variable for pkgconfig, setting the default value: 7805pkgconfigdir=${libdir}/pkgconfig 7806 7807 7808# Check whether --with-pkgconfigdir was given. 7809if test "${with_pkgconfigdir+set}" = set; then : 7810 withval=$with_pkgconfigdir; 7811 if ! -z "$withval" ; then 7812 pkgconfigdir=$withval 7813 7814 fi 7815 7816fi 7817 7818 7819# Checks for programs. 7820ac_ext=cpp 7821ac_cpp='$CXXCPP $CPPFLAGS' 7822ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7823ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7824ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7825if test -z "$CXX"; then 7826 if test -n "$CCC"; then 7827 CXX=$CCC 7828 else 7829 if test -n "$ac_tool_prefix"; then 7830 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7831 do 7832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7833set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7835$as_echo_n "checking for $ac_word... " >&6; } 7836if ${ac_cv_prog_CXX+:} false; then : 7837 $as_echo_n "(cached) " >&6 7838else 7839 if test -n "$CXX"; then 7840 ac_cv_prog_CXX="$CXX" # Let the user override the test. 7841else 7842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7843for as_dir in $PATH 7844do 7845 IFS=$as_save_IFS 7846 test -z "$as_dir" && as_dir=. 7847 for ac_exec_ext in '' $ac_executable_extensions; do 7848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7849 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 7850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7851 break 2 7852 fi 7853done 7854 done 7855IFS=$as_save_IFS 7856 7857fi 7858fi 7859CXX=$ac_cv_prog_CXX 7860if test -n "$CXX"; then 7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 7862$as_echo "$CXX" >&6; } 7863else 7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7865$as_echo "no" >&6; } 7866fi 7867 7868 7869 test -n "$CXX" && break 7870 done 7871fi 7872if test -z "$CXX"; then 7873 ac_ct_CXX=$CXX 7874 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7875do 7876 # Extract the first word of "$ac_prog", so it can be a program name with args. 7877set dummy $ac_prog; ac_word=$2 7878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7879$as_echo_n "checking for $ac_word... " >&6; } 7880if ${ac_cv_prog_ac_ct_CXX+:} false; then : 7881 $as_echo_n "(cached) " >&6 7882else 7883 if test -n "$ac_ct_CXX"; then 7884 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 7885else 7886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7887for as_dir in $PATH 7888do 7889 IFS=$as_save_IFS 7890 test -z "$as_dir" && as_dir=. 7891 for ac_exec_ext in '' $ac_executable_extensions; do 7892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7893 ac_cv_prog_ac_ct_CXX="$ac_prog" 7894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7895 break 2 7896 fi 7897done 7898 done 7899IFS=$as_save_IFS 7900 7901fi 7902fi 7903ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 7904if test -n "$ac_ct_CXX"; then 7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 7906$as_echo "$ac_ct_CXX" >&6; } 7907else 7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7909$as_echo "no" >&6; } 7910fi 7911 7912 7913 test -n "$ac_ct_CXX" && break 7914done 7915 7916 if test "x$ac_ct_CXX" = x; then 7917 CXX="g++" 7918 else 7919 case $cross_compiling:$ac_tool_warned in 7920yes:) 7921{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7923ac_tool_warned=yes ;; 7924esac 7925 CXX=$ac_ct_CXX 7926 fi 7927fi 7928 7929 fi 7930fi 7931# Provide some information about the compiler. 7932$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 7933set X $ac_compile 7934ac_compiler=$2 7935for ac_option in --version -v -V -qversion; do 7936 { { ac_try="$ac_compiler $ac_option >&5" 7937case "(($ac_try" in 7938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7939 *) ac_try_echo=$ac_try;; 7940esac 7941eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7942$as_echo "$ac_try_echo"; } >&5 7943 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 7944 ac_status=$? 7945 if test -s conftest.err; then 7946 sed '10a\ 7947... rest of stderr output deleted ... 7948 10q' conftest.err >conftest.er1 7949 cat conftest.er1 >&5 7950 fi 7951 rm -f conftest.er1 conftest.err 7952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7953 test $ac_status = 0; } 7954done 7955 7956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 7957$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 7958if ${ac_cv_cxx_compiler_gnu+:} false; then : 7959 $as_echo_n "(cached) " >&6 7960else 7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7962/* end confdefs.h. */ 7963 7964int 7965main () 7966{ 7967#ifndef __GNUC__ 7968 choke me 7969#endif 7970 7971 ; 7972 return 0; 7973} 7974_ACEOF 7975if ac_fn_cxx_try_compile "$LINENO"; then : 7976 ac_compiler_gnu=yes 7977else 7978 ac_compiler_gnu=no 7979fi 7980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7981ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 7982 7983fi 7984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 7985$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 7986if test $ac_compiler_gnu = yes; then 7987 GXX=yes 7988else 7989 GXX= 7990fi 7991ac_test_CXXFLAGS=${CXXFLAGS+set} 7992ac_save_CXXFLAGS=$CXXFLAGS 7993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 7994$as_echo_n "checking whether $CXX accepts -g... " >&6; } 7995if ${ac_cv_prog_cxx_g+:} false; then : 7996 $as_echo_n "(cached) " >&6 7997else 7998 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 7999 ac_cxx_werror_flag=yes 8000 ac_cv_prog_cxx_g=no 8001 CXXFLAGS="-g" 8002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8003/* end confdefs.h. */ 8004 8005int 8006main () 8007{ 8008 8009 ; 8010 return 0; 8011} 8012_ACEOF 8013if ac_fn_cxx_try_compile "$LINENO"; then : 8014 ac_cv_prog_cxx_g=yes 8015else 8016 CXXFLAGS="" 8017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8018/* end confdefs.h. */ 8019 8020int 8021main () 8022{ 8023 8024 ; 8025 return 0; 8026} 8027_ACEOF 8028if ac_fn_cxx_try_compile "$LINENO"; then : 8029 8030else 8031 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 8032 CXXFLAGS="-g" 8033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8034/* end confdefs.h. */ 8035 8036int 8037main () 8038{ 8039 8040 ; 8041 return 0; 8042} 8043_ACEOF 8044if ac_fn_cxx_try_compile "$LINENO"; then : 8045 ac_cv_prog_cxx_g=yes 8046fi 8047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8048fi 8049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8050fi 8051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8052 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 8053fi 8054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 8055$as_echo "$ac_cv_prog_cxx_g" >&6; } 8056if test "$ac_test_CXXFLAGS" = set; then 8057 CXXFLAGS=$ac_save_CXXFLAGS 8058elif test $ac_cv_prog_cxx_g = yes; then 8059 if test "$GXX" = yes; then 8060 CXXFLAGS="-g -O2" 8061 else 8062 CXXFLAGS="-g" 8063 fi 8064else 8065 if test "$GXX" = yes; then 8066 CXXFLAGS="-O2" 8067 else 8068 CXXFLAGS= 8069 fi 8070fi 8071ac_ext=cpp 8072ac_cpp='$CXXCPP $CPPFLAGS' 8073ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8074ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8075ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8076 8077depcc="$CXX" am_compiler_list= 8078 8079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 8080$as_echo_n "checking dependency style of $depcc... " >&6; } 8081if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 8082 $as_echo_n "(cached) " >&6 8083else 8084 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 8085 # We make a subdir and do the tests there. Otherwise we can end up 8086 # making bogus files that we don't know about and never remove. For 8087 # instance it was reported that on HP-UX the gcc test will end up 8088 # making a dummy file named 'D' -- because '-MD' means "put the output 8089 # in D". 8090 rm -rf conftest.dir 8091 mkdir conftest.dir 8092 # Copy depcomp to subdir because otherwise we won't find it if we're 8093 # using a relative directory. 8094 cp "$am_depcomp" conftest.dir 8095 cd conftest.dir 8096 # We will build objects and dependencies in a subdirectory because 8097 # it helps to detect inapplicable dependency modes. For instance 8098 # both Tru64's cc and ICC support -MD to output dependencies as a 8099 # side effect of compilation, but ICC will put the dependencies in 8100 # the current directory while Tru64 will put them in the object 8101 # directory. 8102 mkdir sub 8103 8104 am_cv_CXX_dependencies_compiler_type=none 8105 if test "$am_compiler_list" = ""; then 8106 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 8107 fi 8108 am__universal=false 8109 case " $depcc " in #( 8110 *\ -arch\ *\ -arch\ *) am__universal=true ;; 8111 esac 8112 8113 for depmode in $am_compiler_list; do 8114 # Setup a source with many dependencies, because some compilers 8115 # like to wrap large dependency lists on column 80 (with \), and 8116 # we should not choose a depcomp mode which is confused by this. 8117 # 8118 # We need to recreate these files for each test, as the compiler may 8119 # overwrite some of them when testing with obscure command lines. 8120 # This happens at least with the AIX C compiler. 8121 : > sub/conftest.c 8122 for i in 1 2 3 4 5 6; do 8123 echo '#include "conftst'$i'.h"' >> sub/conftest.c 8124 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 8125 # Solaris 10 /bin/sh. 8126 echo '/* dummy */' > sub/conftst$i.h 8127 done 8128 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 8129 8130 # We check with '-c' and '-o' for the sake of the "dashmstdout" 8131 # mode. It turns out that the SunPro C++ compiler does not properly 8132 # handle '-M -o', and we need to detect this. Also, some Intel 8133 # versions had trouble with output in subdirs. 8134 am__obj=sub/conftest.${OBJEXT-o} 8135 am__minus_obj="-o $am__obj" 8136 case $depmode in 8137 gcc) 8138 # This depmode causes a compiler race in universal mode. 8139 test "$am__universal" = false || continue 8140 ;; 8141 nosideeffect) 8142 # After this tag, mechanisms are not by side-effect, so they'll 8143 # only be used when explicitly requested. 8144 if test "x$enable_dependency_tracking" = xyes; then 8145 continue 8146 else 8147 break 8148 fi 8149 ;; 8150 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 8151 # This compiler won't grok '-c -o', but also, the minuso test has 8152 # not run yet. These depmodes are late enough in the game, and 8153 # so weak that their functioning should not be impacted. 8154 am__obj=conftest.${OBJEXT-o} 8155 am__minus_obj= 8156 ;; 8157 none) break ;; 8158 esac 8159 if depmode=$depmode \ 8160 source=sub/conftest.c object=$am__obj \ 8161 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 8162 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 8163 >/dev/null 2>conftest.err && 8164 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 8165 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 8166 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 8167 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 8168 # icc doesn't choke on unknown options, it will just issue warnings 8169 # or remarks (even with -Werror). So we grep stderr for any message 8170 # that says an option was ignored or not supported. 8171 # When given -MP, icc 7.0 and 7.1 complain thusly: 8172 # icc: Command line warning: ignoring option '-M'; no argument required 8173 # The diagnosis changed in icc 8.0: 8174 # icc: Command line remark: option '-MP' not supported 8175 if (grep 'ignoring option' conftest.err || 8176 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 8177 am_cv_CXX_dependencies_compiler_type=$depmode 8178 break 8179 fi 8180 fi 8181 done 8182 8183 cd .. 8184 rm -rf conftest.dir 8185else 8186 am_cv_CXX_dependencies_compiler_type=none 8187fi 8188 8189fi 8190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 8191$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 8192CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 8193 8194 if 8195 test "x$enable_dependency_tracking" != xno \ 8196 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 8197 am__fastdepCXX_TRUE= 8198 am__fastdepCXX_FALSE='#' 8199else 8200 am__fastdepCXX_TRUE='#' 8201 am__fastdepCXX_FALSE= 8202fi 8203 8204 8205ac_ext=c 8206ac_cpp='$CPP $CPPFLAGS' 8207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8209ac_compiler_gnu=$ac_cv_c_compiler_gnu 8210if test -n "$ac_tool_prefix"; then 8211 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 8212set dummy ${ac_tool_prefix}gcc; ac_word=$2 8213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8214$as_echo_n "checking for $ac_word... " >&6; } 8215if ${ac_cv_prog_CC+:} false; then : 8216 $as_echo_n "(cached) " >&6 8217else 8218 if test -n "$CC"; then 8219 ac_cv_prog_CC="$CC" # Let the user override the test. 8220else 8221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8222for as_dir in $PATH 8223do 8224 IFS=$as_save_IFS 8225 test -z "$as_dir" && as_dir=. 8226 for ac_exec_ext in '' $ac_executable_extensions; do 8227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8228 ac_cv_prog_CC="${ac_tool_prefix}gcc" 8229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8230 break 2 8231 fi 8232done 8233 done 8234IFS=$as_save_IFS 8235 8236fi 8237fi 8238CC=$ac_cv_prog_CC 8239if test -n "$CC"; then 8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 8241$as_echo "$CC" >&6; } 8242else 8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8244$as_echo "no" >&6; } 8245fi 8246 8247 8248fi 8249if test -z "$ac_cv_prog_CC"; then 8250 ac_ct_CC=$CC 8251 # Extract the first word of "gcc", so it can be a program name with args. 8252set dummy gcc; ac_word=$2 8253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8254$as_echo_n "checking for $ac_word... " >&6; } 8255if ${ac_cv_prog_ac_ct_CC+:} false; then : 8256 $as_echo_n "(cached) " >&6 8257else 8258 if test -n "$ac_ct_CC"; then 8259 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 8260else 8261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8262for as_dir in $PATH 8263do 8264 IFS=$as_save_IFS 8265 test -z "$as_dir" && as_dir=. 8266 for ac_exec_ext in '' $ac_executable_extensions; do 8267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8268 ac_cv_prog_ac_ct_CC="gcc" 8269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8270 break 2 8271 fi 8272done 8273 done 8274IFS=$as_save_IFS 8275 8276fi 8277fi 8278ac_ct_CC=$ac_cv_prog_ac_ct_CC 8279if test -n "$ac_ct_CC"; then 8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 8281$as_echo "$ac_ct_CC" >&6; } 8282else 8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8284$as_echo "no" >&6; } 8285fi 8286 8287 if test "x$ac_ct_CC" = x; then 8288 CC="" 8289 else 8290 case $cross_compiling:$ac_tool_warned in 8291yes:) 8292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8294ac_tool_warned=yes ;; 8295esac 8296 CC=$ac_ct_CC 8297 fi 8298else 8299 CC="$ac_cv_prog_CC" 8300fi 8301 8302if test -z "$CC"; then 8303 if test -n "$ac_tool_prefix"; then 8304 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 8305set dummy ${ac_tool_prefix}cc; ac_word=$2 8306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8307$as_echo_n "checking for $ac_word... " >&6; } 8308if ${ac_cv_prog_CC+:} false; then : 8309 $as_echo_n "(cached) " >&6 8310else 8311 if test -n "$CC"; then 8312 ac_cv_prog_CC="$CC" # Let the user override the test. 8313else 8314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8315for as_dir in $PATH 8316do 8317 IFS=$as_save_IFS 8318 test -z "$as_dir" && as_dir=. 8319 for ac_exec_ext in '' $ac_executable_extensions; do 8320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8321 ac_cv_prog_CC="${ac_tool_prefix}cc" 8322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8323 break 2 8324 fi 8325done 8326 done 8327IFS=$as_save_IFS 8328 8329fi 8330fi 8331CC=$ac_cv_prog_CC 8332if test -n "$CC"; then 8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 8334$as_echo "$CC" >&6; } 8335else 8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8337$as_echo "no" >&6; } 8338fi 8339 8340 8341 fi 8342fi 8343if test -z "$CC"; then 8344 # Extract the first word of "cc", so it can be a program name with args. 8345set dummy cc; ac_word=$2 8346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8347$as_echo_n "checking for $ac_word... " >&6; } 8348if ${ac_cv_prog_CC+:} false; then : 8349 $as_echo_n "(cached) " >&6 8350else 8351 if test -n "$CC"; then 8352 ac_cv_prog_CC="$CC" # Let the user override the test. 8353else 8354 ac_prog_rejected=no 8355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8356for as_dir in $PATH 8357do 8358 IFS=$as_save_IFS 8359 test -z "$as_dir" && as_dir=. 8360 for ac_exec_ext in '' $ac_executable_extensions; do 8361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8362 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 8363 ac_prog_rejected=yes 8364 continue 8365 fi 8366 ac_cv_prog_CC="cc" 8367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8368 break 2 8369 fi 8370done 8371 done 8372IFS=$as_save_IFS 8373 8374if test $ac_prog_rejected = yes; then 8375 # We found a bogon in the path, so make sure we never use it. 8376 set dummy $ac_cv_prog_CC 8377 shift 8378 if test $# != 0; then 8379 # We chose a different compiler from the bogus one. 8380 # However, it has the same basename, so the bogon will be chosen 8381 # first if we set CC to just the basename; use the full file name. 8382 shift 8383 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 8384 fi 8385fi 8386fi 8387fi 8388CC=$ac_cv_prog_CC 8389if test -n "$CC"; then 8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 8391$as_echo "$CC" >&6; } 8392else 8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8394$as_echo "no" >&6; } 8395fi 8396 8397 8398fi 8399if test -z "$CC"; then 8400 if test -n "$ac_tool_prefix"; then 8401 for ac_prog in cl.exe 8402 do 8403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8404set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8406$as_echo_n "checking for $ac_word... " >&6; } 8407if ${ac_cv_prog_CC+:} false; then : 8408 $as_echo_n "(cached) " >&6 8409else 8410 if test -n "$CC"; then 8411 ac_cv_prog_CC="$CC" # Let the user override the test. 8412else 8413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8414for as_dir in $PATH 8415do 8416 IFS=$as_save_IFS 8417 test -z "$as_dir" && as_dir=. 8418 for ac_exec_ext in '' $ac_executable_extensions; do 8419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8420 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 8421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8422 break 2 8423 fi 8424done 8425 done 8426IFS=$as_save_IFS 8427 8428fi 8429fi 8430CC=$ac_cv_prog_CC 8431if test -n "$CC"; then 8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 8433$as_echo "$CC" >&6; } 8434else 8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8436$as_echo "no" >&6; } 8437fi 8438 8439 8440 test -n "$CC" && break 8441 done 8442fi 8443if test -z "$CC"; then 8444 ac_ct_CC=$CC 8445 for ac_prog in cl.exe 8446do 8447 # Extract the first word of "$ac_prog", so it can be a program name with args. 8448set dummy $ac_prog; ac_word=$2 8449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8450$as_echo_n "checking for $ac_word... " >&6; } 8451if ${ac_cv_prog_ac_ct_CC+:} false; then : 8452 $as_echo_n "(cached) " >&6 8453else 8454 if test -n "$ac_ct_CC"; then 8455 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 8456else 8457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8458for as_dir in $PATH 8459do 8460 IFS=$as_save_IFS 8461 test -z "$as_dir" && as_dir=. 8462 for ac_exec_ext in '' $ac_executable_extensions; do 8463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8464 ac_cv_prog_ac_ct_CC="$ac_prog" 8465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8466 break 2 8467 fi 8468done 8469 done 8470IFS=$as_save_IFS 8471 8472fi 8473fi 8474ac_ct_CC=$ac_cv_prog_ac_ct_CC 8475if test -n "$ac_ct_CC"; then 8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 8477$as_echo "$ac_ct_CC" >&6; } 8478else 8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8480$as_echo "no" >&6; } 8481fi 8482 8483 8484 test -n "$ac_ct_CC" && break 8485done 8486 8487 if test "x$ac_ct_CC" = x; then 8488 CC="" 8489 else 8490 case $cross_compiling:$ac_tool_warned in 8491yes:) 8492{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8494ac_tool_warned=yes ;; 8495esac 8496 CC=$ac_ct_CC 8497 fi 8498fi 8499 8500fi 8501 8502 8503test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8505as_fn_error $? "no acceptable C compiler found in \$PATH 8506See \`config.log' for more details" "$LINENO" 5; } 8507 8508# Provide some information about the compiler. 8509$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 8510set X $ac_compile 8511ac_compiler=$2 8512for ac_option in --version -v -V -qversion; do 8513 { { ac_try="$ac_compiler $ac_option >&5" 8514case "(($ac_try" in 8515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8516 *) ac_try_echo=$ac_try;; 8517esac 8518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 8519$as_echo "$ac_try_echo"; } >&5 8520 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 8521 ac_status=$? 8522 if test -s conftest.err; then 8523 sed '10a\ 8524... rest of stderr output deleted ... 8525 10q' conftest.err >conftest.er1 8526 cat conftest.er1 >&5 8527 fi 8528 rm -f conftest.er1 conftest.err 8529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8530 test $ac_status = 0; } 8531done 8532 8533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 8534$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 8535if ${ac_cv_c_compiler_gnu+:} false; then : 8536 $as_echo_n "(cached) " >&6 8537else 8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8539/* end confdefs.h. */ 8540 8541int 8542main () 8543{ 8544#ifndef __GNUC__ 8545 choke me 8546#endif 8547 8548 ; 8549 return 0; 8550} 8551_ACEOF 8552if ac_fn_c_try_compile "$LINENO"; then : 8553 ac_compiler_gnu=yes 8554else 8555 ac_compiler_gnu=no 8556fi 8557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8558ac_cv_c_compiler_gnu=$ac_compiler_gnu 8559 8560fi 8561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 8562$as_echo "$ac_cv_c_compiler_gnu" >&6; } 8563if test $ac_compiler_gnu = yes; then 8564 GCC=yes 8565else 8566 GCC= 8567fi 8568ac_test_CFLAGS=${CFLAGS+set} 8569ac_save_CFLAGS=$CFLAGS 8570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 8571$as_echo_n "checking whether $CC accepts -g... " >&6; } 8572if ${ac_cv_prog_cc_g+:} false; then : 8573 $as_echo_n "(cached) " >&6 8574else 8575 ac_save_c_werror_flag=$ac_c_werror_flag 8576 ac_c_werror_flag=yes 8577 ac_cv_prog_cc_g=no 8578 CFLAGS="-g" 8579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8580/* end confdefs.h. */ 8581 8582int 8583main () 8584{ 8585 8586 ; 8587 return 0; 8588} 8589_ACEOF 8590if ac_fn_c_try_compile "$LINENO"; then : 8591 ac_cv_prog_cc_g=yes 8592else 8593 CFLAGS="" 8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8595/* end confdefs.h. */ 8596 8597int 8598main () 8599{ 8600 8601 ; 8602 return 0; 8603} 8604_ACEOF 8605if ac_fn_c_try_compile "$LINENO"; then : 8606 8607else 8608 ac_c_werror_flag=$ac_save_c_werror_flag 8609 CFLAGS="-g" 8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8611/* end confdefs.h. */ 8612 8613int 8614main () 8615{ 8616 8617 ; 8618 return 0; 8619} 8620_ACEOF 8621if ac_fn_c_try_compile "$LINENO"; then : 8622 ac_cv_prog_cc_g=yes 8623fi 8624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8625fi 8626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8627fi 8628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8629 ac_c_werror_flag=$ac_save_c_werror_flag 8630fi 8631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 8632$as_echo "$ac_cv_prog_cc_g" >&6; } 8633if test "$ac_test_CFLAGS" = set; then 8634 CFLAGS=$ac_save_CFLAGS 8635elif test $ac_cv_prog_cc_g = yes; then 8636 if test "$GCC" = yes; then 8637 CFLAGS="-g -O2" 8638 else 8639 CFLAGS="-g" 8640 fi 8641else 8642 if test "$GCC" = yes; then 8643 CFLAGS="-O2" 8644 else 8645 CFLAGS= 8646 fi 8647fi 8648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 8649$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 8650if ${ac_cv_prog_cc_c89+:} false; then : 8651 $as_echo_n "(cached) " >&6 8652else 8653 ac_cv_prog_cc_c89=no 8654ac_save_CC=$CC 8655cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8656/* end confdefs.h. */ 8657#include <stdarg.h> 8658#include <stdio.h> 8659struct stat; 8660/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 8661struct buf { int x; }; 8662FILE * (*rcsopen) (struct buf *, struct stat *, int); 8663static char *e (p, i) 8664 char **p; 8665 int i; 8666{ 8667 return p[i]; 8668} 8669static char *f (char * (*g) (char **, int), char **p, ...) 8670{ 8671 char *s; 8672 va_list v; 8673 va_start (v,p); 8674 s = g (p, va_arg (v,int)); 8675 va_end (v); 8676 return s; 8677} 8678 8679/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 8680 function prototypes and stuff, but not '\xHH' hex character constants. 8681 These don't provoke an error unfortunately, instead are silently treated 8682 as 'x'. The following induces an error, until -std is added to get 8683 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 8684 array size at least. It's necessary to write '\x00'==0 to get something 8685 that's true only with -std. */ 8686int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 8687 8688/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 8689 inside strings and character constants. */ 8690#define FOO(x) 'x' 8691int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 8692 8693int test (int i, double x); 8694struct s1 {int (*f) (int a);}; 8695struct s2 {int (*f) (double a);}; 8696int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 8697int argc; 8698char **argv; 8699int 8700main () 8701{ 8702return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 8703 ; 8704 return 0; 8705} 8706_ACEOF 8707for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 8708 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 8709do 8710 CC="$ac_save_CC $ac_arg" 8711 if ac_fn_c_try_compile "$LINENO"; then : 8712 ac_cv_prog_cc_c89=$ac_arg 8713fi 8714rm -f core conftest.err conftest.$ac_objext 8715 test "x$ac_cv_prog_cc_c89" != "xno" && break 8716done 8717rm -f conftest.$ac_ext 8718CC=$ac_save_CC 8719 8720fi 8721# AC_CACHE_VAL 8722case "x$ac_cv_prog_cc_c89" in 8723 x) 8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 8725$as_echo "none needed" >&6; } ;; 8726 xno) 8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 8728$as_echo "unsupported" >&6; } ;; 8729 *) 8730 CC="$CC $ac_cv_prog_cc_c89" 8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 8732$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 8733esac 8734if test "x$ac_cv_prog_cc_c89" != xno; then : 8735 8736fi 8737 8738ac_ext=cpp 8739ac_cpp='$CXXCPP $CPPFLAGS' 8740ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8741ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8742ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8743 8744ac_ext=c 8745ac_cpp='$CPP $CPPFLAGS' 8746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8748ac_compiler_gnu=$ac_cv_c_compiler_gnu 8749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 8750$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 8751if ${am_cv_prog_cc_c_o+:} false; then : 8752 $as_echo_n "(cached) " >&6 8753else 8754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8755/* end confdefs.h. */ 8756 8757int 8758main () 8759{ 8760 8761 ; 8762 return 0; 8763} 8764_ACEOF 8765 # Make sure it works both with $CC and with simple cc. 8766 # Following AC_PROG_CC_C_O, we do the test twice because some 8767 # compilers refuse to overwrite an existing .o file with -o, 8768 # though they will create one. 8769 am_cv_prog_cc_c_o=yes 8770 for am_i in 1 2; do 8771 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 8772 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 8773 ac_status=$? 8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8775 (exit $ac_status); } \ 8776 && test -f conftest2.$ac_objext; then 8777 : OK 8778 else 8779 am_cv_prog_cc_c_o=no 8780 break 8781 fi 8782 done 8783 rm -f core conftest* 8784 unset am_i 8785fi 8786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 8787$as_echo "$am_cv_prog_cc_c_o" >&6; } 8788if test "$am_cv_prog_cc_c_o" != yes; then 8789 # Losing compiler, so override with the script. 8790 # FIXME: It is wrong to rewrite CC. 8791 # But if we don't then we get into trouble of one sort or another. 8792 # A longer-term fix would be to have automake use am__CC in this case, 8793 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 8794 CC="$am_aux_dir/compile $CC" 8795fi 8796ac_ext=cpp 8797ac_cpp='$CXXCPP $CPPFLAGS' 8798ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8799ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8800ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8801 8802 8803depcc="$CC" am_compiler_list= 8804 8805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 8806$as_echo_n "checking dependency style of $depcc... " >&6; } 8807if ${am_cv_CC_dependencies_compiler_type+:} false; then : 8808 $as_echo_n "(cached) " >&6 8809else 8810 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 8811 # We make a subdir and do the tests there. Otherwise we can end up 8812 # making bogus files that we don't know about and never remove. For 8813 # instance it was reported that on HP-UX the gcc test will end up 8814 # making a dummy file named 'D' -- because '-MD' means "put the output 8815 # in D". 8816 rm -rf conftest.dir 8817 mkdir conftest.dir 8818 # Copy depcomp to subdir because otherwise we won't find it if we're 8819 # using a relative directory. 8820 cp "$am_depcomp" conftest.dir 8821 cd conftest.dir 8822 # We will build objects and dependencies in a subdirectory because 8823 # it helps to detect inapplicable dependency modes. For instance 8824 # both Tru64's cc and ICC support -MD to output dependencies as a 8825 # side effect of compilation, but ICC will put the dependencies in 8826 # the current directory while Tru64 will put them in the object 8827 # directory. 8828 mkdir sub 8829 8830 am_cv_CC_dependencies_compiler_type=none 8831 if test "$am_compiler_list" = ""; then 8832 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 8833 fi 8834 am__universal=false 8835 case " $depcc " in #( 8836 *\ -arch\ *\ -arch\ *) am__universal=true ;; 8837 esac 8838 8839 for depmode in $am_compiler_list; do 8840 # Setup a source with many dependencies, because some compilers 8841 # like to wrap large dependency lists on column 80 (with \), and 8842 # we should not choose a depcomp mode which is confused by this. 8843 # 8844 # We need to recreate these files for each test, as the compiler may 8845 # overwrite some of them when testing with obscure command lines. 8846 # This happens at least with the AIX C compiler. 8847 : > sub/conftest.c 8848 for i in 1 2 3 4 5 6; do 8849 echo '#include "conftst'$i'.h"' >> sub/conftest.c 8850 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 8851 # Solaris 10 /bin/sh. 8852 echo '/* dummy */' > sub/conftst$i.h 8853 done 8854 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 8855 8856 # We check with '-c' and '-o' for the sake of the "dashmstdout" 8857 # mode. It turns out that the SunPro C++ compiler does not properly 8858 # handle '-M -o', and we need to detect this. Also, some Intel 8859 # versions had trouble with output in subdirs. 8860 am__obj=sub/conftest.${OBJEXT-o} 8861 am__minus_obj="-o $am__obj" 8862 case $depmode in 8863 gcc) 8864 # This depmode causes a compiler race in universal mode. 8865 test "$am__universal" = false || continue 8866 ;; 8867 nosideeffect) 8868 # After this tag, mechanisms are not by side-effect, so they'll 8869 # only be used when explicitly requested. 8870 if test "x$enable_dependency_tracking" = xyes; then 8871 continue 8872 else 8873 break 8874 fi 8875 ;; 8876 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 8877 # This compiler won't grok '-c -o', but also, the minuso test has 8878 # not run yet. These depmodes are late enough in the game, and 8879 # so weak that their functioning should not be impacted. 8880 am__obj=conftest.${OBJEXT-o} 8881 am__minus_obj= 8882 ;; 8883 none) break ;; 8884 esac 8885 if depmode=$depmode \ 8886 source=sub/conftest.c object=$am__obj \ 8887 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 8888 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 8889 >/dev/null 2>conftest.err && 8890 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 8891 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 8892 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 8893 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 8894 # icc doesn't choke on unknown options, it will just issue warnings 8895 # or remarks (even with -Werror). So we grep stderr for any message 8896 # that says an option was ignored or not supported. 8897 # When given -MP, icc 7.0 and 7.1 complain thusly: 8898 # icc: Command line warning: ignoring option '-M'; no argument required 8899 # The diagnosis changed in icc 8.0: 8900 # icc: Command line remark: option '-MP' not supported 8901 if (grep 'ignoring option' conftest.err || 8902 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 8903 am_cv_CC_dependencies_compiler_type=$depmode 8904 break 8905 fi 8906 fi 8907 done 8908 8909 cd .. 8910 rm -rf conftest.dir 8911else 8912 am_cv_CC_dependencies_compiler_type=none 8913fi 8914 8915fi 8916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 8917$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 8918CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 8919 8920 if 8921 test "x$enable_dependency_tracking" != xno \ 8922 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 8923 am__fastdepCC_TRUE= 8924 am__fastdepCC_FALSE='#' 8925else 8926 am__fastdepCC_TRUE='#' 8927 am__fastdepCC_FALSE= 8928fi 8929 8930 8931case `pwd` in 8932 *\ * | *\ *) 8933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 8934$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 8935esac 8936 8937 8938 8939macro_version='2.4.2' 8940macro_revision='1.3337' 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954ltmain="$ac_aux_dir/ltmain.sh" 8955 8956# Backslashify metacharacters that are still active within 8957# double-quoted strings. 8958sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8959 8960# Same as above, but do not quote variable references. 8961double_quote_subst='s/\(["`\\]\)/\\\1/g' 8962 8963# Sed substitution to delay expansion of an escaped shell variable in a 8964# double_quote_subst'ed string. 8965delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8966 8967# Sed substitution to delay expansion of an escaped single quote. 8968delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8969 8970# Sed substitution to avoid accidental globbing in evaled expressions 8971no_glob_subst='s/\*/\\\*/g' 8972 8973ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8974ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 8975ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 8976 8977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 8978$as_echo_n "checking how to print strings... " >&6; } 8979# Test print first, because it will be a builtin if present. 8980if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 8981 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 8982 ECHO='print -r --' 8983elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 8984 ECHO='printf %s\n' 8985else 8986 # Use this function as a fallback that always works. 8987 func_fallback_echo () 8988 { 8989 eval 'cat <<_LTECHO_EOF 8990$1 8991_LTECHO_EOF' 8992 } 8993 ECHO='func_fallback_echo' 8994fi 8995 8996# func_echo_all arg... 8997# Invoke $ECHO with all args, space-separated. 8998func_echo_all () 8999{ 9000 $ECHO "" 9001} 9002 9003case "$ECHO" in 9004 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 9005$as_echo "printf" >&6; } ;; 9006 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 9007$as_echo "print -r" >&6; } ;; 9008 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 9009$as_echo "cat" >&6; } ;; 9010esac 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 9026$as_echo_n "checking for a sed that does not truncate output... " >&6; } 9027if ${ac_cv_path_SED+:} false; then : 9028 $as_echo_n "(cached) " >&6 9029else 9030 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 9031 for ac_i in 1 2 3 4 5 6 7; do 9032 ac_script="$ac_script$as_nl$ac_script" 9033 done 9034 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 9035 { ac_script=; unset ac_script;} 9036 if test -z "$SED"; then 9037 ac_path_SED_found=false 9038 # Loop through the user's path and test for each of PROGNAME-LIST 9039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9040for as_dir in $PATH 9041do 9042 IFS=$as_save_IFS 9043 test -z "$as_dir" && as_dir=. 9044 for ac_prog in sed gsed; do 9045 for ac_exec_ext in '' $ac_executable_extensions; do 9046 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 9047 as_fn_executable_p "$ac_path_SED" || continue 9048# Check for GNU ac_path_SED and select it if it is found. 9049 # Check for GNU $ac_path_SED 9050case `"$ac_path_SED" --version 2>&1` in 9051*GNU*) 9052 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 9053*) 9054 ac_count=0 9055 $as_echo_n 0123456789 >"conftest.in" 9056 while : 9057 do 9058 cat "conftest.in" "conftest.in" >"conftest.tmp" 9059 mv "conftest.tmp" "conftest.in" 9060 cp "conftest.in" "conftest.nl" 9061 $as_echo '' >> "conftest.nl" 9062 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 9063 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 9064 as_fn_arith $ac_count + 1 && ac_count=$as_val 9065 if test $ac_count -gt ${ac_path_SED_max-0}; then 9066 # Best one so far, save it but keep looking for a better one 9067 ac_cv_path_SED="$ac_path_SED" 9068 ac_path_SED_max=$ac_count 9069 fi 9070 # 10*(2^10) chars as input seems more than enough 9071 test $ac_count -gt 10 && break 9072 done 9073 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 9074esac 9075 9076 $ac_path_SED_found && break 3 9077 done 9078 done 9079 done 9080IFS=$as_save_IFS 9081 if test -z "$ac_cv_path_SED"; then 9082 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 9083 fi 9084else 9085 ac_cv_path_SED=$SED 9086fi 9087 9088fi 9089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 9090$as_echo "$ac_cv_path_SED" >&6; } 9091 SED="$ac_cv_path_SED" 9092 rm -f conftest.sed 9093 9094test -z "$SED" && SED=sed 9095Xsed="$SED -e 1s/^X//" 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 9108$as_echo_n "checking for fgrep... " >&6; } 9109if ${ac_cv_path_FGREP+:} false; then : 9110 $as_echo_n "(cached) " >&6 9111else 9112 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 9113 then ac_cv_path_FGREP="$GREP -F" 9114 else 9115 if test -z "$FGREP"; then 9116 ac_path_FGREP_found=false 9117 # Loop through the user's path and test for each of PROGNAME-LIST 9118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9119for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 9120do 9121 IFS=$as_save_IFS 9122 test -z "$as_dir" && as_dir=. 9123 for ac_prog in fgrep; do 9124 for ac_exec_ext in '' $ac_executable_extensions; do 9125 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 9126 as_fn_executable_p "$ac_path_FGREP" || continue 9127# Check for GNU ac_path_FGREP and select it if it is found. 9128 # Check for GNU $ac_path_FGREP 9129case `"$ac_path_FGREP" --version 2>&1` in 9130*GNU*) 9131 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 9132*) 9133 ac_count=0 9134 $as_echo_n 0123456789 >"conftest.in" 9135 while : 9136 do 9137 cat "conftest.in" "conftest.in" >"conftest.tmp" 9138 mv "conftest.tmp" "conftest.in" 9139 cp "conftest.in" "conftest.nl" 9140 $as_echo 'FGREP' >> "conftest.nl" 9141 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 9142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 9143 as_fn_arith $ac_count + 1 && ac_count=$as_val 9144 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 9145 # Best one so far, save it but keep looking for a better one 9146 ac_cv_path_FGREP="$ac_path_FGREP" 9147 ac_path_FGREP_max=$ac_count 9148 fi 9149 # 10*(2^10) chars as input seems more than enough 9150 test $ac_count -gt 10 && break 9151 done 9152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 9153esac 9154 9155 $ac_path_FGREP_found && break 3 9156 done 9157 done 9158 done 9159IFS=$as_save_IFS 9160 if test -z "$ac_cv_path_FGREP"; then 9161 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 9162 fi 9163else 9164 ac_cv_path_FGREP=$FGREP 9165fi 9166 9167 fi 9168fi 9169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 9170$as_echo "$ac_cv_path_FGREP" >&6; } 9171 FGREP="$ac_cv_path_FGREP" 9172 9173 9174test -z "$GREP" && GREP=grep 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194# Check whether --with-gnu-ld was given. 9195if test "${with_gnu_ld+set}" = set; then : 9196 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 9197else 9198 with_gnu_ld=no 9199fi 9200 9201ac_prog=ld 9202if test "$GCC" = yes; then 9203 # Check if gcc -print-prog-name=ld gives a path. 9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 9205$as_echo_n "checking for ld used by $CC... " >&6; } 9206 case $host in 9207 *-*-mingw*) 9208 # gcc leaves a trailing carriage return which upsets mingw 9209 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9210 *) 9211 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9212 esac 9213 case $ac_prog in 9214 # Accept absolute paths. 9215 [\\/]* | ?:[\\/]*) 9216 re_direlt='/[^/][^/]*/\.\./' 9217 # Canonicalize the pathname of ld 9218 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 9219 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 9220 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 9221 done 9222 test -z "$LD" && LD="$ac_prog" 9223 ;; 9224 "") 9225 # If it fails, then pretend we aren't using GCC. 9226 ac_prog=ld 9227 ;; 9228 *) 9229 # If it is relative, then search for the first ld in PATH. 9230 with_gnu_ld=unknown 9231 ;; 9232 esac 9233elif test "$with_gnu_ld" = yes; then 9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 9235$as_echo_n "checking for GNU ld... " >&6; } 9236else 9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 9238$as_echo_n "checking for non-GNU ld... " >&6; } 9239fi 9240if ${lt_cv_path_LD+:} false; then : 9241 $as_echo_n "(cached) " >&6 9242else 9243 if test -z "$LD"; then 9244 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9245 for ac_dir in $PATH; do 9246 IFS="$lt_save_ifs" 9247 test -z "$ac_dir" && ac_dir=. 9248 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9249 lt_cv_path_LD="$ac_dir/$ac_prog" 9250 # Check to see if the program is GNU ld. I'd rather use --version, 9251 # but apparently some variants of GNU ld only accept -v. 9252 # Break only if it was the GNU/non-GNU ld that we prefer. 9253 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9254 *GNU* | *'with BFD'*) 9255 test "$with_gnu_ld" != no && break 9256 ;; 9257 *) 9258 test "$with_gnu_ld" != yes && break 9259 ;; 9260 esac 9261 fi 9262 done 9263 IFS="$lt_save_ifs" 9264else 9265 lt_cv_path_LD="$LD" # Let the user override the test with a path. 9266fi 9267fi 9268 9269LD="$lt_cv_path_LD" 9270if test -n "$LD"; then 9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 9272$as_echo "$LD" >&6; } 9273else 9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9275$as_echo "no" >&6; } 9276fi 9277test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 9278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 9279$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 9280if ${lt_cv_prog_gnu_ld+:} false; then : 9281 $as_echo_n "(cached) " >&6 9282else 9283 # I'd rather use --version here, but apparently some GNU lds only accept -v. 9284case `$LD -v 2>&1 </dev/null` in 9285*GNU* | *'with BFD'*) 9286 lt_cv_prog_gnu_ld=yes 9287 ;; 9288*) 9289 lt_cv_prog_gnu_ld=no 9290 ;; 9291esac 9292fi 9293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 9294$as_echo "$lt_cv_prog_gnu_ld" >&6; } 9295with_gnu_ld=$lt_cv_prog_gnu_ld 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 9306$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 9307if ${lt_cv_path_NM+:} false; then : 9308 $as_echo_n "(cached) " >&6 9309else 9310 if test -n "$NM"; then 9311 # Let the user override the test. 9312 lt_cv_path_NM="$NM" 9313else 9314 lt_nm_to_check="${ac_tool_prefix}nm" 9315 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 9316 lt_nm_to_check="$lt_nm_to_check nm" 9317 fi 9318 for lt_tmp_nm in $lt_nm_to_check; do 9319 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9320 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 9321 IFS="$lt_save_ifs" 9322 test -z "$ac_dir" && ac_dir=. 9323 tmp_nm="$ac_dir/$lt_tmp_nm" 9324 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 9325 # Check to see if the nm accepts a BSD-compat flag. 9326 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 9327 # nm: unknown option "B" ignored 9328 # Tru64's nm complains that /dev/null is an invalid object file 9329 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 9330 */dev/null* | *'Invalid file or object type'*) 9331 lt_cv_path_NM="$tmp_nm -B" 9332 break 9333 ;; 9334 *) 9335 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 9336 */dev/null*) 9337 lt_cv_path_NM="$tmp_nm -p" 9338 break 9339 ;; 9340 *) 9341 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 9342 continue # so that we can try to find one that supports BSD flags 9343 ;; 9344 esac 9345 ;; 9346 esac 9347 fi 9348 done 9349 IFS="$lt_save_ifs" 9350 done 9351 : ${lt_cv_path_NM=no} 9352fi 9353fi 9354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 9355$as_echo "$lt_cv_path_NM" >&6; } 9356if test "$lt_cv_path_NM" != "no"; then 9357 NM="$lt_cv_path_NM" 9358else 9359 # Didn't find any BSD compatible name lister, look for dumpbin. 9360 if test -n "$DUMPBIN"; then : 9361 # Let the user override the test. 9362 else 9363 if test -n "$ac_tool_prefix"; then 9364 for ac_prog in dumpbin "link -dump" 9365 do 9366 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9367set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9369$as_echo_n "checking for $ac_word... " >&6; } 9370if ${ac_cv_prog_DUMPBIN+:} false; then : 9371 $as_echo_n "(cached) " >&6 9372else 9373 if test -n "$DUMPBIN"; then 9374 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 9375else 9376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9377for as_dir in $PATH 9378do 9379 IFS=$as_save_IFS 9380 test -z "$as_dir" && as_dir=. 9381 for ac_exec_ext in '' $ac_executable_extensions; do 9382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9383 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 9384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9385 break 2 9386 fi 9387done 9388 done 9389IFS=$as_save_IFS 9390 9391fi 9392fi 9393DUMPBIN=$ac_cv_prog_DUMPBIN 9394if test -n "$DUMPBIN"; then 9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 9396$as_echo "$DUMPBIN" >&6; } 9397else 9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9399$as_echo "no" >&6; } 9400fi 9401 9402 9403 test -n "$DUMPBIN" && break 9404 done 9405fi 9406if test -z "$DUMPBIN"; then 9407 ac_ct_DUMPBIN=$DUMPBIN 9408 for ac_prog in dumpbin "link -dump" 9409do 9410 # Extract the first word of "$ac_prog", so it can be a program name with args. 9411set dummy $ac_prog; ac_word=$2 9412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9413$as_echo_n "checking for $ac_word... " >&6; } 9414if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 9415 $as_echo_n "(cached) " >&6 9416else 9417 if test -n "$ac_ct_DUMPBIN"; then 9418 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 9419else 9420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9421for as_dir in $PATH 9422do 9423 IFS=$as_save_IFS 9424 test -z "$as_dir" && as_dir=. 9425 for ac_exec_ext in '' $ac_executable_extensions; do 9426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9427 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 9428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9429 break 2 9430 fi 9431done 9432 done 9433IFS=$as_save_IFS 9434 9435fi 9436fi 9437ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 9438if test -n "$ac_ct_DUMPBIN"; then 9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 9440$as_echo "$ac_ct_DUMPBIN" >&6; } 9441else 9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9443$as_echo "no" >&6; } 9444fi 9445 9446 9447 test -n "$ac_ct_DUMPBIN" && break 9448done 9449 9450 if test "x$ac_ct_DUMPBIN" = x; then 9451 DUMPBIN=":" 9452 else 9453 case $cross_compiling:$ac_tool_warned in 9454yes:) 9455{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9456$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9457ac_tool_warned=yes ;; 9458esac 9459 DUMPBIN=$ac_ct_DUMPBIN 9460 fi 9461fi 9462 9463 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 9464 *COFF*) 9465 DUMPBIN="$DUMPBIN -symbols" 9466 ;; 9467 *) 9468 DUMPBIN=: 9469 ;; 9470 esac 9471 fi 9472 9473 if test "$DUMPBIN" != ":"; then 9474 NM="$DUMPBIN" 9475 fi 9476fi 9477test -z "$NM" && NM=nm 9478 9479 9480 9481 9482 9483 9484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 9485$as_echo_n "checking the name lister ($NM) interface... " >&6; } 9486if ${lt_cv_nm_interface+:} false; then : 9487 $as_echo_n "(cached) " >&6 9488else 9489 lt_cv_nm_interface="BSD nm" 9490 echo "int some_variable = 0;" > conftest.$ac_ext 9491 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 9492 (eval "$ac_compile" 2>conftest.err) 9493 cat conftest.err >&5 9494 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 9495 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 9496 cat conftest.err >&5 9497 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 9498 cat conftest.out >&5 9499 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 9500 lt_cv_nm_interface="MS dumpbin" 9501 fi 9502 rm -f conftest* 9503fi 9504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 9505$as_echo "$lt_cv_nm_interface" >&6; } 9506 9507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 9508$as_echo_n "checking whether ln -s works... " >&6; } 9509LN_S=$as_ln_s 9510if test "$LN_S" = "ln -s"; then 9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9512$as_echo "yes" >&6; } 9513else 9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 9515$as_echo "no, using $LN_S" >&6; } 9516fi 9517 9518# find the maximum length of command line arguments 9519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 9520$as_echo_n "checking the maximum length of command line arguments... " >&6; } 9521if ${lt_cv_sys_max_cmd_len+:} false; then : 9522 $as_echo_n "(cached) " >&6 9523else 9524 i=0 9525 teststring="ABCD" 9526 9527 case $build_os in 9528 msdosdjgpp*) 9529 # On DJGPP, this test can blow up pretty badly due to problems in libc 9530 # (any single argument exceeding 2000 bytes causes a buffer overrun 9531 # during glob expansion). Even if it were fixed, the result of this 9532 # check would be larger than it should be. 9533 lt_cv_sys_max_cmd_len=12288; # 12K is about right 9534 ;; 9535 9536 gnu*) 9537 # Under GNU Hurd, this test is not required because there is 9538 # no limit to the length of command line arguments. 9539 # Libtool will interpret -1 as no limit whatsoever 9540 lt_cv_sys_max_cmd_len=-1; 9541 ;; 9542 9543 cygwin* | mingw* | cegcc*) 9544 # On Win9x/ME, this test blows up -- it succeeds, but takes 9545 # about 5 minutes as the teststring grows exponentially. 9546 # Worse, since 9x/ME are not pre-emptively multitasking, 9547 # you end up with a "frozen" computer, even though with patience 9548 # the test eventually succeeds (with a max line length of 256k). 9549 # Instead, let's just punt: use the minimum linelength reported by 9550 # all of the supported platforms: 8192 (on NT/2K/XP). 9551 lt_cv_sys_max_cmd_len=8192; 9552 ;; 9553 9554 mint*) 9555 # On MiNT this can take a long time and run out of memory. 9556 lt_cv_sys_max_cmd_len=8192; 9557 ;; 9558 9559 amigaos*) 9560 # On AmigaOS with pdksh, this test takes hours, literally. 9561 # So we just punt and use a minimum line length of 8192. 9562 lt_cv_sys_max_cmd_len=8192; 9563 ;; 9564 9565 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 9566 # This has been around since 386BSD, at least. Likely further. 9567 if test -x /sbin/sysctl; then 9568 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 9569 elif test -x /usr/sbin/sysctl; then 9570 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 9571 else 9572 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 9573 fi 9574 # And add a safety zone 9575 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 9576 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 9577 ;; 9578 9579 interix*) 9580 # We know the value 262144 and hardcode it with a safety zone (like BSD) 9581 lt_cv_sys_max_cmd_len=196608 9582 ;; 9583 9584 os2*) 9585 # The test takes a long time on OS/2. 9586 lt_cv_sys_max_cmd_len=8192 9587 ;; 9588 9589 osf*) 9590 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 9591 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 9592 # nice to cause kernel panics so lets avoid the loop below. 9593 # First set a reasonable default. 9594 lt_cv_sys_max_cmd_len=16384 9595 # 9596 if test -x /sbin/sysconfig; then 9597 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 9598 *1*) lt_cv_sys_max_cmd_len=-1 ;; 9599 esac 9600 fi 9601 ;; 9602 sco3.2v5*) 9603 lt_cv_sys_max_cmd_len=102400 9604 ;; 9605 sysv5* | sco5v6* | sysv4.2uw2*) 9606 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 9607 if test -n "$kargmax"; then 9608 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 9609 else 9610 lt_cv_sys_max_cmd_len=32768 9611 fi 9612 ;; 9613 *) 9614 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 9615 if test -n "$lt_cv_sys_max_cmd_len" && \ 9616 test undefined != "$lt_cv_sys_max_cmd_len"; then 9617 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 9618 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 9619 else 9620 # Make teststring a little bigger before we do anything with it. 9621 # a 1K string should be a reasonable start. 9622 for i in 1 2 3 4 5 6 7 8 ; do 9623 teststring=$teststring$teststring 9624 done 9625 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 9626 # If test is not a shell built-in, we'll probably end up computing a 9627 # maximum length that is only half of the actual maximum length, but 9628 # we can't tell. 9629 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 9630 = "X$teststring$teststring"; } >/dev/null 2>&1 && 9631 test $i != 17 # 1/2 MB should be enough 9632 do 9633 i=`expr $i + 1` 9634 teststring=$teststring$teststring 9635 done 9636 # Only check the string length outside the loop. 9637 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 9638 teststring= 9639 # Add a significant safety factor because C++ compilers can tack on 9640 # massive amounts of additional arguments before passing them to the 9641 # linker. It appears as though 1/2 is a usable value. 9642 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 9643 fi 9644 ;; 9645 esac 9646 9647fi 9648 9649if test -n $lt_cv_sys_max_cmd_len ; then 9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 9651$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 9652else 9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 9654$as_echo "none" >&6; } 9655fi 9656max_cmd_len=$lt_cv_sys_max_cmd_len 9657 9658 9659 9660 9661 9662 9663: ${CP="cp -f"} 9664: ${MV="mv -f"} 9665: ${RM="rm -f"} 9666 9667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 9668$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 9669# Try some XSI features 9670xsi_shell=no 9671( _lt_dummy="a/b/c" 9672 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 9673 = c,a/b,b/c, \ 9674 && eval 'test $(( 1 + 1 )) -eq 2 \ 9675 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 9676 && xsi_shell=yes 9677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 9678$as_echo "$xsi_shell" >&6; } 9679 9680 9681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 9682$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 9683lt_shell_append=no 9684( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 9685 >/dev/null 2>&1 \ 9686 && lt_shell_append=yes 9687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 9688$as_echo "$lt_shell_append" >&6; } 9689 9690 9691if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 9692 lt_unset=unset 9693else 9694 lt_unset=false 9695fi 9696 9697 9698 9699 9700 9701# test EBCDIC or ASCII 9702case `echo X|tr X '\101'` in 9703 A) # ASCII based system 9704 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 9705 lt_SP2NL='tr \040 \012' 9706 lt_NL2SP='tr \015\012 \040\040' 9707 ;; 9708 *) # EBCDIC based system 9709 lt_SP2NL='tr \100 \n' 9710 lt_NL2SP='tr \r\n \100\100' 9711 ;; 9712esac 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 9723$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 9724if ${lt_cv_to_host_file_cmd+:} false; then : 9725 $as_echo_n "(cached) " >&6 9726else 9727 case $host in 9728 *-*-mingw* ) 9729 case $build in 9730 *-*-mingw* ) # actually msys 9731 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 9732 ;; 9733 *-*-cygwin* ) 9734 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 9735 ;; 9736 * ) # otherwise, assume *nix 9737 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 9738 ;; 9739 esac 9740 ;; 9741 *-*-cygwin* ) 9742 case $build in 9743 *-*-mingw* ) # actually msys 9744 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 9745 ;; 9746 *-*-cygwin* ) 9747 lt_cv_to_host_file_cmd=func_convert_file_noop 9748 ;; 9749 * ) # otherwise, assume *nix 9750 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 9751 ;; 9752 esac 9753 ;; 9754 * ) # unhandled hosts (and "normal" native builds) 9755 lt_cv_to_host_file_cmd=func_convert_file_noop 9756 ;; 9757esac 9758 9759fi 9760 9761to_host_file_cmd=$lt_cv_to_host_file_cmd 9762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 9763$as_echo "$lt_cv_to_host_file_cmd" >&6; } 9764 9765 9766 9767 9768 9769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 9770$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 9771if ${lt_cv_to_tool_file_cmd+:} false; then : 9772 $as_echo_n "(cached) " >&6 9773else 9774 #assume ordinary cross tools, or native build. 9775lt_cv_to_tool_file_cmd=func_convert_file_noop 9776case $host in 9777 *-*-mingw* ) 9778 case $build in 9779 *-*-mingw* ) # actually msys 9780 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 9781 ;; 9782 esac 9783 ;; 9784esac 9785 9786fi 9787 9788to_tool_file_cmd=$lt_cv_to_tool_file_cmd 9789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 9790$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 9791 9792 9793 9794 9795 9796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 9797$as_echo_n "checking for $LD option to reload object files... " >&6; } 9798if ${lt_cv_ld_reload_flag+:} false; then : 9799 $as_echo_n "(cached) " >&6 9800else 9801 lt_cv_ld_reload_flag='-r' 9802fi 9803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 9804$as_echo "$lt_cv_ld_reload_flag" >&6; } 9805reload_flag=$lt_cv_ld_reload_flag 9806case $reload_flag in 9807"" | " "*) ;; 9808*) reload_flag=" $reload_flag" ;; 9809esac 9810reload_cmds='$LD$reload_flag -o $output$reload_objs' 9811case $host_os in 9812 cygwin* | mingw* | pw32* | cegcc*) 9813 if test "$GCC" != yes; then 9814 reload_cmds=false 9815 fi 9816 ;; 9817 darwin*) 9818 if test "$GCC" = yes; then 9819 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 9820 else 9821 reload_cmds='$LD$reload_flag -o $output$reload_objs' 9822 fi 9823 ;; 9824esac 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834if test -n "$ac_tool_prefix"; then 9835 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 9836set dummy ${ac_tool_prefix}objdump; ac_word=$2 9837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9838$as_echo_n "checking for $ac_word... " >&6; } 9839if ${ac_cv_prog_OBJDUMP+:} false; then : 9840 $as_echo_n "(cached) " >&6 9841else 9842 if test -n "$OBJDUMP"; then 9843 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9844else 9845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9846for as_dir in $PATH 9847do 9848 IFS=$as_save_IFS 9849 test -z "$as_dir" && as_dir=. 9850 for ac_exec_ext in '' $ac_executable_extensions; do 9851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9852 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9854 break 2 9855 fi 9856done 9857 done 9858IFS=$as_save_IFS 9859 9860fi 9861fi 9862OBJDUMP=$ac_cv_prog_OBJDUMP 9863if test -n "$OBJDUMP"; then 9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9865$as_echo "$OBJDUMP" >&6; } 9866else 9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9868$as_echo "no" >&6; } 9869fi 9870 9871 9872fi 9873if test -z "$ac_cv_prog_OBJDUMP"; then 9874 ac_ct_OBJDUMP=$OBJDUMP 9875 # Extract the first word of "objdump", so it can be a program name with args. 9876set dummy objdump; ac_word=$2 9877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9878$as_echo_n "checking for $ac_word... " >&6; } 9879if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 9880 $as_echo_n "(cached) " >&6 9881else 9882 if test -n "$ac_ct_OBJDUMP"; then 9883 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9884else 9885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9886for as_dir in $PATH 9887do 9888 IFS=$as_save_IFS 9889 test -z "$as_dir" && as_dir=. 9890 for ac_exec_ext in '' $ac_executable_extensions; do 9891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9892 ac_cv_prog_ac_ct_OBJDUMP="objdump" 9893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9894 break 2 9895 fi 9896done 9897 done 9898IFS=$as_save_IFS 9899 9900fi 9901fi 9902ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9903if test -n "$ac_ct_OBJDUMP"; then 9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9905$as_echo "$ac_ct_OBJDUMP" >&6; } 9906else 9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9908$as_echo "no" >&6; } 9909fi 9910 9911 if test "x$ac_ct_OBJDUMP" = x; then 9912 OBJDUMP="false" 9913 else 9914 case $cross_compiling:$ac_tool_warned in 9915yes:) 9916{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9918ac_tool_warned=yes ;; 9919esac 9920 OBJDUMP=$ac_ct_OBJDUMP 9921 fi 9922else 9923 OBJDUMP="$ac_cv_prog_OBJDUMP" 9924fi 9925 9926test -z "$OBJDUMP" && OBJDUMP=objdump 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 9937$as_echo_n "checking how to recognize dependent libraries... " >&6; } 9938if ${lt_cv_deplibs_check_method+:} false; then : 9939 $as_echo_n "(cached) " >&6 9940else 9941 lt_cv_file_magic_cmd='$MAGIC_CMD' 9942lt_cv_file_magic_test_file= 9943lt_cv_deplibs_check_method='unknown' 9944# Need to set the preceding variable on all platforms that support 9945# interlibrary dependencies. 9946# 'none' -- dependencies not supported. 9947# `unknown' -- same as none, but documents that we really don't know. 9948# 'pass_all' -- all dependencies passed with no checks. 9949# 'test_compile' -- check by making test program. 9950# 'file_magic [[regex]]' -- check by looking for files in library path 9951# which responds to the $file_magic_cmd with a given extended regex. 9952# If you have `file' or equivalent on your system and you're not sure 9953# whether `pass_all' will *always* work, you probably want this one. 9954 9955case $host_os in 9956aix[4-9]*) 9957 lt_cv_deplibs_check_method=pass_all 9958 ;; 9959 9960beos*) 9961 lt_cv_deplibs_check_method=pass_all 9962 ;; 9963 9964bsdi[45]*) 9965 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 9966 lt_cv_file_magic_cmd='/usr/bin/file -L' 9967 lt_cv_file_magic_test_file=/shlib/libc.so 9968 ;; 9969 9970cygwin*) 9971 # func_win32_libid is a shell function defined in ltmain.sh 9972 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 9973 lt_cv_file_magic_cmd='func_win32_libid' 9974 ;; 9975 9976mingw* | pw32*) 9977 # Base MSYS/MinGW do not provide the 'file' command needed by 9978 # func_win32_libid shell function, so use a weaker test based on 'objdump', 9979 # unless we find 'file', for example because we are cross-compiling. 9980 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 9981 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 9982 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 9983 lt_cv_file_magic_cmd='func_win32_libid' 9984 else 9985 # Keep this pattern in sync with the one in func_win32_libid. 9986 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 9987 lt_cv_file_magic_cmd='$OBJDUMP -f' 9988 fi 9989 ;; 9990 9991cegcc*) 9992 # use the weaker test based on 'objdump'. See mingw*. 9993 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 9994 lt_cv_file_magic_cmd='$OBJDUMP -f' 9995 ;; 9996 9997darwin* | rhapsody*) 9998 lt_cv_deplibs_check_method=pass_all 9999 ;; 10000 10001freebsd* | dragonfly*) 10002 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 10003 case $host_cpu in 10004 i*86 ) 10005 # Not sure whether the presence of OpenBSD here was a mistake. 10006 # Let's accept both of them until this is cleared up. 10007 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 10008 lt_cv_file_magic_cmd=/usr/bin/file 10009 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 10010 ;; 10011 esac 10012 else 10013 lt_cv_deplibs_check_method=pass_all 10014 fi 10015 ;; 10016 10017haiku*) 10018 lt_cv_deplibs_check_method=pass_all 10019 ;; 10020 10021hpux10.20* | hpux11*) 10022 lt_cv_file_magic_cmd=/usr/bin/file 10023 case $host_cpu in 10024 ia64*) 10025 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 10026 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 10027 ;; 10028 hppa*64*) 10029 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]' 10030 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 10031 ;; 10032 *) 10033 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 10034 lt_cv_file_magic_test_file=/usr/lib/libc.sl 10035 ;; 10036 esac 10037 ;; 10038 10039interix[3-9]*) 10040 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 10041 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 10042 ;; 10043 10044irix5* | irix6* | nonstopux*) 10045 case $LD in 10046 *-32|*"-32 ") libmagic=32-bit;; 10047 *-n32|*"-n32 ") libmagic=N32;; 10048 *-64|*"-64 ") libmagic=64-bit;; 10049 *) libmagic=never-match;; 10050 esac 10051 lt_cv_deplibs_check_method=pass_all 10052 ;; 10053 10054# This must be glibc/ELF. 10055linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10056 lt_cv_deplibs_check_method=pass_all 10057 ;; 10058 10059netbsd* | netbsdelf*-gnu) 10060 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 10061 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 10062 else 10063 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 10064 fi 10065 ;; 10066 10067newos6*) 10068 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 10069 lt_cv_file_magic_cmd=/usr/bin/file 10070 lt_cv_file_magic_test_file=/usr/lib/libnls.so 10071 ;; 10072 10073*nto* | *qnx*) 10074 lt_cv_deplibs_check_method=pass_all 10075 ;; 10076 10077openbsd*) 10078 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10079 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 10080 else 10081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 10082 fi 10083 ;; 10084 10085osf3* | osf4* | osf5*) 10086 lt_cv_deplibs_check_method=pass_all 10087 ;; 10088 10089rdos*) 10090 lt_cv_deplibs_check_method=pass_all 10091 ;; 10092 10093solaris*) 10094 lt_cv_deplibs_check_method=pass_all 10095 ;; 10096 10097sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10098 lt_cv_deplibs_check_method=pass_all 10099 ;; 10100 10101sysv4 | sysv4.3*) 10102 case $host_vendor in 10103 motorola) 10104 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]' 10105 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 10106 ;; 10107 ncr) 10108 lt_cv_deplibs_check_method=pass_all 10109 ;; 10110 sequent) 10111 lt_cv_file_magic_cmd='/bin/file' 10112 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 10113 ;; 10114 sni) 10115 lt_cv_file_magic_cmd='/bin/file' 10116 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 10117 lt_cv_file_magic_test_file=/lib/libc.so 10118 ;; 10119 siemens) 10120 lt_cv_deplibs_check_method=pass_all 10121 ;; 10122 pc) 10123 lt_cv_deplibs_check_method=pass_all 10124 ;; 10125 esac 10126 ;; 10127 10128tpf*) 10129 lt_cv_deplibs_check_method=pass_all 10130 ;; 10131esac 10132 10133fi 10134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 10135$as_echo "$lt_cv_deplibs_check_method" >&6; } 10136 10137file_magic_glob= 10138want_nocaseglob=no 10139if test "$build" = "$host"; then 10140 case $host_os in 10141 mingw* | pw32*) 10142 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 10143 want_nocaseglob=yes 10144 else 10145 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 10146 fi 10147 ;; 10148 esac 10149fi 10150 10151file_magic_cmd=$lt_cv_file_magic_cmd 10152deplibs_check_method=$lt_cv_deplibs_check_method 10153test -z "$deplibs_check_method" && deplibs_check_method=unknown 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176if test -n "$ac_tool_prefix"; then 10177 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 10178set dummy ${ac_tool_prefix}dlltool; ac_word=$2 10179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10180$as_echo_n "checking for $ac_word... " >&6; } 10181if ${ac_cv_prog_DLLTOOL+:} false; then : 10182 $as_echo_n "(cached) " >&6 10183else 10184 if test -n "$DLLTOOL"; then 10185 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 10186else 10187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10188for as_dir in $PATH 10189do 10190 IFS=$as_save_IFS 10191 test -z "$as_dir" && as_dir=. 10192 for ac_exec_ext in '' $ac_executable_extensions; do 10193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10194 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 10195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10196 break 2 10197 fi 10198done 10199 done 10200IFS=$as_save_IFS 10201 10202fi 10203fi 10204DLLTOOL=$ac_cv_prog_DLLTOOL 10205if test -n "$DLLTOOL"; then 10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 10207$as_echo "$DLLTOOL" >&6; } 10208else 10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10210$as_echo "no" >&6; } 10211fi 10212 10213 10214fi 10215if test -z "$ac_cv_prog_DLLTOOL"; then 10216 ac_ct_DLLTOOL=$DLLTOOL 10217 # Extract the first word of "dlltool", so it can be a program name with args. 10218set dummy dlltool; ac_word=$2 10219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10220$as_echo_n "checking for $ac_word... " >&6; } 10221if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 10222 $as_echo_n "(cached) " >&6 10223else 10224 if test -n "$ac_ct_DLLTOOL"; then 10225 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 10226else 10227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10228for as_dir in $PATH 10229do 10230 IFS=$as_save_IFS 10231 test -z "$as_dir" && as_dir=. 10232 for ac_exec_ext in '' $ac_executable_extensions; do 10233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10234 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 10235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10236 break 2 10237 fi 10238done 10239 done 10240IFS=$as_save_IFS 10241 10242fi 10243fi 10244ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 10245if test -n "$ac_ct_DLLTOOL"; then 10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 10247$as_echo "$ac_ct_DLLTOOL" >&6; } 10248else 10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10250$as_echo "no" >&6; } 10251fi 10252 10253 if test "x$ac_ct_DLLTOOL" = x; then 10254 DLLTOOL="false" 10255 else 10256 case $cross_compiling:$ac_tool_warned in 10257yes:) 10258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10260ac_tool_warned=yes ;; 10261esac 10262 DLLTOOL=$ac_ct_DLLTOOL 10263 fi 10264else 10265 DLLTOOL="$ac_cv_prog_DLLTOOL" 10266fi 10267 10268test -z "$DLLTOOL" && DLLTOOL=dlltool 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 10280$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 10281if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 10282 $as_echo_n "(cached) " >&6 10283else 10284 lt_cv_sharedlib_from_linklib_cmd='unknown' 10285 10286case $host_os in 10287cygwin* | mingw* | pw32* | cegcc*) 10288 # two different shell functions defined in ltmain.sh 10289 # decide which to use based on capabilities of $DLLTOOL 10290 case `$DLLTOOL --help 2>&1` in 10291 *--identify-strict*) 10292 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 10293 ;; 10294 *) 10295 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 10296 ;; 10297 esac 10298 ;; 10299*) 10300 # fallback: assume linklib IS sharedlib 10301 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 10302 ;; 10303esac 10304 10305fi 10306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 10307$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 10308sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 10309test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 10310 10311 10312 10313 10314 10315 10316 10317if test -n "$ac_tool_prefix"; then 10318 for ac_prog in ar 10319 do 10320 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 10321set dummy $ac_tool_prefix$ac_prog; ac_word=$2 10322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10323$as_echo_n "checking for $ac_word... " >&6; } 10324if ${ac_cv_prog_AR+:} false; then : 10325 $as_echo_n "(cached) " >&6 10326else 10327 if test -n "$AR"; then 10328 ac_cv_prog_AR="$AR" # Let the user override the test. 10329else 10330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10331for as_dir in $PATH 10332do 10333 IFS=$as_save_IFS 10334 test -z "$as_dir" && as_dir=. 10335 for ac_exec_ext in '' $ac_executable_extensions; do 10336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10337 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 10338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10339 break 2 10340 fi 10341done 10342 done 10343IFS=$as_save_IFS 10344 10345fi 10346fi 10347AR=$ac_cv_prog_AR 10348if test -n "$AR"; then 10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 10350$as_echo "$AR" >&6; } 10351else 10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10353$as_echo "no" >&6; } 10354fi 10355 10356 10357 test -n "$AR" && break 10358 done 10359fi 10360if test -z "$AR"; then 10361 ac_ct_AR=$AR 10362 for ac_prog in ar 10363do 10364 # Extract the first word of "$ac_prog", so it can be a program name with args. 10365set dummy $ac_prog; ac_word=$2 10366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10367$as_echo_n "checking for $ac_word... " >&6; } 10368if ${ac_cv_prog_ac_ct_AR+:} false; then : 10369 $as_echo_n "(cached) " >&6 10370else 10371 if test -n "$ac_ct_AR"; then 10372 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 10373else 10374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10375for as_dir in $PATH 10376do 10377 IFS=$as_save_IFS 10378 test -z "$as_dir" && as_dir=. 10379 for ac_exec_ext in '' $ac_executable_extensions; do 10380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10381 ac_cv_prog_ac_ct_AR="$ac_prog" 10382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10383 break 2 10384 fi 10385done 10386 done 10387IFS=$as_save_IFS 10388 10389fi 10390fi 10391ac_ct_AR=$ac_cv_prog_ac_ct_AR 10392if test -n "$ac_ct_AR"; then 10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 10394$as_echo "$ac_ct_AR" >&6; } 10395else 10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10397$as_echo "no" >&6; } 10398fi 10399 10400 10401 test -n "$ac_ct_AR" && break 10402done 10403 10404 if test "x$ac_ct_AR" = x; then 10405 AR="false" 10406 else 10407 case $cross_compiling:$ac_tool_warned in 10408yes:) 10409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10411ac_tool_warned=yes ;; 10412esac 10413 AR=$ac_ct_AR 10414 fi 10415fi 10416 10417: ${AR=ar} 10418: ${AR_FLAGS=cru} 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 10431$as_echo_n "checking for archiver @FILE support... " >&6; } 10432if ${lt_cv_ar_at_file+:} false; then : 10433 $as_echo_n "(cached) " >&6 10434else 10435 lt_cv_ar_at_file=no 10436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10437/* end confdefs.h. */ 10438 10439int 10440main () 10441{ 10442 10443 ; 10444 return 0; 10445} 10446_ACEOF 10447if ac_fn_cxx_try_compile "$LINENO"; then : 10448 echo conftest.$ac_objext > conftest.lst 10449 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 10450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 10451 (eval $lt_ar_try) 2>&5 10452 ac_status=$? 10453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10454 test $ac_status = 0; } 10455 if test "$ac_status" -eq 0; then 10456 # Ensure the archiver fails upon bogus file names. 10457 rm -f conftest.$ac_objext libconftest.a 10458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 10459 (eval $lt_ar_try) 2>&5 10460 ac_status=$? 10461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10462 test $ac_status = 0; } 10463 if test "$ac_status" -ne 0; then 10464 lt_cv_ar_at_file=@ 10465 fi 10466 fi 10467 rm -f conftest.* libconftest.a 10468 10469fi 10470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10471 10472fi 10473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 10474$as_echo "$lt_cv_ar_at_file" >&6; } 10475 10476if test "x$lt_cv_ar_at_file" = xno; then 10477 archiver_list_spec= 10478else 10479 archiver_list_spec=$lt_cv_ar_at_file 10480fi 10481 10482 10483 10484 10485 10486 10487 10488if test -n "$ac_tool_prefix"; then 10489 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 10490set dummy ${ac_tool_prefix}strip; ac_word=$2 10491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10492$as_echo_n "checking for $ac_word... " >&6; } 10493if ${ac_cv_prog_STRIP+:} false; then : 10494 $as_echo_n "(cached) " >&6 10495else 10496 if test -n "$STRIP"; then 10497 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 10498else 10499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10500for as_dir in $PATH 10501do 10502 IFS=$as_save_IFS 10503 test -z "$as_dir" && as_dir=. 10504 for ac_exec_ext in '' $ac_executable_extensions; do 10505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10506 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 10507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10508 break 2 10509 fi 10510done 10511 done 10512IFS=$as_save_IFS 10513 10514fi 10515fi 10516STRIP=$ac_cv_prog_STRIP 10517if test -n "$STRIP"; then 10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 10519$as_echo "$STRIP" >&6; } 10520else 10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10522$as_echo "no" >&6; } 10523fi 10524 10525 10526fi 10527if test -z "$ac_cv_prog_STRIP"; then 10528 ac_ct_STRIP=$STRIP 10529 # Extract the first word of "strip", so it can be a program name with args. 10530set dummy strip; ac_word=$2 10531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10532$as_echo_n "checking for $ac_word... " >&6; } 10533if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 10534 $as_echo_n "(cached) " >&6 10535else 10536 if test -n "$ac_ct_STRIP"; then 10537 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 10538else 10539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10540for as_dir in $PATH 10541do 10542 IFS=$as_save_IFS 10543 test -z "$as_dir" && as_dir=. 10544 for ac_exec_ext in '' $ac_executable_extensions; do 10545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10546 ac_cv_prog_ac_ct_STRIP="strip" 10547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10548 break 2 10549 fi 10550done 10551 done 10552IFS=$as_save_IFS 10553 10554fi 10555fi 10556ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 10557if test -n "$ac_ct_STRIP"; then 10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 10559$as_echo "$ac_ct_STRIP" >&6; } 10560else 10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10562$as_echo "no" >&6; } 10563fi 10564 10565 if test "x$ac_ct_STRIP" = x; then 10566 STRIP=":" 10567 else 10568 case $cross_compiling:$ac_tool_warned in 10569yes:) 10570{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10572ac_tool_warned=yes ;; 10573esac 10574 STRIP=$ac_ct_STRIP 10575 fi 10576else 10577 STRIP="$ac_cv_prog_STRIP" 10578fi 10579 10580test -z "$STRIP" && STRIP=: 10581 10582 10583 10584 10585 10586 10587if test -n "$ac_tool_prefix"; then 10588 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 10589set dummy ${ac_tool_prefix}ranlib; ac_word=$2 10590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10591$as_echo_n "checking for $ac_word... " >&6; } 10592if ${ac_cv_prog_RANLIB+:} false; then : 10593 $as_echo_n "(cached) " >&6 10594else 10595 if test -n "$RANLIB"; then 10596 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 10597else 10598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10599for as_dir in $PATH 10600do 10601 IFS=$as_save_IFS 10602 test -z "$as_dir" && as_dir=. 10603 for ac_exec_ext in '' $ac_executable_extensions; do 10604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10605 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 10606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10607 break 2 10608 fi 10609done 10610 done 10611IFS=$as_save_IFS 10612 10613fi 10614fi 10615RANLIB=$ac_cv_prog_RANLIB 10616if test -n "$RANLIB"; then 10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 10618$as_echo "$RANLIB" >&6; } 10619else 10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10621$as_echo "no" >&6; } 10622fi 10623 10624 10625fi 10626if test -z "$ac_cv_prog_RANLIB"; then 10627 ac_ct_RANLIB=$RANLIB 10628 # Extract the first word of "ranlib", so it can be a program name with args. 10629set dummy ranlib; ac_word=$2 10630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10631$as_echo_n "checking for $ac_word... " >&6; } 10632if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 10633 $as_echo_n "(cached) " >&6 10634else 10635 if test -n "$ac_ct_RANLIB"; then 10636 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 10637else 10638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10639for as_dir in $PATH 10640do 10641 IFS=$as_save_IFS 10642 test -z "$as_dir" && as_dir=. 10643 for ac_exec_ext in '' $ac_executable_extensions; do 10644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10645 ac_cv_prog_ac_ct_RANLIB="ranlib" 10646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10647 break 2 10648 fi 10649done 10650 done 10651IFS=$as_save_IFS 10652 10653fi 10654fi 10655ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 10656if test -n "$ac_ct_RANLIB"; then 10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 10658$as_echo "$ac_ct_RANLIB" >&6; } 10659else 10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10661$as_echo "no" >&6; } 10662fi 10663 10664 if test "x$ac_ct_RANLIB" = x; then 10665 RANLIB=":" 10666 else 10667 case $cross_compiling:$ac_tool_warned in 10668yes:) 10669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10671ac_tool_warned=yes ;; 10672esac 10673 RANLIB=$ac_ct_RANLIB 10674 fi 10675else 10676 RANLIB="$ac_cv_prog_RANLIB" 10677fi 10678 10679test -z "$RANLIB" && RANLIB=: 10680 10681 10682 10683 10684 10685 10686# Determine commands to create old-style static archives. 10687old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 10688old_postinstall_cmds='chmod 644 $oldlib' 10689old_postuninstall_cmds= 10690 10691if test -n "$RANLIB"; then 10692 case $host_os in 10693 openbsd*) 10694 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 10695 ;; 10696 *) 10697 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 10698 ;; 10699 esac 10700 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 10701fi 10702 10703case $host_os in 10704 darwin*) 10705 lock_old_archive_extraction=yes ;; 10706 *) 10707 lock_old_archive_extraction=no ;; 10708esac 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748# If no C compiler was specified, use CC. 10749LTCC=${LTCC-"$CC"} 10750 10751# If no C compiler flags were specified, use CFLAGS. 10752LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10753 10754# Allow CC to be a program name with arguments. 10755compiler=$CC 10756 10757 10758# Check for command to grab the raw symbol name followed by C symbol from nm. 10759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 10760$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 10761if ${lt_cv_sys_global_symbol_pipe+:} false; then : 10762 $as_echo_n "(cached) " >&6 10763else 10764 10765# These are sane defaults that work on at least a few old systems. 10766# [They come from Ultrix. What could be older than Ultrix?!! ;)] 10767 10768# Character class describing NM global symbol codes. 10769symcode='[BCDEGRST]' 10770 10771# Regexp to match symbols that can be accessed directly from C. 10772sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 10773 10774# Define system-specific variables. 10775case $host_os in 10776aix*) 10777 symcode='[BCDT]' 10778 ;; 10779cygwin* | mingw* | pw32* | cegcc*) 10780 symcode='[ABCDGISTW]' 10781 ;; 10782hpux*) 10783 if test "$host_cpu" = ia64; then 10784 symcode='[ABCDEGRST]' 10785 fi 10786 ;; 10787irix* | nonstopux*) 10788 symcode='[BCDEGRST]' 10789 ;; 10790osf*) 10791 symcode='[BCDEGQRST]' 10792 ;; 10793solaris*) 10794 symcode='[BDRT]' 10795 ;; 10796sco3.2v5*) 10797 symcode='[DT]' 10798 ;; 10799sysv4.2uw2*) 10800 symcode='[DT]' 10801 ;; 10802sysv5* | sco5v6* | unixware* | OpenUNIX*) 10803 symcode='[ABDT]' 10804 ;; 10805sysv4) 10806 symcode='[DFNSTU]' 10807 ;; 10808esac 10809 10810# If we're using GNU nm, then use its standard symbol codes. 10811case `$NM -V 2>&1` in 10812*GNU* | *'with BFD'*) 10813 symcode='[ABCDGIRSTW]' ;; 10814esac 10815 10816# Transform an extracted symbol line into a proper C declaration. 10817# Some systems (esp. on ia64) link data and code symbols differently, 10818# so use this general approach. 10819lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 10820 10821# Transform an extracted symbol line into symbol name and symbol address 10822lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 10823lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 10824 10825# Handle CRLF in mingw tool chain 10826opt_cr= 10827case $build_os in 10828mingw*) 10829 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 10830 ;; 10831esac 10832 10833# Try without a prefix underscore, then with it. 10834for ac_symprfx in "" "_"; do 10835 10836 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 10837 symxfrm="\\1 $ac_symprfx\\2 \\2" 10838 10839 # Write the raw and C identifiers. 10840 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10841 # Fake it for dumpbin and say T for any non-static function 10842 # and D for any global variable. 10843 # Also find C++ and __fastcall symbols from MSVC++, 10844 # which start with @ or ?. 10845 lt_cv_sys_global_symbol_pipe="$AWK '"\ 10846" {last_section=section; section=\$ 3};"\ 10847" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 10848" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 10849" \$ 0!~/External *\|/{next};"\ 10850" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 10851" {if(hide[section]) next};"\ 10852" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 10853" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 10854" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 10855" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 10856" ' prfx=^$ac_symprfx" 10857 else 10858 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 10859 fi 10860 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 10861 10862 # Check to see that the pipe works correctly. 10863 pipe_works=no 10864 10865 rm -f conftest* 10866 cat > conftest.$ac_ext <<_LT_EOF 10867#ifdef __cplusplus 10868extern "C" { 10869#endif 10870char nm_test_var; 10871void nm_test_func(void); 10872void nm_test_func(void){} 10873#ifdef __cplusplus 10874} 10875#endif 10876int main(){nm_test_var='a';nm_test_func();return(0);} 10877_LT_EOF 10878 10879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10880 (eval $ac_compile) 2>&5 10881 ac_status=$? 10882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10883 test $ac_status = 0; }; then 10884 # Now try to grab the symbols. 10885 nlist=conftest.nm 10886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 10887 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 10888 ac_status=$? 10889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10890 test $ac_status = 0; } && test -s "$nlist"; then 10891 # Try sorting and uniquifying the output. 10892 if sort "$nlist" | uniq > "$nlist"T; then 10893 mv -f "$nlist"T "$nlist" 10894 else 10895 rm -f "$nlist"T 10896 fi 10897 10898 # Make sure that we snagged all the symbols we need. 10899 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 10900 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 10901 cat <<_LT_EOF > conftest.$ac_ext 10902/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 10903#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 10904/* DATA imports from DLLs on WIN32 con't be const, because runtime 10905 relocations are performed -- see ld's documentation on pseudo-relocs. */ 10906# define LT_DLSYM_CONST 10907#elif defined(__osf__) 10908/* This system does not cope well with relocations in const data. */ 10909# define LT_DLSYM_CONST 10910#else 10911# define LT_DLSYM_CONST const 10912#endif 10913 10914#ifdef __cplusplus 10915extern "C" { 10916#endif 10917 10918_LT_EOF 10919 # Now generate the symbol file. 10920 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 10921 10922 cat <<_LT_EOF >> conftest.$ac_ext 10923 10924/* The mapping between symbol names and symbols. */ 10925LT_DLSYM_CONST struct { 10926 const char *name; 10927 void *address; 10928} 10929lt__PROGRAM__LTX_preloaded_symbols[] = 10930{ 10931 { "@PROGRAM@", (void *) 0 }, 10932_LT_EOF 10933 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 10934 cat <<\_LT_EOF >> conftest.$ac_ext 10935 {0, (void *) 0} 10936}; 10937 10938/* This works around a problem in FreeBSD linker */ 10939#ifdef FREEBSD_WORKAROUND 10940static const void *lt_preloaded_setup() { 10941 return lt__PROGRAM__LTX_preloaded_symbols; 10942} 10943#endif 10944 10945#ifdef __cplusplus 10946} 10947#endif 10948_LT_EOF 10949 # Now try linking the two files. 10950 mv conftest.$ac_objext conftstm.$ac_objext 10951 lt_globsym_save_LIBS=$LIBS 10952 lt_globsym_save_CFLAGS=$CFLAGS 10953 LIBS="conftstm.$ac_objext" 10954 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 10955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10956 (eval $ac_link) 2>&5 10957 ac_status=$? 10958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10959 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 10960 pipe_works=yes 10961 fi 10962 LIBS=$lt_globsym_save_LIBS 10963 CFLAGS=$lt_globsym_save_CFLAGS 10964 else 10965 echo "cannot find nm_test_func in $nlist" >&5 10966 fi 10967 else 10968 echo "cannot find nm_test_var in $nlist" >&5 10969 fi 10970 else 10971 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 10972 fi 10973 else 10974 echo "$progname: failed program was:" >&5 10975 cat conftest.$ac_ext >&5 10976 fi 10977 rm -rf conftest* conftst* 10978 10979 # Do not use the global_symbol_pipe unless it works. 10980 if test "$pipe_works" = yes; then 10981 break 10982 else 10983 lt_cv_sys_global_symbol_pipe= 10984 fi 10985done 10986 10987fi 10988 10989if test -z "$lt_cv_sys_global_symbol_pipe"; then 10990 lt_cv_sys_global_symbol_to_cdecl= 10991fi 10992if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 10994$as_echo "failed" >&6; } 10995else 10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 10997$as_echo "ok" >&6; } 10998fi 10999 11000# Response file support. 11001if test "$lt_cv_nm_interface" = "MS dumpbin"; then 11002 nm_file_list_spec='@' 11003elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 11004 nm_file_list_spec='@' 11005fi 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 11034$as_echo_n "checking for sysroot... " >&6; } 11035 11036# Check whether --with-sysroot was given. 11037if test "${with_sysroot+set}" = set; then : 11038 withval=$with_sysroot; 11039else 11040 with_sysroot=no 11041fi 11042 11043 11044lt_sysroot= 11045case ${with_sysroot} in #( 11046 yes) 11047 if test "$GCC" = yes; then 11048 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 11049 fi 11050 ;; #( 11051 /*) 11052 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 11053 ;; #( 11054 no|'') 11055 ;; #( 11056 *) 11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 11058$as_echo "${with_sysroot}" >&6; } 11059 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 11060 ;; 11061esac 11062 11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 11064$as_echo "${lt_sysroot:-no}" >&6; } 11065 11066 11067 11068 11069 11070 11071# Check whether --enable-libtool-lock was given. 11072if test "${enable_libtool_lock+set}" = set; then : 11073 enableval=$enable_libtool_lock; 11074fi 11075 11076test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 11077 11078# Some flags need to be propagated to the compiler or linker for good 11079# libtool support. 11080case $host in 11081ia64-*-hpux*) 11082 # Find out which ABI we are using. 11083 echo 'int i;' > conftest.$ac_ext 11084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11085 (eval $ac_compile) 2>&5 11086 ac_status=$? 11087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11088 test $ac_status = 0; }; then 11089 case `/usr/bin/file conftest.$ac_objext` in 11090 *ELF-32*) 11091 HPUX_IA64_MODE="32" 11092 ;; 11093 *ELF-64*) 11094 HPUX_IA64_MODE="64" 11095 ;; 11096 esac 11097 fi 11098 rm -rf conftest* 11099 ;; 11100*-*-irix6*) 11101 # Find out which ABI we are using. 11102 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 11103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11104 (eval $ac_compile) 2>&5 11105 ac_status=$? 11106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11107 test $ac_status = 0; }; then 11108 if test "$lt_cv_prog_gnu_ld" = yes; then 11109 case `/usr/bin/file conftest.$ac_objext` in 11110 *32-bit*) 11111 LD="${LD-ld} -melf32bsmip" 11112 ;; 11113 *N32*) 11114 LD="${LD-ld} -melf32bmipn32" 11115 ;; 11116 *64-bit*) 11117 LD="${LD-ld} -melf64bmip" 11118 ;; 11119 esac 11120 else 11121 case `/usr/bin/file conftest.$ac_objext` in 11122 *32-bit*) 11123 LD="${LD-ld} -32" 11124 ;; 11125 *N32*) 11126 LD="${LD-ld} -n32" 11127 ;; 11128 *64-bit*) 11129 LD="${LD-ld} -64" 11130 ;; 11131 esac 11132 fi 11133 fi 11134 rm -rf conftest* 11135 ;; 11136 11137x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 11138s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 11139 # Find out which ABI we are using. 11140 echo 'int i;' > conftest.$ac_ext 11141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11142 (eval $ac_compile) 2>&5 11143 ac_status=$? 11144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11145 test $ac_status = 0; }; then 11146 case `/usr/bin/file conftest.o` in 11147 *32-bit*) 11148 case $host in 11149 x86_64-*kfreebsd*-gnu) 11150 LD="${LD-ld} -m elf_i386_fbsd" 11151 ;; 11152 x86_64-*linux*) 11153 case `/usr/bin/file conftest.o` in 11154 *x86-64*) 11155 LD="${LD-ld} -m elf32_x86_64" 11156 ;; 11157 *) 11158 LD="${LD-ld} -m elf_i386" 11159 ;; 11160 esac 11161 ;; 11162 powerpc64le-*) 11163 LD="${LD-ld} -m elf32lppclinux" 11164 ;; 11165 powerpc64-*) 11166 LD="${LD-ld} -m elf32ppclinux" 11167 ;; 11168 s390x-*linux*) 11169 LD="${LD-ld} -m elf_s390" 11170 ;; 11171 sparc64-*linux*) 11172 LD="${LD-ld} -m elf32_sparc" 11173 ;; 11174 esac 11175 ;; 11176 *64-bit*) 11177 case $host in 11178 x86_64-*kfreebsd*-gnu) 11179 LD="${LD-ld} -m elf_x86_64_fbsd" 11180 ;; 11181 x86_64-*linux*) 11182 LD="${LD-ld} -m elf_x86_64" 11183 ;; 11184 powerpcle-*) 11185 LD="${LD-ld} -m elf64lppc" 11186 ;; 11187 powerpc-*) 11188 LD="${LD-ld} -m elf64ppc" 11189 ;; 11190 s390*-*linux*|s390*-*tpf*) 11191 LD="${LD-ld} -m elf64_s390" 11192 ;; 11193 sparc*-*linux*) 11194 LD="${LD-ld} -m elf64_sparc" 11195 ;; 11196 esac 11197 ;; 11198 esac 11199 fi 11200 rm -rf conftest* 11201 ;; 11202 11203*-*-sco3.2v5*) 11204 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 11205 SAVE_CFLAGS="$CFLAGS" 11206 CFLAGS="$CFLAGS -belf" 11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 11208$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 11209if ${lt_cv_cc_needs_belf+:} false; then : 11210 $as_echo_n "(cached) " >&6 11211else 11212 ac_ext=c 11213ac_cpp='$CPP $CPPFLAGS' 11214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11216ac_compiler_gnu=$ac_cv_c_compiler_gnu 11217 11218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11219/* end confdefs.h. */ 11220 11221int 11222main () 11223{ 11224 11225 ; 11226 return 0; 11227} 11228_ACEOF 11229if ac_fn_c_try_link "$LINENO"; then : 11230 lt_cv_cc_needs_belf=yes 11231else 11232 lt_cv_cc_needs_belf=no 11233fi 11234rm -f core conftest.err conftest.$ac_objext \ 11235 conftest$ac_exeext conftest.$ac_ext 11236 ac_ext=c 11237ac_cpp='$CPP $CPPFLAGS' 11238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11240ac_compiler_gnu=$ac_cv_c_compiler_gnu 11241 11242fi 11243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 11244$as_echo "$lt_cv_cc_needs_belf" >&6; } 11245 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 11246 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 11247 CFLAGS="$SAVE_CFLAGS" 11248 fi 11249 ;; 11250*-*solaris*) 11251 # Find out which ABI we are using. 11252 echo 'int i;' > conftest.$ac_ext 11253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11254 (eval $ac_compile) 2>&5 11255 ac_status=$? 11256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11257 test $ac_status = 0; }; then 11258 case `/usr/bin/file conftest.o` in 11259 *64-bit*) 11260 case $lt_cv_prog_gnu_ld in 11261 yes*) 11262 case $host in 11263 i?86-*-solaris*) 11264 LD="${LD-ld} -m elf_x86_64" 11265 ;; 11266 sparc*-*-solaris*) 11267 LD="${LD-ld} -m elf64_sparc" 11268 ;; 11269 esac 11270 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 11271 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 11272 LD="${LD-ld}_sol2" 11273 fi 11274 ;; 11275 *) 11276 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 11277 LD="${LD-ld} -64" 11278 fi 11279 ;; 11280 esac 11281 ;; 11282 esac 11283 fi 11284 rm -rf conftest* 11285 ;; 11286esac 11287 11288need_locks="$enable_libtool_lock" 11289 11290if test -n "$ac_tool_prefix"; then 11291 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 11292set dummy ${ac_tool_prefix}mt; ac_word=$2 11293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11294$as_echo_n "checking for $ac_word... " >&6; } 11295if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 11296 $as_echo_n "(cached) " >&6 11297else 11298 if test -n "$MANIFEST_TOOL"; then 11299 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 11300else 11301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11302for as_dir in $PATH 11303do 11304 IFS=$as_save_IFS 11305 test -z "$as_dir" && as_dir=. 11306 for ac_exec_ext in '' $ac_executable_extensions; do 11307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11308 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 11309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11310 break 2 11311 fi 11312done 11313 done 11314IFS=$as_save_IFS 11315 11316fi 11317fi 11318MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 11319if test -n "$MANIFEST_TOOL"; then 11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 11321$as_echo "$MANIFEST_TOOL" >&6; } 11322else 11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11324$as_echo "no" >&6; } 11325fi 11326 11327 11328fi 11329if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 11330 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 11331 # Extract the first word of "mt", so it can be a program name with args. 11332set dummy mt; ac_word=$2 11333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11334$as_echo_n "checking for $ac_word... " >&6; } 11335if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 11336 $as_echo_n "(cached) " >&6 11337else 11338 if test -n "$ac_ct_MANIFEST_TOOL"; then 11339 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 11340else 11341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11342for as_dir in $PATH 11343do 11344 IFS=$as_save_IFS 11345 test -z "$as_dir" && as_dir=. 11346 for ac_exec_ext in '' $ac_executable_extensions; do 11347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11348 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 11349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11350 break 2 11351 fi 11352done 11353 done 11354IFS=$as_save_IFS 11355 11356fi 11357fi 11358ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 11359if test -n "$ac_ct_MANIFEST_TOOL"; then 11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 11361$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 11362else 11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11364$as_echo "no" >&6; } 11365fi 11366 11367 if test "x$ac_ct_MANIFEST_TOOL" = x; then 11368 MANIFEST_TOOL=":" 11369 else 11370 case $cross_compiling:$ac_tool_warned in 11371yes:) 11372{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11373$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11374ac_tool_warned=yes ;; 11375esac 11376 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 11377 fi 11378else 11379 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 11380fi 11381 11382test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 11383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 11384$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 11385if ${lt_cv_path_mainfest_tool+:} false; then : 11386 $as_echo_n "(cached) " >&6 11387else 11388 lt_cv_path_mainfest_tool=no 11389 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 11390 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 11391 cat conftest.err >&5 11392 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 11393 lt_cv_path_mainfest_tool=yes 11394 fi 11395 rm -f conftest* 11396fi 11397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 11398$as_echo "$lt_cv_path_mainfest_tool" >&6; } 11399if test "x$lt_cv_path_mainfest_tool" != xyes; then 11400 MANIFEST_TOOL=: 11401fi 11402 11403 11404 11405 11406 11407 11408 case $host_os in 11409 rhapsody* | darwin*) 11410 if test -n "$ac_tool_prefix"; then 11411 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 11412set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 11413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11414$as_echo_n "checking for $ac_word... " >&6; } 11415if ${ac_cv_prog_DSYMUTIL+:} false; then : 11416 $as_echo_n "(cached) " >&6 11417else 11418 if test -n "$DSYMUTIL"; then 11419 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 11420else 11421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11422for as_dir in $PATH 11423do 11424 IFS=$as_save_IFS 11425 test -z "$as_dir" && as_dir=. 11426 for ac_exec_ext in '' $ac_executable_extensions; do 11427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11428 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 11429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11430 break 2 11431 fi 11432done 11433 done 11434IFS=$as_save_IFS 11435 11436fi 11437fi 11438DSYMUTIL=$ac_cv_prog_DSYMUTIL 11439if test -n "$DSYMUTIL"; then 11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 11441$as_echo "$DSYMUTIL" >&6; } 11442else 11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11444$as_echo "no" >&6; } 11445fi 11446 11447 11448fi 11449if test -z "$ac_cv_prog_DSYMUTIL"; then 11450 ac_ct_DSYMUTIL=$DSYMUTIL 11451 # Extract the first word of "dsymutil", so it can be a program name with args. 11452set dummy dsymutil; ac_word=$2 11453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11454$as_echo_n "checking for $ac_word... " >&6; } 11455if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 11456 $as_echo_n "(cached) " >&6 11457else 11458 if test -n "$ac_ct_DSYMUTIL"; then 11459 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 11460else 11461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11462for as_dir in $PATH 11463do 11464 IFS=$as_save_IFS 11465 test -z "$as_dir" && as_dir=. 11466 for ac_exec_ext in '' $ac_executable_extensions; do 11467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11468 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 11469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11470 break 2 11471 fi 11472done 11473 done 11474IFS=$as_save_IFS 11475 11476fi 11477fi 11478ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 11479if test -n "$ac_ct_DSYMUTIL"; then 11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 11481$as_echo "$ac_ct_DSYMUTIL" >&6; } 11482else 11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11484$as_echo "no" >&6; } 11485fi 11486 11487 if test "x$ac_ct_DSYMUTIL" = x; then 11488 DSYMUTIL=":" 11489 else 11490 case $cross_compiling:$ac_tool_warned in 11491yes:) 11492{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11494ac_tool_warned=yes ;; 11495esac 11496 DSYMUTIL=$ac_ct_DSYMUTIL 11497 fi 11498else 11499 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 11500fi 11501 11502 if test -n "$ac_tool_prefix"; then 11503 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 11504set dummy ${ac_tool_prefix}nmedit; ac_word=$2 11505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11506$as_echo_n "checking for $ac_word... " >&6; } 11507if ${ac_cv_prog_NMEDIT+:} false; then : 11508 $as_echo_n "(cached) " >&6 11509else 11510 if test -n "$NMEDIT"; then 11511 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 11512else 11513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11514for as_dir in $PATH 11515do 11516 IFS=$as_save_IFS 11517 test -z "$as_dir" && as_dir=. 11518 for ac_exec_ext in '' $ac_executable_extensions; do 11519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11520 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 11521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11522 break 2 11523 fi 11524done 11525 done 11526IFS=$as_save_IFS 11527 11528fi 11529fi 11530NMEDIT=$ac_cv_prog_NMEDIT 11531if test -n "$NMEDIT"; then 11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 11533$as_echo "$NMEDIT" >&6; } 11534else 11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11536$as_echo "no" >&6; } 11537fi 11538 11539 11540fi 11541if test -z "$ac_cv_prog_NMEDIT"; then 11542 ac_ct_NMEDIT=$NMEDIT 11543 # Extract the first word of "nmedit", so it can be a program name with args. 11544set dummy nmedit; ac_word=$2 11545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11546$as_echo_n "checking for $ac_word... " >&6; } 11547if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 11548 $as_echo_n "(cached) " >&6 11549else 11550 if test -n "$ac_ct_NMEDIT"; then 11551 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 11552else 11553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11554for as_dir in $PATH 11555do 11556 IFS=$as_save_IFS 11557 test -z "$as_dir" && as_dir=. 11558 for ac_exec_ext in '' $ac_executable_extensions; do 11559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11560 ac_cv_prog_ac_ct_NMEDIT="nmedit" 11561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11562 break 2 11563 fi 11564done 11565 done 11566IFS=$as_save_IFS 11567 11568fi 11569fi 11570ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 11571if test -n "$ac_ct_NMEDIT"; then 11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 11573$as_echo "$ac_ct_NMEDIT" >&6; } 11574else 11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11576$as_echo "no" >&6; } 11577fi 11578 11579 if test "x$ac_ct_NMEDIT" = x; then 11580 NMEDIT=":" 11581 else 11582 case $cross_compiling:$ac_tool_warned in 11583yes:) 11584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11586ac_tool_warned=yes ;; 11587esac 11588 NMEDIT=$ac_ct_NMEDIT 11589 fi 11590else 11591 NMEDIT="$ac_cv_prog_NMEDIT" 11592fi 11593 11594 if test -n "$ac_tool_prefix"; then 11595 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 11596set dummy ${ac_tool_prefix}lipo; ac_word=$2 11597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11598$as_echo_n "checking for $ac_word... " >&6; } 11599if ${ac_cv_prog_LIPO+:} false; then : 11600 $as_echo_n "(cached) " >&6 11601else 11602 if test -n "$LIPO"; then 11603 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 11604else 11605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11606for as_dir in $PATH 11607do 11608 IFS=$as_save_IFS 11609 test -z "$as_dir" && as_dir=. 11610 for ac_exec_ext in '' $ac_executable_extensions; do 11611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11612 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 11613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11614 break 2 11615 fi 11616done 11617 done 11618IFS=$as_save_IFS 11619 11620fi 11621fi 11622LIPO=$ac_cv_prog_LIPO 11623if test -n "$LIPO"; then 11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 11625$as_echo "$LIPO" >&6; } 11626else 11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11628$as_echo "no" >&6; } 11629fi 11630 11631 11632fi 11633if test -z "$ac_cv_prog_LIPO"; then 11634 ac_ct_LIPO=$LIPO 11635 # Extract the first word of "lipo", so it can be a program name with args. 11636set dummy lipo; ac_word=$2 11637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11638$as_echo_n "checking for $ac_word... " >&6; } 11639if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 11640 $as_echo_n "(cached) " >&6 11641else 11642 if test -n "$ac_ct_LIPO"; then 11643 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 11644else 11645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11646for as_dir in $PATH 11647do 11648 IFS=$as_save_IFS 11649 test -z "$as_dir" && as_dir=. 11650 for ac_exec_ext in '' $ac_executable_extensions; do 11651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11652 ac_cv_prog_ac_ct_LIPO="lipo" 11653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11654 break 2 11655 fi 11656done 11657 done 11658IFS=$as_save_IFS 11659 11660fi 11661fi 11662ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 11663if test -n "$ac_ct_LIPO"; then 11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 11665$as_echo "$ac_ct_LIPO" >&6; } 11666else 11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11668$as_echo "no" >&6; } 11669fi 11670 11671 if test "x$ac_ct_LIPO" = x; then 11672 LIPO=":" 11673 else 11674 case $cross_compiling:$ac_tool_warned in 11675yes:) 11676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11678ac_tool_warned=yes ;; 11679esac 11680 LIPO=$ac_ct_LIPO 11681 fi 11682else 11683 LIPO="$ac_cv_prog_LIPO" 11684fi 11685 11686 if test -n "$ac_tool_prefix"; then 11687 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 11688set dummy ${ac_tool_prefix}otool; ac_word=$2 11689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11690$as_echo_n "checking for $ac_word... " >&6; } 11691if ${ac_cv_prog_OTOOL+:} false; then : 11692 $as_echo_n "(cached) " >&6 11693else 11694 if test -n "$OTOOL"; then 11695 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 11696else 11697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11698for as_dir in $PATH 11699do 11700 IFS=$as_save_IFS 11701 test -z "$as_dir" && as_dir=. 11702 for ac_exec_ext in '' $ac_executable_extensions; do 11703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11704 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 11705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11706 break 2 11707 fi 11708done 11709 done 11710IFS=$as_save_IFS 11711 11712fi 11713fi 11714OTOOL=$ac_cv_prog_OTOOL 11715if test -n "$OTOOL"; then 11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 11717$as_echo "$OTOOL" >&6; } 11718else 11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11720$as_echo "no" >&6; } 11721fi 11722 11723 11724fi 11725if test -z "$ac_cv_prog_OTOOL"; then 11726 ac_ct_OTOOL=$OTOOL 11727 # Extract the first word of "otool", so it can be a program name with args. 11728set dummy otool; ac_word=$2 11729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11730$as_echo_n "checking for $ac_word... " >&6; } 11731if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 11732 $as_echo_n "(cached) " >&6 11733else 11734 if test -n "$ac_ct_OTOOL"; then 11735 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 11736else 11737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11738for as_dir in $PATH 11739do 11740 IFS=$as_save_IFS 11741 test -z "$as_dir" && as_dir=. 11742 for ac_exec_ext in '' $ac_executable_extensions; do 11743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11744 ac_cv_prog_ac_ct_OTOOL="otool" 11745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11746 break 2 11747 fi 11748done 11749 done 11750IFS=$as_save_IFS 11751 11752fi 11753fi 11754ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 11755if test -n "$ac_ct_OTOOL"; then 11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 11757$as_echo "$ac_ct_OTOOL" >&6; } 11758else 11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11760$as_echo "no" >&6; } 11761fi 11762 11763 if test "x$ac_ct_OTOOL" = x; then 11764 OTOOL=":" 11765 else 11766 case $cross_compiling:$ac_tool_warned in 11767yes:) 11768{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11770ac_tool_warned=yes ;; 11771esac 11772 OTOOL=$ac_ct_OTOOL 11773 fi 11774else 11775 OTOOL="$ac_cv_prog_OTOOL" 11776fi 11777 11778 if test -n "$ac_tool_prefix"; then 11779 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 11780set dummy ${ac_tool_prefix}otool64; ac_word=$2 11781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11782$as_echo_n "checking for $ac_word... " >&6; } 11783if ${ac_cv_prog_OTOOL64+:} false; then : 11784 $as_echo_n "(cached) " >&6 11785else 11786 if test -n "$OTOOL64"; then 11787 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 11788else 11789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11790for as_dir in $PATH 11791do 11792 IFS=$as_save_IFS 11793 test -z "$as_dir" && as_dir=. 11794 for ac_exec_ext in '' $ac_executable_extensions; do 11795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11796 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 11797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11798 break 2 11799 fi 11800done 11801 done 11802IFS=$as_save_IFS 11803 11804fi 11805fi 11806OTOOL64=$ac_cv_prog_OTOOL64 11807if test -n "$OTOOL64"; then 11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 11809$as_echo "$OTOOL64" >&6; } 11810else 11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11812$as_echo "no" >&6; } 11813fi 11814 11815 11816fi 11817if test -z "$ac_cv_prog_OTOOL64"; then 11818 ac_ct_OTOOL64=$OTOOL64 11819 # Extract the first word of "otool64", so it can be a program name with args. 11820set dummy otool64; ac_word=$2 11821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11822$as_echo_n "checking for $ac_word... " >&6; } 11823if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 11824 $as_echo_n "(cached) " >&6 11825else 11826 if test -n "$ac_ct_OTOOL64"; then 11827 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 11828else 11829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11830for as_dir in $PATH 11831do 11832 IFS=$as_save_IFS 11833 test -z "$as_dir" && as_dir=. 11834 for ac_exec_ext in '' $ac_executable_extensions; do 11835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11836 ac_cv_prog_ac_ct_OTOOL64="otool64" 11837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11838 break 2 11839 fi 11840done 11841 done 11842IFS=$as_save_IFS 11843 11844fi 11845fi 11846ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 11847if test -n "$ac_ct_OTOOL64"; then 11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 11849$as_echo "$ac_ct_OTOOL64" >&6; } 11850else 11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11852$as_echo "no" >&6; } 11853fi 11854 11855 if test "x$ac_ct_OTOOL64" = x; then 11856 OTOOL64=":" 11857 else 11858 case $cross_compiling:$ac_tool_warned in 11859yes:) 11860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11862ac_tool_warned=yes ;; 11863esac 11864 OTOOL64=$ac_ct_OTOOL64 11865 fi 11866else 11867 OTOOL64="$ac_cv_prog_OTOOL64" 11868fi 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 11897$as_echo_n "checking for -single_module linker flag... " >&6; } 11898if ${lt_cv_apple_cc_single_mod+:} false; then : 11899 $as_echo_n "(cached) " >&6 11900else 11901 lt_cv_apple_cc_single_mod=no 11902 if test -z "${LT_MULTI_MODULE}"; then 11903 # By default we will add the -single_module flag. You can override 11904 # by either setting the environment variable LT_MULTI_MODULE 11905 # non-empty at configure time, or by adding -multi_module to the 11906 # link flags. 11907 rm -rf libconftest.dylib* 11908 echo "int foo(void){return 1;}" > conftest.c 11909 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 11910-dynamiclib -Wl,-single_module conftest.c" >&5 11911 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 11912 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 11913 _lt_result=$? 11914 # If there is a non-empty error log, and "single_module" 11915 # appears in it, assume the flag caused a linker warning 11916 if test -s conftest.err && $GREP single_module conftest.err; then 11917 cat conftest.err >&5 11918 # Otherwise, if the output was created with a 0 exit code from 11919 # the compiler, it worked. 11920 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 11921 lt_cv_apple_cc_single_mod=yes 11922 else 11923 cat conftest.err >&5 11924 fi 11925 rm -rf libconftest.dylib* 11926 rm -f conftest.* 11927 fi 11928fi 11929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 11930$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 11931 11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 11933$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 11934if ${lt_cv_ld_exported_symbols_list+:} false; then : 11935 $as_echo_n "(cached) " >&6 11936else 11937 lt_cv_ld_exported_symbols_list=no 11938 save_LDFLAGS=$LDFLAGS 11939 echo "_main" > conftest.sym 11940 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 11941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11942/* end confdefs.h. */ 11943 11944int 11945main () 11946{ 11947 11948 ; 11949 return 0; 11950} 11951_ACEOF 11952if ac_fn_c_try_link "$LINENO"; then : 11953 lt_cv_ld_exported_symbols_list=yes 11954else 11955 lt_cv_ld_exported_symbols_list=no 11956fi 11957rm -f core conftest.err conftest.$ac_objext \ 11958 conftest$ac_exeext conftest.$ac_ext 11959 LDFLAGS="$save_LDFLAGS" 11960 11961fi 11962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 11963$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 11964 11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 11966$as_echo_n "checking for -force_load linker flag... " >&6; } 11967if ${lt_cv_ld_force_load+:} false; then : 11968 $as_echo_n "(cached) " >&6 11969else 11970 lt_cv_ld_force_load=no 11971 cat > conftest.c << _LT_EOF 11972int forced_loaded() { return 2;} 11973_LT_EOF 11974 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 11975 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 11976 echo "$AR cru libconftest.a conftest.o" >&5 11977 $AR cru libconftest.a conftest.o 2>&5 11978 echo "$RANLIB libconftest.a" >&5 11979 $RANLIB libconftest.a 2>&5 11980 cat > conftest.c << _LT_EOF 11981int main() { return 0;} 11982_LT_EOF 11983 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 11984 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 11985 _lt_result=$? 11986 if test -s conftest.err && $GREP force_load conftest.err; then 11987 cat conftest.err >&5 11988 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 11989 lt_cv_ld_force_load=yes 11990 else 11991 cat conftest.err >&5 11992 fi 11993 rm -f conftest.err libconftest.a conftest conftest.c 11994 rm -rf conftest.dSYM 11995 11996fi 11997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 11998$as_echo "$lt_cv_ld_force_load" >&6; } 11999 case $host_os in 12000 rhapsody* | darwin1.[012]) 12001 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 12002 darwin1.*) 12003 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 12004 darwin*) # darwin 5.x on 12005 # if running on 10.5 or later, the deployment target defaults 12006 # to the OS version, if on x86, and 10.4, the deployment 12007 # target defaults to 10.4. Don't you love it? 12008 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 12009 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 12010 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 12011 10.[012]*) 12012 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 12013 10.*) 12014 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 12015 esac 12016 ;; 12017 esac 12018 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 12019 _lt_dar_single_mod='$single_module' 12020 fi 12021 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 12022 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 12023 else 12024 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 12025 fi 12026 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 12027 _lt_dsymutil='~$DSYMUTIL $lib || :' 12028 else 12029 _lt_dsymutil= 12030 fi 12031 ;; 12032 esac 12033 12034ac_ext=c 12035ac_cpp='$CPP $CPPFLAGS' 12036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12038ac_compiler_gnu=$ac_cv_c_compiler_gnu 12039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 12040$as_echo_n "checking how to run the C preprocessor... " >&6; } 12041# On Suns, sometimes $CPP names a directory. 12042if test -n "$CPP" && test -d "$CPP"; then 12043 CPP= 12044fi 12045if test -z "$CPP"; then 12046 if ${ac_cv_prog_CPP+:} false; then : 12047 $as_echo_n "(cached) " >&6 12048else 12049 # Double quotes because CPP needs to be expanded 12050 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 12051 do 12052 ac_preproc_ok=false 12053for ac_c_preproc_warn_flag in '' yes 12054do 12055 # Use a header file that comes with gcc, so configuring glibc 12056 # with a fresh cross-compiler works. 12057 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12058 # <limits.h> exists even on freestanding compilers. 12059 # On the NeXT, cc -E runs the code through the compiler's parser, 12060 # not just through cpp. "Syntax error" is here to catch this case. 12061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12062/* end confdefs.h. */ 12063#ifdef __STDC__ 12064# include <limits.h> 12065#else 12066# include <assert.h> 12067#endif 12068 Syntax error 12069_ACEOF 12070if ac_fn_c_try_cpp "$LINENO"; then : 12071 12072else 12073 # Broken: fails on valid input. 12074continue 12075fi 12076rm -f conftest.err conftest.i conftest.$ac_ext 12077 12078 # OK, works on sane cases. Now check whether nonexistent headers 12079 # can be detected and how. 12080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12081/* end confdefs.h. */ 12082#include <ac_nonexistent.h> 12083_ACEOF 12084if ac_fn_c_try_cpp "$LINENO"; then : 12085 # Broken: success on invalid input. 12086continue 12087else 12088 # Passes both tests. 12089ac_preproc_ok=: 12090break 12091fi 12092rm -f conftest.err conftest.i conftest.$ac_ext 12093 12094done 12095# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12096rm -f conftest.i conftest.err conftest.$ac_ext 12097if $ac_preproc_ok; then : 12098 break 12099fi 12100 12101 done 12102 ac_cv_prog_CPP=$CPP 12103 12104fi 12105 CPP=$ac_cv_prog_CPP 12106else 12107 ac_cv_prog_CPP=$CPP 12108fi 12109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 12110$as_echo "$CPP" >&6; } 12111ac_preproc_ok=false 12112for ac_c_preproc_warn_flag in '' yes 12113do 12114 # Use a header file that comes with gcc, so configuring glibc 12115 # with a fresh cross-compiler works. 12116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12117 # <limits.h> exists even on freestanding compilers. 12118 # On the NeXT, cc -E runs the code through the compiler's parser, 12119 # not just through cpp. "Syntax error" is here to catch this case. 12120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12121/* end confdefs.h. */ 12122#ifdef __STDC__ 12123# include <limits.h> 12124#else 12125# include <assert.h> 12126#endif 12127 Syntax error 12128_ACEOF 12129if ac_fn_c_try_cpp "$LINENO"; then : 12130 12131else 12132 # Broken: fails on valid input. 12133continue 12134fi 12135rm -f conftest.err conftest.i conftest.$ac_ext 12136 12137 # OK, works on sane cases. Now check whether nonexistent headers 12138 # can be detected and how. 12139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12140/* end confdefs.h. */ 12141#include <ac_nonexistent.h> 12142_ACEOF 12143if ac_fn_c_try_cpp "$LINENO"; then : 12144 # Broken: success on invalid input. 12145continue 12146else 12147 # Passes both tests. 12148ac_preproc_ok=: 12149break 12150fi 12151rm -f conftest.err conftest.i conftest.$ac_ext 12152 12153done 12154# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12155rm -f conftest.i conftest.err conftest.$ac_ext 12156if $ac_preproc_ok; then : 12157 12158else 12159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12161as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 12162See \`config.log' for more details" "$LINENO" 5; } 12163fi 12164 12165ac_ext=c 12166ac_cpp='$CPP $CPPFLAGS' 12167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12169ac_compiler_gnu=$ac_cv_c_compiler_gnu 12170 12171 12172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12173$as_echo_n "checking for ANSI C header files... " >&6; } 12174if ${ac_cv_header_stdc+:} false; then : 12175 $as_echo_n "(cached) " >&6 12176else 12177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12178/* end confdefs.h. */ 12179#include <stdlib.h> 12180#include <stdarg.h> 12181#include <string.h> 12182#include <float.h> 12183 12184int 12185main () 12186{ 12187 12188 ; 12189 return 0; 12190} 12191_ACEOF 12192if ac_fn_c_try_compile "$LINENO"; then : 12193 ac_cv_header_stdc=yes 12194else 12195 ac_cv_header_stdc=no 12196fi 12197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12198 12199if test $ac_cv_header_stdc = yes; then 12200 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12202/* end confdefs.h. */ 12203#include <string.h> 12204 12205_ACEOF 12206if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12207 $EGREP "memchr" >/dev/null 2>&1; then : 12208 12209else 12210 ac_cv_header_stdc=no 12211fi 12212rm -f conftest* 12213 12214fi 12215 12216if test $ac_cv_header_stdc = yes; then 12217 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12219/* end confdefs.h. */ 12220#include <stdlib.h> 12221 12222_ACEOF 12223if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12224 $EGREP "free" >/dev/null 2>&1; then : 12225 12226else 12227 ac_cv_header_stdc=no 12228fi 12229rm -f conftest* 12230 12231fi 12232 12233if test $ac_cv_header_stdc = yes; then 12234 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12235 if test "$cross_compiling" = yes; then : 12236 : 12237else 12238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12239/* end confdefs.h. */ 12240#include <ctype.h> 12241#include <stdlib.h> 12242#if ((' ' & 0x0FF) == 0x020) 12243# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12244# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12245#else 12246# define ISLOWER(c) \ 12247 (('a' <= (c) && (c) <= 'i') \ 12248 || ('j' <= (c) && (c) <= 'r') \ 12249 || ('s' <= (c) && (c) <= 'z')) 12250# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12251#endif 12252 12253#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12254int 12255main () 12256{ 12257 int i; 12258 for (i = 0; i < 256; i++) 12259 if (XOR (islower (i), ISLOWER (i)) 12260 || toupper (i) != TOUPPER (i)) 12261 return 2; 12262 return 0; 12263} 12264_ACEOF 12265if ac_fn_c_try_run "$LINENO"; then : 12266 12267else 12268 ac_cv_header_stdc=no 12269fi 12270rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12271 conftest.$ac_objext conftest.beam conftest.$ac_ext 12272fi 12273 12274fi 12275fi 12276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12277$as_echo "$ac_cv_header_stdc" >&6; } 12278if test $ac_cv_header_stdc = yes; then 12279 12280$as_echo "#define STDC_HEADERS 1" >>confdefs.h 12281 12282fi 12283 12284# On IRIX 5.3, sys/types and inttypes.h are conflicting. 12285for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 12286 inttypes.h stdint.h unistd.h 12287do : 12288 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12289ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 12290" 12291if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12292 cat >>confdefs.h <<_ACEOF 12293#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12294_ACEOF 12295 12296fi 12297 12298done 12299 12300 12301for ac_header in dlfcn.h 12302do : 12303 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 12304" 12305if test "x$ac_cv_header_dlfcn_h" = xyes; then : 12306 cat >>confdefs.h <<_ACEOF 12307#define HAVE_DLFCN_H 1 12308_ACEOF 12309 12310fi 12311 12312done 12313 12314 12315 12316func_stripname_cnf () 12317{ 12318 case ${2} in 12319 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 12320 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 12321 esac 12322} # func_stripname_cnf 12323 12324 12325 12326 12327 12328# Set options 12329 12330 12331 12332 enable_dlopen=no 12333 12334 12335 enable_win32_dll=no 12336 12337 12338 # Check whether --enable-shared was given. 12339if test "${enable_shared+set}" = set; then : 12340 enableval=$enable_shared; p=${PACKAGE-default} 12341 case $enableval in 12342 yes) enable_shared=yes ;; 12343 no) enable_shared=no ;; 12344 *) 12345 enable_shared=no 12346 # Look at the argument we got. We use all the common list separators. 12347 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 12348 for pkg in $enableval; do 12349 IFS="$lt_save_ifs" 12350 if test "X$pkg" = "X$p"; then 12351 enable_shared=yes 12352 fi 12353 done 12354 IFS="$lt_save_ifs" 12355 ;; 12356 esac 12357else 12358 enable_shared=yes 12359fi 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 # Check whether --enable-static was given. 12370if test "${enable_static+set}" = set; then : 12371 enableval=$enable_static; p=${PACKAGE-default} 12372 case $enableval in 12373 yes) enable_static=yes ;; 12374 no) enable_static=no ;; 12375 *) 12376 enable_static=no 12377 # Look at the argument we got. We use all the common list separators. 12378 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 12379 for pkg in $enableval; do 12380 IFS="$lt_save_ifs" 12381 if test "X$pkg" = "X$p"; then 12382 enable_static=yes 12383 fi 12384 done 12385 IFS="$lt_save_ifs" 12386 ;; 12387 esac 12388else 12389 enable_static=yes 12390fi 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401# Check whether --with-pic was given. 12402if test "${with_pic+set}" = set; then : 12403 withval=$with_pic; lt_p=${PACKAGE-default} 12404 case $withval in 12405 yes|no) pic_mode=$withval ;; 12406 *) 12407 pic_mode=default 12408 # Look at the argument we got. We use all the common list separators. 12409 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 12410 for lt_pkg in $withval; do 12411 IFS="$lt_save_ifs" 12412 if test "X$lt_pkg" = "X$lt_p"; then 12413 pic_mode=yes 12414 fi 12415 done 12416 IFS="$lt_save_ifs" 12417 ;; 12418 esac 12419else 12420 pic_mode=default 12421fi 12422 12423 12424test -z "$pic_mode" && pic_mode=default 12425 12426 12427 12428 12429 12430 12431 12432 # Check whether --enable-fast-install was given. 12433if test "${enable_fast_install+set}" = set; then : 12434 enableval=$enable_fast_install; p=${PACKAGE-default} 12435 case $enableval in 12436 yes) enable_fast_install=yes ;; 12437 no) enable_fast_install=no ;; 12438 *) 12439 enable_fast_install=no 12440 # Look at the argument we got. We use all the common list separators. 12441 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 12442 for pkg in $enableval; do 12443 IFS="$lt_save_ifs" 12444 if test "X$pkg" = "X$p"; then 12445 enable_fast_install=yes 12446 fi 12447 done 12448 IFS="$lt_save_ifs" 12449 ;; 12450 esac 12451else 12452 enable_fast_install=yes 12453fi 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465# This can be used to rebuild libtool when needed 12466LIBTOOL_DEPS="$ltmain" 12467 12468# Always use our own libtool. 12469LIBTOOL='$(SHELL) $(top_builddir)/libtool' 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500test -z "$LN_S" && LN_S="ln -s" 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515if test -n "${ZSH_VERSION+set}" ; then 12516 setopt NO_GLOB_SUBST 12517fi 12518 12519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 12520$as_echo_n "checking for objdir... " >&6; } 12521if ${lt_cv_objdir+:} false; then : 12522 $as_echo_n "(cached) " >&6 12523else 12524 rm -f .libs 2>/dev/null 12525mkdir .libs 2>/dev/null 12526if test -d .libs; then 12527 lt_cv_objdir=.libs 12528else 12529 # MS-DOS does not allow filenames that begin with a dot. 12530 lt_cv_objdir=_libs 12531fi 12532rmdir .libs 2>/dev/null 12533fi 12534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 12535$as_echo "$lt_cv_objdir" >&6; } 12536objdir=$lt_cv_objdir 12537 12538 12539 12540 12541 12542cat >>confdefs.h <<_ACEOF 12543#define LT_OBJDIR "$lt_cv_objdir/" 12544_ACEOF 12545 12546 12547 12548 12549case $host_os in 12550aix3*) 12551 # AIX sometimes has problems with the GCC collect2 program. For some 12552 # reason, if we set the COLLECT_NAMES environment variable, the problems 12553 # vanish in a puff of smoke. 12554 if test "X${COLLECT_NAMES+set}" != Xset; then 12555 COLLECT_NAMES= 12556 export COLLECT_NAMES 12557 fi 12558 ;; 12559esac 12560 12561# Global variables: 12562ofile=libtool 12563can_build_shared=yes 12564 12565# All known linkers require a `.a' archive for static linking (except MSVC, 12566# which needs '.lib'). 12567libext=a 12568 12569with_gnu_ld="$lt_cv_prog_gnu_ld" 12570 12571old_CC="$CC" 12572old_CFLAGS="$CFLAGS" 12573 12574# Set sane defaults for various variables 12575test -z "$CC" && CC=cc 12576test -z "$LTCC" && LTCC=$CC 12577test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 12578test -z "$LD" && LD=ld 12579test -z "$ac_objext" && ac_objext=o 12580 12581for cc_temp in $compiler""; do 12582 case $cc_temp in 12583 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12584 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12585 \-*) ;; 12586 *) break;; 12587 esac 12588done 12589cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12590 12591 12592# Only perform the check for file, if the check method requires it 12593test -z "$MAGIC_CMD" && MAGIC_CMD=file 12594case $deplibs_check_method in 12595file_magic*) 12596 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 12598$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 12599if ${lt_cv_path_MAGIC_CMD+:} false; then : 12600 $as_echo_n "(cached) " >&6 12601else 12602 case $MAGIC_CMD in 12603[\\/*] | ?:[\\/]*) 12604 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 12605 ;; 12606*) 12607 lt_save_MAGIC_CMD="$MAGIC_CMD" 12608 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12609 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 12610 for ac_dir in $ac_dummy; do 12611 IFS="$lt_save_ifs" 12612 test -z "$ac_dir" && ac_dir=. 12613 if test -f $ac_dir/${ac_tool_prefix}file; then 12614 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 12615 if test -n "$file_magic_test_file"; then 12616 case $deplibs_check_method in 12617 "file_magic "*) 12618 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 12619 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 12620 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 12621 $EGREP "$file_magic_regex" > /dev/null; then 12622 : 12623 else 12624 cat <<_LT_EOF 1>&2 12625 12626*** Warning: the command libtool uses to detect shared libraries, 12627*** $file_magic_cmd, produces output that libtool cannot recognize. 12628*** The result is that libtool may fail to recognize shared libraries 12629*** as such. This will affect the creation of libtool libraries that 12630*** depend on shared libraries, but programs linked with such libtool 12631*** libraries will work regardless of this problem. Nevertheless, you 12632*** may want to report the problem to your system manager and/or to 12633*** bug-libtool@gnu.org 12634 12635_LT_EOF 12636 fi ;; 12637 esac 12638 fi 12639 break 12640 fi 12641 done 12642 IFS="$lt_save_ifs" 12643 MAGIC_CMD="$lt_save_MAGIC_CMD" 12644 ;; 12645esac 12646fi 12647 12648MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 12649if test -n "$MAGIC_CMD"; then 12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 12651$as_echo "$MAGIC_CMD" >&6; } 12652else 12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12654$as_echo "no" >&6; } 12655fi 12656 12657 12658 12659 12660 12661if test -z "$lt_cv_path_MAGIC_CMD"; then 12662 if test -n "$ac_tool_prefix"; then 12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 12664$as_echo_n "checking for file... " >&6; } 12665if ${lt_cv_path_MAGIC_CMD+:} false; then : 12666 $as_echo_n "(cached) " >&6 12667else 12668 case $MAGIC_CMD in 12669[\\/*] | ?:[\\/]*) 12670 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 12671 ;; 12672*) 12673 lt_save_MAGIC_CMD="$MAGIC_CMD" 12674 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12675 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 12676 for ac_dir in $ac_dummy; do 12677 IFS="$lt_save_ifs" 12678 test -z "$ac_dir" && ac_dir=. 12679 if test -f $ac_dir/file; then 12680 lt_cv_path_MAGIC_CMD="$ac_dir/file" 12681 if test -n "$file_magic_test_file"; then 12682 case $deplibs_check_method in 12683 "file_magic "*) 12684 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 12685 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 12686 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 12687 $EGREP "$file_magic_regex" > /dev/null; then 12688 : 12689 else 12690 cat <<_LT_EOF 1>&2 12691 12692*** Warning: the command libtool uses to detect shared libraries, 12693*** $file_magic_cmd, produces output that libtool cannot recognize. 12694*** The result is that libtool may fail to recognize shared libraries 12695*** as such. This will affect the creation of libtool libraries that 12696*** depend on shared libraries, but programs linked with such libtool 12697*** libraries will work regardless of this problem. Nevertheless, you 12698*** may want to report the problem to your system manager and/or to 12699*** bug-libtool@gnu.org 12700 12701_LT_EOF 12702 fi ;; 12703 esac 12704 fi 12705 break 12706 fi 12707 done 12708 IFS="$lt_save_ifs" 12709 MAGIC_CMD="$lt_save_MAGIC_CMD" 12710 ;; 12711esac 12712fi 12713 12714MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 12715if test -n "$MAGIC_CMD"; then 12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 12717$as_echo "$MAGIC_CMD" >&6; } 12718else 12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12720$as_echo "no" >&6; } 12721fi 12722 12723 12724 else 12725 MAGIC_CMD=: 12726 fi 12727fi 12728 12729 fi 12730 ;; 12731esac 12732 12733# Use C for the default configuration in the libtool script 12734 12735lt_save_CC="$CC" 12736ac_ext=c 12737ac_cpp='$CPP $CPPFLAGS' 12738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12740ac_compiler_gnu=$ac_cv_c_compiler_gnu 12741 12742 12743# Source file extension for C test sources. 12744ac_ext=c 12745 12746# Object file extension for compiled C test sources. 12747objext=o 12748objext=$objext 12749 12750# Code to be used in simple compile tests 12751lt_simple_compile_test_code="int some_variable = 0;" 12752 12753# Code to be used in simple link tests 12754lt_simple_link_test_code='int main(){return(0);}' 12755 12756 12757 12758 12759 12760 12761 12762# If no C compiler was specified, use CC. 12763LTCC=${LTCC-"$CC"} 12764 12765# If no C compiler flags were specified, use CFLAGS. 12766LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12767 12768# Allow CC to be a program name with arguments. 12769compiler=$CC 12770 12771# Save the default compiler, since it gets overwritten when the other 12772# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 12773compiler_DEFAULT=$CC 12774 12775# save warnings/boilerplate of simple test code 12776ac_outfile=conftest.$ac_objext 12777echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12778eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12779_lt_compiler_boilerplate=`cat conftest.err` 12780$RM conftest* 12781 12782ac_outfile=conftest.$ac_objext 12783echo "$lt_simple_link_test_code" >conftest.$ac_ext 12784eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12785_lt_linker_boilerplate=`cat conftest.err` 12786$RM -r conftest* 12787 12788 12789if test -n "$compiler"; then 12790 12791lt_prog_compiler_no_builtin_flag= 12792 12793if test "$GCC" = yes; then 12794 case $cc_basename in 12795 nvcc*) 12796 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 12797 *) 12798 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 12799 esac 12800 12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 12802$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 12803if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 12804 $as_echo_n "(cached) " >&6 12805else 12806 lt_cv_prog_compiler_rtti_exceptions=no 12807 ac_outfile=conftest.$ac_objext 12808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12809 lt_compiler_flag="-fno-rtti -fno-exceptions" 12810 # Insert the option either (1) after the last *FLAGS variable, or 12811 # (2) before a word containing "conftest.", or (3) at the end. 12812 # Note that $ac_compile itself does not contain backslashes and begins 12813 # with a dollar sign (not a hyphen), so the echo should work correctly. 12814 # The option is referenced via a variable to avoid confusing sed. 12815 lt_compile=`echo "$ac_compile" | $SED \ 12816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12818 -e 's:$: $lt_compiler_flag:'` 12819 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12820 (eval "$lt_compile" 2>conftest.err) 12821 ac_status=$? 12822 cat conftest.err >&5 12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12824 if (exit $ac_status) && test -s "$ac_outfile"; then 12825 # The compiler can only warn and ignore the option if not recognized 12826 # So say no if there are warnings other than the usual output. 12827 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12828 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12829 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12830 lt_cv_prog_compiler_rtti_exceptions=yes 12831 fi 12832 fi 12833 $RM conftest* 12834 12835fi 12836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 12837$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 12838 12839if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 12840 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 12841else 12842 : 12843fi 12844 12845fi 12846 12847 12848 12849 12850 12851 12852 lt_prog_compiler_wl= 12853lt_prog_compiler_pic= 12854lt_prog_compiler_static= 12855 12856 12857 if test "$GCC" = yes; then 12858 lt_prog_compiler_wl='-Wl,' 12859 lt_prog_compiler_static='-static' 12860 12861 case $host_os in 12862 aix*) 12863 # All AIX code is PIC. 12864 if test "$host_cpu" = ia64; then 12865 # AIX 5 now supports IA64 processor 12866 lt_prog_compiler_static='-Bstatic' 12867 fi 12868 ;; 12869 12870 amigaos*) 12871 case $host_cpu in 12872 powerpc) 12873 # see comment about AmigaOS4 .so support 12874 lt_prog_compiler_pic='-fPIC' 12875 ;; 12876 m68k) 12877 # FIXME: we need at least 68020 code to build shared libraries, but 12878 # adding the `-m68020' flag to GCC prevents building anything better, 12879 # like `-m68040'. 12880 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 12881 ;; 12882 esac 12883 ;; 12884 12885 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12886 # PIC is the default for these OSes. 12887 ;; 12888 12889 mingw* | cygwin* | pw32* | os2* | cegcc*) 12890 # This hack is so that the source file can tell whether it is being 12891 # built for inclusion in a dll (and should export symbols for example). 12892 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12893 # (--disable-auto-import) libraries 12894 lt_prog_compiler_pic='-DDLL_EXPORT' 12895 ;; 12896 12897 darwin* | rhapsody*) 12898 # PIC is the default on this platform 12899 # Common symbols not allowed in MH_DYLIB files 12900 lt_prog_compiler_pic='-fno-common' 12901 ;; 12902 12903 haiku*) 12904 # PIC is the default for Haiku. 12905 # The "-static" flag exists, but is broken. 12906 lt_prog_compiler_static= 12907 ;; 12908 12909 hpux*) 12910 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12911 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12912 # sets the default TLS model and affects inlining. 12913 case $host_cpu in 12914 hppa*64*) 12915 # +Z the default 12916 ;; 12917 *) 12918 lt_prog_compiler_pic='-fPIC' 12919 ;; 12920 esac 12921 ;; 12922 12923 interix[3-9]*) 12924 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12925 # Instead, we relocate shared libraries at runtime. 12926 ;; 12927 12928 msdosdjgpp*) 12929 # Just because we use GCC doesn't mean we suddenly get shared libraries 12930 # on systems that don't support them. 12931 lt_prog_compiler_can_build_shared=no 12932 enable_shared=no 12933 ;; 12934 12935 *nto* | *qnx*) 12936 # QNX uses GNU C++, but need to define -shared option too, otherwise 12937 # it will coredump. 12938 lt_prog_compiler_pic='-fPIC -shared' 12939 ;; 12940 12941 sysv4*MP*) 12942 if test -d /usr/nec; then 12943 lt_prog_compiler_pic=-Kconform_pic 12944 fi 12945 ;; 12946 12947 *) 12948 lt_prog_compiler_pic='-fPIC' 12949 ;; 12950 esac 12951 12952 case $cc_basename in 12953 nvcc*) # Cuda Compiler Driver 2.2 12954 lt_prog_compiler_wl='-Xlinker ' 12955 if test -n "$lt_prog_compiler_pic"; then 12956 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 12957 fi 12958 ;; 12959 esac 12960 else 12961 # PORTME Check for flag to pass linker flags through the system compiler. 12962 case $host_os in 12963 aix*) 12964 lt_prog_compiler_wl='-Wl,' 12965 if test "$host_cpu" = ia64; then 12966 # AIX 5 now supports IA64 processor 12967 lt_prog_compiler_static='-Bstatic' 12968 else 12969 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 12970 fi 12971 ;; 12972 12973 mingw* | cygwin* | pw32* | os2* | cegcc*) 12974 # This hack is so that the source file can tell whether it is being 12975 # built for inclusion in a dll (and should export symbols for example). 12976 lt_prog_compiler_pic='-DDLL_EXPORT' 12977 ;; 12978 12979 hpux9* | hpux10* | hpux11*) 12980 lt_prog_compiler_wl='-Wl,' 12981 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12982 # not for PA HP-UX. 12983 case $host_cpu in 12984 hppa*64*|ia64*) 12985 # +Z the default 12986 ;; 12987 *) 12988 lt_prog_compiler_pic='+Z' 12989 ;; 12990 esac 12991 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12992 lt_prog_compiler_static='${wl}-a ${wl}archive' 12993 ;; 12994 12995 irix5* | irix6* | nonstopux*) 12996 lt_prog_compiler_wl='-Wl,' 12997 # PIC (with -KPIC) is the default. 12998 lt_prog_compiler_static='-non_shared' 12999 ;; 13000 13001 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13002 case $cc_basename in 13003 # old Intel for x86_64 which still supported -KPIC. 13004 ecc*) 13005 lt_prog_compiler_wl='-Wl,' 13006 lt_prog_compiler_pic='-KPIC' 13007 lt_prog_compiler_static='-static' 13008 ;; 13009 # icc used to be incompatible with GCC. 13010 # ICC 10 doesn't accept -KPIC any more. 13011 icc* | ifort*) 13012 lt_prog_compiler_wl='-Wl,' 13013 lt_prog_compiler_pic='-fPIC' 13014 lt_prog_compiler_static='-static' 13015 ;; 13016 # Lahey Fortran 8.1. 13017 lf95*) 13018 lt_prog_compiler_wl='-Wl,' 13019 lt_prog_compiler_pic='--shared' 13020 lt_prog_compiler_static='--static' 13021 ;; 13022 nagfor*) 13023 # NAG Fortran compiler 13024 lt_prog_compiler_wl='-Wl,-Wl,,' 13025 lt_prog_compiler_pic='-PIC' 13026 lt_prog_compiler_static='-Bstatic' 13027 ;; 13028 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 13029 # Portland Group compilers (*not* the Pentium gcc compiler, 13030 # which looks to be a dead project) 13031 lt_prog_compiler_wl='-Wl,' 13032 lt_prog_compiler_pic='-fpic' 13033 lt_prog_compiler_static='-Bstatic' 13034 ;; 13035 ccc*) 13036 lt_prog_compiler_wl='-Wl,' 13037 # All Alpha code is PIC. 13038 lt_prog_compiler_static='-non_shared' 13039 ;; 13040 xl* | bgxl* | bgf* | mpixl*) 13041 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 13042 lt_prog_compiler_wl='-Wl,' 13043 lt_prog_compiler_pic='-qpic' 13044 lt_prog_compiler_static='-qstaticlink' 13045 ;; 13046 *) 13047 case `$CC -V 2>&1 | sed 5q` in 13048 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 13049 # Sun Fortran 8.3 passes all unrecognized flags to the linker 13050 lt_prog_compiler_pic='-KPIC' 13051 lt_prog_compiler_static='-Bstatic' 13052 lt_prog_compiler_wl='' 13053 ;; 13054 *Sun\ F* | *Sun*Fortran*) 13055 lt_prog_compiler_pic='-KPIC' 13056 lt_prog_compiler_static='-Bstatic' 13057 lt_prog_compiler_wl='-Qoption ld ' 13058 ;; 13059 *Sun\ C*) 13060 # Sun C 5.9 13061 lt_prog_compiler_pic='-KPIC' 13062 lt_prog_compiler_static='-Bstatic' 13063 lt_prog_compiler_wl='-Wl,' 13064 ;; 13065 *Intel*\ [CF]*Compiler*) 13066 lt_prog_compiler_wl='-Wl,' 13067 lt_prog_compiler_pic='-fPIC' 13068 lt_prog_compiler_static='-static' 13069 ;; 13070 *Portland\ Group*) 13071 lt_prog_compiler_wl='-Wl,' 13072 lt_prog_compiler_pic='-fpic' 13073 lt_prog_compiler_static='-Bstatic' 13074 ;; 13075 esac 13076 ;; 13077 esac 13078 ;; 13079 13080 newsos6) 13081 lt_prog_compiler_pic='-KPIC' 13082 lt_prog_compiler_static='-Bstatic' 13083 ;; 13084 13085 *nto* | *qnx*) 13086 # QNX uses GNU C++, but need to define -shared option too, otherwise 13087 # it will coredump. 13088 lt_prog_compiler_pic='-fPIC -shared' 13089 ;; 13090 13091 osf3* | osf4* | osf5*) 13092 lt_prog_compiler_wl='-Wl,' 13093 # All OSF/1 code is PIC. 13094 lt_prog_compiler_static='-non_shared' 13095 ;; 13096 13097 rdos*) 13098 lt_prog_compiler_static='-non_shared' 13099 ;; 13100 13101 solaris*) 13102 lt_prog_compiler_pic='-KPIC' 13103 lt_prog_compiler_static='-Bstatic' 13104 case $cc_basename in 13105 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 13106 lt_prog_compiler_wl='-Qoption ld ';; 13107 *) 13108 lt_prog_compiler_wl='-Wl,';; 13109 esac 13110 ;; 13111 13112 sunos4*) 13113 lt_prog_compiler_wl='-Qoption ld ' 13114 lt_prog_compiler_pic='-PIC' 13115 lt_prog_compiler_static='-Bstatic' 13116 ;; 13117 13118 sysv4 | sysv4.2uw2* | sysv4.3*) 13119 lt_prog_compiler_wl='-Wl,' 13120 lt_prog_compiler_pic='-KPIC' 13121 lt_prog_compiler_static='-Bstatic' 13122 ;; 13123 13124 sysv4*MP*) 13125 if test -d /usr/nec ;then 13126 lt_prog_compiler_pic='-Kconform_pic' 13127 lt_prog_compiler_static='-Bstatic' 13128 fi 13129 ;; 13130 13131 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13132 lt_prog_compiler_wl='-Wl,' 13133 lt_prog_compiler_pic='-KPIC' 13134 lt_prog_compiler_static='-Bstatic' 13135 ;; 13136 13137 unicos*) 13138 lt_prog_compiler_wl='-Wl,' 13139 lt_prog_compiler_can_build_shared=no 13140 ;; 13141 13142 uts4*) 13143 lt_prog_compiler_pic='-pic' 13144 lt_prog_compiler_static='-Bstatic' 13145 ;; 13146 13147 *) 13148 lt_prog_compiler_can_build_shared=no 13149 ;; 13150 esac 13151 fi 13152 13153case $host_os in 13154 # For platforms which do not support PIC, -DPIC is meaningless: 13155 *djgpp*) 13156 lt_prog_compiler_pic= 13157 ;; 13158 *) 13159 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 13160 ;; 13161esac 13162 13163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13164$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13165if ${lt_cv_prog_compiler_pic+:} false; then : 13166 $as_echo_n "(cached) " >&6 13167else 13168 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 13169fi 13170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 13171$as_echo "$lt_cv_prog_compiler_pic" >&6; } 13172lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 13173 13174# 13175# Check to make sure the PIC flag actually works. 13176# 13177if test -n "$lt_prog_compiler_pic"; then 13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 13179$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 13180if ${lt_cv_prog_compiler_pic_works+:} false; then : 13181 $as_echo_n "(cached) " >&6 13182else 13183 lt_cv_prog_compiler_pic_works=no 13184 ac_outfile=conftest.$ac_objext 13185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13186 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 13187 # Insert the option either (1) after the last *FLAGS variable, or 13188 # (2) before a word containing "conftest.", or (3) at the end. 13189 # Note that $ac_compile itself does not contain backslashes and begins 13190 # with a dollar sign (not a hyphen), so the echo should work correctly. 13191 # The option is referenced via a variable to avoid confusing sed. 13192 lt_compile=`echo "$ac_compile" | $SED \ 13193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13195 -e 's:$: $lt_compiler_flag:'` 13196 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13197 (eval "$lt_compile" 2>conftest.err) 13198 ac_status=$? 13199 cat conftest.err >&5 13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13201 if (exit $ac_status) && test -s "$ac_outfile"; then 13202 # The compiler can only warn and ignore the option if not recognized 13203 # So say no if there are warnings other than the usual output. 13204 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13205 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13206 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13207 lt_cv_prog_compiler_pic_works=yes 13208 fi 13209 fi 13210 $RM conftest* 13211 13212fi 13213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 13214$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 13215 13216if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 13217 case $lt_prog_compiler_pic in 13218 "" | " "*) ;; 13219 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 13220 esac 13221else 13222 lt_prog_compiler_pic= 13223 lt_prog_compiler_can_build_shared=no 13224fi 13225 13226fi 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238# 13239# Check to make sure the static flag actually works. 13240# 13241wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 13242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13243$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13244if ${lt_cv_prog_compiler_static_works+:} false; then : 13245 $as_echo_n "(cached) " >&6 13246else 13247 lt_cv_prog_compiler_static_works=no 13248 save_LDFLAGS="$LDFLAGS" 13249 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13250 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13251 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13252 # The linker can only warn and ignore the option if not recognized 13253 # So say no if there are warnings 13254 if test -s conftest.err; then 13255 # Append any errors to the config.log. 13256 cat conftest.err 1>&5 13257 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13258 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13259 if diff conftest.exp conftest.er2 >/dev/null; then 13260 lt_cv_prog_compiler_static_works=yes 13261 fi 13262 else 13263 lt_cv_prog_compiler_static_works=yes 13264 fi 13265 fi 13266 $RM -r conftest* 13267 LDFLAGS="$save_LDFLAGS" 13268 13269fi 13270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 13271$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 13272 13273if test x"$lt_cv_prog_compiler_static_works" = xyes; then 13274 : 13275else 13276 lt_prog_compiler_static= 13277fi 13278 13279 13280 13281 13282 13283 13284 13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13286$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13287if ${lt_cv_prog_compiler_c_o+:} false; then : 13288 $as_echo_n "(cached) " >&6 13289else 13290 lt_cv_prog_compiler_c_o=no 13291 $RM -r conftest 2>/dev/null 13292 mkdir conftest 13293 cd conftest 13294 mkdir out 13295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13296 13297 lt_compiler_flag="-o out/conftest2.$ac_objext" 13298 # Insert the option either (1) after the last *FLAGS variable, or 13299 # (2) before a word containing "conftest.", or (3) at the end. 13300 # Note that $ac_compile itself does not contain backslashes and begins 13301 # with a dollar sign (not a hyphen), so the echo should work correctly. 13302 lt_compile=`echo "$ac_compile" | $SED \ 13303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13305 -e 's:$: $lt_compiler_flag:'` 13306 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13307 (eval "$lt_compile" 2>out/conftest.err) 13308 ac_status=$? 13309 cat out/conftest.err >&5 13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13311 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13312 then 13313 # The compiler can only warn and ignore the option if not recognized 13314 # So say no if there are warnings 13315 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13316 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13317 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13318 lt_cv_prog_compiler_c_o=yes 13319 fi 13320 fi 13321 chmod u+w . 2>&5 13322 $RM conftest* 13323 # SGI C++ compiler will create directory out/ii_files/ for 13324 # template instantiation 13325 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13326 $RM out/* && rmdir out 13327 cd .. 13328 $RM -r conftest 13329 $RM conftest* 13330 13331fi 13332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 13333$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 13334 13335 13336 13337 13338 13339 13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13341$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13342if ${lt_cv_prog_compiler_c_o+:} false; then : 13343 $as_echo_n "(cached) " >&6 13344else 13345 lt_cv_prog_compiler_c_o=no 13346 $RM -r conftest 2>/dev/null 13347 mkdir conftest 13348 cd conftest 13349 mkdir out 13350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13351 13352 lt_compiler_flag="-o out/conftest2.$ac_objext" 13353 # Insert the option either (1) after the last *FLAGS variable, or 13354 # (2) before a word containing "conftest.", or (3) at the end. 13355 # Note that $ac_compile itself does not contain backslashes and begins 13356 # with a dollar sign (not a hyphen), so the echo should work correctly. 13357 lt_compile=`echo "$ac_compile" | $SED \ 13358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13360 -e 's:$: $lt_compiler_flag:'` 13361 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13362 (eval "$lt_compile" 2>out/conftest.err) 13363 ac_status=$? 13364 cat out/conftest.err >&5 13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13366 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13367 then 13368 # The compiler can only warn and ignore the option if not recognized 13369 # So say no if there are warnings 13370 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13371 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13372 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13373 lt_cv_prog_compiler_c_o=yes 13374 fi 13375 fi 13376 chmod u+w . 2>&5 13377 $RM conftest* 13378 # SGI C++ compiler will create directory out/ii_files/ for 13379 # template instantiation 13380 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13381 $RM out/* && rmdir out 13382 cd .. 13383 $RM -r conftest 13384 $RM conftest* 13385 13386fi 13387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 13388$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 13389 13390 13391 13392 13393hard_links="nottested" 13394if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 13395 # do not overwrite the value of need_locks provided by the user 13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 13397$as_echo_n "checking if we can lock with hard links... " >&6; } 13398 hard_links=yes 13399 $RM conftest* 13400 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13401 touch conftest.a 13402 ln conftest.a conftest.b 2>&5 || hard_links=no 13403 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 13405$as_echo "$hard_links" >&6; } 13406 if test "$hard_links" = no; then 13407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13408$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13409 need_locks=warn 13410 fi 13411else 13412 need_locks=no 13413fi 13414 13415 13416 13417 13418 13419 13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13421$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13422 13423 runpath_var= 13424 allow_undefined_flag= 13425 always_export_symbols=no 13426 archive_cmds= 13427 archive_expsym_cmds= 13428 compiler_needs_object=no 13429 enable_shared_with_static_runtimes=no 13430 export_dynamic_flag_spec= 13431 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13432 hardcode_automatic=no 13433 hardcode_direct=no 13434 hardcode_direct_absolute=no 13435 hardcode_libdir_flag_spec= 13436 hardcode_libdir_separator= 13437 hardcode_minus_L=no 13438 hardcode_shlibpath_var=unsupported 13439 inherit_rpath=no 13440 link_all_deplibs=unknown 13441 module_cmds= 13442 module_expsym_cmds= 13443 old_archive_from_new_cmds= 13444 old_archive_from_expsyms_cmds= 13445 thread_safe_flag_spec= 13446 whole_archive_flag_spec= 13447 # include_expsyms should be a list of space-separated symbols to be *always* 13448 # included in the symbol list 13449 include_expsyms= 13450 # exclude_expsyms can be an extended regexp of symbols to exclude 13451 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13452 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13453 # as well as any symbol that contains `d'. 13454 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13455 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13456 # platforms (ab)use it in PIC code, but their linkers get confused if 13457 # the symbol is explicitly referenced. Since portable code cannot 13458 # rely on this symbol name, it's probably fine to never include it in 13459 # preloaded symbol tables. 13460 # Exclude shared library initialization/finalization symbols. 13461 extract_expsyms_cmds= 13462 13463 case $host_os in 13464 cygwin* | mingw* | pw32* | cegcc*) 13465 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13466 # When not using gcc, we currently assume that we are using 13467 # Microsoft Visual C++. 13468 if test "$GCC" != yes; then 13469 with_gnu_ld=no 13470 fi 13471 ;; 13472 interix*) 13473 # we just hope/assume this is gcc and not c89 (= MSVC++) 13474 with_gnu_ld=yes 13475 ;; 13476 openbsd*) 13477 with_gnu_ld=no 13478 ;; 13479 linux* | k*bsd*-gnu | gnu*) 13480 link_all_deplibs=no 13481 ;; 13482 esac 13483 13484 ld_shlibs=yes 13485 13486 # On some targets, GNU ld is compatible enough with the native linker 13487 # that we're better off using the native interface for both. 13488 lt_use_gnu_ld_interface=no 13489 if test "$with_gnu_ld" = yes; then 13490 case $host_os in 13491 aix*) 13492 # The AIX port of GNU ld has always aspired to compatibility 13493 # with the native linker. However, as the warning in the GNU ld 13494 # block says, versions before 2.19.5* couldn't really create working 13495 # shared libraries, regardless of the interface used. 13496 case `$LD -v 2>&1` in 13497 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 13498 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 13499 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 13500 *) 13501 lt_use_gnu_ld_interface=yes 13502 ;; 13503 esac 13504 ;; 13505 *) 13506 lt_use_gnu_ld_interface=yes 13507 ;; 13508 esac 13509 fi 13510 13511 if test "$lt_use_gnu_ld_interface" = yes; then 13512 # If archive_cmds runs LD, not CC, wlarc should be empty 13513 wlarc='${wl}' 13514 13515 # Set some defaults for GNU ld with shared library support. These 13516 # are reset later if shared libraries are not supported. Putting them 13517 # here allows them to be overridden if necessary. 13518 runpath_var=LD_RUN_PATH 13519 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 13520 export_dynamic_flag_spec='${wl}--export-dynamic' 13521 # ancient GNU ld didn't support --whole-archive et. al. 13522 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 13523 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13524 else 13525 whole_archive_flag_spec= 13526 fi 13527 supports_anon_versioning=no 13528 case `$LD -v 2>&1` in 13529 *GNU\ gold*) supports_anon_versioning=yes ;; 13530 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13531 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13532 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13533 *\ 2.11.*) ;; # other 2.11 versions 13534 *) supports_anon_versioning=yes ;; 13535 esac 13536 13537 # See if GNU ld supports shared libraries. 13538 case $host_os in 13539 aix[3-9]*) 13540 # On AIX/PPC, the GNU linker is very broken 13541 if test "$host_cpu" != ia64; then 13542 ld_shlibs=no 13543 cat <<_LT_EOF 1>&2 13544 13545*** Warning: the GNU linker, at least up to release 2.19, is reported 13546*** to be unable to reliably create shared libraries on AIX. 13547*** Therefore, libtool is disabling shared libraries support. If you 13548*** really care for shared libraries, you may want to install binutils 13549*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 13550*** You will then need to restart the configuration process. 13551 13552_LT_EOF 13553 fi 13554 ;; 13555 13556 amigaos*) 13557 case $host_cpu in 13558 powerpc) 13559 # see comment about AmigaOS4 .so support 13560 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13561 archive_expsym_cmds='' 13562 ;; 13563 m68k) 13564 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)' 13565 hardcode_libdir_flag_spec='-L$libdir' 13566 hardcode_minus_L=yes 13567 ;; 13568 esac 13569 ;; 13570 13571 beos*) 13572 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13573 allow_undefined_flag=unsupported 13574 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13575 # support --undefined. This deserves some investigation. FIXME 13576 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13577 else 13578 ld_shlibs=no 13579 fi 13580 ;; 13581 13582 cygwin* | mingw* | pw32* | cegcc*) 13583 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 13584 # as there is no search path for DLLs. 13585 hardcode_libdir_flag_spec='-L$libdir' 13586 export_dynamic_flag_spec='${wl}--export-all-symbols' 13587 allow_undefined_flag=unsupported 13588 always_export_symbols=no 13589 enable_shared_with_static_runtimes=yes 13590 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' 13591 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 13592 13593 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13594 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13595 # If the export-symbols file already is a .def file (1st line 13596 # is EXPORTS), use it as is; otherwise, prepend... 13597 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13598 cp $export_symbols $output_objdir/$soname.def; 13599 else 13600 echo EXPORTS > $output_objdir/$soname.def; 13601 cat $export_symbols >> $output_objdir/$soname.def; 13602 fi~ 13603 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13604 else 13605 ld_shlibs=no 13606 fi 13607 ;; 13608 13609 haiku*) 13610 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13611 link_all_deplibs=yes 13612 ;; 13613 13614 interix[3-9]*) 13615 hardcode_direct=no 13616 hardcode_shlibpath_var=no 13617 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 13618 export_dynamic_flag_spec='${wl}-E' 13619 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13620 # Instead, shared libraries are loaded at an image base (0x10000000 by 13621 # default) and relocated if they conflict, which is a slow very memory 13622 # consuming and fragmenting process. To avoid this, we pick a random, 13623 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13624 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13625 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13626 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' 13627 ;; 13628 13629 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 13630 tmp_diet=no 13631 if test "$host_os" = linux-dietlibc; then 13632 case $cc_basename in 13633 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 13634 esac 13635 fi 13636 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 13637 && test "$tmp_diet" = no 13638 then 13639 tmp_addflag=' $pic_flag' 13640 tmp_sharedflag='-shared' 13641 case $cc_basename,$host_cpu in 13642 pgcc*) # Portland Group C compiler 13643 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' 13644 tmp_addflag=' $pic_flag' 13645 ;; 13646 pgf77* | pgf90* | pgf95* | pgfortran*) 13647 # Portland Group f77 and f90 compilers 13648 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' 13649 tmp_addflag=' $pic_flag -Mnomain' ;; 13650 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 13651 tmp_addflag=' -i_dynamic' ;; 13652 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 13653 tmp_addflag=' -i_dynamic -nofor_main' ;; 13654 ifc* | ifort*) # Intel Fortran compiler 13655 tmp_addflag=' -nofor_main' ;; 13656 lf95*) # Lahey Fortran 8.1 13657 whole_archive_flag_spec= 13658 tmp_sharedflag='--shared' ;; 13659 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 13660 tmp_sharedflag='-qmkshrobj' 13661 tmp_addflag= ;; 13662 nvcc*) # Cuda Compiler Driver 2.2 13663 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' 13664 compiler_needs_object=yes 13665 ;; 13666 esac 13667 case `$CC -V 2>&1 | sed 5q` in 13668 *Sun\ C*) # Sun C 5.9 13669 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' 13670 compiler_needs_object=yes 13671 tmp_sharedflag='-G' ;; 13672 *Sun\ F*) # Sun Fortran 8.3 13673 tmp_sharedflag='-G' ;; 13674 esac 13675 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13676 13677 if test "x$supports_anon_versioning" = xyes; then 13678 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 13679 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13680 echo "local: *; };" >> $output_objdir/$libname.ver~ 13681 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13682 fi 13683 13684 case $cc_basename in 13685 xlf* | bgf* | bgxlf* | mpixlf*) 13686 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 13687 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 13688 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 13689 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 13690 if test "x$supports_anon_versioning" = xyes; then 13691 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 13692 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13693 echo "local: *; };" >> $output_objdir/$libname.ver~ 13694 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 13695 fi 13696 ;; 13697 esac 13698 else 13699 ld_shlibs=no 13700 fi 13701 ;; 13702 13703 netbsd* | netbsdelf*-gnu) 13704 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13705 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13706 wlarc= 13707 else 13708 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13709 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13710 fi 13711 ;; 13712 13713 solaris*) 13714 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 13715 ld_shlibs=no 13716 cat <<_LT_EOF 1>&2 13717 13718*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13719*** create shared libraries on Solaris systems. Therefore, libtool 13720*** is disabling shared libraries support. We urge you to upgrade GNU 13721*** binutils to release 2.9.1 or newer. Another option is to modify 13722*** your PATH or compiler configuration so that the native linker is 13723*** used, and then restart. 13724 13725_LT_EOF 13726 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13727 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13728 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13729 else 13730 ld_shlibs=no 13731 fi 13732 ;; 13733 13734 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 13735 case `$LD -v 2>&1` in 13736 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 13737 ld_shlibs=no 13738 cat <<_LT_EOF 1>&2 13739 13740*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 13741*** reliably create shared libraries on SCO systems. Therefore, libtool 13742*** is disabling shared libraries support. We urge you to upgrade GNU 13743*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 13744*** your PATH or compiler configuration so that the native linker is 13745*** used, and then restart. 13746 13747_LT_EOF 13748 ;; 13749 *) 13750 # For security reasons, it is highly recommended that you always 13751 # use absolute paths for naming shared libraries, and exclude the 13752 # DT_RUNPATH tag from executables and libraries. But doing so 13753 # requires that you compile everything twice, which is a pain. 13754 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 13756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13757 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13758 else 13759 ld_shlibs=no 13760 fi 13761 ;; 13762 esac 13763 ;; 13764 13765 sunos4*) 13766 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13767 wlarc= 13768 hardcode_direct=yes 13769 hardcode_shlibpath_var=no 13770 ;; 13771 13772 *) 13773 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13774 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13775 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13776 else 13777 ld_shlibs=no 13778 fi 13779 ;; 13780 esac 13781 13782 if test "$ld_shlibs" = no; then 13783 runpath_var= 13784 hardcode_libdir_flag_spec= 13785 export_dynamic_flag_spec= 13786 whole_archive_flag_spec= 13787 fi 13788 else 13789 # PORTME fill in a description of your system's linker (not GNU ld) 13790 case $host_os in 13791 aix3*) 13792 allow_undefined_flag=unsupported 13793 always_export_symbols=yes 13794 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' 13795 # Note: this linker hardcodes the directories in LIBPATH if there 13796 # are no directories specified by -L. 13797 hardcode_minus_L=yes 13798 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 13799 # Neither direct hardcoding nor static linking is supported with a 13800 # broken collect2. 13801 hardcode_direct=unsupported 13802 fi 13803 ;; 13804 13805 aix[4-9]*) 13806 if test "$host_cpu" = ia64; then 13807 # On IA64, the linker does run time linking by default, so we don't 13808 # have to do anything special. 13809 aix_use_runtimelinking=no 13810 exp_sym_flag='-Bexport' 13811 no_entry_flag="" 13812 else 13813 # If we're using GNU nm, then we don't want the "-C" option. 13814 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13815 # Also, AIX nm treats weak defined symbols like other global 13816 # defined symbols, whereas GNU nm marks them as "W". 13817 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 13818 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 13819 else 13820 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 13821 fi 13822 aix_use_runtimelinking=no 13823 13824 # Test if we are trying to use run time linking or normal 13825 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13826 # need to do runtime linking. 13827 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13828 for ld_flag in $LDFLAGS; do 13829 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13830 aix_use_runtimelinking=yes 13831 break 13832 fi 13833 done 13834 ;; 13835 esac 13836 13837 exp_sym_flag='-bexport' 13838 no_entry_flag='-bnoentry' 13839 fi 13840 13841 # When large executables or shared objects are built, AIX ld can 13842 # have problems creating the table of contents. If linking a library 13843 # or program results in "error TOC overflow" add -mminimal-toc to 13844 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13845 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13846 13847 archive_cmds='' 13848 hardcode_direct=yes 13849 hardcode_direct_absolute=yes 13850 hardcode_libdir_separator=':' 13851 link_all_deplibs=yes 13852 file_list_spec='${wl}-f,' 13853 13854 if test "$GCC" = yes; then 13855 case $host_os in aix4.[012]|aix4.[012].*) 13856 # We only want to do this on AIX 4.2 and lower, the check 13857 # below for broken collect2 doesn't work under 4.3+ 13858 collect2name=`${CC} -print-prog-name=collect2` 13859 if test -f "$collect2name" && 13860 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13861 then 13862 # We have reworked collect2 13863 : 13864 else 13865 # We have old collect2 13866 hardcode_direct=unsupported 13867 # It fails to find uninstalled libraries when the uninstalled 13868 # path is not listed in the libpath. Setting hardcode_minus_L 13869 # to unsupported forces relinking 13870 hardcode_minus_L=yes 13871 hardcode_libdir_flag_spec='-L$libdir' 13872 hardcode_libdir_separator= 13873 fi 13874 ;; 13875 esac 13876 shared_flag='-shared' 13877 if test "$aix_use_runtimelinking" = yes; then 13878 shared_flag="$shared_flag "'${wl}-G' 13879 fi 13880 link_all_deplibs=no 13881 else 13882 # not using gcc 13883 if test "$host_cpu" = ia64; then 13884 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13885 # chokes on -Wl,-G. The following line is correct: 13886 shared_flag='-G' 13887 else 13888 if test "$aix_use_runtimelinking" = yes; then 13889 shared_flag='${wl}-G' 13890 else 13891 shared_flag='${wl}-bM:SRE' 13892 fi 13893 fi 13894 fi 13895 13896 export_dynamic_flag_spec='${wl}-bexpall' 13897 # It seems that -bexpall does not export symbols beginning with 13898 # underscore (_), so it is better to generate a list of symbols to export. 13899 always_export_symbols=yes 13900 if test "$aix_use_runtimelinking" = yes; then 13901 # Warning - without using the other runtime loading flags (-brtl), 13902 # -berok will link without error, but may produce a broken library. 13903 allow_undefined_flag='-berok' 13904 # Determine the default libpath from the value encoded in an 13905 # empty executable. 13906 if test "${lt_cv_aix_libpath+set}" = set; then 13907 aix_libpath=$lt_cv_aix_libpath 13908else 13909 if ${lt_cv_aix_libpath_+:} false; then : 13910 $as_echo_n "(cached) " >&6 13911else 13912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13913/* end confdefs.h. */ 13914 13915int 13916main () 13917{ 13918 13919 ; 13920 return 0; 13921} 13922_ACEOF 13923if ac_fn_c_try_link "$LINENO"; then : 13924 13925 lt_aix_libpath_sed=' 13926 /Import File Strings/,/^$/ { 13927 /^0/ { 13928 s/^0 *\([^ ]*\) *$/\1/ 13929 p 13930 } 13931 }' 13932 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13933 # Check for a 64-bit object if we didn't find anything. 13934 if test -z "$lt_cv_aix_libpath_"; then 13935 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13936 fi 13937fi 13938rm -f core conftest.err conftest.$ac_objext \ 13939 conftest$ac_exeext conftest.$ac_ext 13940 if test -z "$lt_cv_aix_libpath_"; then 13941 lt_cv_aix_libpath_="/usr/lib:/lib" 13942 fi 13943 13944fi 13945 13946 aix_libpath=$lt_cv_aix_libpath_ 13947fi 13948 13949 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 13950 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 13951 else 13952 if test "$host_cpu" = ia64; then 13953 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 13954 allow_undefined_flag="-z nodefs" 13955 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" 13956 else 13957 # Determine the default libpath from the value encoded in an 13958 # empty executable. 13959 if test "${lt_cv_aix_libpath+set}" = set; then 13960 aix_libpath=$lt_cv_aix_libpath 13961else 13962 if ${lt_cv_aix_libpath_+:} false; then : 13963 $as_echo_n "(cached) " >&6 13964else 13965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13966/* end confdefs.h. */ 13967 13968int 13969main () 13970{ 13971 13972 ; 13973 return 0; 13974} 13975_ACEOF 13976if ac_fn_c_try_link "$LINENO"; then : 13977 13978 lt_aix_libpath_sed=' 13979 /Import File Strings/,/^$/ { 13980 /^0/ { 13981 s/^0 *\([^ ]*\) *$/\1/ 13982 p 13983 } 13984 }' 13985 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13986 # Check for a 64-bit object if we didn't find anything. 13987 if test -z "$lt_cv_aix_libpath_"; then 13988 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13989 fi 13990fi 13991rm -f core conftest.err conftest.$ac_objext \ 13992 conftest$ac_exeext conftest.$ac_ext 13993 if test -z "$lt_cv_aix_libpath_"; then 13994 lt_cv_aix_libpath_="/usr/lib:/lib" 13995 fi 13996 13997fi 13998 13999 aix_libpath=$lt_cv_aix_libpath_ 14000fi 14001 14002 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 14003 # Warning - without using the other run time loading flags, 14004 # -berok will link without error, but may produce a broken library. 14005 no_undefined_flag=' ${wl}-bernotok' 14006 allow_undefined_flag=' ${wl}-berok' 14007 if test "$with_gnu_ld" = yes; then 14008 # We only use this code for GNU lds that support --whole-archive. 14009 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 14010 else 14011 # Exported symbols can be pulled into shared objects from archives 14012 whole_archive_flag_spec='$convenience' 14013 fi 14014 archive_cmds_need_lc=yes 14015 # This is similar to how AIX traditionally builds its shared libraries. 14016 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 14017 fi 14018 fi 14019 ;; 14020 14021 amigaos*) 14022 case $host_cpu in 14023 powerpc) 14024 # see comment about AmigaOS4 .so support 14025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14026 archive_expsym_cmds='' 14027 ;; 14028 m68k) 14029 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)' 14030 hardcode_libdir_flag_spec='-L$libdir' 14031 hardcode_minus_L=yes 14032 ;; 14033 esac 14034 ;; 14035 14036 bsdi[45]*) 14037 export_dynamic_flag_spec=-rdynamic 14038 ;; 14039 14040 cygwin* | mingw* | pw32* | cegcc*) 14041 # When not using gcc, we currently assume that we are using 14042 # Microsoft Visual C++. 14043 # hardcode_libdir_flag_spec is actually meaningless, as there is 14044 # no search path for DLLs. 14045 case $cc_basename in 14046 cl*) 14047 # Native MSVC 14048 hardcode_libdir_flag_spec=' ' 14049 allow_undefined_flag=unsupported 14050 always_export_symbols=yes 14051 file_list_spec='@' 14052 # Tell ltmain to make .lib files, not .a files. 14053 libext=lib 14054 # Tell ltmain to make .dll files, not .so files. 14055 shrext_cmds=".dll" 14056 # FIXME: Setting linknames here is a bad hack. 14057 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 14058 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14059 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 14060 else 14061 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 14062 fi~ 14063 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14064 linknames=' 14065 # The linker will not automatically build a static lib if we build a DLL. 14066 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 14067 enable_shared_with_static_runtimes=yes 14068 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14069 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14070 # Don't use ranlib 14071 old_postinstall_cmds='chmod 644 $oldlib' 14072 postlink_cmds='lt_outputfile="@OUTPUT@"~ 14073 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14074 case $lt_outputfile in 14075 *.exe|*.EXE) ;; 14076 *) 14077 lt_outputfile="$lt_outputfile.exe" 14078 lt_tool_outputfile="$lt_tool_outputfile.exe" 14079 ;; 14080 esac~ 14081 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 14082 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14083 $RM "$lt_outputfile.manifest"; 14084 fi' 14085 ;; 14086 *) 14087 # Assume MSVC wrapper 14088 hardcode_libdir_flag_spec=' ' 14089 allow_undefined_flag=unsupported 14090 # Tell ltmain to make .lib files, not .a files. 14091 libext=lib 14092 # Tell ltmain to make .dll files, not .so files. 14093 shrext_cmds=".dll" 14094 # FIXME: Setting linknames here is a bad hack. 14095 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 14096 # The linker will automatically build a .lib file if we build a DLL. 14097 old_archive_from_new_cmds='true' 14098 # FIXME: Should let the user specify the lib program. 14099 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 14100 enable_shared_with_static_runtimes=yes 14101 ;; 14102 esac 14103 ;; 14104 14105 darwin* | rhapsody*) 14106 14107 14108 archive_cmds_need_lc=no 14109 hardcode_direct=no 14110 hardcode_automatic=yes 14111 hardcode_shlibpath_var=unsupported 14112 if test "$lt_cv_ld_force_load" = "yes"; then 14113 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\"`' 14114 14115 else 14116 whole_archive_flag_spec='' 14117 fi 14118 link_all_deplibs=yes 14119 allow_undefined_flag="$_lt_dar_allow_undefined" 14120 case $cc_basename in 14121 ifort*) _lt_dar_can_shared=yes ;; 14122 *) _lt_dar_can_shared=$GCC ;; 14123 esac 14124 if test "$_lt_dar_can_shared" = "yes"; then 14125 output_verbose_link_cmd=func_echo_all 14126 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 14127 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 14128 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}" 14129 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}" 14130 14131 else 14132 ld_shlibs=no 14133 fi 14134 14135 ;; 14136 14137 dgux*) 14138 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14139 hardcode_libdir_flag_spec='-L$libdir' 14140 hardcode_shlibpath_var=no 14141 ;; 14142 14143 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14144 # support. Future versions do this automatically, but an explicit c++rt0.o 14145 # does not break anything, and helps significantly (at the cost of a little 14146 # extra space). 14147 freebsd2.2*) 14148 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14149 hardcode_libdir_flag_spec='-R$libdir' 14150 hardcode_direct=yes 14151 hardcode_shlibpath_var=no 14152 ;; 14153 14154 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14155 freebsd2.*) 14156 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14157 hardcode_direct=yes 14158 hardcode_minus_L=yes 14159 hardcode_shlibpath_var=no 14160 ;; 14161 14162 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14163 freebsd* | dragonfly*) 14164 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14165 hardcode_libdir_flag_spec='-R$libdir' 14166 hardcode_direct=yes 14167 hardcode_shlibpath_var=no 14168 ;; 14169 14170 hpux9*) 14171 if test "$GCC" = yes; then 14172 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14173 else 14174 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14175 fi 14176 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 14177 hardcode_libdir_separator=: 14178 hardcode_direct=yes 14179 14180 # hardcode_minus_L: Not really in the search PATH, 14181 # but as the default location of the library. 14182 hardcode_minus_L=yes 14183 export_dynamic_flag_spec='${wl}-E' 14184 ;; 14185 14186 hpux10*) 14187 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 14188 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14189 else 14190 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14191 fi 14192 if test "$with_gnu_ld" = no; then 14193 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 14194 hardcode_libdir_separator=: 14195 hardcode_direct=yes 14196 hardcode_direct_absolute=yes 14197 export_dynamic_flag_spec='${wl}-E' 14198 # hardcode_minus_L: Not really in the search PATH, 14199 # but as the default location of the library. 14200 hardcode_minus_L=yes 14201 fi 14202 ;; 14203 14204 hpux11*) 14205 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 14206 case $host_cpu in 14207 hppa*64*) 14208 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14209 ;; 14210 ia64*) 14211 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14212 ;; 14213 *) 14214 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14215 ;; 14216 esac 14217 else 14218 case $host_cpu in 14219 hppa*64*) 14220 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14221 ;; 14222 ia64*) 14223 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14224 ;; 14225 *) 14226 14227 # Older versions of the 11.00 compiler do not understand -b yet 14228 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 14230$as_echo_n "checking if $CC understands -b... " >&6; } 14231if ${lt_cv_prog_compiler__b+:} false; then : 14232 $as_echo_n "(cached) " >&6 14233else 14234 lt_cv_prog_compiler__b=no 14235 save_LDFLAGS="$LDFLAGS" 14236 LDFLAGS="$LDFLAGS -b" 14237 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14238 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14239 # The linker can only warn and ignore the option if not recognized 14240 # So say no if there are warnings 14241 if test -s conftest.err; then 14242 # Append any errors to the config.log. 14243 cat conftest.err 1>&5 14244 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14245 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14246 if diff conftest.exp conftest.er2 >/dev/null; then 14247 lt_cv_prog_compiler__b=yes 14248 fi 14249 else 14250 lt_cv_prog_compiler__b=yes 14251 fi 14252 fi 14253 $RM -r conftest* 14254 LDFLAGS="$save_LDFLAGS" 14255 14256fi 14257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 14258$as_echo "$lt_cv_prog_compiler__b" >&6; } 14259 14260if test x"$lt_cv_prog_compiler__b" = xyes; then 14261 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14262else 14263 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14264fi 14265 14266 ;; 14267 esac 14268 fi 14269 if test "$with_gnu_ld" = no; then 14270 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 14271 hardcode_libdir_separator=: 14272 14273 case $host_cpu in 14274 hppa*64*|ia64*) 14275 hardcode_direct=no 14276 hardcode_shlibpath_var=no 14277 ;; 14278 *) 14279 hardcode_direct=yes 14280 hardcode_direct_absolute=yes 14281 export_dynamic_flag_spec='${wl}-E' 14282 14283 # hardcode_minus_L: Not really in the search PATH, 14284 # but as the default location of the library. 14285 hardcode_minus_L=yes 14286 ;; 14287 esac 14288 fi 14289 ;; 14290 14291 irix5* | irix6* | nonstopux*) 14292 if test "$GCC" = yes; then 14293 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' 14294 # Try to use the -exported_symbol ld option, if it does not 14295 # work, assume that -exports_file does not work either and 14296 # implicitly export all symbols. 14297 # This should be the same for all languages, so no per-tag cache variable. 14298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 14299$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 14300if ${lt_cv_irix_exported_symbol+:} false; then : 14301 $as_echo_n "(cached) " >&6 14302else 14303 save_LDFLAGS="$LDFLAGS" 14304 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 14305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14306/* end confdefs.h. */ 14307int foo (void) { return 0; } 14308_ACEOF 14309if ac_fn_c_try_link "$LINENO"; then : 14310 lt_cv_irix_exported_symbol=yes 14311else 14312 lt_cv_irix_exported_symbol=no 14313fi 14314rm -f core conftest.err conftest.$ac_objext \ 14315 conftest$ac_exeext conftest.$ac_ext 14316 LDFLAGS="$save_LDFLAGS" 14317fi 14318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 14319$as_echo "$lt_cv_irix_exported_symbol" >&6; } 14320 if test "$lt_cv_irix_exported_symbol" = yes; then 14321 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' 14322 fi 14323 else 14324 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' 14325 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' 14326 fi 14327 archive_cmds_need_lc='no' 14328 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 14329 hardcode_libdir_separator=: 14330 inherit_rpath=yes 14331 link_all_deplibs=yes 14332 ;; 14333 14334 netbsd* | netbsdelf*-gnu) 14335 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14336 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14337 else 14338 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14339 fi 14340 hardcode_libdir_flag_spec='-R$libdir' 14341 hardcode_direct=yes 14342 hardcode_shlibpath_var=no 14343 ;; 14344 14345 newsos6) 14346 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14347 hardcode_direct=yes 14348 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 14349 hardcode_libdir_separator=: 14350 hardcode_shlibpath_var=no 14351 ;; 14352 14353 *nto* | *qnx*) 14354 ;; 14355 14356 openbsd*) 14357 if test -f /usr/libexec/ld.so; then 14358 hardcode_direct=yes 14359 hardcode_shlibpath_var=no 14360 hardcode_direct_absolute=yes 14361 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14362 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14363 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14364 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 14365 export_dynamic_flag_spec='${wl}-E' 14366 else 14367 case $host_os in 14368 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14369 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14370 hardcode_libdir_flag_spec='-R$libdir' 14371 ;; 14372 *) 14373 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14374 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 14375 ;; 14376 esac 14377 fi 14378 else 14379 ld_shlibs=no 14380 fi 14381 ;; 14382 14383 os2*) 14384 hardcode_libdir_flag_spec='-L$libdir' 14385 hardcode_minus_L=yes 14386 allow_undefined_flag=unsupported 14387 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 14388 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14389 ;; 14390 14391 osf3*) 14392 if test "$GCC" = yes; then 14393 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 14394 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' 14395 else 14396 allow_undefined_flag=' -expect_unresolved \*' 14397 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' 14398 fi 14399 archive_cmds_need_lc='no' 14400 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 14401 hardcode_libdir_separator=: 14402 ;; 14403 14404 osf4* | osf5*) # as osf3* with the addition of -msym flag 14405 if test "$GCC" = yes; then 14406 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 14407 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' 14408 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 14409 else 14410 allow_undefined_flag=' -expect_unresolved \*' 14411 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' 14412 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~ 14413 $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' 14414 14415 # Both c and cxx compiler support -rpath directly 14416 hardcode_libdir_flag_spec='-rpath $libdir' 14417 fi 14418 archive_cmds_need_lc='no' 14419 hardcode_libdir_separator=: 14420 ;; 14421 14422 solaris*) 14423 no_undefined_flag=' -z defs' 14424 if test "$GCC" = yes; then 14425 wlarc='${wl}' 14426 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14427 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14428 $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' 14429 else 14430 case `$CC -V 2>&1` in 14431 *"Compilers 5.0"*) 14432 wlarc='' 14433 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14434 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14435 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 14436 ;; 14437 *) 14438 wlarc='${wl}' 14439 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 14440 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14441 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 14442 ;; 14443 esac 14444 fi 14445 hardcode_libdir_flag_spec='-R$libdir' 14446 hardcode_shlibpath_var=no 14447 case $host_os in 14448 solaris2.[0-5] | solaris2.[0-5].*) ;; 14449 *) 14450 # The compiler driver will combine and reorder linker options, 14451 # but understands `-z linker_flag'. GCC discards it without `$wl', 14452 # but is careful enough not to reorder. 14453 # Supported since Solaris 2.6 (maybe 2.5.1?) 14454 if test "$GCC" = yes; then 14455 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 14456 else 14457 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 14458 fi 14459 ;; 14460 esac 14461 link_all_deplibs=yes 14462 ;; 14463 14464 sunos4*) 14465 if test "x$host_vendor" = xsequent; then 14466 # Use $CC to link under sequent, because it throws in some extra .o 14467 # files that make .init and .fini sections work. 14468 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14469 else 14470 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14471 fi 14472 hardcode_libdir_flag_spec='-L$libdir' 14473 hardcode_direct=yes 14474 hardcode_minus_L=yes 14475 hardcode_shlibpath_var=no 14476 ;; 14477 14478 sysv4) 14479 case $host_vendor in 14480 sni) 14481 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14482 hardcode_direct=yes # is this really true??? 14483 ;; 14484 siemens) 14485 ## LD is ld it makes a PLAMLIB 14486 ## CC just makes a GrossModule. 14487 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14488 reload_cmds='$CC -r -o $output$reload_objs' 14489 hardcode_direct=no 14490 ;; 14491 motorola) 14492 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14493 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 14494 ;; 14495 esac 14496 runpath_var='LD_RUN_PATH' 14497 hardcode_shlibpath_var=no 14498 ;; 14499 14500 sysv4.3*) 14501 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14502 hardcode_shlibpath_var=no 14503 export_dynamic_flag_spec='-Bexport' 14504 ;; 14505 14506 sysv4*MP*) 14507 if test -d /usr/nec; then 14508 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14509 hardcode_shlibpath_var=no 14510 runpath_var=LD_RUN_PATH 14511 hardcode_runpath_var=yes 14512 ld_shlibs=yes 14513 fi 14514 ;; 14515 14516 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14517 no_undefined_flag='${wl}-z,text' 14518 archive_cmds_need_lc=no 14519 hardcode_shlibpath_var=no 14520 runpath_var='LD_RUN_PATH' 14521 14522 if test "$GCC" = yes; then 14523 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14524 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14525 else 14526 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14527 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14528 fi 14529 ;; 14530 14531 sysv5* | sco3.2v5* | sco5v6*) 14532 # Note: We can NOT use -z defs as we might desire, because we do not 14533 # link with -lc, and that would cause any symbols used from libc to 14534 # always be unresolved, which means just about no library would 14535 # ever link correctly. If we're not using GNU ld we use -z text 14536 # though, which does catch some bad symbols but isn't as heavy-handed 14537 # as -z defs. 14538 no_undefined_flag='${wl}-z,text' 14539 allow_undefined_flag='${wl}-z,nodefs' 14540 archive_cmds_need_lc=no 14541 hardcode_shlibpath_var=no 14542 hardcode_libdir_flag_spec='${wl}-R,$libdir' 14543 hardcode_libdir_separator=':' 14544 link_all_deplibs=yes 14545 export_dynamic_flag_spec='${wl}-Bexport' 14546 runpath_var='LD_RUN_PATH' 14547 14548 if test "$GCC" = yes; then 14549 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14550 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14551 else 14552 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14553 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14554 fi 14555 ;; 14556 14557 uts4*) 14558 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14559 hardcode_libdir_flag_spec='-L$libdir' 14560 hardcode_shlibpath_var=no 14561 ;; 14562 14563 *) 14564 ld_shlibs=no 14565 ;; 14566 esac 14567 14568 if test x$host_vendor = xsni; then 14569 case $host in 14570 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14571 export_dynamic_flag_spec='${wl}-Blargedynsym' 14572 ;; 14573 esac 14574 fi 14575 fi 14576 14577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 14578$as_echo "$ld_shlibs" >&6; } 14579test "$ld_shlibs" = no && can_build_shared=no 14580 14581with_gnu_ld=$with_gnu_ld 14582 14583 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593 14594 14595 14596 14597# 14598# Do we need to explicitly link libc? 14599# 14600case "x$archive_cmds_need_lc" in 14601x|xyes) 14602 # Assume -lc should be added 14603 archive_cmds_need_lc=yes 14604 14605 if test "$enable_shared" = yes && test "$GCC" = yes; then 14606 case $archive_cmds in 14607 *'~'*) 14608 # FIXME: we may have to deal with multi-command sequences. 14609 ;; 14610 '$CC '*) 14611 # Test whether the compiler implicitly links with -lc since on some 14612 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14613 # to ld, don't add -lc before -lgcc. 14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14615$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14616if ${lt_cv_archive_cmds_need_lc+:} false; then : 14617 $as_echo_n "(cached) " >&6 14618else 14619 $RM conftest* 14620 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14621 14622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14623 (eval $ac_compile) 2>&5 14624 ac_status=$? 14625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14626 test $ac_status = 0; } 2>conftest.err; then 14627 soname=conftest 14628 lib=conftest 14629 libobjs=conftest.$ac_objext 14630 deplibs= 14631 wl=$lt_prog_compiler_wl 14632 pic_flag=$lt_prog_compiler_pic 14633 compiler_flags=-v 14634 linker_flags=-v 14635 verstring= 14636 output_objdir=. 14637 libname=conftest 14638 lt_save_allow_undefined_flag=$allow_undefined_flag 14639 allow_undefined_flag= 14640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14641 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14642 ac_status=$? 14643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14644 test $ac_status = 0; } 14645 then 14646 lt_cv_archive_cmds_need_lc=no 14647 else 14648 lt_cv_archive_cmds_need_lc=yes 14649 fi 14650 allow_undefined_flag=$lt_save_allow_undefined_flag 14651 else 14652 cat conftest.err 1>&5 14653 fi 14654 $RM conftest* 14655 14656fi 14657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 14658$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 14659 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 14660 ;; 14661 esac 14662 fi 14663 ;; 14664esac 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 14696 14697 14698 14699 14700 14701 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717 14718 14719 14720 14721 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740 14741 14742 14743 14744 14745 14746 14747 14748 14749 14750 14751 14752 14753 14754 14755 14756 14757 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771 14772 14773 14774 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14818$as_echo_n "checking dynamic linker characteristics... " >&6; } 14819 14820if test "$GCC" = yes; then 14821 case $host_os in 14822 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 14823 *) lt_awk_arg="/^libraries:/" ;; 14824 esac 14825 case $host_os in 14826 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 14827 *) lt_sed_strip_eq="s,=/,/,g" ;; 14828 esac 14829 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 14830 case $lt_search_path_spec in 14831 *\;*) 14832 # if the path contains ";" then we assume it to be the separator 14833 # otherwise default to the standard path separator (i.e. ":") - it is 14834 # assumed that no part of a normal pathname contains ";" but that should 14835 # okay in the real world where ";" in dirpaths is itself problematic. 14836 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 14837 ;; 14838 *) 14839 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 14840 ;; 14841 esac 14842 # Ok, now we have the path, separated by spaces, we can step through it 14843 # and add multilib dir if necessary. 14844 lt_tmp_lt_search_path_spec= 14845 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 14846 for lt_sys_path in $lt_search_path_spec; do 14847 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 14848 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 14849 else 14850 test -d "$lt_sys_path" && \ 14851 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 14852 fi 14853 done 14854 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 14855BEGIN {RS=" "; FS="/|\n";} { 14856 lt_foo=""; 14857 lt_count=0; 14858 for (lt_i = NF; lt_i > 0; lt_i--) { 14859 if ($lt_i != "" && $lt_i != ".") { 14860 if ($lt_i == "..") { 14861 lt_count++; 14862 } else { 14863 if (lt_count == 0) { 14864 lt_foo="/" $lt_i lt_foo; 14865 } else { 14866 lt_count--; 14867 } 14868 } 14869 } 14870 } 14871 if (lt_foo != "") { lt_freq[lt_foo]++; } 14872 if (lt_freq[lt_foo] == 1) { print lt_foo; } 14873}'` 14874 # AWK program above erroneously prepends '/' to C:/dos/paths 14875 # for these hosts. 14876 case $host_os in 14877 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 14878 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 14879 esac 14880 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 14881else 14882 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14883fi 14884library_names_spec= 14885libname_spec='lib$name' 14886soname_spec= 14887shrext_cmds=".so" 14888postinstall_cmds= 14889postuninstall_cmds= 14890finish_cmds= 14891finish_eval= 14892shlibpath_var= 14893shlibpath_overrides_runpath=unknown 14894version_type=none 14895dynamic_linker="$host_os ld.so" 14896sys_lib_dlsearch_path_spec="/lib /usr/lib" 14897need_lib_prefix=unknown 14898hardcode_into_libs=no 14899 14900# when you set need_version to no, make sure it does not cause -set_version 14901# flags to be left without arguments 14902need_version=unknown 14903 14904case $host_os in 14905aix3*) 14906 version_type=linux # correct to gnu/linux during the next big refactor 14907 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14908 shlibpath_var=LIBPATH 14909 14910 # AIX 3 has no versioning support, so we append a major version to the name. 14911 soname_spec='${libname}${release}${shared_ext}$major' 14912 ;; 14913 14914aix[4-9]*) 14915 version_type=linux # correct to gnu/linux during the next big refactor 14916 need_lib_prefix=no 14917 need_version=no 14918 hardcode_into_libs=yes 14919 if test "$host_cpu" = ia64; then 14920 # AIX 5 supports IA64 14921 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14922 shlibpath_var=LD_LIBRARY_PATH 14923 else 14924 # With GCC up to 2.95.x, collect2 would create an import file 14925 # for dependence libraries. The import file would start with 14926 # the line `#! .'. This would cause the generated library to 14927 # depend on `.', always an invalid library. This was fixed in 14928 # development snapshots of GCC prior to 3.0. 14929 case $host_os in 14930 aix4 | aix4.[01] | aix4.[01].*) 14931 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14932 echo ' yes ' 14933 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14934 : 14935 else 14936 can_build_shared=no 14937 fi 14938 ;; 14939 esac 14940 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14941 # soname into executable. Probably we can add versioning support to 14942 # collect2, so additional links can be useful in future. 14943 if test "$aix_use_runtimelinking" = yes; then 14944 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14945 # instead of lib<name>.a to let people know that these are not 14946 # typical AIX shared libraries. 14947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14948 else 14949 # We preserve .a as extension for shared libraries through AIX4.2 14950 # and later when we are not doing run time linking. 14951 library_names_spec='${libname}${release}.a $libname.a' 14952 soname_spec='${libname}${release}${shared_ext}$major' 14953 fi 14954 shlibpath_var=LIBPATH 14955 fi 14956 ;; 14957 14958amigaos*) 14959 case $host_cpu in 14960 powerpc) 14961 # Since July 2007 AmigaOS4 officially supports .so libraries. 14962 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14964 ;; 14965 m68k) 14966 library_names_spec='$libname.ixlibrary $libname.a' 14967 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14968 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 14969 ;; 14970 esac 14971 ;; 14972 14973beos*) 14974 library_names_spec='${libname}${shared_ext}' 14975 dynamic_linker="$host_os ld.so" 14976 shlibpath_var=LIBRARY_PATH 14977 ;; 14978 14979bsdi[45]*) 14980 version_type=linux # correct to gnu/linux during the next big refactor 14981 need_version=no 14982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14983 soname_spec='${libname}${release}${shared_ext}$major' 14984 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14985 shlibpath_var=LD_LIBRARY_PATH 14986 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14987 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14988 # the default ld.so.conf also contains /usr/contrib/lib and 14989 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14990 # libtool to hard-code these into programs 14991 ;; 14992 14993cygwin* | mingw* | pw32* | cegcc*) 14994 version_type=windows 14995 shrext_cmds=".dll" 14996 need_version=no 14997 need_lib_prefix=no 14998 14999 case $GCC,$cc_basename in 15000 yes,*) 15001 # gcc 15002 library_names_spec='$libname.dll.a' 15003 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15004 postinstall_cmds='base_file=`basename \${file}`~ 15005 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15006 dldir=$destdir/`dirname \$dlpath`~ 15007 test -d \$dldir || mkdir -p \$dldir~ 15008 $install_prog $dir/$dlname \$dldir/$dlname~ 15009 chmod a+x \$dldir/$dlname~ 15010 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15011 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15012 fi' 15013 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15014 dlpath=$dir/\$dldll~ 15015 $RM \$dlpath' 15016 shlibpath_overrides_runpath=yes 15017 15018 case $host_os in 15019 cygwin*) 15020 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15021 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15022 15023 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 15024 ;; 15025 mingw* | cegcc*) 15026 # MinGW DLLs use traditional 'lib' prefix 15027 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15028 ;; 15029 pw32*) 15030 # pw32 DLLs use 'pw' prefix rather than 'lib' 15031 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15032 ;; 15033 esac 15034 dynamic_linker='Win32 ld.exe' 15035 ;; 15036 15037 *,cl*) 15038 # Native MSVC 15039 libname_spec='$name' 15040 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15041 library_names_spec='${libname}.dll.lib' 15042 15043 case $build_os in 15044 mingw*) 15045 sys_lib_search_path_spec= 15046 lt_save_ifs=$IFS 15047 IFS=';' 15048 for lt_path in $LIB 15049 do 15050 IFS=$lt_save_ifs 15051 # Let DOS variable expansion print the short 8.3 style file name. 15052 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15053 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15054 done 15055 IFS=$lt_save_ifs 15056 # Convert to MSYS style. 15057 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15058 ;; 15059 cygwin*) 15060 # Convert to unix form, then to dos form, then back to unix form 15061 # but this time dos style (no spaces!) so that the unix form looks 15062 # like /cygdrive/c/PROGRA~1:/cygdr... 15063 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15064 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15065 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15066 ;; 15067 *) 15068 sys_lib_search_path_spec="$LIB" 15069 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15070 # It is most probably a Windows format PATH. 15071 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15072 else 15073 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15074 fi 15075 # FIXME: find the short name or the path components, as spaces are 15076 # common. (e.g. "Program Files" -> "PROGRA~1") 15077 ;; 15078 esac 15079 15080 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15081 postinstall_cmds='base_file=`basename \${file}`~ 15082 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15083 dldir=$destdir/`dirname \$dlpath`~ 15084 test -d \$dldir || mkdir -p \$dldir~ 15085 $install_prog $dir/$dlname \$dldir/$dlname' 15086 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15087 dlpath=$dir/\$dldll~ 15088 $RM \$dlpath' 15089 shlibpath_overrides_runpath=yes 15090 dynamic_linker='Win32 link.exe' 15091 ;; 15092 15093 *) 15094 # Assume MSVC wrapper 15095 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15096 dynamic_linker='Win32 ld.exe' 15097 ;; 15098 esac 15099 # FIXME: first we should search . and the directory the executable is in 15100 shlibpath_var=PATH 15101 ;; 15102 15103darwin* | rhapsody*) 15104 dynamic_linker="$host_os dyld" 15105 version_type=darwin 15106 need_lib_prefix=no 15107 need_version=no 15108 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15109 soname_spec='${libname}${release}${major}$shared_ext' 15110 shlibpath_overrides_runpath=yes 15111 shlibpath_var=DYLD_LIBRARY_PATH 15112 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15113 15114 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 15115 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15116 ;; 15117 15118dgux*) 15119 version_type=linux # correct to gnu/linux during the next big refactor 15120 need_lib_prefix=no 15121 need_version=no 15122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15123 soname_spec='${libname}${release}${shared_ext}$major' 15124 shlibpath_var=LD_LIBRARY_PATH 15125 ;; 15126 15127freebsd* | dragonfly*) 15128 # DragonFly does not have aout. When/if they implement a new 15129 # versioning mechanism, adjust this. 15130 if test -x /usr/bin/objformat; then 15131 objformat=`/usr/bin/objformat` 15132 else 15133 case $host_os in 15134 freebsd[23].*) objformat=aout ;; 15135 *) objformat=elf ;; 15136 esac 15137 fi 15138 version_type=freebsd-$objformat 15139 case $version_type in 15140 freebsd-elf*) 15141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15142 need_version=no 15143 need_lib_prefix=no 15144 ;; 15145 freebsd-*) 15146 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15147 need_version=yes 15148 ;; 15149 esac 15150 shlibpath_var=LD_LIBRARY_PATH 15151 case $host_os in 15152 freebsd2.*) 15153 shlibpath_overrides_runpath=yes 15154 ;; 15155 freebsd3.[01]* | freebsdelf3.[01]*) 15156 shlibpath_overrides_runpath=yes 15157 hardcode_into_libs=yes 15158 ;; 15159 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15160 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15161 shlibpath_overrides_runpath=no 15162 hardcode_into_libs=yes 15163 ;; 15164 *) # from 4.6 on, and DragonFly 15165 shlibpath_overrides_runpath=yes 15166 hardcode_into_libs=yes 15167 ;; 15168 esac 15169 ;; 15170 15171haiku*) 15172 version_type=linux # correct to gnu/linux during the next big refactor 15173 need_lib_prefix=no 15174 need_version=no 15175 dynamic_linker="$host_os runtime_loader" 15176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15177 soname_spec='${libname}${release}${shared_ext}$major' 15178 shlibpath_var=LIBRARY_PATH 15179 shlibpath_overrides_runpath=yes 15180 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15181 hardcode_into_libs=yes 15182 ;; 15183 15184hpux9* | hpux10* | hpux11*) 15185 # Give a soname corresponding to the major version so that dld.sl refuses to 15186 # link against other versions. 15187 version_type=sunos 15188 need_lib_prefix=no 15189 need_version=no 15190 case $host_cpu in 15191 ia64*) 15192 shrext_cmds='.so' 15193 hardcode_into_libs=yes 15194 dynamic_linker="$host_os dld.so" 15195 shlibpath_var=LD_LIBRARY_PATH 15196 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15198 soname_spec='${libname}${release}${shared_ext}$major' 15199 if test "X$HPUX_IA64_MODE" = X32; then 15200 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15201 else 15202 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15203 fi 15204 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15205 ;; 15206 hppa*64*) 15207 shrext_cmds='.sl' 15208 hardcode_into_libs=yes 15209 dynamic_linker="$host_os dld.sl" 15210 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15211 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15213 soname_spec='${libname}${release}${shared_ext}$major' 15214 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15215 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15216 ;; 15217 *) 15218 shrext_cmds='.sl' 15219 dynamic_linker="$host_os dld.sl" 15220 shlibpath_var=SHLIB_PATH 15221 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15223 soname_spec='${libname}${release}${shared_ext}$major' 15224 ;; 15225 esac 15226 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15227 postinstall_cmds='chmod 555 $lib' 15228 # or fails outright, so override atomically: 15229 install_override_mode=555 15230 ;; 15231 15232interix[3-9]*) 15233 version_type=linux # correct to gnu/linux during the next big refactor 15234 need_lib_prefix=no 15235 need_version=no 15236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15237 soname_spec='${libname}${release}${shared_ext}$major' 15238 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15239 shlibpath_var=LD_LIBRARY_PATH 15240 shlibpath_overrides_runpath=no 15241 hardcode_into_libs=yes 15242 ;; 15243 15244irix5* | irix6* | nonstopux*) 15245 case $host_os in 15246 nonstopux*) version_type=nonstopux ;; 15247 *) 15248 if test "$lt_cv_prog_gnu_ld" = yes; then 15249 version_type=linux # correct to gnu/linux during the next big refactor 15250 else 15251 version_type=irix 15252 fi ;; 15253 esac 15254 need_lib_prefix=no 15255 need_version=no 15256 soname_spec='${libname}${release}${shared_ext}$major' 15257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15258 case $host_os in 15259 irix5* | nonstopux*) 15260 libsuff= shlibsuff= 15261 ;; 15262 *) 15263 case $LD in # libtool.m4 will add one of these switches to LD 15264 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15265 libsuff= shlibsuff= libmagic=32-bit;; 15266 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15267 libsuff=32 shlibsuff=N32 libmagic=N32;; 15268 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15269 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15270 *) libsuff= shlibsuff= libmagic=never-match;; 15271 esac 15272 ;; 15273 esac 15274 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15275 shlibpath_overrides_runpath=no 15276 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15277 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15278 hardcode_into_libs=yes 15279 ;; 15280 15281# No shared lib support for Linux oldld, aout, or coff. 15282linux*oldld* | linux*aout* | linux*coff*) 15283 dynamic_linker=no 15284 ;; 15285 15286# This must be glibc/ELF. 15287linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15288 version_type=linux # correct to gnu/linux during the next big refactor 15289 need_lib_prefix=no 15290 need_version=no 15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15292 soname_spec='${libname}${release}${shared_ext}$major' 15293 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15294 shlibpath_var=LD_LIBRARY_PATH 15295 shlibpath_overrides_runpath=no 15296 15297 # Some binutils ld are patched to set DT_RUNPATH 15298 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15299 $as_echo_n "(cached) " >&6 15300else 15301 lt_cv_shlibpath_overrides_runpath=no 15302 save_LDFLAGS=$LDFLAGS 15303 save_libdir=$libdir 15304 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 15305 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 15306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15307/* end confdefs.h. */ 15308 15309int 15310main () 15311{ 15312 15313 ; 15314 return 0; 15315} 15316_ACEOF 15317if ac_fn_c_try_link "$LINENO"; then : 15318 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15319 lt_cv_shlibpath_overrides_runpath=yes 15320fi 15321fi 15322rm -f core conftest.err conftest.$ac_objext \ 15323 conftest$ac_exeext conftest.$ac_ext 15324 LDFLAGS=$save_LDFLAGS 15325 libdir=$save_libdir 15326 15327fi 15328 15329 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15330 15331 # This implies no fast_install, which is unacceptable. 15332 # Some rework will be needed to allow for fast_install 15333 # before this can be enabled. 15334 hardcode_into_libs=yes 15335 15336 # Append ld.so.conf contents to the search path 15337 if test -f /etc/ld.so.conf; then 15338 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' ' '` 15339 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15340 fi 15341 15342 # We used to test for /lib/ld.so.1 and disable shared libraries on 15343 # powerpc, because MkLinux only supported shared libraries with the 15344 # GNU dynamic linker. Since this was broken with cross compilers, 15345 # most powerpc-linux boxes support dynamic linking these days and 15346 # people can always --disable-shared, the test was removed, and we 15347 # assume the GNU/Linux dynamic linker is in use. 15348 dynamic_linker='GNU/Linux ld.so' 15349 ;; 15350 15351netbsdelf*-gnu) 15352 version_type=linux 15353 need_lib_prefix=no 15354 need_version=no 15355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15356 soname_spec='${libname}${release}${shared_ext}$major' 15357 shlibpath_var=LD_LIBRARY_PATH 15358 shlibpath_overrides_runpath=no 15359 hardcode_into_libs=yes 15360 dynamic_linker='NetBSD ld.elf_so' 15361 ;; 15362 15363netbsd*) 15364 version_type=sunos 15365 need_lib_prefix=no 15366 need_version=no 15367 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15370 dynamic_linker='NetBSD (a.out) ld.so' 15371 else 15372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15373 soname_spec='${libname}${release}${shared_ext}$major' 15374 dynamic_linker='NetBSD ld.elf_so' 15375 fi 15376 shlibpath_var=LD_LIBRARY_PATH 15377 shlibpath_overrides_runpath=yes 15378 hardcode_into_libs=yes 15379 ;; 15380 15381newsos6) 15382 version_type=linux # correct to gnu/linux during the next big refactor 15383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15384 shlibpath_var=LD_LIBRARY_PATH 15385 shlibpath_overrides_runpath=yes 15386 ;; 15387 15388*nto* | *qnx*) 15389 version_type=qnx 15390 need_lib_prefix=no 15391 need_version=no 15392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15393 soname_spec='${libname}${release}${shared_ext}$major' 15394 shlibpath_var=LD_LIBRARY_PATH 15395 shlibpath_overrides_runpath=no 15396 hardcode_into_libs=yes 15397 dynamic_linker='ldqnx.so' 15398 ;; 15399 15400openbsd*) 15401 version_type=sunos 15402 sys_lib_dlsearch_path_spec="/usr/lib" 15403 need_lib_prefix=no 15404 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15405 case $host_os in 15406 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15407 *) need_version=no ;; 15408 esac 15409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15411 shlibpath_var=LD_LIBRARY_PATH 15412 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15413 case $host_os in 15414 openbsd2.[89] | openbsd2.[89].*) 15415 shlibpath_overrides_runpath=no 15416 ;; 15417 *) 15418 shlibpath_overrides_runpath=yes 15419 ;; 15420 esac 15421 else 15422 shlibpath_overrides_runpath=yes 15423 fi 15424 ;; 15425 15426os2*) 15427 libname_spec='$name' 15428 shrext_cmds=".dll" 15429 need_lib_prefix=no 15430 library_names_spec='$libname${shared_ext} $libname.a' 15431 dynamic_linker='OS/2 ld.exe' 15432 shlibpath_var=LIBPATH 15433 ;; 15434 15435osf3* | osf4* | osf5*) 15436 version_type=osf 15437 need_lib_prefix=no 15438 need_version=no 15439 soname_spec='${libname}${release}${shared_ext}$major' 15440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15441 shlibpath_var=LD_LIBRARY_PATH 15442 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15443 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15444 ;; 15445 15446rdos*) 15447 dynamic_linker=no 15448 ;; 15449 15450solaris*) 15451 version_type=linux # correct to gnu/linux during the next big refactor 15452 need_lib_prefix=no 15453 need_version=no 15454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15455 soname_spec='${libname}${release}${shared_ext}$major' 15456 shlibpath_var=LD_LIBRARY_PATH 15457 shlibpath_overrides_runpath=yes 15458 hardcode_into_libs=yes 15459 # ldd complains unless libraries are executable 15460 postinstall_cmds='chmod +x $lib' 15461 ;; 15462 15463sunos4*) 15464 version_type=sunos 15465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15466 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15467 shlibpath_var=LD_LIBRARY_PATH 15468 shlibpath_overrides_runpath=yes 15469 if test "$with_gnu_ld" = yes; then 15470 need_lib_prefix=no 15471 fi 15472 need_version=yes 15473 ;; 15474 15475sysv4 | sysv4.3*) 15476 version_type=linux # correct to gnu/linux during the next big refactor 15477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15478 soname_spec='${libname}${release}${shared_ext}$major' 15479 shlibpath_var=LD_LIBRARY_PATH 15480 case $host_vendor in 15481 sni) 15482 shlibpath_overrides_runpath=no 15483 need_lib_prefix=no 15484 runpath_var=LD_RUN_PATH 15485 ;; 15486 siemens) 15487 need_lib_prefix=no 15488 ;; 15489 motorola) 15490 need_lib_prefix=no 15491 need_version=no 15492 shlibpath_overrides_runpath=no 15493 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15494 ;; 15495 esac 15496 ;; 15497 15498sysv4*MP*) 15499 if test -d /usr/nec ;then 15500 version_type=linux # correct to gnu/linux during the next big refactor 15501 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15502 soname_spec='$libname${shared_ext}.$major' 15503 shlibpath_var=LD_LIBRARY_PATH 15504 fi 15505 ;; 15506 15507sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15508 version_type=freebsd-elf 15509 need_lib_prefix=no 15510 need_version=no 15511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15512 soname_spec='${libname}${release}${shared_ext}$major' 15513 shlibpath_var=LD_LIBRARY_PATH 15514 shlibpath_overrides_runpath=yes 15515 hardcode_into_libs=yes 15516 if test "$with_gnu_ld" = yes; then 15517 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15518 else 15519 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15520 case $host_os in 15521 sco3.2v5*) 15522 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15523 ;; 15524 esac 15525 fi 15526 sys_lib_dlsearch_path_spec='/usr/lib' 15527 ;; 15528 15529tpf*) 15530 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15531 version_type=linux # correct to gnu/linux during the next big refactor 15532 need_lib_prefix=no 15533 need_version=no 15534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15535 shlibpath_var=LD_LIBRARY_PATH 15536 shlibpath_overrides_runpath=no 15537 hardcode_into_libs=yes 15538 ;; 15539 15540uts4*) 15541 version_type=linux # correct to gnu/linux during the next big refactor 15542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15543 soname_spec='${libname}${release}${shared_ext}$major' 15544 shlibpath_var=LD_LIBRARY_PATH 15545 ;; 15546 15547*) 15548 dynamic_linker=no 15549 ;; 15550esac 15551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15552$as_echo "$dynamic_linker" >&6; } 15553test "$dynamic_linker" = no && can_build_shared=no 15554 15555variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15556if test "$GCC" = yes; then 15557 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15558fi 15559 15560if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15561 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15562fi 15563if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15564 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15565fi 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657 15658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15659$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15660hardcode_action= 15661if test -n "$hardcode_libdir_flag_spec" || 15662 test -n "$runpath_var" || 15663 test "X$hardcode_automatic" = "Xyes" ; then 15664 15665 # We can hardcode non-existent directories. 15666 if test "$hardcode_direct" != no && 15667 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15668 # have to relink, otherwise we might link with an installed library 15669 # when we should be linking with a yet-to-be-installed one 15670 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 15671 test "$hardcode_minus_L" != no; then 15672 # Linking always hardcodes the temporary library directory. 15673 hardcode_action=relink 15674 else 15675 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15676 hardcode_action=immediate 15677 fi 15678else 15679 # We cannot hardcode anything, or else we can only hardcode existing 15680 # directories. 15681 hardcode_action=unsupported 15682fi 15683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 15684$as_echo "$hardcode_action" >&6; } 15685 15686if test "$hardcode_action" = relink || 15687 test "$inherit_rpath" = yes; then 15688 # Fast installation is not supported 15689 enable_fast_install=no 15690elif test "$shlibpath_overrides_runpath" = yes || 15691 test "$enable_shared" = no; then 15692 # Fast installation is not necessary 15693 enable_fast_install=needless 15694fi 15695 15696 15697 15698 15699 15700 15701 if test "x$enable_dlopen" != xyes; then 15702 enable_dlopen=unknown 15703 enable_dlopen_self=unknown 15704 enable_dlopen_self_static=unknown 15705else 15706 lt_cv_dlopen=no 15707 lt_cv_dlopen_libs= 15708 15709 case $host_os in 15710 beos*) 15711 lt_cv_dlopen="load_add_on" 15712 lt_cv_dlopen_libs= 15713 lt_cv_dlopen_self=yes 15714 ;; 15715 15716 mingw* | pw32* | cegcc*) 15717 lt_cv_dlopen="LoadLibrary" 15718 lt_cv_dlopen_libs= 15719 ;; 15720 15721 cygwin*) 15722 lt_cv_dlopen="dlopen" 15723 lt_cv_dlopen_libs= 15724 ;; 15725 15726 darwin*) 15727 # if libdl is installed we need to link against it 15728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 15729$as_echo_n "checking for dlopen in -ldl... " >&6; } 15730if ${ac_cv_lib_dl_dlopen+:} false; then : 15731 $as_echo_n "(cached) " >&6 15732else 15733 ac_check_lib_save_LIBS=$LIBS 15734LIBS="-ldl $LIBS" 15735cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15736/* end confdefs.h. */ 15737 15738/* Override any GCC internal prototype to avoid an error. 15739 Use char because int might match the return type of a GCC 15740 builtin and then its argument prototype would still apply. */ 15741#ifdef __cplusplus 15742extern "C" 15743#endif 15744char dlopen (); 15745int 15746main () 15747{ 15748return dlopen (); 15749 ; 15750 return 0; 15751} 15752_ACEOF 15753if ac_fn_c_try_link "$LINENO"; then : 15754 ac_cv_lib_dl_dlopen=yes 15755else 15756 ac_cv_lib_dl_dlopen=no 15757fi 15758rm -f core conftest.err conftest.$ac_objext \ 15759 conftest$ac_exeext conftest.$ac_ext 15760LIBS=$ac_check_lib_save_LIBS 15761fi 15762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 15763$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 15764if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 15765 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 15766else 15767 15768 lt_cv_dlopen="dyld" 15769 lt_cv_dlopen_libs= 15770 lt_cv_dlopen_self=yes 15771 15772fi 15773 15774 ;; 15775 15776 *) 15777 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 15778if test "x$ac_cv_func_shl_load" = xyes; then : 15779 lt_cv_dlopen="shl_load" 15780else 15781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 15782$as_echo_n "checking for shl_load in -ldld... " >&6; } 15783if ${ac_cv_lib_dld_shl_load+:} false; then : 15784 $as_echo_n "(cached) " >&6 15785else 15786 ac_check_lib_save_LIBS=$LIBS 15787LIBS="-ldld $LIBS" 15788cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15789/* end confdefs.h. */ 15790 15791/* Override any GCC internal prototype to avoid an error. 15792 Use char because int might match the return type of a GCC 15793 builtin and then its argument prototype would still apply. */ 15794#ifdef __cplusplus 15795extern "C" 15796#endif 15797char shl_load (); 15798int 15799main () 15800{ 15801return shl_load (); 15802 ; 15803 return 0; 15804} 15805_ACEOF 15806if ac_fn_c_try_link "$LINENO"; then : 15807 ac_cv_lib_dld_shl_load=yes 15808else 15809 ac_cv_lib_dld_shl_load=no 15810fi 15811rm -f core conftest.err conftest.$ac_objext \ 15812 conftest$ac_exeext conftest.$ac_ext 15813LIBS=$ac_check_lib_save_LIBS 15814fi 15815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 15816$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 15817if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 15818 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 15819else 15820 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 15821if test "x$ac_cv_func_dlopen" = xyes; then : 15822 lt_cv_dlopen="dlopen" 15823else 15824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 15825$as_echo_n "checking for dlopen in -ldl... " >&6; } 15826if ${ac_cv_lib_dl_dlopen+:} false; then : 15827 $as_echo_n "(cached) " >&6 15828else 15829 ac_check_lib_save_LIBS=$LIBS 15830LIBS="-ldl $LIBS" 15831cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15832/* end confdefs.h. */ 15833 15834/* Override any GCC internal prototype to avoid an error. 15835 Use char because int might match the return type of a GCC 15836 builtin and then its argument prototype would still apply. */ 15837#ifdef __cplusplus 15838extern "C" 15839#endif 15840char dlopen (); 15841int 15842main () 15843{ 15844return dlopen (); 15845 ; 15846 return 0; 15847} 15848_ACEOF 15849if ac_fn_c_try_link "$LINENO"; then : 15850 ac_cv_lib_dl_dlopen=yes 15851else 15852 ac_cv_lib_dl_dlopen=no 15853fi 15854rm -f core conftest.err conftest.$ac_objext \ 15855 conftest$ac_exeext conftest.$ac_ext 15856LIBS=$ac_check_lib_save_LIBS 15857fi 15858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 15859$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 15860if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 15861 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 15862else 15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 15864$as_echo_n "checking for dlopen in -lsvld... " >&6; } 15865if ${ac_cv_lib_svld_dlopen+:} false; then : 15866 $as_echo_n "(cached) " >&6 15867else 15868 ac_check_lib_save_LIBS=$LIBS 15869LIBS="-lsvld $LIBS" 15870cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15871/* end confdefs.h. */ 15872 15873/* Override any GCC internal prototype to avoid an error. 15874 Use char because int might match the return type of a GCC 15875 builtin and then its argument prototype would still apply. */ 15876#ifdef __cplusplus 15877extern "C" 15878#endif 15879char dlopen (); 15880int 15881main () 15882{ 15883return dlopen (); 15884 ; 15885 return 0; 15886} 15887_ACEOF 15888if ac_fn_c_try_link "$LINENO"; then : 15889 ac_cv_lib_svld_dlopen=yes 15890else 15891 ac_cv_lib_svld_dlopen=no 15892fi 15893rm -f core conftest.err conftest.$ac_objext \ 15894 conftest$ac_exeext conftest.$ac_ext 15895LIBS=$ac_check_lib_save_LIBS 15896fi 15897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 15898$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 15899if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 15900 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 15901else 15902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 15903$as_echo_n "checking for dld_link in -ldld... " >&6; } 15904if ${ac_cv_lib_dld_dld_link+:} false; then : 15905 $as_echo_n "(cached) " >&6 15906else 15907 ac_check_lib_save_LIBS=$LIBS 15908LIBS="-ldld $LIBS" 15909cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15910/* end confdefs.h. */ 15911 15912/* Override any GCC internal prototype to avoid an error. 15913 Use char because int might match the return type of a GCC 15914 builtin and then its argument prototype would still apply. */ 15915#ifdef __cplusplus 15916extern "C" 15917#endif 15918char dld_link (); 15919int 15920main () 15921{ 15922return dld_link (); 15923 ; 15924 return 0; 15925} 15926_ACEOF 15927if ac_fn_c_try_link "$LINENO"; then : 15928 ac_cv_lib_dld_dld_link=yes 15929else 15930 ac_cv_lib_dld_dld_link=no 15931fi 15932rm -f core conftest.err conftest.$ac_objext \ 15933 conftest$ac_exeext conftest.$ac_ext 15934LIBS=$ac_check_lib_save_LIBS 15935fi 15936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 15937$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 15938if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 15939 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 15940fi 15941 15942 15943fi 15944 15945 15946fi 15947 15948 15949fi 15950 15951 15952fi 15953 15954 15955fi 15956 15957 ;; 15958 esac 15959 15960 if test "x$lt_cv_dlopen" != xno; then 15961 enable_dlopen=yes 15962 else 15963 enable_dlopen=no 15964 fi 15965 15966 case $lt_cv_dlopen in 15967 dlopen) 15968 save_CPPFLAGS="$CPPFLAGS" 15969 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 15970 15971 save_LDFLAGS="$LDFLAGS" 15972 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 15973 15974 save_LIBS="$LIBS" 15975 LIBS="$lt_cv_dlopen_libs $LIBS" 15976 15977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 15978$as_echo_n "checking whether a program can dlopen itself... " >&6; } 15979if ${lt_cv_dlopen_self+:} false; then : 15980 $as_echo_n "(cached) " >&6 15981else 15982 if test "$cross_compiling" = yes; then : 15983 lt_cv_dlopen_self=cross 15984else 15985 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15986 lt_status=$lt_dlunknown 15987 cat > conftest.$ac_ext <<_LT_EOF 15988#line $LINENO "configure" 15989#include "confdefs.h" 15990 15991#if HAVE_DLFCN_H 15992#include <dlfcn.h> 15993#endif 15994 15995#include <stdio.h> 15996 15997#ifdef RTLD_GLOBAL 15998# define LT_DLGLOBAL RTLD_GLOBAL 15999#else 16000# ifdef DL_GLOBAL 16001# define LT_DLGLOBAL DL_GLOBAL 16002# else 16003# define LT_DLGLOBAL 0 16004# endif 16005#endif 16006 16007/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 16008 find out it does not work in some platform. */ 16009#ifndef LT_DLLAZY_OR_NOW 16010# ifdef RTLD_LAZY 16011# define LT_DLLAZY_OR_NOW RTLD_LAZY 16012# else 16013# ifdef DL_LAZY 16014# define LT_DLLAZY_OR_NOW DL_LAZY 16015# else 16016# ifdef RTLD_NOW 16017# define LT_DLLAZY_OR_NOW RTLD_NOW 16018# else 16019# ifdef DL_NOW 16020# define LT_DLLAZY_OR_NOW DL_NOW 16021# else 16022# define LT_DLLAZY_OR_NOW 0 16023# endif 16024# endif 16025# endif 16026# endif 16027#endif 16028 16029/* When -fvisbility=hidden is used, assume the code has been annotated 16030 correspondingly for the symbols needed. */ 16031#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 16032int fnord () __attribute__((visibility("default"))); 16033#endif 16034 16035int fnord () { return 42; } 16036int main () 16037{ 16038 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 16039 int status = $lt_dlunknown; 16040 16041 if (self) 16042 { 16043 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 16044 else 16045 { 16046 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 16047 else puts (dlerror ()); 16048 } 16049 /* dlclose (self); */ 16050 } 16051 else 16052 puts (dlerror ()); 16053 16054 return status; 16055} 16056_LT_EOF 16057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 16058 (eval $ac_link) 2>&5 16059 ac_status=$? 16060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16061 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 16062 (./conftest; exit; ) >&5 2>/dev/null 16063 lt_status=$? 16064 case x$lt_status in 16065 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 16066 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 16067 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 16068 esac 16069 else : 16070 # compilation failed 16071 lt_cv_dlopen_self=no 16072 fi 16073fi 16074rm -fr conftest* 16075 16076 16077fi 16078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 16079$as_echo "$lt_cv_dlopen_self" >&6; } 16080 16081 if test "x$lt_cv_dlopen_self" = xyes; then 16082 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 16084$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 16085if ${lt_cv_dlopen_self_static+:} false; then : 16086 $as_echo_n "(cached) " >&6 16087else 16088 if test "$cross_compiling" = yes; then : 16089 lt_cv_dlopen_self_static=cross 16090else 16091 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 16092 lt_status=$lt_dlunknown 16093 cat > conftest.$ac_ext <<_LT_EOF 16094#line $LINENO "configure" 16095#include "confdefs.h" 16096 16097#if HAVE_DLFCN_H 16098#include <dlfcn.h> 16099#endif 16100 16101#include <stdio.h> 16102 16103#ifdef RTLD_GLOBAL 16104# define LT_DLGLOBAL RTLD_GLOBAL 16105#else 16106# ifdef DL_GLOBAL 16107# define LT_DLGLOBAL DL_GLOBAL 16108# else 16109# define LT_DLGLOBAL 0 16110# endif 16111#endif 16112 16113/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 16114 find out it does not work in some platform. */ 16115#ifndef LT_DLLAZY_OR_NOW 16116# ifdef RTLD_LAZY 16117# define LT_DLLAZY_OR_NOW RTLD_LAZY 16118# else 16119# ifdef DL_LAZY 16120# define LT_DLLAZY_OR_NOW DL_LAZY 16121# else 16122# ifdef RTLD_NOW 16123# define LT_DLLAZY_OR_NOW RTLD_NOW 16124# else 16125# ifdef DL_NOW 16126# define LT_DLLAZY_OR_NOW DL_NOW 16127# else 16128# define LT_DLLAZY_OR_NOW 0 16129# endif 16130# endif 16131# endif 16132# endif 16133#endif 16134 16135/* When -fvisbility=hidden is used, assume the code has been annotated 16136 correspondingly for the symbols needed. */ 16137#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 16138int fnord () __attribute__((visibility("default"))); 16139#endif 16140 16141int fnord () { return 42; } 16142int main () 16143{ 16144 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 16145 int status = $lt_dlunknown; 16146 16147 if (self) 16148 { 16149 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 16150 else 16151 { 16152 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 16153 else puts (dlerror ()); 16154 } 16155 /* dlclose (self); */ 16156 } 16157 else 16158 puts (dlerror ()); 16159 16160 return status; 16161} 16162_LT_EOF 16163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 16164 (eval $ac_link) 2>&5 16165 ac_status=$? 16166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16167 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 16168 (./conftest; exit; ) >&5 2>/dev/null 16169 lt_status=$? 16170 case x$lt_status in 16171 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 16172 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 16173 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 16174 esac 16175 else : 16176 # compilation failed 16177 lt_cv_dlopen_self_static=no 16178 fi 16179fi 16180rm -fr conftest* 16181 16182 16183fi 16184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 16185$as_echo "$lt_cv_dlopen_self_static" >&6; } 16186 fi 16187 16188 CPPFLAGS="$save_CPPFLAGS" 16189 LDFLAGS="$save_LDFLAGS" 16190 LIBS="$save_LIBS" 16191 ;; 16192 esac 16193 16194 case $lt_cv_dlopen_self in 16195 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 16196 *) enable_dlopen_self=unknown ;; 16197 esac 16198 16199 case $lt_cv_dlopen_self_static in 16200 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 16201 *) enable_dlopen_self_static=unknown ;; 16202 esac 16203fi 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 16221striplib= 16222old_striplib= 16223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 16224$as_echo_n "checking whether stripping libraries is possible... " >&6; } 16225if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 16226 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 16227 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16229$as_echo "yes" >&6; } 16230else 16231# FIXME - insert some real tests, host_os isn't really good enough 16232 case $host_os in 16233 darwin*) 16234 if test -n "$STRIP" ; then 16235 striplib="$STRIP -x" 16236 old_striplib="$STRIP -S" 16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16238$as_echo "yes" >&6; } 16239 else 16240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16241$as_echo "no" >&6; } 16242 fi 16243 ;; 16244 *) 16245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16246$as_echo "no" >&6; } 16247 ;; 16248 esac 16249fi 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 # Report which library types will actually be built 16263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 16264$as_echo_n "checking if libtool supports shared libraries... " >&6; } 16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 16266$as_echo "$can_build_shared" >&6; } 16267 16268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 16269$as_echo_n "checking whether to build shared libraries... " >&6; } 16270 test "$can_build_shared" = "no" && enable_shared=no 16271 16272 # On AIX, shared libraries and static libraries use the same namespace, and 16273 # are all built from PIC. 16274 case $host_os in 16275 aix3*) 16276 test "$enable_shared" = yes && enable_static=no 16277 if test -n "$RANLIB"; then 16278 archive_cmds="$archive_cmds~\$RANLIB \$lib" 16279 postinstall_cmds='$RANLIB $lib' 16280 fi 16281 ;; 16282 16283 aix[4-9]*) 16284 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 16285 test "$enable_shared" = yes && enable_static=no 16286 fi 16287 ;; 16288 esac 16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 16290$as_echo "$enable_shared" >&6; } 16291 16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 16293$as_echo_n "checking whether to build static libraries... " >&6; } 16294 # Make sure either enable_shared or enable_static is yes. 16295 test "$enable_shared" = yes || enable_static=yes 16296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 16297$as_echo "$enable_static" >&6; } 16298 16299 16300 16301 16302fi 16303ac_ext=cpp 16304ac_cpp='$CXXCPP $CPPFLAGS' 16305ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16306ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16307ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16308 16309CC="$lt_save_CC" 16310 16311 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 16312 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 16313 (test "X$CXX" != "Xg++"))) ; then 16314 ac_ext=cpp 16315ac_cpp='$CXXCPP $CPPFLAGS' 16316ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16317ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16318ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 16320$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 16321if test -z "$CXXCPP"; then 16322 if ${ac_cv_prog_CXXCPP+:} false; then : 16323 $as_echo_n "(cached) " >&6 16324else 16325 # Double quotes because CXXCPP needs to be expanded 16326 for CXXCPP in "$CXX -E" "/lib/cpp" 16327 do 16328 ac_preproc_ok=false 16329for ac_cxx_preproc_warn_flag in '' yes 16330do 16331 # Use a header file that comes with gcc, so configuring glibc 16332 # with a fresh cross-compiler works. 16333 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16334 # <limits.h> exists even on freestanding compilers. 16335 # On the NeXT, cc -E runs the code through the compiler's parser, 16336 # not just through cpp. "Syntax error" is here to catch this case. 16337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16338/* end confdefs.h. */ 16339#ifdef __STDC__ 16340# include <limits.h> 16341#else 16342# include <assert.h> 16343#endif 16344 Syntax error 16345_ACEOF 16346if ac_fn_cxx_try_cpp "$LINENO"; then : 16347 16348else 16349 # Broken: fails on valid input. 16350continue 16351fi 16352rm -f conftest.err conftest.i conftest.$ac_ext 16353 16354 # OK, works on sane cases. Now check whether nonexistent headers 16355 # can be detected and how. 16356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16357/* end confdefs.h. */ 16358#include <ac_nonexistent.h> 16359_ACEOF 16360if ac_fn_cxx_try_cpp "$LINENO"; then : 16361 # Broken: success on invalid input. 16362continue 16363else 16364 # Passes both tests. 16365ac_preproc_ok=: 16366break 16367fi 16368rm -f conftest.err conftest.i conftest.$ac_ext 16369 16370done 16371# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 16372rm -f conftest.i conftest.err conftest.$ac_ext 16373if $ac_preproc_ok; then : 16374 break 16375fi 16376 16377 done 16378 ac_cv_prog_CXXCPP=$CXXCPP 16379 16380fi 16381 CXXCPP=$ac_cv_prog_CXXCPP 16382else 16383 ac_cv_prog_CXXCPP=$CXXCPP 16384fi 16385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 16386$as_echo "$CXXCPP" >&6; } 16387ac_preproc_ok=false 16388for ac_cxx_preproc_warn_flag in '' yes 16389do 16390 # Use a header file that comes with gcc, so configuring glibc 16391 # with a fresh cross-compiler works. 16392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16393 # <limits.h> exists even on freestanding compilers. 16394 # On the NeXT, cc -E runs the code through the compiler's parser, 16395 # not just through cpp. "Syntax error" is here to catch this case. 16396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16397/* end confdefs.h. */ 16398#ifdef __STDC__ 16399# include <limits.h> 16400#else 16401# include <assert.h> 16402#endif 16403 Syntax error 16404_ACEOF 16405if ac_fn_cxx_try_cpp "$LINENO"; then : 16406 16407else 16408 # Broken: fails on valid input. 16409continue 16410fi 16411rm -f conftest.err conftest.i conftest.$ac_ext 16412 16413 # OK, works on sane cases. Now check whether nonexistent headers 16414 # can be detected and how. 16415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16416/* end confdefs.h. */ 16417#include <ac_nonexistent.h> 16418_ACEOF 16419if ac_fn_cxx_try_cpp "$LINENO"; then : 16420 # Broken: success on invalid input. 16421continue 16422else 16423 # Passes both tests. 16424ac_preproc_ok=: 16425break 16426fi 16427rm -f conftest.err conftest.i conftest.$ac_ext 16428 16429done 16430# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 16431rm -f conftest.i conftest.err conftest.$ac_ext 16432if $ac_preproc_ok; then : 16433 16434else 16435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16437as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 16438See \`config.log' for more details" "$LINENO" 5; } 16439fi 16440 16441ac_ext=cpp 16442ac_cpp='$CXXCPP $CPPFLAGS' 16443ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16444ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16445ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16446 16447else 16448 _lt_caught_CXX_error=yes 16449fi 16450 16451ac_ext=cpp 16452ac_cpp='$CXXCPP $CPPFLAGS' 16453ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16454ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16455ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16456 16457archive_cmds_need_lc_CXX=no 16458allow_undefined_flag_CXX= 16459always_export_symbols_CXX=no 16460archive_expsym_cmds_CXX= 16461compiler_needs_object_CXX=no 16462export_dynamic_flag_spec_CXX= 16463hardcode_direct_CXX=no 16464hardcode_direct_absolute_CXX=no 16465hardcode_libdir_flag_spec_CXX= 16466hardcode_libdir_separator_CXX= 16467hardcode_minus_L_CXX=no 16468hardcode_shlibpath_var_CXX=unsupported 16469hardcode_automatic_CXX=no 16470inherit_rpath_CXX=no 16471module_cmds_CXX= 16472module_expsym_cmds_CXX= 16473link_all_deplibs_CXX=unknown 16474old_archive_cmds_CXX=$old_archive_cmds 16475reload_flag_CXX=$reload_flag 16476reload_cmds_CXX=$reload_cmds 16477no_undefined_flag_CXX= 16478whole_archive_flag_spec_CXX= 16479enable_shared_with_static_runtimes_CXX=no 16480 16481# Source file extension for C++ test sources. 16482ac_ext=cpp 16483 16484# Object file extension for compiled C++ test sources. 16485objext=o 16486objext_CXX=$objext 16487 16488# No sense in running all these tests if we already determined that 16489# the CXX compiler isn't working. Some variables (like enable_shared) 16490# are currently assumed to apply to all compilers on this platform, 16491# and will be corrupted by setting them based on a non-working compiler. 16492if test "$_lt_caught_CXX_error" != yes; then 16493 # Code to be used in simple compile tests 16494 lt_simple_compile_test_code="int some_variable = 0;" 16495 16496 # Code to be used in simple link tests 16497 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 16498 16499 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 16500 16501 16502 16503 16504 16505 16506# If no C compiler was specified, use CC. 16507LTCC=${LTCC-"$CC"} 16508 16509# If no C compiler flags were specified, use CFLAGS. 16510LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16511 16512# Allow CC to be a program name with arguments. 16513compiler=$CC 16514 16515 16516 # save warnings/boilerplate of simple test code 16517 ac_outfile=conftest.$ac_objext 16518echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16519eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16520_lt_compiler_boilerplate=`cat conftest.err` 16521$RM conftest* 16522 16523 ac_outfile=conftest.$ac_objext 16524echo "$lt_simple_link_test_code" >conftest.$ac_ext 16525eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16526_lt_linker_boilerplate=`cat conftest.err` 16527$RM -r conftest* 16528 16529 16530 # Allow CC to be a program name with arguments. 16531 lt_save_CC=$CC 16532 lt_save_CFLAGS=$CFLAGS 16533 lt_save_LD=$LD 16534 lt_save_GCC=$GCC 16535 GCC=$GXX 16536 lt_save_with_gnu_ld=$with_gnu_ld 16537 lt_save_path_LD=$lt_cv_path_LD 16538 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 16539 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 16540 else 16541 $as_unset lt_cv_prog_gnu_ld 16542 fi 16543 if test -n "${lt_cv_path_LDCXX+set}"; then 16544 lt_cv_path_LD=$lt_cv_path_LDCXX 16545 else 16546 $as_unset lt_cv_path_LD 16547 fi 16548 test -z "${LDCXX+set}" || LD=$LDCXX 16549 CC=${CXX-"c++"} 16550 CFLAGS=$CXXFLAGS 16551 compiler=$CC 16552 compiler_CXX=$CC 16553 for cc_temp in $compiler""; do 16554 case $cc_temp in 16555 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16556 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16557 \-*) ;; 16558 *) break;; 16559 esac 16560done 16561cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 16562 16563 16564 if test -n "$compiler"; then 16565 # We don't want -fno-exception when compiling C++ code, so set the 16566 # no_builtin_flag separately 16567 if test "$GXX" = yes; then 16568 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 16569 else 16570 lt_prog_compiler_no_builtin_flag_CXX= 16571 fi 16572 16573 if test "$GXX" = yes; then 16574 # Set up default GNU C++ configuration 16575 16576 16577 16578# Check whether --with-gnu-ld was given. 16579if test "${with_gnu_ld+set}" = set; then : 16580 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 16581else 16582 with_gnu_ld=no 16583fi 16584 16585ac_prog=ld 16586if test "$GCC" = yes; then 16587 # Check if gcc -print-prog-name=ld gives a path. 16588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 16589$as_echo_n "checking for ld used by $CC... " >&6; } 16590 case $host in 16591 *-*-mingw*) 16592 # gcc leaves a trailing carriage return which upsets mingw 16593 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 16594 *) 16595 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 16596 esac 16597 case $ac_prog in 16598 # Accept absolute paths. 16599 [\\/]* | ?:[\\/]*) 16600 re_direlt='/[^/][^/]*/\.\./' 16601 # Canonicalize the pathname of ld 16602 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 16603 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 16604 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 16605 done 16606 test -z "$LD" && LD="$ac_prog" 16607 ;; 16608 "") 16609 # If it fails, then pretend we aren't using GCC. 16610 ac_prog=ld 16611 ;; 16612 *) 16613 # If it is relative, then search for the first ld in PATH. 16614 with_gnu_ld=unknown 16615 ;; 16616 esac 16617elif test "$with_gnu_ld" = yes; then 16618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 16619$as_echo_n "checking for GNU ld... " >&6; } 16620else 16621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 16622$as_echo_n "checking for non-GNU ld... " >&6; } 16623fi 16624if ${lt_cv_path_LD+:} false; then : 16625 $as_echo_n "(cached) " >&6 16626else 16627 if test -z "$LD"; then 16628 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 16629 for ac_dir in $PATH; do 16630 IFS="$lt_save_ifs" 16631 test -z "$ac_dir" && ac_dir=. 16632 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 16633 lt_cv_path_LD="$ac_dir/$ac_prog" 16634 # Check to see if the program is GNU ld. I'd rather use --version, 16635 # but apparently some variants of GNU ld only accept -v. 16636 # Break only if it was the GNU/non-GNU ld that we prefer. 16637 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 16638 *GNU* | *'with BFD'*) 16639 test "$with_gnu_ld" != no && break 16640 ;; 16641 *) 16642 test "$with_gnu_ld" != yes && break 16643 ;; 16644 esac 16645 fi 16646 done 16647 IFS="$lt_save_ifs" 16648else 16649 lt_cv_path_LD="$LD" # Let the user override the test with a path. 16650fi 16651fi 16652 16653LD="$lt_cv_path_LD" 16654if test -n "$LD"; then 16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 16656$as_echo "$LD" >&6; } 16657else 16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16659$as_echo "no" >&6; } 16660fi 16661test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 16662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 16663$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 16664if ${lt_cv_prog_gnu_ld+:} false; then : 16665 $as_echo_n "(cached) " >&6 16666else 16667 # I'd rather use --version here, but apparently some GNU lds only accept -v. 16668case `$LD -v 2>&1 </dev/null` in 16669*GNU* | *'with BFD'*) 16670 lt_cv_prog_gnu_ld=yes 16671 ;; 16672*) 16673 lt_cv_prog_gnu_ld=no 16674 ;; 16675esac 16676fi 16677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 16678$as_echo "$lt_cv_prog_gnu_ld" >&6; } 16679with_gnu_ld=$lt_cv_prog_gnu_ld 16680 16681 16682 16683 16684 16685 16686 16687 # Check if GNU C++ uses GNU ld as the underlying linker, since the 16688 # archiving commands below assume that GNU ld is being used. 16689 if test "$with_gnu_ld" = yes; then 16690 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 16691 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' 16692 16693 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 16694 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 16695 16696 # If archive_cmds runs LD, not CC, wlarc should be empty 16697 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 16698 # investigate it a little bit more. (MM) 16699 wlarc='${wl}' 16700 16701 # ancient GNU ld didn't support --whole-archive et. al. 16702 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 16703 $GREP 'no-whole-archive' > /dev/null; then 16704 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16705 else 16706 whole_archive_flag_spec_CXX= 16707 fi 16708 else 16709 with_gnu_ld=no 16710 wlarc= 16711 16712 # A generic and very simple default shared library creation 16713 # command for GNU C++ for the case where it uses the native 16714 # linker, instead of GNU ld. If possible, this setting should 16715 # overridden to take advantage of the native linker features on 16716 # the platform it is being used on. 16717 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 16718 fi 16719 16720 # Commands to make compiler produce verbose output that lists 16721 # what "hidden" libraries, object files and flags are used when 16722 # linking a shared library. 16723 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16724 16725 else 16726 GXX=no 16727 with_gnu_ld=no 16728 wlarc= 16729 fi 16730 16731 # PORTME: fill in a description of your system's C++ link characteristics 16732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16733$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16734 ld_shlibs_CXX=yes 16735 case $host_os in 16736 aix3*) 16737 # FIXME: insert proper C++ library support 16738 ld_shlibs_CXX=no 16739 ;; 16740 aix[4-9]*) 16741 if test "$host_cpu" = ia64; then 16742 # On IA64, the linker does run time linking by default, so we don't 16743 # have to do anything special. 16744 aix_use_runtimelinking=no 16745 exp_sym_flag='-Bexport' 16746 no_entry_flag="" 16747 else 16748 aix_use_runtimelinking=no 16749 16750 # Test if we are trying to use run time linking or normal 16751 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16752 # need to do runtime linking. 16753 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16754 for ld_flag in $LDFLAGS; do 16755 case $ld_flag in 16756 *-brtl*) 16757 aix_use_runtimelinking=yes 16758 break 16759 ;; 16760 esac 16761 done 16762 ;; 16763 esac 16764 16765 exp_sym_flag='-bexport' 16766 no_entry_flag='-bnoentry' 16767 fi 16768 16769 # When large executables or shared objects are built, AIX ld can 16770 # have problems creating the table of contents. If linking a library 16771 # or program results in "error TOC overflow" add -mminimal-toc to 16772 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16773 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16774 16775 archive_cmds_CXX='' 16776 hardcode_direct_CXX=yes 16777 hardcode_direct_absolute_CXX=yes 16778 hardcode_libdir_separator_CXX=':' 16779 link_all_deplibs_CXX=yes 16780 file_list_spec_CXX='${wl}-f,' 16781 16782 if test "$GXX" = yes; then 16783 case $host_os in aix4.[012]|aix4.[012].*) 16784 # We only want to do this on AIX 4.2 and lower, the check 16785 # below for broken collect2 doesn't work under 4.3+ 16786 collect2name=`${CC} -print-prog-name=collect2` 16787 if test -f "$collect2name" && 16788 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16789 then 16790 # We have reworked collect2 16791 : 16792 else 16793 # We have old collect2 16794 hardcode_direct_CXX=unsupported 16795 # It fails to find uninstalled libraries when the uninstalled 16796 # path is not listed in the libpath. Setting hardcode_minus_L 16797 # to unsupported forces relinking 16798 hardcode_minus_L_CXX=yes 16799 hardcode_libdir_flag_spec_CXX='-L$libdir' 16800 hardcode_libdir_separator_CXX= 16801 fi 16802 esac 16803 shared_flag='-shared' 16804 if test "$aix_use_runtimelinking" = yes; then 16805 shared_flag="$shared_flag "'${wl}-G' 16806 fi 16807 else 16808 # not using gcc 16809 if test "$host_cpu" = ia64; then 16810 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16811 # chokes on -Wl,-G. The following line is correct: 16812 shared_flag='-G' 16813 else 16814 if test "$aix_use_runtimelinking" = yes; then 16815 shared_flag='${wl}-G' 16816 else 16817 shared_flag='${wl}-bM:SRE' 16818 fi 16819 fi 16820 fi 16821 16822 export_dynamic_flag_spec_CXX='${wl}-bexpall' 16823 # It seems that -bexpall does not export symbols beginning with 16824 # underscore (_), so it is better to generate a list of symbols to 16825 # export. 16826 always_export_symbols_CXX=yes 16827 if test "$aix_use_runtimelinking" = yes; then 16828 # Warning - without using the other runtime loading flags (-brtl), 16829 # -berok will link without error, but may produce a broken library. 16830 allow_undefined_flag_CXX='-berok' 16831 # Determine the default libpath from the value encoded in an empty 16832 # executable. 16833 if test "${lt_cv_aix_libpath+set}" = set; then 16834 aix_libpath=$lt_cv_aix_libpath 16835else 16836 if ${lt_cv_aix_libpath__CXX+:} false; then : 16837 $as_echo_n "(cached) " >&6 16838else 16839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16840/* end confdefs.h. */ 16841 16842int 16843main () 16844{ 16845 16846 ; 16847 return 0; 16848} 16849_ACEOF 16850if ac_fn_cxx_try_link "$LINENO"; then : 16851 16852 lt_aix_libpath_sed=' 16853 /Import File Strings/,/^$/ { 16854 /^0/ { 16855 s/^0 *\([^ ]*\) *$/\1/ 16856 p 16857 } 16858 }' 16859 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16860 # Check for a 64-bit object if we didn't find anything. 16861 if test -z "$lt_cv_aix_libpath__CXX"; then 16862 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16863 fi 16864fi 16865rm -f core conftest.err conftest.$ac_objext \ 16866 conftest$ac_exeext conftest.$ac_ext 16867 if test -z "$lt_cv_aix_libpath__CXX"; then 16868 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 16869 fi 16870 16871fi 16872 16873 aix_libpath=$lt_cv_aix_libpath__CXX 16874fi 16875 16876 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 16877 16878 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 16879 else 16880 if test "$host_cpu" = ia64; then 16881 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 16882 allow_undefined_flag_CXX="-z nodefs" 16883 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" 16884 else 16885 # Determine the default libpath from the value encoded in an 16886 # empty executable. 16887 if test "${lt_cv_aix_libpath+set}" = set; then 16888 aix_libpath=$lt_cv_aix_libpath 16889else 16890 if ${lt_cv_aix_libpath__CXX+:} false; then : 16891 $as_echo_n "(cached) " >&6 16892else 16893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16894/* end confdefs.h. */ 16895 16896int 16897main () 16898{ 16899 16900 ; 16901 return 0; 16902} 16903_ACEOF 16904if ac_fn_cxx_try_link "$LINENO"; then : 16905 16906 lt_aix_libpath_sed=' 16907 /Import File Strings/,/^$/ { 16908 /^0/ { 16909 s/^0 *\([^ ]*\) *$/\1/ 16910 p 16911 } 16912 }' 16913 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16914 # Check for a 64-bit object if we didn't find anything. 16915 if test -z "$lt_cv_aix_libpath__CXX"; then 16916 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16917 fi 16918fi 16919rm -f core conftest.err conftest.$ac_objext \ 16920 conftest$ac_exeext conftest.$ac_ext 16921 if test -z "$lt_cv_aix_libpath__CXX"; then 16922 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 16923 fi 16924 16925fi 16926 16927 aix_libpath=$lt_cv_aix_libpath__CXX 16928fi 16929 16930 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 16931 # Warning - without using the other run time loading flags, 16932 # -berok will link without error, but may produce a broken library. 16933 no_undefined_flag_CXX=' ${wl}-bernotok' 16934 allow_undefined_flag_CXX=' ${wl}-berok' 16935 if test "$with_gnu_ld" = yes; then 16936 # We only use this code for GNU lds that support --whole-archive. 16937 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 16938 else 16939 # Exported symbols can be pulled into shared objects from archives 16940 whole_archive_flag_spec_CXX='$convenience' 16941 fi 16942 archive_cmds_need_lc_CXX=yes 16943 # This is similar to how AIX traditionally builds its shared 16944 # libraries. 16945 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 16946 fi 16947 fi 16948 ;; 16949 16950 beos*) 16951 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16952 allow_undefined_flag_CXX=unsupported 16953 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16954 # support --undefined. This deserves some investigation. FIXME 16955 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16956 else 16957 ld_shlibs_CXX=no 16958 fi 16959 ;; 16960 16961 chorus*) 16962 case $cc_basename in 16963 *) 16964 # FIXME: insert proper C++ library support 16965 ld_shlibs_CXX=no 16966 ;; 16967 esac 16968 ;; 16969 16970 cygwin* | mingw* | pw32* | cegcc*) 16971 case $GXX,$cc_basename in 16972 ,cl* | no,cl*) 16973 # Native MSVC 16974 # hardcode_libdir_flag_spec is actually meaningless, as there is 16975 # no search path for DLLs. 16976 hardcode_libdir_flag_spec_CXX=' ' 16977 allow_undefined_flag_CXX=unsupported 16978 always_export_symbols_CXX=yes 16979 file_list_spec_CXX='@' 16980 # Tell ltmain to make .lib files, not .a files. 16981 libext=lib 16982 # Tell ltmain to make .dll files, not .so files. 16983 shrext_cmds=".dll" 16984 # FIXME: Setting linknames here is a bad hack. 16985 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 16986 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16987 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 16988 else 16989 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 16990 fi~ 16991 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16992 linknames=' 16993 # The linker will not automatically build a static lib if we build a DLL. 16994 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 16995 enable_shared_with_static_runtimes_CXX=yes 16996 # Don't use ranlib 16997 old_postinstall_cmds_CXX='chmod 644 $oldlib' 16998 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 16999 lt_tool_outputfile="@TOOL_OUTPUT@"~ 17000 case $lt_outputfile in 17001 *.exe|*.EXE) ;; 17002 *) 17003 lt_outputfile="$lt_outputfile.exe" 17004 lt_tool_outputfile="$lt_tool_outputfile.exe" 17005 ;; 17006 esac~ 17007 func_to_tool_file "$lt_outputfile"~ 17008 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 17009 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 17010 $RM "$lt_outputfile.manifest"; 17011 fi' 17012 ;; 17013 *) 17014 # g++ 17015 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 17016 # as there is no search path for DLLs. 17017 hardcode_libdir_flag_spec_CXX='-L$libdir' 17018 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 17019 allow_undefined_flag_CXX=unsupported 17020 always_export_symbols_CXX=no 17021 enable_shared_with_static_runtimes_CXX=yes 17022 17023 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 17024 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' 17025 # If the export-symbols file already is a .def file (1st line 17026 # is EXPORTS), use it as is; otherwise, prepend... 17027 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17028 cp $export_symbols $output_objdir/$soname.def; 17029 else 17030 echo EXPORTS > $output_objdir/$soname.def; 17031 cat $export_symbols >> $output_objdir/$soname.def; 17032 fi~ 17033 $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' 17034 else 17035 ld_shlibs_CXX=no 17036 fi 17037 ;; 17038 esac 17039 ;; 17040 darwin* | rhapsody*) 17041 17042 17043 archive_cmds_need_lc_CXX=no 17044 hardcode_direct_CXX=no 17045 hardcode_automatic_CXX=yes 17046 hardcode_shlibpath_var_CXX=unsupported 17047 if test "$lt_cv_ld_force_load" = "yes"; then 17048 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\"`' 17049 17050 else 17051 whole_archive_flag_spec_CXX='' 17052 fi 17053 link_all_deplibs_CXX=yes 17054 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 17055 case $cc_basename in 17056 ifort*) _lt_dar_can_shared=yes ;; 17057 *) _lt_dar_can_shared=$GCC ;; 17058 esac 17059 if test "$_lt_dar_can_shared" = "yes"; then 17060 output_verbose_link_cmd=func_echo_all 17061 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}" 17062 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 17063 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}" 17064 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}" 17065 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 17066 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}" 17067 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}" 17068 fi 17069 17070 else 17071 ld_shlibs_CXX=no 17072 fi 17073 17074 ;; 17075 17076 dgux*) 17077 case $cc_basename in 17078 ec++*) 17079 # FIXME: insert proper C++ library support 17080 ld_shlibs_CXX=no 17081 ;; 17082 ghcx*) 17083 # Green Hills C++ Compiler 17084 # FIXME: insert proper C++ library support 17085 ld_shlibs_CXX=no 17086 ;; 17087 *) 17088 # FIXME: insert proper C++ library support 17089 ld_shlibs_CXX=no 17090 ;; 17091 esac 17092 ;; 17093 17094 freebsd2.*) 17095 # C++ shared libraries reported to be fairly broken before 17096 # switch to ELF 17097 ld_shlibs_CXX=no 17098 ;; 17099 17100 freebsd-elf*) 17101 archive_cmds_need_lc_CXX=no 17102 ;; 17103 17104 freebsd* | dragonfly*) 17105 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 17106 # conventions 17107 ld_shlibs_CXX=yes 17108 ;; 17109 17110 haiku*) 17111 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17112 link_all_deplibs_CXX=yes 17113 ;; 17114 17115 hpux9*) 17116 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 17117 hardcode_libdir_separator_CXX=: 17118 export_dynamic_flag_spec_CXX='${wl}-E' 17119 hardcode_direct_CXX=yes 17120 hardcode_minus_L_CXX=yes # Not in the search PATH, 17121 # but as the default 17122 # location of the library. 17123 17124 case $cc_basename in 17125 CC*) 17126 # FIXME: insert proper C++ library support 17127 ld_shlibs_CXX=no 17128 ;; 17129 aCC*) 17130 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 17131 # Commands to make compiler produce verbose output that lists 17132 # what "hidden" libraries, object files and flags are used when 17133 # linking a shared library. 17134 # 17135 # There doesn't appear to be a way to prevent this compiler from 17136 # explicitly linking system object files so we need to strip them 17137 # from the output so that they don't get included in the library 17138 # dependencies. 17139 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"' 17140 ;; 17141 *) 17142 if test "$GXX" = yes; then 17143 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 17144 else 17145 # FIXME: insert proper C++ library support 17146 ld_shlibs_CXX=no 17147 fi 17148 ;; 17149 esac 17150 ;; 17151 17152 hpux10*|hpux11*) 17153 if test $with_gnu_ld = no; then 17154 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 17155 hardcode_libdir_separator_CXX=: 17156 17157 case $host_cpu in 17158 hppa*64*|ia64*) 17159 ;; 17160 *) 17161 export_dynamic_flag_spec_CXX='${wl}-E' 17162 ;; 17163 esac 17164 fi 17165 case $host_cpu in 17166 hppa*64*|ia64*) 17167 hardcode_direct_CXX=no 17168 hardcode_shlibpath_var_CXX=no 17169 ;; 17170 *) 17171 hardcode_direct_CXX=yes 17172 hardcode_direct_absolute_CXX=yes 17173 hardcode_minus_L_CXX=yes # Not in the search PATH, 17174 # but as the default 17175 # location of the library. 17176 ;; 17177 esac 17178 17179 case $cc_basename in 17180 CC*) 17181 # FIXME: insert proper C++ library support 17182 ld_shlibs_CXX=no 17183 ;; 17184 aCC*) 17185 case $host_cpu in 17186 hppa*64*) 17187 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 17188 ;; 17189 ia64*) 17190 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 17191 ;; 17192 *) 17193 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 17194 ;; 17195 esac 17196 # Commands to make compiler produce verbose output that lists 17197 # what "hidden" libraries, object files and flags are used when 17198 # linking a shared library. 17199 # 17200 # There doesn't appear to be a way to prevent this compiler from 17201 # explicitly linking system object files so we need to strip them 17202 # from the output so that they don't get included in the library 17203 # dependencies. 17204 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"' 17205 ;; 17206 *) 17207 if test "$GXX" = yes; then 17208 if test $with_gnu_ld = no; then 17209 case $host_cpu in 17210 hppa*64*) 17211 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 17212 ;; 17213 ia64*) 17214 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 17215 ;; 17216 *) 17217 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' 17218 ;; 17219 esac 17220 fi 17221 else 17222 # FIXME: insert proper C++ library support 17223 ld_shlibs_CXX=no 17224 fi 17225 ;; 17226 esac 17227 ;; 17228 17229 interix[3-9]*) 17230 hardcode_direct_CXX=no 17231 hardcode_shlibpath_var_CXX=no 17232 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 17233 export_dynamic_flag_spec_CXX='${wl}-E' 17234 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17235 # Instead, shared libraries are loaded at an image base (0x10000000 by 17236 # default) and relocated if they conflict, which is a slow very memory 17237 # consuming and fragmenting process. To avoid this, we pick a random, 17238 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17239 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17240 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' 17241 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' 17242 ;; 17243 irix5* | irix6*) 17244 case $cc_basename in 17245 CC*) 17246 # SGI C++ 17247 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' 17248 17249 # Archives containing C++ object files must be created using 17250 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 17251 # necessary to make sure instantiated templates are included 17252 # in the archive. 17253 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 17254 ;; 17255 *) 17256 if test "$GXX" = yes; then 17257 if test "$with_gnu_ld" = no; then 17258 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' 17259 else 17260 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' 17261 fi 17262 fi 17263 link_all_deplibs_CXX=yes 17264 ;; 17265 esac 17266 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 17267 hardcode_libdir_separator_CXX=: 17268 inherit_rpath_CXX=yes 17269 ;; 17270 17271 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17272 case $cc_basename in 17273 KCC*) 17274 # Kuck and Associates, Inc. (KAI) C++ Compiler 17275 17276 # KCC will only create a shared library if the output file 17277 # ends with ".so" (or ".sl" for HP-UX), so rename the library 17278 # to its proper name (with version) after linking. 17279 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' 17280 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' 17281 # Commands to make compiler produce verbose output that lists 17282 # what "hidden" libraries, object files and flags are used when 17283 # linking a shared library. 17284 # 17285 # There doesn't appear to be a way to prevent this compiler from 17286 # explicitly linking system object files so we need to strip them 17287 # from the output so that they don't get included in the library 17288 # dependencies. 17289 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"' 17290 17291 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 17292 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 17293 17294 # Archives containing C++ object files must be created using 17295 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 17296 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 17297 ;; 17298 icpc* | ecpc* ) 17299 # Intel C++ 17300 with_gnu_ld=yes 17301 # version 8.0 and above of icpc choke on multiply defined symbols 17302 # if we add $predep_objects and $postdep_objects, however 7.1 and 17303 # earlier do not add the objects themselves. 17304 case `$CC -V 2>&1` in 17305 *"Version 7."*) 17306 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 17307 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' 17308 ;; 17309 *) # Version 8.0 or newer 17310 tmp_idyn= 17311 case $host_cpu in 17312 ia64*) tmp_idyn=' -i_dynamic';; 17313 esac 17314 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17315 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' 17316 ;; 17317 esac 17318 archive_cmds_need_lc_CXX=no 17319 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 17320 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 17321 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 17322 ;; 17323 pgCC* | pgcpp*) 17324 # Portland Group C++ compiler 17325 case `$CC -V` in 17326 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 17327 prelink_cmds_CXX='tpldir=Template.dir~ 17328 rm -rf $tpldir~ 17329 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 17330 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 17331 old_archive_cmds_CXX='tpldir=Template.dir~ 17332 rm -rf $tpldir~ 17333 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 17334 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 17335 $RANLIB $oldlib' 17336 archive_cmds_CXX='tpldir=Template.dir~ 17337 rm -rf $tpldir~ 17338 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 17339 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 17340 archive_expsym_cmds_CXX='tpldir=Template.dir~ 17341 rm -rf $tpldir~ 17342 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 17343 $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' 17344 ;; 17345 *) # Version 6 and above use weak symbols 17346 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 17347 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' 17348 ;; 17349 esac 17350 17351 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 17352 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 17353 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' 17354 ;; 17355 cxx*) 17356 # Compaq C++ 17357 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 17358 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' 17359 17360 runpath_var=LD_RUN_PATH 17361 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 17362 hardcode_libdir_separator_CXX=: 17363 17364 # Commands to make compiler produce verbose output that lists 17365 # what "hidden" libraries, object files and flags are used when 17366 # linking a shared library. 17367 # 17368 # There doesn't appear to be a way to prevent this compiler from 17369 # explicitly linking system object files so we need to strip them 17370 # from the output so that they don't get included in the library 17371 # dependencies. 17372 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' 17373 ;; 17374 xl* | mpixl* | bgxl*) 17375 # IBM XL 8.0 on PPC, with GNU ld 17376 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 17377 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 17378 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17379 if test "x$supports_anon_versioning" = xyes; then 17380 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 17381 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17382 echo "local: *; };" >> $output_objdir/$libname.ver~ 17383 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17384 fi 17385 ;; 17386 *) 17387 case `$CC -V 2>&1 | sed 5q` in 17388 *Sun\ C*) 17389 # Sun C++ 5.9 17390 no_undefined_flag_CXX=' -zdefs' 17391 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 17392 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' 17393 hardcode_libdir_flag_spec_CXX='-R$libdir' 17394 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' 17395 compiler_needs_object_CXX=yes 17396 17397 # Not sure whether something based on 17398 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 17399 # would be better. 17400 output_verbose_link_cmd='func_echo_all' 17401 17402 # Archives containing C++ object files must be created using 17403 # "CC -xar", where "CC" is the Sun C++ compiler. This is 17404 # necessary to make sure instantiated templates are included 17405 # in the archive. 17406 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 17407 ;; 17408 esac 17409 ;; 17410 esac 17411 ;; 17412 17413 lynxos*) 17414 # FIXME: insert proper C++ library support 17415 ld_shlibs_CXX=no 17416 ;; 17417 17418 m88k*) 17419 # FIXME: insert proper C++ library support 17420 ld_shlibs_CXX=no 17421 ;; 17422 17423 mvs*) 17424 case $cc_basename in 17425 cxx*) 17426 # FIXME: insert proper C++ library support 17427 ld_shlibs_CXX=no 17428 ;; 17429 *) 17430 # FIXME: insert proper C++ library support 17431 ld_shlibs_CXX=no 17432 ;; 17433 esac 17434 ;; 17435 17436 netbsd*) 17437 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17438 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 17439 wlarc= 17440 hardcode_libdir_flag_spec_CXX='-R$libdir' 17441 hardcode_direct_CXX=yes 17442 hardcode_shlibpath_var_CXX=no 17443 fi 17444 # Workaround some broken pre-1.5 toolchains 17445 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 17446 ;; 17447 17448 *nto* | *qnx*) 17449 ld_shlibs_CXX=yes 17450 ;; 17451 17452 openbsd2*) 17453 # C++ shared libraries are fairly broken 17454 ld_shlibs_CXX=no 17455 ;; 17456 17457 openbsd*) 17458 if test -f /usr/libexec/ld.so; then 17459 hardcode_direct_CXX=yes 17460 hardcode_shlibpath_var_CXX=no 17461 hardcode_direct_absolute_CXX=yes 17462 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 17463 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 17464 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17465 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 17466 export_dynamic_flag_spec_CXX='${wl}-E' 17467 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17468 fi 17469 output_verbose_link_cmd=func_echo_all 17470 else 17471 ld_shlibs_CXX=no 17472 fi 17473 ;; 17474 17475 osf3* | osf4* | osf5*) 17476 case $cc_basename in 17477 KCC*) 17478 # Kuck and Associates, Inc. (KAI) C++ Compiler 17479 17480 # KCC will only create a shared library if the output file 17481 # ends with ".so" (or ".sl" for HP-UX), so rename the library 17482 # to its proper name (with version) after linking. 17483 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' 17484 17485 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 17486 hardcode_libdir_separator_CXX=: 17487 17488 # Archives containing C++ object files must be created using 17489 # the KAI C++ compiler. 17490 case $host in 17491 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 17492 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 17493 esac 17494 ;; 17495 RCC*) 17496 # Rational C++ 2.4.1 17497 # FIXME: insert proper C++ library support 17498 ld_shlibs_CXX=no 17499 ;; 17500 cxx*) 17501 case $host in 17502 osf3*) 17503 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 17504 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' 17505 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 17506 ;; 17507 *) 17508 allow_undefined_flag_CXX=' -expect_unresolved \*' 17509 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' 17510 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 17511 echo "-hidden">> $lib.exp~ 17512 $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~ 17513 $RM $lib.exp' 17514 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 17515 ;; 17516 esac 17517 17518 hardcode_libdir_separator_CXX=: 17519 17520 # Commands to make compiler produce verbose output that lists 17521 # what "hidden" libraries, object files and flags are used when 17522 # linking a shared library. 17523 # 17524 # There doesn't appear to be a way to prevent this compiler from 17525 # explicitly linking system object files so we need to strip them 17526 # from the output so that they don't get included in the library 17527 # dependencies. 17528 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"' 17529 ;; 17530 *) 17531 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 17532 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 17533 case $host in 17534 osf3*) 17535 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' 17536 ;; 17537 *) 17538 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' 17539 ;; 17540 esac 17541 17542 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 17543 hardcode_libdir_separator_CXX=: 17544 17545 # Commands to make compiler produce verbose output that lists 17546 # what "hidden" libraries, object files and flags are used when 17547 # linking a shared library. 17548 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 17549 17550 else 17551 # FIXME: insert proper C++ library support 17552 ld_shlibs_CXX=no 17553 fi 17554 ;; 17555 esac 17556 ;; 17557 17558 psos*) 17559 # FIXME: insert proper C++ library support 17560 ld_shlibs_CXX=no 17561 ;; 17562 17563 sunos4*) 17564 case $cc_basename in 17565 CC*) 17566 # Sun C++ 4.x 17567 # FIXME: insert proper C++ library support 17568 ld_shlibs_CXX=no 17569 ;; 17570 lcc*) 17571 # Lucid 17572 # FIXME: insert proper C++ library support 17573 ld_shlibs_CXX=no 17574 ;; 17575 *) 17576 # FIXME: insert proper C++ library support 17577 ld_shlibs_CXX=no 17578 ;; 17579 esac 17580 ;; 17581 17582 solaris*) 17583 case $cc_basename in 17584 CC* | sunCC*) 17585 # Sun C++ 4.2, 5.x and Centerline C++ 17586 archive_cmds_need_lc_CXX=yes 17587 no_undefined_flag_CXX=' -zdefs' 17588 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 17589 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17590 $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' 17591 17592 hardcode_libdir_flag_spec_CXX='-R$libdir' 17593 hardcode_shlibpath_var_CXX=no 17594 case $host_os in 17595 solaris2.[0-5] | solaris2.[0-5].*) ;; 17596 *) 17597 # The compiler driver will combine and reorder linker options, 17598 # but understands `-z linker_flag'. 17599 # Supported since Solaris 2.6 (maybe 2.5.1?) 17600 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 17601 ;; 17602 esac 17603 link_all_deplibs_CXX=yes 17604 17605 output_verbose_link_cmd='func_echo_all' 17606 17607 # Archives containing C++ object files must be created using 17608 # "CC -xar", where "CC" is the Sun C++ compiler. This is 17609 # necessary to make sure instantiated templates are included 17610 # in the archive. 17611 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 17612 ;; 17613 gcx*) 17614 # Green Hills C++ Compiler 17615 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 17616 17617 # The C++ compiler must be used to create the archive. 17618 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 17619 ;; 17620 *) 17621 # GNU C++ compiler with Solaris linker 17622 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 17623 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 17624 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 17625 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 17626 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17627 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 17628 17629 # Commands to make compiler produce verbose output that lists 17630 # what "hidden" libraries, object files and flags are used when 17631 # linking a shared library. 17632 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 17633 else 17634 # g++ 2.7 appears to require `-G' NOT `-shared' on this 17635 # platform. 17636 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 17637 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17638 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 17639 17640 # Commands to make compiler produce verbose output that lists 17641 # what "hidden" libraries, object files and flags are used when 17642 # linking a shared library. 17643 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 17644 fi 17645 17646 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 17647 case $host_os in 17648 solaris2.[0-5] | solaris2.[0-5].*) ;; 17649 *) 17650 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 17651 ;; 17652 esac 17653 fi 17654 ;; 17655 esac 17656 ;; 17657 17658 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17659 no_undefined_flag_CXX='${wl}-z,text' 17660 archive_cmds_need_lc_CXX=no 17661 hardcode_shlibpath_var_CXX=no 17662 runpath_var='LD_RUN_PATH' 17663 17664 case $cc_basename in 17665 CC*) 17666 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17667 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17668 ;; 17669 *) 17670 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17671 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17672 ;; 17673 esac 17674 ;; 17675 17676 sysv5* | sco3.2v5* | sco5v6*) 17677 # Note: We can NOT use -z defs as we might desire, because we do not 17678 # link with -lc, and that would cause any symbols used from libc to 17679 # always be unresolved, which means just about no library would 17680 # ever link correctly. If we're not using GNU ld we use -z text 17681 # though, which does catch some bad symbols but isn't as heavy-handed 17682 # as -z defs. 17683 no_undefined_flag_CXX='${wl}-z,text' 17684 allow_undefined_flag_CXX='${wl}-z,nodefs' 17685 archive_cmds_need_lc_CXX=no 17686 hardcode_shlibpath_var_CXX=no 17687 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 17688 hardcode_libdir_separator_CXX=':' 17689 link_all_deplibs_CXX=yes 17690 export_dynamic_flag_spec_CXX='${wl}-Bexport' 17691 runpath_var='LD_RUN_PATH' 17692 17693 case $cc_basename in 17694 CC*) 17695 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17696 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17697 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 17698 '"$old_archive_cmds_CXX" 17699 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 17700 '"$reload_cmds_CXX" 17701 ;; 17702 *) 17703 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17704 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17705 ;; 17706 esac 17707 ;; 17708 17709 tandem*) 17710 case $cc_basename in 17711 NCC*) 17712 # NonStop-UX NCC 3.20 17713 # FIXME: insert proper C++ library support 17714 ld_shlibs_CXX=no 17715 ;; 17716 *) 17717 # FIXME: insert proper C++ library support 17718 ld_shlibs_CXX=no 17719 ;; 17720 esac 17721 ;; 17722 17723 vxworks*) 17724 # FIXME: insert proper C++ library support 17725 ld_shlibs_CXX=no 17726 ;; 17727 17728 *) 17729 # FIXME: insert proper C++ library support 17730 ld_shlibs_CXX=no 17731 ;; 17732 esac 17733 17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 17735$as_echo "$ld_shlibs_CXX" >&6; } 17736 test "$ld_shlibs_CXX" = no && can_build_shared=no 17737 17738 GCC_CXX="$GXX" 17739 LD_CXX="$LD" 17740 17741 ## CAVEAT EMPTOR: 17742 ## There is no encapsulation within the following macros, do not change 17743 ## the running order or otherwise move them around unless you know exactly 17744 ## what you are doing... 17745 # Dependencies to place before and after the object being linked: 17746predep_objects_CXX= 17747postdep_objects_CXX= 17748predeps_CXX= 17749postdeps_CXX= 17750compiler_lib_search_path_CXX= 17751 17752cat > conftest.$ac_ext <<_LT_EOF 17753class Foo 17754{ 17755public: 17756 Foo (void) { a = 0; } 17757private: 17758 int a; 17759}; 17760_LT_EOF 17761 17762 17763_lt_libdeps_save_CFLAGS=$CFLAGS 17764case "$CC $CFLAGS " in #( 17765*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 17766*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 17767*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 17768esac 17769 17770if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17771 (eval $ac_compile) 2>&5 17772 ac_status=$? 17773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17774 test $ac_status = 0; }; then 17775 # Parse the compiler output and extract the necessary 17776 # objects, libraries and library flags. 17777 17778 # Sentinel used to keep track of whether or not we are before 17779 # the conftest object file. 17780 pre_test_object_deps_done=no 17781 17782 for p in `eval "$output_verbose_link_cmd"`; do 17783 case ${prev}${p} in 17784 17785 -L* | -R* | -l*) 17786 # Some compilers place space between "-{L,R}" and the path. 17787 # Remove the space. 17788 if test $p = "-L" || 17789 test $p = "-R"; then 17790 prev=$p 17791 continue 17792 fi 17793 17794 # Expand the sysroot to ease extracting the directories later. 17795 if test -z "$prev"; then 17796 case $p in 17797 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 17798 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 17799 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 17800 esac 17801 fi 17802 case $p in 17803 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 17804 esac 17805 if test "$pre_test_object_deps_done" = no; then 17806 case ${prev} in 17807 -L | -R) 17808 # Internal compiler library paths should come after those 17809 # provided the user. The postdeps already come after the 17810 # user supplied libs so there is no need to process them. 17811 if test -z "$compiler_lib_search_path_CXX"; then 17812 compiler_lib_search_path_CXX="${prev}${p}" 17813 else 17814 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 17815 fi 17816 ;; 17817 # The "-l" case would never come before the object being 17818 # linked, so don't bother handling this case. 17819 esac 17820 else 17821 if test -z "$postdeps_CXX"; then 17822 postdeps_CXX="${prev}${p}" 17823 else 17824 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 17825 fi 17826 fi 17827 prev= 17828 ;; 17829 17830 *.lto.$objext) ;; # Ignore GCC LTO objects 17831 *.$objext) 17832 # This assumes that the test object file only shows up 17833 # once in the compiler output. 17834 if test "$p" = "conftest.$objext"; then 17835 pre_test_object_deps_done=yes 17836 continue 17837 fi 17838 17839 if test "$pre_test_object_deps_done" = no; then 17840 if test -z "$predep_objects_CXX"; then 17841 predep_objects_CXX="$p" 17842 else 17843 predep_objects_CXX="$predep_objects_CXX $p" 17844 fi 17845 else 17846 if test -z "$postdep_objects_CXX"; then 17847 postdep_objects_CXX="$p" 17848 else 17849 postdep_objects_CXX="$postdep_objects_CXX $p" 17850 fi 17851 fi 17852 ;; 17853 17854 *) ;; # Ignore the rest. 17855 17856 esac 17857 done 17858 17859 # Clean up. 17860 rm -f a.out a.exe 17861else 17862 echo "libtool.m4: error: problem compiling CXX test program" 17863fi 17864 17865$RM -f confest.$objext 17866CFLAGS=$_lt_libdeps_save_CFLAGS 17867 17868# PORTME: override above test on systems where it is broken 17869case $host_os in 17870interix[3-9]*) 17871 # Interix 3.5 installs completely hosed .la files for C++, so rather than 17872 # hack all around it, let's just trust "g++" to DTRT. 17873 predep_objects_CXX= 17874 postdep_objects_CXX= 17875 postdeps_CXX= 17876 ;; 17877 17878linux*) 17879 case `$CC -V 2>&1 | sed 5q` in 17880 *Sun\ C*) 17881 # Sun C++ 5.9 17882 17883 # The more standards-conforming stlport4 library is 17884 # incompatible with the Cstd library. Avoid specifying 17885 # it if it's in CXXFLAGS. Ignore libCrun as 17886 # -library=stlport4 depends on it. 17887 case " $CXX $CXXFLAGS " in 17888 *" -library=stlport4 "*) 17889 solaris_use_stlport4=yes 17890 ;; 17891 esac 17892 17893 if test "$solaris_use_stlport4" != yes; then 17894 postdeps_CXX='-library=Cstd -library=Crun' 17895 fi 17896 ;; 17897 esac 17898 ;; 17899 17900solaris*) 17901 case $cc_basename in 17902 CC* | sunCC*) 17903 # The more standards-conforming stlport4 library is 17904 # incompatible with the Cstd library. Avoid specifying 17905 # it if it's in CXXFLAGS. Ignore libCrun as 17906 # -library=stlport4 depends on it. 17907 case " $CXX $CXXFLAGS " in 17908 *" -library=stlport4 "*) 17909 solaris_use_stlport4=yes 17910 ;; 17911 esac 17912 17913 # Adding this requires a known-good setup of shared libraries for 17914 # Sun compiler versions before 5.6, else PIC objects from an old 17915 # archive will be linked into the output, leading to subtle bugs. 17916 if test "$solaris_use_stlport4" != yes; then 17917 postdeps_CXX='-library=Cstd -library=Crun' 17918 fi 17919 ;; 17920 esac 17921 ;; 17922esac 17923 17924 17925case " $postdeps_CXX " in 17926*" -lc "*) archive_cmds_need_lc_CXX=no ;; 17927esac 17928 compiler_lib_search_dirs_CXX= 17929if test -n "${compiler_lib_search_path_CXX}"; then 17930 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 17931fi 17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 17950 17951 17952 17953 17954 17955 17956 17957 17958 17959 17960 17961 17962 17963 lt_prog_compiler_wl_CXX= 17964lt_prog_compiler_pic_CXX= 17965lt_prog_compiler_static_CXX= 17966 17967 17968 # C++ specific cases for pic, static, wl, etc. 17969 if test "$GXX" = yes; then 17970 lt_prog_compiler_wl_CXX='-Wl,' 17971 lt_prog_compiler_static_CXX='-static' 17972 17973 case $host_os in 17974 aix*) 17975 # All AIX code is PIC. 17976 if test "$host_cpu" = ia64; then 17977 # AIX 5 now supports IA64 processor 17978 lt_prog_compiler_static_CXX='-Bstatic' 17979 fi 17980 ;; 17981 17982 amigaos*) 17983 case $host_cpu in 17984 powerpc) 17985 # see comment about AmigaOS4 .so support 17986 lt_prog_compiler_pic_CXX='-fPIC' 17987 ;; 17988 m68k) 17989 # FIXME: we need at least 68020 code to build shared libraries, but 17990 # adding the `-m68020' flag to GCC prevents building anything better, 17991 # like `-m68040'. 17992 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 17993 ;; 17994 esac 17995 ;; 17996 17997 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17998 # PIC is the default for these OSes. 17999 ;; 18000 mingw* | cygwin* | os2* | pw32* | cegcc*) 18001 # This hack is so that the source file can tell whether it is being 18002 # built for inclusion in a dll (and should export symbols for example). 18003 # Although the cygwin gcc ignores -fPIC, still need this for old-style 18004 # (--disable-auto-import) libraries 18005 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 18006 ;; 18007 darwin* | rhapsody*) 18008 # PIC is the default on this platform 18009 # Common symbols not allowed in MH_DYLIB files 18010 lt_prog_compiler_pic_CXX='-fno-common' 18011 ;; 18012 *djgpp*) 18013 # DJGPP does not support shared libraries at all 18014 lt_prog_compiler_pic_CXX= 18015 ;; 18016 haiku*) 18017 # PIC is the default for Haiku. 18018 # The "-static" flag exists, but is broken. 18019 lt_prog_compiler_static_CXX= 18020 ;; 18021 interix[3-9]*) 18022 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 18023 # Instead, we relocate shared libraries at runtime. 18024 ;; 18025 sysv4*MP*) 18026 if test -d /usr/nec; then 18027 lt_prog_compiler_pic_CXX=-Kconform_pic 18028 fi 18029 ;; 18030 hpux*) 18031 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 18032 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 18033 # sets the default TLS model and affects inlining. 18034 case $host_cpu in 18035 hppa*64*) 18036 ;; 18037 *) 18038 lt_prog_compiler_pic_CXX='-fPIC' 18039 ;; 18040 esac 18041 ;; 18042 *qnx* | *nto*) 18043 # QNX uses GNU C++, but need to define -shared option too, otherwise 18044 # it will coredump. 18045 lt_prog_compiler_pic_CXX='-fPIC -shared' 18046 ;; 18047 *) 18048 lt_prog_compiler_pic_CXX='-fPIC' 18049 ;; 18050 esac 18051 else 18052 case $host_os in 18053 aix[4-9]*) 18054 # All AIX code is PIC. 18055 if test "$host_cpu" = ia64; then 18056 # AIX 5 now supports IA64 processor 18057 lt_prog_compiler_static_CXX='-Bstatic' 18058 else 18059 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 18060 fi 18061 ;; 18062 chorus*) 18063 case $cc_basename in 18064 cxch68*) 18065 # Green Hills C++ Compiler 18066 # _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" 18067 ;; 18068 esac 18069 ;; 18070 mingw* | cygwin* | os2* | pw32* | cegcc*) 18071 # This hack is so that the source file can tell whether it is being 18072 # built for inclusion in a dll (and should export symbols for example). 18073 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 18074 ;; 18075 dgux*) 18076 case $cc_basename in 18077 ec++*) 18078 lt_prog_compiler_pic_CXX='-KPIC' 18079 ;; 18080 ghcx*) 18081 # Green Hills C++ Compiler 18082 lt_prog_compiler_pic_CXX='-pic' 18083 ;; 18084 *) 18085 ;; 18086 esac 18087 ;; 18088 freebsd* | dragonfly*) 18089 # FreeBSD uses GNU C++ 18090 ;; 18091 hpux9* | hpux10* | hpux11*) 18092 case $cc_basename in 18093 CC*) 18094 lt_prog_compiler_wl_CXX='-Wl,' 18095 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 18096 if test "$host_cpu" != ia64; then 18097 lt_prog_compiler_pic_CXX='+Z' 18098 fi 18099 ;; 18100 aCC*) 18101 lt_prog_compiler_wl_CXX='-Wl,' 18102 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 18103 case $host_cpu in 18104 hppa*64*|ia64*) 18105 # +Z the default 18106 ;; 18107 *) 18108 lt_prog_compiler_pic_CXX='+Z' 18109 ;; 18110 esac 18111 ;; 18112 *) 18113 ;; 18114 esac 18115 ;; 18116 interix*) 18117 # This is c89, which is MS Visual C++ (no shared libs) 18118 # Anyone wants to do a port? 18119 ;; 18120 irix5* | irix6* | nonstopux*) 18121 case $cc_basename in 18122 CC*) 18123 lt_prog_compiler_wl_CXX='-Wl,' 18124 lt_prog_compiler_static_CXX='-non_shared' 18125 # CC pic flag -KPIC is the default. 18126 ;; 18127 *) 18128 ;; 18129 esac 18130 ;; 18131 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18132 case $cc_basename in 18133 KCC*) 18134 # KAI C++ Compiler 18135 lt_prog_compiler_wl_CXX='--backend -Wl,' 18136 lt_prog_compiler_pic_CXX='-fPIC' 18137 ;; 18138 ecpc* ) 18139 # old Intel C++ for x86_64 which still supported -KPIC. 18140 lt_prog_compiler_wl_CXX='-Wl,' 18141 lt_prog_compiler_pic_CXX='-KPIC' 18142 lt_prog_compiler_static_CXX='-static' 18143 ;; 18144 icpc* ) 18145 # Intel C++, used to be incompatible with GCC. 18146 # ICC 10 doesn't accept -KPIC any more. 18147 lt_prog_compiler_wl_CXX='-Wl,' 18148 lt_prog_compiler_pic_CXX='-fPIC' 18149 lt_prog_compiler_static_CXX='-static' 18150 ;; 18151 pgCC* | pgcpp*) 18152 # Portland Group C++ compiler 18153 lt_prog_compiler_wl_CXX='-Wl,' 18154 lt_prog_compiler_pic_CXX='-fpic' 18155 lt_prog_compiler_static_CXX='-Bstatic' 18156 ;; 18157 cxx*) 18158 # Compaq C++ 18159 # Make sure the PIC flag is empty. It appears that all Alpha 18160 # Linux and Compaq Tru64 Unix objects are PIC. 18161 lt_prog_compiler_pic_CXX= 18162 lt_prog_compiler_static_CXX='-non_shared' 18163 ;; 18164 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 18165 # IBM XL 8.0, 9.0 on PPC and BlueGene 18166 lt_prog_compiler_wl_CXX='-Wl,' 18167 lt_prog_compiler_pic_CXX='-qpic' 18168 lt_prog_compiler_static_CXX='-qstaticlink' 18169 ;; 18170 *) 18171 case `$CC -V 2>&1 | sed 5q` in 18172 *Sun\ C*) 18173 # Sun C++ 5.9 18174 lt_prog_compiler_pic_CXX='-KPIC' 18175 lt_prog_compiler_static_CXX='-Bstatic' 18176 lt_prog_compiler_wl_CXX='-Qoption ld ' 18177 ;; 18178 esac 18179 ;; 18180 esac 18181 ;; 18182 lynxos*) 18183 ;; 18184 m88k*) 18185 ;; 18186 mvs*) 18187 case $cc_basename in 18188 cxx*) 18189 lt_prog_compiler_pic_CXX='-W c,exportall' 18190 ;; 18191 *) 18192 ;; 18193 esac 18194 ;; 18195 netbsd* | netbsdelf*-gnu) 18196 ;; 18197 *qnx* | *nto*) 18198 # QNX uses GNU C++, but need to define -shared option too, otherwise 18199 # it will coredump. 18200 lt_prog_compiler_pic_CXX='-fPIC -shared' 18201 ;; 18202 osf3* | osf4* | osf5*) 18203 case $cc_basename in 18204 KCC*) 18205 lt_prog_compiler_wl_CXX='--backend -Wl,' 18206 ;; 18207 RCC*) 18208 # Rational C++ 2.4.1 18209 lt_prog_compiler_pic_CXX='-pic' 18210 ;; 18211 cxx*) 18212 # Digital/Compaq C++ 18213 lt_prog_compiler_wl_CXX='-Wl,' 18214 # Make sure the PIC flag is empty. It appears that all Alpha 18215 # Linux and Compaq Tru64 Unix objects are PIC. 18216 lt_prog_compiler_pic_CXX= 18217 lt_prog_compiler_static_CXX='-non_shared' 18218 ;; 18219 *) 18220 ;; 18221 esac 18222 ;; 18223 psos*) 18224 ;; 18225 solaris*) 18226 case $cc_basename in 18227 CC* | sunCC*) 18228 # Sun C++ 4.2, 5.x and Centerline C++ 18229 lt_prog_compiler_pic_CXX='-KPIC' 18230 lt_prog_compiler_static_CXX='-Bstatic' 18231 lt_prog_compiler_wl_CXX='-Qoption ld ' 18232 ;; 18233 gcx*) 18234 # Green Hills C++ Compiler 18235 lt_prog_compiler_pic_CXX='-PIC' 18236 ;; 18237 *) 18238 ;; 18239 esac 18240 ;; 18241 sunos4*) 18242 case $cc_basename in 18243 CC*) 18244 # Sun C++ 4.x 18245 lt_prog_compiler_pic_CXX='-pic' 18246 lt_prog_compiler_static_CXX='-Bstatic' 18247 ;; 18248 lcc*) 18249 # Lucid 18250 lt_prog_compiler_pic_CXX='-pic' 18251 ;; 18252 *) 18253 ;; 18254 esac 18255 ;; 18256 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 18257 case $cc_basename in 18258 CC*) 18259 lt_prog_compiler_wl_CXX='-Wl,' 18260 lt_prog_compiler_pic_CXX='-KPIC' 18261 lt_prog_compiler_static_CXX='-Bstatic' 18262 ;; 18263 esac 18264 ;; 18265 tandem*) 18266 case $cc_basename in 18267 NCC*) 18268 # NonStop-UX NCC 3.20 18269 lt_prog_compiler_pic_CXX='-KPIC' 18270 ;; 18271 *) 18272 ;; 18273 esac 18274 ;; 18275 vxworks*) 18276 ;; 18277 *) 18278 lt_prog_compiler_can_build_shared_CXX=no 18279 ;; 18280 esac 18281 fi 18282 18283case $host_os in 18284 # For platforms which do not support PIC, -DPIC is meaningless: 18285 *djgpp*) 18286 lt_prog_compiler_pic_CXX= 18287 ;; 18288 *) 18289 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 18290 ;; 18291esac 18292 18293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 18294$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 18295if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 18296 $as_echo_n "(cached) " >&6 18297else 18298 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 18299fi 18300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 18301$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 18302lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 18303 18304# 18305# Check to make sure the PIC flag actually works. 18306# 18307if test -n "$lt_prog_compiler_pic_CXX"; then 18308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 18309$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 18310if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 18311 $as_echo_n "(cached) " >&6 18312else 18313 lt_cv_prog_compiler_pic_works_CXX=no 18314 ac_outfile=conftest.$ac_objext 18315 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18316 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 18317 # Insert the option either (1) after the last *FLAGS variable, or 18318 # (2) before a word containing "conftest.", or (3) at the end. 18319 # Note that $ac_compile itself does not contain backslashes and begins 18320 # with a dollar sign (not a hyphen), so the echo should work correctly. 18321 # The option is referenced via a variable to avoid confusing sed. 18322 lt_compile=`echo "$ac_compile" | $SED \ 18323 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18325 -e 's:$: $lt_compiler_flag:'` 18326 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 18327 (eval "$lt_compile" 2>conftest.err) 18328 ac_status=$? 18329 cat conftest.err >&5 18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18331 if (exit $ac_status) && test -s "$ac_outfile"; then 18332 # The compiler can only warn and ignore the option if not recognized 18333 # So say no if there are warnings other than the usual output. 18334 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 18335 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18336 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 18337 lt_cv_prog_compiler_pic_works_CXX=yes 18338 fi 18339 fi 18340 $RM conftest* 18341 18342fi 18343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 18344$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 18345 18346if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 18347 case $lt_prog_compiler_pic_CXX in 18348 "" | " "*) ;; 18349 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 18350 esac 18351else 18352 lt_prog_compiler_pic_CXX= 18353 lt_prog_compiler_can_build_shared_CXX=no 18354fi 18355 18356fi 18357 18358 18359 18360 18361 18362# 18363# Check to make sure the static flag actually works. 18364# 18365wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 18366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 18367$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 18368if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 18369 $as_echo_n "(cached) " >&6 18370else 18371 lt_cv_prog_compiler_static_works_CXX=no 18372 save_LDFLAGS="$LDFLAGS" 18373 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 18374 echo "$lt_simple_link_test_code" > conftest.$ac_ext 18375 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 18376 # The linker can only warn and ignore the option if not recognized 18377 # So say no if there are warnings 18378 if test -s conftest.err; then 18379 # Append any errors to the config.log. 18380 cat conftest.err 1>&5 18381 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 18382 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18383 if diff conftest.exp conftest.er2 >/dev/null; then 18384 lt_cv_prog_compiler_static_works_CXX=yes 18385 fi 18386 else 18387 lt_cv_prog_compiler_static_works_CXX=yes 18388 fi 18389 fi 18390 $RM -r conftest* 18391 LDFLAGS="$save_LDFLAGS" 18392 18393fi 18394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 18395$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 18396 18397if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 18398 : 18399else 18400 lt_prog_compiler_static_CXX= 18401fi 18402 18403 18404 18405 18406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 18407$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 18408if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 18409 $as_echo_n "(cached) " >&6 18410else 18411 lt_cv_prog_compiler_c_o_CXX=no 18412 $RM -r conftest 2>/dev/null 18413 mkdir conftest 18414 cd conftest 18415 mkdir out 18416 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18417 18418 lt_compiler_flag="-o out/conftest2.$ac_objext" 18419 # Insert the option either (1) after the last *FLAGS variable, or 18420 # (2) before a word containing "conftest.", or (3) at the end. 18421 # Note that $ac_compile itself does not contain backslashes and begins 18422 # with a dollar sign (not a hyphen), so the echo should work correctly. 18423 lt_compile=`echo "$ac_compile" | $SED \ 18424 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18426 -e 's:$: $lt_compiler_flag:'` 18427 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 18428 (eval "$lt_compile" 2>out/conftest.err) 18429 ac_status=$? 18430 cat out/conftest.err >&5 18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18432 if (exit $ac_status) && test -s out/conftest2.$ac_objext 18433 then 18434 # The compiler can only warn and ignore the option if not recognized 18435 # So say no if there are warnings 18436 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 18437 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 18438 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 18439 lt_cv_prog_compiler_c_o_CXX=yes 18440 fi 18441 fi 18442 chmod u+w . 2>&5 18443 $RM conftest* 18444 # SGI C++ compiler will create directory out/ii_files/ for 18445 # template instantiation 18446 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 18447 $RM out/* && rmdir out 18448 cd .. 18449 $RM -r conftest 18450 $RM conftest* 18451 18452fi 18453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 18454$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 18455 18456 18457 18458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 18459$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 18460if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 18461 $as_echo_n "(cached) " >&6 18462else 18463 lt_cv_prog_compiler_c_o_CXX=no 18464 $RM -r conftest 2>/dev/null 18465 mkdir conftest 18466 cd conftest 18467 mkdir out 18468 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18469 18470 lt_compiler_flag="-o out/conftest2.$ac_objext" 18471 # Insert the option either (1) after the last *FLAGS variable, or 18472 # (2) before a word containing "conftest.", or (3) at the end. 18473 # Note that $ac_compile itself does not contain backslashes and begins 18474 # with a dollar sign (not a hyphen), so the echo should work correctly. 18475 lt_compile=`echo "$ac_compile" | $SED \ 18476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18478 -e 's:$: $lt_compiler_flag:'` 18479 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 18480 (eval "$lt_compile" 2>out/conftest.err) 18481 ac_status=$? 18482 cat out/conftest.err >&5 18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18484 if (exit $ac_status) && test -s out/conftest2.$ac_objext 18485 then 18486 # The compiler can only warn and ignore the option if not recognized 18487 # So say no if there are warnings 18488 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 18489 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 18490 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 18491 lt_cv_prog_compiler_c_o_CXX=yes 18492 fi 18493 fi 18494 chmod u+w . 2>&5 18495 $RM conftest* 18496 # SGI C++ compiler will create directory out/ii_files/ for 18497 # template instantiation 18498 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 18499 $RM out/* && rmdir out 18500 cd .. 18501 $RM -r conftest 18502 $RM conftest* 18503 18504fi 18505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 18506$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 18507 18508 18509 18510 18511hard_links="nottested" 18512if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 18513 # do not overwrite the value of need_locks provided by the user 18514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 18515$as_echo_n "checking if we can lock with hard links... " >&6; } 18516 hard_links=yes 18517 $RM conftest* 18518 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18519 touch conftest.a 18520 ln conftest.a conftest.b 2>&5 || hard_links=no 18521 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 18523$as_echo "$hard_links" >&6; } 18524 if test "$hard_links" = no; then 18525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 18526$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 18527 need_locks=warn 18528 fi 18529else 18530 need_locks=no 18531fi 18532 18533 18534 18535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 18536$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 18537 18538 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 18539 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 18540 case $host_os in 18541 aix[4-9]*) 18542 # If we're using GNU nm, then we don't want the "-C" option. 18543 # -C means demangle to AIX nm, but means don't demangle with GNU nm 18544 # Also, AIX nm treats weak defined symbols like other global defined 18545 # symbols, whereas GNU nm marks them as "W". 18546 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 18547 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 18548 else 18549 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 18550 fi 18551 ;; 18552 pw32*) 18553 export_symbols_cmds_CXX="$ltdll_cmds" 18554 ;; 18555 cygwin* | mingw* | cegcc*) 18556 case $cc_basename in 18557 cl*) 18558 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 18559 ;; 18560 *) 18561 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' 18562 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 18563 ;; 18564 esac 18565 ;; 18566 linux* | k*bsd*-gnu | gnu*) 18567 link_all_deplibs_CXX=no 18568 ;; 18569 *) 18570 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 18571 ;; 18572 esac 18573 18574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 18575$as_echo "$ld_shlibs_CXX" >&6; } 18576test "$ld_shlibs_CXX" = no && can_build_shared=no 18577 18578with_gnu_ld_CXX=$with_gnu_ld 18579 18580 18581 18582 18583 18584 18585# 18586# Do we need to explicitly link libc? 18587# 18588case "x$archive_cmds_need_lc_CXX" in 18589x|xyes) 18590 # Assume -lc should be added 18591 archive_cmds_need_lc_CXX=yes 18592 18593 if test "$enable_shared" = yes && test "$GCC" = yes; then 18594 case $archive_cmds_CXX in 18595 *'~'*) 18596 # FIXME: we may have to deal with multi-command sequences. 18597 ;; 18598 '$CC '*) 18599 # Test whether the compiler implicitly links with -lc since on some 18600 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18601 # to ld, don't add -lc before -lgcc. 18602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 18603$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 18604if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 18605 $as_echo_n "(cached) " >&6 18606else 18607 $RM conftest* 18608 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18609 18610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 18611 (eval $ac_compile) 2>&5 18612 ac_status=$? 18613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18614 test $ac_status = 0; } 2>conftest.err; then 18615 soname=conftest 18616 lib=conftest 18617 libobjs=conftest.$ac_objext 18618 deplibs= 18619 wl=$lt_prog_compiler_wl_CXX 18620 pic_flag=$lt_prog_compiler_pic_CXX 18621 compiler_flags=-v 18622 linker_flags=-v 18623 verstring= 18624 output_objdir=. 18625 libname=conftest 18626 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 18627 allow_undefined_flag_CXX= 18628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 18629 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 18630 ac_status=$? 18631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18632 test $ac_status = 0; } 18633 then 18634 lt_cv_archive_cmds_need_lc_CXX=no 18635 else 18636 lt_cv_archive_cmds_need_lc_CXX=yes 18637 fi 18638 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 18639 else 18640 cat conftest.err 1>&5 18641 fi 18642 $RM conftest* 18643 18644fi 18645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 18646$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 18647 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 18648 ;; 18649 esac 18650 fi 18651 ;; 18652esac 18653 18654 18655 18656 18657 18658 18659 18660 18661 18662 18663 18664 18665 18666 18667 18668 18669 18670 18671 18672 18673 18674 18675 18676 18677 18678 18679 18680 18681 18682 18683 18684 18685 18686 18687 18688 18689 18690 18691 18692 18693 18694 18695 18696 18697 18698 18699 18700 18701 18702 18703 18704 18705 18706 18707 18708 18709 18710 18711 18712 18713 18714 18715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 18716$as_echo_n "checking dynamic linker characteristics... " >&6; } 18717 18718library_names_spec= 18719libname_spec='lib$name' 18720soname_spec= 18721shrext_cmds=".so" 18722postinstall_cmds= 18723postuninstall_cmds= 18724finish_cmds= 18725finish_eval= 18726shlibpath_var= 18727shlibpath_overrides_runpath=unknown 18728version_type=none 18729dynamic_linker="$host_os ld.so" 18730sys_lib_dlsearch_path_spec="/lib /usr/lib" 18731need_lib_prefix=unknown 18732hardcode_into_libs=no 18733 18734# when you set need_version to no, make sure it does not cause -set_version 18735# flags to be left without arguments 18736need_version=unknown 18737 18738case $host_os in 18739aix3*) 18740 version_type=linux # correct to gnu/linux during the next big refactor 18741 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18742 shlibpath_var=LIBPATH 18743 18744 # AIX 3 has no versioning support, so we append a major version to the name. 18745 soname_spec='${libname}${release}${shared_ext}$major' 18746 ;; 18747 18748aix[4-9]*) 18749 version_type=linux # correct to gnu/linux during the next big refactor 18750 need_lib_prefix=no 18751 need_version=no 18752 hardcode_into_libs=yes 18753 if test "$host_cpu" = ia64; then 18754 # AIX 5 supports IA64 18755 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18756 shlibpath_var=LD_LIBRARY_PATH 18757 else 18758 # With GCC up to 2.95.x, collect2 would create an import file 18759 # for dependence libraries. The import file would start with 18760 # the line `#! .'. This would cause the generated library to 18761 # depend on `.', always an invalid library. This was fixed in 18762 # development snapshots of GCC prior to 3.0. 18763 case $host_os in 18764 aix4 | aix4.[01] | aix4.[01].*) 18765 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18766 echo ' yes ' 18767 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 18768 : 18769 else 18770 can_build_shared=no 18771 fi 18772 ;; 18773 esac 18774 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18775 # soname into executable. Probably we can add versioning support to 18776 # collect2, so additional links can be useful in future. 18777 if test "$aix_use_runtimelinking" = yes; then 18778 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18779 # instead of lib<name>.a to let people know that these are not 18780 # typical AIX shared libraries. 18781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18782 else 18783 # We preserve .a as extension for shared libraries through AIX4.2 18784 # and later when we are not doing run time linking. 18785 library_names_spec='${libname}${release}.a $libname.a' 18786 soname_spec='${libname}${release}${shared_ext}$major' 18787 fi 18788 shlibpath_var=LIBPATH 18789 fi 18790 ;; 18791 18792amigaos*) 18793 case $host_cpu in 18794 powerpc) 18795 # Since July 2007 AmigaOS4 officially supports .so libraries. 18796 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 18797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18798 ;; 18799 m68k) 18800 library_names_spec='$libname.ixlibrary $libname.a' 18801 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18802 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 18803 ;; 18804 esac 18805 ;; 18806 18807beos*) 18808 library_names_spec='${libname}${shared_ext}' 18809 dynamic_linker="$host_os ld.so" 18810 shlibpath_var=LIBRARY_PATH 18811 ;; 18812 18813bsdi[45]*) 18814 version_type=linux # correct to gnu/linux during the next big refactor 18815 need_version=no 18816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18817 soname_spec='${libname}${release}${shared_ext}$major' 18818 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18819 shlibpath_var=LD_LIBRARY_PATH 18820 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18821 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18822 # the default ld.so.conf also contains /usr/contrib/lib and 18823 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18824 # libtool to hard-code these into programs 18825 ;; 18826 18827cygwin* | mingw* | pw32* | cegcc*) 18828 version_type=windows 18829 shrext_cmds=".dll" 18830 need_version=no 18831 need_lib_prefix=no 18832 18833 case $GCC,$cc_basename in 18834 yes,*) 18835 # gcc 18836 library_names_spec='$libname.dll.a' 18837 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18838 postinstall_cmds='base_file=`basename \${file}`~ 18839 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 18840 dldir=$destdir/`dirname \$dlpath`~ 18841 test -d \$dldir || mkdir -p \$dldir~ 18842 $install_prog $dir/$dlname \$dldir/$dlname~ 18843 chmod a+x \$dldir/$dlname~ 18844 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18845 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18846 fi' 18847 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18848 dlpath=$dir/\$dldll~ 18849 $RM \$dlpath' 18850 shlibpath_overrides_runpath=yes 18851 18852 case $host_os in 18853 cygwin*) 18854 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18855 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18856 18857 ;; 18858 mingw* | cegcc*) 18859 # MinGW DLLs use traditional 'lib' prefix 18860 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18861 ;; 18862 pw32*) 18863 # pw32 DLLs use 'pw' prefix rather than 'lib' 18864 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18865 ;; 18866 esac 18867 dynamic_linker='Win32 ld.exe' 18868 ;; 18869 18870 *,cl*) 18871 # Native MSVC 18872 libname_spec='$name' 18873 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18874 library_names_spec='${libname}.dll.lib' 18875 18876 case $build_os in 18877 mingw*) 18878 sys_lib_search_path_spec= 18879 lt_save_ifs=$IFS 18880 IFS=';' 18881 for lt_path in $LIB 18882 do 18883 IFS=$lt_save_ifs 18884 # Let DOS variable expansion print the short 8.3 style file name. 18885 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 18886 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 18887 done 18888 IFS=$lt_save_ifs 18889 # Convert to MSYS style. 18890 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 18891 ;; 18892 cygwin*) 18893 # Convert to unix form, then to dos form, then back to unix form 18894 # but this time dos style (no spaces!) so that the unix form looks 18895 # like /cygdrive/c/PROGRA~1:/cygdr... 18896 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 18897 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 18898 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18899 ;; 18900 *) 18901 sys_lib_search_path_spec="$LIB" 18902 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 18903 # It is most probably a Windows format PATH. 18904 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18905 else 18906 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18907 fi 18908 # FIXME: find the short name or the path components, as spaces are 18909 # common. (e.g. "Program Files" -> "PROGRA~1") 18910 ;; 18911 esac 18912 18913 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18914 postinstall_cmds='base_file=`basename \${file}`~ 18915 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 18916 dldir=$destdir/`dirname \$dlpath`~ 18917 test -d \$dldir || mkdir -p \$dldir~ 18918 $install_prog $dir/$dlname \$dldir/$dlname' 18919 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18920 dlpath=$dir/\$dldll~ 18921 $RM \$dlpath' 18922 shlibpath_overrides_runpath=yes 18923 dynamic_linker='Win32 link.exe' 18924 ;; 18925 18926 *) 18927 # Assume MSVC wrapper 18928 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18929 dynamic_linker='Win32 ld.exe' 18930 ;; 18931 esac 18932 # FIXME: first we should search . and the directory the executable is in 18933 shlibpath_var=PATH 18934 ;; 18935 18936darwin* | rhapsody*) 18937 dynamic_linker="$host_os dyld" 18938 version_type=darwin 18939 need_lib_prefix=no 18940 need_version=no 18941 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18942 soname_spec='${libname}${release}${major}$shared_ext' 18943 shlibpath_overrides_runpath=yes 18944 shlibpath_var=DYLD_LIBRARY_PATH 18945 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18946 18947 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18948 ;; 18949 18950dgux*) 18951 version_type=linux # correct to gnu/linux during the next big refactor 18952 need_lib_prefix=no 18953 need_version=no 18954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18955 soname_spec='${libname}${release}${shared_ext}$major' 18956 shlibpath_var=LD_LIBRARY_PATH 18957 ;; 18958 18959freebsd* | dragonfly*) 18960 # DragonFly does not have aout. When/if they implement a new 18961 # versioning mechanism, adjust this. 18962 if test -x /usr/bin/objformat; then 18963 objformat=`/usr/bin/objformat` 18964 else 18965 case $host_os in 18966 freebsd[23].*) objformat=aout ;; 18967 *) objformat=elf ;; 18968 esac 18969 fi 18970 version_type=freebsd-$objformat 18971 case $version_type in 18972 freebsd-elf*) 18973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18974 need_version=no 18975 need_lib_prefix=no 18976 ;; 18977 freebsd-*) 18978 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18979 need_version=yes 18980 ;; 18981 esac 18982 shlibpath_var=LD_LIBRARY_PATH 18983 case $host_os in 18984 freebsd2.*) 18985 shlibpath_overrides_runpath=yes 18986 ;; 18987 freebsd3.[01]* | freebsdelf3.[01]*) 18988 shlibpath_overrides_runpath=yes 18989 hardcode_into_libs=yes 18990 ;; 18991 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18992 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18993 shlibpath_overrides_runpath=no 18994 hardcode_into_libs=yes 18995 ;; 18996 *) # from 4.6 on, and DragonFly 18997 shlibpath_overrides_runpath=yes 18998 hardcode_into_libs=yes 18999 ;; 19000 esac 19001 ;; 19002 19003haiku*) 19004 version_type=linux # correct to gnu/linux during the next big refactor 19005 need_lib_prefix=no 19006 need_version=no 19007 dynamic_linker="$host_os runtime_loader" 19008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 19009 soname_spec='${libname}${release}${shared_ext}$major' 19010 shlibpath_var=LIBRARY_PATH 19011 shlibpath_overrides_runpath=yes 19012 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 19013 hardcode_into_libs=yes 19014 ;; 19015 19016hpux9* | hpux10* | hpux11*) 19017 # Give a soname corresponding to the major version so that dld.sl refuses to 19018 # link against other versions. 19019 version_type=sunos 19020 need_lib_prefix=no 19021 need_version=no 19022 case $host_cpu in 19023 ia64*) 19024 shrext_cmds='.so' 19025 hardcode_into_libs=yes 19026 dynamic_linker="$host_os dld.so" 19027 shlibpath_var=LD_LIBRARY_PATH 19028 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19030 soname_spec='${libname}${release}${shared_ext}$major' 19031 if test "X$HPUX_IA64_MODE" = X32; then 19032 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 19033 else 19034 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 19035 fi 19036 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19037 ;; 19038 hppa*64*) 19039 shrext_cmds='.sl' 19040 hardcode_into_libs=yes 19041 dynamic_linker="$host_os dld.sl" 19042 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 19043 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19045 soname_spec='${libname}${release}${shared_ext}$major' 19046 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 19047 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19048 ;; 19049 *) 19050 shrext_cmds='.sl' 19051 dynamic_linker="$host_os dld.sl" 19052 shlibpath_var=SHLIB_PATH 19053 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 19054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19055 soname_spec='${libname}${release}${shared_ext}$major' 19056 ;; 19057 esac 19058 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 19059 postinstall_cmds='chmod 555 $lib' 19060 # or fails outright, so override atomically: 19061 install_override_mode=555 19062 ;; 19063 19064interix[3-9]*) 19065 version_type=linux # correct to gnu/linux during the next big refactor 19066 need_lib_prefix=no 19067 need_version=no 19068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19069 soname_spec='${libname}${release}${shared_ext}$major' 19070 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 19071 shlibpath_var=LD_LIBRARY_PATH 19072 shlibpath_overrides_runpath=no 19073 hardcode_into_libs=yes 19074 ;; 19075 19076irix5* | irix6* | nonstopux*) 19077 case $host_os in 19078 nonstopux*) version_type=nonstopux ;; 19079 *) 19080 if test "$lt_cv_prog_gnu_ld" = yes; then 19081 version_type=linux # correct to gnu/linux during the next big refactor 19082 else 19083 version_type=irix 19084 fi ;; 19085 esac 19086 need_lib_prefix=no 19087 need_version=no 19088 soname_spec='${libname}${release}${shared_ext}$major' 19089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 19090 case $host_os in 19091 irix5* | nonstopux*) 19092 libsuff= shlibsuff= 19093 ;; 19094 *) 19095 case $LD in # libtool.m4 will add one of these switches to LD 19096 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 19097 libsuff= shlibsuff= libmagic=32-bit;; 19098 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 19099 libsuff=32 shlibsuff=N32 libmagic=N32;; 19100 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 19101 libsuff=64 shlibsuff=64 libmagic=64-bit;; 19102 *) libsuff= shlibsuff= libmagic=never-match;; 19103 esac 19104 ;; 19105 esac 19106 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 19107 shlibpath_overrides_runpath=no 19108 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 19109 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 19110 hardcode_into_libs=yes 19111 ;; 19112 19113# No shared lib support for Linux oldld, aout, or coff. 19114linux*oldld* | linux*aout* | linux*coff*) 19115 dynamic_linker=no 19116 ;; 19117 19118# This must be glibc/ELF. 19119linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 19120 version_type=linux # correct to gnu/linux during the next big refactor 19121 need_lib_prefix=no 19122 need_version=no 19123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19124 soname_spec='${libname}${release}${shared_ext}$major' 19125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 19126 shlibpath_var=LD_LIBRARY_PATH 19127 shlibpath_overrides_runpath=no 19128 19129 # Some binutils ld are patched to set DT_RUNPATH 19130 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 19131 $as_echo_n "(cached) " >&6 19132else 19133 lt_cv_shlibpath_overrides_runpath=no 19134 save_LDFLAGS=$LDFLAGS 19135 save_libdir=$libdir 19136 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 19137 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 19138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19139/* end confdefs.h. */ 19140 19141int 19142main () 19143{ 19144 19145 ; 19146 return 0; 19147} 19148_ACEOF 19149if ac_fn_cxx_try_link "$LINENO"; then : 19150 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 19151 lt_cv_shlibpath_overrides_runpath=yes 19152fi 19153fi 19154rm -f core conftest.err conftest.$ac_objext \ 19155 conftest$ac_exeext conftest.$ac_ext 19156 LDFLAGS=$save_LDFLAGS 19157 libdir=$save_libdir 19158 19159fi 19160 19161 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 19162 19163 # This implies no fast_install, which is unacceptable. 19164 # Some rework will be needed to allow for fast_install 19165 # before this can be enabled. 19166 hardcode_into_libs=yes 19167 19168 # Append ld.so.conf contents to the search path 19169 if test -f /etc/ld.so.conf; then 19170 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' ' '` 19171 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 19172 fi 19173 19174 # We used to test for /lib/ld.so.1 and disable shared libraries on 19175 # powerpc, because MkLinux only supported shared libraries with the 19176 # GNU dynamic linker. Since this was broken with cross compilers, 19177 # most powerpc-linux boxes support dynamic linking these days and 19178 # people can always --disable-shared, the test was removed, and we 19179 # assume the GNU/Linux dynamic linker is in use. 19180 dynamic_linker='GNU/Linux ld.so' 19181 ;; 19182 19183netbsdelf*-gnu) 19184 version_type=linux 19185 need_lib_prefix=no 19186 need_version=no 19187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19188 soname_spec='${libname}${release}${shared_ext}$major' 19189 shlibpath_var=LD_LIBRARY_PATH 19190 shlibpath_overrides_runpath=no 19191 hardcode_into_libs=yes 19192 dynamic_linker='NetBSD ld.elf_so' 19193 ;; 19194 19195netbsd*) 19196 version_type=sunos 19197 need_lib_prefix=no 19198 need_version=no 19199 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 19200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19202 dynamic_linker='NetBSD (a.out) ld.so' 19203 else 19204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19205 soname_spec='${libname}${release}${shared_ext}$major' 19206 dynamic_linker='NetBSD ld.elf_so' 19207 fi 19208 shlibpath_var=LD_LIBRARY_PATH 19209 shlibpath_overrides_runpath=yes 19210 hardcode_into_libs=yes 19211 ;; 19212 19213newsos6) 19214 version_type=linux # correct to gnu/linux during the next big refactor 19215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19216 shlibpath_var=LD_LIBRARY_PATH 19217 shlibpath_overrides_runpath=yes 19218 ;; 19219 19220*nto* | *qnx*) 19221 version_type=qnx 19222 need_lib_prefix=no 19223 need_version=no 19224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19225 soname_spec='${libname}${release}${shared_ext}$major' 19226 shlibpath_var=LD_LIBRARY_PATH 19227 shlibpath_overrides_runpath=no 19228 hardcode_into_libs=yes 19229 dynamic_linker='ldqnx.so' 19230 ;; 19231 19232openbsd*) 19233 version_type=sunos 19234 sys_lib_dlsearch_path_spec="/usr/lib" 19235 need_lib_prefix=no 19236 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 19237 case $host_os in 19238 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 19239 *) need_version=no ;; 19240 esac 19241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19242 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19243 shlibpath_var=LD_LIBRARY_PATH 19244 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19245 case $host_os in 19246 openbsd2.[89] | openbsd2.[89].*) 19247 shlibpath_overrides_runpath=no 19248 ;; 19249 *) 19250 shlibpath_overrides_runpath=yes 19251 ;; 19252 esac 19253 else 19254 shlibpath_overrides_runpath=yes 19255 fi 19256 ;; 19257 19258os2*) 19259 libname_spec='$name' 19260 shrext_cmds=".dll" 19261 need_lib_prefix=no 19262 library_names_spec='$libname${shared_ext} $libname.a' 19263 dynamic_linker='OS/2 ld.exe' 19264 shlibpath_var=LIBPATH 19265 ;; 19266 19267osf3* | osf4* | osf5*) 19268 version_type=osf 19269 need_lib_prefix=no 19270 need_version=no 19271 soname_spec='${libname}${release}${shared_ext}$major' 19272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19273 shlibpath_var=LD_LIBRARY_PATH 19274 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 19275 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 19276 ;; 19277 19278rdos*) 19279 dynamic_linker=no 19280 ;; 19281 19282solaris*) 19283 version_type=linux # correct to gnu/linux during the next big refactor 19284 need_lib_prefix=no 19285 need_version=no 19286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19287 soname_spec='${libname}${release}${shared_ext}$major' 19288 shlibpath_var=LD_LIBRARY_PATH 19289 shlibpath_overrides_runpath=yes 19290 hardcode_into_libs=yes 19291 # ldd complains unless libraries are executable 19292 postinstall_cmds='chmod +x $lib' 19293 ;; 19294 19295sunos4*) 19296 version_type=sunos 19297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19298 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 19299 shlibpath_var=LD_LIBRARY_PATH 19300 shlibpath_overrides_runpath=yes 19301 if test "$with_gnu_ld" = yes; then 19302 need_lib_prefix=no 19303 fi 19304 need_version=yes 19305 ;; 19306 19307sysv4 | sysv4.3*) 19308 version_type=linux # correct to gnu/linux during the next big refactor 19309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19310 soname_spec='${libname}${release}${shared_ext}$major' 19311 shlibpath_var=LD_LIBRARY_PATH 19312 case $host_vendor in 19313 sni) 19314 shlibpath_overrides_runpath=no 19315 need_lib_prefix=no 19316 runpath_var=LD_RUN_PATH 19317 ;; 19318 siemens) 19319 need_lib_prefix=no 19320 ;; 19321 motorola) 19322 need_lib_prefix=no 19323 need_version=no 19324 shlibpath_overrides_runpath=no 19325 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 19326 ;; 19327 esac 19328 ;; 19329 19330sysv4*MP*) 19331 if test -d /usr/nec ;then 19332 version_type=linux # correct to gnu/linux during the next big refactor 19333 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 19334 soname_spec='$libname${shared_ext}.$major' 19335 shlibpath_var=LD_LIBRARY_PATH 19336 fi 19337 ;; 19338 19339sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 19340 version_type=freebsd-elf 19341 need_lib_prefix=no 19342 need_version=no 19343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19344 soname_spec='${libname}${release}${shared_ext}$major' 19345 shlibpath_var=LD_LIBRARY_PATH 19346 shlibpath_overrides_runpath=yes 19347 hardcode_into_libs=yes 19348 if test "$with_gnu_ld" = yes; then 19349 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 19350 else 19351 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 19352 case $host_os in 19353 sco3.2v5*) 19354 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 19355 ;; 19356 esac 19357 fi 19358 sys_lib_dlsearch_path_spec='/usr/lib' 19359 ;; 19360 19361tpf*) 19362 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 19363 version_type=linux # correct to gnu/linux during the next big refactor 19364 need_lib_prefix=no 19365 need_version=no 19366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19367 shlibpath_var=LD_LIBRARY_PATH 19368 shlibpath_overrides_runpath=no 19369 hardcode_into_libs=yes 19370 ;; 19371 19372uts4*) 19373 version_type=linux # correct to gnu/linux during the next big refactor 19374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19375 soname_spec='${libname}${release}${shared_ext}$major' 19376 shlibpath_var=LD_LIBRARY_PATH 19377 ;; 19378 19379*) 19380 dynamic_linker=no 19381 ;; 19382esac 19383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 19384$as_echo "$dynamic_linker" >&6; } 19385test "$dynamic_linker" = no && can_build_shared=no 19386 19387variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19388if test "$GCC" = yes; then 19389 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19390fi 19391 19392if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 19393 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 19394fi 19395if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 19396 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 19397fi 19398 19399 19400 19401 19402 19403 19404 19405 19406 19407 19408 19409 19410 19411 19412 19413 19414 19415 19416 19417 19418 19419 19420 19421 19422 19423 19424 19425 19426 19427 19428 19429 19430 19431 19432 19433 19434 19435 19436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 19437$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 19438hardcode_action_CXX= 19439if test -n "$hardcode_libdir_flag_spec_CXX" || 19440 test -n "$runpath_var_CXX" || 19441 test "X$hardcode_automatic_CXX" = "Xyes" ; then 19442 19443 # We can hardcode non-existent directories. 19444 if test "$hardcode_direct_CXX" != no && 19445 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19446 # have to relink, otherwise we might link with an installed library 19447 # when we should be linking with a yet-to-be-installed one 19448 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 19449 test "$hardcode_minus_L_CXX" != no; then 19450 # Linking always hardcodes the temporary library directory. 19451 hardcode_action_CXX=relink 19452 else 19453 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19454 hardcode_action_CXX=immediate 19455 fi 19456else 19457 # We cannot hardcode anything, or else we can only hardcode existing 19458 # directories. 19459 hardcode_action_CXX=unsupported 19460fi 19461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 19462$as_echo "$hardcode_action_CXX" >&6; } 19463 19464if test "$hardcode_action_CXX" = relink || 19465 test "$inherit_rpath_CXX" = yes; then 19466 # Fast installation is not supported 19467 enable_fast_install=no 19468elif test "$shlibpath_overrides_runpath" = yes || 19469 test "$enable_shared" = no; then 19470 # Fast installation is not necessary 19471 enable_fast_install=needless 19472fi 19473 19474 19475 19476 19477 19478 19479 19480 fi # test -n "$compiler" 19481 19482 CC=$lt_save_CC 19483 CFLAGS=$lt_save_CFLAGS 19484 LDCXX=$LD 19485 LD=$lt_save_LD 19486 GCC=$lt_save_GCC 19487 with_gnu_ld=$lt_save_with_gnu_ld 19488 lt_cv_path_LDCXX=$lt_cv_path_LD 19489 lt_cv_path_LD=$lt_save_path_LD 19490 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 19491 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 19492fi # test "$_lt_caught_CXX_error" != yes 19493 19494ac_ext=cpp 19495ac_cpp='$CXXCPP $CPPFLAGS' 19496ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19497ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19498ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19499 19500 19501 19502 19503 19504 19505 19506 19507 19508 19509 19510 19511 19512 19513 19514 ac_config_commands="$ac_config_commands libtool" 19515 19516 19517 19518 19519# Only expand once: 19520 19521 19522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 19523$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 19524set x ${MAKE-make} 19525ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 19526if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 19527 $as_echo_n "(cached) " >&6 19528else 19529 cat >conftest.make <<\_ACEOF 19530SHELL = /bin/sh 19531all: 19532 @echo '@@@%%%=$(MAKE)=@@@%%%' 19533_ACEOF 19534# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 19535case `${MAKE-make} -f conftest.make 2>/dev/null` in 19536 *@@@%%%=?*=@@@%%%*) 19537 eval ac_cv_prog_make_${ac_make}_set=yes;; 19538 *) 19539 eval ac_cv_prog_make_${ac_make}_set=no;; 19540esac 19541rm -f conftest.make 19542fi 19543if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 19544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19545$as_echo "yes" >&6; } 19546 SET_MAKE= 19547else 19548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19549$as_echo "no" >&6; } 19550 SET_MAKE="MAKE=${MAKE-make}" 19551fi 19552 19553if test -n "$ac_tool_prefix"; then 19554 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 19555set dummy ${ac_tool_prefix}ranlib; ac_word=$2 19556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19557$as_echo_n "checking for $ac_word... " >&6; } 19558if ${ac_cv_prog_RANLIB+:} false; then : 19559 $as_echo_n "(cached) " >&6 19560else 19561 if test -n "$RANLIB"; then 19562 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 19563else 19564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19565for as_dir in $PATH 19566do 19567 IFS=$as_save_IFS 19568 test -z "$as_dir" && as_dir=. 19569 for ac_exec_ext in '' $ac_executable_extensions; do 19570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19571 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 19572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19573 break 2 19574 fi 19575done 19576 done 19577IFS=$as_save_IFS 19578 19579fi 19580fi 19581RANLIB=$ac_cv_prog_RANLIB 19582if test -n "$RANLIB"; then 19583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 19584$as_echo "$RANLIB" >&6; } 19585else 19586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19587$as_echo "no" >&6; } 19588fi 19589 19590 19591fi 19592if test -z "$ac_cv_prog_RANLIB"; then 19593 ac_ct_RANLIB=$RANLIB 19594 # Extract the first word of "ranlib", so it can be a program name with args. 19595set dummy ranlib; ac_word=$2 19596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19597$as_echo_n "checking for $ac_word... " >&6; } 19598if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 19599 $as_echo_n "(cached) " >&6 19600else 19601 if test -n "$ac_ct_RANLIB"; then 19602 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 19603else 19604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19605for as_dir in $PATH 19606do 19607 IFS=$as_save_IFS 19608 test -z "$as_dir" && as_dir=. 19609 for ac_exec_ext in '' $ac_executable_extensions; do 19610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19611 ac_cv_prog_ac_ct_RANLIB="ranlib" 19612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19613 break 2 19614 fi 19615done 19616 done 19617IFS=$as_save_IFS 19618 19619fi 19620fi 19621ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 19622if test -n "$ac_ct_RANLIB"; then 19623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 19624$as_echo "$ac_ct_RANLIB" >&6; } 19625else 19626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19627$as_echo "no" >&6; } 19628fi 19629 19630 if test "x$ac_ct_RANLIB" = x; then 19631 RANLIB=":" 19632 else 19633 case $cross_compiling:$ac_tool_warned in 19634yes:) 19635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19637ac_tool_warned=yes ;; 19638esac 19639 RANLIB=$ac_ct_RANLIB 19640 fi 19641else 19642 RANLIB="$ac_cv_prog_RANLIB" 19643fi 19644 19645 19646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler usability" >&5 19647$as_echo_n "checking for C++ compiler usability... " >&6; } 19648cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19649/* end confdefs.h. */ 19650 19651int 19652main () 19653{ 19654 class test { public: int test; }; 19655 ; 19656 return 0; 19657} 19658_ACEOF 19659if ac_fn_cxx_try_compile "$LINENO"; then : 19660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 19661$as_echo "ok" >&6; } 19662else 19663 as_fn_error $? "No C++ compiler found" "$LINENO" 5 19664fi 19665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19666 19667# Defining _XOPEN_SOURCE to get extra field in struct stat 19668 19669$as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h 19670 19671 19672# Define _BSD_SOURCE in order to be able to call makedev(), minor() and major() under OpenBSD when _XOPEN_SOURCE is set 19673 19674$as_echo "#define _BSD_SOURCE 1" >>confdefs.h 19675 19676 19677########### 19678## THE FOLLOWING "DEFINE" USED TO RE-ENABLE FULL LIBC FEATURES ON DIFFERENT OPERATING SYSTEMS 19679## HAVE BEEN BORROWED FROM PYTHON's configure.in 19680## 19681## 19682 19683# The later defininition of _XOPEN_SOURCE disables certain features 19684# on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). 19685 19686$as_echo "#define _GNU_SOURCE 1" >>confdefs.h 19687 19688 19689# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables 19690# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable 19691# them. 19692 19693$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h 19694 19695 19696# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables 19697# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable 19698# them. 19699 19700$as_echo "#define __BSD_VISIBLE 1" >>confdefs.h 19701 19702 19703# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables 19704# certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable 19705# them. 19706 19707$as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h 19708 19709 19710## 19711## 19712########### 19713 19714# Checks for libraries. 19715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 19716$as_echo_n "checking for socket in -lsocket... " >&6; } 19717if ${ac_cv_lib_socket_socket+:} false; then : 19718 $as_echo_n "(cached) " >&6 19719else 19720 ac_check_lib_save_LIBS=$LIBS 19721LIBS="-lsocket $LIBS" 19722cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19723/* end confdefs.h. */ 19724 19725/* Override any GCC internal prototype to avoid an error. 19726 Use char because int might match the return type of a GCC 19727 builtin and then its argument prototype would still apply. */ 19728#ifdef __cplusplus 19729extern "C" 19730#endif 19731char socket (); 19732int 19733main () 19734{ 19735return socket (); 19736 ; 19737 return 0; 19738} 19739_ACEOF 19740if ac_fn_cxx_try_link "$LINENO"; then : 19741 ac_cv_lib_socket_socket=yes 19742else 19743 ac_cv_lib_socket_socket=no 19744fi 19745rm -f core conftest.err conftest.$ac_objext \ 19746 conftest$ac_exeext conftest.$ac_ext 19747LIBS=$ac_check_lib_save_LIBS 19748fi 19749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 19750$as_echo "$ac_cv_lib_socket_socket" >&6; } 19751if test "x$ac_cv_lib_socket_socket" = xyes; then : 19752 cat >>confdefs.h <<_ACEOF 19753#define HAVE_LIBSOCKET 1 19754_ACEOF 19755 19756 LIBS="-lsocket $LIBS" 19757 19758fi 19759 19760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for endnetconfig in -lnsl" >&5 19761$as_echo_n "checking for endnetconfig in -lnsl... " >&6; } 19762if ${ac_cv_lib_nsl_endnetconfig+:} false; then : 19763 $as_echo_n "(cached) " >&6 19764else 19765 ac_check_lib_save_LIBS=$LIBS 19766LIBS="-lnsl $LIBS" 19767cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19768/* end confdefs.h. */ 19769 19770/* Override any GCC internal prototype to avoid an error. 19771 Use char because int might match the return type of a GCC 19772 builtin and then its argument prototype would still apply. */ 19773#ifdef __cplusplus 19774extern "C" 19775#endif 19776char endnetconfig (); 19777int 19778main () 19779{ 19780return endnetconfig (); 19781 ; 19782 return 0; 19783} 19784_ACEOF 19785if ac_fn_cxx_try_link "$LINENO"; then : 19786 ac_cv_lib_nsl_endnetconfig=yes 19787else 19788 ac_cv_lib_nsl_endnetconfig=no 19789fi 19790rm -f core conftest.err conftest.$ac_objext \ 19791 conftest$ac_exeext conftest.$ac_ext 19792LIBS=$ac_check_lib_save_LIBS 19793fi 19794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_endnetconfig" >&5 19795$as_echo "$ac_cv_lib_nsl_endnetconfig" >&6; } 19796if test "x$ac_cv_lib_nsl_endnetconfig" = xyes; then : 19797 cat >>confdefs.h <<_ACEOF 19798#define HAVE_LIBNSL 1 19799_ACEOF 19800 19801 LIBS="-lnsl $LIBS" 19802 19803fi 19804 19805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap" >&5 19806$as_echo_n "checking for cap_get_proc in -lcap... " >&6; } 19807if ${ac_cv_lib_cap_cap_get_proc+:} false; then : 19808 $as_echo_n "(cached) " >&6 19809else 19810 ac_check_lib_save_LIBS=$LIBS 19811LIBS="-lcap $LIBS" 19812cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19813/* end confdefs.h. */ 19814 19815/* Override any GCC internal prototype to avoid an error. 19816 Use char because int might match the return type of a GCC 19817 builtin and then its argument prototype would still apply. */ 19818#ifdef __cplusplus 19819extern "C" 19820#endif 19821char cap_get_proc (); 19822int 19823main () 19824{ 19825return cap_get_proc (); 19826 ; 19827 return 0; 19828} 19829_ACEOF 19830if ac_fn_cxx_try_link "$LINENO"; then : 19831 ac_cv_lib_cap_cap_get_proc=yes 19832else 19833 ac_cv_lib_cap_cap_get_proc=no 19834fi 19835rm -f core conftest.err conftest.$ac_objext \ 19836 conftest$ac_exeext conftest.$ac_ext 19837LIBS=$ac_check_lib_save_LIBS 19838fi 19839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_get_proc" >&5 19840$as_echo "$ac_cv_lib_cap_cap_get_proc" >&6; } 19841if test "x$ac_cv_lib_cap_cap_get_proc" = xyes; then : 19842 cat >>confdefs.h <<_ACEOF 19843#define HAVE_LIBCAP 1 19844_ACEOF 19845 19846 LIBS="-lcap $LIBS" 19847 19848fi 19849 19850 19851 19852# Check whether --enable-libdl-linking was given. 19853if test "${enable_libdl_linking+set}" = set; then : 19854 enableval=$enable_libdl_linking; 19855else 19856 19857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 19858$as_echo_n "checking for dlsym in -ldl... " >&6; } 19859if ${ac_cv_lib_dl_dlsym+:} false; then : 19860 $as_echo_n "(cached) " >&6 19861else 19862 ac_check_lib_save_LIBS=$LIBS 19863LIBS="-ldl $LIBS" 19864cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19865/* end confdefs.h. */ 19866 19867/* Override any GCC internal prototype to avoid an error. 19868 Use char because int might match the return type of a GCC 19869 builtin and then its argument prototype would still apply. */ 19870#ifdef __cplusplus 19871extern "C" 19872#endif 19873char dlsym (); 19874int 19875main () 19876{ 19877return dlsym (); 19878 ; 19879 return 0; 19880} 19881_ACEOF 19882if ac_fn_cxx_try_link "$LINENO"; then : 19883 ac_cv_lib_dl_dlsym=yes 19884else 19885 ac_cv_lib_dl_dlsym=no 19886fi 19887rm -f core conftest.err conftest.$ac_objext \ 19888 conftest$ac_exeext conftest.$ac_ext 19889LIBS=$ac_check_lib_save_LIBS 19890fi 19891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 19892$as_echo "$ac_cv_lib_dl_dlsym" >&6; } 19893if test "x$ac_cv_lib_dl_dlsym" = xyes; then : 19894 cat >>confdefs.h <<_ACEOF 19895#define HAVE_LIBDL 1 19896_ACEOF 19897 19898 LIBS="-ldl $LIBS" 19899 19900fi 19901 19902 19903fi 19904 19905 19906 19907# Checks for header files. 19908ac_header_dirent=no 19909for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 19910 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 19911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 19912$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 19913if eval \${$as_ac_Header+:} false; then : 19914 $as_echo_n "(cached) " >&6 19915else 19916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19917/* end confdefs.h. */ 19918#include <sys/types.h> 19919#include <$ac_hdr> 19920 19921int 19922main () 19923{ 19924if ((DIR *) 0) 19925return 0; 19926 ; 19927 return 0; 19928} 19929_ACEOF 19930if ac_fn_cxx_try_compile "$LINENO"; then : 19931 eval "$as_ac_Header=yes" 19932else 19933 eval "$as_ac_Header=no" 19934fi 19935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19936fi 19937eval ac_res=\$$as_ac_Header 19938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19939$as_echo "$ac_res" >&6; } 19940if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19941 cat >>confdefs.h <<_ACEOF 19942#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 19943_ACEOF 19944 19945ac_header_dirent=$ac_hdr; break 19946fi 19947 19948done 19949# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 19950if test $ac_header_dirent = dirent.h; then 19951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 19952$as_echo_n "checking for library containing opendir... " >&6; } 19953if ${ac_cv_search_opendir+:} false; then : 19954 $as_echo_n "(cached) " >&6 19955else 19956 ac_func_search_save_LIBS=$LIBS 19957cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19958/* end confdefs.h. */ 19959 19960/* Override any GCC internal prototype to avoid an error. 19961 Use char because int might match the return type of a GCC 19962 builtin and then its argument prototype would still apply. */ 19963#ifdef __cplusplus 19964extern "C" 19965#endif 19966char opendir (); 19967int 19968main () 19969{ 19970return opendir (); 19971 ; 19972 return 0; 19973} 19974_ACEOF 19975for ac_lib in '' dir; do 19976 if test -z "$ac_lib"; then 19977 ac_res="none required" 19978 else 19979 ac_res=-l$ac_lib 19980 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19981 fi 19982 if ac_fn_cxx_try_link "$LINENO"; then : 19983 ac_cv_search_opendir=$ac_res 19984fi 19985rm -f core conftest.err conftest.$ac_objext \ 19986 conftest$ac_exeext 19987 if ${ac_cv_search_opendir+:} false; then : 19988 break 19989fi 19990done 19991if ${ac_cv_search_opendir+:} false; then : 19992 19993else 19994 ac_cv_search_opendir=no 19995fi 19996rm conftest.$ac_ext 19997LIBS=$ac_func_search_save_LIBS 19998fi 19999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 20000$as_echo "$ac_cv_search_opendir" >&6; } 20001ac_res=$ac_cv_search_opendir 20002if test "$ac_res" != no; then : 20003 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20004 20005fi 20006 20007else 20008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 20009$as_echo_n "checking for library containing opendir... " >&6; } 20010if ${ac_cv_search_opendir+:} false; then : 20011 $as_echo_n "(cached) " >&6 20012else 20013 ac_func_search_save_LIBS=$LIBS 20014cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20015/* end confdefs.h. */ 20016 20017/* Override any GCC internal prototype to avoid an error. 20018 Use char because int might match the return type of a GCC 20019 builtin and then its argument prototype would still apply. */ 20020#ifdef __cplusplus 20021extern "C" 20022#endif 20023char opendir (); 20024int 20025main () 20026{ 20027return opendir (); 20028 ; 20029 return 0; 20030} 20031_ACEOF 20032for ac_lib in '' x; do 20033 if test -z "$ac_lib"; then 20034 ac_res="none required" 20035 else 20036 ac_res=-l$ac_lib 20037 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20038 fi 20039 if ac_fn_cxx_try_link "$LINENO"; then : 20040 ac_cv_search_opendir=$ac_res 20041fi 20042rm -f core conftest.err conftest.$ac_objext \ 20043 conftest$ac_exeext 20044 if ${ac_cv_search_opendir+:} false; then : 20045 break 20046fi 20047done 20048if ${ac_cv_search_opendir+:} false; then : 20049 20050else 20051 ac_cv_search_opendir=no 20052fi 20053rm conftest.$ac_ext 20054LIBS=$ac_func_search_save_LIBS 20055fi 20056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 20057$as_echo "$ac_cv_search_opendir" >&6; } 20058ac_res=$ac_cv_search_opendir 20059if test "$ac_res" != no; then : 20060 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20061 20062fi 20063 20064fi 20065 20066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 20067$as_echo_n "checking for ANSI C header files... " >&6; } 20068if ${ac_cv_header_stdc+:} false; then : 20069 $as_echo_n "(cached) " >&6 20070else 20071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20072/* end confdefs.h. */ 20073#include <stdlib.h> 20074#include <stdarg.h> 20075#include <string.h> 20076#include <float.h> 20077 20078int 20079main () 20080{ 20081 20082 ; 20083 return 0; 20084} 20085_ACEOF 20086if ac_fn_cxx_try_compile "$LINENO"; then : 20087 ac_cv_header_stdc=yes 20088else 20089 ac_cv_header_stdc=no 20090fi 20091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20092 20093if test $ac_cv_header_stdc = yes; then 20094 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 20095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20096/* end confdefs.h. */ 20097#include <string.h> 20098 20099_ACEOF 20100if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20101 $EGREP "memchr" >/dev/null 2>&1; then : 20102 20103else 20104 ac_cv_header_stdc=no 20105fi 20106rm -f conftest* 20107 20108fi 20109 20110if test $ac_cv_header_stdc = yes; then 20111 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 20112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20113/* end confdefs.h. */ 20114#include <stdlib.h> 20115 20116_ACEOF 20117if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20118 $EGREP "free" >/dev/null 2>&1; then : 20119 20120else 20121 ac_cv_header_stdc=no 20122fi 20123rm -f conftest* 20124 20125fi 20126 20127if test $ac_cv_header_stdc = yes; then 20128 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 20129 if test "$cross_compiling" = yes; then : 20130 : 20131else 20132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20133/* end confdefs.h. */ 20134#include <ctype.h> 20135#include <stdlib.h> 20136#if ((' ' & 0x0FF) == 0x020) 20137# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20138# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20139#else 20140# define ISLOWER(c) \ 20141 (('a' <= (c) && (c) <= 'i') \ 20142 || ('j' <= (c) && (c) <= 'r') \ 20143 || ('s' <= (c) && (c) <= 'z')) 20144# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20145#endif 20146 20147#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20148int 20149main () 20150{ 20151 int i; 20152 for (i = 0; i < 256; i++) 20153 if (XOR (islower (i), ISLOWER (i)) 20154 || toupper (i) != TOUPPER (i)) 20155 return 2; 20156 return 0; 20157} 20158_ACEOF 20159if ac_fn_cxx_try_run "$LINENO"; then : 20160 20161else 20162 ac_cv_header_stdc=no 20163fi 20164rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20165 conftest.$ac_objext conftest.beam conftest.$ac_ext 20166fi 20167 20168fi 20169fi 20170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 20171$as_echo "$ac_cv_header_stdc" >&6; } 20172if test $ac_cv_header_stdc = yes; then 20173 20174$as_echo "#define STDC_HEADERS 1" >>confdefs.h 20175 20176fi 20177 20178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 20179$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 20180if ${ac_cv_header_sys_wait_h+:} false; then : 20181 $as_echo_n "(cached) " >&6 20182else 20183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20184/* end confdefs.h. */ 20185#include <sys/types.h> 20186#include <sys/wait.h> 20187#ifndef WEXITSTATUS 20188# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 20189#endif 20190#ifndef WIFEXITED 20191# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 20192#endif 20193 20194int 20195main () 20196{ 20197 int s; 20198 wait (&s); 20199 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 20200 ; 20201 return 0; 20202} 20203_ACEOF 20204if ac_fn_cxx_try_compile "$LINENO"; then : 20205 ac_cv_header_sys_wait_h=yes 20206else 20207 ac_cv_header_sys_wait_h=no 20208fi 20209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20210fi 20211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 20212$as_echo "$ac_cv_header_sys_wait_h" >&6; } 20213if test $ac_cv_header_sys_wait_h = yes; then 20214 20215$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 20216 20217fi 20218 20219 20220for ac_header in fcntl.h netinet/in.h arpa/inet.h stdint.h stdlib.h string.h sys/ioctl.h sys/socket.h termios.h unistd.h utime.h sys/types.h signal.h errno.h sys/un.h sys/stat.h time.h fnmatch.h regex.h pwd.h grp.h stdio.h pthread.h ctype.h getopt.h limits.h stddef.h sys/utsname.h libintl.h sys/capability.h linux/capability.h utimes.h sys/time.h wchar.h wctype.h stddef.h 20221do : 20222 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20223ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20224if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20225 cat >>confdefs.h <<_ACEOF 20226#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20227_ACEOF 20228 20229fi 20230 20231done 20232 20233 20234# Check whether --enable-largefile was given. 20235if test "${enable_largefile+set}" = set; then : 20236 enableval=$enable_largefile; 20237fi 20238 20239if test "$enable_largefile" != no; then 20240 20241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 20242$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 20243if ${ac_cv_sys_largefile_CC+:} false; then : 20244 $as_echo_n "(cached) " >&6 20245else 20246 ac_cv_sys_largefile_CC=no 20247 if test "$GCC" != yes; then 20248 ac_save_CC=$CC 20249 while :; do 20250 # IRIX 6.2 and later do not support large files by default, 20251 # so use the C compiler's -n32 option if that helps. 20252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20253/* end confdefs.h. */ 20254#include <sys/types.h> 20255 /* Check that off_t can represent 2**63 - 1 correctly. 20256 We can't simply define LARGE_OFF_T to be 9223372036854775807, 20257 since some C++ compilers masquerading as C compilers 20258 incorrectly reject 9223372036854775807. */ 20259#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 20260 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 20261 && LARGE_OFF_T % 2147483647 == 1) 20262 ? 1 : -1]; 20263int 20264main () 20265{ 20266 20267 ; 20268 return 0; 20269} 20270_ACEOF 20271 if ac_fn_cxx_try_compile "$LINENO"; then : 20272 break 20273fi 20274rm -f core conftest.err conftest.$ac_objext 20275 CC="$CC -n32" 20276 if ac_fn_cxx_try_compile "$LINENO"; then : 20277 ac_cv_sys_largefile_CC=' -n32'; break 20278fi 20279rm -f core conftest.err conftest.$ac_objext 20280 break 20281 done 20282 CC=$ac_save_CC 20283 rm -f conftest.$ac_ext 20284 fi 20285fi 20286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 20287$as_echo "$ac_cv_sys_largefile_CC" >&6; } 20288 if test "$ac_cv_sys_largefile_CC" != no; then 20289 CC=$CC$ac_cv_sys_largefile_CC 20290 fi 20291 20292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 20293$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 20294if ${ac_cv_sys_file_offset_bits+:} false; then : 20295 $as_echo_n "(cached) " >&6 20296else 20297 while :; do 20298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20299/* end confdefs.h. */ 20300#include <sys/types.h> 20301 /* Check that off_t can represent 2**63 - 1 correctly. 20302 We can't simply define LARGE_OFF_T to be 9223372036854775807, 20303 since some C++ compilers masquerading as C compilers 20304 incorrectly reject 9223372036854775807. */ 20305#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 20306 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 20307 && LARGE_OFF_T % 2147483647 == 1) 20308 ? 1 : -1]; 20309int 20310main () 20311{ 20312 20313 ; 20314 return 0; 20315} 20316_ACEOF 20317if ac_fn_cxx_try_compile "$LINENO"; then : 20318 ac_cv_sys_file_offset_bits=no; break 20319fi 20320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20322/* end confdefs.h. */ 20323#define _FILE_OFFSET_BITS 64 20324#include <sys/types.h> 20325 /* Check that off_t can represent 2**63 - 1 correctly. 20326 We can't simply define LARGE_OFF_T to be 9223372036854775807, 20327 since some C++ compilers masquerading as C compilers 20328 incorrectly reject 9223372036854775807. */ 20329#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 20330 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 20331 && LARGE_OFF_T % 2147483647 == 1) 20332 ? 1 : -1]; 20333int 20334main () 20335{ 20336 20337 ; 20338 return 0; 20339} 20340_ACEOF 20341if ac_fn_cxx_try_compile "$LINENO"; then : 20342 ac_cv_sys_file_offset_bits=64; break 20343fi 20344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20345 ac_cv_sys_file_offset_bits=unknown 20346 break 20347done 20348fi 20349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 20350$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 20351case $ac_cv_sys_file_offset_bits in #( 20352 no | unknown) ;; 20353 *) 20354cat >>confdefs.h <<_ACEOF 20355#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 20356_ACEOF 20357;; 20358esac 20359rm -rf conftest* 20360 if test $ac_cv_sys_file_offset_bits = unknown; then 20361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 20362$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 20363if ${ac_cv_sys_large_files+:} false; then : 20364 $as_echo_n "(cached) " >&6 20365else 20366 while :; do 20367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20368/* end confdefs.h. */ 20369#include <sys/types.h> 20370 /* Check that off_t can represent 2**63 - 1 correctly. 20371 We can't simply define LARGE_OFF_T to be 9223372036854775807, 20372 since some C++ compilers masquerading as C compilers 20373 incorrectly reject 9223372036854775807. */ 20374#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 20375 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 20376 && LARGE_OFF_T % 2147483647 == 1) 20377 ? 1 : -1]; 20378int 20379main () 20380{ 20381 20382 ; 20383 return 0; 20384} 20385_ACEOF 20386if ac_fn_cxx_try_compile "$LINENO"; then : 20387 ac_cv_sys_large_files=no; break 20388fi 20389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20391/* end confdefs.h. */ 20392#define _LARGE_FILES 1 20393#include <sys/types.h> 20394 /* Check that off_t can represent 2**63 - 1 correctly. 20395 We can't simply define LARGE_OFF_T to be 9223372036854775807, 20396 since some C++ compilers masquerading as C compilers 20397 incorrectly reject 9223372036854775807. */ 20398#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 20399 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 20400 && LARGE_OFF_T % 2147483647 == 1) 20401 ? 1 : -1]; 20402int 20403main () 20404{ 20405 20406 ; 20407 return 0; 20408} 20409_ACEOF 20410if ac_fn_cxx_try_compile "$LINENO"; then : 20411 ac_cv_sys_large_files=1; break 20412fi 20413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20414 ac_cv_sys_large_files=unknown 20415 break 20416done 20417fi 20418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 20419$as_echo "$ac_cv_sys_large_files" >&6; } 20420case $ac_cv_sys_large_files in #( 20421 no | unknown) ;; 20422 *) 20423cat >>confdefs.h <<_ACEOF 20424#define _LARGE_FILES $ac_cv_sys_large_files 20425_ACEOF 20426;; 20427esac 20428rm -rf conftest* 20429 fi 20430 20431 20432fi 20433 20434 20435# Checks for typedefs, structures, and compiler characteristics. 20436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 20437$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 20438if ${ac_cv_c_const+:} false; then : 20439 $as_echo_n "(cached) " >&6 20440else 20441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20442/* end confdefs.h. */ 20443 20444int 20445main () 20446{ 20447 20448#ifndef __cplusplus 20449 /* Ultrix mips cc rejects this sort of thing. */ 20450 typedef int charset[2]; 20451 const charset cs = { 0, 0 }; 20452 /* SunOS 4.1.1 cc rejects this. */ 20453 char const *const *pcpcc; 20454 char **ppc; 20455 /* NEC SVR4.0.2 mips cc rejects this. */ 20456 struct point {int x, y;}; 20457 static struct point const zero = {0,0}; 20458 /* AIX XL C 1.02.0.0 rejects this. 20459 It does not let you subtract one const X* pointer from another in 20460 an arm of an if-expression whose if-part is not a constant 20461 expression */ 20462 const char *g = "string"; 20463 pcpcc = &g + (g ? g-g : 0); 20464 /* HPUX 7.0 cc rejects these. */ 20465 ++pcpcc; 20466 ppc = (char**) pcpcc; 20467 pcpcc = (char const *const *) ppc; 20468 { /* SCO 3.2v4 cc rejects this sort of thing. */ 20469 char tx; 20470 char *t = &tx; 20471 char const *s = 0 ? (char *) 0 : (char const *) 0; 20472 20473 *t++ = 0; 20474 if (s) return 0; 20475 } 20476 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20477 int x[] = {25, 17}; 20478 const int *foo = &x[0]; 20479 ++foo; 20480 } 20481 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20482 typedef const int *iptr; 20483 iptr p = 0; 20484 ++p; 20485 } 20486 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 20487 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20488 struct s { int j; const int *ap[3]; } bx; 20489 struct s *b = &bx; b->j = 5; 20490 } 20491 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20492 const int foo = 10; 20493 if (!foo) return 0; 20494 } 20495 return !cs[0] && !zero.x; 20496#endif 20497 20498 ; 20499 return 0; 20500} 20501_ACEOF 20502if ac_fn_cxx_try_compile "$LINENO"; then : 20503 ac_cv_c_const=yes 20504else 20505 ac_cv_c_const=no 20506fi 20507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20508fi 20509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 20510$as_echo "$ac_cv_c_const" >&6; } 20511if test $ac_cv_c_const = no; then 20512 20513$as_echo "#define const /**/" >>confdefs.h 20514 20515fi 20516 20517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 20518$as_echo_n "checking for inline... " >&6; } 20519if ${ac_cv_c_inline+:} false; then : 20520 $as_echo_n "(cached) " >&6 20521else 20522 ac_cv_c_inline=no 20523for ac_kw in inline __inline__ __inline; do 20524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20525/* end confdefs.h. */ 20526#ifndef __cplusplus 20527typedef int foo_t; 20528static $ac_kw foo_t static_foo () {return 0; } 20529$ac_kw foo_t foo () {return 0; } 20530#endif 20531 20532_ACEOF 20533if ac_fn_cxx_try_compile "$LINENO"; then : 20534 ac_cv_c_inline=$ac_kw 20535fi 20536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20537 test "$ac_cv_c_inline" != no && break 20538done 20539 20540fi 20541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 20542$as_echo "$ac_cv_c_inline" >&6; } 20543 20544case $ac_cv_c_inline in 20545 inline | yes) ;; 20546 *) 20547 case $ac_cv_c_inline in 20548 no) ac_val=;; 20549 *) ac_val=$ac_cv_c_inline;; 20550 esac 20551 cat >>confdefs.h <<_ACEOF 20552#ifndef __cplusplus 20553#define inline $ac_val 20554#endif 20555_ACEOF 20556 ;; 20557esac 20558 20559ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 20560if test "x$ac_cv_type_off_t" = xyes; then : 20561 20562else 20563 20564cat >>confdefs.h <<_ACEOF 20565#define off_t long int 20566_ACEOF 20567 20568fi 20569 20570ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 20571if test "x$ac_cv_type_pid_t" = xyes; then : 20572 20573else 20574 20575cat >>confdefs.h <<_ACEOF 20576#define pid_t int 20577_ACEOF 20578 20579fi 20580 20581ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 20582if test "x$ac_cv_type_size_t" = xyes; then : 20583 20584else 20585 20586cat >>confdefs.h <<_ACEOF 20587#define size_t unsigned int 20588_ACEOF 20589 20590fi 20591 20592ac_fn_cxx_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" 20593if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : 20594 20595cat >>confdefs.h <<_ACEOF 20596#define HAVE_STRUCT_STAT_ST_RDEV 1 20597_ACEOF 20598 20599 20600fi 20601 20602ac_fn_cxx_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h> 20603/* NetBSD declares sys_siglist in unistd.h. */ 20604#ifdef HAVE_UNISTD_H 20605# include <unistd.h> 20606#endif 20607 20608" 20609if test "x$ac_cv_have_decl_sys_siglist" = xyes; then : 20610 ac_have_decl=1 20611else 20612 ac_have_decl=0 20613fi 20614 20615cat >>confdefs.h <<_ACEOF 20616#define HAVE_DECL_SYS_SIGLIST $ac_have_decl 20617_ACEOF 20618 20619 20620ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 20621if test "x$ac_cv_type_size_t" = xyes; then : 20622 # The cast to long int works around a bug in the HP C Compiler 20623# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20624# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20625# This bug is HP SR number 8606223364. 20626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 20627$as_echo_n "checking size of size_t... " >&6; } 20628if ${ac_cv_sizeof_size_t+:} false; then : 20629 $as_echo_n "(cached) " >&6 20630else 20631 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 20632 20633else 20634 if test "$ac_cv_type_size_t" = yes; then 20635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20637as_fn_error 77 "cannot compute sizeof (size_t) 20638See \`config.log' for more details" "$LINENO" 5; } 20639 else 20640 ac_cv_sizeof_size_t=0 20641 fi 20642fi 20643 20644fi 20645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 20646$as_echo "$ac_cv_sizeof_size_t" >&6; } 20647 20648 20649 20650cat >>confdefs.h <<_ACEOF 20651#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 20652_ACEOF 20653 20654 20655else 20656 as_fn_error $? "Cannot find size_t type" "$LINENO" 5 20657fi 20658 20659ac_fn_cxx_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default" 20660if test "x$ac_cv_type_time_t" = xyes; then : 20661 # The cast to long int works around a bug in the HP C Compiler 20662# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20663# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20664# This bug is HP SR number 8606223364. 20665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 20666$as_echo_n "checking size of time_t... " >&6; } 20667if ${ac_cv_sizeof_time_t+:} false; then : 20668 $as_echo_n "(cached) " >&6 20669else 20670 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 20671 20672else 20673 if test "$ac_cv_type_time_t" = yes; then 20674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20675$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20676as_fn_error 77 "cannot compute sizeof (time_t) 20677See \`config.log' for more details" "$LINENO" 5; } 20678 else 20679 ac_cv_sizeof_time_t=0 20680 fi 20681fi 20682 20683fi 20684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 20685$as_echo "$ac_cv_sizeof_time_t" >&6; } 20686 20687 20688 20689cat >>confdefs.h <<_ACEOF 20690#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 20691_ACEOF 20692 20693 20694else 20695 as_fn_error $? "Cannot find time_t type" "$LINENO" 5 20696fi 20697 20698ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 20699if test "x$ac_cv_type_off_t" = xyes; then : 20700 # The cast to long int works around a bug in the HP C Compiler 20701# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20702# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20703# This bug is HP SR number 8606223364. 20704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 20705$as_echo_n "checking size of off_t... " >&6; } 20706if ${ac_cv_sizeof_off_t+:} false; then : 20707 $as_echo_n "(cached) " >&6 20708else 20709 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 20710 20711else 20712 if test "$ac_cv_type_off_t" = yes; then 20713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20714$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20715as_fn_error 77 "cannot compute sizeof (off_t) 20716See \`config.log' for more details" "$LINENO" 5; } 20717 else 20718 ac_cv_sizeof_off_t=0 20719 fi 20720fi 20721 20722fi 20723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 20724$as_echo "$ac_cv_sizeof_off_t" >&6; } 20725 20726 20727 20728cat >>confdefs.h <<_ACEOF 20729#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 20730_ACEOF 20731 20732 20733else 20734 as_fn_error $? "Cannot find off_t type" "$LINENO" 5 20735fi 20736 20737 20738 20739# Checks for library functions. 20740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5 20741$as_echo_n "checking for working POSIX fnmatch... " >&6; } 20742if ${ac_cv_func_fnmatch_works+:} false; then : 20743 $as_echo_n "(cached) " >&6 20744else 20745 # Some versions of Solaris, SCO, and the GNU C Library 20746 # have a broken or incompatible fnmatch. 20747 # So we run a test program. If we are cross-compiling, take no chance. 20748 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test. 20749 if test "$cross_compiling" = yes; then : 20750 ac_cv_func_fnmatch_works=cross 20751else 20752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20753/* end confdefs.h. */ 20754#include <fnmatch.h> 20755# define y(a, b, c) (fnmatch (a, b, c) == 0) 20756# define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH) 20757 20758int 20759main () 20760{ 20761return 20762 (!(y ("a*", "abc", 0) 20763 && n ("d*/*1", "d/s/1", FNM_PATHNAME) 20764 && y ("a\\\\bc", "abc", 0) 20765 && n ("a\\\\bc", "abc", FNM_NOESCAPE) 20766 && y ("*x", ".x", 0) 20767 && n ("*x", ".x", FNM_PERIOD) 20768 && 1)); 20769 ; 20770 return 0; 20771} 20772_ACEOF 20773if ac_fn_cxx_try_run "$LINENO"; then : 20774 ac_cv_func_fnmatch_works=yes 20775else 20776 ac_cv_func_fnmatch_works=no 20777fi 20778rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20779 conftest.$ac_objext conftest.beam conftest.$ac_ext 20780fi 20781 20782fi 20783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5 20784$as_echo "$ac_cv_func_fnmatch_works" >&6; } 20785if test $ac_cv_func_fnmatch_works = yes; then : 20786 20787$as_echo "#define HAVE_FNMATCH 1" >>confdefs.h 20788 20789fi 20790 20791 20792for ac_header in vfork.h 20793do : 20794 ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 20795if test "x$ac_cv_header_vfork_h" = xyes; then : 20796 cat >>confdefs.h <<_ACEOF 20797#define HAVE_VFORK_H 1 20798_ACEOF 20799 20800fi 20801 20802done 20803 20804for ac_func in fork vfork 20805do : 20806 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20807ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 20808if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20809 cat >>confdefs.h <<_ACEOF 20810#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20811_ACEOF 20812 20813fi 20814done 20815 20816if test "x$ac_cv_func_fork" = xyes; then 20817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 20818$as_echo_n "checking for working fork... " >&6; } 20819if ${ac_cv_func_fork_works+:} false; then : 20820 $as_echo_n "(cached) " >&6 20821else 20822 if test "$cross_compiling" = yes; then : 20823 ac_cv_func_fork_works=cross 20824else 20825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20826/* end confdefs.h. */ 20827$ac_includes_default 20828int 20829main () 20830{ 20831 20832 /* By Ruediger Kuhlmann. */ 20833 return fork () < 0; 20834 20835 ; 20836 return 0; 20837} 20838_ACEOF 20839if ac_fn_cxx_try_run "$LINENO"; then : 20840 ac_cv_func_fork_works=yes 20841else 20842 ac_cv_func_fork_works=no 20843fi 20844rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20845 conftest.$ac_objext conftest.beam conftest.$ac_ext 20846fi 20847 20848fi 20849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 20850$as_echo "$ac_cv_func_fork_works" >&6; } 20851 20852else 20853 ac_cv_func_fork_works=$ac_cv_func_fork 20854fi 20855if test "x$ac_cv_func_fork_works" = xcross; then 20856 case $host in 20857 *-*-amigaos* | *-*-msdosdjgpp*) 20858 # Override, as these systems have only a dummy fork() stub 20859 ac_cv_func_fork_works=no 20860 ;; 20861 *) 20862 ac_cv_func_fork_works=yes 20863 ;; 20864 esac 20865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 20866$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 20867fi 20868ac_cv_func_vfork_works=$ac_cv_func_vfork 20869if test "x$ac_cv_func_vfork" = xyes; then 20870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 20871$as_echo_n "checking for working vfork... " >&6; } 20872if ${ac_cv_func_vfork_works+:} false; then : 20873 $as_echo_n "(cached) " >&6 20874else 20875 if test "$cross_compiling" = yes; then : 20876 ac_cv_func_vfork_works=cross 20877else 20878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20879/* end confdefs.h. */ 20880/* Thanks to Paul Eggert for this test. */ 20881$ac_includes_default 20882#include <sys/wait.h> 20883#ifdef HAVE_VFORK_H 20884# include <vfork.h> 20885#endif 20886/* On some sparc systems, changes by the child to local and incoming 20887 argument registers are propagated back to the parent. The compiler 20888 is told about this with #include <vfork.h>, but some compilers 20889 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 20890 static variable whose address is put into a register that is 20891 clobbered by the vfork. */ 20892static void 20893#ifdef __cplusplus 20894sparc_address_test (int arg) 20895# else 20896sparc_address_test (arg) int arg; 20897#endif 20898{ 20899 static pid_t child; 20900 if (!child) { 20901 child = vfork (); 20902 if (child < 0) { 20903 perror ("vfork"); 20904 _exit(2); 20905 } 20906 if (!child) { 20907 arg = getpid(); 20908 write(-1, "", 0); 20909 _exit (arg); 20910 } 20911 } 20912} 20913 20914int 20915main () 20916{ 20917 pid_t parent = getpid (); 20918 pid_t child; 20919 20920 sparc_address_test (0); 20921 20922 child = vfork (); 20923 20924 if (child == 0) { 20925 /* Here is another test for sparc vfork register problems. This 20926 test uses lots of local variables, at least as many local 20927 variables as main has allocated so far including compiler 20928 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 20929 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 20930 reuse the register of parent for one of the local variables, 20931 since it will think that parent can't possibly be used any more 20932 in this routine. Assigning to the local variable will thus 20933 munge parent in the parent process. */ 20934 pid_t 20935 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 20936 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 20937 /* Convince the compiler that p..p7 are live; otherwise, it might 20938 use the same hardware register for all 8 local variables. */ 20939 if (p != p1 || p != p2 || p != p3 || p != p4 20940 || p != p5 || p != p6 || p != p7) 20941 _exit(1); 20942 20943 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 20944 from child file descriptors. If the child closes a descriptor 20945 before it execs or exits, this munges the parent's descriptor 20946 as well. Test for this by closing stdout in the child. */ 20947 _exit(close(fileno(stdout)) != 0); 20948 } else { 20949 int status; 20950 struct stat st; 20951 20952 while (wait(&status) != child) 20953 ; 20954 return ( 20955 /* Was there some problem with vforking? */ 20956 child < 0 20957 20958 /* Did the child fail? (This shouldn't happen.) */ 20959 || status 20960 20961 /* Did the vfork/compiler bug occur? */ 20962 || parent != getpid() 20963 20964 /* Did the file descriptor bug occur? */ 20965 || fstat(fileno(stdout), &st) != 0 20966 ); 20967 } 20968} 20969_ACEOF 20970if ac_fn_cxx_try_run "$LINENO"; then : 20971 ac_cv_func_vfork_works=yes 20972else 20973 ac_cv_func_vfork_works=no 20974fi 20975rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20976 conftest.$ac_objext conftest.beam conftest.$ac_ext 20977fi 20978 20979fi 20980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 20981$as_echo "$ac_cv_func_vfork_works" >&6; } 20982 20983fi; 20984if test "x$ac_cv_func_fork_works" = xcross; then 20985 ac_cv_func_vfork_works=$ac_cv_func_vfork 20986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 20987$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 20988fi 20989 20990if test "x$ac_cv_func_vfork_works" = xyes; then 20991 20992$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 20993 20994else 20995 20996$as_echo "#define vfork fork" >>confdefs.h 20997 20998fi 20999if test "x$ac_cv_func_fork_works" = xyes; then 21000 21001$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 21002 21003fi 21004 21005if test $ac_cv_c_compiler_gnu = yes; then 21006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 21007$as_echo_n "checking whether $CC needs -traditional... " >&6; } 21008if ${ac_cv_prog_gcc_traditional+:} false; then : 21009 $as_echo_n "(cached) " >&6 21010else 21011 ac_pattern="Autoconf.*'x'" 21012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21013/* end confdefs.h. */ 21014#include <sgtty.h> 21015Autoconf TIOCGETP 21016_ACEOF 21017if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21018 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 21019 ac_cv_prog_gcc_traditional=yes 21020else 21021 ac_cv_prog_gcc_traditional=no 21022fi 21023rm -f conftest* 21024 21025 21026 if test $ac_cv_prog_gcc_traditional = no; then 21027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21028/* end confdefs.h. */ 21029#include <termio.h> 21030Autoconf TCGETA 21031_ACEOF 21032if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21033 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 21034 ac_cv_prog_gcc_traditional=yes 21035fi 21036rm -f conftest* 21037 21038 fi 21039fi 21040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 21041$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 21042 if test $ac_cv_prog_gcc_traditional = yes; then 21043 CC="$CC -traditional" 21044 fi 21045fi 21046 21047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 21048$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } 21049if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : 21050 $as_echo_n "(cached) " >&6 21051else 21052 rm -f conftest.sym conftest.file 21053echo >conftest.file 21054if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 21055 if test "$cross_compiling" = yes; then : 21056 ac_cv_func_lstat_dereferences_slashed_symlink=no 21057else 21058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21059/* end confdefs.h. */ 21060$ac_includes_default 21061int 21062main () 21063{ 21064struct stat sbuf; 21065 /* Linux will dereference the symlink and fail, as required by POSIX. 21066 That is better in the sense that it means we will not 21067 have to compile and use the lstat wrapper. */ 21068 return lstat ("conftest.sym/", &sbuf) == 0; 21069 ; 21070 return 0; 21071} 21072_ACEOF 21073if ac_fn_cxx_try_run "$LINENO"; then : 21074 ac_cv_func_lstat_dereferences_slashed_symlink=yes 21075else 21076 ac_cv_func_lstat_dereferences_slashed_symlink=no 21077fi 21078rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21079 conftest.$ac_objext conftest.beam conftest.$ac_ext 21080fi 21081 21082else 21083 # If the `ln -s' command failed, then we probably don't even 21084 # have an lstat function. 21085 ac_cv_func_lstat_dereferences_slashed_symlink=no 21086fi 21087rm -f conftest.sym conftest.file 21088 21089fi 21090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 21091$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 21092 21093test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 21094 21095cat >>confdefs.h <<_ACEOF 21096#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 21097_ACEOF 21098 21099 21100if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then 21101 case " $LIBOBJS " in 21102 *" lstat.$ac_objext "* ) ;; 21103 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 21104 ;; 21105esac 21106 21107fi 21108 21109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5 21110$as_echo_n "checking whether lstat accepts an empty string... " >&6; } 21111if ${ac_cv_func_lstat_empty_string_bug+:} false; then : 21112 $as_echo_n "(cached) " >&6 21113else 21114 if test "$cross_compiling" = yes; then : 21115 ac_cv_func_lstat_empty_string_bug=yes 21116else 21117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21118/* end confdefs.h. */ 21119$ac_includes_default 21120int 21121main () 21122{ 21123struct stat sbuf; 21124 return lstat ("", &sbuf) == 0; 21125 ; 21126 return 0; 21127} 21128_ACEOF 21129if ac_fn_cxx_try_run "$LINENO"; then : 21130 ac_cv_func_lstat_empty_string_bug=no 21131else 21132 ac_cv_func_lstat_empty_string_bug=yes 21133fi 21134rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21135 conftest.$ac_objext conftest.beam conftest.$ac_ext 21136fi 21137 21138fi 21139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5 21140$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } 21141if test $ac_cv_func_lstat_empty_string_bug = yes; then 21142 case " $LIBOBJS " in 21143 *" lstat.$ac_objext "* ) ;; 21144 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 21145 ;; 21146esac 21147 21148 21149cat >>confdefs.h <<_ACEOF 21150#define HAVE_LSTAT_EMPTY_STRING_BUG 1 21151_ACEOF 21152 21153fi 21154 21155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 21156$as_echo_n "checking whether sys/types.h defines makedev... " >&6; } 21157if ${ac_cv_header_sys_types_h_makedev+:} false; then : 21158 $as_echo_n "(cached) " >&6 21159else 21160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21161/* end confdefs.h. */ 21162#include <sys/types.h> 21163int 21164main () 21165{ 21166return makedev(0, 0); 21167 ; 21168 return 0; 21169} 21170_ACEOF 21171if ac_fn_cxx_try_link "$LINENO"; then : 21172 ac_cv_header_sys_types_h_makedev=yes 21173else 21174 ac_cv_header_sys_types_h_makedev=no 21175fi 21176rm -f core conftest.err conftest.$ac_objext \ 21177 conftest$ac_exeext conftest.$ac_ext 21178 21179fi 21180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 21181$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } 21182 21183if test $ac_cv_header_sys_types_h_makedev = no; then 21184ac_fn_cxx_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 21185if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : 21186 21187$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h 21188 21189fi 21190 21191 21192 21193 if test $ac_cv_header_sys_mkdev_h = no; then 21194 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 21195if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : 21196 21197$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h 21198 21199fi 21200 21201 21202 fi 21203fi 21204 21205for ac_header in stdlib.h 21206do : 21207 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 21208if test "x$ac_cv_header_stdlib_h" = xyes; then : 21209 cat >>confdefs.h <<_ACEOF 21210#define HAVE_STDLIB_H 1 21211_ACEOF 21212 21213fi 21214 21215done 21216 21217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 21218$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 21219if ${ac_cv_func_malloc_0_nonnull+:} false; then : 21220 $as_echo_n "(cached) " >&6 21221else 21222 if test "$cross_compiling" = yes; then : 21223 ac_cv_func_malloc_0_nonnull=no 21224else 21225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21226/* end confdefs.h. */ 21227#if defined STDC_HEADERS || defined HAVE_STDLIB_H 21228# include <stdlib.h> 21229#else 21230char *malloc (); 21231#endif 21232 21233int 21234main () 21235{ 21236return ! malloc (0); 21237 ; 21238 return 0; 21239} 21240_ACEOF 21241if ac_fn_cxx_try_run "$LINENO"; then : 21242 ac_cv_func_malloc_0_nonnull=yes 21243else 21244 ac_cv_func_malloc_0_nonnull=no 21245fi 21246rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21247 conftest.$ac_objext conftest.beam conftest.$ac_ext 21248fi 21249 21250fi 21251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 21252$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 21253if test $ac_cv_func_malloc_0_nonnull = yes; then : 21254 21255$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 21256 21257else 21258 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 21259 21260 case " $LIBOBJS " in 21261 *" malloc.$ac_objext "* ) ;; 21262 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 21263 ;; 21264esac 21265 21266 21267$as_echo "#define malloc rpl_malloc" >>confdefs.h 21268 21269fi 21270 21271 21272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 21273$as_echo_n "checking return type of signal handlers... " >&6; } 21274if ${ac_cv_type_signal+:} false; then : 21275 $as_echo_n "(cached) " >&6 21276else 21277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21278/* end confdefs.h. */ 21279#include <sys/types.h> 21280#include <signal.h> 21281 21282int 21283main () 21284{ 21285return *(signal (0, 0)) (0) == 1; 21286 ; 21287 return 0; 21288} 21289_ACEOF 21290if ac_fn_cxx_try_compile "$LINENO"; then : 21291 ac_cv_type_signal=int 21292else 21293 ac_cv_type_signal=void 21294fi 21295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21296fi 21297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 21298$as_echo "$ac_cv_type_signal" >&6; } 21299 21300cat >>confdefs.h <<_ACEOF 21301#define RETSIGTYPE $ac_cv_type_signal 21302_ACEOF 21303 21304 21305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 21306$as_echo_n "checking whether stat accepts an empty string... " >&6; } 21307if ${ac_cv_func_stat_empty_string_bug+:} false; then : 21308 $as_echo_n "(cached) " >&6 21309else 21310 if test "$cross_compiling" = yes; then : 21311 ac_cv_func_stat_empty_string_bug=yes 21312else 21313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21314/* end confdefs.h. */ 21315$ac_includes_default 21316int 21317main () 21318{ 21319struct stat sbuf; 21320 return stat ("", &sbuf) == 0; 21321 ; 21322 return 0; 21323} 21324_ACEOF 21325if ac_fn_cxx_try_run "$LINENO"; then : 21326 ac_cv_func_stat_empty_string_bug=no 21327else 21328 ac_cv_func_stat_empty_string_bug=yes 21329fi 21330rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21331 conftest.$ac_objext conftest.beam conftest.$ac_ext 21332fi 21333 21334fi 21335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 21336$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } 21337if test $ac_cv_func_stat_empty_string_bug = yes; then 21338 case " $LIBOBJS " in 21339 *" stat.$ac_objext "* ) ;; 21340 *) LIBOBJS="$LIBOBJS stat.$ac_objext" 21341 ;; 21342esac 21343 21344 21345cat >>confdefs.h <<_ACEOF 21346#define HAVE_STAT_EMPTY_STRING_BUG 1 21347_ACEOF 21348 21349fi 21350 21351 21352 21353 21354 for ac_header in $ac_header_list 21355do : 21356 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21357ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 21358" 21359if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21360 cat >>confdefs.h <<_ACEOF 21361#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21362_ACEOF 21363 21364fi 21365 21366done 21367 21368 21369 21370 21371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5 21372$as_echo_n "checking whether utime accepts a null argument... " >&6; } 21373if ${ac_cv_func_utime_null+:} false; then : 21374 $as_echo_n "(cached) " >&6 21375else 21376 rm -f conftest.data; >conftest.data 21377# Sequent interprets utime(file, 0) to mean use start of epoch. Wrong. 21378if test "$cross_compiling" = yes; then : 21379 ac_cv_func_utime_null='guessing yes' 21380else 21381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21382/* end confdefs.h. */ 21383$ac_includes_default 21384 #ifdef HAVE_UTIME_H 21385 # include <utime.h> 21386 #endif 21387int 21388main () 21389{ 21390struct stat s, t; 21391 return ! (stat ("conftest.data", &s) == 0 21392 && utime ("conftest.data", 0) == 0 21393 && stat ("conftest.data", &t) == 0 21394 && t.st_mtime >= s.st_mtime 21395 && t.st_mtime - s.st_mtime < 120); 21396 ; 21397 return 0; 21398} 21399_ACEOF 21400if ac_fn_cxx_try_run "$LINENO"; then : 21401 ac_cv_func_utime_null=yes 21402else 21403 ac_cv_func_utime_null=no 21404fi 21405rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21406 conftest.$ac_objext conftest.beam conftest.$ac_ext 21407fi 21408 21409fi 21410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5 21411$as_echo "$ac_cv_func_utime_null" >&6; } 21412if test "x$ac_cv_func_utime_null" != xno; then 21413 ac_cv_func_utime_null=yes 21414 21415$as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h 21416 21417fi 21418rm -f conftest.data 21419 21420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 21421$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 21422if ${ac_cv_header_time+:} false; then : 21423 $as_echo_n "(cached) " >&6 21424else 21425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21426/* end confdefs.h. */ 21427#include <sys/types.h> 21428#include <sys/time.h> 21429#include <time.h> 21430 21431int 21432main () 21433{ 21434if ((struct tm *) 0) 21435return 0; 21436 ; 21437 return 0; 21438} 21439_ACEOF 21440if ac_fn_cxx_try_compile "$LINENO"; then : 21441 ac_cv_header_time=yes 21442else 21443 ac_cv_header_time=no 21444fi 21445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21446fi 21447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 21448$as_echo "$ac_cv_header_time" >&6; } 21449if test $ac_cv_header_time = yes; then 21450 21451$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 21452 21453fi 21454 21455for ac_func in lchown mkdir regcomp rmdir strerr-or strerror_r utime fdopendir readdir_r ctime_r getgrnam_r getpwnam_r localtime_r 21456do : 21457 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21458ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 21459if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 21460 cat >>confdefs.h <<_ACEOF 21461#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21462_ACEOF 21463 21464fi 21465done 21466 21467 21468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++11 support" >&5 21469$as_echo_n "checking for c++11 support... " >&6; } 21470cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21471/* end confdefs.h. */ 21472 21473int 21474main () 21475{ 21476 thread_local static int test = 0; 21477 ; 21478 return 0; 21479} 21480 21481_ACEOF 21482if ac_fn_cxx_try_compile "$LINENO"; then : 21483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21484$as_echo "yes" >&6; } 21485else 21486 21487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21488$as_echo "no" >&6; } 21489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ support with -std=c++11 option set" >&5 21490$as_echo_n "checking for c++ support with -std=c++11 option set... " >&6; } 21491 CXXSTDFLAGS="-std=c++11" 21492 CXXFLAGS="$CXXFLAGS $CXXSTDFLAGS" 21493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21494/* end confdefs.h. */ 21495 21496int 21497main () 21498{ 21499 thread_local static int test = 0; 21500 ; 21501 return 0; 21502} 21503 21504_ACEOF 21505if ac_fn_cxx_try_compile "$LINENO"; then : 21506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21507$as_echo "yes" >&6; } 21508else 21509 21510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21511$as_echo "no" >&6; } 21512 as_fn_error $? "C++ compiler lack support for c++11 standard" "$LINENO" 5 21513 21514 21515fi 21516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21517 21518fi 21519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21520 21521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sed -r/-E option" >&5 21522$as_echo_n "checking for sed -r/-E option... " >&6; } 21523if sed -r -e 's/(c|o)+/\1/g' > /dev/null < /dev/null ; then 21524 local_sed="gnu" 21525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GNU sed, using -r option for regex" >&5 21526$as_echo "GNU sed, using -r option for regex" >&6; } 21527else 21528 if sed -E -e 's/(c|o)+/\1/g' > /dev/null < /dev/null ; then 21529 local_sed="bsd" 21530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: BSD sed, using -E option for regex" >&5 21531$as_echo "BSD sed, using -E option for regex" >&6; } 21532 else 21533 local_sed=unknown 21534 as_fn_error $? "unknown switch to use with sed to support regex" "$LINENO" 5 21535 fi 21536fi 21537 21538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt() in <unistd.h>" >&5 21539$as_echo_n "checking for getopt() in <unistd.h>... " >&6; } 21540cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21541/* end confdefs.h. */ 21542extern "C" { 21543 #if HAVE_UNISTD_H 21544 #include <unistd.h> 21545 #endif 21546 } 21547int 21548main () 21549{ 21550 getopt(0, 0, 0); 21551 ; 21552 return 0; 21553} 21554 21555_ACEOF 21556if ac_fn_cxx_try_compile "$LINENO"; then : 21557 21558 21559$as_echo "#define HAVE_GETOPT_IN_UNISTD_H 1" >>confdefs.h 21560 21561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5 21562$as_echo "present" >&6; } 21563 21564else 21565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: absent" >&5 21566$as_echo "absent" >&6; } 21567fi 21568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21569 21570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long() in <unistd.h>" >&5 21571$as_echo_n "checking for getopt_long() in <unistd.h>... " >&6; } 21572cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21573/* end confdefs.h. */ 21574extern "C" { 21575 #if HAVE_UNISTD_H 21576 #include <unistd.h> 21577 #endif 21578 } 21579int 21580main () 21581{ 21582 getopt_long(0, 0, 0, 0, 0); 21583 ; 21584 return 0; 21585} 21586 21587_ACEOF 21588if ac_fn_cxx_try_compile "$LINENO"; then : 21589 21590 21591$as_echo "#define HAVE_GETOPT_LONG_IN_UNISTD_H 1" >>confdefs.h 21592 21593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5 21594$as_echo "present" >&6; } 21595 21596else 21597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: absent" >&5 21598$as_echo "absent" >&6; } 21599fi 21600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21601 21602 21603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset presence" >&5 21604$as_echo_n "checking for optreset presence... " >&6; } 21605cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21606/* end confdefs.h. */ 21607extern "C" { 21608 #if HAVE_STDIO_H 21609 #include <stdio.h> 21610 #endif 21611 #if HAVE_GETOPT_H 21612 #include <getopt.h> 21613 #else 21614 #if HAVE_UNISTD_H 21615 #include <unistd.h> 21616 #endif 21617 #endif 21618 } 21619int 21620main () 21621{ 21622 int x = optreset; return 0; 21623 ; 21624 return 0; 21625} 21626 21627_ACEOF 21628if ac_fn_cxx_try_compile "$LINENO"; then : 21629 21630 21631$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h 21632 21633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: available" >&5 21634$as_echo "available" >&6; } 21635 21636else 21637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5 21638$as_echo "not available" >&6; } 21639fi 21640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21641 21642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Door file support" >&5 21643$as_echo_n "checking for Door file support... " >&6; } 21644cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21645/* end confdefs.h. */ 21646extern "C" { 21647 #if HAVE_SYS_STAT_H 21648 #include <sys/stat.h> 21649 #endif 21650 #if HAVE_UNISTD_H 21651 #include <unistd.h> 21652 #endif 21653 } 21654int 21655main () 21656{ 21657 struct stat buf; 21658 if(S_ISDOOR(buf.st_mode)) 21659 return 0; 21660 else 21661 return 1; 21662 21663 ; 21664 return 0; 21665} 21666 21667_ACEOF 21668if ac_fn_cxx_try_compile "$LINENO"; then : 21669 21670 21671$as_echo "#define HAVE_DOOR 1" >>confdefs.h 21672 21673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: available" >&5 21674$as_echo "available" >&6; } 21675 21676else 21677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5 21678$as_echo "not available" >&6; } 21679fi 21680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21681 21682 21683 21684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX.1e capabilities support" >&5 21685$as_echo_n "checking for POSIX.1e capabilities support... " >&6; } 21686cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21687/* end confdefs.h. */ 21688extern "C" { 21689 #if HAVE_SYS_CAPABILITY_H 21690 #include <sys/capability.h> 21691 #else 21692 #if HAVE_LINUX_CAPABILITY_H 21693 #include <linux/capability.h> 21694 #endif 21695 #endif 21696 #if HAVE_SYS_TYPES_H 21697 #include <sys/types.h> 21698 #endif 21699 } 21700int 21701main () 21702{ 21703 cap_t capaset = cap_get_proc(); 21704 (void)cap_free((void *)capset); 21705 21706 ; 21707 return 0; 21708} 21709 21710_ACEOF 21711if ac_fn_cxx_try_compile "$LINENO"; then : 21712 21713 21714$as_echo "#define HAVE_CAPABILITIES 1" >>confdefs.h 21715 21716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: available" >&5 21717$as_echo "available" >&6; } 21718 21719else 21720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5 21721$as_echo "not available" >&6; } 21722fi 21723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21724 21725 21726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync() availability" >&5 21727$as_echo_n "checking for fdatasync() availability... " >&6; } 21728cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21729/* end confdefs.h. */ 21730extern "C" { 21731 #if HAVE_UNISTD_H 21732 #include <unistd.h> 21733 #endif 21734 } 21735int 21736main () 21737{ 21738 21739 (void)fdatasync(0); 21740 21741 ; 21742 return 0; 21743} 21744 21745_ACEOF 21746if ac_fn_cxx_try_compile "$LINENO"; then : 21747 21748$as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h 21749 21750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: available" >&5 21751$as_echo "available" >&6; } 21752 21753else 21754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5 21755$as_echo "not available" >&6; } 21756 21757fi 21758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21759 21760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for syncfs() availability" >&5 21761$as_echo_n "checking for syncfs() availability... " >&6; } 21762cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21763/* end confdefs.h. */ 21764extern "C" { 21765 #if HAVE_UNISTD_H 21766 #include <unistd.h> 21767 #endif 21768 } 21769int 21770main () 21771{ 21772 21773 (void)syncfs(0); 21774 21775 ; 21776 return 0; 21777} 21778 21779_ACEOF 21780if ac_fn_cxx_try_compile "$LINENO"; then : 21781 21782$as_echo "#define HAVE_SYNCFS 1" >>confdefs.h 21783 21784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: available" >&5 21785$as_echo "available" >&6; } 21786 21787else 21788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5 21789$as_echo "not available" >&6; } 21790 21791fi 21792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21793 21794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the possibility to set timestamps at a microsecond precision" >&5 21795$as_echo_n "checking for the possibility to set timestamps at a microsecond precision... " >&6; } 21796cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21797/* end confdefs.h. */ 21798extern "C" { 21799 #if HAVE_SYS_TYPES_H 21800 #include <sys/types.h> 21801 #endif 21802 #if HAVE_SYS_STAT_H 21803 #include <sys/stat.h> 21804 #endif 21805 #if HAVE_UNISTD_H 21806 #include <unistd.h> 21807 #endif 21808 #if HAVE_UTIMES_H 21809 #include <utimes.h> 21810 #endif 21811 #if HAVE_SYS_TIME_H 21812 #include <sys/time.h> 21813 #endif 21814 } 21815int 21816main () 21817{ 21818 21819 struct timeval tv[2]; 21820 tv[0].tv_sec = 1000; 21821 tv[1].tv_usec = 2000; 21822 21823 (void)utimes("/tmp/testfile.tmp", tv); 21824 /* note that this test program is only compiled+linked not run */ 21825 return 0; 21826 21827 ; 21828 return 0; 21829} 21830 21831_ACEOF 21832if ac_fn_cxx_try_compile "$LINENO"; then : 21833 21834 21835$as_echo "#define LIBDAR_MICROSECOND_WRITE_ACCURACY 1" >>confdefs.h 21836 21837 local_microsecond_write=yes 21838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: available" >&5 21839$as_echo "available" >&6; } 21840 21841else 21842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5 21843$as_echo "not available" >&6; } 21844 21845fi 21846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21847 21848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the possibility to read timestamps at a microsecond precision" >&5 21849$as_echo_n "checking for the possibility to read timestamps at a microsecond precision... " >&6; } 21850cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21851/* end confdefs.h. */ 21852extern "C" { 21853 #if HAVE_SYS_TYPES_H 21854 #include <sys/types.h> 21855 #endif 21856 #if HAVE_SYS_STAT_H 21857 #include <sys/stat.h> 21858 #endif 21859 #if HAVE_UNISTD_H 21860 #include <unistd.h> 21861 #endif 21862 } 21863int 21864main () 21865{ 21866 21867 struct stat st; 21868 /* tv_nsec is nanosecond, but for now we 21869 do not keep more precised timing than microseconds 21870 because we have not portable way to restore nanoseconds 21871 but only seconds and microsecond 21872 */ 21873 if(st.st_atim.tv_nsec != 0) 21874 return 0; 21875 else 21876 return 1; 21877 /* whatever, this test program is only compiled no run */ 21878 21879 ; 21880 return 0; 21881} 21882 21883_ACEOF 21884if ac_fn_cxx_try_compile "$LINENO"; then : 21885 21886 21887$as_echo "#define LIBDAR_MICROSECOND_READ_ACCURACY 1" >>confdefs.h 21888 21889 local_microsecond_read=yes 21890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: available" >&5 21891$as_echo "available" >&6; } 21892 21893else 21894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5 21895$as_echo "not available" >&6; } 21896 21897fi 21898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21899 21900 21901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lutimes() availability" >&5 21902$as_echo_n "checking for lutimes() availability... " >&6; } 21903cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21904/* end confdefs.h. */ 21905extern "C" { 21906 #if HAVE_SYS_TIME_H 21907 #include <sys/time.h> 21908 #endif 21909 } // extern "C" 21910 21911int 21912main () 21913{ 21914 21915 struct timeval tv[2]; 21916 int lu = lutimes("/tmp/noway", tv); 21917 21918 ; 21919 return 0; 21920} 21921 21922_ACEOF 21923if ac_fn_cxx_try_compile "$LINENO"; then : 21924 21925$as_echo "#define HAVE_LUTIMES 1" >>confdefs.h 21926 21927 local_lutimes=yes 21928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: available" >&5 21929$as_echo "available" >&6; } 21930 21931else 21932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5 21933$as_echo "not available" >&6; } 21934 21935fi 21936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21937 21938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror_r flavor" >&5 21939$as_echo_n "checking for strerror_r flavor... " >&6; } 21940cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21941/* end confdefs.h. */ 21942extern "C" 21943 { 21944 #if HAVE_STRING_H 21945 #include <string.h> 21946 #endif 21947 } // externe "C" 21948 21949int 21950main () 21951{ 21952 21953 char *ptr = strerror_r(0, nullptr, 0); 21954 21955 ; 21956 return 0; 21957} 21958 21959_ACEOF 21960if ac_fn_cxx_try_compile "$LINENO"; then : 21961 21962$as_echo "#define HAVE_STRERROR_R_CHAR_PTR 1" >>confdefs.h 21963 21964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GNU specific" >&5 21965$as_echo "GNU specific" >&6; } 21966 21967else 21968 21969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: XSI compliant" >&5 21970$as_echo "XSI compliant" >&6; } 21971 21972fi 21973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21974 21975 21976# DAR's features 21977 21978# Check whether --enable-libz-linking was given. 21979if test "${enable_libz_linking+set}" = set; then : 21980 enableval=$enable_libz_linking; 21981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libz compression support has been disabled by user" >&5 21982$as_echo "$as_me: WARNING: libz compression support has been disabled by user" >&2;} 21983 local_libz="no" 21984 21985else 21986 21987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 21988$as_echo_n "checking for deflate in -lz... " >&6; } 21989if ${ac_cv_lib_z_deflate+:} false; then : 21990 $as_echo_n "(cached) " >&6 21991else 21992 ac_check_lib_save_LIBS=$LIBS 21993LIBS="-lz $LIBS" 21994cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21995/* end confdefs.h. */ 21996 21997/* Override any GCC internal prototype to avoid an error. 21998 Use char because int might match the return type of a GCC 21999 builtin and then its argument prototype would still apply. */ 22000#ifdef __cplusplus 22001extern "C" 22002#endif 22003char deflate (); 22004int 22005main () 22006{ 22007return deflate (); 22008 ; 22009 return 0; 22010} 22011_ACEOF 22012if ac_fn_cxx_try_link "$LINENO"; then : 22013 ac_cv_lib_z_deflate=yes 22014else 22015 ac_cv_lib_z_deflate=no 22016fi 22017rm -f core conftest.err conftest.$ac_objext \ 22018 conftest$ac_exeext conftest.$ac_ext 22019LIBS=$ac_check_lib_save_LIBS 22020fi 22021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 22022$as_echo "$ac_cv_lib_z_deflate" >&6; } 22023if test "x$ac_cv_lib_z_deflate" = xyes; then : 22024 cat >>confdefs.h <<_ACEOF 22025#define HAVE_LIBZ 1 22026_ACEOF 22027 22028 LIBS="-lz $LIBS" 22029 22030else 22031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: library zlib not found" >&5 22032$as_echo "$as_me: WARNING: library zlib not found" >&2;} 22033fi 22034 22035 ac_fn_cxx_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 22036if test "x$ac_cv_header_zlib_h" = xyes; then : 22037 local_libz="yes" 22038 22039$as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h 22040 22041 22042else 22043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find zlib.h header file" >&5 22044$as_echo "$as_me: WARNING: Cannot find zlib.h header file" >&2;} 22045 local_libz="no" 22046 22047fi 22048 22049 22050 if test "$local_libz" = "yes" ; then 22051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22052/* end confdefs.h. */ 22053 extern "C" { 22054 #if HAVE_ZLIB_H 22055 #include <zlib.h> 22056 #endif 22057 } 22058int 22059main () 22060{ 22061 22062 z_stream *ptr = (z_stream *)0; 22063 deflate(ptr, 0); 22064 22065 ; 22066 return 0; 22067} 22068 22069_ACEOF 22070if ac_fn_cxx_try_link "$LINENO"; then : 22071 22072$as_echo "#define LIBZ_AVAILABLE 1" >>confdefs.h 22073 22074else 22075 local_libz="no" 22076fi 22077rm -f core conftest.err conftest.$ac_objext \ 22078 conftest$ac_exeext conftest.$ac_ext 22079 else 22080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libz compression support not available" >&5 22081$as_echo "$as_me: WARNING: libz compression support not available" >&2;} 22082 fi 22083 22084 22085fi 22086 22087 22088# Check whether --enable-libbz2-linking was given. 22089if test "${enable_libbz2_linking+set}" = set; then : 22090 enableval=$enable_libbz2_linking; 22091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libbz2 compression support has been disabled by user" >&5 22092$as_echo "$as_me: WARNING: libbz2 compression support has been disabled by user" >&2;} 22093 local_libbz2="no" 22094 22095else 22096 22097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompress in -lbz2" >&5 22098$as_echo_n "checking for BZ2_bzCompress in -lbz2... " >&6; } 22099if ${ac_cv_lib_bz2_BZ2_bzCompress+:} false; then : 22100 $as_echo_n "(cached) " >&6 22101else 22102 ac_check_lib_save_LIBS=$LIBS 22103LIBS="-lbz2 $LIBS" 22104cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22105/* end confdefs.h. */ 22106 22107/* Override any GCC internal prototype to avoid an error. 22108 Use char because int might match the return type of a GCC 22109 builtin and then its argument prototype would still apply. */ 22110#ifdef __cplusplus 22111extern "C" 22112#endif 22113char BZ2_bzCompress (); 22114int 22115main () 22116{ 22117return BZ2_bzCompress (); 22118 ; 22119 return 0; 22120} 22121_ACEOF 22122if ac_fn_cxx_try_link "$LINENO"; then : 22123 ac_cv_lib_bz2_BZ2_bzCompress=yes 22124else 22125 ac_cv_lib_bz2_BZ2_bzCompress=no 22126fi 22127rm -f core conftest.err conftest.$ac_objext \ 22128 conftest$ac_exeext conftest.$ac_ext 22129LIBS=$ac_check_lib_save_LIBS 22130fi 22131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompress" >&5 22132$as_echo "$ac_cv_lib_bz2_BZ2_bzCompress" >&6; } 22133if test "x$ac_cv_lib_bz2_BZ2_bzCompress" = xyes; then : 22134 cat >>confdefs.h <<_ACEOF 22135#define HAVE_LIBBZ2 1 22136_ACEOF 22137 22138 LIBS="-lbz2 $LIBS" 22139 22140else 22141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: library libbz2 not found" >&5 22142$as_echo "$as_me: WARNING: library libbz2 not found" >&2;} 22143fi 22144 22145 ac_fn_cxx_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" 22146if test "x$ac_cv_header_bzlib_h" = xyes; then : 22147 local_libbz2="yes" 22148 22149$as_echo "#define HAVE_BZLIB_H 1" >>confdefs.h 22150 22151 22152else 22153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find bzlib.h header file" >&5 22154$as_echo "$as_me: WARNING: Cannot find bzlib.h header file" >&2;} 22155 local_libbz2="no" 22156 22157fi 22158 22159 22160 if test "$local_libbz2" = "yes" ; then 22161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22162/* end confdefs.h. */ 22163 extern "C" { 22164 #if HAVE_BZLIB_H 22165 #include <bzlib.h> 22166 #endif 22167 } 22168int 22169main () 22170{ 22171 22172 bz_stream *ptr = (bz_stream *)0; 22173 BZ2_bzCompress(ptr, 0); 22174 22175 ; 22176 return 0; 22177} 22178 22179_ACEOF 22180if ac_fn_cxx_try_link "$LINENO"; then : 22181 22182$as_echo "#define LIBBZ2_AVAILABLE 1" >>confdefs.h 22183 22184else 22185 local_libbz2="no" 22186fi 22187rm -f core conftest.err conftest.$ac_objext \ 22188 conftest$ac_exeext conftest.$ac_ext 22189 else 22190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libbz2 compression support not available" >&5 22191$as_echo "$as_me: WARNING: libbz2 compression support not available" >&2;} 22192 fi 22193 22194fi 22195 22196 22197# Check whether --enable-liblzo2-linking was given. 22198if test "${enable_liblzo2_linking+set}" = set; then : 22199 enableval=$enable_liblzo2_linking; 22200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: lzo compression support has been disabled by user" >&5 22201$as_echo "$as_me: WARNING: lzo compression support has been disabled by user" >&2;} 22202 local_liblzo2="no" 22203 22204else 22205 22206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5 22207$as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; } 22208if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then : 22209 $as_echo_n "(cached) " >&6 22210else 22211 ac_check_lib_save_LIBS=$LIBS 22212LIBS="-llzo2 $LIBS" 22213cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22214/* end confdefs.h. */ 22215 22216/* Override any GCC internal prototype to avoid an error. 22217 Use char because int might match the return type of a GCC 22218 builtin and then its argument prototype would still apply. */ 22219#ifdef __cplusplus 22220extern "C" 22221#endif 22222char lzo1x_1_compress (); 22223int 22224main () 22225{ 22226return lzo1x_1_compress (); 22227 ; 22228 return 0; 22229} 22230_ACEOF 22231if ac_fn_cxx_try_link "$LINENO"; then : 22232 ac_cv_lib_lzo2_lzo1x_1_compress=yes 22233else 22234 ac_cv_lib_lzo2_lzo1x_1_compress=no 22235fi 22236rm -f core conftest.err conftest.$ac_objext \ 22237 conftest$ac_exeext conftest.$ac_ext 22238LIBS=$ac_check_lib_save_LIBS 22239fi 22240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5 22241$as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; } 22242if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then : 22243 cat >>confdefs.h <<_ACEOF 22244#define HAVE_LIBLZO2 1 22245_ACEOF 22246 22247 LIBS="-llzo2 $LIBS" 22248 22249else 22250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: library liblzo2 not found" >&5 22251$as_echo "$as_me: WARNING: library liblzo2 not found" >&2;} 22252fi 22253 22254 ac_fn_cxx_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default" 22255if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then : 22256 local_liblzo2="yes" 22257 22258$as_echo "#define HAVE_LZO_LZO1X_H 1" >>confdefs.h 22259 22260 22261else 22262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find lzo/lzo1x.h header file" >&5 22263$as_echo "$as_me: WARNING: Cannot find lzo/lzo1x.h header file" >&2;} 22264 local_liblzo2="no" 22265 22266fi 22267 22268 22269 if test "$local_liblzo2" = "yes" ; then 22270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22271/* end confdefs.h. */ 22272 extern "C" { 22273 #if HAVE_LZO_LZO1X_H 22274 #include <lzo/lzo1x.h> 22275 #endif 22276 } 22277int 22278main () 22279{ 22280 22281 int x = lzo1x_1_compress(0, 0, 0, 0, 0); 22282 22283 ; 22284 return 0; 22285} 22286 22287_ACEOF 22288if ac_fn_cxx_try_link "$LINENO"; then : 22289 22290$as_echo "#define LIBLZO2_AVAILABLE 1" >>confdefs.h 22291 22292else 22293 local_liblzo2="no" 22294fi 22295rm -f core conftest.err conftest.$ac_objext \ 22296 conftest$ac_exeext conftest.$ac_ext 22297 else 22298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: lzo compression support not available" >&5 22299$as_echo "$as_me: WARNING: lzo compression support not available" >&2;} 22300 fi 22301 22302fi 22303 22304 22305# Check whether --enable-libxz-linking was given. 22306if test "${enable_libxz_linking+set}" = set; then : 22307 enableval=$enable_libxz_linking; 22308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libxz compression support has been disabled by user" >&5 22309$as_echo "$as_me: WARNING: libxz compression support has been disabled by user" >&2;} 22310 local_libxz="no" 22311 22312else 22313 22314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5 22315$as_echo_n "checking for lzma_code in -llzma... " >&6; } 22316if ${ac_cv_lib_lzma_lzma_code+:} false; then : 22317 $as_echo_n "(cached) " >&6 22318else 22319 ac_check_lib_save_LIBS=$LIBS 22320LIBS="-llzma $LIBS" 22321cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22322/* end confdefs.h. */ 22323 22324/* Override any GCC internal prototype to avoid an error. 22325 Use char because int might match the return type of a GCC 22326 builtin and then its argument prototype would still apply. */ 22327#ifdef __cplusplus 22328extern "C" 22329#endif 22330char lzma_code (); 22331int 22332main () 22333{ 22334return lzma_code (); 22335 ; 22336 return 0; 22337} 22338_ACEOF 22339if ac_fn_cxx_try_link "$LINENO"; then : 22340 ac_cv_lib_lzma_lzma_code=yes 22341else 22342 ac_cv_lib_lzma_lzma_code=no 22343fi 22344rm -f core conftest.err conftest.$ac_objext \ 22345 conftest$ac_exeext conftest.$ac_ext 22346LIBS=$ac_check_lib_save_LIBS 22347fi 22348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5 22349$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; } 22350if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then : 22351 cat >>confdefs.h <<_ACEOF 22352#define HAVE_LIBLZMA 1 22353_ACEOF 22354 22355 LIBS="-llzma $LIBS" 22356 22357else 22358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: library liblzma not found" >&5 22359$as_echo "$as_me: WARNING: library liblzma not found" >&2;} 22360fi 22361 22362 ac_fn_cxx_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default" 22363if test "x$ac_cv_header_lzma_h" = xyes; then : 22364 local_libxz="yes" 22365 22366$as_echo "#define HAVE_LZMA_H 1" >>confdefs.h 22367 22368 22369else 22370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find lzma.h header file" >&5 22371$as_echo "$as_me: WARNING: Cannot find lzma.h header file" >&2;} 22372 local_libxz="no" 22373 22374fi 22375 22376 22377 if test "$local_libxz" = "yes" ; then 22378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22379/* end confdefs.h. */ 22380 extern "C" { 22381 #if HAVE_LZMA_H 22382 #include <lzma.h> 22383 #endif 22384 } 22385int 22386main () 22387{ 22388 22389 lzma_stream ptr = LZMA_STREAM_INIT; 22390 lzma_ret tmp = lzma_easy_encoder(&ptr, 22391 2, 22392 LZMA_CHECK_CRC32); 22393 22394 ; 22395 return 0; 22396} 22397 22398_ACEOF 22399if ac_fn_cxx_try_link "$LINENO"; then : 22400 22401$as_echo "#define LIBLZMA_AVAILABLE 1" >>confdefs.h 22402 22403else 22404 local_libxz="no" 22405fi 22406rm -f core conftest.err conftest.$ac_objext \ 22407 conftest$ac_exeext conftest.$ac_ext 22408 else 22409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libxz compression support not available" >&5 22410$as_echo "$as_me: WARNING: libxz compression support not available" >&2;} 22411 fi 22412 22413 22414fi 22415 22416 22417 22418# Check whether --enable-libgcrypt-linking was given. 22419if test "${enable_libgcrypt_linking+set}" = set; then : 22420 enableval=$enable_libgcrypt_linking; 22421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: strong encryption support has been disabled by user" >&5 22422$as_echo "$as_me: WARNING: strong encryption support has been disabled by user" >&2;} 22423 local_crypto="no" 22424 22425else 22426 22427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpg_err_init in -lgpg-error" >&5 22428$as_echo_n "checking for gpg_err_init in -lgpg-error... " >&6; } 22429if ${ac_cv_lib_gpg_error_gpg_err_init+:} false; then : 22430 $as_echo_n "(cached) " >&6 22431else 22432 ac_check_lib_save_LIBS=$LIBS 22433LIBS="-lgpg-error $LIBS" 22434cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22435/* end confdefs.h. */ 22436 22437/* Override any GCC internal prototype to avoid an error. 22438 Use char because int might match the return type of a GCC 22439 builtin and then its argument prototype would still apply. */ 22440#ifdef __cplusplus 22441extern "C" 22442#endif 22443char gpg_err_init (); 22444int 22445main () 22446{ 22447return gpg_err_init (); 22448 ; 22449 return 0; 22450} 22451_ACEOF 22452if ac_fn_cxx_try_link "$LINENO"; then : 22453 ac_cv_lib_gpg_error_gpg_err_init=yes 22454else 22455 ac_cv_lib_gpg_error_gpg_err_init=no 22456fi 22457rm -f core conftest.err conftest.$ac_objext \ 22458 conftest$ac_exeext conftest.$ac_ext 22459LIBS=$ac_check_lib_save_LIBS 22460fi 22461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpg_error_gpg_err_init" >&5 22462$as_echo "$ac_cv_lib_gpg_error_gpg_err_init" >&6; } 22463if test "x$ac_cv_lib_gpg_error_gpg_err_init" = xyes; then : 22464 cat >>confdefs.h <<_ACEOF 22465#define HAVE_LIBGPG_ERROR 1 22466_ACEOF 22467 22468 LIBS="-lgpg-error $LIBS" 22469 22470fi 22471 22472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_check_version in -lgcrypt" >&5 22473$as_echo_n "checking for gcry_check_version in -lgcrypt... " >&6; } 22474if ${ac_cv_lib_gcrypt_gcry_check_version+:} false; then : 22475 $as_echo_n "(cached) " >&6 22476else 22477 ac_check_lib_save_LIBS=$LIBS 22478LIBS="-lgcrypt $LIBS" 22479cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22480/* end confdefs.h. */ 22481 22482/* Override any GCC internal prototype to avoid an error. 22483 Use char because int might match the return type of a GCC 22484 builtin and then its argument prototype would still apply. */ 22485#ifdef __cplusplus 22486extern "C" 22487#endif 22488char gcry_check_version (); 22489int 22490main () 22491{ 22492return gcry_check_version (); 22493 ; 22494 return 0; 22495} 22496_ACEOF 22497if ac_fn_cxx_try_link "$LINENO"; then : 22498 ac_cv_lib_gcrypt_gcry_check_version=yes 22499else 22500 ac_cv_lib_gcrypt_gcry_check_version=no 22501fi 22502rm -f core conftest.err conftest.$ac_objext \ 22503 conftest$ac_exeext conftest.$ac_ext 22504LIBS=$ac_check_lib_save_LIBS 22505fi 22506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_check_version" >&5 22507$as_echo "$ac_cv_lib_gcrypt_gcry_check_version" >&6; } 22508if test "x$ac_cv_lib_gcrypt_gcry_check_version" = xyes; then : 22509 cat >>confdefs.h <<_ACEOF 22510#define HAVE_LIBGCRYPT 1 22511_ACEOF 22512 22513 LIBS="-lgcrypt $LIBS" 22514 22515fi 22516 22517 ac_fn_cxx_check_header_mongrel "$LINENO" "gcrypt.h" "ac_cv_header_gcrypt_h" "$ac_includes_default" 22518if test "x$ac_cv_header_gcrypt_h" = xyes; then : 22519 local_crypto="yes" 22520 22521$as_echo "#define HAVE_GCRYPT_H 1" >>confdefs.h 22522 22523 22524else 22525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannt find gcrypt.h header file" >&5 22526$as_echo "$as_me: WARNING: Cannt find gcrypt.h header file" >&2;} 22527 local_crypto="no" 22528 22529fi 22530 22531 22532 if test "$local_crypto" = "yes" ; then 22533 min_version_gcrypt="1.4.0" 22534 22535cat >>confdefs.h <<_ACEOF 22536#define MIN_VERSION_GCRYPT "$min_version_gcrypt" 22537_ACEOF 22538 22539 min_version_gcrypt_hash_bug="1.6.0" 22540 22541cat >>confdefs.h <<_ACEOF 22542#define MIN_VERSION_GCRYPT_HASH_BUG "$min_version_gcrypt_hash_bug" 22543_ACEOF 22544 22545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcrypt usability" >&5 22546$as_echo_n "checking for libgcrypt usability... " >&6; } 22547 if test "$cross_compiling" = yes; then : 22548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22550as_fn_error $? "cannot run test program while cross compiling 22551See \`config.log' for more details" "$LINENO" 5; } 22552else 22553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22554/* end confdefs.h. */ 22555 extern "C" 22556 { 22557 #if HAVE_GCRYPT_H 22558 #include <gcrypt.h> 22559 #endif 22560 } 22561 #include <iostream> 22562 using namespace std; 22563 22564int 22565main () 22566{ 22567 22568 if(!gcry_check_version(MIN_VERSION_GCRYPT)) 22569 { 22570 cout << "ligcrypt version too low, minimum version is " << MIN_VERSION_GCRYPT << endl; 22571 exit(1); 22572 } 22573 else 22574 exit(0); 22575 22576 ; 22577 return 0; 22578} 22579 22580_ACEOF 22581if ac_fn_cxx_try_run "$LINENO"; then : 22582 22583$as_echo "#define CRYPTO_AVAILABLE 1" >>confdefs.h 22584 22585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 22586$as_echo "ok" >&6; } 22587 if test "$cross_compiling" = yes; then : 22588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22590as_fn_error $? "cannot run test program while cross compiling 22591See \`config.log' for more details" "$LINENO" 5; } 22592else 22593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22594/* end confdefs.h. */ 22595 extern "C" 22596 { 22597 #if HAVE_GCRYPT_H 22598 #include <gcrypt.h> 22599 #endif 22600 } 22601 22602int 22603main () 22604{ 22605 22606 if(!gcry_check_version(MIN_VERSION_GCRYPT_HASH_BUG)) 22607 exit(1); 22608 else 22609 exit(0); 22610 22611 ; 22612 return 0; 22613} 22614 22615_ACEOF 22616if ac_fn_cxx_try_run "$LINENO"; then : 22617 22618else 22619 libgcrypt_hash_bug="yes" 22620fi 22621rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22622 conftest.$ac_objext conftest.beam conftest.$ac_ext 22623fi 22624 22625 22626else 22627 22628 if test "$?" = "1" ; then 22629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed: need libgcypt >= $min_version_gcrypt, disabling strong encryption support" >&5 22630$as_echo "failed: need libgcypt >= $min_version_gcrypt, disabling strong encryption support" >&6; } 22631 else 22632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed: libgcrypt is unusable, cannot even call gcry_check_version(). Disabling strong encryption support" >&5 22633$as_echo "failed: libgcrypt is unusable, cannot even call gcry_check_version(). Disabling strong encryption support" >&6; } 22634 fi 22635 local_crypto="no" 22636 22637fi 22638rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22639 conftest.$ac_objext conftest.beam conftest.$ac_ext 22640fi 22641 22642 else 22643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: strong encryption support not available" >&5 22644$as_echo "$as_me: WARNING: strong encryption support not available" >&2;} 22645 fi 22646 22647fi 22648 22649 22650 22651# Check whether --enable-ea-support was given. 22652if test "${enable_ea_support+set}" = set; then : 22653 enableval=$enable_ea_support; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Extended Attribute support" >&5 22654$as_echo_n "checking for Extended Attribute support... " >&6; } 22655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22656$as_echo "disabled" >&6; } 22657 22658else 22659 for ac_header in attr/xattr.h 22660do : 22661 ac_fn_cxx_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default" 22662if test "x$ac_cv_header_attr_xattr_h" = xyes; then : 22663 cat >>confdefs.h <<_ACEOF 22664#define HAVE_ATTR_XATTR_H 1 22665_ACEOF 22666 22667fi 22668 22669done 22670 22671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetxattr in -lattr" >&5 22672$as_echo_n "checking for lgetxattr in -lattr... " >&6; } 22673if ${ac_cv_lib_attr_lgetxattr+:} false; then : 22674 $as_echo_n "(cached) " >&6 22675else 22676 ac_check_lib_save_LIBS=$LIBS 22677LIBS="-lattr $LIBS" 22678cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22679/* end confdefs.h. */ 22680 22681/* Override any GCC internal prototype to avoid an error. 22682 Use char because int might match the return type of a GCC 22683 builtin and then its argument prototype would still apply. */ 22684#ifdef __cplusplus 22685extern "C" 22686#endif 22687char lgetxattr (); 22688int 22689main () 22690{ 22691return lgetxattr (); 22692 ; 22693 return 0; 22694} 22695_ACEOF 22696if ac_fn_cxx_try_link "$LINENO"; then : 22697 ac_cv_lib_attr_lgetxattr=yes 22698else 22699 ac_cv_lib_attr_lgetxattr=no 22700fi 22701rm -f core conftest.err conftest.$ac_objext \ 22702 conftest$ac_exeext conftest.$ac_ext 22703LIBS=$ac_check_lib_save_LIBS 22704fi 22705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_lgetxattr" >&5 22706$as_echo "$ac_cv_lib_attr_lgetxattr" >&6; } 22707if test "x$ac_cv_lib_attr_lgetxattr" = xyes; then : 22708 cat >>confdefs.h <<_ACEOF 22709#define HAVE_LIBATTR 1 22710_ACEOF 22711 22712 LIBS="-lattr $LIBS" 22713 22714fi 22715 22716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Unix Extended Attribute support" >&5 22717$as_echo_n "checking for Unix Extended Attribute support... " >&6; } 22718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22719/* end confdefs.h. */ 22720extern "C" { 22721 #if HAVE_SYS_TYPES_H 22722 #include <sys/types.h> 22723 #endif 22724 #if HAVE_ATTR_XATTR_H 22725 #include <attr/xattr.h> 22726 #endif 22727 } 22728int 22729main () 22730{ 22731 lgetxattr((char *)0, (char *)0, (void *)0, 0); 22732 ; 22733 return 0; 22734} 22735 22736_ACEOF 22737if ac_fn_cxx_try_link "$LINENO"; then : 22738 22739 22740$as_echo "#define EA_SUPPORT /**/" >>confdefs.h 22741 22742 local_ea_support="yes" 22743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22744$as_echo "yes" >&6; } 22745 22746else 22747 22748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22749$as_echo "no" >&6; } 22750 for ac_header in sys/xattr.h 22751do : 22752 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default" 22753if test "x$ac_cv_header_sys_xattr_h" = xyes; then : 22754 cat >>confdefs.h <<_ACEOF 22755#define HAVE_SYS_XATTR_H 1 22756_ACEOF 22757 22758fi 22759 22760done 22761 22762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lc" >&5 22763$as_echo_n "checking for fgetxattr in -lc... " >&6; } 22764if ${ac_cv_lib_c_fgetxattr+:} false; then : 22765 $as_echo_n "(cached) " >&6 22766else 22767 ac_check_lib_save_LIBS=$LIBS 22768LIBS="-lc $LIBS" 22769cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22770/* end confdefs.h. */ 22771 22772/* Override any GCC internal prototype to avoid an error. 22773 Use char because int might match the return type of a GCC 22774 builtin and then its argument prototype would still apply. */ 22775#ifdef __cplusplus 22776extern "C" 22777#endif 22778char fgetxattr (); 22779int 22780main () 22781{ 22782return fgetxattr (); 22783 ; 22784 return 0; 22785} 22786_ACEOF 22787if ac_fn_cxx_try_link "$LINENO"; then : 22788 ac_cv_lib_c_fgetxattr=yes 22789else 22790 ac_cv_lib_c_fgetxattr=no 22791fi 22792rm -f core conftest.err conftest.$ac_objext \ 22793 conftest$ac_exeext conftest.$ac_ext 22794LIBS=$ac_check_lib_save_LIBS 22795fi 22796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_fgetxattr" >&5 22797$as_echo "$ac_cv_lib_c_fgetxattr" >&6; } 22798if test "x$ac_cv_lib_c_fgetxattr" = xyes; then : 22799 cat >>confdefs.h <<_ACEOF 22800#define HAVE_LIBC 1 22801_ACEOF 22802 22803 LIBS="-lc $LIBS" 22804 22805fi 22806 22807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS X Extended Attribute support" >&5 22808$as_echo_n "checking for Mac OS X Extended Attribute support... " >&6; } 22809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22810/* end confdefs.h. */ 22811extern "C" { 22812 #if HAVE_SYS_XATTR_H 22813 #include <sys/xattr.h> 22814 #endif 22815 } 22816int 22817main () 22818{ 22819 getxattr((char *)0, (char *)0, (void *)0, 0, 0, XATTR_NOFOLLOW); 22820 ; 22821 return 0; 22822} 22823 22824_ACEOF 22825if ac_fn_cxx_try_link "$LINENO"; then : 22826 22827 22828$as_echo "#define EA_SUPPORT /**/" >>confdefs.h 22829 22830 22831$as_echo "#define OSX_EA_SUPPORT /**/" >>confdefs.h 22832 22833 local_ea_support="yes" 22834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22835$as_echo "yes" >&6; } 22836 22837else 22838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22839$as_echo "no" >&6; } 22840fi 22841rm -f core conftest.err conftest.$ac_objext \ 22842 conftest$ac_exeext conftest.$ac_ext 22843 22844fi 22845rm -f core conftest.err conftest.$ac_objext \ 22846 conftest$ac_exeext conftest.$ac_ext 22847 22848 22849fi 22850 22851 22852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ext2fs.h availability" >&5 22853$as_echo_n "checking ext2fs.h availability... " >&6; } 22854# Check whether --enable-nodump-flag was given. 22855if test "${enable_nodump_flag+set}" = set; then : 22856 enableval=$enable_nodump_flag; { $as_echo "$as_me:${as_lineno-$LINENO}: result: extX FSA disabled" >&5 22857$as_echo "extX FSA disabled" >&6; } 22858else 22859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22860/* end confdefs.h. */ 22861extern "C" { 22862 #include <ext2fs/ext2_fs.h> 22863 #if HAVE_SYS_IOCTL_H 22864 #include <sys/ioctl.h> 22865 #endif 22866 } 22867int 22868main () 22869{ 22870int fd, f; ioctl(fd, EXT2_IOC_GETFLAGS, &f); 22871 22872 ; 22873 return 0; 22874} 22875 22876_ACEOF 22877if ac_fn_cxx_try_link "$LINENO"; then : 22878 22879 22880$as_echo "#define LIBDAR_NODUMP_FEATURE NODUMP_EXT2FS" >>confdefs.h 22881 22882 local_nodump_feature="yes" 22883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found <ext2fs/ext2_fs.h>" >&5 22884$as_echo "found <ext2fs/ext2_fs.h>" >&6; } 22885 22886else 22887 22888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22889/* end confdefs.h. */ 22890extern "C" { 22891 #include <linux/ext2_fs.h> 22892 #if HAVE_SYS_IOCTL_H 22893 #include <sys/ioctl.h> 22894 #endif 22895 } 22896int 22897main () 22898{ 22899int fd, f; ioctl(fd, EXT2_IOC_GETFLAGS, &f); 22900 ; 22901 return 0; 22902} 22903 22904_ACEOF 22905if ac_fn_cxx_try_link "$LINENO"; then : 22906 22907 22908$as_echo "#define LIBDAR_NODUMP_FEATURE NODUMP_LINUX" >>confdefs.h 22909 22910 local_nodump_feature="yes" 22911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found <linux/ext2_fs.h>" >&5 22912$as_echo "found <linux/ext2_fs.h>" >&6; } 22913 22914else 22915 22916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: NOT FOUND" >&5 22917$as_echo "NOT FOUND" >&6; } 22918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find ext2_fs.h header file, nodump-flag and extX FSA features will not be available" >&5 22919$as_echo "$as_me: WARNING: cannot find ext2_fs.h header file, nodump-flag and extX FSA features will not be available" >&2;} 22920 22921fi 22922rm -f core conftest.err conftest.$ac_objext \ 22923 conftest$ac_exeext conftest.$ac_ext 22924 22925fi 22926rm -f core conftest.err conftest.$ac_objext \ 22927 conftest$ac_exeext conftest.$ac_ext 22928 22929 22930fi 22931 22932 22933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking birth time availability" >&5 22934$as_echo_n "checking birth time availability... " >&6; } 22935# Check whether --enable-birthtime was given. 22936if test "${enable_birthtime+set}" = set; then : 22937 enableval=$enable_birthtime; { $as_echo "$as_me:${as_lineno-$LINENO}: result: hfs+ FSA disabled" >&5 22938$as_echo "hfs+ FSA disabled" >&6; } 22939else 22940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22941/* end confdefs.h. */ 22942 22943 extern "C" { 22944 #if HAVE_SYS_TYPE_H 22945 #include <sys/types.h> 22946 #endif 22947 #if HAVE_SYS_STAT_H 22948 #include <sys/stat.h> 22949 #endif 22950 #if HAVE_UNISTD_H 22951 #include <unistd.h> 22952 #endif 22953 } 22954int 22955main () 22956{ 22957 22958 struct stat tmp; 22959 int ret = stat("/", &tmp); 22960 time_t birth = tmp.st_birthtime; 22961 22962 ; 22963 return 0; 22964} 22965 22966_ACEOF 22967if ac_fn_cxx_try_link "$LINENO"; then : 22968 22969 22970$as_echo "#define LIBDAR_BIRTHTIME 1" >>confdefs.h 22971 22972 local_birthtime="yes" 22973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 22974$as_echo "found" >&6; } 22975 22976else 22977 22978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: NOT FOUND" >&5 22979$as_echo "NOT FOUND" >&6; } 22980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find support for birthtime, HFS+ FSA support will not be available" >&5 22981$as_echo "$as_me: WARNING: Cannot find support for birthtime, HFS+ FSA support will not be available" >&2;} 22982 22983fi 22984rm -f core conftest.err conftest.$ac_objext \ 22985 conftest$ac_exeext conftest.$ac_ext 22986 22987fi 22988 22989 22990# Check whether --enable-gnugetopt was given. 22991if test "${enable_gnugetopt+set}" = set; then : 22992 enableval=$enable_gnugetopt; 22993else 22994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long in -lgnugetopt" >&5 22995$as_echo_n "checking for getopt_long in -lgnugetopt... " >&6; } 22996if ${ac_cv_lib_gnugetopt_getopt_long+:} false; then : 22997 $as_echo_n "(cached) " >&6 22998else 22999 ac_check_lib_save_LIBS=$LIBS 23000LIBS="-lgnugetopt $LIBS" 23001cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23002/* end confdefs.h. */ 23003 23004/* Override any GCC internal prototype to avoid an error. 23005 Use char because int might match the return type of a GCC 23006 builtin and then its argument prototype would still apply. */ 23007#ifdef __cplusplus 23008extern "C" 23009#endif 23010char getopt_long (); 23011int 23012main () 23013{ 23014return getopt_long (); 23015 ; 23016 return 0; 23017} 23018_ACEOF 23019if ac_fn_cxx_try_link "$LINENO"; then : 23020 ac_cv_lib_gnugetopt_getopt_long=yes 23021else 23022 ac_cv_lib_gnugetopt_getopt_long=no 23023fi 23024rm -f core conftest.err conftest.$ac_objext \ 23025 conftest$ac_exeext conftest.$ac_ext 23026LIBS=$ac_check_lib_save_LIBS 23027fi 23028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnugetopt_getopt_long" >&5 23029$as_echo "$ac_cv_lib_gnugetopt_getopt_long" >&6; } 23030if test "x$ac_cv_lib_gnugetopt_getopt_long" = xyes; then : 23031 cat >>confdefs.h <<_ACEOF 23032#define HAVE_LIBGNUGETOPT 1 23033_ACEOF 23034 23035 LIBS="-lgnugetopt $LIBS" 23036 23037fi 23038 23039 23040fi 23041 23042 23043# Check whether --enable-fadvise was given. 23044if test "${enable_fadvise+set}" = set; then : 23045 enableval=$enable_fadvise; 23046else 23047 23048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise support" >&5 23049$as_echo_n "checking for posix_fadvise support... " >&6; } 23050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23051/* end confdefs.h. */ 23052extern "C" { 23053 #if HAVE_FCNTL_H 23054 #include <fcntl.h> 23055 #endif 23056 } 23057int 23058main () 23059{ 23060 (void)posix_fadvise(0,0,1,POSIX_FADV_NORMAL); 23061 ; 23062 return 0; 23063} 23064 23065_ACEOF 23066if ac_fn_cxx_try_compile "$LINENO"; then : 23067 23068 23069$as_echo "#define HAVE_POSIX_FADVISE 1" >>confdefs.h 23070 23071 local_posix_fadvise="yes" 23072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: available" >&5 23073$as_echo "available" >&6; } 23074 23075else 23076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5 23077$as_echo "not available" >&6; } 23078 23079fi 23080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23081 23082 23083fi 23084 23085 23086 23087# AC_ARG_ENABLE( [librsync-linking], 23088# AC_HELP_STRING(--disable-librsync-linking, [disable linking with librsync and disable delta compression support]), 23089# [ 23090# AC_MSG_WARN([librsync delta-compression support has been disabled by user]) 23091# local_librsync="no" 23092# ], 23093# [ 23094# AC_CHECK_LIB(rsync, [rs_strerror], [], [AC_MSG_WARN([library librsync not found])]) 23095# AC_CHECK_HEADER(librsync.h, [local_librsync="yes" 23096# AC_DEFINE(HAVE_LIBRSYNC_H, 1, [librsync.h header file is available]) 23097# ], 23098# [AC_MSG_WARN([Cannot find librsync.h header file]) 23099# local_librsync="no" 23100# ]) 23101# if test "$local_librsync" = "yes" ; then 23102# AC_LINK_IFELSE([AC_LANG_PROGRAM([[ extern "C" { 23103# #if HAVE_LIBRSYNC_H 23104# #include <stdio.h> 23105# #include <librsync.h> 23106# #endif 23107# }]], 23108# [[ 23109# rs_result err = RS_DONE; 23110# (void) rs_strerror(err); 23111# ]]) 23112# ], 23113# [ AC_DEFINE(LIBRSYNC_AVAILABLE, 1, [header and linking is available to have librsync functions])], 23114# [ local_librsync="no" ]) 23115# else 23116# AC_MSG_WARN([librsync compression support not available]) 23117# fi 23118# ] 23119# ) 23120 23121 23122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt() availability" >&5 23123$as_echo_n "checking for getopt() availability... " >&6; }; 23124cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23125/* end confdefs.h. */ 23126extern "C" { 23127 #if HAVE_STDIO_H 23128 #include <stdio.h> 23129 #endif 23130 #if HAVE_GETOPT_H 23131 #include <getopt.h> 23132 #else 23133 #if HAVE_UNISTD_H 23134 #include <unistd.h> 23135 #endif 23136 #endif 23137 } 23138int 23139main () 23140{ 23141 getopt(0, 0, 0); 23142 ; 23143 return 0; 23144} 23145 23146_ACEOF 23147if ac_fn_cxx_try_link "$LINENO"; then : 23148 23149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 23150$as_echo "ok" >&6; } 23151 23152else 23153 as_fn_error $? "absent but required" "$LINENO" 5 23154fi 23155rm -f core conftest.err conftest.$ac_objext \ 23156 conftest$ac_exeext conftest.$ac_ext 23157 23158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long() availability" >&5 23159$as_echo_n "checking for getopt_long() availability... " >&6; }; 23160cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23161/* end confdefs.h. */ 23162extern "C" { 23163 #if HAVE_STDIO_H 23164 #include <stdio.h> 23165 #endif 23166 #if HAVE_GETOPT_H 23167 #include <getopt.h> 23168 #else 23169 #if HAVE_UNISTD_H 23170 #include <unistd.h> 23171 #endif 23172 #endif 23173 } 23174int 23175main () 23176{ 23177 getopt_long(0, 0, 0, 0, 0); 23178 ; 23179 return 0; 23180} 23181 23182_ACEOF 23183if ac_fn_cxx_try_link "$LINENO"; then : 23184 23185 local_have_getopt_long="yes" 23186 23187$as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h 23188 23189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: available" >&5 23190$as_echo "available" >&6; } 23191 23192else 23193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: NOT AVAILABLE" >&5 23194$as_echo "NOT AVAILABLE" >&6; } 23195fi 23196rm -f core conftest.err conftest.$ac_objext \ 23197 conftest$ac_exeext conftest.$ac_ext 23198 23199 23200# Check whether --enable-examples was given. 23201if test "${enable_examples+set}" = set; then : 23202 enableval=$enable_examples; examples="yes" 23203else 23204 examples="false" 23205fi 23206 23207 23208# Check whether --enable-os-bits was given. 23209if test "${enable_os_bits+set}" = set; then : 23210 enableval=$enable_os_bits; 23211cat >>confdefs.h <<_ACEOF 23212#define OS_BITS $enableval 23213_ACEOF 23214 23215else 23216 23217 ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 23218if test "x$ac_cv_header_inttypes_h" = xyes; then : 23219 23220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23221/* end confdefs.h. */ 23222extern "C" { 23223 #include <inttypes.h> 23224 } 23225int 23226main () 23227{ 23228 uint16_t a = 0; uint32_t b = 0; uint64_t c = 0; 23229 int16_t d = 0; int32_t e = 0; int64_t f = 0; 23230 return a+b+c+d+e+f; 23231 23232 ; 23233 return 0; 23234} 23235 23236_ACEOF 23237if ac_fn_cxx_try_compile "$LINENO"; then : 23238 23239else 23240 as_fn_error $? "Cannot find *int*_t type declarations in headerfile, --enable-os-bits=... option must be used" "$LINENO" 5 23241fi 23242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23243 23244else 23245 as_fn_error $? "Cannot find inttypes.h headerfile, --enable-os-bits=... option must be used" "$LINENO" 5 23246 23247fi 23248 23249 23250 23251 23252fi 23253 23254 23255# Check whether --enable-mode was given. 23256if test "${enable_mode+set}" = set; then : 23257 enableval=$enable_mode; build_mode=$enableval 23258fi 23259 23260 23261# Check whether --enable-furtive-read was given. 23262if test "${enable_furtive_read+set}" = set; then : 23263 enableval=$enable_furtive_read; local_furtive_read_mode="no" 23264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Furtive read mode disabled" >&5 23265$as_echo "$as_me: WARNING: Furtive read mode disabled" >&2;} 23266 23267else 23268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking furtive read mode availability" >&5 23269$as_echo_n "checking furtive read mode availability... " >&6; } 23270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23271/* end confdefs.h. */ 23272 extern "C" { 23273 #if HAVE_SYS_TYPE_H 23274 #include <sys/types.h> 23275 #endif 23276 #if HAVE_SYS_STAT_H 23277 #include <sys/stat.h> 23278 #endif 23279 #if HAVE_FCNTL_H 23280 #include <fcntl.h> 23281 #endif 23282 #if HAVE_DIRENT_H 23283 #include <dirent.h> 23284 #endif 23285 } 23286 23287int 23288main () 23289{ 23290 23291 int x = O_NOATIME; 23292 int fd = open("/",O_RDONLY|O_NOATIME); 23293 #if HAVE_FDOPENDIR 23294 (void)fdopendir(fd); 23295 #else 23296 syntaxically incorrect statement here to force compilation to fail! 23297 #endif 23298 23299 ; 23300 return 0; 23301} 23302 23303_ACEOF 23304if ac_fn_cxx_try_link "$LINENO"; then : 23305 23306$as_echo "#define FURTIVE_READ_MODE_AVAILABLE 1" >>confdefs.h 23307 23308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: available" >&5 23309$as_echo "available" >&6; } 23310 local_furtive_read_mode="yes" 23311 23312else 23313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no available" >&5 23314$as_echo "no available" >&6; } 23315 local_furtive_read_mode="no" 23316 23317fi 23318rm -f core conftest.err conftest.$ac_objext \ 23319 conftest$ac_exeext conftest.$ac_ext 23320 23321 23322fi 23323 23324 23325 23326 23327# Check whether --enable-debug was given. 23328if test "${enable_debug+set}" = set; then : 23329 enableval=$enable_debug; 23330 # yes we modify user variable here to remove any optimization 23331 CXXFLAGS="$CXXSTDFLAGS -ggdb -Wall" 23332 CFLAGS="-ggdb -Wall" 23333 LDFLAGS="-ggdb -Wall" 23334 debug_static="yes" 23335 23336$as_echo "#define LIBDAR_NO_OPTIMIZATION 1" >>confdefs.h 23337 23338 23339else 23340 23341 debug_static="no" 23342 23343fi 23344 23345 23346 23347# Check whether --enable-pedantic was given. 23348if test "${enable_pedantic+set}" = set; then : 23349 enableval=$enable_pedantic; 23350 CXXFLAGS="$CXXFLAGS -pedantic -Wno-long-long" 23351 23352fi 23353 23354 23355 23356# Check whether --enable-build-html was given. 23357if test "${enable_build_html+set}" = set; then : 23358 enableval=$enable_build_html; doxygen="no" 23359 groff="no" 23360 23361else 23362 # Extract the first word of "doxygen", so it can be a program name with args. 23363set dummy doxygen; ac_word=$2 23364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23365$as_echo_n "checking for $ac_word... " >&6; } 23366if ${ac_cv_prog_doxygen+:} false; then : 23367 $as_echo_n "(cached) " >&6 23368else 23369 if test -n "$doxygen"; then 23370 ac_cv_prog_doxygen="$doxygen" # Let the user override the test. 23371else 23372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23373for as_dir in $PATH 23374do 23375 IFS=$as_save_IFS 23376 test -z "$as_dir" && as_dir=. 23377 for ac_exec_ext in '' $ac_executable_extensions; do 23378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23379 ac_cv_prog_doxygen="yes" 23380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23381 break 2 23382 fi 23383done 23384 done 23385IFS=$as_save_IFS 23386 23387 test -z "$ac_cv_prog_doxygen" && ac_cv_prog_doxygen="no" 23388fi 23389fi 23390doxygen=$ac_cv_prog_doxygen 23391if test -n "$doxygen"; then 23392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5 23393$as_echo "$doxygen" >&6; } 23394else 23395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23396$as_echo "no" >&6; } 23397fi 23398 23399 23400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for doxygen version" >&5 23401$as_echo_n "checking for doxygen version... " >&6; } 23402 if test "$doxygen" = "yes" ; then 23403 n1=`doxygen --version | cut -d '.' -f 1` 23404 n2=`doxygen --version | cut -d '.' -f 2` 23405 if test $n1 -gt 1 -o $n2 -ge 3 ; then 23406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 1.3" >&5 23407$as_echo " >= 1.3" >&6; } 23408 else 23409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old (< 1.3) ignoring doxygen" >&5 23410$as_echo " too old (< 1.3) ignoring doxygen" >&6; } 23411 doxygen="no" 23412 fi 23413 fi 23414 # Extract the first word of "man", so it can be a program name with args. 23415set dummy man; ac_word=$2 23416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23417$as_echo_n "checking for $ac_word... " >&6; } 23418if ${ac_cv_prog_tmp+:} false; then : 23419 $as_echo_n "(cached) " >&6 23420else 23421 if test -n "$tmp"; then 23422 ac_cv_prog_tmp="$tmp" # Let the user override the test. 23423else 23424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23425for as_dir in $PATH 23426do 23427 IFS=$as_save_IFS 23428 test -z "$as_dir" && as_dir=. 23429 for ac_exec_ext in '' $ac_executable_extensions; do 23430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23431 ac_cv_prog_tmp="yes" 23432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23433 break 2 23434 fi 23435done 23436 done 23437IFS=$as_save_IFS 23438 23439 test -z "$ac_cv_prog_tmp" && ac_cv_prog_tmp="no" 23440fi 23441fi 23442tmp=$ac_cv_prog_tmp 23443if test -n "$tmp"; then 23444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tmp" >&5 23445$as_echo "$tmp" >&6; } 23446else 23447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23448$as_echo "no" >&6; } 23449fi 23450 23451 23452 if test "$tmp" = "yes" ; then 23453 # Extract the first word of "groff", so it can be a program name with args. 23454set dummy groff; ac_word=$2 23455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23456$as_echo_n "checking for $ac_word... " >&6; } 23457if ${ac_cv_prog_groff+:} false; then : 23458 $as_echo_n "(cached) " >&6 23459else 23460 if test -n "$groff"; then 23461 ac_cv_prog_groff="$groff" # Let the user override the test. 23462else 23463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23464for as_dir in $PATH 23465do 23466 IFS=$as_save_IFS 23467 test -z "$as_dir" && as_dir=. 23468 for ac_exec_ext in '' $ac_executable_extensions; do 23469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23470 ac_cv_prog_groff="yes" 23471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23472 break 2 23473 fi 23474done 23475 done 23476IFS=$as_save_IFS 23477 23478 test -z "$ac_cv_prog_groff" && ac_cv_prog_groff="no" 23479fi 23480fi 23481groff=$ac_cv_prog_groff 23482if test -n "$groff"; then 23483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff" >&5 23484$as_echo "$groff" >&6; } 23485else 23486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23487$as_echo "no" >&6; } 23488fi 23489 23490 23491 else 23492 groff = "no"; 23493 fi 23494 23495 23496fi 23497 23498 23499# Check whether --enable-special-alloc was given. 23500if test "${enable_special_alloc+set}" = set; then : 23501 enableval=$enable_special_alloc; 23502$as_echo "#define LIBDAR_SPECIAL_ALLOC /**/" >>confdefs.h 23503 23504 local_special_alloc="yes" 23505 23506fi 23507 23508 23509# Check whether --enable-upx was given. 23510if test "${enable_upx+set}" = set; then : 23511 enableval=$enable_upx; { $as_echo "$as_me:${as_lineno-$LINENO}: ignoring UPX" >&5 23512$as_echo "$as_me: ignoring UPX" >&6;} 23513 upx="no" 23514 23515else 23516 23517 # Extract the first word of "upx", so it can be a program name with args. 23518set dummy upx; ac_word=$2 23519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23520$as_echo_n "checking for $ac_word... " >&6; } 23521if ${ac_cv_prog_upx+:} false; then : 23522 $as_echo_n "(cached) " >&6 23523else 23524 if test -n "$upx"; then 23525 ac_cv_prog_upx="$upx" # Let the user override the test. 23526else 23527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23528for as_dir in $PATH 23529do 23530 IFS=$as_save_IFS 23531 test -z "$as_dir" && as_dir=. 23532 for ac_exec_ext in '' $ac_executable_extensions; do 23533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23534 ac_cv_prog_upx="yes" 23535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23536 break 2 23537 fi 23538done 23539 done 23540IFS=$as_save_IFS 23541 23542 test -z "$ac_cv_prog_upx" && ac_cv_prog_upx="no" 23543fi 23544fi 23545upx=$ac_cv_prog_upx 23546if test -n "$upx"; then 23547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upx" >&5 23548$as_echo "$upx" >&6; } 23549else 23550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23551$as_echo "no" >&6; } 23552fi 23553 23554 23555 23556 23557fi 23558 23559 23560# Check whether --enable-fast-dir was given. 23561if test "${enable_fast_dir+set}" = set; then : 23562 enableval=$enable_fast_dir; 23563else 23564 23565$as_echo "#define LIBDAR_FAST_DIR 1" >>confdefs.h 23566 23567 local_fast_dir="yes" 23568 23569 23570fi 23571 23572 23573# Check whether --enable-thread-safe was given. 23574if test "${enable_thread_safe+set}" = set; then : 23575 enableval=$enable_thread_safe; { $as_echo "$as_me:${as_lineno-$LINENO}: thread-safe support disabled" >&5 23576$as_echo "$as_me: thread-safe support disabled" >&6;} 23577 23578else 23579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5 23580$as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; } 23581if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then : 23582 $as_echo_n "(cached) " >&6 23583else 23584 ac_check_lib_save_LIBS=$LIBS 23585LIBS="-pthread $LIBS" 23586cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23587/* end confdefs.h. */ 23588 23589/* Override any GCC internal prototype to avoid an error. 23590 Use char because int might match the return type of a GCC 23591 builtin and then its argument prototype would still apply. */ 23592#ifdef __cplusplus 23593extern "C" 23594#endif 23595char pthread_mutex_init (); 23596int 23597main () 23598{ 23599return pthread_mutex_init (); 23600 ; 23601 return 0; 23602} 23603_ACEOF 23604if ac_fn_cxx_try_link "$LINENO"; then : 23605 ac_cv_lib_pthread_pthread_mutex_init=yes 23606else 23607 ac_cv_lib_pthread_pthread_mutex_init=no 23608fi 23609rm -f core conftest.err conftest.$ac_objext \ 23610 conftest$ac_exeext conftest.$ac_ext 23611LIBS=$ac_check_lib_save_LIBS 23612fi 23613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 23614$as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 23615if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then : 23616 cat >>confdefs.h <<_ACEOF 23617#define HAVE_LIBPTHREAD 1 23618_ACEOF 23619 23620 LIBS="-pthread $LIBS" 23621 23622fi 23623 23624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX mutex" >&5 23625$as_echo_n "checking for POSIX mutex... " >&6; } 23626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23627/* end confdefs.h. */ 23628extern "C" { 23629 #if HAVE_PTHREAD_H 23630 #include <pthread.h> 23631 #endif 23632 } 23633int 23634main () 23635{ 23636 pthread_mutex_t mutex; 23637 pthread_mutex_init(&mutex, (const pthread_mutexattr_t*)0); 23638 pthread_mutex_lock(&mutex); 23639 pthread_mutex_unlock(&mutex); 23640 ; 23641 return 0; 23642} 23643 23644_ACEOF 23645if ac_fn_cxx_try_link "$LINENO"; then : 23646 23647$as_echo "#define MUTEX_WORKS 1" >>confdefs.h 23648 23649 local_mutex_works="yes" 23650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23651$as_echo "yes" >&6; } 23652 23653else 23654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23655$as_echo "no" >&6; } 23656fi 23657rm -f core conftest.err conftest.$ac_objext \ 23658 conftest$ac_exeext conftest.$ac_ext 23659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for reentrant stdlib calls" >&5 23660$as_echo_n "checking for reentrant stdlib calls... " >&6; } 23661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23662/* end confdefs.h. */ 23663extern "C" { 23664 #if HAVE_TIME_H 23665 #include <time.h> 23666 #endif 23667 #if HAVE_SYS_TYPE_H 23668 #include <sys/type.h> 23669 #endif 23670 #if HAVE_GRP_H 23671 #include <grp.h> 23672 #endif 23673 #if HAVE_PWD_H 23674 #include <pwd.h> 23675 #endif 23676 #if HAVE_DIRENT_H 23677 #include <dirent.h> 23678 #endif 23679 } 23680int 23681main () 23682{ 23683 #if HAVE_CTIME_R 23684 char *val1 = ctime_r(nullptr, nullptr); 23685 #else 23686 error(); // should not compile as expected 23687 #endif 23688 23689 #if HAVE_GETGRNAM_R 23690 int val2 = getgrnam_r(0, nullptr, nullptr, 0, nullptr); 23691 #else 23692 error(); // should not compile as expected 23693 #endif 23694 23695 #if HAVE_GETPWNAM_R 23696 int val3 = getpwnam_r(nullptr, nullptr, nullptr, 0, nullptr); 23697 #else 23698 error(); // should not compile as expected 23699 #endif 23700 23701 #if HAVE_LOCALTIME_R 23702 struct tm *val4 = localtime_r(nullptr, nullptr); 23703 #else 23704 error(); // should not compile as expected 23705 #endif 23706 23707 #if HAVE_READDIR_R 23708 int val5 = readdir_r(nullptr, nullptr, nullptr); 23709 #else 23710 error(); // should not compile as expected 23711 #endif 23712 23713 ; 23714 return 0; 23715} 23716 23717_ACEOF 23718if ac_fn_cxx_try_link "$LINENO"; then : 23719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: all could be found" >&5 23720$as_echo "all could be found" >&6; } 23721else 23722 23723 23724$as_echo "#define MISSING_REENTRANT_LIBCALL 1" >>confdefs.h 23725 23726 local_missing_reentrant_libcal="yes" 23727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: some are missing" >&5 23728$as_echo "some are missing" >&6; } 23729 23730 23731fi 23732rm -f core conftest.err conftest.$ac_objext \ 23733 conftest$ac_exeext conftest.$ac_ext 23734 23735 23736fi 23737 23738 23739 23740 23741# Check whether --with-gpgme-prefix was given. 23742if test "${with_gpgme_prefix+set}" = set; then : 23743 withval=$with_gpgme_prefix; gpgme_config_prefix="$withval" 23744else 23745 gpgme_config_prefix="" 23746fi 23747 23748 if test "x$gpgme_config_prefix" != x ; then 23749 GPGME_CONFIG="$gpgme_config_prefix/bin/gpgme-config" 23750 fi 23751 # Extract the first word of "gpgme-config", so it can be a program name with args. 23752set dummy gpgme-config; ac_word=$2 23753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23754$as_echo_n "checking for $ac_word... " >&6; } 23755if ${ac_cv_path_GPGME_CONFIG+:} false; then : 23756 $as_echo_n "(cached) " >&6 23757else 23758 case $GPGME_CONFIG in 23759 [\\/]* | ?:[\\/]*) 23760 ac_cv_path_GPGME_CONFIG="$GPGME_CONFIG" # Let the user override the test with a path. 23761 ;; 23762 *) 23763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23764for as_dir in $PATH 23765do 23766 IFS=$as_save_IFS 23767 test -z "$as_dir" && as_dir=. 23768 for ac_exec_ext in '' $ac_executable_extensions; do 23769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23770 ac_cv_path_GPGME_CONFIG="$as_dir/$ac_word$ac_exec_ext" 23771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23772 break 2 23773 fi 23774done 23775 done 23776IFS=$as_save_IFS 23777 23778 test -z "$ac_cv_path_GPGME_CONFIG" && ac_cv_path_GPGME_CONFIG="no" 23779 ;; 23780esac 23781fi 23782GPGME_CONFIG=$ac_cv_path_GPGME_CONFIG 23783if test -n "$GPGME_CONFIG"; then 23784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGME_CONFIG" >&5 23785$as_echo "$GPGME_CONFIG" >&6; } 23786else 23787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23788$as_echo "no" >&6; } 23789fi 23790 23791 23792 23793 if test "$GPGME_CONFIG" != "no" ; then 23794 gpgme_version=`$GPGME_CONFIG --version` 23795 fi 23796 gpgme_version_major=`echo $gpgme_version | \ 23797 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'` 23798 gpgme_version_minor=`echo $gpgme_version | \ 23799 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'` 23800 gpgme_version_micro=`echo $gpgme_version | \ 23801 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'` 23802 23803# Check whether --enable-gpgme-linking was given. 23804if test "${enable_gpgme_linking+set}" = set; then : 23805 enableval=$enable_gpgme_linking; 23806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asymetrical encryption support has been disabled by user" >&5 23807$as_echo "$as_me: WARNING: asymetrical encryption support has been disabled by user" >&2;} 23808 local_gpgme="no" 23809 23810else 23811 23812 if test $local_crypto != no ; then 23813 gpgme_min_version="1.2.0" 23814 23815cat >>confdefs.h <<_ACEOF 23816#define GPGME_MIN_VERSION "$gpgme_min_version" 23817_ACEOF 23818 23819 tmp=$gpgme_min_version 23820 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then 23821 req_gpgme_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'` 23822 min_gpgme_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'` 23823 else 23824 req_gpgme_api=0 23825 min_gpgme_version="$tmp" 23826 fi 23827 23828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPGME - version >= $min_gpgme_version" >&5 23829$as_echo_n "checking for GPGME - version >= $min_gpgme_version... " >&6; } 23830 ok=no 23831 if test "$GPGME_CONFIG" != "no" ; then 23832 req_major=`echo $min_gpgme_version | \ 23833 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 23834 req_minor=`echo $min_gpgme_version | \ 23835 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 23836 req_micro=`echo $min_gpgme_version | \ 23837 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 23838 if test "$gpgme_version_major" -gt "$req_major"; then 23839 ok=yes 23840 else 23841 if test "$gpgme_version_major" -eq "$req_major"; then 23842 if test "$gpgme_version_minor" -gt "$req_minor"; then 23843 ok=yes 23844 else 23845 if test "$gpgme_version_minor" -eq "$req_minor"; then 23846 if test "$gpgme_version_micro" -ge "$req_micro"; then 23847 ok=yes 23848 fi 23849 fi 23850 fi 23851 fi 23852 fi 23853 fi 23854 if test $ok = yes; then 23855 # If we have a recent GPGME, we should also check that the 23856 # API is compatible. 23857 if test "$req_gpgme_api" -gt 0 ; then 23858 tmp=`$GPGME_CONFIG --api-version 2>/dev/null || echo 0` 23859 if test "$tmp" -gt 0 ; then 23860 if test "$req_gpgme_api" -ne "$tmp" ; then 23861 ok=no 23862 fi 23863 fi 23864 fi 23865 fi 23866 if test $ok = yes; then 23867 GPGME_CFLAGS=`$GPGME_CONFIG --cflags` 23868 GPGME_LIBS=`$GPGME_CONFIG --libs` 23869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23870$as_echo "yes" >&6; } 23871 23872 CPPFLAGS___cache="$CPPFLAGS" 23873 CPPFLAGS="$GPGME_CFLAGS $CPPFLAGS" 23874 LIBS___cache="$LIBS" 23875 LIBS="$GPGME_LIBS $LIBS" 23876 for ac_header in gpgme.h 23877do : 23878 ac_fn_cxx_check_header_mongrel "$LINENO" "gpgme.h" "ac_cv_header_gpgme_h" "$ac_includes_default" 23879if test "x$ac_cv_header_gpgme_h" = xyes; then : 23880 cat >>confdefs.h <<_ACEOF 23881#define HAVE_GPGME_H 1 23882_ACEOF 23883 23884fi 23885 23886done 23887 23888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpgme_signers_add in -lgpgme" >&5 23889$as_echo_n "checking for gpgme_signers_add in -lgpgme... " >&6; } 23890if ${ac_cv_lib_gpgme_gpgme_signers_add+:} false; then : 23891 $as_echo_n "(cached) " >&6 23892else 23893 ac_check_lib_save_LIBS=$LIBS 23894LIBS="-lgpgme $LIBS" 23895cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23896/* end confdefs.h. */ 23897 23898/* Override any GCC internal prototype to avoid an error. 23899 Use char because int might match the return type of a GCC 23900 builtin and then its argument prototype would still apply. */ 23901#ifdef __cplusplus 23902extern "C" 23903#endif 23904char gpgme_signers_add (); 23905int 23906main () 23907{ 23908return gpgme_signers_add (); 23909 ; 23910 return 0; 23911} 23912_ACEOF 23913if ac_fn_cxx_try_link "$LINENO"; then : 23914 ac_cv_lib_gpgme_gpgme_signers_add=yes 23915else 23916 ac_cv_lib_gpgme_gpgme_signers_add=no 23917fi 23918rm -f core conftest.err conftest.$ac_objext \ 23919 conftest$ac_exeext conftest.$ac_ext 23920LIBS=$ac_check_lib_save_LIBS 23921fi 23922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpgme_gpgme_signers_add" >&5 23923$as_echo "$ac_cv_lib_gpgme_gpgme_signers_add" >&6; } 23924if test "x$ac_cv_lib_gpgme_gpgme_signers_add" = xyes; then : 23925 cat >>confdefs.h <<_ACEOF 23926#define HAVE_LIBGPGME 1 23927_ACEOF 23928 23929 LIBS="-lgpgme $LIBS" 23930 23931fi 23932 23933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgpgme usability" >&5 23934$as_echo_n "checking for libgpgme usability... " >&6; } 23935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23936/* end confdefs.h. */ 23937 23938 #if HAVE_GPGME_H 23939 #include <gpgme.h> 23940 #endif 23941 23942int 23943main () 23944{ 23945 23946 gpgme_ctx_t context; 23947 gpgme_error_t err = gpgme_new(&context); 23948 gpgme_release(context); 23949 return err; 23950 23951 ; 23952 return 0; 23953} 23954 23955_ACEOF 23956if ac_fn_cxx_try_link "$LINENO"; then : 23957 23958 local_gpgme="yes" 23959 23960$as_echo "#define GPGME_SUPPORT 1" >>confdefs.h 23961 23962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 23963$as_echo "ok" >&6; } 23964 23965else 23966 23967 local_gpgme="no" 23968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable! See config.log for details" >&5 23969$as_echo "not usable! See config.log for details" >&6; } 23970 23971fi 23972rm -f core conftest.err conftest.$ac_objext \ 23973 conftest$ac_exeext conftest.$ac_ext 23974 CPPFLAGS="$CPPFLAGS___cache" 23975 unset CPPFLAGS___cache 23976 LIBS="$LIBS___cache" 23977 unset LIBS___cache 23978 23979 else 23980 GPGME_CFLAGS="" 23981 GPGME_LIBS="" 23982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23983$as_echo "no" >&6; } 23984 23985 23986 fi 23987 23988 23989 23990 23991 else 23992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Public key support (GPGME linking) requires libgcrypt (strong encryption support)" >&5 23993$as_echo "$as_me: WARNING: Public key support (GPGME linking) requires libgcrypt (strong encryption support)" >&2;} 23994 fi 23995 23996 23997fi 23998 23999 24000 24001# Check whether --enable-execinfo was given. 24002if test "${enable_execinfo+set}" = set; then : 24003 enableval=$enable_execinfo; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring execinfo even if available" >&5 24004$as_echo "$as_me: WARNING: ignoring execinfo even if available" >&2;} 24005else 24006 24007 for ac_header in execinfo.h 24008do : 24009 ac_fn_cxx_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default" 24010if test "x$ac_cv_header_execinfo_h" = xyes; then : 24011 cat >>confdefs.h <<_ACEOF 24012#define HAVE_EXECINFO_H 1 24013_ACEOF 24014 24015fi 24016 24017done 24018 24019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lexecinfo" >&5 24020$as_echo_n "checking for backtrace in -lexecinfo... " >&6; } 24021if ${ac_cv_lib_execinfo_backtrace+:} false; then : 24022 $as_echo_n "(cached) " >&6 24023else 24024 ac_check_lib_save_LIBS=$LIBS 24025LIBS="-lexecinfo $LIBS" 24026cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24027/* end confdefs.h. */ 24028 24029/* Override any GCC internal prototype to avoid an error. 24030 Use char because int might match the return type of a GCC 24031 builtin and then its argument prototype would still apply. */ 24032#ifdef __cplusplus 24033extern "C" 24034#endif 24035char backtrace (); 24036int 24037main () 24038{ 24039return backtrace (); 24040 ; 24041 return 0; 24042} 24043_ACEOF 24044if ac_fn_cxx_try_link "$LINENO"; then : 24045 ac_cv_lib_execinfo_backtrace=yes 24046else 24047 ac_cv_lib_execinfo_backtrace=no 24048fi 24049rm -f core conftest.err conftest.$ac_objext \ 24050 conftest$ac_exeext conftest.$ac_ext 24051LIBS=$ac_check_lib_save_LIBS 24052fi 24053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_execinfo_backtrace" >&5 24054$as_echo "$ac_cv_lib_execinfo_backtrace" >&6; } 24055if test "x$ac_cv_lib_execinfo_backtrace" = xyes; then : 24056 cat >>confdefs.h <<_ACEOF 24057#define HAVE_LIBEXECINFO 1 24058_ACEOF 24059 24060 LIBS="-lexecinfo $LIBS" 24061 24062fi 24063 24064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace() usability" >&5 24065$as_echo_n "checking for backtrace() usability... " >&6; } 24066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24067/* end confdefs.h. */ 24068extern "C" { 24069 #if HAVE_EXECINFO_H 24070 #include <execinfo.h> 24071 #endif 24072 } 24073int 24074main () 24075{ 24076 24077 const int buf_size = 20; 24078 void *buffer[buf_size]; 24079 int x = backtrace(buffer, buf_size); 24080 24081 ; 24082 return 0; 24083} 24084 24085_ACEOF 24086if ac_fn_cxx_try_link "$LINENO"; then : 24087 24088$as_echo "#define BACKTRACE_AVAILABLE 1" >>confdefs.h 24089 24090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24091$as_echo "yes" >&6; } 24092 24093else 24094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24095$as_echo "no" >&6; } 24096fi 24097rm -f core conftest.err conftest.$ac_objext \ 24098 conftest$ac_exeext conftest.$ac_ext 24099 24100 24101fi 24102 24103 24104 24105# Check whether --enable-profiling was given. 24106if test "${enable_profiling+set}" = set; then : 24107 enableval=$enable_profiling; profiling="yes" 24108fi 24109 24110 24111# Check whether --enable-debug-memory was given. 24112if test "${enable_debug_memory+set}" = set; then : 24113 enableval=$enable_debug_memory; 24114$as_echo "#define LIBDAR_DEBUG_MEMORY 1" >>confdefs.h 24115 24116fi 24117 24118 24119# Check whether --enable-dar-static was given. 24120if test "${enable_dar_static+set}" = set; then : 24121 enableval=$enable_dar_static; build_static="no" 24122else 24123 build_static="yes" 24124fi 24125 24126 24127 24128 24129# Check whether --enable-threadar was given. 24130if test "${enable_threadar+set}" = set; then : 24131 enableval=$enable_threadar; 24132 for ac_header in libthreadar/libthreadar.hpp 24133do : 24134 ac_fn_cxx_check_header_mongrel "$LINENO" "libthreadar/libthreadar.hpp" "ac_cv_header_libthreadar_libthreadar_hpp" "$ac_includes_default" 24135if test "x$ac_cv_header_libthreadar_libthreadar_hpp" = xyes; then : 24136 cat >>confdefs.h <<_ACEOF 24137#define HAVE_LIBTHREADAR_LIBTHREADAR_HPP 1 24138_ACEOF 24139 24140fi 24141 24142done 24143 24144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for for_autoconf in -lthreadar" >&5 24145$as_echo_n "checking for for_autoconf in -lthreadar... " >&6; } 24146if ${ac_cv_lib_threadar_for_autoconf+:} false; then : 24147 $as_echo_n "(cached) " >&6 24148else 24149 ac_check_lib_save_LIBS=$LIBS 24150LIBS="-lthreadar $LIBS" 24151cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24152/* end confdefs.h. */ 24153 24154/* Override any GCC internal prototype to avoid an error. 24155 Use char because int might match the return type of a GCC 24156 builtin and then its argument prototype would still apply. */ 24157#ifdef __cplusplus 24158extern "C" 24159#endif 24160char for_autoconf (); 24161int 24162main () 24163{ 24164return for_autoconf (); 24165 ; 24166 return 0; 24167} 24168_ACEOF 24169if ac_fn_cxx_try_link "$LINENO"; then : 24170 ac_cv_lib_threadar_for_autoconf=yes 24171else 24172 ac_cv_lib_threadar_for_autoconf=no 24173fi 24174rm -f core conftest.err conftest.$ac_objext \ 24175 conftest$ac_exeext conftest.$ac_ext 24176LIBS=$ac_check_lib_save_LIBS 24177fi 24178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_threadar_for_autoconf" >&5 24179$as_echo "$ac_cv_lib_threadar_for_autoconf" >&6; } 24180if test "x$ac_cv_lib_threadar_for_autoconf" = xyes; then : 24181 cat >>confdefs.h <<_ACEOF 24182#define HAVE_LIBTHREADAR 1 24183_ACEOF 24184 24185 LIBS="-lthreadar $LIBS" 24186 24187fi 24188 24189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libthreadar() availability" >&5 24190$as_echo_n "checking for libthreadar() availability... " >&6; } 24191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24192/* end confdefs.h. */ 24193 24194 #if HAVE_LIBTHREADAR_LIBTHREADAR_HPP 24195 #include <libthreadar/libthreadar.hpp> 24196 #endif 24197 24198int 24199main () 24200{ 24201 24202 class mythread: public libthreadar::thread 24203 { 24204 protected: 24205 virtual void inherited_run() {}; 24206 }; 24207 24208 mythread toto; 24209 24210 toto.run(); 24211 toto.join(); 24212 24213 ; 24214 return 0; 24215} 24216 24217_ACEOF 24218if ac_fn_cxx_try_link "$LINENO"; then : 24219 24220$as_echo "#define LIBTHREADAR_AVAILABLE 1" >>confdefs.h 24221 24222 local_threadar=yes 24223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24224$as_echo "ok" >&6; } 24225 24226else 24227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 24228$as_echo "missing" >&6; } 24229 24230fi 24231rm -f core conftest.err conftest.$ac_objext \ 24232 conftest$ac_exeext conftest.$ac_ext 24233 24234fi 24235 24236 24237 24238MEM_LDFLAGS=$LDFLAGS 24239MEM_CXXFLAGS=$CXXFLAGS 24240LDFLAGS="-static $MEM_LDFLAGS $GPGME_LIBS" 24241CXXFLAGS="$CXXFLAGS $GPGME_CFLAGS" 24242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking static linking" >&5 24243$as_echo_n "checking static linking... " >&6; } 24244if test "$cross_compiling" = yes; then : 24245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24246$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24247as_fn_error $? "cannot run test program while cross compiling 24248See \`config.log' for more details" "$LINENO" 5; } 24249else 24250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24251/* end confdefs.h. */ 24252 extern "C" { 24253 #if HAVE_STDIO_H 24254 #include <stdio.h> 24255 #endif 24256 #if HAVE_EXECINFO_H 24257 #include <execinfo.h> 24258 #endif 24259 #if HAVE_STDLIB_H 24260 #include <stdlib.h> 24261 #endif 24262 #if HAVE_PTHREAD_H 24263 #include <pthread.h> 24264 #endif 24265 } 24266 24267int 24268main () 24269{ 24270 24271 #if HAVE_EXECINFO_H 24272 const int buf_size = 20; 24273 void *buffer[buf_size]; 24274 int size = backtrace(buffer, buf_size); 24275 char **symbols = backtrace_symbols(buffer, size); 24276 24277 if(symbols != nullptr) 24278 free(symbols); 24279 #endif 24280 #if MUTEX_WORKS 24281 pthread_mutex_t test; 24282 if(pthread_mutex_init(&test, NULL) == 0) 24283 { 24284 if(pthread_mutex_lock(&test) == 0) 24285 pthread_mutex_unlock(&test); 24286 } 24287 pthread_mutex_destroy(&test); 24288 #endif 24289 24290 printf("Hello World!"); 24291 return 0; 24292 24293 ; 24294 return 0; 24295} 24296 24297_ACEOF 24298if ac_fn_cxx_try_run "$LINENO"; then : 24299 24300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, perfect!" >&5 24301$as_echo "yes, perfect!" >&6; } 24302 static_pb="no" 24303 24304else 24305 24306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 24307$as_echo "failed" >&6; } 24308 static_pb="yes" 24309 24310fi 24311rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24312 conftest.$ac_objext conftest.beam conftest.$ac_ext 24313fi 24314 24315LDFLAGS=$MEM_LDFLAGS 24316CXXFLAGS=$MEM_CXXFLAGS 24317 24318 if test $examples = "yes"; then 24319 MAKE_ALL_DIR_TRUE= 24320 MAKE_ALL_DIR_FALSE='#' 24321else 24322 MAKE_ALL_DIR_TRUE='#' 24323 MAKE_ALL_DIR_FALSE= 24324fi 24325 24326 if test $build_static = "yes" -a $static_pb = "no"; then 24327 BUILD_DAR_STATIC_TRUE= 24328 BUILD_DAR_STATIC_FALSE='#' 24329else 24330 BUILD_DAR_STATIC_TRUE='#' 24331 BUILD_DAR_STATIC_FALSE= 24332fi 24333 24334 if test $debug_static = "yes" -a $static_pb = "no"; then 24335 DEBUG_STATIC_TRUE= 24336 DEBUG_STATIC_FALSE='#' 24337else 24338 DEBUG_STATIC_TRUE='#' 24339 DEBUG_STATIC_FALSE= 24340fi 24341 24342 if test "$build_mode" = "32"; then 24343 BUILD_MODE32_TRUE= 24344 BUILD_MODE32_FALSE='#' 24345else 24346 BUILD_MODE32_TRUE='#' 24347 BUILD_MODE32_FALSE= 24348fi 24349 24350 if test "$build_mode" = "64"; then 24351 BUILD_MODE64_TRUE= 24352 BUILD_MODE64_FALSE='#' 24353else 24354 BUILD_MODE64_TRUE='#' 24355 BUILD_MODE64_FALSE= 24356fi 24357 24358 if test "$upx" = "yes"; then 24359 USE_UPX_TRUE= 24360 USE_UPX_FALSE='#' 24361else 24362 USE_UPX_TRUE='#' 24363 USE_UPX_FALSE= 24364fi 24365 24366 if test "$doxygen" = "yes"; then 24367 USE_DOXYGEN_TRUE= 24368 USE_DOXYGEN_FALSE='#' 24369else 24370 USE_DOXYGEN_TRUE='#' 24371 USE_DOXYGEN_FALSE= 24372fi 24373 24374 if test "$groff" = "yes"; then 24375 USE_GROFF_TRUE= 24376 USE_GROFF_FALSE='#' 24377else 24378 USE_GROFF_TRUE='#' 24379 USE_GROFF_FALSE= 24380fi 24381 24382 if test "$profiling" = "yes"; then 24383 PROFILING_TRUE= 24384 PROFILING_FALSE='#' 24385else 24386 PROFILING_TRUE='#' 24387 PROFILING_FALSE= 24388fi 24389 24390 if test "$local_sed" = "bsd"; then 24391 BSD_SED_TRUE= 24392 BSD_SED_FALSE='#' 24393else 24394 BSD_SED_TRUE='#' 24395 BSD_SED_FALSE= 24396fi 24397 24398 if test "$local_threadar" = "yes"; then 24399 WITH_LIBTHREADAR_TRUE= 24400 WITH_LIBTHREADAR_FALSE='#' 24401else 24402 WITH_LIBTHREADAR_TRUE='#' 24403 WITH_LIBTHREADAR_FALSE= 24404fi 24405 24406CXXSTDFLAGS=$CXXSTDFLAGS 24407 24408UPX_PROG=upx 24409 24410DOXYGEN_PROG=doxygen 24411 24412 24413# defaults 24414 24415 24416# hack from libtool mailing-list to know from source point of view whether we are compiling for dynamic or static way 24417 24418ac_config_commands="$ac_config_commands hack-libtool" 24419 24420 24421 24422ac_config_files="$ac_config_files Makefile man/Makefile src/Makefile src/libdar/Makefile src/dar_suite/Makefile src/testing/Makefile src/examples/Makefile doc/Makefile doc/samples/Makefile misc/Makefile doc/mini-howto/Makefile src/libdar/libdar.pc.tmpl doc/man/Makefile src/check/Makefile po/Makefile.in" 24423 24424cat >confcache <<\_ACEOF 24425# This file is a shell script that caches the results of configure 24426# tests run on this system so they can be shared between configure 24427# scripts and configure runs, see configure's option --config-cache. 24428# It is not useful on other systems. If it contains results you don't 24429# want to keep, you may remove or edit it. 24430# 24431# config.status only pays attention to the cache file if you give it 24432# the --recheck option to rerun configure. 24433# 24434# `ac_cv_env_foo' variables (set or unset) will be overridden when 24435# loading this file, other *unset* `ac_cv_foo' will be assigned the 24436# following values. 24437 24438_ACEOF 24439 24440# The following way of writing the cache mishandles newlines in values, 24441# but we know of no workaround that is simple, portable, and efficient. 24442# So, we kill variables containing newlines. 24443# Ultrix sh set writes to stderr and can't be redirected directly, 24444# and sets the high bit in the cache file unless we assign to the vars. 24445( 24446 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 24447 eval ac_val=\$$ac_var 24448 case $ac_val in #( 24449 *${as_nl}*) 24450 case $ac_var in #( 24451 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 24452$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 24453 esac 24454 case $ac_var in #( 24455 _ | IFS | as_nl) ;; #( 24456 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 24457 *) { eval $ac_var=; unset $ac_var;} ;; 24458 esac ;; 24459 esac 24460 done 24461 24462 (set) 2>&1 | 24463 case $as_nl`(ac_space=' '; set) 2>&1` in #( 24464 *${as_nl}ac_space=\ *) 24465 # `set' does not quote correctly, so add quotes: double-quote 24466 # substitution turns \\\\ into \\, and sed turns \\ into \. 24467 sed -n \ 24468 "s/'/'\\\\''/g; 24469 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 24470 ;; #( 24471 *) 24472 # `set' quotes correctly as required by POSIX, so do not add quotes. 24473 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 24474 ;; 24475 esac | 24476 sort 24477) | 24478 sed ' 24479 /^ac_cv_env_/b end 24480 t clear 24481 :clear 24482 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 24483 t end 24484 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 24485 :end' >>confcache 24486if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 24487 if test -w "$cache_file"; then 24488 if test "x$cache_file" != "x/dev/null"; then 24489 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 24490$as_echo "$as_me: updating cache $cache_file" >&6;} 24491 if test ! -f "$cache_file" || test -h "$cache_file"; then 24492 cat confcache >"$cache_file" 24493 else 24494 case $cache_file in #( 24495 */* | ?:*) 24496 mv -f confcache "$cache_file"$$ && 24497 mv -f "$cache_file"$$ "$cache_file" ;; #( 24498 *) 24499 mv -f confcache "$cache_file" ;; 24500 esac 24501 fi 24502 fi 24503 else 24504 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 24505$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 24506 fi 24507fi 24508rm -f confcache 24509 24510test "x$prefix" = xNONE && prefix=$ac_default_prefix 24511# Let make expand exec_prefix. 24512test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 24513 24514DEFS=-DHAVE_CONFIG_H 24515 24516ac_libobjs= 24517ac_ltlibobjs= 24518U= 24519for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 24520 # 1. Remove the extension, and $U if already installed. 24521 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 24522 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 24523 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 24524 # will be set to the directory where LIBOBJS objects are built. 24525 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 24526 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 24527done 24528LIBOBJS=$ac_libobjs 24529 24530LTLIBOBJS=$ac_ltlibobjs 24531 24532 24533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 24534$as_echo_n "checking that generated files are newer than configure... " >&6; } 24535 if test -n "$am_sleep_pid"; then 24536 # Hide warnings about reused PIDs. 24537 wait $am_sleep_pid 2>/dev/null 24538 fi 24539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 24540$as_echo "done" >&6; } 24541 if test -n "$EXEEXT"; then 24542 am__EXEEXT_TRUE= 24543 am__EXEEXT_FALSE='#' 24544else 24545 am__EXEEXT_TRUE='#' 24546 am__EXEEXT_FALSE= 24547fi 24548 24549if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 24550 as_fn_error $? "conditional \"AMDEP\" was never defined. 24551Usually this means the macro was only invoked conditionally." "$LINENO" 5 24552fi 24553if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 24554 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 24555Usually this means the macro was only invoked conditionally." "$LINENO" 5 24556fi 24557if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 24558 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 24559Usually this means the macro was only invoked conditionally." "$LINENO" 5 24560fi 24561if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 24562 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 24563Usually this means the macro was only invoked conditionally." "$LINENO" 5 24564fi 24565if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 24566 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 24567Usually this means the macro was only invoked conditionally." "$LINENO" 5 24568fi 24569if test -z "${MAKE_ALL_DIR_TRUE}" && test -z "${MAKE_ALL_DIR_FALSE}"; then 24570 as_fn_error $? "conditional \"MAKE_ALL_DIR\" was never defined. 24571Usually this means the macro was only invoked conditionally." "$LINENO" 5 24572fi 24573if test -z "${BUILD_DAR_STATIC_TRUE}" && test -z "${BUILD_DAR_STATIC_FALSE}"; then 24574 as_fn_error $? "conditional \"BUILD_DAR_STATIC\" was never defined. 24575Usually this means the macro was only invoked conditionally." "$LINENO" 5 24576fi 24577if test -z "${DEBUG_STATIC_TRUE}" && test -z "${DEBUG_STATIC_FALSE}"; then 24578 as_fn_error $? "conditional \"DEBUG_STATIC\" was never defined. 24579Usually this means the macro was only invoked conditionally." "$LINENO" 5 24580fi 24581if test -z "${BUILD_MODE32_TRUE}" && test -z "${BUILD_MODE32_FALSE}"; then 24582 as_fn_error $? "conditional \"BUILD_MODE32\" was never defined. 24583Usually this means the macro was only invoked conditionally." "$LINENO" 5 24584fi 24585if test -z "${BUILD_MODE64_TRUE}" && test -z "${BUILD_MODE64_FALSE}"; then 24586 as_fn_error $? "conditional \"BUILD_MODE64\" was never defined. 24587Usually this means the macro was only invoked conditionally." "$LINENO" 5 24588fi 24589if test -z "${USE_UPX_TRUE}" && test -z "${USE_UPX_FALSE}"; then 24590 as_fn_error $? "conditional \"USE_UPX\" was never defined. 24591Usually this means the macro was only invoked conditionally." "$LINENO" 5 24592fi 24593if test -z "${USE_DOXYGEN_TRUE}" && test -z "${USE_DOXYGEN_FALSE}"; then 24594 as_fn_error $? "conditional \"USE_DOXYGEN\" was never defined. 24595Usually this means the macro was only invoked conditionally." "$LINENO" 5 24596fi 24597if test -z "${USE_GROFF_TRUE}" && test -z "${USE_GROFF_FALSE}"; then 24598 as_fn_error $? "conditional \"USE_GROFF\" was never defined. 24599Usually this means the macro was only invoked conditionally." "$LINENO" 5 24600fi 24601if test -z "${PROFILING_TRUE}" && test -z "${PROFILING_FALSE}"; then 24602 as_fn_error $? "conditional \"PROFILING\" was never defined. 24603Usually this means the macro was only invoked conditionally." "$LINENO" 5 24604fi 24605if test -z "${BSD_SED_TRUE}" && test -z "${BSD_SED_FALSE}"; then 24606 as_fn_error $? "conditional \"BSD_SED\" was never defined. 24607Usually this means the macro was only invoked conditionally." "$LINENO" 5 24608fi 24609if test -z "${WITH_LIBTHREADAR_TRUE}" && test -z "${WITH_LIBTHREADAR_FALSE}"; then 24610 as_fn_error $? "conditional \"WITH_LIBTHREADAR\" was never defined. 24611Usually this means the macro was only invoked conditionally." "$LINENO" 5 24612fi 24613 24614: "${CONFIG_STATUS=./config.status}" 24615ac_write_fail=0 24616ac_clean_files_save=$ac_clean_files 24617ac_clean_files="$ac_clean_files $CONFIG_STATUS" 24618{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 24619$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 24620as_write_fail=0 24621cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 24622#! $SHELL 24623# Generated by $as_me. 24624# Run this file to recreate the current configuration. 24625# Compiler output produced by configure, useful for debugging 24626# configure, is in config.log if it exists. 24627 24628debug=false 24629ac_cs_recheck=false 24630ac_cs_silent=false 24631 24632SHELL=\${CONFIG_SHELL-$SHELL} 24633export SHELL 24634_ASEOF 24635cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 24636## -------------------- ## 24637## M4sh Initialization. ## 24638## -------------------- ## 24639 24640# Be more Bourne compatible 24641DUALCASE=1; export DUALCASE # for MKS sh 24642if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 24643 emulate sh 24644 NULLCMD=: 24645 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24646 # is contrary to our usage. Disable this feature. 24647 alias -g '${1+"$@"}'='"$@"' 24648 setopt NO_GLOB_SUBST 24649else 24650 case `(set -o) 2>/dev/null` in #( 24651 *posix*) : 24652 set -o posix ;; #( 24653 *) : 24654 ;; 24655esac 24656fi 24657 24658 24659as_nl=' 24660' 24661export as_nl 24662# Printing a long string crashes Solaris 7 /usr/bin/printf. 24663as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 24664as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 24665as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 24666# Prefer a ksh shell builtin over an external printf program on Solaris, 24667# but without wasting forks for bash or zsh. 24668if test -z "$BASH_VERSION$ZSH_VERSION" \ 24669 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 24670 as_echo='print -r --' 24671 as_echo_n='print -rn --' 24672elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 24673 as_echo='printf %s\n' 24674 as_echo_n='printf %s' 24675else 24676 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 24677 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 24678 as_echo_n='/usr/ucb/echo -n' 24679 else 24680 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 24681 as_echo_n_body='eval 24682 arg=$1; 24683 case $arg in #( 24684 *"$as_nl"*) 24685 expr "X$arg" : "X\\(.*\\)$as_nl"; 24686 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 24687 esac; 24688 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 24689 ' 24690 export as_echo_n_body 24691 as_echo_n='sh -c $as_echo_n_body as_echo' 24692 fi 24693 export as_echo_body 24694 as_echo='sh -c $as_echo_body as_echo' 24695fi 24696 24697# The user is always right. 24698if test "${PATH_SEPARATOR+set}" != set; then 24699 PATH_SEPARATOR=: 24700 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 24701 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 24702 PATH_SEPARATOR=';' 24703 } 24704fi 24705 24706 24707# IFS 24708# We need space, tab and new line, in precisely that order. Quoting is 24709# there to prevent editors from complaining about space-tab. 24710# (If _AS_PATH_WALK were called with IFS unset, it would disable word 24711# splitting by setting IFS to empty value.) 24712IFS=" "" $as_nl" 24713 24714# Find who we are. Look in the path if we contain no directory separator. 24715as_myself= 24716case $0 in #(( 24717 *[\\/]* ) as_myself=$0 ;; 24718 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24719for as_dir in $PATH 24720do 24721 IFS=$as_save_IFS 24722 test -z "$as_dir" && as_dir=. 24723 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 24724 done 24725IFS=$as_save_IFS 24726 24727 ;; 24728esac 24729# We did not find ourselves, most probably we were run as `sh COMMAND' 24730# in which case we are not to be found in the path. 24731if test "x$as_myself" = x; then 24732 as_myself=$0 24733fi 24734if test ! -f "$as_myself"; then 24735 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 24736 exit 1 24737fi 24738 24739# Unset variables that we do not need and which cause bugs (e.g. in 24740# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 24741# suppresses any "Segmentation fault" message there. '((' could 24742# trigger a bug in pdksh 5.2.14. 24743for as_var in BASH_ENV ENV MAIL MAILPATH 24744do eval test x\${$as_var+set} = xset \ 24745 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 24746done 24747PS1='$ ' 24748PS2='> ' 24749PS4='+ ' 24750 24751# NLS nuisances. 24752LC_ALL=C 24753export LC_ALL 24754LANGUAGE=C 24755export LANGUAGE 24756 24757# CDPATH. 24758(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 24759 24760 24761# as_fn_error STATUS ERROR [LINENO LOG_FD] 24762# ---------------------------------------- 24763# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 24764# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 24765# script with STATUS, using 1 if that was 0. 24766as_fn_error () 24767{ 24768 as_status=$1; test $as_status -eq 0 && as_status=1 24769 if test "$4"; then 24770 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 24771 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 24772 fi 24773 $as_echo "$as_me: error: $2" >&2 24774 as_fn_exit $as_status 24775} # as_fn_error 24776 24777 24778# as_fn_set_status STATUS 24779# ----------------------- 24780# Set $? to STATUS, without forking. 24781as_fn_set_status () 24782{ 24783 return $1 24784} # as_fn_set_status 24785 24786# as_fn_exit STATUS 24787# ----------------- 24788# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 24789as_fn_exit () 24790{ 24791 set +e 24792 as_fn_set_status $1 24793 exit $1 24794} # as_fn_exit 24795 24796# as_fn_unset VAR 24797# --------------- 24798# Portably unset VAR. 24799as_fn_unset () 24800{ 24801 { eval $1=; unset $1;} 24802} 24803as_unset=as_fn_unset 24804# as_fn_append VAR VALUE 24805# ---------------------- 24806# Append the text in VALUE to the end of the definition contained in VAR. Take 24807# advantage of any shell optimizations that allow amortized linear growth over 24808# repeated appends, instead of the typical quadratic growth present in naive 24809# implementations. 24810if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 24811 eval 'as_fn_append () 24812 { 24813 eval $1+=\$2 24814 }' 24815else 24816 as_fn_append () 24817 { 24818 eval $1=\$$1\$2 24819 } 24820fi # as_fn_append 24821 24822# as_fn_arith ARG... 24823# ------------------ 24824# Perform arithmetic evaluation on the ARGs, and store the result in the 24825# global $as_val. Take advantage of shells that can avoid forks. The arguments 24826# must be portable across $(()) and expr. 24827if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 24828 eval 'as_fn_arith () 24829 { 24830 as_val=$(( $* )) 24831 }' 24832else 24833 as_fn_arith () 24834 { 24835 as_val=`expr "$@" || test $? -eq 1` 24836 } 24837fi # as_fn_arith 24838 24839 24840if expr a : '\(a\)' >/dev/null 2>&1 && 24841 test "X`expr 00001 : '.*\(...\)'`" = X001; then 24842 as_expr=expr 24843else 24844 as_expr=false 24845fi 24846 24847if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 24848 as_basename=basename 24849else 24850 as_basename=false 24851fi 24852 24853if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 24854 as_dirname=dirname 24855else 24856 as_dirname=false 24857fi 24858 24859as_me=`$as_basename -- "$0" || 24860$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 24861 X"$0" : 'X\(//\)$' \| \ 24862 X"$0" : 'X\(/\)' \| . 2>/dev/null || 24863$as_echo X/"$0" | 24864 sed '/^.*\/\([^/][^/]*\)\/*$/{ 24865 s//\1/ 24866 q 24867 } 24868 /^X\/\(\/\/\)$/{ 24869 s//\1/ 24870 q 24871 } 24872 /^X\/\(\/\).*/{ 24873 s//\1/ 24874 q 24875 } 24876 s/.*/./; q'` 24877 24878# Avoid depending upon Character Ranges. 24879as_cr_letters='abcdefghijklmnopqrstuvwxyz' 24880as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 24881as_cr_Letters=$as_cr_letters$as_cr_LETTERS 24882as_cr_digits='0123456789' 24883as_cr_alnum=$as_cr_Letters$as_cr_digits 24884 24885ECHO_C= ECHO_N= ECHO_T= 24886case `echo -n x` in #((((( 24887-n*) 24888 case `echo 'xy\c'` in 24889 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 24890 xy) ECHO_C='\c';; 24891 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 24892 ECHO_T=' ';; 24893 esac;; 24894*) 24895 ECHO_N='-n';; 24896esac 24897 24898rm -f conf$$ conf$$.exe conf$$.file 24899if test -d conf$$.dir; then 24900 rm -f conf$$.dir/conf$$.file 24901else 24902 rm -f conf$$.dir 24903 mkdir conf$$.dir 2>/dev/null 24904fi 24905if (echo >conf$$.file) 2>/dev/null; then 24906 if ln -s conf$$.file conf$$ 2>/dev/null; then 24907 as_ln_s='ln -s' 24908 # ... but there are two gotchas: 24909 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 24910 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 24911 # In both cases, we have to default to `cp -pR'. 24912 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 24913 as_ln_s='cp -pR' 24914 elif ln conf$$.file conf$$ 2>/dev/null; then 24915 as_ln_s=ln 24916 else 24917 as_ln_s='cp -pR' 24918 fi 24919else 24920 as_ln_s='cp -pR' 24921fi 24922rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 24923rmdir conf$$.dir 2>/dev/null 24924 24925 24926# as_fn_mkdir_p 24927# ------------- 24928# Create "$as_dir" as a directory, including parents if necessary. 24929as_fn_mkdir_p () 24930{ 24931 24932 case $as_dir in #( 24933 -*) as_dir=./$as_dir;; 24934 esac 24935 test -d "$as_dir" || eval $as_mkdir_p || { 24936 as_dirs= 24937 while :; do 24938 case $as_dir in #( 24939 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 24940 *) as_qdir=$as_dir;; 24941 esac 24942 as_dirs="'$as_qdir' $as_dirs" 24943 as_dir=`$as_dirname -- "$as_dir" || 24944$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24945 X"$as_dir" : 'X\(//\)[^/]' \| \ 24946 X"$as_dir" : 'X\(//\)$' \| \ 24947 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 24948$as_echo X"$as_dir" | 24949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24950 s//\1/ 24951 q 24952 } 24953 /^X\(\/\/\)[^/].*/{ 24954 s//\1/ 24955 q 24956 } 24957 /^X\(\/\/\)$/{ 24958 s//\1/ 24959 q 24960 } 24961 /^X\(\/\).*/{ 24962 s//\1/ 24963 q 24964 } 24965 s/.*/./; q'` 24966 test -d "$as_dir" && break 24967 done 24968 test -z "$as_dirs" || eval "mkdir $as_dirs" 24969 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 24970 24971 24972} # as_fn_mkdir_p 24973if mkdir -p . 2>/dev/null; then 24974 as_mkdir_p='mkdir -p "$as_dir"' 24975else 24976 test -d ./-p && rmdir ./-p 24977 as_mkdir_p=false 24978fi 24979 24980 24981# as_fn_executable_p FILE 24982# ----------------------- 24983# Test if FILE is an executable regular file. 24984as_fn_executable_p () 24985{ 24986 test -f "$1" && test -x "$1" 24987} # as_fn_executable_p 24988as_test_x='test -x' 24989as_executable_p=as_fn_executable_p 24990 24991# Sed expression to map a string onto a valid CPP name. 24992as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 24993 24994# Sed expression to map a string onto a valid variable name. 24995as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 24996 24997 24998exec 6>&1 24999## ----------------------------------- ## 25000## Main body of $CONFIG_STATUS script. ## 25001## ----------------------------------- ## 25002_ASEOF 25003test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 25004 25005cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25006# Save the log message, to keep $0 and so on meaningful, and to 25007# report actual input values of CONFIG_FILES etc. instead of their 25008# values after options handling. 25009ac_log=" 25010This file was extended by DAR $as_me 2.5.14-bis, which was 25011generated by GNU Autoconf 2.69. Invocation command line was 25012 25013 CONFIG_FILES = $CONFIG_FILES 25014 CONFIG_HEADERS = $CONFIG_HEADERS 25015 CONFIG_LINKS = $CONFIG_LINKS 25016 CONFIG_COMMANDS = $CONFIG_COMMANDS 25017 $ $0 $@ 25018 25019on `(hostname || uname -n) 2>/dev/null | sed 1q` 25020" 25021 25022_ACEOF 25023 25024case $ac_config_files in *" 25025"*) set x $ac_config_files; shift; ac_config_files=$*;; 25026esac 25027 25028case $ac_config_headers in *" 25029"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 25030esac 25031 25032 25033cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25034# Files that config.status was made for. 25035config_files="$ac_config_files" 25036config_headers="$ac_config_headers" 25037config_commands="$ac_config_commands" 25038 25039_ACEOF 25040 25041cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25042ac_cs_usage="\ 25043\`$as_me' instantiates files and other configuration actions 25044from templates according to the current configuration. Unless the files 25045and actions are specified as TAGs, all are instantiated by default. 25046 25047Usage: $0 [OPTION]... [TAG]... 25048 25049 -h, --help print this help, then exit 25050 -V, --version print version number and configuration settings, then exit 25051 --config print configuration, then exit 25052 -q, --quiet, --silent 25053 do not print progress messages 25054 -d, --debug don't remove temporary files 25055 --recheck update $as_me by reconfiguring in the same conditions 25056 --file=FILE[:TEMPLATE] 25057 instantiate the configuration file FILE 25058 --header=FILE[:TEMPLATE] 25059 instantiate the configuration header FILE 25060 25061Configuration files: 25062$config_files 25063 25064Configuration headers: 25065$config_headers 25066 25067Configuration commands: 25068$config_commands 25069 25070Report bugs to <http://sourceforge.net/tracker/?group_id=65612&atid=511612>." 25071 25072_ACEOF 25073cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25074ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 25075ac_cs_version="\\ 25076DAR config.status 2.5.14-bis 25077configured by $0, generated by GNU Autoconf 2.69, 25078 with options \\"\$ac_cs_config\\" 25079 25080Copyright (C) 2012 Free Software Foundation, Inc. 25081This config.status script is free software; the Free Software Foundation 25082gives unlimited permission to copy, distribute and modify it." 25083 25084ac_pwd='$ac_pwd' 25085srcdir='$srcdir' 25086INSTALL='$INSTALL' 25087MKDIR_P='$MKDIR_P' 25088AWK='$AWK' 25089test -n "\$AWK" || AWK=awk 25090_ACEOF 25091 25092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25093# The default lists apply if the user does not specify any file. 25094ac_need_defaults=: 25095while test $# != 0 25096do 25097 case $1 in 25098 --*=?*) 25099 ac_option=`expr "X$1" : 'X\([^=]*\)='` 25100 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 25101 ac_shift=: 25102 ;; 25103 --*=) 25104 ac_option=`expr "X$1" : 'X\([^=]*\)='` 25105 ac_optarg= 25106 ac_shift=: 25107 ;; 25108 *) 25109 ac_option=$1 25110 ac_optarg=$2 25111 ac_shift=shift 25112 ;; 25113 esac 25114 25115 case $ac_option in 25116 # Handling of the options. 25117 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 25118 ac_cs_recheck=: ;; 25119 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 25120 $as_echo "$ac_cs_version"; exit ;; 25121 --config | --confi | --conf | --con | --co | --c ) 25122 $as_echo "$ac_cs_config"; exit ;; 25123 --debug | --debu | --deb | --de | --d | -d ) 25124 debug=: ;; 25125 --file | --fil | --fi | --f ) 25126 $ac_shift 25127 case $ac_optarg in 25128 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 25129 '') as_fn_error $? "missing file argument" ;; 25130 esac 25131 as_fn_append CONFIG_FILES " '$ac_optarg'" 25132 ac_need_defaults=false;; 25133 --header | --heade | --head | --hea ) 25134 $ac_shift 25135 case $ac_optarg in 25136 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 25137 esac 25138 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 25139 ac_need_defaults=false;; 25140 --he | --h) 25141 # Conflict between --help and --header 25142 as_fn_error $? "ambiguous option: \`$1' 25143Try \`$0 --help' for more information.";; 25144 --help | --hel | -h ) 25145 $as_echo "$ac_cs_usage"; exit ;; 25146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 25147 | -silent | --silent | --silen | --sile | --sil | --si | --s) 25148 ac_cs_silent=: ;; 25149 25150 # This is an error. 25151 -*) as_fn_error $? "unrecognized option: \`$1' 25152Try \`$0 --help' for more information." ;; 25153 25154 *) as_fn_append ac_config_targets " $1" 25155 ac_need_defaults=false ;; 25156 25157 esac 25158 shift 25159done 25160 25161ac_configure_extra_args= 25162 25163if $ac_cs_silent; then 25164 exec 6>/dev/null 25165 ac_configure_extra_args="$ac_configure_extra_args --silent" 25166fi 25167 25168_ACEOF 25169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25170if \$ac_cs_recheck; then 25171 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 25172 shift 25173 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 25174 CONFIG_SHELL='$SHELL' 25175 export CONFIG_SHELL 25176 exec "\$@" 25177fi 25178 25179_ACEOF 25180cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25181exec 5>>config.log 25182{ 25183 echo 25184 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 25185## Running $as_me. ## 25186_ASBOX 25187 $as_echo "$ac_log" 25188} >&5 25189 25190_ACEOF 25191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25192# 25193# INIT-COMMANDS 25194# 25195# Capture the value of obsolete ALL_LINGUAS because we need it to compute 25196 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 25197 # from automake < 1.5. 25198 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 25199 # Capture the value of LINGUAS because we need it to compute CATALOGS. 25200 LINGUAS="${LINGUAS-%UNSET%}" 25201 25202AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 25203 25204 25205# The HP-UX ksh and POSIX shell print the target directory to stdout 25206# if CDPATH is set. 25207(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 25208 25209sed_quote_subst='$sed_quote_subst' 25210double_quote_subst='$double_quote_subst' 25211delay_variable_subst='$delay_variable_subst' 25212macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 25213macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 25214enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 25215enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 25216pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 25217enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 25218SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 25219ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 25220PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 25221host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 25222host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 25223host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 25224build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 25225build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 25226build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 25227SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 25228Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 25229GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 25230EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 25231FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 25232LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 25233NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 25234LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 25235max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 25236ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 25237exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 25238lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 25239lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 25240lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 25241lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 25242lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 25243reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 25244reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 25245OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 25246deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 25247file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 25248file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 25249want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 25250DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 25251sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 25252AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 25253AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 25254archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 25255STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 25256RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 25257old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 25258old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 25259old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 25260lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 25261CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 25262CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 25263compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 25264GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 25265lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 25266lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 25267lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 25268lt_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"`' 25269nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 25270lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 25271objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 25272MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 25273lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 25274lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 25275lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 25276lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 25277lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 25278need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 25279MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 25280DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 25281NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 25282LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 25283OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 25284OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 25285libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 25286shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 25287extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 25288archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 25289enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 25290export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 25291whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 25292compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 25293old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 25294old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 25295archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 25296archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 25297module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 25298module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 25299with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 25300allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 25301no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 25302hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 25303hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 25304hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 25305hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 25306hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 25307hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 25308hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 25309inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 25310link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 25311always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 25312export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 25313exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 25314include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 25315prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 25316postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 25317file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 25318variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 25319need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 25320need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 25321version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 25322runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 25323shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 25324shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 25325libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 25326library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 25327soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 25328install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 25329postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 25330postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 25331finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 25332finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 25333hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 25334sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 25335sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 25336hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 25337enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 25338enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 25339enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 25340old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 25341striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 25342compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 25343predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 25344postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 25345predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 25346postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 25347compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 25348LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 25349reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 25350reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25351old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25352compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 25353GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 25354lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 25355lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 25356lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 25357lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 25358lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 25359archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 25360enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 25361export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 25362whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 25363compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 25364old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25365old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25366archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25367archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25368module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25369module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25370with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 25371allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 25372no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 25373hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 25374hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 25375hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 25376hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 25377hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 25378hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 25379hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 25380inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 25381link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 25382always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 25383export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25384exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 25385include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 25386prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25387postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25388file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 25389hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 25390compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 25391predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 25392postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 25393predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 25394postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 25395compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 25396 25397LTCC='$LTCC' 25398LTCFLAGS='$LTCFLAGS' 25399compiler='$compiler_DEFAULT' 25400 25401# A function that is used when there is no print builtin or printf. 25402func_fallback_echo () 25403{ 25404 eval 'cat <<_LTECHO_EOF 25405\$1 25406_LTECHO_EOF' 25407} 25408 25409# Quote evaled strings. 25410for var in SHELL \ 25411ECHO \ 25412PATH_SEPARATOR \ 25413SED \ 25414GREP \ 25415EGREP \ 25416FGREP \ 25417LD \ 25418NM \ 25419LN_S \ 25420lt_SP2NL \ 25421lt_NL2SP \ 25422reload_flag \ 25423OBJDUMP \ 25424deplibs_check_method \ 25425file_magic_cmd \ 25426file_magic_glob \ 25427want_nocaseglob \ 25428DLLTOOL \ 25429sharedlib_from_linklib_cmd \ 25430AR \ 25431AR_FLAGS \ 25432archiver_list_spec \ 25433STRIP \ 25434RANLIB \ 25435CC \ 25436CFLAGS \ 25437compiler \ 25438lt_cv_sys_global_symbol_pipe \ 25439lt_cv_sys_global_symbol_to_cdecl \ 25440lt_cv_sys_global_symbol_to_c_name_address \ 25441lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 25442nm_file_list_spec \ 25443lt_prog_compiler_no_builtin_flag \ 25444lt_prog_compiler_pic \ 25445lt_prog_compiler_wl \ 25446lt_prog_compiler_static \ 25447lt_cv_prog_compiler_c_o \ 25448need_locks \ 25449MANIFEST_TOOL \ 25450DSYMUTIL \ 25451NMEDIT \ 25452LIPO \ 25453OTOOL \ 25454OTOOL64 \ 25455shrext_cmds \ 25456export_dynamic_flag_spec \ 25457whole_archive_flag_spec \ 25458compiler_needs_object \ 25459with_gnu_ld \ 25460allow_undefined_flag \ 25461no_undefined_flag \ 25462hardcode_libdir_flag_spec \ 25463hardcode_libdir_separator \ 25464exclude_expsyms \ 25465include_expsyms \ 25466file_list_spec \ 25467variables_saved_for_relink \ 25468libname_spec \ 25469library_names_spec \ 25470soname_spec \ 25471install_override_mode \ 25472finish_eval \ 25473old_striplib \ 25474striplib \ 25475compiler_lib_search_dirs \ 25476predep_objects \ 25477postdep_objects \ 25478predeps \ 25479postdeps \ 25480compiler_lib_search_path \ 25481LD_CXX \ 25482reload_flag_CXX \ 25483compiler_CXX \ 25484lt_prog_compiler_no_builtin_flag_CXX \ 25485lt_prog_compiler_pic_CXX \ 25486lt_prog_compiler_wl_CXX \ 25487lt_prog_compiler_static_CXX \ 25488lt_cv_prog_compiler_c_o_CXX \ 25489export_dynamic_flag_spec_CXX \ 25490whole_archive_flag_spec_CXX \ 25491compiler_needs_object_CXX \ 25492with_gnu_ld_CXX \ 25493allow_undefined_flag_CXX \ 25494no_undefined_flag_CXX \ 25495hardcode_libdir_flag_spec_CXX \ 25496hardcode_libdir_separator_CXX \ 25497exclude_expsyms_CXX \ 25498include_expsyms_CXX \ 25499file_list_spec_CXX \ 25500compiler_lib_search_dirs_CXX \ 25501predep_objects_CXX \ 25502postdep_objects_CXX \ 25503predeps_CXX \ 25504postdeps_CXX \ 25505compiler_lib_search_path_CXX; do 25506 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 25507 *[\\\\\\\`\\"\\\$]*) 25508 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 25509 ;; 25510 *) 25511 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 25512 ;; 25513 esac 25514done 25515 25516# Double-quote double-evaled strings. 25517for var in reload_cmds \ 25518old_postinstall_cmds \ 25519old_postuninstall_cmds \ 25520old_archive_cmds \ 25521extract_expsyms_cmds \ 25522old_archive_from_new_cmds \ 25523old_archive_from_expsyms_cmds \ 25524archive_cmds \ 25525archive_expsym_cmds \ 25526module_cmds \ 25527module_expsym_cmds \ 25528export_symbols_cmds \ 25529prelink_cmds \ 25530postlink_cmds \ 25531postinstall_cmds \ 25532postuninstall_cmds \ 25533finish_cmds \ 25534sys_lib_search_path_spec \ 25535sys_lib_dlsearch_path_spec \ 25536reload_cmds_CXX \ 25537old_archive_cmds_CXX \ 25538old_archive_from_new_cmds_CXX \ 25539old_archive_from_expsyms_cmds_CXX \ 25540archive_cmds_CXX \ 25541archive_expsym_cmds_CXX \ 25542module_cmds_CXX \ 25543module_expsym_cmds_CXX \ 25544export_symbols_cmds_CXX \ 25545prelink_cmds_CXX \ 25546postlink_cmds_CXX; do 25547 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 25548 *[\\\\\\\`\\"\\\$]*) 25549 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 25550 ;; 25551 *) 25552 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 25553 ;; 25554 esac 25555done 25556 25557ac_aux_dir='$ac_aux_dir' 25558xsi_shell='$xsi_shell' 25559lt_shell_append='$lt_shell_append' 25560 25561# See if we are running on zsh, and set the options which allow our 25562# commands through without removal of \ escapes INIT. 25563if test -n "\${ZSH_VERSION+set}" ; then 25564 setopt NO_GLOB_SUBST 25565fi 25566 25567 25568 PACKAGE='$PACKAGE' 25569 VERSION='$VERSION' 25570 TIMESTAMP='$TIMESTAMP' 25571 RM='$RM' 25572 ofile='$ofile' 25573 25574 25575 25576 25577 25578 25579_ACEOF 25580 25581cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25582 25583# Handling of arguments. 25584for ac_config_target in $ac_config_targets 25585do 25586 case $ac_config_target in 25587 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 25588 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 25589 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 25590 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 25591 "hack-libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS hack-libtool" ;; 25592 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 25593 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 25594 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 25595 "src/libdar/Makefile") CONFIG_FILES="$CONFIG_FILES src/libdar/Makefile" ;; 25596 "src/dar_suite/Makefile") CONFIG_FILES="$CONFIG_FILES src/dar_suite/Makefile" ;; 25597 "src/testing/Makefile") CONFIG_FILES="$CONFIG_FILES src/testing/Makefile" ;; 25598 "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;; 25599 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 25600 "doc/samples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/samples/Makefile" ;; 25601 "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;; 25602 "doc/mini-howto/Makefile") CONFIG_FILES="$CONFIG_FILES doc/mini-howto/Makefile" ;; 25603 "src/libdar/libdar.pc.tmpl") CONFIG_FILES="$CONFIG_FILES src/libdar/libdar.pc.tmpl" ;; 25604 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;; 25605 "src/check/Makefile") CONFIG_FILES="$CONFIG_FILES src/check/Makefile" ;; 25606 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 25607 25608 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 25609 esac 25610done 25611 25612 25613# If the user did not use the arguments to specify the items to instantiate, 25614# then the envvar interface is used. Set only those that are not. 25615# We use the long form for the default assignment because of an extremely 25616# bizarre bug on SunOS 4.1.3. 25617if $ac_need_defaults; then 25618 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 25619 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 25620 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 25621fi 25622 25623# Have a temporary directory for convenience. Make it in the build tree 25624# simply because there is no reason against having it here, and in addition, 25625# creating and moving files from /tmp can sometimes cause problems. 25626# Hook for its removal unless debugging. 25627# Note that there is a small window in which the directory will not be cleaned: 25628# after its creation but before its name has been assigned to `$tmp'. 25629$debug || 25630{ 25631 tmp= ac_tmp= 25632 trap 'exit_status=$? 25633 : "${ac_tmp:=$tmp}" 25634 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 25635' 0 25636 trap 'as_fn_exit 1' 1 2 13 15 25637} 25638# Create a (secure) tmp directory for tmp files. 25639 25640{ 25641 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 25642 test -d "$tmp" 25643} || 25644{ 25645 tmp=./conf$$-$RANDOM 25646 (umask 077 && mkdir "$tmp") 25647} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 25648ac_tmp=$tmp 25649 25650# Set up the scripts for CONFIG_FILES section. 25651# No need to generate them if there are no CONFIG_FILES. 25652# This happens for instance with `./config.status config.h'. 25653if test -n "$CONFIG_FILES"; then 25654 25655 25656ac_cr=`echo X | tr X '\015'` 25657# On cygwin, bash can eat \r inside `` if the user requested igncr. 25658# But we know of no other shell where ac_cr would be empty at this 25659# point, so we can use a bashism as a fallback. 25660if test "x$ac_cr" = x; then 25661 eval ac_cr=\$\'\\r\' 25662fi 25663ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 25664if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 25665 ac_cs_awk_cr='\\r' 25666else 25667 ac_cs_awk_cr=$ac_cr 25668fi 25669 25670echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 25671_ACEOF 25672 25673 25674{ 25675 echo "cat >conf$$subs.awk <<_ACEOF" && 25676 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 25677 echo "_ACEOF" 25678} >conf$$subs.sh || 25679 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 25680ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 25681ac_delim='%!_!# ' 25682for ac_last_try in false false false false false :; do 25683 . ./conf$$subs.sh || 25684 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 25685 25686 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 25687 if test $ac_delim_n = $ac_delim_num; then 25688 break 25689 elif $ac_last_try; then 25690 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 25691 else 25692 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 25693 fi 25694done 25695rm -f conf$$subs.sh 25696 25697cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25698cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 25699_ACEOF 25700sed -n ' 25701h 25702s/^/S["/; s/!.*/"]=/ 25703p 25704g 25705s/^[^!]*!// 25706:repl 25707t repl 25708s/'"$ac_delim"'$// 25709t delim 25710:nl 25711h 25712s/\(.\{148\}\)..*/\1/ 25713t more1 25714s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 25715p 25716n 25717b repl 25718:more1 25719s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 25720p 25721g 25722s/.\{148\}// 25723t nl 25724:delim 25725h 25726s/\(.\{148\}\)..*/\1/ 25727t more2 25728s/["\\]/\\&/g; s/^/"/; s/$/"/ 25729p 25730b 25731:more2 25732s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 25733p 25734g 25735s/.\{148\}// 25736t delim 25737' <conf$$subs.awk | sed ' 25738/^[^""]/{ 25739 N 25740 s/\n// 25741} 25742' >>$CONFIG_STATUS || ac_write_fail=1 25743rm -f conf$$subs.awk 25744cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25745_ACAWK 25746cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 25747 for (key in S) S_is_set[key] = 1 25748 FS = "" 25749 25750} 25751{ 25752 line = $ 0 25753 nfields = split(line, field, "@") 25754 substed = 0 25755 len = length(field[1]) 25756 for (i = 2; i < nfields; i++) { 25757 key = field[i] 25758 keylen = length(key) 25759 if (S_is_set[key]) { 25760 value = S[key] 25761 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 25762 len += length(value) + length(field[++i]) 25763 substed = 1 25764 } else 25765 len += 1 + keylen 25766 } 25767 25768 print line 25769} 25770 25771_ACAWK 25772_ACEOF 25773cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25774if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 25775 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 25776else 25777 cat 25778fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 25779 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 25780_ACEOF 25781 25782# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 25783# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 25784# trailing colons and then remove the whole line if VPATH becomes empty 25785# (actually we leave an empty line to preserve line numbers). 25786if test "x$srcdir" = x.; then 25787 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 25788h 25789s/// 25790s/^/:/ 25791s/[ ]*$/:/ 25792s/:\$(srcdir):/:/g 25793s/:\${srcdir}:/:/g 25794s/:@srcdir@:/:/g 25795s/^:*// 25796s/:*$// 25797x 25798s/\(=[ ]*\).*/\1/ 25799G 25800s/\n// 25801s/^[^=]*=[ ]*$// 25802}' 25803fi 25804 25805cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25806fi # test -n "$CONFIG_FILES" 25807 25808# Set up the scripts for CONFIG_HEADERS section. 25809# No need to generate them if there are no CONFIG_HEADERS. 25810# This happens for instance with `./config.status Makefile'. 25811if test -n "$CONFIG_HEADERS"; then 25812cat >"$ac_tmp/defines.awk" <<\_ACAWK || 25813BEGIN { 25814_ACEOF 25815 25816# Transform confdefs.h into an awk script `defines.awk', embedded as 25817# here-document in config.status, that substitutes the proper values into 25818# config.h.in to produce config.h. 25819 25820# Create a delimiter string that does not exist in confdefs.h, to ease 25821# handling of long lines. 25822ac_delim='%!_!# ' 25823for ac_last_try in false false :; do 25824 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 25825 if test -z "$ac_tt"; then 25826 break 25827 elif $ac_last_try; then 25828 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 25829 else 25830 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 25831 fi 25832done 25833 25834# For the awk script, D is an array of macro values keyed by name, 25835# likewise P contains macro parameters if any. Preserve backslash 25836# newline sequences. 25837 25838ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 25839sed -n ' 25840s/.\{148\}/&'"$ac_delim"'/g 25841t rset 25842:rset 25843s/^[ ]*#[ ]*define[ ][ ]*/ / 25844t def 25845d 25846:def 25847s/\\$// 25848t bsnl 25849s/["\\]/\\&/g 25850s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 25851D["\1"]=" \3"/p 25852s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 25853d 25854:bsnl 25855s/["\\]/\\&/g 25856s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 25857D["\1"]=" \3\\\\\\n"\\/p 25858t cont 25859s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 25860t cont 25861d 25862:cont 25863n 25864s/.\{148\}/&'"$ac_delim"'/g 25865t clear 25866:clear 25867s/\\$// 25868t bsnlc 25869s/["\\]/\\&/g; s/^/"/; s/$/"/p 25870d 25871:bsnlc 25872s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 25873b cont 25874' <confdefs.h | sed ' 25875s/'"$ac_delim"'/"\\\ 25876"/g' >>$CONFIG_STATUS || ac_write_fail=1 25877 25878cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25879 for (key in D) D_is_set[key] = 1 25880 FS = "" 25881} 25882/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 25883 line = \$ 0 25884 split(line, arg, " ") 25885 if (arg[1] == "#") { 25886 defundef = arg[2] 25887 mac1 = arg[3] 25888 } else { 25889 defundef = substr(arg[1], 2) 25890 mac1 = arg[2] 25891 } 25892 split(mac1, mac2, "(") #) 25893 macro = mac2[1] 25894 prefix = substr(line, 1, index(line, defundef) - 1) 25895 if (D_is_set[macro]) { 25896 # Preserve the white space surrounding the "#". 25897 print prefix "define", macro P[macro] D[macro] 25898 next 25899 } else { 25900 # Replace #undef with comments. This is necessary, for example, 25901 # in the case of _POSIX_SOURCE, which is predefined and required 25902 # on some systems where configure will not decide to define it. 25903 if (defundef == "undef") { 25904 print "/*", prefix defundef, macro, "*/" 25905 next 25906 } 25907 } 25908} 25909{ print } 25910_ACAWK 25911_ACEOF 25912cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25913 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 25914fi # test -n "$CONFIG_HEADERS" 25915 25916 25917eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 25918shift 25919for ac_tag 25920do 25921 case $ac_tag in 25922 :[FHLC]) ac_mode=$ac_tag; continue;; 25923 esac 25924 case $ac_mode$ac_tag in 25925 :[FHL]*:*);; 25926 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 25927 :[FH]-) ac_tag=-:-;; 25928 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 25929 esac 25930 ac_save_IFS=$IFS 25931 IFS=: 25932 set x $ac_tag 25933 IFS=$ac_save_IFS 25934 shift 25935 ac_file=$1 25936 shift 25937 25938 case $ac_mode in 25939 :L) ac_source=$1;; 25940 :[FH]) 25941 ac_file_inputs= 25942 for ac_f 25943 do 25944 case $ac_f in 25945 -) ac_f="$ac_tmp/stdin";; 25946 *) # Look for the file first in the build tree, then in the source tree 25947 # (if the path is not absolute). The absolute path cannot be DOS-style, 25948 # because $ac_f cannot contain `:'. 25949 test -f "$ac_f" || 25950 case $ac_f in 25951 [\\/$]*) false;; 25952 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 25953 esac || 25954 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 25955 esac 25956 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 25957 as_fn_append ac_file_inputs " '$ac_f'" 25958 done 25959 25960 # Let's still pretend it is `configure' which instantiates (i.e., don't 25961 # use $as_me), people would be surprised to read: 25962 # /* config.h. Generated by config.status. */ 25963 configure_input='Generated from '` 25964 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 25965 `' by configure.' 25966 if test x"$ac_file" != x-; then 25967 configure_input="$ac_file. $configure_input" 25968 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 25969$as_echo "$as_me: creating $ac_file" >&6;} 25970 fi 25971 # Neutralize special characters interpreted by sed in replacement strings. 25972 case $configure_input in #( 25973 *\&* | *\|* | *\\* ) 25974 ac_sed_conf_input=`$as_echo "$configure_input" | 25975 sed 's/[\\\\&|]/\\\\&/g'`;; #( 25976 *) ac_sed_conf_input=$configure_input;; 25977 esac 25978 25979 case $ac_tag in 25980 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 25981 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 25982 esac 25983 ;; 25984 esac 25985 25986 ac_dir=`$as_dirname -- "$ac_file" || 25987$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25988 X"$ac_file" : 'X\(//\)[^/]' \| \ 25989 X"$ac_file" : 'X\(//\)$' \| \ 25990 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 25991$as_echo X"$ac_file" | 25992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25993 s//\1/ 25994 q 25995 } 25996 /^X\(\/\/\)[^/].*/{ 25997 s//\1/ 25998 q 25999 } 26000 /^X\(\/\/\)$/{ 26001 s//\1/ 26002 q 26003 } 26004 /^X\(\/\).*/{ 26005 s//\1/ 26006 q 26007 } 26008 s/.*/./; q'` 26009 as_dir="$ac_dir"; as_fn_mkdir_p 26010 ac_builddir=. 26011 26012case "$ac_dir" in 26013.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 26014*) 26015 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 26016 # A ".." for each directory in $ac_dir_suffix. 26017 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 26018 case $ac_top_builddir_sub in 26019 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 26020 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 26021 esac ;; 26022esac 26023ac_abs_top_builddir=$ac_pwd 26024ac_abs_builddir=$ac_pwd$ac_dir_suffix 26025# for backward compatibility: 26026ac_top_builddir=$ac_top_build_prefix 26027 26028case $srcdir in 26029 .) # We are building in place. 26030 ac_srcdir=. 26031 ac_top_srcdir=$ac_top_builddir_sub 26032 ac_abs_top_srcdir=$ac_pwd ;; 26033 [\\/]* | ?:[\\/]* ) # Absolute name. 26034 ac_srcdir=$srcdir$ac_dir_suffix; 26035 ac_top_srcdir=$srcdir 26036 ac_abs_top_srcdir=$srcdir ;; 26037 *) # Relative name. 26038 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 26039 ac_top_srcdir=$ac_top_build_prefix$srcdir 26040 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 26041esac 26042ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 26043 26044 26045 case $ac_mode in 26046 :F) 26047 # 26048 # CONFIG_FILE 26049 # 26050 26051 case $INSTALL in 26052 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 26053 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 26054 esac 26055 ac_MKDIR_P=$MKDIR_P 26056 case $MKDIR_P in 26057 [\\/$]* | ?:[\\/]* ) ;; 26058 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 26059 esac 26060_ACEOF 26061 26062cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26063# If the template does not know about datarootdir, expand it. 26064# FIXME: This hack should be removed a few years after 2.60. 26065ac_datarootdir_hack=; ac_datarootdir_seen= 26066ac_sed_dataroot=' 26067/datarootdir/ { 26068 p 26069 q 26070} 26071/@datadir@/p 26072/@docdir@/p 26073/@infodir@/p 26074/@localedir@/p 26075/@mandir@/p' 26076case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 26077*datarootdir*) ac_datarootdir_seen=yes;; 26078*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 26079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 26080$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 26081_ACEOF 26082cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26083 ac_datarootdir_hack=' 26084 s&@datadir@&$datadir&g 26085 s&@docdir@&$docdir&g 26086 s&@infodir@&$infodir&g 26087 s&@localedir@&$localedir&g 26088 s&@mandir@&$mandir&g 26089 s&\\\${datarootdir}&$datarootdir&g' ;; 26090esac 26091_ACEOF 26092 26093# Neutralize VPATH when `$srcdir' = `.'. 26094# Shell code in configure.ac might set extrasub. 26095# FIXME: do we really want to maintain this feature? 26096cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26097ac_sed_extra="$ac_vpsub 26098$extrasub 26099_ACEOF 26100cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26101:t 26102/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 26103s|@configure_input@|$ac_sed_conf_input|;t t 26104s&@top_builddir@&$ac_top_builddir_sub&;t t 26105s&@top_build_prefix@&$ac_top_build_prefix&;t t 26106s&@srcdir@&$ac_srcdir&;t t 26107s&@abs_srcdir@&$ac_abs_srcdir&;t t 26108s&@top_srcdir@&$ac_top_srcdir&;t t 26109s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 26110s&@builddir@&$ac_builddir&;t t 26111s&@abs_builddir@&$ac_abs_builddir&;t t 26112s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 26113s&@INSTALL@&$ac_INSTALL&;t t 26114s&@MKDIR_P@&$ac_MKDIR_P&;t t 26115$ac_datarootdir_hack 26116" 26117eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 26118 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26119 26120test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 26121 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 26122 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 26123 "$ac_tmp/out"`; test -z "$ac_out"; } && 26124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 26125which seems to be undefined. Please make sure it is defined" >&5 26126$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 26127which seems to be undefined. Please make sure it is defined" >&2;} 26128 26129 rm -f "$ac_tmp/stdin" 26130 case $ac_file in 26131 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 26132 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 26133 esac \ 26134 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26135 ;; 26136 :H) 26137 # 26138 # CONFIG_HEADER 26139 # 26140 if test x"$ac_file" != x-; then 26141 { 26142 $as_echo "/* $configure_input */" \ 26143 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 26144 } >"$ac_tmp/config.h" \ 26145 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26146 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 26147 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 26148$as_echo "$as_me: $ac_file is unchanged" >&6;} 26149 else 26150 rm -f "$ac_file" 26151 mv "$ac_tmp/config.h" "$ac_file" \ 26152 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26153 fi 26154 else 26155 $as_echo "/* $configure_input */" \ 26156 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 26157 || as_fn_error $? "could not create -" "$LINENO" 5 26158 fi 26159# Compute "$ac_file"'s index in $config_headers. 26160_am_arg="$ac_file" 26161_am_stamp_count=1 26162for _am_header in $config_headers :; do 26163 case $_am_header in 26164 $_am_arg | $_am_arg:* ) 26165 break ;; 26166 * ) 26167 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 26168 esac 26169done 26170echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 26171$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26172 X"$_am_arg" : 'X\(//\)[^/]' \| \ 26173 X"$_am_arg" : 'X\(//\)$' \| \ 26174 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 26175$as_echo X"$_am_arg" | 26176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26177 s//\1/ 26178 q 26179 } 26180 /^X\(\/\/\)[^/].*/{ 26181 s//\1/ 26182 q 26183 } 26184 /^X\(\/\/\)$/{ 26185 s//\1/ 26186 q 26187 } 26188 /^X\(\/\).*/{ 26189 s//\1/ 26190 q 26191 } 26192 s/.*/./; q'`/stamp-h$_am_stamp_count 26193 ;; 26194 26195 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 26196$as_echo "$as_me: executing $ac_file commands" >&6;} 26197 ;; 26198 esac 26199 26200 26201 case $ac_file$ac_mode in 26202 "po-directories":C) 26203 for ac_file in $CONFIG_FILES; do 26204 # Support "outfile[:infile[:infile...]]" 26205 case "$ac_file" in 26206 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 26207 esac 26208 # PO directories have a Makefile.in generated from Makefile.in.in. 26209 case "$ac_file" in */Makefile.in) 26210 # Adjust a relative srcdir. 26211 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 26212 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 26213 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 26214 # In autoconf-2.13 it is called $ac_given_srcdir. 26215 # In autoconf-2.50 it is called $srcdir. 26216 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 26217 case "$ac_given_srcdir" in 26218 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 26219 /*) top_srcdir="$ac_given_srcdir" ;; 26220 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 26221 esac 26222 # Treat a directory as a PO directory if and only if it has a 26223 # POTFILES.in file. This allows packages to have multiple PO 26224 # directories under different names or in different locations. 26225 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 26226 rm -f "$ac_dir/POTFILES" 26227 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 26228 gt_tab=`printf '\t'` 26229 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 26230 POMAKEFILEDEPS="POTFILES.in" 26231 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 26232 # on $ac_dir but don't depend on user-specified configuration 26233 # parameters. 26234 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 26235 # The LINGUAS file contains the set of available languages. 26236 if test -n "$OBSOLETE_ALL_LINGUAS"; then 26237 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 26238 fi 26239 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 26240 # Hide the ALL_LINGUAS assignment from automake < 1.5. 26241 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 26242 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 26243 else 26244 # The set of available languages was given in configure.in. 26245 # Hide the ALL_LINGUAS assignment from automake < 1.5. 26246 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 26247 fi 26248 # Compute POFILES 26249 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 26250 # Compute UPDATEPOFILES 26251 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 26252 # Compute DUMMYPOFILES 26253 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 26254 # Compute GMOFILES 26255 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 26256 case "$ac_given_srcdir" in 26257 .) srcdirpre= ;; 26258 *) srcdirpre='$(srcdir)/' ;; 26259 esac 26260 POFILES= 26261 UPDATEPOFILES= 26262 DUMMYPOFILES= 26263 GMOFILES= 26264 for lang in $ALL_LINGUAS; do 26265 POFILES="$POFILES $srcdirpre$lang.po" 26266 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 26267 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 26268 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 26269 done 26270 # CATALOGS depends on both $ac_dir and the user's LINGUAS 26271 # environment variable. 26272 INST_LINGUAS= 26273 if test -n "$ALL_LINGUAS"; then 26274 for presentlang in $ALL_LINGUAS; do 26275 useit=no 26276 if test "%UNSET%" != "$LINGUAS"; then 26277 desiredlanguages="$LINGUAS" 26278 else 26279 desiredlanguages="$ALL_LINGUAS" 26280 fi 26281 for desiredlang in $desiredlanguages; do 26282 # Use the presentlang catalog if desiredlang is 26283 # a. equal to presentlang, or 26284 # b. a variant of presentlang (because in this case, 26285 # presentlang can be used as a fallback for messages 26286 # which are not translated in the desiredlang catalog). 26287 case "$desiredlang" in 26288 "$presentlang"*) useit=yes;; 26289 esac 26290 done 26291 if test $useit = yes; then 26292 INST_LINGUAS="$INST_LINGUAS $presentlang" 26293 fi 26294 done 26295 fi 26296 CATALOGS= 26297 if test -n "$INST_LINGUAS"; then 26298 for lang in $INST_LINGUAS; do 26299 CATALOGS="$CATALOGS $lang.gmo" 26300 done 26301 fi 26302 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 26303 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 26304 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 26305 if test -f "$f"; then 26306 case "$f" in 26307 *.orig | *.bak | *~) ;; 26308 *) cat "$f" >> "$ac_dir/Makefile" ;; 26309 esac 26310 fi 26311 done 26312 fi 26313 ;; 26314 esac 26315 done ;; 26316 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 26317 # Older Autoconf quotes --file arguments for eval, but not when files 26318 # are listed without --file. Let's play safe and only enable the eval 26319 # if we detect the quoting. 26320 case $CONFIG_FILES in 26321 *\'*) eval set x "$CONFIG_FILES" ;; 26322 *) set x $CONFIG_FILES ;; 26323 esac 26324 shift 26325 for mf 26326 do 26327 # Strip MF so we end up with the name of the file. 26328 mf=`echo "$mf" | sed -e 's/:.*$//'` 26329 # Check whether this is an Automake generated Makefile or not. 26330 # We used to match only the files named 'Makefile.in', but 26331 # some people rename them; so instead we look at the file content. 26332 # Grep'ing the first line is not enough: some people post-process 26333 # each Makefile.in and add a new line on top of each file to say so. 26334 # Grep'ing the whole file is not good either: AIX grep has a line 26335 # limit of 2048, but all sed's we know have understand at least 4000. 26336 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 26337 dirpart=`$as_dirname -- "$mf" || 26338$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26339 X"$mf" : 'X\(//\)[^/]' \| \ 26340 X"$mf" : 'X\(//\)$' \| \ 26341 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 26342$as_echo X"$mf" | 26343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26344 s//\1/ 26345 q 26346 } 26347 /^X\(\/\/\)[^/].*/{ 26348 s//\1/ 26349 q 26350 } 26351 /^X\(\/\/\)$/{ 26352 s//\1/ 26353 q 26354 } 26355 /^X\(\/\).*/{ 26356 s//\1/ 26357 q 26358 } 26359 s/.*/./; q'` 26360 else 26361 continue 26362 fi 26363 # Extract the definition of DEPDIR, am__include, and am__quote 26364 # from the Makefile without running 'make'. 26365 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 26366 test -z "$DEPDIR" && continue 26367 am__include=`sed -n 's/^am__include = //p' < "$mf"` 26368 test -z "$am__include" && continue 26369 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 26370 # Find all dependency output files, they are included files with 26371 # $(DEPDIR) in their names. We invoke sed twice because it is the 26372 # simplest approach to changing $(DEPDIR) to its actual value in the 26373 # expansion. 26374 for file in `sed -n " 26375 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 26376 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 26377 # Make sure the directory exists. 26378 test -f "$dirpart/$file" && continue 26379 fdir=`$as_dirname -- "$file" || 26380$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26381 X"$file" : 'X\(//\)[^/]' \| \ 26382 X"$file" : 'X\(//\)$' \| \ 26383 X"$file" : 'X\(/\)' \| . 2>/dev/null || 26384$as_echo X"$file" | 26385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26386 s//\1/ 26387 q 26388 } 26389 /^X\(\/\/\)[^/].*/{ 26390 s//\1/ 26391 q 26392 } 26393 /^X\(\/\/\)$/{ 26394 s//\1/ 26395 q 26396 } 26397 /^X\(\/\).*/{ 26398 s//\1/ 26399 q 26400 } 26401 s/.*/./; q'` 26402 as_dir=$dirpart/$fdir; as_fn_mkdir_p 26403 # echo "creating $dirpart/$file" 26404 echo '# dummy' > "$dirpart/$file" 26405 done 26406 done 26407} 26408 ;; 26409 "libtool":C) 26410 26411 # See if we are running on zsh, and set the options which allow our 26412 # commands through without removal of \ escapes. 26413 if test -n "${ZSH_VERSION+set}" ; then 26414 setopt NO_GLOB_SUBST 26415 fi 26416 26417 cfgfile="${ofile}T" 26418 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 26419 $RM "$cfgfile" 26420 26421 cat <<_LT_EOF >> "$cfgfile" 26422#! $SHELL 26423 26424# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 26425# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 26426# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 26427# NOTE: Changes made to this file will be lost: look at ltmain.sh. 26428# 26429# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 26430# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 26431# Foundation, Inc. 26432# Written by Gordon Matzigkeit, 1996 26433# 26434# This file is part of GNU Libtool. 26435# 26436# GNU Libtool is free software; you can redistribute it and/or 26437# modify it under the terms of the GNU General Public License as 26438# published by the Free Software Foundation; either version 2 of 26439# the License, or (at your option) any later version. 26440# 26441# As a special exception to the GNU General Public License, 26442# if you distribute this file as part of a program or library that 26443# is built using GNU Libtool, you may include this file under the 26444# same distribution terms that you use for the rest of that program. 26445# 26446# GNU Libtool is distributed in the hope that it will be useful, 26447# but WITHOUT ANY WARRANTY; without even the implied warranty of 26448# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 26449# GNU General Public License for more details. 26450# 26451# You should have received a copy of the GNU General Public License 26452# along with GNU Libtool; see the file COPYING. If not, a copy 26453# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 26454# obtained by writing to the Free Software Foundation, Inc., 26455# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 26456 26457 26458# The names of the tagged configurations supported by this script. 26459available_tags="CXX " 26460 26461# ### BEGIN LIBTOOL CONFIG 26462 26463# Which release of libtool.m4 was used? 26464macro_version=$macro_version 26465macro_revision=$macro_revision 26466 26467# Whether or not to build shared libraries. 26468build_libtool_libs=$enable_shared 26469 26470# Whether or not to build static libraries. 26471build_old_libs=$enable_static 26472 26473# What type of objects to build. 26474pic_mode=$pic_mode 26475 26476# Whether or not to optimize for fast installation. 26477fast_install=$enable_fast_install 26478 26479# Shell to use when invoking shell scripts. 26480SHELL=$lt_SHELL 26481 26482# An echo program that protects backslashes. 26483ECHO=$lt_ECHO 26484 26485# The PATH separator for the build system. 26486PATH_SEPARATOR=$lt_PATH_SEPARATOR 26487 26488# The host system. 26489host_alias=$host_alias 26490host=$host 26491host_os=$host_os 26492 26493# The build system. 26494build_alias=$build_alias 26495build=$build 26496build_os=$build_os 26497 26498# A sed program that does not truncate output. 26499SED=$lt_SED 26500 26501# Sed that helps us avoid accidentally triggering echo(1) options like -n. 26502Xsed="\$SED -e 1s/^X//" 26503 26504# A grep program that handles long lines. 26505GREP=$lt_GREP 26506 26507# An ERE matcher. 26508EGREP=$lt_EGREP 26509 26510# A literal string matcher. 26511FGREP=$lt_FGREP 26512 26513# A BSD- or MS-compatible name lister. 26514NM=$lt_NM 26515 26516# Whether we need soft or hard links. 26517LN_S=$lt_LN_S 26518 26519# What is the maximum length of a command? 26520max_cmd_len=$max_cmd_len 26521 26522# Object file suffix (normally "o"). 26523objext=$ac_objext 26524 26525# Executable file suffix (normally ""). 26526exeext=$exeext 26527 26528# whether the shell understands "unset". 26529lt_unset=$lt_unset 26530 26531# turn spaces into newlines. 26532SP2NL=$lt_lt_SP2NL 26533 26534# turn newlines into spaces. 26535NL2SP=$lt_lt_NL2SP 26536 26537# convert \$build file names to \$host format. 26538to_host_file_cmd=$lt_cv_to_host_file_cmd 26539 26540# convert \$build files to toolchain format. 26541to_tool_file_cmd=$lt_cv_to_tool_file_cmd 26542 26543# An object symbol dumper. 26544OBJDUMP=$lt_OBJDUMP 26545 26546# Method to check whether dependent libraries are shared objects. 26547deplibs_check_method=$lt_deplibs_check_method 26548 26549# Command to use when deplibs_check_method = "file_magic". 26550file_magic_cmd=$lt_file_magic_cmd 26551 26552# How to find potential files when deplibs_check_method = "file_magic". 26553file_magic_glob=$lt_file_magic_glob 26554 26555# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 26556want_nocaseglob=$lt_want_nocaseglob 26557 26558# DLL creation program. 26559DLLTOOL=$lt_DLLTOOL 26560 26561# Command to associate shared and link libraries. 26562sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 26563 26564# The archiver. 26565AR=$lt_AR 26566 26567# Flags to create an archive. 26568AR_FLAGS=$lt_AR_FLAGS 26569 26570# How to feed a file listing to the archiver. 26571archiver_list_spec=$lt_archiver_list_spec 26572 26573# A symbol stripping program. 26574STRIP=$lt_STRIP 26575 26576# Commands used to install an old-style archive. 26577RANLIB=$lt_RANLIB 26578old_postinstall_cmds=$lt_old_postinstall_cmds 26579old_postuninstall_cmds=$lt_old_postuninstall_cmds 26580 26581# Whether to use a lock for old archive extraction. 26582lock_old_archive_extraction=$lock_old_archive_extraction 26583 26584# A C compiler. 26585LTCC=$lt_CC 26586 26587# LTCC compiler flags. 26588LTCFLAGS=$lt_CFLAGS 26589 26590# Take the output of nm and produce a listing of raw symbols and C names. 26591global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 26592 26593# Transform the output of nm in a proper C declaration. 26594global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 26595 26596# Transform the output of nm in a C name address pair. 26597global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 26598 26599# Transform the output of nm in a C name address pair when lib prefix is needed. 26600global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 26601 26602# Specify filename containing input files for \$NM. 26603nm_file_list_spec=$lt_nm_file_list_spec 26604 26605# The root where to search for dependent libraries,and in which our libraries should be installed. 26606lt_sysroot=$lt_sysroot 26607 26608# The name of the directory that contains temporary libtool files. 26609objdir=$objdir 26610 26611# Used to examine libraries when file_magic_cmd begins with "file". 26612MAGIC_CMD=$MAGIC_CMD 26613 26614# Must we lock files when doing compilation? 26615need_locks=$lt_need_locks 26616 26617# Manifest tool. 26618MANIFEST_TOOL=$lt_MANIFEST_TOOL 26619 26620# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 26621DSYMUTIL=$lt_DSYMUTIL 26622 26623# Tool to change global to local symbols on Mac OS X. 26624NMEDIT=$lt_NMEDIT 26625 26626# Tool to manipulate fat objects and archives on Mac OS X. 26627LIPO=$lt_LIPO 26628 26629# ldd/readelf like tool for Mach-O binaries on Mac OS X. 26630OTOOL=$lt_OTOOL 26631 26632# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 26633OTOOL64=$lt_OTOOL64 26634 26635# Old archive suffix (normally "a"). 26636libext=$libext 26637 26638# Shared library suffix (normally ".so"). 26639shrext_cmds=$lt_shrext_cmds 26640 26641# The commands to extract the exported symbol list from a shared archive. 26642extract_expsyms_cmds=$lt_extract_expsyms_cmds 26643 26644# Variables whose values should be saved in libtool wrapper scripts and 26645# restored at link time. 26646variables_saved_for_relink=$lt_variables_saved_for_relink 26647 26648# Do we need the "lib" prefix for modules? 26649need_lib_prefix=$need_lib_prefix 26650 26651# Do we need a version for libraries? 26652need_version=$need_version 26653 26654# Library versioning type. 26655version_type=$version_type 26656 26657# Shared library runtime path variable. 26658runpath_var=$runpath_var 26659 26660# Shared library path variable. 26661shlibpath_var=$shlibpath_var 26662 26663# Is shlibpath searched before the hard-coded library search path? 26664shlibpath_overrides_runpath=$shlibpath_overrides_runpath 26665 26666# Format of library name prefix. 26667libname_spec=$lt_libname_spec 26668 26669# List of archive names. First name is the real one, the rest are links. 26670# The last name is the one that the linker finds with -lNAME 26671library_names_spec=$lt_library_names_spec 26672 26673# The coded name of the library, if different from the real name. 26674soname_spec=$lt_soname_spec 26675 26676# Permission mode override for installation of shared libraries. 26677install_override_mode=$lt_install_override_mode 26678 26679# Command to use after installation of a shared archive. 26680postinstall_cmds=$lt_postinstall_cmds 26681 26682# Command to use after uninstallation of a shared archive. 26683postuninstall_cmds=$lt_postuninstall_cmds 26684 26685# Commands used to finish a libtool library installation in a directory. 26686finish_cmds=$lt_finish_cmds 26687 26688# As "finish_cmds", except a single script fragment to be evaled but 26689# not shown. 26690finish_eval=$lt_finish_eval 26691 26692# Whether we should hardcode library paths into libraries. 26693hardcode_into_libs=$hardcode_into_libs 26694 26695# Compile-time system search path for libraries. 26696sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 26697 26698# Run-time system search path for libraries. 26699sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 26700 26701# Whether dlopen is supported. 26702dlopen_support=$enable_dlopen 26703 26704# Whether dlopen of programs is supported. 26705dlopen_self=$enable_dlopen_self 26706 26707# Whether dlopen of statically linked programs is supported. 26708dlopen_self_static=$enable_dlopen_self_static 26709 26710# Commands to strip libraries. 26711old_striplib=$lt_old_striplib 26712striplib=$lt_striplib 26713 26714 26715# The linker used to build libraries. 26716LD=$lt_LD 26717 26718# How to create reloadable object files. 26719reload_flag=$lt_reload_flag 26720reload_cmds=$lt_reload_cmds 26721 26722# Commands used to build an old-style archive. 26723old_archive_cmds=$lt_old_archive_cmds 26724 26725# A language specific compiler. 26726CC=$lt_compiler 26727 26728# Is the compiler the GNU compiler? 26729with_gcc=$GCC 26730 26731# Compiler flag to turn off builtin functions. 26732no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 26733 26734# Additional compiler flags for building library objects. 26735pic_flag=$lt_lt_prog_compiler_pic 26736 26737# How to pass a linker flag through the compiler. 26738wl=$lt_lt_prog_compiler_wl 26739 26740# Compiler flag to prevent dynamic linking. 26741link_static_flag=$lt_lt_prog_compiler_static 26742 26743# Does compiler simultaneously support -c and -o options? 26744compiler_c_o=$lt_lt_cv_prog_compiler_c_o 26745 26746# Whether or not to add -lc for building shared libraries. 26747build_libtool_need_lc=$archive_cmds_need_lc 26748 26749# Whether or not to disallow shared libs when runtime libs are static. 26750allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 26751 26752# Compiler flag to allow reflexive dlopens. 26753export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 26754 26755# Compiler flag to generate shared objects directly from archives. 26756whole_archive_flag_spec=$lt_whole_archive_flag_spec 26757 26758# Whether the compiler copes with passing no objects directly. 26759compiler_needs_object=$lt_compiler_needs_object 26760 26761# Create an old-style archive from a shared archive. 26762old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 26763 26764# Create a temporary old-style archive to link instead of a shared archive. 26765old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 26766 26767# Commands used to build a shared archive. 26768archive_cmds=$lt_archive_cmds 26769archive_expsym_cmds=$lt_archive_expsym_cmds 26770 26771# Commands used to build a loadable module if different from building 26772# a shared archive. 26773module_cmds=$lt_module_cmds 26774module_expsym_cmds=$lt_module_expsym_cmds 26775 26776# Whether we are building with GNU ld or not. 26777with_gnu_ld=$lt_with_gnu_ld 26778 26779# Flag that allows shared libraries with undefined symbols to be built. 26780allow_undefined_flag=$lt_allow_undefined_flag 26781 26782# Flag that enforces no undefined symbols. 26783no_undefined_flag=$lt_no_undefined_flag 26784 26785# Flag to hardcode \$libdir into a binary during linking. 26786# This must work even if \$libdir does not exist 26787hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 26788 26789# Whether we need a single "-rpath" flag with a separated argument. 26790hardcode_libdir_separator=$lt_hardcode_libdir_separator 26791 26792# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 26793# DIR into the resulting binary. 26794hardcode_direct=$hardcode_direct 26795 26796# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 26797# DIR into the resulting binary and the resulting library dependency is 26798# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 26799# library is relocated. 26800hardcode_direct_absolute=$hardcode_direct_absolute 26801 26802# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 26803# into the resulting binary. 26804hardcode_minus_L=$hardcode_minus_L 26805 26806# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 26807# into the resulting binary. 26808hardcode_shlibpath_var=$hardcode_shlibpath_var 26809 26810# Set to "yes" if building a shared library automatically hardcodes DIR 26811# into the library and all subsequent libraries and executables linked 26812# against it. 26813hardcode_automatic=$hardcode_automatic 26814 26815# Set to yes if linker adds runtime paths of dependent libraries 26816# to runtime path list. 26817inherit_rpath=$inherit_rpath 26818 26819# Whether libtool must link a program against all its dependency libraries. 26820link_all_deplibs=$link_all_deplibs 26821 26822# Set to "yes" if exported symbols are required. 26823always_export_symbols=$always_export_symbols 26824 26825# The commands to list exported symbols. 26826export_symbols_cmds=$lt_export_symbols_cmds 26827 26828# Symbols that should not be listed in the preloaded symbols. 26829exclude_expsyms=$lt_exclude_expsyms 26830 26831# Symbols that must always be exported. 26832include_expsyms=$lt_include_expsyms 26833 26834# Commands necessary for linking programs (against libraries) with templates. 26835prelink_cmds=$lt_prelink_cmds 26836 26837# Commands necessary for finishing linking programs. 26838postlink_cmds=$lt_postlink_cmds 26839 26840# Specify filename containing input files. 26841file_list_spec=$lt_file_list_spec 26842 26843# How to hardcode a shared library path into an executable. 26844hardcode_action=$hardcode_action 26845 26846# The directories searched by this compiler when creating a shared library. 26847compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 26848 26849# Dependencies to place before and after the objects being linked to 26850# create a shared library. 26851predep_objects=$lt_predep_objects 26852postdep_objects=$lt_postdep_objects 26853predeps=$lt_predeps 26854postdeps=$lt_postdeps 26855 26856# The library search path used internally by the compiler when linking 26857# a shared library. 26858compiler_lib_search_path=$lt_compiler_lib_search_path 26859 26860# ### END LIBTOOL CONFIG 26861 26862_LT_EOF 26863 26864 case $host_os in 26865 aix3*) 26866 cat <<\_LT_EOF >> "$cfgfile" 26867# AIX sometimes has problems with the GCC collect2 program. For some 26868# reason, if we set the COLLECT_NAMES environment variable, the problems 26869# vanish in a puff of smoke. 26870if test "X${COLLECT_NAMES+set}" != Xset; then 26871 COLLECT_NAMES= 26872 export COLLECT_NAMES 26873fi 26874_LT_EOF 26875 ;; 26876 esac 26877 26878 26879ltmain="$ac_aux_dir/ltmain.sh" 26880 26881 26882 # We use sed instead of cat because bash on DJGPP gets confused if 26883 # if finds mixed CR/LF and LF-only lines. Since sed operates in 26884 # text mode, it properly converts lines to CR/LF. This bash problem 26885 # is reportedly fixed, but why not run on old versions too? 26886 sed '$q' "$ltmain" >> "$cfgfile" \ 26887 || (rm -f "$cfgfile"; exit 1) 26888 26889 if test x"$xsi_shell" = xyes; then 26890 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 26891func_dirname ()\ 26892{\ 26893\ case ${1} in\ 26894\ */*) func_dirname_result="${1%/*}${2}" ;;\ 26895\ * ) func_dirname_result="${3}" ;;\ 26896\ esac\ 26897} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 26898 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26899 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26900test 0 -eq $? || _lt_function_replace_fail=: 26901 26902 26903 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 26904func_basename ()\ 26905{\ 26906\ func_basename_result="${1##*/}"\ 26907} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 26908 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26909 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26910test 0 -eq $? || _lt_function_replace_fail=: 26911 26912 26913 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 26914func_dirname_and_basename ()\ 26915{\ 26916\ case ${1} in\ 26917\ */*) func_dirname_result="${1%/*}${2}" ;;\ 26918\ * ) func_dirname_result="${3}" ;;\ 26919\ esac\ 26920\ func_basename_result="${1##*/}"\ 26921} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 26922 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26923 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26924test 0 -eq $? || _lt_function_replace_fail=: 26925 26926 26927 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 26928func_stripname ()\ 26929{\ 26930\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 26931\ # positional parameters, so assign one to ordinary parameter first.\ 26932\ func_stripname_result=${3}\ 26933\ func_stripname_result=${func_stripname_result#"${1}"}\ 26934\ func_stripname_result=${func_stripname_result%"${2}"}\ 26935} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 26936 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26937 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26938test 0 -eq $? || _lt_function_replace_fail=: 26939 26940 26941 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 26942func_split_long_opt ()\ 26943{\ 26944\ func_split_long_opt_name=${1%%=*}\ 26945\ func_split_long_opt_arg=${1#*=}\ 26946} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 26947 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26948 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26949test 0 -eq $? || _lt_function_replace_fail=: 26950 26951 26952 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 26953func_split_short_opt ()\ 26954{\ 26955\ func_split_short_opt_arg=${1#??}\ 26956\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 26957} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 26958 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26959 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26960test 0 -eq $? || _lt_function_replace_fail=: 26961 26962 26963 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 26964func_lo2o ()\ 26965{\ 26966\ case ${1} in\ 26967\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 26968\ *) func_lo2o_result=${1} ;;\ 26969\ esac\ 26970} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 26971 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26972 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26973test 0 -eq $? || _lt_function_replace_fail=: 26974 26975 26976 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 26977func_xform ()\ 26978{\ 26979 func_xform_result=${1%.*}.lo\ 26980} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 26981 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26982 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26983test 0 -eq $? || _lt_function_replace_fail=: 26984 26985 26986 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 26987func_arith ()\ 26988{\ 26989 func_arith_result=$(( $* ))\ 26990} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 26991 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26992 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26993test 0 -eq $? || _lt_function_replace_fail=: 26994 26995 26996 sed -e '/^func_len ()$/,/^} # func_len /c\ 26997func_len ()\ 26998{\ 26999 func_len_result=${#1}\ 27000} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 27001 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27002 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27003test 0 -eq $? || _lt_function_replace_fail=: 27004 27005fi 27006 27007if test x"$lt_shell_append" = xyes; then 27008 sed -e '/^func_append ()$/,/^} # func_append /c\ 27009func_append ()\ 27010{\ 27011 eval "${1}+=\\${2}"\ 27012} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 27013 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27014 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27015test 0 -eq $? || _lt_function_replace_fail=: 27016 27017 27018 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 27019func_append_quoted ()\ 27020{\ 27021\ func_quote_for_eval "${2}"\ 27022\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 27023} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 27024 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27025 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27026test 0 -eq $? || _lt_function_replace_fail=: 27027 27028 27029 # Save a `func_append' function call where possible by direct use of '+=' 27030 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 27031 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27032 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27033 test 0 -eq $? || _lt_function_replace_fail=: 27034else 27035 # Save a `func_append' function call even when '+=' is not available 27036 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 27037 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27038 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27039 test 0 -eq $? || _lt_function_replace_fail=: 27040fi 27041 27042if test x"$_lt_function_replace_fail" = x":"; then 27043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 27044$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 27045fi 27046 27047 27048 mv -f "$cfgfile" "$ofile" || 27049 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 27050 chmod +x "$ofile" 27051 27052 27053 cat <<_LT_EOF >> "$ofile" 27054 27055# ### BEGIN LIBTOOL TAG CONFIG: CXX 27056 27057# The linker used to build libraries. 27058LD=$lt_LD_CXX 27059 27060# How to create reloadable object files. 27061reload_flag=$lt_reload_flag_CXX 27062reload_cmds=$lt_reload_cmds_CXX 27063 27064# Commands used to build an old-style archive. 27065old_archive_cmds=$lt_old_archive_cmds_CXX 27066 27067# A language specific compiler. 27068CC=$lt_compiler_CXX 27069 27070# Is the compiler the GNU compiler? 27071with_gcc=$GCC_CXX 27072 27073# Compiler flag to turn off builtin functions. 27074no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 27075 27076# Additional compiler flags for building library objects. 27077pic_flag=$lt_lt_prog_compiler_pic_CXX 27078 27079# How to pass a linker flag through the compiler. 27080wl=$lt_lt_prog_compiler_wl_CXX 27081 27082# Compiler flag to prevent dynamic linking. 27083link_static_flag=$lt_lt_prog_compiler_static_CXX 27084 27085# Does compiler simultaneously support -c and -o options? 27086compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 27087 27088# Whether or not to add -lc for building shared libraries. 27089build_libtool_need_lc=$archive_cmds_need_lc_CXX 27090 27091# Whether or not to disallow shared libs when runtime libs are static. 27092allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 27093 27094# Compiler flag to allow reflexive dlopens. 27095export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 27096 27097# Compiler flag to generate shared objects directly from archives. 27098whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 27099 27100# Whether the compiler copes with passing no objects directly. 27101compiler_needs_object=$lt_compiler_needs_object_CXX 27102 27103# Create an old-style archive from a shared archive. 27104old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 27105 27106# Create a temporary old-style archive to link instead of a shared archive. 27107old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 27108 27109# Commands used to build a shared archive. 27110archive_cmds=$lt_archive_cmds_CXX 27111archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 27112 27113# Commands used to build a loadable module if different from building 27114# a shared archive. 27115module_cmds=$lt_module_cmds_CXX 27116module_expsym_cmds=$lt_module_expsym_cmds_CXX 27117 27118# Whether we are building with GNU ld or not. 27119with_gnu_ld=$lt_with_gnu_ld_CXX 27120 27121# Flag that allows shared libraries with undefined symbols to be built. 27122allow_undefined_flag=$lt_allow_undefined_flag_CXX 27123 27124# Flag that enforces no undefined symbols. 27125no_undefined_flag=$lt_no_undefined_flag_CXX 27126 27127# Flag to hardcode \$libdir into a binary during linking. 27128# This must work even if \$libdir does not exist 27129hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 27130 27131# Whether we need a single "-rpath" flag with a separated argument. 27132hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 27133 27134# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 27135# DIR into the resulting binary. 27136hardcode_direct=$hardcode_direct_CXX 27137 27138# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 27139# DIR into the resulting binary and the resulting library dependency is 27140# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 27141# library is relocated. 27142hardcode_direct_absolute=$hardcode_direct_absolute_CXX 27143 27144# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 27145# into the resulting binary. 27146hardcode_minus_L=$hardcode_minus_L_CXX 27147 27148# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 27149# into the resulting binary. 27150hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 27151 27152# Set to "yes" if building a shared library automatically hardcodes DIR 27153# into the library and all subsequent libraries and executables linked 27154# against it. 27155hardcode_automatic=$hardcode_automatic_CXX 27156 27157# Set to yes if linker adds runtime paths of dependent libraries 27158# to runtime path list. 27159inherit_rpath=$inherit_rpath_CXX 27160 27161# Whether libtool must link a program against all its dependency libraries. 27162link_all_deplibs=$link_all_deplibs_CXX 27163 27164# Set to "yes" if exported symbols are required. 27165always_export_symbols=$always_export_symbols_CXX 27166 27167# The commands to list exported symbols. 27168export_symbols_cmds=$lt_export_symbols_cmds_CXX 27169 27170# Symbols that should not be listed in the preloaded symbols. 27171exclude_expsyms=$lt_exclude_expsyms_CXX 27172 27173# Symbols that must always be exported. 27174include_expsyms=$lt_include_expsyms_CXX 27175 27176# Commands necessary for linking programs (against libraries) with templates. 27177prelink_cmds=$lt_prelink_cmds_CXX 27178 27179# Commands necessary for finishing linking programs. 27180postlink_cmds=$lt_postlink_cmds_CXX 27181 27182# Specify filename containing input files. 27183file_list_spec=$lt_file_list_spec_CXX 27184 27185# How to hardcode a shared library path into an executable. 27186hardcode_action=$hardcode_action_CXX 27187 27188# The directories searched by this compiler when creating a shared library. 27189compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 27190 27191# Dependencies to place before and after the objects being linked to 27192# create a shared library. 27193predep_objects=$lt_predep_objects_CXX 27194postdep_objects=$lt_postdep_objects_CXX 27195predeps=$lt_predeps_CXX 27196postdeps=$lt_postdeps_CXX 27197 27198# The library search path used internally by the compiler when linking 27199# a shared library. 27200compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 27201 27202# ### END LIBTOOL TAG CONFIG: CXX 27203_LT_EOF 27204 27205 ;; 27206 "hack-libtool":C) 27207 sed 's,^pic_flag=,pic_flag=" -D__DYNAMIC__ ",' libtool > libtoolT \ 27208 && mv -f libtoolT libtool && chmod 755 libtool 27209 ;; 27210 27211 esac 27212done # for ac_tag 27213 27214 27215as_fn_exit 0 27216_ACEOF 27217ac_clean_files=$ac_clean_files_save 27218 27219test $ac_write_fail = 0 || 27220 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 27221 27222 27223# configure is writing to config.log, and then calls config.status. 27224# config.status does its own redirection, appending to config.log. 27225# Unfortunately, on DOS this fails, as config.log is still kept open 27226# by configure, so config.status won't be able to write to it; its 27227# output is simply discarded. So we exec the FD to /dev/null, 27228# effectively closing config.log, so it can be properly (re)opened and 27229# appended to by config.status. When coming back to configure, we 27230# need to make the FD available again. 27231if test "$no_create" != yes; then 27232 ac_cs_success=: 27233 ac_config_status_args= 27234 test "$silent" = yes && 27235 ac_config_status_args="$ac_config_status_args --quiet" 27236 exec 5>/dev/null 27237 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 27238 exec 5>>config.log 27239 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 27240 # would make configure fail if this is the last instruction. 27241 $ac_cs_success || as_fn_exit 1 27242fi 27243if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 27244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 27245$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 27246fi 27247 27248echo "" 27249echo "--" 27250echo "dar and libdar have been successfully configured with the following parameters:" 27251echo "" 27252echo " LIBDAR parameters:" 27253 27254printf " Zlib compression (gzip) : " 27255if [ "$local_libz" = "yes" ] ; then 27256 echo "YES" 27257else 27258 echo "NO" 27259fi 27260 27261printf " Libbz2 compression (bzip2) : " 27262if [ "$local_libbz2" = "yes" ] ; then 27263 echo "YES" 27264else 27265 echo "NO" 27266fi 27267 27268printf " Liblzo2 compression (lzo) : " 27269if [ "$local_liblzo2" = "yes" ] ; then 27270 echo "YES" 27271else 27272 echo "NO" 27273fi 27274 27275printf " Liblxz compression (xz) : " 27276if [ "$local_libxz" = "yes" ] ; then 27277 echo "YES" 27278else 27279 echo "NO" 27280fi 27281 27282printf " Strong encryption support : " 27283if [ "$local_crypto" = "yes" ] ; then 27284 echo "YES" 27285else 27286 echo "NO" 27287fi 27288 27289printf " Public key cipher support : " 27290if [ "$local_gpgme" = "yes" ] ; then 27291 echo "YES" 27292else 27293 echo "NO" 27294fi 27295 27296printf " Extended Attributes support: " 27297if [ "$local_ea_support" = "yes" ] ; then 27298 echo "YES" 27299else 27300 echo "NO" 27301fi 27302 27303printf " Large files support (> 2GB): " 27304if [ ! -z "$ac_cv_sys_file_offset_bits" -o ! -z "$ac_cv_sys_large_files" ] ; then 27305 echo "YES" 27306else 27307 echo "NO" 27308fi 27309 27310printf " extX FSA / nodump support : " 27311if [ "$local_nodump_feature" = "yes" ] ; then 27312 echo "YES" 27313else 27314 echo "NO" 27315fi 27316 27317printf " HFS+ FSA support : " 27318if [ "$local_birthtime" = "yes" ] ; then 27319 echo "YES" 27320else 27321 echo "NO" 27322fi 27323 27324printf " Special allocation scheme : " 27325if [ "$local_special_alloc" = "yes" ] ; then 27326 echo "YES" 27327else 27328 echo "NO" 27329fi 27330 27331printf " Integer size used : " 27332if [ -z "$build_mode" -o \( ! "$build_mode" = "32" -a ! "$build_mode" = "64" \) ] ; then 27333 echo "infinint" 27334else 27335 echo "$build_mode" 27336fi 27337 27338printf " Thread safe support : " 27339if [ "$local_mutex_works" = "yes" -a -z "$local_test_memory" -a "$local_missing_reentrant_libcal" != "yes" ] ; then 27340 echo "YES" 27341else 27342 echo "NO" 27343fi 27344 27345printf " Furtive read mode : " 27346if [ "$local_furtive_read_mode" = "yes" ]; then 27347 echo "YES" 27348else 27349 echo "NO" 27350fi 27351 27352printf " Large directory optim. : " 27353if [ "$local_fast_dir" = "yes" ] ; then 27354 echo "YES" 27355else 27356 echo "NO" 27357fi 27358 27359printf " posix fadvise support : " 27360if [ "$local_posix_fadvise" = "yes" ] ; then 27361 echo "YES" 27362else 27363 echo "NO" 27364fi 27365 27366printf " microsecond read accuracy : " 27367if [ "$local_microsecond_read" = "yes" ] ; then 27368 echo "YES" 27369else 27370 echo "NO" 27371fi 27372 27373printf " microsecond write accuracy : " 27374if [ "$local_microsecond_write" = "yes" ] ; then 27375 echo "YES" 27376else 27377 echo "NO" 27378fi 27379 27380printf " can restore symlink dates : " 27381if [ "$local_lutimes" = "yes" ] ; then 27382 echo "YES" 27383else 27384 echo "NO" 27385fi 27386 27387if [ "$local_threadar" = "yes" ] ; then 27388 echo " will uses multiple threads : YES ( /!\ experimental feature /!\ )" 27389fi 27390 27391# printf " Delta-compression support : " 27392# if [ "$local_librsync" = "yes" ] ; then 27393# echo "YES" 27394# else 27395# echo "NO" 27396# fi 27397 27398echo "" 27399echo " DAR SUITE command line programs:" 27400printf " Long options available : " 27401if [ "$local_have_getopt_long" = "yes" ] ; then 27402 echo "YES" 27403else 27404 echo "NO" 27405fi 27406 27407printf " Building examples : " 27408if [ "$examples" = "yes" ] ; then 27409 echo "YES" 27410else 27411 echo "NO" 27412fi 27413 27414printf " Building dar_static : " 27415if [ "$build_static" = "yes" ]; then 27416 if [ "$static_pb" = "yes" ]; then 27417 echo "NO (system does not support static linking, see note below)" 27418 else 27419 echo "YES" 27420 fi 27421else 27422 echo "NO" 27423fi 27424 27425printf " using upx at install : " 27426if [ "$upx" = "yes" ] ; then 27427 echo "YES" 27428else 27429 echo "NO" 27430fi 27431 27432printf " building documentation : " 27433if [ "$doxygen" = "yes" ] ; then 27434 echo "YES" 27435else 27436 echo "NO" 27437fi 27438 27439if [ "$static_pb" = "yes" -a "$build_static" = "yes" ] ; then 27440 echo "" 27441 echo " Note:" 27442 echo "" 27443 echo " If you want to know which libraries are not available as static" 27444 echo " libraries check the logs in the config.log generated file. the command" 27445 echo "" 27446 echo " 'grep -e -static -A 2 config.log'" 27447 echo "" 27448 echo " should bring you to the essentials." 27449 echo "" 27450 echo "You also might want to speed up the compilation process running ./configure" 27451 echo "with the --disable-static option" 27452 echo "" 27453fi 27454 27455if [ -z "$build_mode" ] ; then 27456 echo "" 27457 echo "--------------------- N O T E -------------------------------------------" 27458 echo "Note: You are about to build a libdar/dar binary relying on \"infinint\"" 27459 echo "integer type. You shall also consider using 64 bits integers (whatever" 27460 echo "your CPU has 32 or 64 bits registers) for better performances and reduced" 27461 echo "memory requirements, at the cost of the limitations explained here:" 27462 echo " ./doc/Limitations.html (Paragraph about Integers)" 27463 echo "Document which is also available online at:" 27464 echo " http://dar.linux.free.fr/doc/Limitations.html#Integers" 27465 echo "Unless you are impacted by these limitations, you can rerun ./configure" 27466 echo "adding the option --enable-mode=64 for dar/libdar better performances" 27467 echo "-------------------------------------------------------------------------" 27468fi 27469 27470if [ "$libgcrypt_hash_bug" = "yes" ] ; then 27471 echo "" 27472 echo "" 27473 echo "#################### W A R N I N G ######################################" 27474 echo "" 27475 echo "libgcrypt version is lower than $min_version_gcrypt_hash_bug and has a bug" 27476 echo "concerning hash calculation for large files. Expect sha1 and md5 hash" 27477 echo "results for slices larger than 256 Gio (gibioctet) to be incorrect." 27478 echo "" 27479 echo "#################### W A R N I N G ######################################" 27480fi 27481 27482echo "" 27483 27484