1#! /bin/sh 2# From configure.ac Id: configure.ac,v 1.208 2010-08-06 21:02:29 chu11 Exp . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.69 for freeipmi 1.6.8. 5# 6# Report bugs to <freeipmi-devel@gnu.org>. 7# 8# 9# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21 emulate sh 22 NULLCMD=: 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24 # is contrary to our usage. Disable this feature. 25 alias -g '${1+"$@"}'='"$@"' 26 setopt NO_GLOB_SUBST 27else 28 case `(set -o) 2>/dev/null` in #( 29 *posix*) : 30 set -o posix ;; #( 31 *) : 32 ;; 33esac 34fi 35 36 37as_nl=' 38' 39export as_nl 40# Printing a long string crashes Solaris 7 /usr/bin/printf. 41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 44# Prefer a ksh shell builtin over an external printf program on Solaris, 45# but without wasting forks for bash or zsh. 46if test -z "$BASH_VERSION$ZSH_VERSION" \ 47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='print -r --' 49 as_echo_n='print -rn --' 50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 51 as_echo='printf %s\n' 52 as_echo_n='printf %s' 53else 54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 56 as_echo_n='/usr/ucb/echo -n' 57 else 58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 59 as_echo_n_body='eval 60 arg=$1; 61 case $arg in #( 62 *"$as_nl"*) 63 expr "X$arg" : "X\\(.*\\)$as_nl"; 64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 65 esac; 66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 67 ' 68 export as_echo_n_body 69 as_echo_n='sh -c $as_echo_n_body as_echo' 70 fi 71 export as_echo_body 72 as_echo='sh -c $as_echo_body as_echo' 73fi 74 75# The user is always right. 76if test "${PATH_SEPARATOR+set}" != set; then 77 PATH_SEPARATOR=: 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 80 PATH_SEPARATOR=';' 81 } 82fi 83 84 85# IFS 86# We need space, tab and new line, in precisely that order. Quoting is 87# there to prevent editors from complaining about space-tab. 88# (If _AS_PATH_WALK were called with IFS unset, it would disable word 89# splitting by setting IFS to empty value.) 90IFS=" "" $as_nl" 91 92# Find who we are. Look in the path if we contain no directory separator. 93as_myself= 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138# Use a proper internal environment variable to ensure we don't fall 139 # into an infinite loop, continuously re-executing ourselves. 140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 141 _as_can_reexec=no; export _as_can_reexec; 142 # We cannot yet assume a decent shell, so we have to provide a 143# neutralization value for shells without unset; and this also 144# works around shells that cannot unset nonexistent variables. 145# Preserve -v and -x to the replacement shell. 146BASH_ENV=/dev/null 147ENV=/dev/null 148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 149case $- in # (((( 150 *v*x* | *x*v* ) as_opts=-vx ;; 151 *v* ) as_opts=-v ;; 152 *x* ) as_opts=-x ;; 153 * ) as_opts= ;; 154esac 155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 156# Admittedly, this is quite paranoid, since all the known shells bail 157# out after a failed `exec'. 158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 159as_fn_exit 255 160 fi 161 # We don't want this to propagate to other subprocesses. 162 { _as_can_reexec=; unset _as_can_reexec;} 163if test "x$CONFIG_SHELL" = x; then 164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 165 emulate sh 166 NULLCMD=: 167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 168 # is contrary to our usage. Disable this feature. 169 alias -g '\${1+\"\$@\"}'='\"\$@\"' 170 setopt NO_GLOB_SUBST 171else 172 case \`(set -o) 2>/dev/null\` in #( 173 *posix*) : 174 set -o posix ;; #( 175 *) : 176 ;; 177esac 178fi 179" 180 as_required="as_fn_return () { (exit \$1); } 181as_fn_success () { as_fn_return 0; } 182as_fn_failure () { as_fn_return 1; } 183as_fn_ret_success () { return 0; } 184as_fn_ret_failure () { return 1; } 185 186exitcode=0 187as_fn_success || { exitcode=1; echo as_fn_success failed.; } 188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 192 193else 194 exitcode=1; echo positional parameters were not saved. 195fi 196test x\$exitcode = x0 || exit 1 197test -x / || exit 1" 198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || 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 210test \$(( 1 + 1 )) = 2 || exit 1" 211 if (eval "$as_required") 2>/dev/null; then : 212 as_have_required=yes 213else 214 as_have_required=no 215fi 216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 217 218else 219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 220as_found=false 221for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 222do 223 IFS=$as_save_IFS 224 test -z "$as_dir" && as_dir=. 225 as_found=: 226 case $as_dir in #( 227 /*) 228 for as_base in sh bash ksh sh5; do 229 # Try only shells that exist, to save several forks. 230 as_shell=$as_dir/$as_base 231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 233 CONFIG_SHELL=$as_shell as_have_required=yes 234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 235 break 2 236fi 237fi 238 done;; 239 esac 240 as_found=false 241done 242$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245fi; } 246IFS=$as_save_IFS 247 248 249 if test "x$CONFIG_SHELL" != x; then : 250 export CONFIG_SHELL 251 # We cannot yet assume a decent shell, so we have to provide a 252# neutralization value for shells without unset; and this also 253# works around shells that cannot unset nonexistent variables. 254# Preserve -v and -x to the replacement shell. 255BASH_ENV=/dev/null 256ENV=/dev/null 257(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 258case $- in # (((( 259 *v*x* | *x*v* ) as_opts=-vx ;; 260 *v* ) as_opts=-v ;; 261 *x* ) as_opts=-x ;; 262 * ) as_opts= ;; 263esac 264exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 265# Admittedly, this is quite paranoid, since all the known shells bail 266# out after a failed `exec'. 267$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 268exit 255 269fi 270 271 if test x$as_have_required = xno; then : 272 $as_echo "$0: This script requires a shell more modern than all" 273 $as_echo "$0: the shells that I found on your system." 274 if test x${ZSH_VERSION+set} = xset ; then 275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 $as_echo "$0: Please tell bug-autoconf@gnu.org and 279$0: freeipmi-devel@gnu.org about your system, including any 280$0: error possibly output before this message. Then install 281$0: a modern shell, or manually run the script under such a 282$0: shell if you do 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='freeipmi' 593PACKAGE_TARNAME='freeipmi' 594PACKAGE_VERSION='1.6.8' 595PACKAGE_STRING='freeipmi 1.6.8' 596PACKAGE_BUGREPORT='freeipmi-devel@gnu.org' 597PACKAGE_URL='' 598 599ac_unique_file="ChangeLog.0" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_header_list= 637ac_subst_vars='am__EXEEXT_FALSE 638am__EXEEXT_TRUE 639LTLIBOBJS 640LIBOBJS 641pkgconfigdir 642WITH_PKG_CONFIG_FALSE 643WITH_PKG_CONFIG_TRUE 644LIBIPMICONSOLE_CONFIG_FILE_DEFAULT 645IPMISELD_CACHE_DIRECTORY 646IPMISELD_CONFIG_FILE_DEFAULT 647IPMIDETECTD_CONFIG_FILE_DEFAULT 648IPMIDETECT_CONFIG_FILE_DEFAULT 649INTERPRET_SEL_CONFIG_FILE_DEFAULT 650INTERPRET_SENSOR_CONFIG_FILE_DEFAULT 651IPMICONSOLE_CONFIG_FILE_LEGACY 652IPMIPOWER_CONFIG_FILE_LEGACY 653IPMI_MONITORING_SENSOR_CONFIG_FILE_LEGACY 654IPMI_MONITORING_SDR_CACHE_DIR 655FREEIPMI_CONFIG_FILE_DEFAULT 656FREEIPMI_SYSCONFDIR 657PTHREAD_CFLAGS 658PTHREAD_LIBS 659PTHREAD_CC 660WITH_FREEIPMI_ARGP_FALSE 661WITH_FREEIPMI_ARGP_TRUE 662ALLOCA 663GCRYPT_LIBS 664INSTALL_IPMISDRCACHEDIR 665HAVE_SYSTEMD_FALSE 666HAVE_SYSTEMD_TRUE 667systemdsystemunitdir 668PKG_CONFIG_LIBDIR 669PKG_CONFIG_PATH 670PKG_CONFIG 671UNINSTALL_DAEMON_SCRIPTS 672INSTALL_DAEMON_SCRIPTS 673WITH_DEBUG 674WITH_GNU_LD_FALSE 675WITH_GNU_LD_TRUE 676CPP_FOR_BUILD 677CPP 678OTOOL64 679OTOOL 680LIPO 681NMEDIT 682DSYMUTIL 683MANIFEST_TOOL 684RANLIB 685ac_ct_AR 686AR 687DLLTOOL 688OBJDUMP 689LN_S 690NM 691ac_ct_DUMPBIN 692DUMPBIN 693LD 694FGREP 695EGREP 696GREP 697SED 698LIBTOOL 699am__fastdepCC_FALSE 700am__fastdepCC_TRUE 701CCDEPMODE 702am__nodep 703AMDEPBACKSLASH 704AMDEP_FALSE 705AMDEP_TRUE 706am__quote 707am__include 708DEPDIR 709OBJEXT 710EXEEXT 711ac_ct_CC 712CPPFLAGS 713LDFLAGS 714CFLAGS 715CC 716host_os 717host_vendor 718host_cpu 719host 720build_os 721build_vendor 722build_cpu 723build 724LIBIPMIDETECT_VERSION_PATCH 725LIBIPMIDETECT_VERSION_MINOR 726LIBIPMIDETECT_VERSION_MAJOR 727LIBIPMIDETECT_VERSION_INFO 728LIBIPMIMONITORING_VERSION_PATCH 729LIBIPMIMONITORING_VERSION_MINOR 730LIBIPMIMONITORING_VERSION_MAJOR 731LIBIPMIMONITORING_VERSION_INFO 732LIBIPMICONSOLE_VERSION_PATCH 733LIBIPMICONSOLE_VERSION_MINOR 734LIBIPMICONSOLE_VERSION_MAJOR 735LIBIPMICONSOLE_VERSION_INFO 736LIBFREEIPMI_VERSION_PATCH 737LIBFREEIPMI_VERSION_MINOR 738LIBFREEIPMI_VERSION_MAJOR 739LIBFREEIPMI_VERSION_INFO 740LIBFREEIPMI_VERSION 741ISODATE 742X_MANDIR 743X_INFODIR 744X_OLDINCLUDEDIR 745X_INCLUDEDIR 746X_LIBDIR 747X_LOCALSTATEDIR 748X_SHAREDSTATEDIR 749X_SYSCONFDIR 750X_DATADIR 751X_LIBEXECDIR 752X_SBINDIR 753X_BINDIR 754X_EXEC_PREFIX 755X_PREFIX 756AM_BACKSLASH 757AM_DEFAULT_VERBOSITY 758AM_DEFAULT_V 759AM_V 760am__untar 761am__tar 762AMTAR 763am__leading_dot 764SET_MAKE 765AWK 766mkdir_p 767MKDIR_P 768INSTALL_STRIP_PROGRAM 769STRIP 770install_sh 771MAKEINFO 772AUTOHEADER 773AUTOMAKE 774AUTOCONF 775ACLOCAL 776VERSION 777PACKAGE 778CYGPATH_W 779am__isrc 780INSTALL_DATA 781INSTALL_SCRIPT 782INSTALL_PROGRAM 783FREEIPMI_PACKAGE_VERSION_PATCH 784FREEIPMI_PACKAGE_VERSION_MINOR 785FREEIPMI_PACKAGE_VERSION_MAJOR 786target_alias 787host_alias 788build_alias 789LIBS 790ECHO_T 791ECHO_N 792ECHO_C 793DEFS 794mandir 795localedir 796libdir 797psdir 798pdfdir 799dvidir 800htmldir 801infodir 802docdir 803oldincludedir 804includedir 805localstatedir 806sharedstatedir 807sysconfdir 808datadir 809datarootdir 810libexecdir 811sbindir 812bindir 813program_transform_name 814prefix 815exec_prefix 816PACKAGE_URL 817PACKAGE_BUGREPORT 818PACKAGE_STRING 819PACKAGE_VERSION 820PACKAGE_TARNAME 821PACKAGE_NAME 822PATH_SEPARATOR 823SHELL' 824ac_subst_files='' 825ac_user_opts=' 826enable_option_checking 827enable_silent_rules 828enable_dependency_tracking 829enable_shared 830enable_static 831with_pic 832enable_fast_install 833with_gnu_ld 834with_sysroot 835enable_libtool_lock 836enable_trace 837enable_profiling 838enable_debug 839enable_rawdumps 840enable_init_scripts 841with_systemdsystemunitdir 842enable_ipmisdrcachedir 843with_encryption 844with_ipmi_monitoring_sdr_cache_dir 845with_ipmiseld_cache_dir 846with_dont_check_for_root 847with_random_device 848with_pkgconfig_dir 849' 850 ac_precious_vars='build_alias 851host_alias 852target_alias 853CC 854CFLAGS 855LDFLAGS 856LIBS 857CPPFLAGS 858CPP 859PKG_CONFIG 860PKG_CONFIG_PATH 861PKG_CONFIG_LIBDIR' 862 863 864# Initialize some variables set by options. 865ac_init_help= 866ac_init_version=false 867ac_unrecognized_opts= 868ac_unrecognized_sep= 869# The variables have the same names as the options, with 870# dashes changed to underlines. 871cache_file=/dev/null 872exec_prefix=NONE 873no_create= 874no_recursion= 875prefix=NONE 876program_prefix=NONE 877program_suffix=NONE 878program_transform_name=s,x,x, 879silent= 880site= 881srcdir= 882verbose= 883x_includes=NONE 884x_libraries=NONE 885 886# Installation directory options. 887# These are left unexpanded so users can "make install exec_prefix=/foo" 888# and all the variables that are supposed to be based on exec_prefix 889# by default will actually change. 890# Use braces instead of parens because sh, perl, etc. also accept them. 891# (The list follows the same order as the GNU Coding Standards.) 892bindir='${exec_prefix}/bin' 893sbindir='${exec_prefix}/sbin' 894libexecdir='${exec_prefix}/libexec' 895datarootdir='${prefix}/share' 896datadir='${datarootdir}' 897sysconfdir='${prefix}/etc' 898sharedstatedir='${prefix}/com' 899localstatedir='${prefix}/var' 900includedir='${prefix}/include' 901oldincludedir='/usr/include' 902docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 903infodir='${datarootdir}/info' 904htmldir='${docdir}' 905dvidir='${docdir}' 906pdfdir='${docdir}' 907psdir='${docdir}' 908libdir='${exec_prefix}/lib' 909localedir='${datarootdir}/locale' 910mandir='${datarootdir}/man' 911 912ac_prev= 913ac_dashdash= 914for ac_option 915do 916 # If the previous option needs an argument, assign it. 917 if test -n "$ac_prev"; then 918 eval $ac_prev=\$ac_option 919 ac_prev= 920 continue 921 fi 922 923 case $ac_option in 924 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 925 *=) ac_optarg= ;; 926 *) ac_optarg=yes ;; 927 esac 928 929 # Accept the important Cygnus configure options, so we can diagnose typos. 930 931 case $ac_dashdash$ac_option in 932 --) 933 ac_dashdash=yes ;; 934 935 -bindir | --bindir | --bindi | --bind | --bin | --bi) 936 ac_prev=bindir ;; 937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 938 bindir=$ac_optarg ;; 939 940 -build | --build | --buil | --bui | --bu) 941 ac_prev=build_alias ;; 942 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 943 build_alias=$ac_optarg ;; 944 945 -cache-file | --cache-file | --cache-fil | --cache-fi \ 946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 947 ac_prev=cache_file ;; 948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 950 cache_file=$ac_optarg ;; 951 952 --config-cache | -C) 953 cache_file=config.cache ;; 954 955 -datadir | --datadir | --datadi | --datad) 956 ac_prev=datadir ;; 957 -datadir=* | --datadir=* | --datadi=* | --datad=*) 958 datadir=$ac_optarg ;; 959 960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 961 | --dataroo | --dataro | --datar) 962 ac_prev=datarootdir ;; 963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 965 datarootdir=$ac_optarg ;; 966 967 -disable-* | --disable-*) 968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 969 # Reject names that are not valid shell variable names. 970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 971 as_fn_error $? "invalid feature name: $ac_useropt" 972 ac_useropt_orig=$ac_useropt 973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 974 case $ac_user_opts in 975 *" 976"enable_$ac_useropt" 977"*) ;; 978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 979 ac_unrecognized_sep=', ';; 980 esac 981 eval enable_$ac_useropt=no ;; 982 983 -docdir | --docdir | --docdi | --doc | --do) 984 ac_prev=docdir ;; 985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 986 docdir=$ac_optarg ;; 987 988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 989 ac_prev=dvidir ;; 990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 991 dvidir=$ac_optarg ;; 992 993 -enable-* | --enable-*) 994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 995 # Reject names that are not valid shell variable names. 996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 997 as_fn_error $? "invalid feature name: $ac_useropt" 998 ac_useropt_orig=$ac_useropt 999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1000 case $ac_user_opts in 1001 *" 1002"enable_$ac_useropt" 1003"*) ;; 1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1005 ac_unrecognized_sep=', ';; 1006 esac 1007 eval enable_$ac_useropt=\$ac_optarg ;; 1008 1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1011 | --exec | --exe | --ex) 1012 ac_prev=exec_prefix ;; 1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1015 | --exec=* | --exe=* | --ex=*) 1016 exec_prefix=$ac_optarg ;; 1017 1018 -gas | --gas | --ga | --g) 1019 # Obsolete; use --with-gas. 1020 with_gas=yes ;; 1021 1022 -help | --help | --hel | --he | -h) 1023 ac_init_help=long ;; 1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1025 ac_init_help=recursive ;; 1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1027 ac_init_help=short ;; 1028 1029 -host | --host | --hos | --ho) 1030 ac_prev=host_alias ;; 1031 -host=* | --host=* | --hos=* | --ho=*) 1032 host_alias=$ac_optarg ;; 1033 1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1035 ac_prev=htmldir ;; 1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1037 | --ht=*) 1038 htmldir=$ac_optarg ;; 1039 1040 -includedir | --includedir | --includedi | --included | --include \ 1041 | --includ | --inclu | --incl | --inc) 1042 ac_prev=includedir ;; 1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1044 | --includ=* | --inclu=* | --incl=* | --inc=*) 1045 includedir=$ac_optarg ;; 1046 1047 -infodir | --infodir | --infodi | --infod | --info | --inf) 1048 ac_prev=infodir ;; 1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1050 infodir=$ac_optarg ;; 1051 1052 -libdir | --libdir | --libdi | --libd) 1053 ac_prev=libdir ;; 1054 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1055 libdir=$ac_optarg ;; 1056 1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1058 | --libexe | --libex | --libe) 1059 ac_prev=libexecdir ;; 1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1061 | --libexe=* | --libex=* | --libe=*) 1062 libexecdir=$ac_optarg ;; 1063 1064 -localedir | --localedir | --localedi | --localed | --locale) 1065 ac_prev=localedir ;; 1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1067 localedir=$ac_optarg ;; 1068 1069 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1070 | --localstate | --localstat | --localsta | --localst | --locals) 1071 ac_prev=localstatedir ;; 1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1074 localstatedir=$ac_optarg ;; 1075 1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1077 ac_prev=mandir ;; 1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1079 mandir=$ac_optarg ;; 1080 1081 -nfp | --nfp | --nf) 1082 # Obsolete; use --without-fp. 1083 with_fp=no ;; 1084 1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1086 | --no-cr | --no-c | -n) 1087 no_create=yes ;; 1088 1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1091 no_recursion=yes ;; 1092 1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1095 | --oldin | --oldi | --old | --ol | --o) 1096 ac_prev=oldincludedir ;; 1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1100 oldincludedir=$ac_optarg ;; 1101 1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1103 ac_prev=prefix ;; 1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1105 prefix=$ac_optarg ;; 1106 1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1108 | --program-pre | --program-pr | --program-p) 1109 ac_prev=program_prefix ;; 1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1112 program_prefix=$ac_optarg ;; 1113 1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1115 | --program-suf | --program-su | --program-s) 1116 ac_prev=program_suffix ;; 1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1119 program_suffix=$ac_optarg ;; 1120 1121 -program-transform-name | --program-transform-name \ 1122 | --program-transform-nam | --program-transform-na \ 1123 | --program-transform-n | --program-transform- \ 1124 | --program-transform | --program-transfor \ 1125 | --program-transfo | --program-transf \ 1126 | --program-trans | --program-tran \ 1127 | --progr-tra | --program-tr | --program-t) 1128 ac_prev=program_transform_name ;; 1129 -program-transform-name=* | --program-transform-name=* \ 1130 | --program-transform-nam=* | --program-transform-na=* \ 1131 | --program-transform-n=* | --program-transform-=* \ 1132 | --program-transform=* | --program-transfor=* \ 1133 | --program-transfo=* | --program-transf=* \ 1134 | --program-trans=* | --program-tran=* \ 1135 | --progr-tra=* | --program-tr=* | --program-t=*) 1136 program_transform_name=$ac_optarg ;; 1137 1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1139 ac_prev=pdfdir ;; 1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1141 pdfdir=$ac_optarg ;; 1142 1143 -psdir | --psdir | --psdi | --psd | --ps) 1144 ac_prev=psdir ;; 1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1146 psdir=$ac_optarg ;; 1147 1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1149 | -silent | --silent | --silen | --sile | --sil) 1150 silent=yes ;; 1151 1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1153 ac_prev=sbindir ;; 1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1155 | --sbi=* | --sb=*) 1156 sbindir=$ac_optarg ;; 1157 1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1160 | --sharedst | --shareds | --shared | --share | --shar \ 1161 | --sha | --sh) 1162 ac_prev=sharedstatedir ;; 1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1166 | --sha=* | --sh=*) 1167 sharedstatedir=$ac_optarg ;; 1168 1169 -site | --site | --sit) 1170 ac_prev=site ;; 1171 -site=* | --site=* | --sit=*) 1172 site=$ac_optarg ;; 1173 1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1175 ac_prev=srcdir ;; 1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1177 srcdir=$ac_optarg ;; 1178 1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1180 | --syscon | --sysco | --sysc | --sys | --sy) 1181 ac_prev=sysconfdir ;; 1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1184 sysconfdir=$ac_optarg ;; 1185 1186 -target | --target | --targe | --targ | --tar | --ta | --t) 1187 ac_prev=target_alias ;; 1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1189 target_alias=$ac_optarg ;; 1190 1191 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1192 verbose=yes ;; 1193 1194 -version | --version | --versio | --versi | --vers | -V) 1195 ac_init_version=: ;; 1196 1197 -with-* | --with-*) 1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1199 # Reject names that are not valid shell variable names. 1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1201 as_fn_error $? "invalid package name: $ac_useropt" 1202 ac_useropt_orig=$ac_useropt 1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1204 case $ac_user_opts in 1205 *" 1206"with_$ac_useropt" 1207"*) ;; 1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1209 ac_unrecognized_sep=', ';; 1210 esac 1211 eval with_$ac_useropt=\$ac_optarg ;; 1212 1213 -without-* | --without-*) 1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1215 # Reject names that are not valid shell variable names. 1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1217 as_fn_error $? "invalid package name: $ac_useropt" 1218 ac_useropt_orig=$ac_useropt 1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1220 case $ac_user_opts in 1221 *" 1222"with_$ac_useropt" 1223"*) ;; 1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1225 ac_unrecognized_sep=', ';; 1226 esac 1227 eval with_$ac_useropt=no ;; 1228 1229 --x) 1230 # Obsolete; use --with-x. 1231 with_x=yes ;; 1232 1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1234 | --x-incl | --x-inc | --x-in | --x-i) 1235 ac_prev=x_includes ;; 1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1238 x_includes=$ac_optarg ;; 1239 1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1242 ac_prev=x_libraries ;; 1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1245 x_libraries=$ac_optarg ;; 1246 1247 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1248Try \`$0 --help' for more information" 1249 ;; 1250 1251 *=*) 1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1253 # Reject names that are not valid shell variable names. 1254 case $ac_envvar in #( 1255 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1256 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1257 esac 1258 eval $ac_envvar=\$ac_optarg 1259 export $ac_envvar ;; 1260 1261 *) 1262 # FIXME: should be removed in autoconf 3.0. 1263 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1265 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1266 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1267 ;; 1268 1269 esac 1270done 1271 1272if test -n "$ac_prev"; then 1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1274 as_fn_error $? "missing argument to $ac_option" 1275fi 1276 1277if test -n "$ac_unrecognized_opts"; then 1278 case $enable_option_checking in 1279 no) ;; 1280 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1281 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1282 esac 1283fi 1284 1285# Check all directory arguments for consistency. 1286for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1287 datadir sysconfdir sharedstatedir localstatedir includedir \ 1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1289 libdir localedir mandir 1290do 1291 eval ac_val=\$$ac_var 1292 # Remove trailing slashes. 1293 case $ac_val in 1294 */ ) 1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1296 eval $ac_var=\$ac_val;; 1297 esac 1298 # Be sure to have absolute directory names. 1299 case $ac_val in 1300 [\\/$]* | ?:[\\/]* ) continue;; 1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1302 esac 1303 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1304done 1305 1306# There might be people who depend on the old broken behavior: `$host' 1307# used to hold the argument of --host etc. 1308# FIXME: To remove some day. 1309build=$build_alias 1310host=$host_alias 1311target=$target_alias 1312 1313# FIXME: To remove some day. 1314if test "x$host_alias" != x; then 1315 if test "x$build_alias" = x; then 1316 cross_compiling=maybe 1317 elif test "x$build_alias" != "x$host_alias"; then 1318 cross_compiling=yes 1319 fi 1320fi 1321 1322ac_tool_prefix= 1323test -n "$host_alias" && ac_tool_prefix=$host_alias- 1324 1325test "$silent" = yes && exec 6>/dev/null 1326 1327 1328ac_pwd=`pwd` && test -n "$ac_pwd" && 1329ac_ls_di=`ls -di .` && 1330ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1331 as_fn_error $? "working directory cannot be determined" 1332test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1333 as_fn_error $? "pwd does not report name of working directory" 1334 1335 1336# Find the source files, if location was not specified. 1337if test -z "$srcdir"; then 1338 ac_srcdir_defaulted=yes 1339 # Try the directory containing this script, then the parent directory. 1340 ac_confdir=`$as_dirname -- "$as_myself" || 1341$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1342 X"$as_myself" : 'X\(//\)[^/]' \| \ 1343 X"$as_myself" : 'X\(//\)$' \| \ 1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1345$as_echo X"$as_myself" | 1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1347 s//\1/ 1348 q 1349 } 1350 /^X\(\/\/\)[^/].*/{ 1351 s//\1/ 1352 q 1353 } 1354 /^X\(\/\/\)$/{ 1355 s//\1/ 1356 q 1357 } 1358 /^X\(\/\).*/{ 1359 s//\1/ 1360 q 1361 } 1362 s/.*/./; q'` 1363 srcdir=$ac_confdir 1364 if test ! -r "$srcdir/$ac_unique_file"; then 1365 srcdir=.. 1366 fi 1367else 1368 ac_srcdir_defaulted=no 1369fi 1370if test ! -r "$srcdir/$ac_unique_file"; then 1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1372 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1373fi 1374ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1375ac_abs_confdir=`( 1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1377 pwd)` 1378# When building in place, set srcdir=. 1379if test "$ac_abs_confdir" = "$ac_pwd"; then 1380 srcdir=. 1381fi 1382# Remove unnecessary trailing slashes from srcdir. 1383# Double slashes in file names in object file debugging info 1384# mess up M-x gdb in Emacs. 1385case $srcdir in 1386*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1387esac 1388for ac_var in $ac_precious_vars; do 1389 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1390 eval ac_env_${ac_var}_value=\$${ac_var} 1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1392 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1393done 1394 1395# 1396# Report the --help message. 1397# 1398if test "$ac_init_help" = "long"; then 1399 # Omit some internal or obsolete options to make the list less imposing. 1400 # This message is too long to be a string in the A/UX 3.1 sh. 1401 cat <<_ACEOF 1402\`configure' configures freeipmi 1.6.8 to adapt to many kinds of systems. 1403 1404Usage: $0 [OPTION]... [VAR=VALUE]... 1405 1406To assign environment variables (e.g., CC, CFLAGS...), specify them as 1407VAR=VALUE. See below for descriptions of some of the useful variables. 1408 1409Defaults for the options are specified in brackets. 1410 1411Configuration: 1412 -h, --help display this help and exit 1413 --help=short display options specific to this package 1414 --help=recursive display the short help of all the included packages 1415 -V, --version display version information and exit 1416 -q, --quiet, --silent do not print \`checking ...' messages 1417 --cache-file=FILE cache test results in FILE [disabled] 1418 -C, --config-cache alias for \`--cache-file=config.cache' 1419 -n, --no-create do not create output files 1420 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1421 1422Installation directories: 1423 --prefix=PREFIX install architecture-independent files in PREFIX 1424 [$ac_default_prefix] 1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1426 [PREFIX] 1427 1428By default, \`make install' will install all the files in 1429\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1430an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1431for instance \`--prefix=\$HOME'. 1432 1433For better control, use the options below. 1434 1435Fine tuning of the installation directories: 1436 --bindir=DIR user executables [EPREFIX/bin] 1437 --sbindir=DIR system admin executables [EPREFIX/sbin] 1438 --libexecdir=DIR program executables [EPREFIX/libexec] 1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1442 --libdir=DIR object code libraries [EPREFIX/lib] 1443 --includedir=DIR C header files [PREFIX/include] 1444 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1447 --infodir=DIR info documentation [DATAROOTDIR/info] 1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1449 --mandir=DIR man documentation [DATAROOTDIR/man] 1450 --docdir=DIR documentation root [DATAROOTDIR/doc/freeipmi] 1451 --htmldir=DIR html documentation [DOCDIR] 1452 --dvidir=DIR dvi documentation [DOCDIR] 1453 --pdfdir=DIR pdf documentation [DOCDIR] 1454 --psdir=DIR ps documentation [DOCDIR] 1455_ACEOF 1456 1457 cat <<\_ACEOF 1458 1459Program names: 1460 --program-prefix=PREFIX prepend PREFIX to installed program names 1461 --program-suffix=SUFFIX append SUFFIX to installed program names 1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1463 1464System types: 1465 --build=BUILD configure for building on BUILD [guessed] 1466 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1467_ACEOF 1468fi 1469 1470if test -n "$ac_init_help"; then 1471 case $ac_init_help in 1472 short | recursive ) echo "Configuration of freeipmi 1.6.8:";; 1473 esac 1474 cat <<\_ACEOF 1475 1476Optional Features: 1477 --disable-option-checking ignore unrecognized --enable/--with options 1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1480 --enable-silent-rules less verbose build output (undo: "make V=1") 1481 --disable-silent-rules verbose build output (undo: "make V=0") 1482 --enable-dependency-tracking 1483 do not reject slow dependency extractors 1484 --disable-dependency-tracking 1485 speeds up one-time build 1486 --enable-shared[=PKGS] build shared libraries [default=yes] 1487 --enable-static[=PKGS] build static libraries [default=yes] 1488 --enable-fast-install[=PKGS] 1489 optimize for fast installation [default=yes] 1490 --disable-libtool-lock avoid locking (might break parallel builds) 1491 --enable-trace turn on error tracing 1492 --enable-profiling turn on profiling 1493 --enable-debug turn on debugging 1494 --enable-rawdumps output raw packet dumps when debugging 1495 --disable-init-scripts don\'t install init.d startup scripts 1496 --disable-ipmisdrcachedir 1497 don\'t create ipmi sdr cache directory 1498 1499Optional Packages: 1500 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1501 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1502 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1503 both] 1504 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1505 --with-sysroot=DIR Search for dependent libraries within DIR 1506 (or the compiler's sysroot if not specified). 1507 --with-systemdsystemunitdir=DIR 1508 Directory for systemd service files 1509 --without-encryption don\'t support encryption 1510 --with-ipmi-monitoring-sdr-cache-dir=PATH 1511 Specify default ipmi_monitoring sdr cache dir path 1512 --with-ipmiseld-cache-dir=PATH 1513 Specify default ipmiseld cache dir path 1514 --with-dont-check-for-root 1515 don't check for root before executing in-band IPMI 1516 communication 1517 --without-random-device don't support random devices like /dev/urandom 1518 --with-pkgconfig-dir=PATH 1519 where to install pkg-config *.pc files 1520 (EPREFIX/lib/pkgconfig) 1521 1522Some influential environment variables: 1523 CC C compiler command 1524 CFLAGS C compiler flags 1525 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1526 nonstandard directory <lib dir> 1527 LIBS libraries to pass to the linker, e.g. -l<library> 1528 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1529 you have headers in a nonstandard directory <include dir> 1530 CPP C preprocessor 1531 PKG_CONFIG path to pkg-config utility 1532 PKG_CONFIG_PATH 1533 directories to add to pkg-config's search path 1534 PKG_CONFIG_LIBDIR 1535 path overriding pkg-config's built-in search path 1536 1537Use these variables to override the choices made by `configure' or to help 1538it to find libraries and programs with nonstandard names/locations. 1539 1540Report bugs to <freeipmi-devel@gnu.org>. 1541_ACEOF 1542ac_status=$? 1543fi 1544 1545if test "$ac_init_help" = "recursive"; then 1546 # If there are subdirs, report their specific --help. 1547 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1548 test -d "$ac_dir" || 1549 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1550 continue 1551 ac_builddir=. 1552 1553case "$ac_dir" in 1554.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1555*) 1556 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1557 # A ".." for each directory in $ac_dir_suffix. 1558 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1559 case $ac_top_builddir_sub in 1560 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1561 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1562 esac ;; 1563esac 1564ac_abs_top_builddir=$ac_pwd 1565ac_abs_builddir=$ac_pwd$ac_dir_suffix 1566# for backward compatibility: 1567ac_top_builddir=$ac_top_build_prefix 1568 1569case $srcdir in 1570 .) # We are building in place. 1571 ac_srcdir=. 1572 ac_top_srcdir=$ac_top_builddir_sub 1573 ac_abs_top_srcdir=$ac_pwd ;; 1574 [\\/]* | ?:[\\/]* ) # Absolute name. 1575 ac_srcdir=$srcdir$ac_dir_suffix; 1576 ac_top_srcdir=$srcdir 1577 ac_abs_top_srcdir=$srcdir ;; 1578 *) # Relative name. 1579 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1580 ac_top_srcdir=$ac_top_build_prefix$srcdir 1581 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1582esac 1583ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1584 1585 cd "$ac_dir" || { ac_status=$?; continue; } 1586 # Check for guested configure. 1587 if test -f "$ac_srcdir/configure.gnu"; then 1588 echo && 1589 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1590 elif test -f "$ac_srcdir/configure"; then 1591 echo && 1592 $SHELL "$ac_srcdir/configure" --help=recursive 1593 else 1594 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1595 fi || ac_status=$? 1596 cd "$ac_pwd" || { ac_status=$?; break; } 1597 done 1598fi 1599 1600test -n "$ac_init_help" && exit $ac_status 1601if $ac_init_version; then 1602 cat <<\_ACEOF 1603freeipmi configure 1.6.8 1604generated by GNU Autoconf 2.69 1605 1606Copyright (C) 2012 Free Software Foundation, Inc. 1607This configure script is free software; the Free Software Foundation 1608gives unlimited permission to copy, distribute and modify it. 1609_ACEOF 1610 exit 1611fi 1612 1613## ------------------------ ## 1614## Autoconf initialization. ## 1615## ------------------------ ## 1616 1617# ac_fn_c_try_compile LINENO 1618# -------------------------- 1619# Try to compile conftest.$ac_ext, and return whether this succeeded. 1620ac_fn_c_try_compile () 1621{ 1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1623 rm -f conftest.$ac_objext 1624 if { { ac_try="$ac_compile" 1625case "(($ac_try" in 1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1627 *) ac_try_echo=$ac_try;; 1628esac 1629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1630$as_echo "$ac_try_echo"; } >&5 1631 (eval "$ac_compile") 2>conftest.err 1632 ac_status=$? 1633 if test -s conftest.err; then 1634 grep -v '^ *+' conftest.err >conftest.er1 1635 cat conftest.er1 >&5 1636 mv -f conftest.er1 conftest.err 1637 fi 1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1639 test $ac_status = 0; } && { 1640 test -z "$ac_c_werror_flag" || 1641 test ! -s conftest.err 1642 } && test -s conftest.$ac_objext; then : 1643 ac_retval=0 1644else 1645 $as_echo "$as_me: failed program was:" >&5 1646sed 's/^/| /' conftest.$ac_ext >&5 1647 1648 ac_retval=1 1649fi 1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1651 as_fn_set_status $ac_retval 1652 1653} # ac_fn_c_try_compile 1654 1655# ac_fn_c_try_link LINENO 1656# ----------------------- 1657# Try to link conftest.$ac_ext, and return whether this succeeded. 1658ac_fn_c_try_link () 1659{ 1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1661 rm -f conftest.$ac_objext conftest$ac_exeext 1662 if { { ac_try="$ac_link" 1663case "(($ac_try" in 1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1665 *) ac_try_echo=$ac_try;; 1666esac 1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1668$as_echo "$ac_try_echo"; } >&5 1669 (eval "$ac_link") 2>conftest.err 1670 ac_status=$? 1671 if test -s conftest.err; then 1672 grep -v '^ *+' conftest.err >conftest.er1 1673 cat conftest.er1 >&5 1674 mv -f conftest.er1 conftest.err 1675 fi 1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1677 test $ac_status = 0; } && { 1678 test -z "$ac_c_werror_flag" || 1679 test ! -s conftest.err 1680 } && test -s conftest$ac_exeext && { 1681 test "$cross_compiling" = yes || 1682 test -x conftest$ac_exeext 1683 }; then : 1684 ac_retval=0 1685else 1686 $as_echo "$as_me: failed program was:" >&5 1687sed 's/^/| /' conftest.$ac_ext >&5 1688 1689 ac_retval=1 1690fi 1691 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1692 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1693 # interfere with the next link command; also delete a directory that is 1694 # left behind by Apple's compiler. We do this before executing the actions. 1695 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1697 as_fn_set_status $ac_retval 1698 1699} # ac_fn_c_try_link 1700 1701# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1702# ------------------------------------------------------- 1703# Tests whether HEADER exists and can be compiled using the include files in 1704# INCLUDES, setting the cache variable VAR accordingly. 1705ac_fn_c_check_header_compile () 1706{ 1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1709$as_echo_n "checking for $2... " >&6; } 1710if eval \${$3+:} false; then : 1711 $as_echo_n "(cached) " >&6 1712else 1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1714/* end confdefs.h. */ 1715$4 1716#include <$2> 1717_ACEOF 1718if ac_fn_c_try_compile "$LINENO"; then : 1719 eval "$3=yes" 1720else 1721 eval "$3=no" 1722fi 1723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1724fi 1725eval ac_res=\$$3 1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1727$as_echo "$ac_res" >&6; } 1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1729 1730} # ac_fn_c_check_header_compile 1731 1732# ac_fn_c_try_cpp LINENO 1733# ---------------------- 1734# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1735ac_fn_c_try_cpp () 1736{ 1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1738 if { { ac_try="$ac_cpp conftest.$ac_ext" 1739case "(($ac_try" in 1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1741 *) ac_try_echo=$ac_try;; 1742esac 1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1744$as_echo "$ac_try_echo"; } >&5 1745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1746 ac_status=$? 1747 if test -s conftest.err; then 1748 grep -v '^ *+' conftest.err >conftest.er1 1749 cat conftest.er1 >&5 1750 mv -f conftest.er1 conftest.err 1751 fi 1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1753 test $ac_status = 0; } > conftest.i && { 1754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1755 test ! -s conftest.err 1756 }; then : 1757 ac_retval=0 1758else 1759 $as_echo "$as_me: failed program was:" >&5 1760sed 's/^/| /' conftest.$ac_ext >&5 1761 1762 ac_retval=1 1763fi 1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1765 as_fn_set_status $ac_retval 1766 1767} # ac_fn_c_try_cpp 1768 1769# ac_fn_c_try_run LINENO 1770# ---------------------- 1771# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1772# that executables *can* be run. 1773ac_fn_c_try_run () 1774{ 1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1776 if { { ac_try="$ac_link" 1777case "(($ac_try" in 1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1779 *) ac_try_echo=$ac_try;; 1780esac 1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1782$as_echo "$ac_try_echo"; } >&5 1783 (eval "$ac_link") 2>&5 1784 ac_status=$? 1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1786 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1787 { { case "(($ac_try" in 1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1789 *) ac_try_echo=$ac_try;; 1790esac 1791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1792$as_echo "$ac_try_echo"; } >&5 1793 (eval "$ac_try") 2>&5 1794 ac_status=$? 1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1796 test $ac_status = 0; }; }; then : 1797 ac_retval=0 1798else 1799 $as_echo "$as_me: program exited with status $ac_status" >&5 1800 $as_echo "$as_me: failed program was:" >&5 1801sed 's/^/| /' conftest.$ac_ext >&5 1802 1803 ac_retval=$ac_status 1804fi 1805 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1807 as_fn_set_status $ac_retval 1808 1809} # ac_fn_c_try_run 1810 1811# ac_fn_c_check_func LINENO FUNC VAR 1812# ---------------------------------- 1813# Tests whether FUNC exists, setting the cache variable VAR accordingly 1814ac_fn_c_check_func () 1815{ 1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1818$as_echo_n "checking for $2... " >&6; } 1819if eval \${$3+:} false; then : 1820 $as_echo_n "(cached) " >&6 1821else 1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1823/* end confdefs.h. */ 1824/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1825 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1826#define $2 innocuous_$2 1827 1828/* System header to define __stub macros and hopefully few prototypes, 1829 which can conflict with char $2 (); below. 1830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1831 <limits.h> exists even on freestanding compilers. */ 1832 1833#ifdef __STDC__ 1834# include <limits.h> 1835#else 1836# include <assert.h> 1837#endif 1838 1839#undef $2 1840 1841/* Override any GCC internal prototype to avoid an error. 1842 Use char because int might match the return type of a GCC 1843 builtin and then its argument prototype would still apply. */ 1844#ifdef __cplusplus 1845extern "C" 1846#endif 1847char $2 (); 1848/* The GNU C library defines this for functions which it implements 1849 to always fail with ENOSYS. Some functions are actually named 1850 something starting with __ and the normal name is an alias. */ 1851#if defined __stub_$2 || defined __stub___$2 1852choke me 1853#endif 1854 1855int 1856main () 1857{ 1858return $2 (); 1859 ; 1860 return 0; 1861} 1862_ACEOF 1863if ac_fn_c_try_link "$LINENO"; then : 1864 eval "$3=yes" 1865else 1866 eval "$3=no" 1867fi 1868rm -f core conftest.err conftest.$ac_objext \ 1869 conftest$ac_exeext conftest.$ac_ext 1870fi 1871eval ac_res=\$$3 1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1873$as_echo "$ac_res" >&6; } 1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1875 1876} # ac_fn_c_check_func 1877 1878# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1879# ------------------------------------------------------- 1880# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1881# the include files in INCLUDES and setting the cache variable VAR 1882# accordingly. 1883ac_fn_c_check_header_mongrel () 1884{ 1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1886 if eval \${$3+:} false; then : 1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1888$as_echo_n "checking for $2... " >&6; } 1889if eval \${$3+:} false; then : 1890 $as_echo_n "(cached) " >&6 1891fi 1892eval ac_res=\$$3 1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1894$as_echo "$ac_res" >&6; } 1895else 1896 # Is the header compilable? 1897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1898$as_echo_n "checking $2 usability... " >&6; } 1899cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1900/* end confdefs.h. */ 1901$4 1902#include <$2> 1903_ACEOF 1904if ac_fn_c_try_compile "$LINENO"; then : 1905 ac_header_compiler=yes 1906else 1907 ac_header_compiler=no 1908fi 1909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1911$as_echo "$ac_header_compiler" >&6; } 1912 1913# Is the header present? 1914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1915$as_echo_n "checking $2 presence... " >&6; } 1916cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1917/* end confdefs.h. */ 1918#include <$2> 1919_ACEOF 1920if ac_fn_c_try_cpp "$LINENO"; then : 1921 ac_header_preproc=yes 1922else 1923 ac_header_preproc=no 1924fi 1925rm -f conftest.err conftest.i conftest.$ac_ext 1926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1927$as_echo "$ac_header_preproc" >&6; } 1928 1929# So? What about this header? 1930case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1931 yes:no: ) 1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1933$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1935$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1936 ;; 1937 no:yes:* ) 1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1939$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1941$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1943$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1945$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1947$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1948( $as_echo "## ------------------------------------- ## 1949## Report this to freeipmi-devel@gnu.org ## 1950## ------------------------------------- ##" 1951 ) | sed "s/^/$as_me: WARNING: /" >&2 1952 ;; 1953esac 1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1955$as_echo_n "checking for $2... " >&6; } 1956if eval \${$3+:} false; then : 1957 $as_echo_n "(cached) " >&6 1958else 1959 eval "$3=\$ac_header_compiler" 1960fi 1961eval ac_res=\$$3 1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1963$as_echo "$ac_res" >&6; } 1964fi 1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1966 1967} # ac_fn_c_check_header_mongrel 1968 1969# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1970# --------------------------------------------- 1971# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1972# accordingly. 1973ac_fn_c_check_decl () 1974{ 1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1976 as_decl_name=`echo $2|sed 's/ *(.*//'` 1977 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1979$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1980if eval \${$3+:} false; then : 1981 $as_echo_n "(cached) " >&6 1982else 1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1984/* end confdefs.h. */ 1985$4 1986int 1987main () 1988{ 1989#ifndef $as_decl_name 1990#ifdef __cplusplus 1991 (void) $as_decl_use; 1992#else 1993 (void) $as_decl_name; 1994#endif 1995#endif 1996 1997 ; 1998 return 0; 1999} 2000_ACEOF 2001if ac_fn_c_try_compile "$LINENO"; then : 2002 eval "$3=yes" 2003else 2004 eval "$3=no" 2005fi 2006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2007fi 2008eval ac_res=\$$3 2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2010$as_echo "$ac_res" >&6; } 2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2012 2013} # ac_fn_c_check_decl 2014 2015# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2016# ------------------------------------------- 2017# Tests whether TYPE exists after having included INCLUDES, setting cache 2018# variable VAR accordingly. 2019ac_fn_c_check_type () 2020{ 2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2023$as_echo_n "checking for $2... " >&6; } 2024if eval \${$3+:} false; then : 2025 $as_echo_n "(cached) " >&6 2026else 2027 eval "$3=no" 2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2029/* end confdefs.h. */ 2030$4 2031int 2032main () 2033{ 2034if (sizeof ($2)) 2035 return 0; 2036 ; 2037 return 0; 2038} 2039_ACEOF 2040if ac_fn_c_try_compile "$LINENO"; then : 2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2042/* end confdefs.h. */ 2043$4 2044int 2045main () 2046{ 2047if (sizeof (($2))) 2048 return 0; 2049 ; 2050 return 0; 2051} 2052_ACEOF 2053if ac_fn_c_try_compile "$LINENO"; then : 2054 2055else 2056 eval "$3=yes" 2057fi 2058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2059fi 2060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2061fi 2062eval ac_res=\$$3 2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2064$as_echo "$ac_res" >&6; } 2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2066 2067} # ac_fn_c_check_type 2068cat >config.log <<_ACEOF 2069This file contains any messages produced by compilers while 2070running configure, to aid debugging if configure makes a mistake. 2071 2072It was created by freeipmi $as_me 1.6.8, which was 2073generated by GNU Autoconf 2.69. Invocation command line was 2074 2075 $ $0 $@ 2076 2077_ACEOF 2078exec 5>>config.log 2079{ 2080cat <<_ASUNAME 2081## --------- ## 2082## Platform. ## 2083## --------- ## 2084 2085hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2086uname -m = `(uname -m) 2>/dev/null || echo unknown` 2087uname -r = `(uname -r) 2>/dev/null || echo unknown` 2088uname -s = `(uname -s) 2>/dev/null || echo unknown` 2089uname -v = `(uname -v) 2>/dev/null || echo unknown` 2090 2091/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2092/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2093 2094/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2095/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2096/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2097/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2098/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2099/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2100/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2101 2102_ASUNAME 2103 2104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2105for as_dir in $PATH 2106do 2107 IFS=$as_save_IFS 2108 test -z "$as_dir" && as_dir=. 2109 $as_echo "PATH: $as_dir" 2110 done 2111IFS=$as_save_IFS 2112 2113} >&5 2114 2115cat >&5 <<_ACEOF 2116 2117 2118## ----------- ## 2119## Core tests. ## 2120## ----------- ## 2121 2122_ACEOF 2123 2124 2125# Keep a trace of the command line. 2126# Strip out --no-create and --no-recursion so they do not pile up. 2127# Strip out --silent because we don't want to record it for future runs. 2128# Also quote any args containing shell meta-characters. 2129# Make two passes to allow for proper duplicate-argument suppression. 2130ac_configure_args= 2131ac_configure_args0= 2132ac_configure_args1= 2133ac_must_keep_next=false 2134for ac_pass in 1 2 2135do 2136 for ac_arg 2137 do 2138 case $ac_arg in 2139 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2141 | -silent | --silent | --silen | --sile | --sil) 2142 continue ;; 2143 *\'*) 2144 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2145 esac 2146 case $ac_pass in 2147 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2148 2) 2149 as_fn_append ac_configure_args1 " '$ac_arg'" 2150 if test $ac_must_keep_next = true; then 2151 ac_must_keep_next=false # Got value, back to normal. 2152 else 2153 case $ac_arg in 2154 *=* | --config-cache | -C | -disable-* | --disable-* \ 2155 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2156 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2157 | -with-* | --with-* | -without-* | --without-* | --x) 2158 case "$ac_configure_args0 " in 2159 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2160 esac 2161 ;; 2162 -* ) ac_must_keep_next=true ;; 2163 esac 2164 fi 2165 as_fn_append ac_configure_args " '$ac_arg'" 2166 ;; 2167 esac 2168 done 2169done 2170{ ac_configure_args0=; unset ac_configure_args0;} 2171{ ac_configure_args1=; unset ac_configure_args1;} 2172 2173# When interrupted or exit'd, cleanup temporary files, and complete 2174# config.log. We remove comments because anyway the quotes in there 2175# would cause problems or look ugly. 2176# WARNING: Use '\'' to represent an apostrophe within the trap. 2177# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2178trap 'exit_status=$? 2179 # Save into config.log some information that might help in debugging. 2180 { 2181 echo 2182 2183 $as_echo "## ---------------- ## 2184## Cache variables. ## 2185## ---------------- ##" 2186 echo 2187 # The following way of writing the cache mishandles newlines in values, 2188( 2189 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2190 eval ac_val=\$$ac_var 2191 case $ac_val in #( 2192 *${as_nl}*) 2193 case $ac_var in #( 2194 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2195$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2196 esac 2197 case $ac_var in #( 2198 _ | IFS | as_nl) ;; #( 2199 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2200 *) { eval $ac_var=; unset $ac_var;} ;; 2201 esac ;; 2202 esac 2203 done 2204 (set) 2>&1 | 2205 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2206 *${as_nl}ac_space=\ *) 2207 sed -n \ 2208 "s/'\''/'\''\\\\'\'''\''/g; 2209 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2210 ;; #( 2211 *) 2212 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2213 ;; 2214 esac | 2215 sort 2216) 2217 echo 2218 2219 $as_echo "## ----------------- ## 2220## Output variables. ## 2221## ----------------- ##" 2222 echo 2223 for ac_var in $ac_subst_vars 2224 do 2225 eval ac_val=\$$ac_var 2226 case $ac_val in 2227 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2228 esac 2229 $as_echo "$ac_var='\''$ac_val'\''" 2230 done | sort 2231 echo 2232 2233 if test -n "$ac_subst_files"; then 2234 $as_echo "## ------------------- ## 2235## File substitutions. ## 2236## ------------------- ##" 2237 echo 2238 for ac_var in $ac_subst_files 2239 do 2240 eval ac_val=\$$ac_var 2241 case $ac_val in 2242 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2243 esac 2244 $as_echo "$ac_var='\''$ac_val'\''" 2245 done | sort 2246 echo 2247 fi 2248 2249 if test -s confdefs.h; then 2250 $as_echo "## ----------- ## 2251## confdefs.h. ## 2252## ----------- ##" 2253 echo 2254 cat confdefs.h 2255 echo 2256 fi 2257 test "$ac_signal" != 0 && 2258 $as_echo "$as_me: caught signal $ac_signal" 2259 $as_echo "$as_me: exit $exit_status" 2260 } >&5 2261 rm -f core *.core core.conftest.* && 2262 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2263 exit $exit_status 2264' 0 2265for ac_signal in 1 2 13 15; do 2266 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2267done 2268ac_signal=0 2269 2270# confdefs.h avoids OS command line length limits that DEFS can exceed. 2271rm -f -r conftest* confdefs.h 2272 2273$as_echo "/* confdefs.h */" > confdefs.h 2274 2275# Predefined preprocessor variables. 2276 2277cat >>confdefs.h <<_ACEOF 2278#define PACKAGE_NAME "$PACKAGE_NAME" 2279_ACEOF 2280 2281cat >>confdefs.h <<_ACEOF 2282#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2283_ACEOF 2284 2285cat >>confdefs.h <<_ACEOF 2286#define PACKAGE_VERSION "$PACKAGE_VERSION" 2287_ACEOF 2288 2289cat >>confdefs.h <<_ACEOF 2290#define PACKAGE_STRING "$PACKAGE_STRING" 2291_ACEOF 2292 2293cat >>confdefs.h <<_ACEOF 2294#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2295_ACEOF 2296 2297cat >>confdefs.h <<_ACEOF 2298#define PACKAGE_URL "$PACKAGE_URL" 2299_ACEOF 2300 2301 2302# Let the site file select an alternate cache file if it wants to. 2303# Prefer an explicitly selected file to automatically selected ones. 2304ac_site_file1=NONE 2305ac_site_file2=NONE 2306if test -n "$CONFIG_SITE"; then 2307 # We do not want a PATH search for config.site. 2308 case $CONFIG_SITE in #(( 2309 -*) ac_site_file1=./$CONFIG_SITE;; 2310 */*) ac_site_file1=$CONFIG_SITE;; 2311 *) ac_site_file1=./$CONFIG_SITE;; 2312 esac 2313elif test "x$prefix" != xNONE; then 2314 ac_site_file1=$prefix/share/config.site 2315 ac_site_file2=$prefix/etc/config.site 2316else 2317 ac_site_file1=$ac_default_prefix/share/config.site 2318 ac_site_file2=$ac_default_prefix/etc/config.site 2319fi 2320for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2321do 2322 test "x$ac_site_file" = xNONE && continue 2323 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2324 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2325$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2326 sed 's/^/| /' "$ac_site_file" >&5 2327 . "$ac_site_file" \ 2328 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2330as_fn_error $? "failed to load site script $ac_site_file 2331See \`config.log' for more details" "$LINENO" 5; } 2332 fi 2333done 2334 2335if test -r "$cache_file"; then 2336 # Some versions of bash will fail to source /dev/null (special files 2337 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2338 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2339 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2340$as_echo "$as_me: loading cache $cache_file" >&6;} 2341 case $cache_file in 2342 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2343 *) . "./$cache_file";; 2344 esac 2345 fi 2346else 2347 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2348$as_echo "$as_me: creating cache $cache_file" >&6;} 2349 >$cache_file 2350fi 2351 2352as_fn_append ac_header_list " stdlib.h" 2353as_fn_append ac_header_list " unistd.h" 2354as_fn_append ac_header_list " sys/param.h" 2355# Check that the precious variables saved in the cache have kept the same 2356# value. 2357ac_cache_corrupted=false 2358for ac_var in $ac_precious_vars; do 2359 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2360 eval ac_new_set=\$ac_env_${ac_var}_set 2361 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2362 eval ac_new_val=\$ac_env_${ac_var}_value 2363 case $ac_old_set,$ac_new_set in 2364 set,) 2365 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2366$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2367 ac_cache_corrupted=: ;; 2368 ,set) 2369 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2370$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2371 ac_cache_corrupted=: ;; 2372 ,);; 2373 *) 2374 if test "x$ac_old_val" != "x$ac_new_val"; then 2375 # differences in whitespace do not lead to failure. 2376 ac_old_val_w=`echo x $ac_old_val` 2377 ac_new_val_w=`echo x $ac_new_val` 2378 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2379 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2380$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2381 ac_cache_corrupted=: 2382 else 2383 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2384$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2385 eval $ac_var=\$ac_old_val 2386 fi 2387 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2388$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2389 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2390$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2391 fi;; 2392 esac 2393 # Pass precious variables to config.status. 2394 if test "$ac_new_set" = set; then 2395 case $ac_new_val in 2396 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2397 *) ac_arg=$ac_var=$ac_new_val ;; 2398 esac 2399 case " $ac_configure_args " in 2400 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2401 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2402 esac 2403 fi 2404done 2405if $ac_cache_corrupted; then 2406 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2407$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2409$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2410 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2411fi 2412## -------------------- ## 2413## Main body of script. ## 2414## -------------------- ## 2415 2416ac_ext=c 2417ac_cpp='$CPP $CPPFLAGS' 2418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2420ac_compiler_gnu=$ac_cv_c_compiler_gnu 2421 2422 2423 2424 2425 2426FREEIPMI_PACKAGE_VERSION_MAJOR=1 2427FREEIPMI_PACKAGE_VERSION_MINOR=6 2428FREEIPMI_PACKAGE_VERSION_PATCH=8 2429 2430 2431 2432 2433 2434 2435 2436ac_aux_dir= 2437for ac_dir in config "$srcdir"/config; do 2438 if test -f "$ac_dir/install-sh"; then 2439 ac_aux_dir=$ac_dir 2440 ac_install_sh="$ac_aux_dir/install-sh -c" 2441 break 2442 elif test -f "$ac_dir/install.sh"; then 2443 ac_aux_dir=$ac_dir 2444 ac_install_sh="$ac_aux_dir/install.sh -c" 2445 break 2446 elif test -f "$ac_dir/shtool"; then 2447 ac_aux_dir=$ac_dir 2448 ac_install_sh="$ac_aux_dir/shtool install -c" 2449 break 2450 fi 2451done 2452if test -z "$ac_aux_dir"; then 2453 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2454fi 2455 2456# These three variables are undocumented and unsupported, 2457# and are intended to be withdrawn in a future Autoconf release. 2458# They can cause serious problems if a builder's source tree is in a directory 2459# whose full name contains unusual characters. 2460ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2461ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2462ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2463 2464 2465 2466 2467 2468am__api_version='1.13' 2469 2470# Find a good install program. We prefer a C program (faster), 2471# so one script is as good as another. But avoid the broken or 2472# incompatible versions: 2473# SysV /etc/install, /usr/sbin/install 2474# SunOS /usr/etc/install 2475# IRIX /sbin/install 2476# AIX /bin/install 2477# AmigaOS /C/install, which installs bootblocks on floppy discs 2478# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2479# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2480# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2481# OS/2's system install, which has a completely different semantic 2482# ./install, which can be erroneously created by make from ./install.sh. 2483# Reject install programs that cannot install multiple files. 2484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2485$as_echo_n "checking for a BSD-compatible install... " >&6; } 2486if test -z "$INSTALL"; then 2487if ${ac_cv_path_install+:} false; then : 2488 $as_echo_n "(cached) " >&6 2489else 2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2491for as_dir in $PATH 2492do 2493 IFS=$as_save_IFS 2494 test -z "$as_dir" && as_dir=. 2495 # Account for people who put trailing slashes in PATH elements. 2496case $as_dir/ in #(( 2497 ./ | .// | /[cC]/* | \ 2498 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2499 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2500 /usr/ucb/* ) ;; 2501 *) 2502 # OSF1 and SCO ODT 3.0 have their own names for install. 2503 # Don't use installbsd from OSF since it installs stuff as root 2504 # by default. 2505 for ac_prog in ginstall scoinst install; do 2506 for ac_exec_ext in '' $ac_executable_extensions; do 2507 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2508 if test $ac_prog = install && 2509 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2510 # AIX install. It has an incompatible calling convention. 2511 : 2512 elif test $ac_prog = install && 2513 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2514 # program-specific install script used by HP pwplus--don't use. 2515 : 2516 else 2517 rm -rf conftest.one conftest.two conftest.dir 2518 echo one > conftest.one 2519 echo two > conftest.two 2520 mkdir conftest.dir 2521 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2522 test -s conftest.one && test -s conftest.two && 2523 test -s conftest.dir/conftest.one && 2524 test -s conftest.dir/conftest.two 2525 then 2526 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2527 break 3 2528 fi 2529 fi 2530 fi 2531 done 2532 done 2533 ;; 2534esac 2535 2536 done 2537IFS=$as_save_IFS 2538 2539rm -rf conftest.one conftest.two conftest.dir 2540 2541fi 2542 if test "${ac_cv_path_install+set}" = set; then 2543 INSTALL=$ac_cv_path_install 2544 else 2545 # As a last resort, use the slow shell script. Don't cache a 2546 # value for INSTALL within a source directory, because that will 2547 # break other packages using the cache if that directory is 2548 # removed, or if the value is a relative name. 2549 INSTALL=$ac_install_sh 2550 fi 2551fi 2552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2553$as_echo "$INSTALL" >&6; } 2554 2555# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2556# It thinks the first close brace ends the variable substitution. 2557test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2558 2559test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2560 2561test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2562 2563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2564$as_echo_n "checking whether build environment is sane... " >&6; } 2565# Reject unsafe characters in $srcdir or the absolute working directory 2566# name. Accept space and tab only in the latter. 2567am_lf=' 2568' 2569case `pwd` in 2570 *[\\\"\#\$\&\'\`$am_lf]*) 2571 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2572esac 2573case $srcdir in 2574 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2575 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2576esac 2577 2578# Do 'set' in a subshell so we don't clobber the current shell's 2579# arguments. Must try -L first in case configure is actually a 2580# symlink; some systems play weird games with the mod time of symlinks 2581# (eg FreeBSD returns the mod time of the symlink's containing 2582# directory). 2583if ( 2584 am_has_slept=no 2585 for am_try in 1 2; do 2586 echo "timestamp, slept: $am_has_slept" > conftest.file 2587 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2588 if test "$*" = "X"; then 2589 # -L didn't work. 2590 set X `ls -t "$srcdir/configure" conftest.file` 2591 fi 2592 if test "$*" != "X $srcdir/configure conftest.file" \ 2593 && test "$*" != "X conftest.file $srcdir/configure"; then 2594 2595 # If neither matched, then we have a broken ls. This can happen 2596 # if, for instance, CONFIG_SHELL is bash and it inherits a 2597 # broken ls alias from the environment. This has actually 2598 # happened. Such a system could not be considered "sane". 2599 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2600 alias in your environment" "$LINENO" 5 2601 fi 2602 if test "$2" = conftest.file || test $am_try -eq 2; then 2603 break 2604 fi 2605 # Just in case. 2606 sleep 1 2607 am_has_slept=yes 2608 done 2609 test "$2" = conftest.file 2610 ) 2611then 2612 # Ok. 2613 : 2614else 2615 as_fn_error $? "newly created file is older than distributed files! 2616Check your system clock" "$LINENO" 5 2617fi 2618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2619$as_echo "yes" >&6; } 2620# If we didn't sleep, we still need to ensure time stamps of config.status and 2621# generated files are strictly newer. 2622am_sleep_pid= 2623if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2624 ( sleep 1 ) & 2625 am_sleep_pid=$! 2626fi 2627 2628rm -f conftest.file 2629 2630test "$program_prefix" != NONE && 2631 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2632# Use a double $ so make ignores it. 2633test "$program_suffix" != NONE && 2634 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2635# Double any \ or $. 2636# By default was `s,x,x', remove it if useless. 2637ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2638program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2639 2640# expand $ac_aux_dir to an absolute path 2641am_aux_dir=`cd $ac_aux_dir && pwd` 2642 2643if test x"${MISSING+set}" != xset; then 2644 case $am_aux_dir in 2645 *\ * | *\ *) 2646 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2647 *) 2648 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2649 esac 2650fi 2651# Use eval to expand $SHELL 2652if eval "$MISSING --is-lightweight"; then 2653 am_missing_run="$MISSING " 2654else 2655 am_missing_run= 2656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2657$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2658fi 2659 2660if test x"${install_sh}" != xset; then 2661 case $am_aux_dir in 2662 *\ * | *\ *) 2663 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2664 *) 2665 install_sh="\${SHELL} $am_aux_dir/install-sh" 2666 esac 2667fi 2668 2669# Installed binaries are usually stripped using 'strip' when the user 2670# run "make install-strip". However 'strip' might not be the right 2671# tool to use in cross-compilation environments, therefore Automake 2672# will honor the 'STRIP' environment variable to overrule this program. 2673if test "$cross_compiling" != no; then 2674 if test -n "$ac_tool_prefix"; then 2675 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2676set dummy ${ac_tool_prefix}strip; ac_word=$2 2677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2678$as_echo_n "checking for $ac_word... " >&6; } 2679if ${ac_cv_prog_STRIP+:} false; then : 2680 $as_echo_n "(cached) " >&6 2681else 2682 if test -n "$STRIP"; then 2683 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2684else 2685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2686for as_dir in $PATH 2687do 2688 IFS=$as_save_IFS 2689 test -z "$as_dir" && as_dir=. 2690 for ac_exec_ext in '' $ac_executable_extensions; do 2691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2692 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2694 break 2 2695 fi 2696done 2697 done 2698IFS=$as_save_IFS 2699 2700fi 2701fi 2702STRIP=$ac_cv_prog_STRIP 2703if test -n "$STRIP"; then 2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2705$as_echo "$STRIP" >&6; } 2706else 2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2708$as_echo "no" >&6; } 2709fi 2710 2711 2712fi 2713if test -z "$ac_cv_prog_STRIP"; then 2714 ac_ct_STRIP=$STRIP 2715 # Extract the first word of "strip", so it can be a program name with args. 2716set dummy strip; ac_word=$2 2717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2718$as_echo_n "checking for $ac_word... " >&6; } 2719if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2720 $as_echo_n "(cached) " >&6 2721else 2722 if test -n "$ac_ct_STRIP"; then 2723 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2724else 2725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2726for as_dir in $PATH 2727do 2728 IFS=$as_save_IFS 2729 test -z "$as_dir" && as_dir=. 2730 for ac_exec_ext in '' $ac_executable_extensions; do 2731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2732 ac_cv_prog_ac_ct_STRIP="strip" 2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2734 break 2 2735 fi 2736done 2737 done 2738IFS=$as_save_IFS 2739 2740fi 2741fi 2742ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2743if test -n "$ac_ct_STRIP"; then 2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2745$as_echo "$ac_ct_STRIP" >&6; } 2746else 2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2748$as_echo "no" >&6; } 2749fi 2750 2751 if test "x$ac_ct_STRIP" = x; then 2752 STRIP=":" 2753 else 2754 case $cross_compiling:$ac_tool_warned in 2755yes:) 2756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2758ac_tool_warned=yes ;; 2759esac 2760 STRIP=$ac_ct_STRIP 2761 fi 2762else 2763 STRIP="$ac_cv_prog_STRIP" 2764fi 2765 2766fi 2767INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2768 2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2770$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2771if test -z "$MKDIR_P"; then 2772 if ${ac_cv_path_mkdir+:} false; then : 2773 $as_echo_n "(cached) " >&6 2774else 2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2776for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2777do 2778 IFS=$as_save_IFS 2779 test -z "$as_dir" && as_dir=. 2780 for ac_prog in mkdir gmkdir; do 2781 for ac_exec_ext in '' $ac_executable_extensions; do 2782 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2783 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2784 'mkdir (GNU coreutils) '* | \ 2785 'mkdir (coreutils) '* | \ 2786 'mkdir (fileutils) '4.1*) 2787 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2788 break 3;; 2789 esac 2790 done 2791 done 2792 done 2793IFS=$as_save_IFS 2794 2795fi 2796 2797 test -d ./--version && rmdir ./--version 2798 if test "${ac_cv_path_mkdir+set}" = set; then 2799 MKDIR_P="$ac_cv_path_mkdir -p" 2800 else 2801 # As a last resort, use the slow shell script. Don't cache a 2802 # value for MKDIR_P within a source directory, because that will 2803 # break other packages using the cache if that directory is 2804 # removed, or if the value is a relative name. 2805 MKDIR_P="$ac_install_sh -d" 2806 fi 2807fi 2808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2809$as_echo "$MKDIR_P" >&6; } 2810 2811for ac_prog in gawk mawk nawk awk 2812do 2813 # Extract the first word of "$ac_prog", so it can be a program name with args. 2814set dummy $ac_prog; ac_word=$2 2815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2816$as_echo_n "checking for $ac_word... " >&6; } 2817if ${ac_cv_prog_AWK+:} false; then : 2818 $as_echo_n "(cached) " >&6 2819else 2820 if test -n "$AWK"; then 2821 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2822else 2823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2824for as_dir in $PATH 2825do 2826 IFS=$as_save_IFS 2827 test -z "$as_dir" && as_dir=. 2828 for ac_exec_ext in '' $ac_executable_extensions; do 2829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2830 ac_cv_prog_AWK="$ac_prog" 2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2832 break 2 2833 fi 2834done 2835 done 2836IFS=$as_save_IFS 2837 2838fi 2839fi 2840AWK=$ac_cv_prog_AWK 2841if test -n "$AWK"; then 2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2843$as_echo "$AWK" >&6; } 2844else 2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2846$as_echo "no" >&6; } 2847fi 2848 2849 2850 test -n "$AWK" && break 2851done 2852 2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2854$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2855set x ${MAKE-make} 2856ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2857if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2858 $as_echo_n "(cached) " >&6 2859else 2860 cat >conftest.make <<\_ACEOF 2861SHELL = /bin/sh 2862all: 2863 @echo '@@@%%%=$(MAKE)=@@@%%%' 2864_ACEOF 2865# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2866case `${MAKE-make} -f conftest.make 2>/dev/null` in 2867 *@@@%%%=?*=@@@%%%*) 2868 eval ac_cv_prog_make_${ac_make}_set=yes;; 2869 *) 2870 eval ac_cv_prog_make_${ac_make}_set=no;; 2871esac 2872rm -f conftest.make 2873fi 2874if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2876$as_echo "yes" >&6; } 2877 SET_MAKE= 2878else 2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2880$as_echo "no" >&6; } 2881 SET_MAKE="MAKE=${MAKE-make}" 2882fi 2883 2884rm -rf .tst 2>/dev/null 2885mkdir .tst 2>/dev/null 2886if test -d .tst; then 2887 am__leading_dot=. 2888else 2889 am__leading_dot=_ 2890fi 2891rmdir .tst 2>/dev/null 2892 2893# Check whether --enable-silent-rules was given. 2894if test "${enable_silent_rules+set}" = set; then : 2895 enableval=$enable_silent_rules; 2896fi 2897 2898case $enable_silent_rules in # ((( 2899 yes) AM_DEFAULT_VERBOSITY=0;; 2900 no) AM_DEFAULT_VERBOSITY=1;; 2901 *) AM_DEFAULT_VERBOSITY=1;; 2902esac 2903am_make=${MAKE-make} 2904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2905$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2906if ${am_cv_make_support_nested_variables+:} false; then : 2907 $as_echo_n "(cached) " >&6 2908else 2909 if $as_echo 'TRUE=$(BAR$(V)) 2910BAR0=false 2911BAR1=true 2912V=1 2913am__doit: 2914 @$(TRUE) 2915.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2916 am_cv_make_support_nested_variables=yes 2917else 2918 am_cv_make_support_nested_variables=no 2919fi 2920fi 2921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2922$as_echo "$am_cv_make_support_nested_variables" >&6; } 2923if test $am_cv_make_support_nested_variables = yes; then 2924 AM_V='$(V)' 2925 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2926else 2927 AM_V=$AM_DEFAULT_VERBOSITY 2928 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2929fi 2930AM_BACKSLASH='\' 2931 2932if test "`cd $srcdir && pwd`" != "`pwd`"; then 2933 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2934 # is not polluted with repeated "-I." 2935 am__isrc=' -I$(srcdir)' 2936 # test to see if srcdir already configured 2937 if test -f $srcdir/config.status; then 2938 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2939 fi 2940fi 2941 2942# test whether we have cygpath 2943if test -z "$CYGPATH_W"; then 2944 if (cygpath --version) >/dev/null 2>/dev/null; then 2945 CYGPATH_W='cygpath -w' 2946 else 2947 CYGPATH_W=echo 2948 fi 2949fi 2950 2951 2952# Define the identity of the package. 2953 PACKAGE='freeipmi' 2954 VERSION='1.6.8' 2955 2956 2957cat >>confdefs.h <<_ACEOF 2958#define PACKAGE "$PACKAGE" 2959_ACEOF 2960 2961 2962cat >>confdefs.h <<_ACEOF 2963#define VERSION "$VERSION" 2964_ACEOF 2965 2966# Some tools Automake needs. 2967 2968ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2969 2970 2971AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2972 2973 2974AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2975 2976 2977AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2978 2979 2980MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2981 2982# For better backward compatibility. To be removed once Automake 1.9.x 2983# dies out for good. For more background, see: 2984# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2985# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2986mkdir_p='$(MKDIR_P)' 2987 2988# We need awk for the "check" target. The system "awk" is bad on 2989# some platforms. 2990# Always define AMTAR for backward compatibility. Yes, it's still used 2991# in the wild :-( We should find a proper way to deprecate it ... 2992AMTAR='$${TAR-tar}' 2993 2994 2995# We'll loop over all known methods to create a tar archive until one works. 2996_am_tools='gnutar plaintar pax cpio none' 2997 2998# The POSIX 1988 'ustar' format is defined with fixed-size fields. 2999 # There is notably a 21 bits limit for the UID and the GID. In fact, 3000 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 3001 # and bug#13588). 3002 am_max_uid=2097151 # 2^21 - 1 3003 am_max_gid=$am_max_uid 3004 # The $UID and $GID variables are not portable, so we need to resort 3005 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 3006 # below are definitely unexpected, so allow the users to see them 3007 # (that is, avoid stderr redirection). 3008 am_uid=`id -u || echo unknown` 3009 am_gid=`id -g || echo unknown` 3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 3011$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 3012 if test $am_uid -le $am_max_uid; then 3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3014$as_echo "yes" >&6; } 3015 else 3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3017$as_echo "no" >&6; } 3018 _am_tools=none 3019 fi 3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 3021$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 3022 if test $am_gid -le $am_max_gid; then 3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3024$as_echo "yes" >&6; } 3025 else 3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3027$as_echo "no" >&6; } 3028 _am_tools=none 3029 fi 3030 3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 3032$as_echo_n "checking how to create a ustar tar archive... " >&6; } 3033 3034 # Go ahead even if we have the value already cached. We do so because we 3035 # need to set the values for the 'am__tar' and 'am__untar' variables. 3036 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 3037 3038 for _am_tool in $_am_tools; do 3039 case $_am_tool in 3040 gnutar) 3041 for _am_tar in tar gnutar gtar; do 3042 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3043 ($_am_tar --version) >&5 2>&5 3044 ac_status=$? 3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3046 (exit $ac_status); } && break 3047 done 3048 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 3049 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 3050 am__untar="$_am_tar -xf -" 3051 ;; 3052 plaintar) 3053 # Must skip GNU tar: if it does not support --format= it doesn't create 3054 # ustar tarball either. 3055 (tar --version) >/dev/null 2>&1 && continue 3056 am__tar='tar chf - "$$tardir"' 3057 am__tar_='tar chf - "$tardir"' 3058 am__untar='tar xf -' 3059 ;; 3060 pax) 3061 am__tar='pax -L -x ustar -w "$$tardir"' 3062 am__tar_='pax -L -x ustar -w "$tardir"' 3063 am__untar='pax -r' 3064 ;; 3065 cpio) 3066 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3067 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3068 am__untar='cpio -i -H ustar -d' 3069 ;; 3070 none) 3071 am__tar=false 3072 am__tar_=false 3073 am__untar=false 3074 ;; 3075 esac 3076 3077 # If the value was cached, stop now. We just wanted to have am__tar 3078 # and am__untar set. 3079 test -n "${am_cv_prog_tar_ustar}" && break 3080 3081 # tar/untar a dummy directory, and stop if the command works. 3082 rm -rf conftest.dir 3083 mkdir conftest.dir 3084 echo GrepMe > conftest.dir/file 3085 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3086 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3087 ac_status=$? 3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3089 (exit $ac_status); } 3090 rm -rf conftest.dir 3091 if test -s conftest.tar; then 3092 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3093 ($am__untar <conftest.tar) >&5 2>&5 3094 ac_status=$? 3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3096 (exit $ac_status); } 3097 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3098 (cat conftest.dir/file) >&5 2>&5 3099 ac_status=$? 3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3101 (exit $ac_status); } 3102 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3103 fi 3104 done 3105 rm -rf conftest.dir 3106 3107 if ${am_cv_prog_tar_ustar+:} false; then : 3108 $as_echo_n "(cached) " >&6 3109else 3110 am_cv_prog_tar_ustar=$_am_tool 3111fi 3112 3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3114$as_echo "$am_cv_prog_tar_ustar" >&6; } 3115 3116 3117 3118 3119 3120 3121 3122ac_config_headers="$ac_config_headers config/config.h" 3123 3124 3125 3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking installation directory variables" >&5 3127$as_echo_n "checking installation directory variables... " >&6; } 3128 3129 _x_ac_expand_install_dirs_prefix="$prefix" 3130 test "$prefix" = NONE && prefix="$ac_default_prefix" 3131 _x_ac_expand_install_dirs_exec_prefix="$exec_prefix" 3132 test "$exec_prefix" = NONE && exec_prefix="$prefix" 3133 3134 eval X_PREFIX="$prefix" 3135 3136cat >>confdefs.h <<_ACEOF 3137#define X_PREFIX "$X_PREFIX" 3138_ACEOF 3139 3140 3141 3142 eval X_EXEC_PREFIX="$exec_prefix" 3143 3144cat >>confdefs.h <<_ACEOF 3145#define X_EXEC_PREFIX "$X_EXEC_PREFIX" 3146_ACEOF 3147 3148 3149 3150 eval X_BINDIR="$bindir" 3151 3152cat >>confdefs.h <<_ACEOF 3153#define X_BINDIR "$X_BINDIR" 3154_ACEOF 3155 3156 3157 3158 eval X_SBINDIR="$sbindir" 3159 3160cat >>confdefs.h <<_ACEOF 3161#define X_SBINDIR "$X_SBINDIR" 3162_ACEOF 3163 3164 3165 3166 eval X_LIBEXECDIR="$libexecdir" 3167 3168cat >>confdefs.h <<_ACEOF 3169#define X_LIBEXECDIR "$X_LIBEXECDIR" 3170_ACEOF 3171 3172 3173 3174 eval X_DATADIR="$datadir" 3175 3176cat >>confdefs.h <<_ACEOF 3177#define X_DATADIR "$X_DATADIR" 3178_ACEOF 3179 3180 3181 3182 eval X_SYSCONFDIR="$sysconfdir" 3183 3184cat >>confdefs.h <<_ACEOF 3185#define X_SYSCONFDIR "$X_SYSCONFDIR" 3186_ACEOF 3187 3188 3189 3190 eval X_SHAREDSTATEDIR="$sharedstatedir" 3191 3192cat >>confdefs.h <<_ACEOF 3193#define X_SHAREDSTATEDIR "$X_SHAREDSTATEDIR" 3194_ACEOF 3195 3196 3197 3198 eval X_LOCALSTATEDIR="$localstatedir" 3199 3200cat >>confdefs.h <<_ACEOF 3201#define X_LOCALSTATEDIR "$X_LOCALSTATEDIR" 3202_ACEOF 3203 3204 3205 3206 eval X_LIBDIR="$libdir" 3207 3208cat >>confdefs.h <<_ACEOF 3209#define X_LIBDIR "$X_LIBDIR" 3210_ACEOF 3211 3212 3213 3214 eval X_INCLUDEDIR="$includedir" 3215 3216cat >>confdefs.h <<_ACEOF 3217#define X_INCLUDEDIR "$X_INCLUDEDIR" 3218_ACEOF 3219 3220 3221 3222 eval X_OLDINCLUDEDIR="$oldincludedir" 3223 3224cat >>confdefs.h <<_ACEOF 3225#define X_OLDINCLUDEDIR "$X_OLDINCLUDEDIR" 3226_ACEOF 3227 3228 3229 3230 eval X_INFODIR="$infodir" 3231 3232cat >>confdefs.h <<_ACEOF 3233#define X_INFODIR "$X_INFODIR" 3234_ACEOF 3235 3236 3237 3238 eval X_MANDIR="$mandir" 3239 3240cat >>confdefs.h <<_ACEOF 3241#define X_MANDIR "$X_MANDIR" 3242_ACEOF 3243 3244 3245 3246 prefix="$_x_ac_expand_install_dirs_prefix" 3247 exec_prefix="$_x_ac_expand_install_dirs_exec_prefix" 3248 3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3250$as_echo "yes" >&6; } 3251 3252 3253ac_config_files="$ac_config_files freeipmi.spec Makefile bmc-device/Makefile bmc-info/Makefile bmc-watchdog/Makefile common/Makefile common/debugutil/Makefile common/miscutil/Makefile common/parsecommon/Makefile common/pingtool/Makefile common/portability/Makefile common/toolcommon/Makefile contrib/Makefile doc/Makefile etc/Makefile etc/bmc-watchdog.init etc/bmc-watchdog.service etc/ipmidetectd.init etc/ipmidetectd.service etc/ipmiseld.init etc/ipmiseld.service etc/os-shutdown-event.service etc/os-startup-event.service etc/set-sysinfo-in-bmc.service ipmi-chassis/Makefile ipmi-config/Makefile ipmi-dcmi/Makefile ipmi-fru/Makefile ipmi-locate/Makefile ipmi-oem/Makefile ipmi-pet/Makefile ipmi-raw/Makefile ipmi-sel/Makefile ipmi-sensors/Makefile ipmiconsole/Makefile ipmidetect/Makefile ipmidetectd/Makefile ipmiping/Makefile ipmipower/Makefile ipmiseld/Makefile libfreeipmi/Makefile libfreeipmi/libfreeipmi.pc libfreeipmi/include/Makefile libfreeipmi/include/freeipmi/freeipmi.h libipmiconsole/Makefile libipmiconsole/ipmiconsole.h libipmiconsole/libipmiconsole.pc libipmidetect/Makefile libipmidetect/ipmidetect.h libipmidetect/libipmidetect.pc libipmimonitoring/Makefile libipmimonitoring/ipmi_monitoring.h libipmimonitoring/libipmimonitoring.pc man/Makefile man/bmc-device.8.pre man/bmc-info.8.pre man/bmc-watchdog.8.pre man/freeipmi.conf.5.pre man/freeipmi.7.pre man/ipmi-chassis.8.pre man/ipmi-config.8.pre man/ipmi-config.conf.5.pre man/ipmi-dcmi.8.pre man/ipmi-fru.8.pre man/ipmi-locate.8.pre man/ipmi-oem.8.pre man/ipmi-pet.8.pre man/ipmi-raw.8.pre man/ipmi-sel.8.pre man/ipmi-sensors.8.pre man/ipmiconsole.8.pre man/ipmidetect.8.pre man/ipmidetect.conf.5.pre man/ipmidetectd.8.pre man/ipmidetectd.conf.5.pre man/ipmiping.8.pre man/ipmipower.8.pre man/ipmiseld.8.pre man/ipmiseld.conf.5.pre man/libfreeipmi.3.pre man/freeipmi_interpret_sensor.conf.5.pre man/freeipmi_interpret_sel.conf.5.pre man/libipmiconsole.3.pre man/libipmiconsole.conf.5.pre man/libipmidetect.3.pre man/libipmimonitoring.3.pre man/rmcpping.8.pre rmcpping/Makefile" 3254 3255 3256ISODATE=`date -u -r ChangeLog +%Y-%m-%d` 3257 3258 3259# libfreeipmi libtool versioning 3260# 3261# If the library source code has changed at all since the last update, 3262# then increment c:r: c:r+1:). 3263# 3264# If any interfaces have been added, removed, or changed since the 3265# last update, increment current, and set revision to 0. 3266# 3267# If any interfaces have been added since the last public release, 3268# then increment age. 3269# 3270# If any interfaces have been removed or changed since the last public 3271# release, then set age to 0. 3272# 3273LIBFREEIPMI_CURRENT=19 3274LIBFREEIPMI_REVISION=7 3275LIBFREEIPMI_AGE=2 3276 3277LIBFREEIPMI_VERSION=$LIBFREEIPMI_CURRENT.$LIBFREEIPMI_REVISION.$LIBFREEIPMI_AGE 3278 3279LIBFREEIPMI_VERSION_INFO=$LIBFREEIPMI_CURRENT:$LIBFREEIPMI_REVISION:$LIBFREEIPMI_AGE 3280 3281 3282# libfreeipmi versioning macros 3283# 3284# MAJOR - Incremented when interfaces are changed or removed. 3285# Interfaces may be binary incompatible. When incremented, MINOR and 3286# PATCH are zeroed. 3287# MINOR - Incremented when interfaces are added. Interfaces are 3288# binary compatible with older minor versions. When incremented, 3289# PATCH is zeroed. 3290# PATCH - Incremented when interfaces are not changed. Typically 3291# incremented due to bug fixes or minor features. Interfaces are 3292# forward and backward compatible to other PATCH versions. 3293 3294LIBFREEIPMI_VERSION_MAJOR=6 3295LIBFREEIPMI_VERSION_MINOR=2 3296LIBFREEIPMI_VERSION_PATCH=7 3297 3298 3299 3300 3301 3302# libipmiconsole libtool versioning 3303# 3304# If the library source code has changed at all since the last update, 3305# then increment c:r: c:r+1:). 3306# 3307# If any interfaces have been added, removed, or changed since the 3308# last update, increment current, and set revision to 0. 3309# 3310# If any interfaces have been added since the last public release, 3311# then increment age. 3312# 3313# If any interfaces have been removed or changed since the last public 3314# release, then set age to 0. 3315# 3316LIBIPMICONSOLE_CURRENT=5 3317LIBIPMICONSOLE_REVISION=6 3318LIBIPMICONSOLE_AGE=3 3319LIBIPMICONSOLE_VERSION_INFO=$LIBIPMICONSOLE_CURRENT:$LIBIPMICONSOLE_REVISION:$LIBIPMICONSOLE_AGE 3320 3321 3322# libipmiconsole versioning macros 3323# 3324# MAJOR - Incremented when interfaces are changed or removed. 3325# Interfaces may be binary incompatible. When incremented, MINOR and 3326# PATCH are zeroed. 3327# MINOR - Incremented when interfaces are added. Interfaces are 3328# binary compatible with older minor versions. When incremented, 3329# PATCH is zeroed. 3330# PATCH - Incremented when interfaces are not changed. Typically 3331# incremented due to bug fixes or minor features. Interfaces are 3332# forward and backward compatible to other PATCH versions. 3333# 3334 3335LIBIPMICONSOLE_VERSION_MAJOR=1 3336LIBIPMICONSOLE_VERSION_MINOR=2 3337LIBIPMICONSOLE_VERSION_PATCH=6 3338 3339 3340 3341 3342 3343# libipmimonitoring libtool versioning 3344# 3345# If the library source code has changed at all since the last update, 3346# then increment c:r: c:r+1:). 3347# 3348# If any interfaces have been added, removed, or changed since the 3349# last update, increment current, and set revision to 0. 3350# 3351# If any interfaces have been added since the last public release, 3352# then increment age. 3353# 3354# If any interfaces have been removed or changed since the last public 3355# release, then set age to 0. 3356# 3357LIBIPMIMONITORING_CURRENT=6 3358LIBIPMIMONITORING_REVISION=8 3359LIBIPMIMONITORING_AGE=0 3360LIBIPMIMONITORING_VERSION_INFO=$LIBIPMIMONITORING_CURRENT:$LIBIPMIMONITORING_REVISION:$LIBIPMIMONITORING_AGE 3361 3362 3363# libipmimonitoring versioning macros 3364# 3365# MAJOR - Incremented when interfaces are changed or removed. 3366# Interfaces may be binary incompatible. When incremented, MINOR and 3367# PATCH are zeroed. 3368# MINOR - Incremented when interfaces are added. Interfaces are 3369# binary compatible with older minor versions. When incremented, 3370# PATCH is zeroed. 3371# PATCH - Incremented when interfaces are not changed. Typically 3372# incremented due to bug fixes or minor features. Interfaces are 3373# forward and backward compatible to other PATCH versions. 3374# 3375 3376LIBIPMIMONITORING_VERSION_MAJOR=1 3377LIBIPMIMONITORING_VERSION_MINOR=0 3378LIBIPMIMONITORING_VERSION_PATCH=9 3379 3380 3381 3382 3383 3384# libipmidetect libtool versioning 3385# 3386# If the library source code has changed at all since the last update, 3387# then increment c:r: c:r+1:). 3388# 3389# If any interfaces have been added, removed, or changed since the 3390# last update, increment current, and set revision to 0. 3391# 3392# If any interfaces have been added since the last public release, 3393# then increment age. 3394# 3395# If any interfaces have been removed or changed since the last public 3396# release, then set age to 0. 3397# 3398LIBIPMIDETECT_CURRENT=0 3399LIBIPMIDETECT_REVISION=1 3400LIBIPMIDETECT_AGE=0 3401LIBIPMIDETECT_VERSION_INFO=$LIBIPMIDETECT_CURRENT:$LIBIPMIDETECT_REVISION:$LIBIPMIDETECT_AGE 3402 3403 3404# libipmidetect versioning macros 3405# 3406# MAJOR - Incremented when interfaces are changed or removed. 3407# Interfaces may be binary incompatible. When incremented, MINOR and 3408# PATCH are zeroed. 3409# MINOR - Incremented when interfaces are added. Interfaces are 3410# binary compatible with older minor versions. When incremented, 3411# PATCH is zeroed. 3412# PATCH - Incremented when interfaces are not changed. Typically 3413# incremented due to bug fixes or minor features. Interfaces are 3414# forward and backward compatible to other PATCH versions. 3415# 3416 3417LIBIPMIDETECT_VERSION_MAJOR=1 3418LIBIPMIDETECT_VERSION_MINOR=0 3419LIBIPMIDETECT_VERSION_PATCH=1 3420 3421 3422 3423 3424 3425# Make sure we can run config.sub. 3426$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3427 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3428 3429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3430$as_echo_n "checking build system type... " >&6; } 3431if ${ac_cv_build+:} false; then : 3432 $as_echo_n "(cached) " >&6 3433else 3434 ac_build_alias=$build_alias 3435test "x$ac_build_alias" = x && 3436 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3437test "x$ac_build_alias" = x && 3438 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3439ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3440 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3441 3442fi 3443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3444$as_echo "$ac_cv_build" >&6; } 3445case $ac_cv_build in 3446*-*-*) ;; 3447*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3448esac 3449build=$ac_cv_build 3450ac_save_IFS=$IFS; IFS='-' 3451set x $ac_cv_build 3452shift 3453build_cpu=$1 3454build_vendor=$2 3455shift; shift 3456# Remember, the first character of IFS is used to create $*, 3457# except with old shells: 3458build_os=$* 3459IFS=$ac_save_IFS 3460case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3461 3462 3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3464$as_echo_n "checking host system type... " >&6; } 3465if ${ac_cv_host+:} false; then : 3466 $as_echo_n "(cached) " >&6 3467else 3468 if test "x$host_alias" = x; then 3469 ac_cv_host=$ac_cv_build 3470else 3471 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3472 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3473fi 3474 3475fi 3476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3477$as_echo "$ac_cv_host" >&6; } 3478case $ac_cv_host in 3479*-*-*) ;; 3480*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3481esac 3482host=$ac_cv_host 3483ac_save_IFS=$IFS; IFS='-' 3484set x $ac_cv_host 3485shift 3486host_cpu=$1 3487host_vendor=$2 3488shift; shift 3489# Remember, the first character of IFS is used to create $*, 3490# except with old shells: 3491host_os=$* 3492IFS=$ac_save_IFS 3493case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3494 3495 3496 3497 3498ac_ext=c 3499ac_cpp='$CPP $CPPFLAGS' 3500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3502ac_compiler_gnu=$ac_cv_c_compiler_gnu 3503if test -n "$ac_tool_prefix"; then 3504 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3505set dummy ${ac_tool_prefix}gcc; ac_word=$2 3506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3507$as_echo_n "checking for $ac_word... " >&6; } 3508if ${ac_cv_prog_CC+:} false; then : 3509 $as_echo_n "(cached) " >&6 3510else 3511 if test -n "$CC"; then 3512 ac_cv_prog_CC="$CC" # Let the user override the test. 3513else 3514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3515for as_dir in $PATH 3516do 3517 IFS=$as_save_IFS 3518 test -z "$as_dir" && as_dir=. 3519 for ac_exec_ext in '' $ac_executable_extensions; do 3520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3521 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3523 break 2 3524 fi 3525done 3526 done 3527IFS=$as_save_IFS 3528 3529fi 3530fi 3531CC=$ac_cv_prog_CC 3532if test -n "$CC"; then 3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3534$as_echo "$CC" >&6; } 3535else 3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3537$as_echo "no" >&6; } 3538fi 3539 3540 3541fi 3542if test -z "$ac_cv_prog_CC"; then 3543 ac_ct_CC=$CC 3544 # Extract the first word of "gcc", so it can be a program name with args. 3545set dummy gcc; ac_word=$2 3546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3547$as_echo_n "checking for $ac_word... " >&6; } 3548if ${ac_cv_prog_ac_ct_CC+:} false; then : 3549 $as_echo_n "(cached) " >&6 3550else 3551 if test -n "$ac_ct_CC"; then 3552 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3553else 3554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3555for as_dir in $PATH 3556do 3557 IFS=$as_save_IFS 3558 test -z "$as_dir" && as_dir=. 3559 for ac_exec_ext in '' $ac_executable_extensions; do 3560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3561 ac_cv_prog_ac_ct_CC="gcc" 3562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3563 break 2 3564 fi 3565done 3566 done 3567IFS=$as_save_IFS 3568 3569fi 3570fi 3571ac_ct_CC=$ac_cv_prog_ac_ct_CC 3572if test -n "$ac_ct_CC"; then 3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3574$as_echo "$ac_ct_CC" >&6; } 3575else 3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3577$as_echo "no" >&6; } 3578fi 3579 3580 if test "x$ac_ct_CC" = x; then 3581 CC="" 3582 else 3583 case $cross_compiling:$ac_tool_warned in 3584yes:) 3585{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3586$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3587ac_tool_warned=yes ;; 3588esac 3589 CC=$ac_ct_CC 3590 fi 3591else 3592 CC="$ac_cv_prog_CC" 3593fi 3594 3595if test -z "$CC"; then 3596 if test -n "$ac_tool_prefix"; then 3597 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3598set dummy ${ac_tool_prefix}cc; ac_word=$2 3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3600$as_echo_n "checking for $ac_word... " >&6; } 3601if ${ac_cv_prog_CC+:} false; then : 3602 $as_echo_n "(cached) " >&6 3603else 3604 if test -n "$CC"; then 3605 ac_cv_prog_CC="$CC" # Let the user override the test. 3606else 3607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3608for as_dir in $PATH 3609do 3610 IFS=$as_save_IFS 3611 test -z "$as_dir" && as_dir=. 3612 for ac_exec_ext in '' $ac_executable_extensions; do 3613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3614 ac_cv_prog_CC="${ac_tool_prefix}cc" 3615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3616 break 2 3617 fi 3618done 3619 done 3620IFS=$as_save_IFS 3621 3622fi 3623fi 3624CC=$ac_cv_prog_CC 3625if test -n "$CC"; then 3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3627$as_echo "$CC" >&6; } 3628else 3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3630$as_echo "no" >&6; } 3631fi 3632 3633 3634 fi 3635fi 3636if test -z "$CC"; then 3637 # Extract the first word of "cc", so it can be a program name with args. 3638set dummy cc; ac_word=$2 3639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3640$as_echo_n "checking for $ac_word... " >&6; } 3641if ${ac_cv_prog_CC+:} false; then : 3642 $as_echo_n "(cached) " >&6 3643else 3644 if test -n "$CC"; then 3645 ac_cv_prog_CC="$CC" # Let the user override the test. 3646else 3647 ac_prog_rejected=no 3648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3649for as_dir in $PATH 3650do 3651 IFS=$as_save_IFS 3652 test -z "$as_dir" && as_dir=. 3653 for ac_exec_ext in '' $ac_executable_extensions; do 3654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3655 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3656 ac_prog_rejected=yes 3657 continue 3658 fi 3659 ac_cv_prog_CC="cc" 3660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3661 break 2 3662 fi 3663done 3664 done 3665IFS=$as_save_IFS 3666 3667if test $ac_prog_rejected = yes; then 3668 # We found a bogon in the path, so make sure we never use it. 3669 set dummy $ac_cv_prog_CC 3670 shift 3671 if test $# != 0; then 3672 # We chose a different compiler from the bogus one. 3673 # However, it has the same basename, so the bogon will be chosen 3674 # first if we set CC to just the basename; use the full file name. 3675 shift 3676 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3677 fi 3678fi 3679fi 3680fi 3681CC=$ac_cv_prog_CC 3682if test -n "$CC"; then 3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3684$as_echo "$CC" >&6; } 3685else 3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3687$as_echo "no" >&6; } 3688fi 3689 3690 3691fi 3692if test -z "$CC"; then 3693 if test -n "$ac_tool_prefix"; then 3694 for ac_prog in cl.exe 3695 do 3696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3697set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3699$as_echo_n "checking for $ac_word... " >&6; } 3700if ${ac_cv_prog_CC+:} false; then : 3701 $as_echo_n "(cached) " >&6 3702else 3703 if test -n "$CC"; then 3704 ac_cv_prog_CC="$CC" # Let the user override the test. 3705else 3706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3707for as_dir in $PATH 3708do 3709 IFS=$as_save_IFS 3710 test -z "$as_dir" && as_dir=. 3711 for ac_exec_ext in '' $ac_executable_extensions; do 3712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3713 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3715 break 2 3716 fi 3717done 3718 done 3719IFS=$as_save_IFS 3720 3721fi 3722fi 3723CC=$ac_cv_prog_CC 3724if test -n "$CC"; then 3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3726$as_echo "$CC" >&6; } 3727else 3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3729$as_echo "no" >&6; } 3730fi 3731 3732 3733 test -n "$CC" && break 3734 done 3735fi 3736if test -z "$CC"; then 3737 ac_ct_CC=$CC 3738 for ac_prog in cl.exe 3739do 3740 # Extract the first word of "$ac_prog", so it can be a program name with args. 3741set dummy $ac_prog; ac_word=$2 3742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3743$as_echo_n "checking for $ac_word... " >&6; } 3744if ${ac_cv_prog_ac_ct_CC+:} false; then : 3745 $as_echo_n "(cached) " >&6 3746else 3747 if test -n "$ac_ct_CC"; then 3748 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3749else 3750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3751for as_dir in $PATH 3752do 3753 IFS=$as_save_IFS 3754 test -z "$as_dir" && as_dir=. 3755 for ac_exec_ext in '' $ac_executable_extensions; do 3756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3757 ac_cv_prog_ac_ct_CC="$ac_prog" 3758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3759 break 2 3760 fi 3761done 3762 done 3763IFS=$as_save_IFS 3764 3765fi 3766fi 3767ac_ct_CC=$ac_cv_prog_ac_ct_CC 3768if test -n "$ac_ct_CC"; then 3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3770$as_echo "$ac_ct_CC" >&6; } 3771else 3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3773$as_echo "no" >&6; } 3774fi 3775 3776 3777 test -n "$ac_ct_CC" && break 3778done 3779 3780 if test "x$ac_ct_CC" = x; then 3781 CC="" 3782 else 3783 case $cross_compiling:$ac_tool_warned in 3784yes:) 3785{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3786$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3787ac_tool_warned=yes ;; 3788esac 3789 CC=$ac_ct_CC 3790 fi 3791fi 3792 3793fi 3794 3795 3796test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3798as_fn_error $? "no acceptable C compiler found in \$PATH 3799See \`config.log' for more details" "$LINENO" 5; } 3800 3801# Provide some information about the compiler. 3802$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3803set X $ac_compile 3804ac_compiler=$2 3805for ac_option in --version -v -V -qversion; do 3806 { { ac_try="$ac_compiler $ac_option >&5" 3807case "(($ac_try" in 3808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3809 *) ac_try_echo=$ac_try;; 3810esac 3811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3812$as_echo "$ac_try_echo"; } >&5 3813 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3814 ac_status=$? 3815 if test -s conftest.err; then 3816 sed '10a\ 3817... rest of stderr output deleted ... 3818 10q' conftest.err >conftest.er1 3819 cat conftest.er1 >&5 3820 fi 3821 rm -f conftest.er1 conftest.err 3822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3823 test $ac_status = 0; } 3824done 3825 3826cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3827/* end confdefs.h. */ 3828 3829int 3830main () 3831{ 3832 3833 ; 3834 return 0; 3835} 3836_ACEOF 3837ac_clean_files_save=$ac_clean_files 3838ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3839# Try to create an executable without -o first, disregard a.out. 3840# It will help us diagnose broken compilers, and finding out an intuition 3841# of exeext. 3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3843$as_echo_n "checking whether the C compiler works... " >&6; } 3844ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3845 3846# The possible output files: 3847ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3848 3849ac_rmfiles= 3850for ac_file in $ac_files 3851do 3852 case $ac_file in 3853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3854 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3855 esac 3856done 3857rm -f $ac_rmfiles 3858 3859if { { ac_try="$ac_link_default" 3860case "(($ac_try" in 3861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3862 *) ac_try_echo=$ac_try;; 3863esac 3864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3865$as_echo "$ac_try_echo"; } >&5 3866 (eval "$ac_link_default") 2>&5 3867 ac_status=$? 3868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3869 test $ac_status = 0; }; then : 3870 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3871# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3872# in a Makefile. We should not override ac_cv_exeext if it was cached, 3873# so that the user can short-circuit this test for compilers unknown to 3874# Autoconf. 3875for ac_file in $ac_files '' 3876do 3877 test -f "$ac_file" || continue 3878 case $ac_file in 3879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3880 ;; 3881 [ab].out ) 3882 # We found the default executable, but exeext='' is most 3883 # certainly right. 3884 break;; 3885 *.* ) 3886 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3887 then :; else 3888 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3889 fi 3890 # We set ac_cv_exeext here because the later test for it is not 3891 # safe: cross compilers may not add the suffix if given an `-o' 3892 # argument, so we may need to know it at that point already. 3893 # Even if this section looks crufty: it has the advantage of 3894 # actually working. 3895 break;; 3896 * ) 3897 break;; 3898 esac 3899done 3900test "$ac_cv_exeext" = no && ac_cv_exeext= 3901 3902else 3903 ac_file='' 3904fi 3905if test -z "$ac_file"; then : 3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3907$as_echo "no" >&6; } 3908$as_echo "$as_me: failed program was:" >&5 3909sed 's/^/| /' conftest.$ac_ext >&5 3910 3911{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3912$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3913as_fn_error 77 "C compiler cannot create executables 3914See \`config.log' for more details" "$LINENO" 5; } 3915else 3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3917$as_echo "yes" >&6; } 3918fi 3919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3920$as_echo_n "checking for C compiler default output file name... " >&6; } 3921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3922$as_echo "$ac_file" >&6; } 3923ac_exeext=$ac_cv_exeext 3924 3925rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3926ac_clean_files=$ac_clean_files_save 3927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3928$as_echo_n "checking for suffix of executables... " >&6; } 3929if { { ac_try="$ac_link" 3930case "(($ac_try" in 3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3932 *) ac_try_echo=$ac_try;; 3933esac 3934eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3935$as_echo "$ac_try_echo"; } >&5 3936 (eval "$ac_link") 2>&5 3937 ac_status=$? 3938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3939 test $ac_status = 0; }; then : 3940 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3941# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3942# work properly (i.e., refer to `conftest.exe'), while it won't with 3943# `rm'. 3944for ac_file in conftest.exe conftest conftest.*; do 3945 test -f "$ac_file" || continue 3946 case $ac_file in 3947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3948 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3949 break;; 3950 * ) break;; 3951 esac 3952done 3953else 3954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3955$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3956as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3957See \`config.log' for more details" "$LINENO" 5; } 3958fi 3959rm -f conftest conftest$ac_cv_exeext 3960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3961$as_echo "$ac_cv_exeext" >&6; } 3962 3963rm -f conftest.$ac_ext 3964EXEEXT=$ac_cv_exeext 3965ac_exeext=$EXEEXT 3966cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3967/* end confdefs.h. */ 3968#include <stdio.h> 3969int 3970main () 3971{ 3972FILE *f = fopen ("conftest.out", "w"); 3973 return ferror (f) || fclose (f) != 0; 3974 3975 ; 3976 return 0; 3977} 3978_ACEOF 3979ac_clean_files="$ac_clean_files conftest.out" 3980# Check that the compiler produces executables we can run. If not, either 3981# the compiler is broken, or we cross compile. 3982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3983$as_echo_n "checking whether we are cross compiling... " >&6; } 3984if test "$cross_compiling" != yes; then 3985 { { ac_try="$ac_link" 3986case "(($ac_try" in 3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3988 *) ac_try_echo=$ac_try;; 3989esac 3990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3991$as_echo "$ac_try_echo"; } >&5 3992 (eval "$ac_link") 2>&5 3993 ac_status=$? 3994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3995 test $ac_status = 0; } 3996 if { ac_try='./conftest$ac_cv_exeext' 3997 { { case "(($ac_try" in 3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3999 *) ac_try_echo=$ac_try;; 4000esac 4001eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4002$as_echo "$ac_try_echo"; } >&5 4003 (eval "$ac_try") 2>&5 4004 ac_status=$? 4005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4006 test $ac_status = 0; }; }; then 4007 cross_compiling=no 4008 else 4009 if test "$cross_compiling" = maybe; then 4010 cross_compiling=yes 4011 else 4012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4013$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4014as_fn_error $? "cannot run C compiled programs. 4015If you meant to cross compile, use \`--host'. 4016See \`config.log' for more details" "$LINENO" 5; } 4017 fi 4018 fi 4019fi 4020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4021$as_echo "$cross_compiling" >&6; } 4022 4023rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4024ac_clean_files=$ac_clean_files_save 4025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4026$as_echo_n "checking for suffix of object files... " >&6; } 4027if ${ac_cv_objext+:} false; then : 4028 $as_echo_n "(cached) " >&6 4029else 4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4031/* end confdefs.h. */ 4032 4033int 4034main () 4035{ 4036 4037 ; 4038 return 0; 4039} 4040_ACEOF 4041rm -f conftest.o conftest.obj 4042if { { ac_try="$ac_compile" 4043case "(($ac_try" in 4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4045 *) ac_try_echo=$ac_try;; 4046esac 4047eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4048$as_echo "$ac_try_echo"; } >&5 4049 (eval "$ac_compile") 2>&5 4050 ac_status=$? 4051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4052 test $ac_status = 0; }; then : 4053 for ac_file in conftest.o conftest.obj conftest.*; do 4054 test -f "$ac_file" || continue; 4055 case $ac_file in 4056 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4057 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4058 break;; 4059 esac 4060done 4061else 4062 $as_echo "$as_me: failed program was:" >&5 4063sed 's/^/| /' conftest.$ac_ext >&5 4064 4065{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4067as_fn_error $? "cannot compute suffix of object files: cannot compile 4068See \`config.log' for more details" "$LINENO" 5; } 4069fi 4070rm -f conftest.$ac_cv_objext conftest.$ac_ext 4071fi 4072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4073$as_echo "$ac_cv_objext" >&6; } 4074OBJEXT=$ac_cv_objext 4075ac_objext=$OBJEXT 4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4077$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4078if ${ac_cv_c_compiler_gnu+:} false; then : 4079 $as_echo_n "(cached) " >&6 4080else 4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4082/* end confdefs.h. */ 4083 4084int 4085main () 4086{ 4087#ifndef __GNUC__ 4088 choke me 4089#endif 4090 4091 ; 4092 return 0; 4093} 4094_ACEOF 4095if ac_fn_c_try_compile "$LINENO"; then : 4096 ac_compiler_gnu=yes 4097else 4098 ac_compiler_gnu=no 4099fi 4100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4101ac_cv_c_compiler_gnu=$ac_compiler_gnu 4102 4103fi 4104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4105$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4106if test $ac_compiler_gnu = yes; then 4107 GCC=yes 4108else 4109 GCC= 4110fi 4111ac_test_CFLAGS=${CFLAGS+set} 4112ac_save_CFLAGS=$CFLAGS 4113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4114$as_echo_n "checking whether $CC accepts -g... " >&6; } 4115if ${ac_cv_prog_cc_g+:} false; then : 4116 $as_echo_n "(cached) " >&6 4117else 4118 ac_save_c_werror_flag=$ac_c_werror_flag 4119 ac_c_werror_flag=yes 4120 ac_cv_prog_cc_g=no 4121 CFLAGS="-g" 4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4123/* end confdefs.h. */ 4124 4125int 4126main () 4127{ 4128 4129 ; 4130 return 0; 4131} 4132_ACEOF 4133if ac_fn_c_try_compile "$LINENO"; then : 4134 ac_cv_prog_cc_g=yes 4135else 4136 CFLAGS="" 4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4138/* end confdefs.h. */ 4139 4140int 4141main () 4142{ 4143 4144 ; 4145 return 0; 4146} 4147_ACEOF 4148if ac_fn_c_try_compile "$LINENO"; then : 4149 4150else 4151 ac_c_werror_flag=$ac_save_c_werror_flag 4152 CFLAGS="-g" 4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4154/* end confdefs.h. */ 4155 4156int 4157main () 4158{ 4159 4160 ; 4161 return 0; 4162} 4163_ACEOF 4164if ac_fn_c_try_compile "$LINENO"; then : 4165 ac_cv_prog_cc_g=yes 4166fi 4167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4168fi 4169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4170fi 4171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4172 ac_c_werror_flag=$ac_save_c_werror_flag 4173fi 4174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4175$as_echo "$ac_cv_prog_cc_g" >&6; } 4176if test "$ac_test_CFLAGS" = set; then 4177 CFLAGS=$ac_save_CFLAGS 4178elif test $ac_cv_prog_cc_g = yes; then 4179 if test "$GCC" = yes; then 4180 CFLAGS="-g -O2" 4181 else 4182 CFLAGS="-g" 4183 fi 4184else 4185 if test "$GCC" = yes; then 4186 CFLAGS="-O2" 4187 else 4188 CFLAGS= 4189 fi 4190fi 4191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4192$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4193if ${ac_cv_prog_cc_c89+:} false; then : 4194 $as_echo_n "(cached) " >&6 4195else 4196 ac_cv_prog_cc_c89=no 4197ac_save_CC=$CC 4198cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4199/* end confdefs.h. */ 4200#include <stdarg.h> 4201#include <stdio.h> 4202struct stat; 4203/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4204struct buf { int x; }; 4205FILE * (*rcsopen) (struct buf *, struct stat *, int); 4206static char *e (p, i) 4207 char **p; 4208 int i; 4209{ 4210 return p[i]; 4211} 4212static char *f (char * (*g) (char **, int), char **p, ...) 4213{ 4214 char *s; 4215 va_list v; 4216 va_start (v,p); 4217 s = g (p, va_arg (v,int)); 4218 va_end (v); 4219 return s; 4220} 4221 4222/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4223 function prototypes and stuff, but not '\xHH' hex character constants. 4224 These don't provoke an error unfortunately, instead are silently treated 4225 as 'x'. The following induces an error, until -std is added to get 4226 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4227 array size at least. It's necessary to write '\x00'==0 to get something 4228 that's true only with -std. */ 4229int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4230 4231/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4232 inside strings and character constants. */ 4233#define FOO(x) 'x' 4234int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4235 4236int test (int i, double x); 4237struct s1 {int (*f) (int a);}; 4238struct s2 {int (*f) (double a);}; 4239int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4240int argc; 4241char **argv; 4242int 4243main () 4244{ 4245return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4246 ; 4247 return 0; 4248} 4249_ACEOF 4250for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4251 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4252do 4253 CC="$ac_save_CC $ac_arg" 4254 if ac_fn_c_try_compile "$LINENO"; then : 4255 ac_cv_prog_cc_c89=$ac_arg 4256fi 4257rm -f core conftest.err conftest.$ac_objext 4258 test "x$ac_cv_prog_cc_c89" != "xno" && break 4259done 4260rm -f conftest.$ac_ext 4261CC=$ac_save_CC 4262 4263fi 4264# AC_CACHE_VAL 4265case "x$ac_cv_prog_cc_c89" in 4266 x) 4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4268$as_echo "none needed" >&6; } ;; 4269 xno) 4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4271$as_echo "unsupported" >&6; } ;; 4272 *) 4273 CC="$CC $ac_cv_prog_cc_c89" 4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4275$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4276esac 4277if test "x$ac_cv_prog_cc_c89" != xno; then : 4278 4279fi 4280 4281ac_ext=c 4282ac_cpp='$CPP $CPPFLAGS' 4283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4285ac_compiler_gnu=$ac_cv_c_compiler_gnu 4286DEPDIR="${am__leading_dot}deps" 4287 4288ac_config_commands="$ac_config_commands depfiles" 4289 4290 4291am_make=${MAKE-make} 4292cat > confinc << 'END' 4293am__doit: 4294 @echo this is the am__doit target 4295.PHONY: am__doit 4296END 4297# If we don't find an include directive, just comment out the code. 4298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4299$as_echo_n "checking for style of include used by $am_make... " >&6; } 4300am__include="#" 4301am__quote= 4302_am_result=none 4303# First try GNU make style include. 4304echo "include confinc" > confmf 4305# Ignore all kinds of additional output from 'make'. 4306case `$am_make -s -f confmf 2> /dev/null` in #( 4307*the\ am__doit\ target*) 4308 am__include=include 4309 am__quote= 4310 _am_result=GNU 4311 ;; 4312esac 4313# Now try BSD make style include. 4314if test "$am__include" = "#"; then 4315 echo '.include "confinc"' > confmf 4316 case `$am_make -s -f confmf 2> /dev/null` in #( 4317 *the\ am__doit\ target*) 4318 am__include=.include 4319 am__quote="\"" 4320 _am_result=BSD 4321 ;; 4322 esac 4323fi 4324 4325 4326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4327$as_echo "$_am_result" >&6; } 4328rm -f confinc confmf 4329 4330# Check whether --enable-dependency-tracking was given. 4331if test "${enable_dependency_tracking+set}" = set; then : 4332 enableval=$enable_dependency_tracking; 4333fi 4334 4335if test "x$enable_dependency_tracking" != xno; then 4336 am_depcomp="$ac_aux_dir/depcomp" 4337 AMDEPBACKSLASH='\' 4338 am__nodep='_no' 4339fi 4340 if test "x$enable_dependency_tracking" != xno; then 4341 AMDEP_TRUE= 4342 AMDEP_FALSE='#' 4343else 4344 AMDEP_TRUE='#' 4345 AMDEP_FALSE= 4346fi 4347 4348 4349 4350depcc="$CC" am_compiler_list= 4351 4352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4353$as_echo_n "checking dependency style of $depcc... " >&6; } 4354if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4355 $as_echo_n "(cached) " >&6 4356else 4357 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4358 # We make a subdir and do the tests there. Otherwise we can end up 4359 # making bogus files that we don't know about and never remove. For 4360 # instance it was reported that on HP-UX the gcc test will end up 4361 # making a dummy file named 'D' -- because '-MD' means "put the output 4362 # in D". 4363 rm -rf conftest.dir 4364 mkdir conftest.dir 4365 # Copy depcomp to subdir because otherwise we won't find it if we're 4366 # using a relative directory. 4367 cp "$am_depcomp" conftest.dir 4368 cd conftest.dir 4369 # We will build objects and dependencies in a subdirectory because 4370 # it helps to detect inapplicable dependency modes. For instance 4371 # both Tru64's cc and ICC support -MD to output dependencies as a 4372 # side effect of compilation, but ICC will put the dependencies in 4373 # the current directory while Tru64 will put them in the object 4374 # directory. 4375 mkdir sub 4376 4377 am_cv_CC_dependencies_compiler_type=none 4378 if test "$am_compiler_list" = ""; then 4379 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4380 fi 4381 am__universal=false 4382 case " $depcc " in #( 4383 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4384 esac 4385 4386 for depmode in $am_compiler_list; do 4387 # Setup a source with many dependencies, because some compilers 4388 # like to wrap large dependency lists on column 80 (with \), and 4389 # we should not choose a depcomp mode which is confused by this. 4390 # 4391 # We need to recreate these files for each test, as the compiler may 4392 # overwrite some of them when testing with obscure command lines. 4393 # This happens at least with the AIX C compiler. 4394 : > sub/conftest.c 4395 for i in 1 2 3 4 5 6; do 4396 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4397 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4398 # Solaris 10 /bin/sh. 4399 echo '/* dummy */' > sub/conftst$i.h 4400 done 4401 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4402 4403 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4404 # mode. It turns out that the SunPro C++ compiler does not properly 4405 # handle '-M -o', and we need to detect this. Also, some Intel 4406 # versions had trouble with output in subdirs. 4407 am__obj=sub/conftest.${OBJEXT-o} 4408 am__minus_obj="-o $am__obj" 4409 case $depmode in 4410 gcc) 4411 # This depmode causes a compiler race in universal mode. 4412 test "$am__universal" = false || continue 4413 ;; 4414 nosideeffect) 4415 # After this tag, mechanisms are not by side-effect, so they'll 4416 # only be used when explicitly requested. 4417 if test "x$enable_dependency_tracking" = xyes; then 4418 continue 4419 else 4420 break 4421 fi 4422 ;; 4423 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4424 # This compiler won't grok '-c -o', but also, the minuso test has 4425 # not run yet. These depmodes are late enough in the game, and 4426 # so weak that their functioning should not be impacted. 4427 am__obj=conftest.${OBJEXT-o} 4428 am__minus_obj= 4429 ;; 4430 none) break ;; 4431 esac 4432 if depmode=$depmode \ 4433 source=sub/conftest.c object=$am__obj \ 4434 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4435 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4436 >/dev/null 2>conftest.err && 4437 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4438 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4439 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4440 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4441 # icc doesn't choke on unknown options, it will just issue warnings 4442 # or remarks (even with -Werror). So we grep stderr for any message 4443 # that says an option was ignored or not supported. 4444 # When given -MP, icc 7.0 and 7.1 complain thusly: 4445 # icc: Command line warning: ignoring option '-M'; no argument required 4446 # The diagnosis changed in icc 8.0: 4447 # icc: Command line remark: option '-MP' not supported 4448 if (grep 'ignoring option' conftest.err || 4449 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4450 am_cv_CC_dependencies_compiler_type=$depmode 4451 break 4452 fi 4453 fi 4454 done 4455 4456 cd .. 4457 rm -rf conftest.dir 4458else 4459 am_cv_CC_dependencies_compiler_type=none 4460fi 4461 4462fi 4463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4464$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4465CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4466 4467 if 4468 test "x$enable_dependency_tracking" != xno \ 4469 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4470 am__fastdepCC_TRUE= 4471 am__fastdepCC_FALSE='#' 4472else 4473 am__fastdepCC_TRUE='#' 4474 am__fastdepCC_FALSE= 4475fi 4476 4477 4478if test "x$CC" != xcc; then 4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 4480$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 4481else 4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 4483$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 4484fi 4485set dummy $CC; ac_cc=`$as_echo "$2" | 4486 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4487if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 4488 $as_echo_n "(cached) " >&6 4489else 4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4491/* end confdefs.h. */ 4492 4493int 4494main () 4495{ 4496 4497 ; 4498 return 0; 4499} 4500_ACEOF 4501# Make sure it works both with $CC and with simple cc. 4502# We do the test twice because some compilers refuse to overwrite an 4503# existing .o file with -o, though they will create one. 4504ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4505rm -f conftest2.* 4506if { { case "(($ac_try" in 4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4508 *) ac_try_echo=$ac_try;; 4509esac 4510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4511$as_echo "$ac_try_echo"; } >&5 4512 (eval "$ac_try") 2>&5 4513 ac_status=$? 4514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4515 test $ac_status = 0; } && 4516 test -f conftest2.$ac_objext && { { case "(($ac_try" in 4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4518 *) ac_try_echo=$ac_try;; 4519esac 4520eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4521$as_echo "$ac_try_echo"; } >&5 4522 (eval "$ac_try") 2>&5 4523 ac_status=$? 4524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4525 test $ac_status = 0; }; 4526then 4527 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 4528 if test "x$CC" != xcc; then 4529 # Test first that cc exists at all. 4530 if { ac_try='cc -c conftest.$ac_ext >&5' 4531 { { case "(($ac_try" in 4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4533 *) ac_try_echo=$ac_try;; 4534esac 4535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4536$as_echo "$ac_try_echo"; } >&5 4537 (eval "$ac_try") 2>&5 4538 ac_status=$? 4539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4540 test $ac_status = 0; }; }; then 4541 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4542 rm -f conftest2.* 4543 if { { case "(($ac_try" in 4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4545 *) ac_try_echo=$ac_try;; 4546esac 4547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4548$as_echo "$ac_try_echo"; } >&5 4549 (eval "$ac_try") 2>&5 4550 ac_status=$? 4551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4552 test $ac_status = 0; } && 4553 test -f conftest2.$ac_objext && { { case "(($ac_try" in 4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4555 *) ac_try_echo=$ac_try;; 4556esac 4557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4558$as_echo "$ac_try_echo"; } >&5 4559 (eval "$ac_try") 2>&5 4560 ac_status=$? 4561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4562 test $ac_status = 0; }; 4563 then 4564 # cc works too. 4565 : 4566 else 4567 # cc exists but doesn't like -o. 4568 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4569 fi 4570 fi 4571 fi 4572else 4573 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4574fi 4575rm -f core conftest* 4576 4577fi 4578if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4580$as_echo "yes" >&6; } 4581else 4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4583$as_echo "no" >&6; } 4584 4585$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 4586 4587fi 4588 4589# FIXME: we rely on the cache variable name because 4590# there is no other way. 4591set dummy $CC 4592am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4593eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 4594if test "$am_t" != yes; then 4595 # Losing compiler, so override with the script. 4596 # FIXME: It is wrong to rewrite CC. 4597 # But if we don't then we get into trouble of one sort or another. 4598 # A longer-term fix would be to have automake use am__CC in this case, 4599 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4600 CC="$am_aux_dir/compile $CC" 4601fi 4602 4603 4604case `pwd` in 4605 *\ * | *\ *) 4606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4607$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4608esac 4609 4610 4611 4612macro_version='2.4.2' 4613macro_revision='1.3337' 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627ltmain="$ac_aux_dir/ltmain.sh" 4628 4629# Backslashify metacharacters that are still active within 4630# double-quoted strings. 4631sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4632 4633# Same as above, but do not quote variable references. 4634double_quote_subst='s/\(["`\\]\)/\\\1/g' 4635 4636# Sed substitution to delay expansion of an escaped shell variable in a 4637# double_quote_subst'ed string. 4638delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4639 4640# Sed substitution to delay expansion of an escaped single quote. 4641delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4642 4643# Sed substitution to avoid accidental globbing in evaled expressions 4644no_glob_subst='s/\*/\\\*/g' 4645 4646ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4647ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4648ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4649 4650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4651$as_echo_n "checking how to print strings... " >&6; } 4652# Test print first, because it will be a builtin if present. 4653if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4654 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4655 ECHO='print -r --' 4656elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4657 ECHO='printf %s\n' 4658else 4659 # Use this function as a fallback that always works. 4660 func_fallback_echo () 4661 { 4662 eval 'cat <<_LTECHO_EOF 4663$1 4664_LTECHO_EOF' 4665 } 4666 ECHO='func_fallback_echo' 4667fi 4668 4669# func_echo_all arg... 4670# Invoke $ECHO with all args, space-separated. 4671func_echo_all () 4672{ 4673 $ECHO "" 4674} 4675 4676case "$ECHO" in 4677 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4678$as_echo "printf" >&6; } ;; 4679 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4680$as_echo "print -r" >&6; } ;; 4681 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4682$as_echo "cat" >&6; } ;; 4683esac 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4699$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4700if ${ac_cv_path_SED+:} false; then : 4701 $as_echo_n "(cached) " >&6 4702else 4703 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4704 for ac_i in 1 2 3 4 5 6 7; do 4705 ac_script="$ac_script$as_nl$ac_script" 4706 done 4707 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4708 { ac_script=; unset ac_script;} 4709 if test -z "$SED"; then 4710 ac_path_SED_found=false 4711 # Loop through the user's path and test for each of PROGNAME-LIST 4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4713for as_dir in $PATH 4714do 4715 IFS=$as_save_IFS 4716 test -z "$as_dir" && as_dir=. 4717 for ac_prog in sed gsed; do 4718 for ac_exec_ext in '' $ac_executable_extensions; do 4719 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4720 as_fn_executable_p "$ac_path_SED" || continue 4721# Check for GNU ac_path_SED and select it if it is found. 4722 # Check for GNU $ac_path_SED 4723case `"$ac_path_SED" --version 2>&1` in 4724*GNU*) 4725 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4726*) 4727 ac_count=0 4728 $as_echo_n 0123456789 >"conftest.in" 4729 while : 4730 do 4731 cat "conftest.in" "conftest.in" >"conftest.tmp" 4732 mv "conftest.tmp" "conftest.in" 4733 cp "conftest.in" "conftest.nl" 4734 $as_echo '' >> "conftest.nl" 4735 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4736 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4737 as_fn_arith $ac_count + 1 && ac_count=$as_val 4738 if test $ac_count -gt ${ac_path_SED_max-0}; then 4739 # Best one so far, save it but keep looking for a better one 4740 ac_cv_path_SED="$ac_path_SED" 4741 ac_path_SED_max=$ac_count 4742 fi 4743 # 10*(2^10) chars as input seems more than enough 4744 test $ac_count -gt 10 && break 4745 done 4746 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4747esac 4748 4749 $ac_path_SED_found && break 3 4750 done 4751 done 4752 done 4753IFS=$as_save_IFS 4754 if test -z "$ac_cv_path_SED"; then 4755 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4756 fi 4757else 4758 ac_cv_path_SED=$SED 4759fi 4760 4761fi 4762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4763$as_echo "$ac_cv_path_SED" >&6; } 4764 SED="$ac_cv_path_SED" 4765 rm -f conftest.sed 4766 4767test -z "$SED" && SED=sed 4768Xsed="$SED -e 1s/^X//" 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4781$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4782if ${ac_cv_path_GREP+:} false; then : 4783 $as_echo_n "(cached) " >&6 4784else 4785 if test -z "$GREP"; then 4786 ac_path_GREP_found=false 4787 # Loop through the user's path and test for each of PROGNAME-LIST 4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4789for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4790do 4791 IFS=$as_save_IFS 4792 test -z "$as_dir" && as_dir=. 4793 for ac_prog in grep ggrep; do 4794 for ac_exec_ext in '' $ac_executable_extensions; do 4795 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4796 as_fn_executable_p "$ac_path_GREP" || continue 4797# Check for GNU ac_path_GREP and select it if it is found. 4798 # Check for GNU $ac_path_GREP 4799case `"$ac_path_GREP" --version 2>&1` in 4800*GNU*) 4801 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4802*) 4803 ac_count=0 4804 $as_echo_n 0123456789 >"conftest.in" 4805 while : 4806 do 4807 cat "conftest.in" "conftest.in" >"conftest.tmp" 4808 mv "conftest.tmp" "conftest.in" 4809 cp "conftest.in" "conftest.nl" 4810 $as_echo 'GREP' >> "conftest.nl" 4811 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4812 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4813 as_fn_arith $ac_count + 1 && ac_count=$as_val 4814 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4815 # Best one so far, save it but keep looking for a better one 4816 ac_cv_path_GREP="$ac_path_GREP" 4817 ac_path_GREP_max=$ac_count 4818 fi 4819 # 10*(2^10) chars as input seems more than enough 4820 test $ac_count -gt 10 && break 4821 done 4822 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4823esac 4824 4825 $ac_path_GREP_found && break 3 4826 done 4827 done 4828 done 4829IFS=$as_save_IFS 4830 if test -z "$ac_cv_path_GREP"; then 4831 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4832 fi 4833else 4834 ac_cv_path_GREP=$GREP 4835fi 4836 4837fi 4838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4839$as_echo "$ac_cv_path_GREP" >&6; } 4840 GREP="$ac_cv_path_GREP" 4841 4842 4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4844$as_echo_n "checking for egrep... " >&6; } 4845if ${ac_cv_path_EGREP+:} false; then : 4846 $as_echo_n "(cached) " >&6 4847else 4848 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4849 then ac_cv_path_EGREP="$GREP -E" 4850 else 4851 if test -z "$EGREP"; then 4852 ac_path_EGREP_found=false 4853 # Loop through the user's path and test for each of PROGNAME-LIST 4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4855for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4856do 4857 IFS=$as_save_IFS 4858 test -z "$as_dir" && as_dir=. 4859 for ac_prog in egrep; do 4860 for ac_exec_ext in '' $ac_executable_extensions; do 4861 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4862 as_fn_executable_p "$ac_path_EGREP" || continue 4863# Check for GNU ac_path_EGREP and select it if it is found. 4864 # Check for GNU $ac_path_EGREP 4865case `"$ac_path_EGREP" --version 2>&1` in 4866*GNU*) 4867 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4868*) 4869 ac_count=0 4870 $as_echo_n 0123456789 >"conftest.in" 4871 while : 4872 do 4873 cat "conftest.in" "conftest.in" >"conftest.tmp" 4874 mv "conftest.tmp" "conftest.in" 4875 cp "conftest.in" "conftest.nl" 4876 $as_echo 'EGREP' >> "conftest.nl" 4877 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4878 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4879 as_fn_arith $ac_count + 1 && ac_count=$as_val 4880 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4881 # Best one so far, save it but keep looking for a better one 4882 ac_cv_path_EGREP="$ac_path_EGREP" 4883 ac_path_EGREP_max=$ac_count 4884 fi 4885 # 10*(2^10) chars as input seems more than enough 4886 test $ac_count -gt 10 && break 4887 done 4888 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4889esac 4890 4891 $ac_path_EGREP_found && break 3 4892 done 4893 done 4894 done 4895IFS=$as_save_IFS 4896 if test -z "$ac_cv_path_EGREP"; then 4897 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4898 fi 4899else 4900 ac_cv_path_EGREP=$EGREP 4901fi 4902 4903 fi 4904fi 4905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4906$as_echo "$ac_cv_path_EGREP" >&6; } 4907 EGREP="$ac_cv_path_EGREP" 4908 4909 4910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4911$as_echo_n "checking for fgrep... " >&6; } 4912if ${ac_cv_path_FGREP+:} false; then : 4913 $as_echo_n "(cached) " >&6 4914else 4915 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4916 then ac_cv_path_FGREP="$GREP -F" 4917 else 4918 if test -z "$FGREP"; then 4919 ac_path_FGREP_found=false 4920 # Loop through the user's path and test for each of PROGNAME-LIST 4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4922for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4923do 4924 IFS=$as_save_IFS 4925 test -z "$as_dir" && as_dir=. 4926 for ac_prog in fgrep; do 4927 for ac_exec_ext in '' $ac_executable_extensions; do 4928 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4929 as_fn_executable_p "$ac_path_FGREP" || continue 4930# Check for GNU ac_path_FGREP and select it if it is found. 4931 # Check for GNU $ac_path_FGREP 4932case `"$ac_path_FGREP" --version 2>&1` in 4933*GNU*) 4934 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4935*) 4936 ac_count=0 4937 $as_echo_n 0123456789 >"conftest.in" 4938 while : 4939 do 4940 cat "conftest.in" "conftest.in" >"conftest.tmp" 4941 mv "conftest.tmp" "conftest.in" 4942 cp "conftest.in" "conftest.nl" 4943 $as_echo 'FGREP' >> "conftest.nl" 4944 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4946 as_fn_arith $ac_count + 1 && ac_count=$as_val 4947 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4948 # Best one so far, save it but keep looking for a better one 4949 ac_cv_path_FGREP="$ac_path_FGREP" 4950 ac_path_FGREP_max=$ac_count 4951 fi 4952 # 10*(2^10) chars as input seems more than enough 4953 test $ac_count -gt 10 && break 4954 done 4955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4956esac 4957 4958 $ac_path_FGREP_found && break 3 4959 done 4960 done 4961 done 4962IFS=$as_save_IFS 4963 if test -z "$ac_cv_path_FGREP"; then 4964 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4965 fi 4966else 4967 ac_cv_path_FGREP=$FGREP 4968fi 4969 4970 fi 4971fi 4972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4973$as_echo "$ac_cv_path_FGREP" >&6; } 4974 FGREP="$ac_cv_path_FGREP" 4975 4976 4977test -z "$GREP" && GREP=grep 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997# Check whether --with-gnu-ld was given. 4998if test "${with_gnu_ld+set}" = set; then : 4999 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5000else 5001 with_gnu_ld=no 5002fi 5003 5004ac_prog=ld 5005if test "$GCC" = yes; then 5006 # Check if gcc -print-prog-name=ld gives a path. 5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5008$as_echo_n "checking for ld used by $CC... " >&6; } 5009 case $host in 5010 *-*-mingw*) 5011 # gcc leaves a trailing carriage return which upsets mingw 5012 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5013 *) 5014 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5015 esac 5016 case $ac_prog in 5017 # Accept absolute paths. 5018 [\\/]* | ?:[\\/]*) 5019 re_direlt='/[^/][^/]*/\.\./' 5020 # Canonicalize the pathname of ld 5021 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5022 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5023 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5024 done 5025 test -z "$LD" && LD="$ac_prog" 5026 ;; 5027 "") 5028 # If it fails, then pretend we aren't using GCC. 5029 ac_prog=ld 5030 ;; 5031 *) 5032 # If it is relative, then search for the first ld in PATH. 5033 with_gnu_ld=unknown 5034 ;; 5035 esac 5036elif test "$with_gnu_ld" = yes; then 5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5038$as_echo_n "checking for GNU ld... " >&6; } 5039else 5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5041$as_echo_n "checking for non-GNU ld... " >&6; } 5042fi 5043if ${lt_cv_path_LD+:} false; then : 5044 $as_echo_n "(cached) " >&6 5045else 5046 if test -z "$LD"; then 5047 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5048 for ac_dir in $PATH; do 5049 IFS="$lt_save_ifs" 5050 test -z "$ac_dir" && ac_dir=. 5051 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5052 lt_cv_path_LD="$ac_dir/$ac_prog" 5053 # Check to see if the program is GNU ld. I'd rather use --version, 5054 # but apparently some variants of GNU ld only accept -v. 5055 # Break only if it was the GNU/non-GNU ld that we prefer. 5056 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5057 *GNU* | *'with BFD'*) 5058 test "$with_gnu_ld" != no && break 5059 ;; 5060 *) 5061 test "$with_gnu_ld" != yes && break 5062 ;; 5063 esac 5064 fi 5065 done 5066 IFS="$lt_save_ifs" 5067else 5068 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5069fi 5070fi 5071 5072LD="$lt_cv_path_LD" 5073if test -n "$LD"; then 5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5075$as_echo "$LD" >&6; } 5076else 5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5078$as_echo "no" >&6; } 5079fi 5080test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5082$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5083if ${lt_cv_prog_gnu_ld+:} false; then : 5084 $as_echo_n "(cached) " >&6 5085else 5086 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5087case `$LD -v 2>&1 </dev/null` in 5088*GNU* | *'with BFD'*) 5089 lt_cv_prog_gnu_ld=yes 5090 ;; 5091*) 5092 lt_cv_prog_gnu_ld=no 5093 ;; 5094esac 5095fi 5096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5097$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5098with_gnu_ld=$lt_cv_prog_gnu_ld 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5109$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5110if ${lt_cv_path_NM+:} false; then : 5111 $as_echo_n "(cached) " >&6 5112else 5113 if test -n "$NM"; then 5114 # Let the user override the test. 5115 lt_cv_path_NM="$NM" 5116else 5117 lt_nm_to_check="${ac_tool_prefix}nm" 5118 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5119 lt_nm_to_check="$lt_nm_to_check nm" 5120 fi 5121 for lt_tmp_nm in $lt_nm_to_check; do 5122 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5123 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5124 IFS="$lt_save_ifs" 5125 test -z "$ac_dir" && ac_dir=. 5126 tmp_nm="$ac_dir/$lt_tmp_nm" 5127 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5128 # Check to see if the nm accepts a BSD-compat flag. 5129 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5130 # nm: unknown option "B" ignored 5131 # Tru64's nm complains that /dev/null is an invalid object file 5132 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5133 */dev/null* | *'Invalid file or object type'*) 5134 lt_cv_path_NM="$tmp_nm -B" 5135 break 5136 ;; 5137 *) 5138 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5139 */dev/null*) 5140 lt_cv_path_NM="$tmp_nm -p" 5141 break 5142 ;; 5143 *) 5144 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5145 continue # so that we can try to find one that supports BSD flags 5146 ;; 5147 esac 5148 ;; 5149 esac 5150 fi 5151 done 5152 IFS="$lt_save_ifs" 5153 done 5154 : ${lt_cv_path_NM=no} 5155fi 5156fi 5157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5158$as_echo "$lt_cv_path_NM" >&6; } 5159if test "$lt_cv_path_NM" != "no"; then 5160 NM="$lt_cv_path_NM" 5161else 5162 # Didn't find any BSD compatible name lister, look for dumpbin. 5163 if test -n "$DUMPBIN"; then : 5164 # Let the user override the test. 5165 else 5166 if test -n "$ac_tool_prefix"; then 5167 for ac_prog in dumpbin "link -dump" 5168 do 5169 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5170set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5172$as_echo_n "checking for $ac_word... " >&6; } 5173if ${ac_cv_prog_DUMPBIN+:} false; then : 5174 $as_echo_n "(cached) " >&6 5175else 5176 if test -n "$DUMPBIN"; then 5177 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5178else 5179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5180for as_dir in $PATH 5181do 5182 IFS=$as_save_IFS 5183 test -z "$as_dir" && as_dir=. 5184 for ac_exec_ext in '' $ac_executable_extensions; do 5185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5186 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5188 break 2 5189 fi 5190done 5191 done 5192IFS=$as_save_IFS 5193 5194fi 5195fi 5196DUMPBIN=$ac_cv_prog_DUMPBIN 5197if test -n "$DUMPBIN"; then 5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5199$as_echo "$DUMPBIN" >&6; } 5200else 5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5202$as_echo "no" >&6; } 5203fi 5204 5205 5206 test -n "$DUMPBIN" && break 5207 done 5208fi 5209if test -z "$DUMPBIN"; then 5210 ac_ct_DUMPBIN=$DUMPBIN 5211 for ac_prog in dumpbin "link -dump" 5212do 5213 # Extract the first word of "$ac_prog", so it can be a program name with args. 5214set dummy $ac_prog; ac_word=$2 5215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5216$as_echo_n "checking for $ac_word... " >&6; } 5217if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5218 $as_echo_n "(cached) " >&6 5219else 5220 if test -n "$ac_ct_DUMPBIN"; then 5221 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5222else 5223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5224for as_dir in $PATH 5225do 5226 IFS=$as_save_IFS 5227 test -z "$as_dir" && as_dir=. 5228 for ac_exec_ext in '' $ac_executable_extensions; do 5229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5230 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5232 break 2 5233 fi 5234done 5235 done 5236IFS=$as_save_IFS 5237 5238fi 5239fi 5240ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5241if test -n "$ac_ct_DUMPBIN"; then 5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5243$as_echo "$ac_ct_DUMPBIN" >&6; } 5244else 5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5246$as_echo "no" >&6; } 5247fi 5248 5249 5250 test -n "$ac_ct_DUMPBIN" && break 5251done 5252 5253 if test "x$ac_ct_DUMPBIN" = x; then 5254 DUMPBIN=":" 5255 else 5256 case $cross_compiling:$ac_tool_warned in 5257yes:) 5258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5260ac_tool_warned=yes ;; 5261esac 5262 DUMPBIN=$ac_ct_DUMPBIN 5263 fi 5264fi 5265 5266 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5267 *COFF*) 5268 DUMPBIN="$DUMPBIN -symbols" 5269 ;; 5270 *) 5271 DUMPBIN=: 5272 ;; 5273 esac 5274 fi 5275 5276 if test "$DUMPBIN" != ":"; then 5277 NM="$DUMPBIN" 5278 fi 5279fi 5280test -z "$NM" && NM=nm 5281 5282 5283 5284 5285 5286 5287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5288$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5289if ${lt_cv_nm_interface+:} false; then : 5290 $as_echo_n "(cached) " >&6 5291else 5292 lt_cv_nm_interface="BSD nm" 5293 echo "int some_variable = 0;" > conftest.$ac_ext 5294 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5295 (eval "$ac_compile" 2>conftest.err) 5296 cat conftest.err >&5 5297 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5298 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5299 cat conftest.err >&5 5300 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5301 cat conftest.out >&5 5302 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5303 lt_cv_nm_interface="MS dumpbin" 5304 fi 5305 rm -f conftest* 5306fi 5307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5308$as_echo "$lt_cv_nm_interface" >&6; } 5309 5310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5311$as_echo_n "checking whether ln -s works... " >&6; } 5312LN_S=$as_ln_s 5313if test "$LN_S" = "ln -s"; then 5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5315$as_echo "yes" >&6; } 5316else 5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5318$as_echo "no, using $LN_S" >&6; } 5319fi 5320 5321# find the maximum length of command line arguments 5322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5323$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5324if ${lt_cv_sys_max_cmd_len+:} false; then : 5325 $as_echo_n "(cached) " >&6 5326else 5327 i=0 5328 teststring="ABCD" 5329 5330 case $build_os in 5331 msdosdjgpp*) 5332 # On DJGPP, this test can blow up pretty badly due to problems in libc 5333 # (any single argument exceeding 2000 bytes causes a buffer overrun 5334 # during glob expansion). Even if it were fixed, the result of this 5335 # check would be larger than it should be. 5336 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5337 ;; 5338 5339 gnu*) 5340 # Under GNU Hurd, this test is not required because there is 5341 # no limit to the length of command line arguments. 5342 # Libtool will interpret -1 as no limit whatsoever 5343 lt_cv_sys_max_cmd_len=-1; 5344 ;; 5345 5346 cygwin* | mingw* | cegcc*) 5347 # On Win9x/ME, this test blows up -- it succeeds, but takes 5348 # about 5 minutes as the teststring grows exponentially. 5349 # Worse, since 9x/ME are not pre-emptively multitasking, 5350 # you end up with a "frozen" computer, even though with patience 5351 # the test eventually succeeds (with a max line length of 256k). 5352 # Instead, let's just punt: use the minimum linelength reported by 5353 # all of the supported platforms: 8192 (on NT/2K/XP). 5354 lt_cv_sys_max_cmd_len=8192; 5355 ;; 5356 5357 mint*) 5358 # On MiNT this can take a long time and run out of memory. 5359 lt_cv_sys_max_cmd_len=8192; 5360 ;; 5361 5362 amigaos*) 5363 # On AmigaOS with pdksh, this test takes hours, literally. 5364 # So we just punt and use a minimum line length of 8192. 5365 lt_cv_sys_max_cmd_len=8192; 5366 ;; 5367 5368 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5369 # This has been around since 386BSD, at least. Likely further. 5370 if test -x /sbin/sysctl; then 5371 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5372 elif test -x /usr/sbin/sysctl; then 5373 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5374 else 5375 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5376 fi 5377 # And add a safety zone 5378 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5379 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5380 ;; 5381 5382 interix*) 5383 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5384 lt_cv_sys_max_cmd_len=196608 5385 ;; 5386 5387 os2*) 5388 # The test takes a long time on OS/2. 5389 lt_cv_sys_max_cmd_len=8192 5390 ;; 5391 5392 osf*) 5393 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5394 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5395 # nice to cause kernel panics so lets avoid the loop below. 5396 # First set a reasonable default. 5397 lt_cv_sys_max_cmd_len=16384 5398 # 5399 if test -x /sbin/sysconfig; then 5400 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5401 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5402 esac 5403 fi 5404 ;; 5405 sco3.2v5*) 5406 lt_cv_sys_max_cmd_len=102400 5407 ;; 5408 sysv5* | sco5v6* | sysv4.2uw2*) 5409 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5410 if test -n "$kargmax"; then 5411 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5412 else 5413 lt_cv_sys_max_cmd_len=32768 5414 fi 5415 ;; 5416 *) 5417 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5418 if test -n "$lt_cv_sys_max_cmd_len"; then 5419 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5420 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5421 else 5422 # Make teststring a little bigger before we do anything with it. 5423 # a 1K string should be a reasonable start. 5424 for i in 1 2 3 4 5 6 7 8 ; do 5425 teststring=$teststring$teststring 5426 done 5427 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5428 # If test is not a shell built-in, we'll probably end up computing a 5429 # maximum length that is only half of the actual maximum length, but 5430 # we can't tell. 5431 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5432 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5433 test $i != 17 # 1/2 MB should be enough 5434 do 5435 i=`expr $i + 1` 5436 teststring=$teststring$teststring 5437 done 5438 # Only check the string length outside the loop. 5439 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5440 teststring= 5441 # Add a significant safety factor because C++ compilers can tack on 5442 # massive amounts of additional arguments before passing them to the 5443 # linker. It appears as though 1/2 is a usable value. 5444 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5445 fi 5446 ;; 5447 esac 5448 5449fi 5450 5451if test -n $lt_cv_sys_max_cmd_len ; then 5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5453$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5454else 5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5456$as_echo "none" >&6; } 5457fi 5458max_cmd_len=$lt_cv_sys_max_cmd_len 5459 5460 5461 5462 5463 5464 5465: ${CP="cp -f"} 5466: ${MV="mv -f"} 5467: ${RM="rm -f"} 5468 5469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5470$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5471# Try some XSI features 5472xsi_shell=no 5473( _lt_dummy="a/b/c" 5474 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5475 = c,a/b,b/c, \ 5476 && eval 'test $(( 1 + 1 )) -eq 2 \ 5477 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5478 && xsi_shell=yes 5479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5480$as_echo "$xsi_shell" >&6; } 5481 5482 5483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5484$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5485lt_shell_append=no 5486( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5487 >/dev/null 2>&1 \ 5488 && lt_shell_append=yes 5489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5490$as_echo "$lt_shell_append" >&6; } 5491 5492 5493if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5494 lt_unset=unset 5495else 5496 lt_unset=false 5497fi 5498 5499 5500 5501 5502 5503# test EBCDIC or ASCII 5504case `echo X|tr X '\101'` in 5505 A) # ASCII based system 5506 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5507 lt_SP2NL='tr \040 \012' 5508 lt_NL2SP='tr \015\012 \040\040' 5509 ;; 5510 *) # EBCDIC based system 5511 lt_SP2NL='tr \100 \n' 5512 lt_NL2SP='tr \r\n \100\100' 5513 ;; 5514esac 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5525$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5526if ${lt_cv_to_host_file_cmd+:} false; then : 5527 $as_echo_n "(cached) " >&6 5528else 5529 case $host in 5530 *-*-mingw* ) 5531 case $build in 5532 *-*-mingw* ) # actually msys 5533 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5534 ;; 5535 *-*-cygwin* ) 5536 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5537 ;; 5538 * ) # otherwise, assume *nix 5539 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5540 ;; 5541 esac 5542 ;; 5543 *-*-cygwin* ) 5544 case $build in 5545 *-*-mingw* ) # actually msys 5546 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5547 ;; 5548 *-*-cygwin* ) 5549 lt_cv_to_host_file_cmd=func_convert_file_noop 5550 ;; 5551 * ) # otherwise, assume *nix 5552 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5553 ;; 5554 esac 5555 ;; 5556 * ) # unhandled hosts (and "normal" native builds) 5557 lt_cv_to_host_file_cmd=func_convert_file_noop 5558 ;; 5559esac 5560 5561fi 5562 5563to_host_file_cmd=$lt_cv_to_host_file_cmd 5564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5565$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5566 5567 5568 5569 5570 5571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5572$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5573if ${lt_cv_to_tool_file_cmd+:} false; then : 5574 $as_echo_n "(cached) " >&6 5575else 5576 #assume ordinary cross tools, or native build. 5577lt_cv_to_tool_file_cmd=func_convert_file_noop 5578case $host in 5579 *-*-mingw* ) 5580 case $build in 5581 *-*-mingw* ) # actually msys 5582 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5583 ;; 5584 esac 5585 ;; 5586esac 5587 5588fi 5589 5590to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5592$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5593 5594 5595 5596 5597 5598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5599$as_echo_n "checking for $LD option to reload object files... " >&6; } 5600if ${lt_cv_ld_reload_flag+:} false; then : 5601 $as_echo_n "(cached) " >&6 5602else 5603 lt_cv_ld_reload_flag='-r' 5604fi 5605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5606$as_echo "$lt_cv_ld_reload_flag" >&6; } 5607reload_flag=$lt_cv_ld_reload_flag 5608case $reload_flag in 5609"" | " "*) ;; 5610*) reload_flag=" $reload_flag" ;; 5611esac 5612reload_cmds='$LD$reload_flag -o $output$reload_objs' 5613case $host_os in 5614 cygwin* | mingw* | pw32* | cegcc*) 5615 if test "$GCC" != yes; then 5616 reload_cmds=false 5617 fi 5618 ;; 5619 darwin*) 5620 if test "$GCC" = yes; then 5621 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5622 else 5623 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5624 fi 5625 ;; 5626esac 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636if test -n "$ac_tool_prefix"; then 5637 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5638set dummy ${ac_tool_prefix}objdump; ac_word=$2 5639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5640$as_echo_n "checking for $ac_word... " >&6; } 5641if ${ac_cv_prog_OBJDUMP+:} false; then : 5642 $as_echo_n "(cached) " >&6 5643else 5644 if test -n "$OBJDUMP"; then 5645 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5646else 5647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5648for as_dir in $PATH 5649do 5650 IFS=$as_save_IFS 5651 test -z "$as_dir" && as_dir=. 5652 for ac_exec_ext in '' $ac_executable_extensions; do 5653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5654 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5656 break 2 5657 fi 5658done 5659 done 5660IFS=$as_save_IFS 5661 5662fi 5663fi 5664OBJDUMP=$ac_cv_prog_OBJDUMP 5665if test -n "$OBJDUMP"; then 5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5667$as_echo "$OBJDUMP" >&6; } 5668else 5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5670$as_echo "no" >&6; } 5671fi 5672 5673 5674fi 5675if test -z "$ac_cv_prog_OBJDUMP"; then 5676 ac_ct_OBJDUMP=$OBJDUMP 5677 # Extract the first word of "objdump", so it can be a program name with args. 5678set dummy objdump; ac_word=$2 5679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5680$as_echo_n "checking for $ac_word... " >&6; } 5681if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5682 $as_echo_n "(cached) " >&6 5683else 5684 if test -n "$ac_ct_OBJDUMP"; then 5685 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5686else 5687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5688for as_dir in $PATH 5689do 5690 IFS=$as_save_IFS 5691 test -z "$as_dir" && as_dir=. 5692 for ac_exec_ext in '' $ac_executable_extensions; do 5693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5694 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5696 break 2 5697 fi 5698done 5699 done 5700IFS=$as_save_IFS 5701 5702fi 5703fi 5704ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5705if test -n "$ac_ct_OBJDUMP"; then 5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5707$as_echo "$ac_ct_OBJDUMP" >&6; } 5708else 5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5710$as_echo "no" >&6; } 5711fi 5712 5713 if test "x$ac_ct_OBJDUMP" = x; then 5714 OBJDUMP="false" 5715 else 5716 case $cross_compiling:$ac_tool_warned in 5717yes:) 5718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5720ac_tool_warned=yes ;; 5721esac 5722 OBJDUMP=$ac_ct_OBJDUMP 5723 fi 5724else 5725 OBJDUMP="$ac_cv_prog_OBJDUMP" 5726fi 5727 5728test -z "$OBJDUMP" && OBJDUMP=objdump 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5739$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5740if ${lt_cv_deplibs_check_method+:} false; then : 5741 $as_echo_n "(cached) " >&6 5742else 5743 lt_cv_file_magic_cmd='$MAGIC_CMD' 5744lt_cv_file_magic_test_file= 5745lt_cv_deplibs_check_method='unknown' 5746# Need to set the preceding variable on all platforms that support 5747# interlibrary dependencies. 5748# 'none' -- dependencies not supported. 5749# `unknown' -- same as none, but documents that we really don't know. 5750# 'pass_all' -- all dependencies passed with no checks. 5751# 'test_compile' -- check by making test program. 5752# 'file_magic [[regex]]' -- check by looking for files in library path 5753# which responds to the $file_magic_cmd with a given extended regex. 5754# If you have `file' or equivalent on your system and you're not sure 5755# whether `pass_all' will *always* work, you probably want this one. 5756 5757case $host_os in 5758aix[4-9]*) 5759 lt_cv_deplibs_check_method=pass_all 5760 ;; 5761 5762beos*) 5763 lt_cv_deplibs_check_method=pass_all 5764 ;; 5765 5766bsdi[45]*) 5767 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5768 lt_cv_file_magic_cmd='/usr/bin/file -L' 5769 lt_cv_file_magic_test_file=/shlib/libc.so 5770 ;; 5771 5772cygwin*) 5773 # func_win32_libid is a shell function defined in ltmain.sh 5774 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5775 lt_cv_file_magic_cmd='func_win32_libid' 5776 ;; 5777 5778mingw* | pw32*) 5779 # Base MSYS/MinGW do not provide the 'file' command needed by 5780 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5781 # unless we find 'file', for example because we are cross-compiling. 5782 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5783 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5784 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5785 lt_cv_file_magic_cmd='func_win32_libid' 5786 else 5787 # Keep this pattern in sync with the one in func_win32_libid. 5788 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5789 lt_cv_file_magic_cmd='$OBJDUMP -f' 5790 fi 5791 ;; 5792 5793cegcc*) 5794 # use the weaker test based on 'objdump'. See mingw*. 5795 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5796 lt_cv_file_magic_cmd='$OBJDUMP -f' 5797 ;; 5798 5799darwin* | rhapsody*) 5800 lt_cv_deplibs_check_method=pass_all 5801 ;; 5802 5803freebsd* | dragonfly*) 5804 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5805 case $host_cpu in 5806 i*86 ) 5807 # Not sure whether the presence of OpenBSD here was a mistake. 5808 # Let's accept both of them until this is cleared up. 5809 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5810 lt_cv_file_magic_cmd=/usr/bin/file 5811 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5812 ;; 5813 esac 5814 else 5815 lt_cv_deplibs_check_method=pass_all 5816 fi 5817 ;; 5818 5819gnu*) 5820 lt_cv_deplibs_check_method=pass_all 5821 ;; 5822 5823haiku*) 5824 lt_cv_deplibs_check_method=pass_all 5825 ;; 5826 5827hpux10.20* | hpux11*) 5828 lt_cv_file_magic_cmd=/usr/bin/file 5829 case $host_cpu in 5830 ia64*) 5831 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5832 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5833 ;; 5834 hppa*64*) 5835 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]' 5836 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5837 ;; 5838 *) 5839 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5840 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5841 ;; 5842 esac 5843 ;; 5844 5845interix[3-9]*) 5846 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5847 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5848 ;; 5849 5850irix5* | irix6* | nonstopux*) 5851 case $LD in 5852 *-32|*"-32 ") libmagic=32-bit;; 5853 *-n32|*"-n32 ") libmagic=N32;; 5854 *-64|*"-64 ") libmagic=64-bit;; 5855 *) libmagic=never-match;; 5856 esac 5857 lt_cv_deplibs_check_method=pass_all 5858 ;; 5859 5860# This must be glibc/ELF. 5861linux* | k*bsd*-gnu | kopensolaris*-gnu) 5862 lt_cv_deplibs_check_method=pass_all 5863 ;; 5864 5865netbsd*) 5866 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5867 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5868 else 5869 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5870 fi 5871 ;; 5872 5873newos6*) 5874 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5875 lt_cv_file_magic_cmd=/usr/bin/file 5876 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5877 ;; 5878 5879*nto* | *qnx*) 5880 lt_cv_deplibs_check_method=pass_all 5881 ;; 5882 5883openbsd*) 5884 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5885 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5886 else 5887 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5888 fi 5889 ;; 5890 5891osf3* | osf4* | osf5*) 5892 lt_cv_deplibs_check_method=pass_all 5893 ;; 5894 5895rdos*) 5896 lt_cv_deplibs_check_method=pass_all 5897 ;; 5898 5899solaris*) 5900 lt_cv_deplibs_check_method=pass_all 5901 ;; 5902 5903sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5904 lt_cv_deplibs_check_method=pass_all 5905 ;; 5906 5907sysv4 | sysv4.3*) 5908 case $host_vendor in 5909 motorola) 5910 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]' 5911 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5912 ;; 5913 ncr) 5914 lt_cv_deplibs_check_method=pass_all 5915 ;; 5916 sequent) 5917 lt_cv_file_magic_cmd='/bin/file' 5918 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5919 ;; 5920 sni) 5921 lt_cv_file_magic_cmd='/bin/file' 5922 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5923 lt_cv_file_magic_test_file=/lib/libc.so 5924 ;; 5925 siemens) 5926 lt_cv_deplibs_check_method=pass_all 5927 ;; 5928 pc) 5929 lt_cv_deplibs_check_method=pass_all 5930 ;; 5931 esac 5932 ;; 5933 5934tpf*) 5935 lt_cv_deplibs_check_method=pass_all 5936 ;; 5937esac 5938 5939fi 5940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5941$as_echo "$lt_cv_deplibs_check_method" >&6; } 5942 5943file_magic_glob= 5944want_nocaseglob=no 5945if test "$build" = "$host"; then 5946 case $host_os in 5947 mingw* | pw32*) 5948 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5949 want_nocaseglob=yes 5950 else 5951 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5952 fi 5953 ;; 5954 esac 5955fi 5956 5957file_magic_cmd=$lt_cv_file_magic_cmd 5958deplibs_check_method=$lt_cv_deplibs_check_method 5959test -z "$deplibs_check_method" && deplibs_check_method=unknown 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982if test -n "$ac_tool_prefix"; then 5983 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5984set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5986$as_echo_n "checking for $ac_word... " >&6; } 5987if ${ac_cv_prog_DLLTOOL+:} false; then : 5988 $as_echo_n "(cached) " >&6 5989else 5990 if test -n "$DLLTOOL"; then 5991 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5992else 5993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5994for as_dir in $PATH 5995do 5996 IFS=$as_save_IFS 5997 test -z "$as_dir" && as_dir=. 5998 for ac_exec_ext in '' $ac_executable_extensions; do 5999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6000 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6002 break 2 6003 fi 6004done 6005 done 6006IFS=$as_save_IFS 6007 6008fi 6009fi 6010DLLTOOL=$ac_cv_prog_DLLTOOL 6011if test -n "$DLLTOOL"; then 6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6013$as_echo "$DLLTOOL" >&6; } 6014else 6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6016$as_echo "no" >&6; } 6017fi 6018 6019 6020fi 6021if test -z "$ac_cv_prog_DLLTOOL"; then 6022 ac_ct_DLLTOOL=$DLLTOOL 6023 # Extract the first word of "dlltool", so it can be a program name with args. 6024set dummy dlltool; ac_word=$2 6025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6026$as_echo_n "checking for $ac_word... " >&6; } 6027if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6028 $as_echo_n "(cached) " >&6 6029else 6030 if test -n "$ac_ct_DLLTOOL"; then 6031 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6032else 6033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6034for as_dir in $PATH 6035do 6036 IFS=$as_save_IFS 6037 test -z "$as_dir" && as_dir=. 6038 for ac_exec_ext in '' $ac_executable_extensions; do 6039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6040 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6042 break 2 6043 fi 6044done 6045 done 6046IFS=$as_save_IFS 6047 6048fi 6049fi 6050ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6051if test -n "$ac_ct_DLLTOOL"; then 6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6053$as_echo "$ac_ct_DLLTOOL" >&6; } 6054else 6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6056$as_echo "no" >&6; } 6057fi 6058 6059 if test "x$ac_ct_DLLTOOL" = x; then 6060 DLLTOOL="false" 6061 else 6062 case $cross_compiling:$ac_tool_warned in 6063yes:) 6064{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6066ac_tool_warned=yes ;; 6067esac 6068 DLLTOOL=$ac_ct_DLLTOOL 6069 fi 6070else 6071 DLLTOOL="$ac_cv_prog_DLLTOOL" 6072fi 6073 6074test -z "$DLLTOOL" && DLLTOOL=dlltool 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6086$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6087if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6088 $as_echo_n "(cached) " >&6 6089else 6090 lt_cv_sharedlib_from_linklib_cmd='unknown' 6091 6092case $host_os in 6093cygwin* | mingw* | pw32* | cegcc*) 6094 # two different shell functions defined in ltmain.sh 6095 # decide which to use based on capabilities of $DLLTOOL 6096 case `$DLLTOOL --help 2>&1` in 6097 *--identify-strict*) 6098 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6099 ;; 6100 *) 6101 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6102 ;; 6103 esac 6104 ;; 6105*) 6106 # fallback: assume linklib IS sharedlib 6107 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6108 ;; 6109esac 6110 6111fi 6112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6113$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6114sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6115test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6116 6117 6118 6119 6120 6121 6122 6123 6124if test -n "$ac_tool_prefix"; then 6125 for ac_prog in ar 6126 do 6127 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6128set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6130$as_echo_n "checking for $ac_word... " >&6; } 6131if ${ac_cv_prog_AR+:} false; then : 6132 $as_echo_n "(cached) " >&6 6133else 6134 if test -n "$AR"; then 6135 ac_cv_prog_AR="$AR" # Let the user override the test. 6136else 6137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6138for as_dir in $PATH 6139do 6140 IFS=$as_save_IFS 6141 test -z "$as_dir" && as_dir=. 6142 for ac_exec_ext in '' $ac_executable_extensions; do 6143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6144 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6146 break 2 6147 fi 6148done 6149 done 6150IFS=$as_save_IFS 6151 6152fi 6153fi 6154AR=$ac_cv_prog_AR 6155if test -n "$AR"; then 6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6157$as_echo "$AR" >&6; } 6158else 6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6160$as_echo "no" >&6; } 6161fi 6162 6163 6164 test -n "$AR" && break 6165 done 6166fi 6167if test -z "$AR"; then 6168 ac_ct_AR=$AR 6169 for ac_prog in ar 6170do 6171 # Extract the first word of "$ac_prog", so it can be a program name with args. 6172set dummy $ac_prog; ac_word=$2 6173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6174$as_echo_n "checking for $ac_word... " >&6; } 6175if ${ac_cv_prog_ac_ct_AR+:} false; then : 6176 $as_echo_n "(cached) " >&6 6177else 6178 if test -n "$ac_ct_AR"; then 6179 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6180else 6181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6182for as_dir in $PATH 6183do 6184 IFS=$as_save_IFS 6185 test -z "$as_dir" && as_dir=. 6186 for ac_exec_ext in '' $ac_executable_extensions; do 6187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6188 ac_cv_prog_ac_ct_AR="$ac_prog" 6189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6190 break 2 6191 fi 6192done 6193 done 6194IFS=$as_save_IFS 6195 6196fi 6197fi 6198ac_ct_AR=$ac_cv_prog_ac_ct_AR 6199if test -n "$ac_ct_AR"; then 6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6201$as_echo "$ac_ct_AR" >&6; } 6202else 6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6204$as_echo "no" >&6; } 6205fi 6206 6207 6208 test -n "$ac_ct_AR" && break 6209done 6210 6211 if test "x$ac_ct_AR" = x; then 6212 AR="false" 6213 else 6214 case $cross_compiling:$ac_tool_warned in 6215yes:) 6216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6218ac_tool_warned=yes ;; 6219esac 6220 AR=$ac_ct_AR 6221 fi 6222fi 6223 6224: ${AR=ar} 6225: ${AR_FLAGS=cru} 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6238$as_echo_n "checking for archiver @FILE support... " >&6; } 6239if ${lt_cv_ar_at_file+:} false; then : 6240 $as_echo_n "(cached) " >&6 6241else 6242 lt_cv_ar_at_file=no 6243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6244/* end confdefs.h. */ 6245 6246int 6247main () 6248{ 6249 6250 ; 6251 return 0; 6252} 6253_ACEOF 6254if ac_fn_c_try_compile "$LINENO"; then : 6255 echo conftest.$ac_objext > conftest.lst 6256 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6258 (eval $lt_ar_try) 2>&5 6259 ac_status=$? 6260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6261 test $ac_status = 0; } 6262 if test "$ac_status" -eq 0; then 6263 # Ensure the archiver fails upon bogus file names. 6264 rm -f conftest.$ac_objext libconftest.a 6265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6266 (eval $lt_ar_try) 2>&5 6267 ac_status=$? 6268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6269 test $ac_status = 0; } 6270 if test "$ac_status" -ne 0; then 6271 lt_cv_ar_at_file=@ 6272 fi 6273 fi 6274 rm -f conftest.* libconftest.a 6275 6276fi 6277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6278 6279fi 6280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6281$as_echo "$lt_cv_ar_at_file" >&6; } 6282 6283if test "x$lt_cv_ar_at_file" = xno; then 6284 archiver_list_spec= 6285else 6286 archiver_list_spec=$lt_cv_ar_at_file 6287fi 6288 6289 6290 6291 6292 6293 6294 6295if test -n "$ac_tool_prefix"; then 6296 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6297set dummy ${ac_tool_prefix}strip; ac_word=$2 6298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6299$as_echo_n "checking for $ac_word... " >&6; } 6300if ${ac_cv_prog_STRIP+:} false; then : 6301 $as_echo_n "(cached) " >&6 6302else 6303 if test -n "$STRIP"; then 6304 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6305else 6306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6307for as_dir in $PATH 6308do 6309 IFS=$as_save_IFS 6310 test -z "$as_dir" && as_dir=. 6311 for ac_exec_ext in '' $ac_executable_extensions; do 6312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6313 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6315 break 2 6316 fi 6317done 6318 done 6319IFS=$as_save_IFS 6320 6321fi 6322fi 6323STRIP=$ac_cv_prog_STRIP 6324if test -n "$STRIP"; then 6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6326$as_echo "$STRIP" >&6; } 6327else 6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6329$as_echo "no" >&6; } 6330fi 6331 6332 6333fi 6334if test -z "$ac_cv_prog_STRIP"; then 6335 ac_ct_STRIP=$STRIP 6336 # Extract the first word of "strip", so it can be a program name with args. 6337set dummy strip; ac_word=$2 6338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6339$as_echo_n "checking for $ac_word... " >&6; } 6340if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6341 $as_echo_n "(cached) " >&6 6342else 6343 if test -n "$ac_ct_STRIP"; then 6344 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6345else 6346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6347for as_dir in $PATH 6348do 6349 IFS=$as_save_IFS 6350 test -z "$as_dir" && as_dir=. 6351 for ac_exec_ext in '' $ac_executable_extensions; do 6352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6353 ac_cv_prog_ac_ct_STRIP="strip" 6354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6355 break 2 6356 fi 6357done 6358 done 6359IFS=$as_save_IFS 6360 6361fi 6362fi 6363ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6364if test -n "$ac_ct_STRIP"; then 6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6366$as_echo "$ac_ct_STRIP" >&6; } 6367else 6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6369$as_echo "no" >&6; } 6370fi 6371 6372 if test "x$ac_ct_STRIP" = x; then 6373 STRIP=":" 6374 else 6375 case $cross_compiling:$ac_tool_warned in 6376yes:) 6377{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6379ac_tool_warned=yes ;; 6380esac 6381 STRIP=$ac_ct_STRIP 6382 fi 6383else 6384 STRIP="$ac_cv_prog_STRIP" 6385fi 6386 6387test -z "$STRIP" && STRIP=: 6388 6389 6390 6391 6392 6393 6394if test -n "$ac_tool_prefix"; then 6395 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6396set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6398$as_echo_n "checking for $ac_word... " >&6; } 6399if ${ac_cv_prog_RANLIB+:} false; then : 6400 $as_echo_n "(cached) " >&6 6401else 6402 if test -n "$RANLIB"; then 6403 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6404else 6405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6406for as_dir in $PATH 6407do 6408 IFS=$as_save_IFS 6409 test -z "$as_dir" && as_dir=. 6410 for ac_exec_ext in '' $ac_executable_extensions; do 6411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6412 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6414 break 2 6415 fi 6416done 6417 done 6418IFS=$as_save_IFS 6419 6420fi 6421fi 6422RANLIB=$ac_cv_prog_RANLIB 6423if test -n "$RANLIB"; then 6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6425$as_echo "$RANLIB" >&6; } 6426else 6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6428$as_echo "no" >&6; } 6429fi 6430 6431 6432fi 6433if test -z "$ac_cv_prog_RANLIB"; then 6434 ac_ct_RANLIB=$RANLIB 6435 # Extract the first word of "ranlib", so it can be a program name with args. 6436set dummy ranlib; ac_word=$2 6437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6438$as_echo_n "checking for $ac_word... " >&6; } 6439if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6440 $as_echo_n "(cached) " >&6 6441else 6442 if test -n "$ac_ct_RANLIB"; then 6443 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6444else 6445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6446for as_dir in $PATH 6447do 6448 IFS=$as_save_IFS 6449 test -z "$as_dir" && as_dir=. 6450 for ac_exec_ext in '' $ac_executable_extensions; do 6451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6452 ac_cv_prog_ac_ct_RANLIB="ranlib" 6453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6454 break 2 6455 fi 6456done 6457 done 6458IFS=$as_save_IFS 6459 6460fi 6461fi 6462ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6463if test -n "$ac_ct_RANLIB"; then 6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6465$as_echo "$ac_ct_RANLIB" >&6; } 6466else 6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6468$as_echo "no" >&6; } 6469fi 6470 6471 if test "x$ac_ct_RANLIB" = x; then 6472 RANLIB=":" 6473 else 6474 case $cross_compiling:$ac_tool_warned in 6475yes:) 6476{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6477$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6478ac_tool_warned=yes ;; 6479esac 6480 RANLIB=$ac_ct_RANLIB 6481 fi 6482else 6483 RANLIB="$ac_cv_prog_RANLIB" 6484fi 6485 6486test -z "$RANLIB" && RANLIB=: 6487 6488 6489 6490 6491 6492 6493# Determine commands to create old-style static archives. 6494old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6495old_postinstall_cmds='chmod 644 $oldlib' 6496old_postuninstall_cmds= 6497 6498if test -n "$RANLIB"; then 6499 case $host_os in 6500 openbsd*) 6501 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6502 ;; 6503 *) 6504 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6505 ;; 6506 esac 6507 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6508fi 6509 6510case $host_os in 6511 darwin*) 6512 lock_old_archive_extraction=yes ;; 6513 *) 6514 lock_old_archive_extraction=no ;; 6515esac 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555# If no C compiler was specified, use CC. 6556LTCC=${LTCC-"$CC"} 6557 6558# If no C compiler flags were specified, use CFLAGS. 6559LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6560 6561# Allow CC to be a program name with arguments. 6562compiler=$CC 6563 6564 6565# Check for command to grab the raw symbol name followed by C symbol from nm. 6566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6567$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6568if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6569 $as_echo_n "(cached) " >&6 6570else 6571 6572# These are sane defaults that work on at least a few old systems. 6573# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6574 6575# Character class describing NM global symbol codes. 6576symcode='[BCDEGRST]' 6577 6578# Regexp to match symbols that can be accessed directly from C. 6579sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6580 6581# Define system-specific variables. 6582case $host_os in 6583aix*) 6584 symcode='[BCDT]' 6585 ;; 6586cygwin* | mingw* | pw32* | cegcc*) 6587 symcode='[ABCDGISTW]' 6588 ;; 6589hpux*) 6590 if test "$host_cpu" = ia64; then 6591 symcode='[ABCDEGRST]' 6592 fi 6593 ;; 6594irix* | nonstopux*) 6595 symcode='[BCDEGRST]' 6596 ;; 6597osf*) 6598 symcode='[BCDEGQRST]' 6599 ;; 6600solaris*) 6601 symcode='[BDRT]' 6602 ;; 6603sco3.2v5*) 6604 symcode='[DT]' 6605 ;; 6606sysv4.2uw2*) 6607 symcode='[DT]' 6608 ;; 6609sysv5* | sco5v6* | unixware* | OpenUNIX*) 6610 symcode='[ABDT]' 6611 ;; 6612sysv4) 6613 symcode='[DFNSTU]' 6614 ;; 6615esac 6616 6617# If we're using GNU nm, then use its standard symbol codes. 6618case `$NM -V 2>&1` in 6619*GNU* | *'with BFD'*) 6620 symcode='[ABCDGIRSTW]' ;; 6621esac 6622 6623# Transform an extracted symbol line into a proper C declaration. 6624# Some systems (esp. on ia64) link data and code symbols differently, 6625# so use this general approach. 6626lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6627 6628# Transform an extracted symbol line into symbol name and symbol address 6629lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6630lt_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'" 6631 6632# Handle CRLF in mingw tool chain 6633opt_cr= 6634case $build_os in 6635mingw*) 6636 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6637 ;; 6638esac 6639 6640# Try without a prefix underscore, then with it. 6641for ac_symprfx in "" "_"; do 6642 6643 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6644 symxfrm="\\1 $ac_symprfx\\2 \\2" 6645 6646 # Write the raw and C identifiers. 6647 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6648 # Fake it for dumpbin and say T for any non-static function 6649 # and D for any global variable. 6650 # Also find C++ and __fastcall symbols from MSVC++, 6651 # which start with @ or ?. 6652 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6653" {last_section=section; section=\$ 3};"\ 6654" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6655" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6656" \$ 0!~/External *\|/{next};"\ 6657" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6658" {if(hide[section]) next};"\ 6659" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6660" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6661" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6662" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6663" ' prfx=^$ac_symprfx" 6664 else 6665 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6666 fi 6667 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6668 6669 # Check to see that the pipe works correctly. 6670 pipe_works=no 6671 6672 rm -f conftest* 6673 cat > conftest.$ac_ext <<_LT_EOF 6674#ifdef __cplusplus 6675extern "C" { 6676#endif 6677char nm_test_var; 6678void nm_test_func(void); 6679void nm_test_func(void){} 6680#ifdef __cplusplus 6681} 6682#endif 6683int main(){nm_test_var='a';nm_test_func();return(0);} 6684_LT_EOF 6685 6686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6687 (eval $ac_compile) 2>&5 6688 ac_status=$? 6689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6690 test $ac_status = 0; }; then 6691 # Now try to grab the symbols. 6692 nlist=conftest.nm 6693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6694 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6695 ac_status=$? 6696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6697 test $ac_status = 0; } && test -s "$nlist"; then 6698 # Try sorting and uniquifying the output. 6699 if sort "$nlist" | uniq > "$nlist"T; then 6700 mv -f "$nlist"T "$nlist" 6701 else 6702 rm -f "$nlist"T 6703 fi 6704 6705 # Make sure that we snagged all the symbols we need. 6706 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6707 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6708 cat <<_LT_EOF > conftest.$ac_ext 6709/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6710#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6711/* DATA imports from DLLs on WIN32 con't be const, because runtime 6712 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6713# define LT_DLSYM_CONST 6714#elif defined(__osf__) 6715/* This system does not cope well with relocations in const data. */ 6716# define LT_DLSYM_CONST 6717#else 6718# define LT_DLSYM_CONST const 6719#endif 6720 6721#ifdef __cplusplus 6722extern "C" { 6723#endif 6724 6725_LT_EOF 6726 # Now generate the symbol file. 6727 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6728 6729 cat <<_LT_EOF >> conftest.$ac_ext 6730 6731/* The mapping between symbol names and symbols. */ 6732LT_DLSYM_CONST struct { 6733 const char *name; 6734 void *address; 6735} 6736lt__PROGRAM__LTX_preloaded_symbols[] = 6737{ 6738 { "@PROGRAM@", (void *) 0 }, 6739_LT_EOF 6740 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6741 cat <<\_LT_EOF >> conftest.$ac_ext 6742 {0, (void *) 0} 6743}; 6744 6745/* This works around a problem in FreeBSD linker */ 6746#ifdef FREEBSD_WORKAROUND 6747static const void *lt_preloaded_setup() { 6748 return lt__PROGRAM__LTX_preloaded_symbols; 6749} 6750#endif 6751 6752#ifdef __cplusplus 6753} 6754#endif 6755_LT_EOF 6756 # Now try linking the two files. 6757 mv conftest.$ac_objext conftstm.$ac_objext 6758 lt_globsym_save_LIBS=$LIBS 6759 lt_globsym_save_CFLAGS=$CFLAGS 6760 LIBS="conftstm.$ac_objext" 6761 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6763 (eval $ac_link) 2>&5 6764 ac_status=$? 6765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6766 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6767 pipe_works=yes 6768 fi 6769 LIBS=$lt_globsym_save_LIBS 6770 CFLAGS=$lt_globsym_save_CFLAGS 6771 else 6772 echo "cannot find nm_test_func in $nlist" >&5 6773 fi 6774 else 6775 echo "cannot find nm_test_var in $nlist" >&5 6776 fi 6777 else 6778 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6779 fi 6780 else 6781 echo "$progname: failed program was:" >&5 6782 cat conftest.$ac_ext >&5 6783 fi 6784 rm -rf conftest* conftst* 6785 6786 # Do not use the global_symbol_pipe unless it works. 6787 if test "$pipe_works" = yes; then 6788 break 6789 else 6790 lt_cv_sys_global_symbol_pipe= 6791 fi 6792done 6793 6794fi 6795 6796if test -z "$lt_cv_sys_global_symbol_pipe"; then 6797 lt_cv_sys_global_symbol_to_cdecl= 6798fi 6799if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6801$as_echo "failed" >&6; } 6802else 6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6804$as_echo "ok" >&6; } 6805fi 6806 6807# Response file support. 6808if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6809 nm_file_list_spec='@' 6810elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6811 nm_file_list_spec='@' 6812fi 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6841$as_echo_n "checking for sysroot... " >&6; } 6842 6843# Check whether --with-sysroot was given. 6844if test "${with_sysroot+set}" = set; then : 6845 withval=$with_sysroot; 6846else 6847 with_sysroot=no 6848fi 6849 6850 6851lt_sysroot= 6852case ${with_sysroot} in #( 6853 yes) 6854 if test "$GCC" = yes; then 6855 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6856 fi 6857 ;; #( 6858 /*) 6859 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6860 ;; #( 6861 no|'') 6862 ;; #( 6863 *) 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6865$as_echo "${with_sysroot}" >&6; } 6866 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6867 ;; 6868esac 6869 6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6871$as_echo "${lt_sysroot:-no}" >&6; } 6872 6873 6874 6875 6876 6877# Check whether --enable-libtool-lock was given. 6878if test "${enable_libtool_lock+set}" = set; then : 6879 enableval=$enable_libtool_lock; 6880fi 6881 6882test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6883 6884# Some flags need to be propagated to the compiler or linker for good 6885# libtool support. 6886case $host in 6887ia64-*-hpux*) 6888 # Find out which ABI we are using. 6889 echo 'int i;' > conftest.$ac_ext 6890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6891 (eval $ac_compile) 2>&5 6892 ac_status=$? 6893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6894 test $ac_status = 0; }; then 6895 case `/usr/bin/file conftest.$ac_objext` in 6896 *ELF-32*) 6897 HPUX_IA64_MODE="32" 6898 ;; 6899 *ELF-64*) 6900 HPUX_IA64_MODE="64" 6901 ;; 6902 esac 6903 fi 6904 rm -rf conftest* 6905 ;; 6906*-*-irix6*) 6907 # Find out which ABI we are using. 6908 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6910 (eval $ac_compile) 2>&5 6911 ac_status=$? 6912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6913 test $ac_status = 0; }; then 6914 if test "$lt_cv_prog_gnu_ld" = yes; then 6915 case `/usr/bin/file conftest.$ac_objext` in 6916 *32-bit*) 6917 LD="${LD-ld} -melf32bsmip" 6918 ;; 6919 *N32*) 6920 LD="${LD-ld} -melf32bmipn32" 6921 ;; 6922 *64-bit*) 6923 LD="${LD-ld} -melf64bmip" 6924 ;; 6925 esac 6926 else 6927 case `/usr/bin/file conftest.$ac_objext` in 6928 *32-bit*) 6929 LD="${LD-ld} -32" 6930 ;; 6931 *N32*) 6932 LD="${LD-ld} -n32" 6933 ;; 6934 *64-bit*) 6935 LD="${LD-ld} -64" 6936 ;; 6937 esac 6938 fi 6939 fi 6940 rm -rf conftest* 6941 ;; 6942 6943x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6944s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6945 # Find out which ABI we are using. 6946 echo 'int i;' > conftest.$ac_ext 6947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6948 (eval $ac_compile) 2>&5 6949 ac_status=$? 6950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6951 test $ac_status = 0; }; then 6952 case `/usr/bin/file conftest.o` in 6953 *32-bit*) 6954 case $host in 6955 x86_64-*kfreebsd*-gnu) 6956 LD="${LD-ld} -m elf_i386_fbsd" 6957 ;; 6958 x86_64-*linux*) 6959 LD="${LD-ld} -m elf_i386" 6960 ;; 6961 ppc64-*linux*|powerpc64-*linux*) 6962 LD="${LD-ld} -m elf32ppclinux" 6963 ;; 6964 s390x-*linux*) 6965 LD="${LD-ld} -m elf_s390" 6966 ;; 6967 sparc64-*linux*) 6968 LD="${LD-ld} -m elf32_sparc" 6969 ;; 6970 esac 6971 ;; 6972 *64-bit*) 6973 case $host in 6974 x86_64-*kfreebsd*-gnu) 6975 LD="${LD-ld} -m elf_x86_64_fbsd" 6976 ;; 6977 x86_64-*linux*) 6978 LD="${LD-ld} -m elf_x86_64" 6979 ;; 6980 ppc*-*linux*|powerpc*-*linux*) 6981 LD="${LD-ld} -m elf64ppc" 6982 ;; 6983 s390*-*linux*|s390*-*tpf*) 6984 LD="${LD-ld} -m elf64_s390" 6985 ;; 6986 sparc*-*linux*) 6987 LD="${LD-ld} -m elf64_sparc" 6988 ;; 6989 esac 6990 ;; 6991 esac 6992 fi 6993 rm -rf conftest* 6994 ;; 6995 6996*-*-sco3.2v5*) 6997 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6998 SAVE_CFLAGS="$CFLAGS" 6999 CFLAGS="$CFLAGS -belf" 7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7001$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7002if ${lt_cv_cc_needs_belf+:} false; then : 7003 $as_echo_n "(cached) " >&6 7004else 7005 ac_ext=c 7006ac_cpp='$CPP $CPPFLAGS' 7007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7009ac_compiler_gnu=$ac_cv_c_compiler_gnu 7010 7011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7012/* end confdefs.h. */ 7013 7014int 7015main () 7016{ 7017 7018 ; 7019 return 0; 7020} 7021_ACEOF 7022if ac_fn_c_try_link "$LINENO"; then : 7023 lt_cv_cc_needs_belf=yes 7024else 7025 lt_cv_cc_needs_belf=no 7026fi 7027rm -f core conftest.err conftest.$ac_objext \ 7028 conftest$ac_exeext conftest.$ac_ext 7029 ac_ext=c 7030ac_cpp='$CPP $CPPFLAGS' 7031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7033ac_compiler_gnu=$ac_cv_c_compiler_gnu 7034 7035fi 7036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7037$as_echo "$lt_cv_cc_needs_belf" >&6; } 7038 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7039 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7040 CFLAGS="$SAVE_CFLAGS" 7041 fi 7042 ;; 7043*-*solaris*) 7044 # Find out which ABI we are using. 7045 echo 'int i;' > conftest.$ac_ext 7046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7047 (eval $ac_compile) 2>&5 7048 ac_status=$? 7049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7050 test $ac_status = 0; }; then 7051 case `/usr/bin/file conftest.o` in 7052 *64-bit*) 7053 case $lt_cv_prog_gnu_ld in 7054 yes*) 7055 case $host in 7056 i?86-*-solaris*) 7057 LD="${LD-ld} -m elf_x86_64" 7058 ;; 7059 sparc*-*-solaris*) 7060 LD="${LD-ld} -m elf64_sparc" 7061 ;; 7062 esac 7063 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7064 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7065 LD="${LD-ld}_sol2" 7066 fi 7067 ;; 7068 *) 7069 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7070 LD="${LD-ld} -64" 7071 fi 7072 ;; 7073 esac 7074 ;; 7075 esac 7076 fi 7077 rm -rf conftest* 7078 ;; 7079esac 7080 7081need_locks="$enable_libtool_lock" 7082 7083if test -n "$ac_tool_prefix"; then 7084 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7085set dummy ${ac_tool_prefix}mt; ac_word=$2 7086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7087$as_echo_n "checking for $ac_word... " >&6; } 7088if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7089 $as_echo_n "(cached) " >&6 7090else 7091 if test -n "$MANIFEST_TOOL"; then 7092 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7093else 7094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7095for as_dir in $PATH 7096do 7097 IFS=$as_save_IFS 7098 test -z "$as_dir" && as_dir=. 7099 for ac_exec_ext in '' $ac_executable_extensions; do 7100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7101 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7103 break 2 7104 fi 7105done 7106 done 7107IFS=$as_save_IFS 7108 7109fi 7110fi 7111MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7112if test -n "$MANIFEST_TOOL"; then 7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7114$as_echo "$MANIFEST_TOOL" >&6; } 7115else 7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7117$as_echo "no" >&6; } 7118fi 7119 7120 7121fi 7122if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7123 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7124 # Extract the first word of "mt", so it can be a program name with args. 7125set dummy mt; ac_word=$2 7126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7127$as_echo_n "checking for $ac_word... " >&6; } 7128if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7129 $as_echo_n "(cached) " >&6 7130else 7131 if test -n "$ac_ct_MANIFEST_TOOL"; then 7132 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7133else 7134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7135for as_dir in $PATH 7136do 7137 IFS=$as_save_IFS 7138 test -z "$as_dir" && as_dir=. 7139 for ac_exec_ext in '' $ac_executable_extensions; do 7140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7141 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7143 break 2 7144 fi 7145done 7146 done 7147IFS=$as_save_IFS 7148 7149fi 7150fi 7151ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7152if test -n "$ac_ct_MANIFEST_TOOL"; then 7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7154$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7155else 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7157$as_echo "no" >&6; } 7158fi 7159 7160 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7161 MANIFEST_TOOL=":" 7162 else 7163 case $cross_compiling:$ac_tool_warned in 7164yes:) 7165{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7166$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7167ac_tool_warned=yes ;; 7168esac 7169 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7170 fi 7171else 7172 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7173fi 7174 7175test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7177$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7178if ${lt_cv_path_mainfest_tool+:} false; then : 7179 $as_echo_n "(cached) " >&6 7180else 7181 lt_cv_path_mainfest_tool=no 7182 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7183 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7184 cat conftest.err >&5 7185 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7186 lt_cv_path_mainfest_tool=yes 7187 fi 7188 rm -f conftest* 7189fi 7190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7191$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7192if test "x$lt_cv_path_mainfest_tool" != xyes; then 7193 MANIFEST_TOOL=: 7194fi 7195 7196 7197 7198 7199 7200 7201 case $host_os in 7202 rhapsody* | darwin*) 7203 if test -n "$ac_tool_prefix"; then 7204 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7205set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7207$as_echo_n "checking for $ac_word... " >&6; } 7208if ${ac_cv_prog_DSYMUTIL+:} false; then : 7209 $as_echo_n "(cached) " >&6 7210else 7211 if test -n "$DSYMUTIL"; then 7212 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7213else 7214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7215for as_dir in $PATH 7216do 7217 IFS=$as_save_IFS 7218 test -z "$as_dir" && as_dir=. 7219 for ac_exec_ext in '' $ac_executable_extensions; do 7220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7221 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7223 break 2 7224 fi 7225done 7226 done 7227IFS=$as_save_IFS 7228 7229fi 7230fi 7231DSYMUTIL=$ac_cv_prog_DSYMUTIL 7232if test -n "$DSYMUTIL"; then 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7234$as_echo "$DSYMUTIL" >&6; } 7235else 7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7237$as_echo "no" >&6; } 7238fi 7239 7240 7241fi 7242if test -z "$ac_cv_prog_DSYMUTIL"; then 7243 ac_ct_DSYMUTIL=$DSYMUTIL 7244 # Extract the first word of "dsymutil", so it can be a program name with args. 7245set dummy dsymutil; ac_word=$2 7246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7247$as_echo_n "checking for $ac_word... " >&6; } 7248if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7249 $as_echo_n "(cached) " >&6 7250else 7251 if test -n "$ac_ct_DSYMUTIL"; then 7252 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7253else 7254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7255for as_dir in $PATH 7256do 7257 IFS=$as_save_IFS 7258 test -z "$as_dir" && as_dir=. 7259 for ac_exec_ext in '' $ac_executable_extensions; do 7260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7261 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7263 break 2 7264 fi 7265done 7266 done 7267IFS=$as_save_IFS 7268 7269fi 7270fi 7271ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7272if test -n "$ac_ct_DSYMUTIL"; then 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7274$as_echo "$ac_ct_DSYMUTIL" >&6; } 7275else 7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7277$as_echo "no" >&6; } 7278fi 7279 7280 if test "x$ac_ct_DSYMUTIL" = x; then 7281 DSYMUTIL=":" 7282 else 7283 case $cross_compiling:$ac_tool_warned in 7284yes:) 7285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7287ac_tool_warned=yes ;; 7288esac 7289 DSYMUTIL=$ac_ct_DSYMUTIL 7290 fi 7291else 7292 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7293fi 7294 7295 if test -n "$ac_tool_prefix"; then 7296 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7297set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7299$as_echo_n "checking for $ac_word... " >&6; } 7300if ${ac_cv_prog_NMEDIT+:} false; then : 7301 $as_echo_n "(cached) " >&6 7302else 7303 if test -n "$NMEDIT"; then 7304 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7305else 7306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7307for as_dir in $PATH 7308do 7309 IFS=$as_save_IFS 7310 test -z "$as_dir" && as_dir=. 7311 for ac_exec_ext in '' $ac_executable_extensions; do 7312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7313 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7315 break 2 7316 fi 7317done 7318 done 7319IFS=$as_save_IFS 7320 7321fi 7322fi 7323NMEDIT=$ac_cv_prog_NMEDIT 7324if test -n "$NMEDIT"; then 7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7326$as_echo "$NMEDIT" >&6; } 7327else 7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7329$as_echo "no" >&6; } 7330fi 7331 7332 7333fi 7334if test -z "$ac_cv_prog_NMEDIT"; then 7335 ac_ct_NMEDIT=$NMEDIT 7336 # Extract the first word of "nmedit", so it can be a program name with args. 7337set dummy nmedit; ac_word=$2 7338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7339$as_echo_n "checking for $ac_word... " >&6; } 7340if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7341 $as_echo_n "(cached) " >&6 7342else 7343 if test -n "$ac_ct_NMEDIT"; then 7344 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7345else 7346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7347for as_dir in $PATH 7348do 7349 IFS=$as_save_IFS 7350 test -z "$as_dir" && as_dir=. 7351 for ac_exec_ext in '' $ac_executable_extensions; do 7352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7353 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7355 break 2 7356 fi 7357done 7358 done 7359IFS=$as_save_IFS 7360 7361fi 7362fi 7363ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7364if test -n "$ac_ct_NMEDIT"; then 7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7366$as_echo "$ac_ct_NMEDIT" >&6; } 7367else 7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7369$as_echo "no" >&6; } 7370fi 7371 7372 if test "x$ac_ct_NMEDIT" = x; then 7373 NMEDIT=":" 7374 else 7375 case $cross_compiling:$ac_tool_warned in 7376yes:) 7377{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7379ac_tool_warned=yes ;; 7380esac 7381 NMEDIT=$ac_ct_NMEDIT 7382 fi 7383else 7384 NMEDIT="$ac_cv_prog_NMEDIT" 7385fi 7386 7387 if test -n "$ac_tool_prefix"; then 7388 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7389set dummy ${ac_tool_prefix}lipo; ac_word=$2 7390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7391$as_echo_n "checking for $ac_word... " >&6; } 7392if ${ac_cv_prog_LIPO+:} false; then : 7393 $as_echo_n "(cached) " >&6 7394else 7395 if test -n "$LIPO"; then 7396 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7397else 7398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7399for as_dir in $PATH 7400do 7401 IFS=$as_save_IFS 7402 test -z "$as_dir" && as_dir=. 7403 for ac_exec_ext in '' $ac_executable_extensions; do 7404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7405 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7407 break 2 7408 fi 7409done 7410 done 7411IFS=$as_save_IFS 7412 7413fi 7414fi 7415LIPO=$ac_cv_prog_LIPO 7416if test -n "$LIPO"; then 7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7418$as_echo "$LIPO" >&6; } 7419else 7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7421$as_echo "no" >&6; } 7422fi 7423 7424 7425fi 7426if test -z "$ac_cv_prog_LIPO"; then 7427 ac_ct_LIPO=$LIPO 7428 # Extract the first word of "lipo", so it can be a program name with args. 7429set dummy lipo; ac_word=$2 7430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7431$as_echo_n "checking for $ac_word... " >&6; } 7432if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7433 $as_echo_n "(cached) " >&6 7434else 7435 if test -n "$ac_ct_LIPO"; then 7436 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7437else 7438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7439for as_dir in $PATH 7440do 7441 IFS=$as_save_IFS 7442 test -z "$as_dir" && as_dir=. 7443 for ac_exec_ext in '' $ac_executable_extensions; do 7444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7445 ac_cv_prog_ac_ct_LIPO="lipo" 7446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7447 break 2 7448 fi 7449done 7450 done 7451IFS=$as_save_IFS 7452 7453fi 7454fi 7455ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7456if test -n "$ac_ct_LIPO"; then 7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7458$as_echo "$ac_ct_LIPO" >&6; } 7459else 7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7461$as_echo "no" >&6; } 7462fi 7463 7464 if test "x$ac_ct_LIPO" = x; then 7465 LIPO=":" 7466 else 7467 case $cross_compiling:$ac_tool_warned in 7468yes:) 7469{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7470$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7471ac_tool_warned=yes ;; 7472esac 7473 LIPO=$ac_ct_LIPO 7474 fi 7475else 7476 LIPO="$ac_cv_prog_LIPO" 7477fi 7478 7479 if test -n "$ac_tool_prefix"; then 7480 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7481set dummy ${ac_tool_prefix}otool; ac_word=$2 7482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7483$as_echo_n "checking for $ac_word... " >&6; } 7484if ${ac_cv_prog_OTOOL+:} false; then : 7485 $as_echo_n "(cached) " >&6 7486else 7487 if test -n "$OTOOL"; then 7488 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7489else 7490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7491for as_dir in $PATH 7492do 7493 IFS=$as_save_IFS 7494 test -z "$as_dir" && as_dir=. 7495 for ac_exec_ext in '' $ac_executable_extensions; do 7496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7497 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7499 break 2 7500 fi 7501done 7502 done 7503IFS=$as_save_IFS 7504 7505fi 7506fi 7507OTOOL=$ac_cv_prog_OTOOL 7508if test -n "$OTOOL"; then 7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7510$as_echo "$OTOOL" >&6; } 7511else 7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7513$as_echo "no" >&6; } 7514fi 7515 7516 7517fi 7518if test -z "$ac_cv_prog_OTOOL"; then 7519 ac_ct_OTOOL=$OTOOL 7520 # Extract the first word of "otool", so it can be a program name with args. 7521set dummy otool; ac_word=$2 7522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7523$as_echo_n "checking for $ac_word... " >&6; } 7524if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7525 $as_echo_n "(cached) " >&6 7526else 7527 if test -n "$ac_ct_OTOOL"; then 7528 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7529else 7530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7531for as_dir in $PATH 7532do 7533 IFS=$as_save_IFS 7534 test -z "$as_dir" && as_dir=. 7535 for ac_exec_ext in '' $ac_executable_extensions; do 7536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7537 ac_cv_prog_ac_ct_OTOOL="otool" 7538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7539 break 2 7540 fi 7541done 7542 done 7543IFS=$as_save_IFS 7544 7545fi 7546fi 7547ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7548if test -n "$ac_ct_OTOOL"; then 7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7550$as_echo "$ac_ct_OTOOL" >&6; } 7551else 7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7553$as_echo "no" >&6; } 7554fi 7555 7556 if test "x$ac_ct_OTOOL" = x; then 7557 OTOOL=":" 7558 else 7559 case $cross_compiling:$ac_tool_warned in 7560yes:) 7561{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7562$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7563ac_tool_warned=yes ;; 7564esac 7565 OTOOL=$ac_ct_OTOOL 7566 fi 7567else 7568 OTOOL="$ac_cv_prog_OTOOL" 7569fi 7570 7571 if test -n "$ac_tool_prefix"; then 7572 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7573set dummy ${ac_tool_prefix}otool64; ac_word=$2 7574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7575$as_echo_n "checking for $ac_word... " >&6; } 7576if ${ac_cv_prog_OTOOL64+:} false; then : 7577 $as_echo_n "(cached) " >&6 7578else 7579 if test -n "$OTOOL64"; then 7580 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7581else 7582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7583for as_dir in $PATH 7584do 7585 IFS=$as_save_IFS 7586 test -z "$as_dir" && as_dir=. 7587 for ac_exec_ext in '' $ac_executable_extensions; do 7588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7589 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7591 break 2 7592 fi 7593done 7594 done 7595IFS=$as_save_IFS 7596 7597fi 7598fi 7599OTOOL64=$ac_cv_prog_OTOOL64 7600if test -n "$OTOOL64"; then 7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7602$as_echo "$OTOOL64" >&6; } 7603else 7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7605$as_echo "no" >&6; } 7606fi 7607 7608 7609fi 7610if test -z "$ac_cv_prog_OTOOL64"; then 7611 ac_ct_OTOOL64=$OTOOL64 7612 # Extract the first word of "otool64", so it can be a program name with args. 7613set dummy otool64; ac_word=$2 7614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7615$as_echo_n "checking for $ac_word... " >&6; } 7616if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7617 $as_echo_n "(cached) " >&6 7618else 7619 if test -n "$ac_ct_OTOOL64"; then 7620 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7621else 7622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7623for as_dir in $PATH 7624do 7625 IFS=$as_save_IFS 7626 test -z "$as_dir" && as_dir=. 7627 for ac_exec_ext in '' $ac_executable_extensions; do 7628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7629 ac_cv_prog_ac_ct_OTOOL64="otool64" 7630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7631 break 2 7632 fi 7633done 7634 done 7635IFS=$as_save_IFS 7636 7637fi 7638fi 7639ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7640if test -n "$ac_ct_OTOOL64"; then 7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7642$as_echo "$ac_ct_OTOOL64" >&6; } 7643else 7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7645$as_echo "no" >&6; } 7646fi 7647 7648 if test "x$ac_ct_OTOOL64" = x; then 7649 OTOOL64=":" 7650 else 7651 case $cross_compiling:$ac_tool_warned in 7652yes:) 7653{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7654$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7655ac_tool_warned=yes ;; 7656esac 7657 OTOOL64=$ac_ct_OTOOL64 7658 fi 7659else 7660 OTOOL64="$ac_cv_prog_OTOOL64" 7661fi 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7690$as_echo_n "checking for -single_module linker flag... " >&6; } 7691if ${lt_cv_apple_cc_single_mod+:} false; then : 7692 $as_echo_n "(cached) " >&6 7693else 7694 lt_cv_apple_cc_single_mod=no 7695 if test -z "${LT_MULTI_MODULE}"; then 7696 # By default we will add the -single_module flag. You can override 7697 # by either setting the environment variable LT_MULTI_MODULE 7698 # non-empty at configure time, or by adding -multi_module to the 7699 # link flags. 7700 rm -rf libconftest.dylib* 7701 echo "int foo(void){return 1;}" > conftest.c 7702 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7703-dynamiclib -Wl,-single_module conftest.c" >&5 7704 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7705 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7706 _lt_result=$? 7707 # If there is a non-empty error log, and "single_module" 7708 # appears in it, assume the flag caused a linker warning 7709 if test -s conftest.err && $GREP single_module conftest.err; then 7710 cat conftest.err >&5 7711 # Otherwise, if the output was created with a 0 exit code from 7712 # the compiler, it worked. 7713 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7714 lt_cv_apple_cc_single_mod=yes 7715 else 7716 cat conftest.err >&5 7717 fi 7718 rm -rf libconftest.dylib* 7719 rm -f conftest.* 7720 fi 7721fi 7722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7723$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7724 7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7726$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7727if ${lt_cv_ld_exported_symbols_list+:} false; then : 7728 $as_echo_n "(cached) " >&6 7729else 7730 lt_cv_ld_exported_symbols_list=no 7731 save_LDFLAGS=$LDFLAGS 7732 echo "_main" > conftest.sym 7733 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7735/* end confdefs.h. */ 7736 7737int 7738main () 7739{ 7740 7741 ; 7742 return 0; 7743} 7744_ACEOF 7745if ac_fn_c_try_link "$LINENO"; then : 7746 lt_cv_ld_exported_symbols_list=yes 7747else 7748 lt_cv_ld_exported_symbols_list=no 7749fi 7750rm -f core conftest.err conftest.$ac_objext \ 7751 conftest$ac_exeext conftest.$ac_ext 7752 LDFLAGS="$save_LDFLAGS" 7753 7754fi 7755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7756$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7757 7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7759$as_echo_n "checking for -force_load linker flag... " >&6; } 7760if ${lt_cv_ld_force_load+:} false; then : 7761 $as_echo_n "(cached) " >&6 7762else 7763 lt_cv_ld_force_load=no 7764 cat > conftest.c << _LT_EOF 7765int forced_loaded() { return 2;} 7766_LT_EOF 7767 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7768 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7769 echo "$AR cru libconftest.a conftest.o" >&5 7770 $AR cru libconftest.a conftest.o 2>&5 7771 echo "$RANLIB libconftest.a" >&5 7772 $RANLIB libconftest.a 2>&5 7773 cat > conftest.c << _LT_EOF 7774int main() { return 0;} 7775_LT_EOF 7776 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7777 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7778 _lt_result=$? 7779 if test -s conftest.err && $GREP force_load conftest.err; then 7780 cat conftest.err >&5 7781 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7782 lt_cv_ld_force_load=yes 7783 else 7784 cat conftest.err >&5 7785 fi 7786 rm -f conftest.err libconftest.a conftest conftest.c 7787 rm -rf conftest.dSYM 7788 7789fi 7790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7791$as_echo "$lt_cv_ld_force_load" >&6; } 7792 case $host_os in 7793 rhapsody* | darwin1.[012]) 7794 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7795 darwin1.*) 7796 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7797 darwin*) # darwin 5.x on 7798 # if running on 10.5 or later, the deployment target defaults 7799 # to the OS version, if on x86, and 10.4, the deployment 7800 # target defaults to 10.4. Don't you love it? 7801 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7802 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7803 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7804 10.[012]*) 7805 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7806 10.*) 7807 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7808 esac 7809 ;; 7810 esac 7811 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7812 _lt_dar_single_mod='$single_module' 7813 fi 7814 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7815 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7816 else 7817 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7818 fi 7819 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7820 _lt_dsymutil='~$DSYMUTIL $lib || :' 7821 else 7822 _lt_dsymutil= 7823 fi 7824 ;; 7825 esac 7826 7827ac_ext=c 7828ac_cpp='$CPP $CPPFLAGS' 7829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7831ac_compiler_gnu=$ac_cv_c_compiler_gnu 7832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7833$as_echo_n "checking how to run the C preprocessor... " >&6; } 7834# On Suns, sometimes $CPP names a directory. 7835if test -n "$CPP" && test -d "$CPP"; then 7836 CPP= 7837fi 7838if test -z "$CPP"; then 7839 if ${ac_cv_prog_CPP+:} false; then : 7840 $as_echo_n "(cached) " >&6 7841else 7842 # Double quotes because CPP needs to be expanded 7843 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7844 do 7845 ac_preproc_ok=false 7846for ac_c_preproc_warn_flag in '' yes 7847do 7848 # Use a header file that comes with gcc, so configuring glibc 7849 # with a fresh cross-compiler works. 7850 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7851 # <limits.h> exists even on freestanding compilers. 7852 # On the NeXT, cc -E runs the code through the compiler's parser, 7853 # not just through cpp. "Syntax error" is here to catch this case. 7854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7855/* end confdefs.h. */ 7856#ifdef __STDC__ 7857# include <limits.h> 7858#else 7859# include <assert.h> 7860#endif 7861 Syntax error 7862_ACEOF 7863if ac_fn_c_try_cpp "$LINENO"; then : 7864 7865else 7866 # Broken: fails on valid input. 7867continue 7868fi 7869rm -f conftest.err conftest.i conftest.$ac_ext 7870 7871 # OK, works on sane cases. Now check whether nonexistent headers 7872 # can be detected and how. 7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7874/* end confdefs.h. */ 7875#include <ac_nonexistent.h> 7876_ACEOF 7877if ac_fn_c_try_cpp "$LINENO"; then : 7878 # Broken: success on invalid input. 7879continue 7880else 7881 # Passes both tests. 7882ac_preproc_ok=: 7883break 7884fi 7885rm -f conftest.err conftest.i conftest.$ac_ext 7886 7887done 7888# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7889rm -f conftest.i conftest.err conftest.$ac_ext 7890if $ac_preproc_ok; then : 7891 break 7892fi 7893 7894 done 7895 ac_cv_prog_CPP=$CPP 7896 7897fi 7898 CPP=$ac_cv_prog_CPP 7899else 7900 ac_cv_prog_CPP=$CPP 7901fi 7902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7903$as_echo "$CPP" >&6; } 7904ac_preproc_ok=false 7905for ac_c_preproc_warn_flag in '' yes 7906do 7907 # Use a header file that comes with gcc, so configuring glibc 7908 # with a fresh cross-compiler works. 7909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7910 # <limits.h> exists even on freestanding compilers. 7911 # On the NeXT, cc -E runs the code through the compiler's parser, 7912 # not just through cpp. "Syntax error" is here to catch this case. 7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7914/* end confdefs.h. */ 7915#ifdef __STDC__ 7916# include <limits.h> 7917#else 7918# include <assert.h> 7919#endif 7920 Syntax error 7921_ACEOF 7922if ac_fn_c_try_cpp "$LINENO"; then : 7923 7924else 7925 # Broken: fails on valid input. 7926continue 7927fi 7928rm -f conftest.err conftest.i conftest.$ac_ext 7929 7930 # OK, works on sane cases. Now check whether nonexistent headers 7931 # can be detected and how. 7932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7933/* end confdefs.h. */ 7934#include <ac_nonexistent.h> 7935_ACEOF 7936if ac_fn_c_try_cpp "$LINENO"; then : 7937 # Broken: success on invalid input. 7938continue 7939else 7940 # Passes both tests. 7941ac_preproc_ok=: 7942break 7943fi 7944rm -f conftest.err conftest.i conftest.$ac_ext 7945 7946done 7947# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7948rm -f conftest.i conftest.err conftest.$ac_ext 7949if $ac_preproc_ok; then : 7950 7951else 7952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7954as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7955See \`config.log' for more details" "$LINENO" 5; } 7956fi 7957 7958ac_ext=c 7959ac_cpp='$CPP $CPPFLAGS' 7960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7962ac_compiler_gnu=$ac_cv_c_compiler_gnu 7963 7964 7965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7966$as_echo_n "checking for ANSI C header files... " >&6; } 7967if ${ac_cv_header_stdc+:} false; then : 7968 $as_echo_n "(cached) " >&6 7969else 7970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7971/* end confdefs.h. */ 7972#include <stdlib.h> 7973#include <stdarg.h> 7974#include <string.h> 7975#include <float.h> 7976 7977int 7978main () 7979{ 7980 7981 ; 7982 return 0; 7983} 7984_ACEOF 7985if ac_fn_c_try_compile "$LINENO"; then : 7986 ac_cv_header_stdc=yes 7987else 7988 ac_cv_header_stdc=no 7989fi 7990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7991 7992if test $ac_cv_header_stdc = yes; then 7993 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7995/* end confdefs.h. */ 7996#include <string.h> 7997 7998_ACEOF 7999if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8000 $EGREP "memchr" >/dev/null 2>&1; then : 8001 8002else 8003 ac_cv_header_stdc=no 8004fi 8005rm -f conftest* 8006 8007fi 8008 8009if test $ac_cv_header_stdc = yes; then 8010 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8012/* end confdefs.h. */ 8013#include <stdlib.h> 8014 8015_ACEOF 8016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8017 $EGREP "free" >/dev/null 2>&1; then : 8018 8019else 8020 ac_cv_header_stdc=no 8021fi 8022rm -f conftest* 8023 8024fi 8025 8026if test $ac_cv_header_stdc = yes; then 8027 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8028 if test "$cross_compiling" = yes; then : 8029 : 8030else 8031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8032/* end confdefs.h. */ 8033#include <ctype.h> 8034#include <stdlib.h> 8035#if ((' ' & 0x0FF) == 0x020) 8036# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8037# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8038#else 8039# define ISLOWER(c) \ 8040 (('a' <= (c) && (c) <= 'i') \ 8041 || ('j' <= (c) && (c) <= 'r') \ 8042 || ('s' <= (c) && (c) <= 'z')) 8043# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8044#endif 8045 8046#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8047int 8048main () 8049{ 8050 int i; 8051 for (i = 0; i < 256; i++) 8052 if (XOR (islower (i), ISLOWER (i)) 8053 || toupper (i) != TOUPPER (i)) 8054 return 2; 8055 return 0; 8056} 8057_ACEOF 8058if ac_fn_c_try_run "$LINENO"; then : 8059 8060else 8061 ac_cv_header_stdc=no 8062fi 8063rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8064 conftest.$ac_objext conftest.beam conftest.$ac_ext 8065fi 8066 8067fi 8068fi 8069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8070$as_echo "$ac_cv_header_stdc" >&6; } 8071if test $ac_cv_header_stdc = yes; then 8072 8073$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8074 8075fi 8076 8077# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8078for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8079 inttypes.h stdint.h unistd.h 8080do : 8081 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8082ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8083" 8084if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8085 cat >>confdefs.h <<_ACEOF 8086#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8087_ACEOF 8088 8089fi 8090 8091done 8092 8093 8094for ac_header in dlfcn.h 8095do : 8096 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8097" 8098if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8099 cat >>confdefs.h <<_ACEOF 8100#define HAVE_DLFCN_H 1 8101_ACEOF 8102 8103fi 8104 8105done 8106 8107 8108 8109 8110 8111# Set options 8112 8113 8114 8115 enable_dlopen=no 8116 8117 8118 enable_win32_dll=no 8119 8120 8121 # Check whether --enable-shared was given. 8122if test "${enable_shared+set}" = set; then : 8123 enableval=$enable_shared; p=${PACKAGE-default} 8124 case $enableval in 8125 yes) enable_shared=yes ;; 8126 no) enable_shared=no ;; 8127 *) 8128 enable_shared=no 8129 # Look at the argument we got. We use all the common list separators. 8130 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8131 for pkg in $enableval; do 8132 IFS="$lt_save_ifs" 8133 if test "X$pkg" = "X$p"; then 8134 enable_shared=yes 8135 fi 8136 done 8137 IFS="$lt_save_ifs" 8138 ;; 8139 esac 8140else 8141 enable_shared=yes 8142fi 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 # Check whether --enable-static was given. 8153if test "${enable_static+set}" = set; then : 8154 enableval=$enable_static; p=${PACKAGE-default} 8155 case $enableval in 8156 yes) enable_static=yes ;; 8157 no) enable_static=no ;; 8158 *) 8159 enable_static=no 8160 # Look at the argument we got. We use all the common list separators. 8161 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8162 for pkg in $enableval; do 8163 IFS="$lt_save_ifs" 8164 if test "X$pkg" = "X$p"; then 8165 enable_static=yes 8166 fi 8167 done 8168 IFS="$lt_save_ifs" 8169 ;; 8170 esac 8171else 8172 enable_static=yes 8173fi 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184# Check whether --with-pic was given. 8185if test "${with_pic+set}" = set; then : 8186 withval=$with_pic; lt_p=${PACKAGE-default} 8187 case $withval in 8188 yes|no) pic_mode=$withval ;; 8189 *) 8190 pic_mode=default 8191 # Look at the argument we got. We use all the common list separators. 8192 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8193 for lt_pkg in $withval; do 8194 IFS="$lt_save_ifs" 8195 if test "X$lt_pkg" = "X$lt_p"; then 8196 pic_mode=yes 8197 fi 8198 done 8199 IFS="$lt_save_ifs" 8200 ;; 8201 esac 8202else 8203 pic_mode=default 8204fi 8205 8206 8207test -z "$pic_mode" && pic_mode=default 8208 8209 8210 8211 8212 8213 8214 8215 # Check whether --enable-fast-install was given. 8216if test "${enable_fast_install+set}" = set; then : 8217 enableval=$enable_fast_install; p=${PACKAGE-default} 8218 case $enableval in 8219 yes) enable_fast_install=yes ;; 8220 no) enable_fast_install=no ;; 8221 *) 8222 enable_fast_install=no 8223 # Look at the argument we got. We use all the common list separators. 8224 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8225 for pkg in $enableval; do 8226 IFS="$lt_save_ifs" 8227 if test "X$pkg" = "X$p"; then 8228 enable_fast_install=yes 8229 fi 8230 done 8231 IFS="$lt_save_ifs" 8232 ;; 8233 esac 8234else 8235 enable_fast_install=yes 8236fi 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248# This can be used to rebuild libtool when needed 8249LIBTOOL_DEPS="$ltmain" 8250 8251# Always use our own libtool. 8252LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283test -z "$LN_S" && LN_S="ln -s" 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298if test -n "${ZSH_VERSION+set}" ; then 8299 setopt NO_GLOB_SUBST 8300fi 8301 8302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8303$as_echo_n "checking for objdir... " >&6; } 8304if ${lt_cv_objdir+:} false; then : 8305 $as_echo_n "(cached) " >&6 8306else 8307 rm -f .libs 2>/dev/null 8308mkdir .libs 2>/dev/null 8309if test -d .libs; then 8310 lt_cv_objdir=.libs 8311else 8312 # MS-DOS does not allow filenames that begin with a dot. 8313 lt_cv_objdir=_libs 8314fi 8315rmdir .libs 2>/dev/null 8316fi 8317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8318$as_echo "$lt_cv_objdir" >&6; } 8319objdir=$lt_cv_objdir 8320 8321 8322 8323 8324 8325cat >>confdefs.h <<_ACEOF 8326#define LT_OBJDIR "$lt_cv_objdir/" 8327_ACEOF 8328 8329 8330 8331 8332case $host_os in 8333aix3*) 8334 # AIX sometimes has problems with the GCC collect2 program. For some 8335 # reason, if we set the COLLECT_NAMES environment variable, the problems 8336 # vanish in a puff of smoke. 8337 if test "X${COLLECT_NAMES+set}" != Xset; then 8338 COLLECT_NAMES= 8339 export COLLECT_NAMES 8340 fi 8341 ;; 8342esac 8343 8344# Global variables: 8345ofile=libtool 8346can_build_shared=yes 8347 8348# All known linkers require a `.a' archive for static linking (except MSVC, 8349# which needs '.lib'). 8350libext=a 8351 8352with_gnu_ld="$lt_cv_prog_gnu_ld" 8353 8354old_CC="$CC" 8355old_CFLAGS="$CFLAGS" 8356 8357# Set sane defaults for various variables 8358test -z "$CC" && CC=cc 8359test -z "$LTCC" && LTCC=$CC 8360test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8361test -z "$LD" && LD=ld 8362test -z "$ac_objext" && ac_objext=o 8363 8364for cc_temp in $compiler""; do 8365 case $cc_temp in 8366 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8367 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8368 \-*) ;; 8369 *) break;; 8370 esac 8371done 8372cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8373 8374 8375# Only perform the check for file, if the check method requires it 8376test -z "$MAGIC_CMD" && MAGIC_CMD=file 8377case $deplibs_check_method in 8378file_magic*) 8379 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8381$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8382if ${lt_cv_path_MAGIC_CMD+:} false; then : 8383 $as_echo_n "(cached) " >&6 8384else 8385 case $MAGIC_CMD in 8386[\\/*] | ?:[\\/]*) 8387 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8388 ;; 8389*) 8390 lt_save_MAGIC_CMD="$MAGIC_CMD" 8391 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8392 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8393 for ac_dir in $ac_dummy; do 8394 IFS="$lt_save_ifs" 8395 test -z "$ac_dir" && ac_dir=. 8396 if test -f $ac_dir/${ac_tool_prefix}file; then 8397 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8398 if test -n "$file_magic_test_file"; then 8399 case $deplibs_check_method in 8400 "file_magic "*) 8401 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8402 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8403 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8404 $EGREP "$file_magic_regex" > /dev/null; then 8405 : 8406 else 8407 cat <<_LT_EOF 1>&2 8408 8409*** Warning: the command libtool uses to detect shared libraries, 8410*** $file_magic_cmd, produces output that libtool cannot recognize. 8411*** The result is that libtool may fail to recognize shared libraries 8412*** as such. This will affect the creation of libtool libraries that 8413*** depend on shared libraries, but programs linked with such libtool 8414*** libraries will work regardless of this problem. Nevertheless, you 8415*** may want to report the problem to your system manager and/or to 8416*** bug-libtool@gnu.org 8417 8418_LT_EOF 8419 fi ;; 8420 esac 8421 fi 8422 break 8423 fi 8424 done 8425 IFS="$lt_save_ifs" 8426 MAGIC_CMD="$lt_save_MAGIC_CMD" 8427 ;; 8428esac 8429fi 8430 8431MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8432if test -n "$MAGIC_CMD"; then 8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8434$as_echo "$MAGIC_CMD" >&6; } 8435else 8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8437$as_echo "no" >&6; } 8438fi 8439 8440 8441 8442 8443 8444if test -z "$lt_cv_path_MAGIC_CMD"; then 8445 if test -n "$ac_tool_prefix"; then 8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8447$as_echo_n "checking for file... " >&6; } 8448if ${lt_cv_path_MAGIC_CMD+:} false; then : 8449 $as_echo_n "(cached) " >&6 8450else 8451 case $MAGIC_CMD in 8452[\\/*] | ?:[\\/]*) 8453 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8454 ;; 8455*) 8456 lt_save_MAGIC_CMD="$MAGIC_CMD" 8457 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8458 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8459 for ac_dir in $ac_dummy; do 8460 IFS="$lt_save_ifs" 8461 test -z "$ac_dir" && ac_dir=. 8462 if test -f $ac_dir/file; then 8463 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8464 if test -n "$file_magic_test_file"; then 8465 case $deplibs_check_method in 8466 "file_magic "*) 8467 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8468 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8469 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8470 $EGREP "$file_magic_regex" > /dev/null; then 8471 : 8472 else 8473 cat <<_LT_EOF 1>&2 8474 8475*** Warning: the command libtool uses to detect shared libraries, 8476*** $file_magic_cmd, produces output that libtool cannot recognize. 8477*** The result is that libtool may fail to recognize shared libraries 8478*** as such. This will affect the creation of libtool libraries that 8479*** depend on shared libraries, but programs linked with such libtool 8480*** libraries will work regardless of this problem. Nevertheless, you 8481*** may want to report the problem to your system manager and/or to 8482*** bug-libtool@gnu.org 8483 8484_LT_EOF 8485 fi ;; 8486 esac 8487 fi 8488 break 8489 fi 8490 done 8491 IFS="$lt_save_ifs" 8492 MAGIC_CMD="$lt_save_MAGIC_CMD" 8493 ;; 8494esac 8495fi 8496 8497MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8498if test -n "$MAGIC_CMD"; then 8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8500$as_echo "$MAGIC_CMD" >&6; } 8501else 8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8503$as_echo "no" >&6; } 8504fi 8505 8506 8507 else 8508 MAGIC_CMD=: 8509 fi 8510fi 8511 8512 fi 8513 ;; 8514esac 8515 8516# Use C for the default configuration in the libtool script 8517 8518lt_save_CC="$CC" 8519ac_ext=c 8520ac_cpp='$CPP $CPPFLAGS' 8521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8523ac_compiler_gnu=$ac_cv_c_compiler_gnu 8524 8525 8526# Source file extension for C test sources. 8527ac_ext=c 8528 8529# Object file extension for compiled C test sources. 8530objext=o 8531objext=$objext 8532 8533# Code to be used in simple compile tests 8534lt_simple_compile_test_code="int some_variable = 0;" 8535 8536# Code to be used in simple link tests 8537lt_simple_link_test_code='int main(){return(0);}' 8538 8539 8540 8541 8542 8543 8544 8545# If no C compiler was specified, use CC. 8546LTCC=${LTCC-"$CC"} 8547 8548# If no C compiler flags were specified, use CFLAGS. 8549LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8550 8551# Allow CC to be a program name with arguments. 8552compiler=$CC 8553 8554# Save the default compiler, since it gets overwritten when the other 8555# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8556compiler_DEFAULT=$CC 8557 8558# save warnings/boilerplate of simple test code 8559ac_outfile=conftest.$ac_objext 8560echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8561eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8562_lt_compiler_boilerplate=`cat conftest.err` 8563$RM conftest* 8564 8565ac_outfile=conftest.$ac_objext 8566echo "$lt_simple_link_test_code" >conftest.$ac_ext 8567eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8568_lt_linker_boilerplate=`cat conftest.err` 8569$RM -r conftest* 8570 8571 8572## CAVEAT EMPTOR: 8573## There is no encapsulation within the following macros, do not change 8574## the running order or otherwise move them around unless you know exactly 8575## what you are doing... 8576if test -n "$compiler"; then 8577 8578lt_prog_compiler_no_builtin_flag= 8579 8580if test "$GCC" = yes; then 8581 case $cc_basename in 8582 nvcc*) 8583 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8584 *) 8585 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8586 esac 8587 8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8589$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8590if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8591 $as_echo_n "(cached) " >&6 8592else 8593 lt_cv_prog_compiler_rtti_exceptions=no 8594 ac_outfile=conftest.$ac_objext 8595 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8596 lt_compiler_flag="-fno-rtti -fno-exceptions" 8597 # Insert the option either (1) after the last *FLAGS variable, or 8598 # (2) before a word containing "conftest.", or (3) at the end. 8599 # Note that $ac_compile itself does not contain backslashes and begins 8600 # with a dollar sign (not a hyphen), so the echo should work correctly. 8601 # The option is referenced via a variable to avoid confusing sed. 8602 lt_compile=`echo "$ac_compile" | $SED \ 8603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8605 -e 's:$: $lt_compiler_flag:'` 8606 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8607 (eval "$lt_compile" 2>conftest.err) 8608 ac_status=$? 8609 cat conftest.err >&5 8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8611 if (exit $ac_status) && test -s "$ac_outfile"; then 8612 # The compiler can only warn and ignore the option if not recognized 8613 # So say no if there are warnings other than the usual output. 8614 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8615 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8616 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8617 lt_cv_prog_compiler_rtti_exceptions=yes 8618 fi 8619 fi 8620 $RM conftest* 8621 8622fi 8623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8624$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8625 8626if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8627 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8628else 8629 : 8630fi 8631 8632fi 8633 8634 8635 8636 8637 8638 8639 lt_prog_compiler_wl= 8640lt_prog_compiler_pic= 8641lt_prog_compiler_static= 8642 8643 8644 if test "$GCC" = yes; then 8645 lt_prog_compiler_wl='-Wl,' 8646 lt_prog_compiler_static='-static' 8647 8648 case $host_os in 8649 aix*) 8650 # All AIX code is PIC. 8651 if test "$host_cpu" = ia64; then 8652 # AIX 5 now supports IA64 processor 8653 lt_prog_compiler_static='-Bstatic' 8654 fi 8655 ;; 8656 8657 amigaos*) 8658 case $host_cpu in 8659 powerpc) 8660 # see comment about AmigaOS4 .so support 8661 lt_prog_compiler_pic='-fPIC' 8662 ;; 8663 m68k) 8664 # FIXME: we need at least 68020 code to build shared libraries, but 8665 # adding the `-m68020' flag to GCC prevents building anything better, 8666 # like `-m68040'. 8667 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8668 ;; 8669 esac 8670 ;; 8671 8672 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8673 # PIC is the default for these OSes. 8674 ;; 8675 8676 mingw* | cygwin* | pw32* | os2* | cegcc*) 8677 # This hack is so that the source file can tell whether it is being 8678 # built for inclusion in a dll (and should export symbols for example). 8679 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8680 # (--disable-auto-import) libraries 8681 lt_prog_compiler_pic='-DDLL_EXPORT' 8682 ;; 8683 8684 darwin* | rhapsody*) 8685 # PIC is the default on this platform 8686 # Common symbols not allowed in MH_DYLIB files 8687 lt_prog_compiler_pic='-fno-common' 8688 ;; 8689 8690 haiku*) 8691 # PIC is the default for Haiku. 8692 # The "-static" flag exists, but is broken. 8693 lt_prog_compiler_static= 8694 ;; 8695 8696 hpux*) 8697 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8698 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8699 # sets the default TLS model and affects inlining. 8700 case $host_cpu in 8701 hppa*64*) 8702 # +Z the default 8703 ;; 8704 *) 8705 lt_prog_compiler_pic='-fPIC' 8706 ;; 8707 esac 8708 ;; 8709 8710 interix[3-9]*) 8711 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8712 # Instead, we relocate shared libraries at runtime. 8713 ;; 8714 8715 msdosdjgpp*) 8716 # Just because we use GCC doesn't mean we suddenly get shared libraries 8717 # on systems that don't support them. 8718 lt_prog_compiler_can_build_shared=no 8719 enable_shared=no 8720 ;; 8721 8722 *nto* | *qnx*) 8723 # QNX uses GNU C++, but need to define -shared option too, otherwise 8724 # it will coredump. 8725 lt_prog_compiler_pic='-fPIC -shared' 8726 ;; 8727 8728 sysv4*MP*) 8729 if test -d /usr/nec; then 8730 lt_prog_compiler_pic=-Kconform_pic 8731 fi 8732 ;; 8733 8734 *) 8735 lt_prog_compiler_pic='-fPIC' 8736 ;; 8737 esac 8738 8739 case $cc_basename in 8740 nvcc*) # Cuda Compiler Driver 2.2 8741 lt_prog_compiler_wl='-Xlinker ' 8742 if test -n "$lt_prog_compiler_pic"; then 8743 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8744 fi 8745 ;; 8746 esac 8747 else 8748 # PORTME Check for flag to pass linker flags through the system compiler. 8749 case $host_os in 8750 aix*) 8751 lt_prog_compiler_wl='-Wl,' 8752 if test "$host_cpu" = ia64; then 8753 # AIX 5 now supports IA64 processor 8754 lt_prog_compiler_static='-Bstatic' 8755 else 8756 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8757 fi 8758 ;; 8759 8760 mingw* | cygwin* | pw32* | os2* | cegcc*) 8761 # This hack is so that the source file can tell whether it is being 8762 # built for inclusion in a dll (and should export symbols for example). 8763 lt_prog_compiler_pic='-DDLL_EXPORT' 8764 ;; 8765 8766 hpux9* | hpux10* | hpux11*) 8767 lt_prog_compiler_wl='-Wl,' 8768 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8769 # not for PA HP-UX. 8770 case $host_cpu in 8771 hppa*64*|ia64*) 8772 # +Z the default 8773 ;; 8774 *) 8775 lt_prog_compiler_pic='+Z' 8776 ;; 8777 esac 8778 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8779 lt_prog_compiler_static='${wl}-a ${wl}archive' 8780 ;; 8781 8782 irix5* | irix6* | nonstopux*) 8783 lt_prog_compiler_wl='-Wl,' 8784 # PIC (with -KPIC) is the default. 8785 lt_prog_compiler_static='-non_shared' 8786 ;; 8787 8788 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8789 case $cc_basename in 8790 # old Intel for x86_64 which still supported -KPIC. 8791 ecc*) 8792 lt_prog_compiler_wl='-Wl,' 8793 lt_prog_compiler_pic='-KPIC' 8794 lt_prog_compiler_static='-static' 8795 ;; 8796 # icc used to be incompatible with GCC. 8797 # ICC 10 doesn't accept -KPIC any more. 8798 icc* | ifort*) 8799 lt_prog_compiler_wl='-Wl,' 8800 lt_prog_compiler_pic='-fPIC' 8801 lt_prog_compiler_static='-static' 8802 ;; 8803 # Lahey Fortran 8.1. 8804 lf95*) 8805 lt_prog_compiler_wl='-Wl,' 8806 lt_prog_compiler_pic='--shared' 8807 lt_prog_compiler_static='--static' 8808 ;; 8809 nagfor*) 8810 # NAG Fortran compiler 8811 lt_prog_compiler_wl='-Wl,-Wl,,' 8812 lt_prog_compiler_pic='-PIC' 8813 lt_prog_compiler_static='-Bstatic' 8814 ;; 8815 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8816 # Portland Group compilers (*not* the Pentium gcc compiler, 8817 # which looks to be a dead project) 8818 lt_prog_compiler_wl='-Wl,' 8819 lt_prog_compiler_pic='-fpic' 8820 lt_prog_compiler_static='-Bstatic' 8821 ;; 8822 ccc*) 8823 lt_prog_compiler_wl='-Wl,' 8824 # All Alpha code is PIC. 8825 lt_prog_compiler_static='-non_shared' 8826 ;; 8827 xl* | bgxl* | bgf* | mpixl*) 8828 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8829 lt_prog_compiler_wl='-Wl,' 8830 lt_prog_compiler_pic='-qpic' 8831 lt_prog_compiler_static='-qstaticlink' 8832 ;; 8833 *) 8834 case `$CC -V 2>&1 | sed 5q` in 8835 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8836 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8837 lt_prog_compiler_pic='-KPIC' 8838 lt_prog_compiler_static='-Bstatic' 8839 lt_prog_compiler_wl='' 8840 ;; 8841 *Sun\ F* | *Sun*Fortran*) 8842 lt_prog_compiler_pic='-KPIC' 8843 lt_prog_compiler_static='-Bstatic' 8844 lt_prog_compiler_wl='-Qoption ld ' 8845 ;; 8846 *Sun\ C*) 8847 # Sun C 5.9 8848 lt_prog_compiler_pic='-KPIC' 8849 lt_prog_compiler_static='-Bstatic' 8850 lt_prog_compiler_wl='-Wl,' 8851 ;; 8852 *Intel*\ [CF]*Compiler*) 8853 lt_prog_compiler_wl='-Wl,' 8854 lt_prog_compiler_pic='-fPIC' 8855 lt_prog_compiler_static='-static' 8856 ;; 8857 *Portland\ Group*) 8858 lt_prog_compiler_wl='-Wl,' 8859 lt_prog_compiler_pic='-fpic' 8860 lt_prog_compiler_static='-Bstatic' 8861 ;; 8862 esac 8863 ;; 8864 esac 8865 ;; 8866 8867 newsos6) 8868 lt_prog_compiler_pic='-KPIC' 8869 lt_prog_compiler_static='-Bstatic' 8870 ;; 8871 8872 *nto* | *qnx*) 8873 # QNX uses GNU C++, but need to define -shared option too, otherwise 8874 # it will coredump. 8875 lt_prog_compiler_pic='-fPIC -shared' 8876 ;; 8877 8878 osf3* | osf4* | osf5*) 8879 lt_prog_compiler_wl='-Wl,' 8880 # All OSF/1 code is PIC. 8881 lt_prog_compiler_static='-non_shared' 8882 ;; 8883 8884 rdos*) 8885 lt_prog_compiler_static='-non_shared' 8886 ;; 8887 8888 solaris*) 8889 lt_prog_compiler_pic='-KPIC' 8890 lt_prog_compiler_static='-Bstatic' 8891 case $cc_basename in 8892 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8893 lt_prog_compiler_wl='-Qoption ld ';; 8894 *) 8895 lt_prog_compiler_wl='-Wl,';; 8896 esac 8897 ;; 8898 8899 sunos4*) 8900 lt_prog_compiler_wl='-Qoption ld ' 8901 lt_prog_compiler_pic='-PIC' 8902 lt_prog_compiler_static='-Bstatic' 8903 ;; 8904 8905 sysv4 | sysv4.2uw2* | sysv4.3*) 8906 lt_prog_compiler_wl='-Wl,' 8907 lt_prog_compiler_pic='-KPIC' 8908 lt_prog_compiler_static='-Bstatic' 8909 ;; 8910 8911 sysv4*MP*) 8912 if test -d /usr/nec ;then 8913 lt_prog_compiler_pic='-Kconform_pic' 8914 lt_prog_compiler_static='-Bstatic' 8915 fi 8916 ;; 8917 8918 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8919 lt_prog_compiler_wl='-Wl,' 8920 lt_prog_compiler_pic='-KPIC' 8921 lt_prog_compiler_static='-Bstatic' 8922 ;; 8923 8924 unicos*) 8925 lt_prog_compiler_wl='-Wl,' 8926 lt_prog_compiler_can_build_shared=no 8927 ;; 8928 8929 uts4*) 8930 lt_prog_compiler_pic='-pic' 8931 lt_prog_compiler_static='-Bstatic' 8932 ;; 8933 8934 *) 8935 lt_prog_compiler_can_build_shared=no 8936 ;; 8937 esac 8938 fi 8939 8940case $host_os in 8941 # For platforms which do not support PIC, -DPIC is meaningless: 8942 *djgpp*) 8943 lt_prog_compiler_pic= 8944 ;; 8945 *) 8946 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8947 ;; 8948esac 8949 8950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8951$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8952if ${lt_cv_prog_compiler_pic+:} false; then : 8953 $as_echo_n "(cached) " >&6 8954else 8955 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8956fi 8957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8958$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8959lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8960 8961# 8962# Check to make sure the PIC flag actually works. 8963# 8964if test -n "$lt_prog_compiler_pic"; then 8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8966$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8967if ${lt_cv_prog_compiler_pic_works+:} false; then : 8968 $as_echo_n "(cached) " >&6 8969else 8970 lt_cv_prog_compiler_pic_works=no 8971 ac_outfile=conftest.$ac_objext 8972 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8973 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8974 # Insert the option either (1) after the last *FLAGS variable, or 8975 # (2) before a word containing "conftest.", or (3) at the end. 8976 # Note that $ac_compile itself does not contain backslashes and begins 8977 # with a dollar sign (not a hyphen), so the echo should work correctly. 8978 # The option is referenced via a variable to avoid confusing sed. 8979 lt_compile=`echo "$ac_compile" | $SED \ 8980 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8982 -e 's:$: $lt_compiler_flag:'` 8983 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8984 (eval "$lt_compile" 2>conftest.err) 8985 ac_status=$? 8986 cat conftest.err >&5 8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8988 if (exit $ac_status) && test -s "$ac_outfile"; then 8989 # The compiler can only warn and ignore the option if not recognized 8990 # So say no if there are warnings other than the usual output. 8991 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8992 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8993 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8994 lt_cv_prog_compiler_pic_works=yes 8995 fi 8996 fi 8997 $RM conftest* 8998 8999fi 9000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9001$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9002 9003if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9004 case $lt_prog_compiler_pic in 9005 "" | " "*) ;; 9006 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9007 esac 9008else 9009 lt_prog_compiler_pic= 9010 lt_prog_compiler_can_build_shared=no 9011fi 9012 9013fi 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025# 9026# Check to make sure the static flag actually works. 9027# 9028wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9030$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9031if ${lt_cv_prog_compiler_static_works+:} false; then : 9032 $as_echo_n "(cached) " >&6 9033else 9034 lt_cv_prog_compiler_static_works=no 9035 save_LDFLAGS="$LDFLAGS" 9036 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9037 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9038 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9039 # The linker can only warn and ignore the option if not recognized 9040 # So say no if there are warnings 9041 if test -s conftest.err; then 9042 # Append any errors to the config.log. 9043 cat conftest.err 1>&5 9044 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9045 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9046 if diff conftest.exp conftest.er2 >/dev/null; then 9047 lt_cv_prog_compiler_static_works=yes 9048 fi 9049 else 9050 lt_cv_prog_compiler_static_works=yes 9051 fi 9052 fi 9053 $RM -r conftest* 9054 LDFLAGS="$save_LDFLAGS" 9055 9056fi 9057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9058$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9059 9060if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9061 : 9062else 9063 lt_prog_compiler_static= 9064fi 9065 9066 9067 9068 9069 9070 9071 9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9073$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9074if ${lt_cv_prog_compiler_c_o+:} false; then : 9075 $as_echo_n "(cached) " >&6 9076else 9077 lt_cv_prog_compiler_c_o=no 9078 $RM -r conftest 2>/dev/null 9079 mkdir conftest 9080 cd conftest 9081 mkdir out 9082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9083 9084 lt_compiler_flag="-o out/conftest2.$ac_objext" 9085 # Insert the option either (1) after the last *FLAGS variable, or 9086 # (2) before a word containing "conftest.", or (3) at the end. 9087 # Note that $ac_compile itself does not contain backslashes and begins 9088 # with a dollar sign (not a hyphen), so the echo should work correctly. 9089 lt_compile=`echo "$ac_compile" | $SED \ 9090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9092 -e 's:$: $lt_compiler_flag:'` 9093 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9094 (eval "$lt_compile" 2>out/conftest.err) 9095 ac_status=$? 9096 cat out/conftest.err >&5 9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9098 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9099 then 9100 # The compiler can only warn and ignore the option if not recognized 9101 # So say no if there are warnings 9102 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9103 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9104 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9105 lt_cv_prog_compiler_c_o=yes 9106 fi 9107 fi 9108 chmod u+w . 2>&5 9109 $RM conftest* 9110 # SGI C++ compiler will create directory out/ii_files/ for 9111 # template instantiation 9112 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9113 $RM out/* && rmdir out 9114 cd .. 9115 $RM -r conftest 9116 $RM conftest* 9117 9118fi 9119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9120$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9121 9122 9123 9124 9125 9126 9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9128$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9129if ${lt_cv_prog_compiler_c_o+:} false; then : 9130 $as_echo_n "(cached) " >&6 9131else 9132 lt_cv_prog_compiler_c_o=no 9133 $RM -r conftest 2>/dev/null 9134 mkdir conftest 9135 cd conftest 9136 mkdir out 9137 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9138 9139 lt_compiler_flag="-o out/conftest2.$ac_objext" 9140 # Insert the option either (1) after the last *FLAGS variable, or 9141 # (2) before a word containing "conftest.", or (3) at the end. 9142 # Note that $ac_compile itself does not contain backslashes and begins 9143 # with a dollar sign (not a hyphen), so the echo should work correctly. 9144 lt_compile=`echo "$ac_compile" | $SED \ 9145 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9146 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9147 -e 's:$: $lt_compiler_flag:'` 9148 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9149 (eval "$lt_compile" 2>out/conftest.err) 9150 ac_status=$? 9151 cat out/conftest.err >&5 9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9153 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9154 then 9155 # The compiler can only warn and ignore the option if not recognized 9156 # So say no if there are warnings 9157 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9158 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9159 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9160 lt_cv_prog_compiler_c_o=yes 9161 fi 9162 fi 9163 chmod u+w . 2>&5 9164 $RM conftest* 9165 # SGI C++ compiler will create directory out/ii_files/ for 9166 # template instantiation 9167 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9168 $RM out/* && rmdir out 9169 cd .. 9170 $RM -r conftest 9171 $RM conftest* 9172 9173fi 9174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9175$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9176 9177 9178 9179 9180hard_links="nottested" 9181if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9182 # do not overwrite the value of need_locks provided by the user 9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9184$as_echo_n "checking if we can lock with hard links... " >&6; } 9185 hard_links=yes 9186 $RM conftest* 9187 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9188 touch conftest.a 9189 ln conftest.a conftest.b 2>&5 || hard_links=no 9190 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9192$as_echo "$hard_links" >&6; } 9193 if test "$hard_links" = no; then 9194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9195$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9196 need_locks=warn 9197 fi 9198else 9199 need_locks=no 9200fi 9201 9202 9203 9204 9205 9206 9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9208$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9209 9210 runpath_var= 9211 allow_undefined_flag= 9212 always_export_symbols=no 9213 archive_cmds= 9214 archive_expsym_cmds= 9215 compiler_needs_object=no 9216 enable_shared_with_static_runtimes=no 9217 export_dynamic_flag_spec= 9218 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9219 hardcode_automatic=no 9220 hardcode_direct=no 9221 hardcode_direct_absolute=no 9222 hardcode_libdir_flag_spec= 9223 hardcode_libdir_separator= 9224 hardcode_minus_L=no 9225 hardcode_shlibpath_var=unsupported 9226 inherit_rpath=no 9227 link_all_deplibs=unknown 9228 module_cmds= 9229 module_expsym_cmds= 9230 old_archive_from_new_cmds= 9231 old_archive_from_expsyms_cmds= 9232 thread_safe_flag_spec= 9233 whole_archive_flag_spec= 9234 # include_expsyms should be a list of space-separated symbols to be *always* 9235 # included in the symbol list 9236 include_expsyms= 9237 # exclude_expsyms can be an extended regexp of symbols to exclude 9238 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9239 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9240 # as well as any symbol that contains `d'. 9241 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9242 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9243 # platforms (ab)use it in PIC code, but their linkers get confused if 9244 # the symbol is explicitly referenced. Since portable code cannot 9245 # rely on this symbol name, it's probably fine to never include it in 9246 # preloaded symbol tables. 9247 # Exclude shared library initialization/finalization symbols. 9248 extract_expsyms_cmds= 9249 9250 case $host_os in 9251 cygwin* | mingw* | pw32* | cegcc*) 9252 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9253 # When not using gcc, we currently assume that we are using 9254 # Microsoft Visual C++. 9255 if test "$GCC" != yes; then 9256 with_gnu_ld=no 9257 fi 9258 ;; 9259 interix*) 9260 # we just hope/assume this is gcc and not c89 (= MSVC++) 9261 with_gnu_ld=yes 9262 ;; 9263 openbsd*) 9264 with_gnu_ld=no 9265 ;; 9266 esac 9267 9268 ld_shlibs=yes 9269 9270 # On some targets, GNU ld is compatible enough with the native linker 9271 # that we're better off using the native interface for both. 9272 lt_use_gnu_ld_interface=no 9273 if test "$with_gnu_ld" = yes; then 9274 case $host_os in 9275 aix*) 9276 # The AIX port of GNU ld has always aspired to compatibility 9277 # with the native linker. However, as the warning in the GNU ld 9278 # block says, versions before 2.19.5* couldn't really create working 9279 # shared libraries, regardless of the interface used. 9280 case `$LD -v 2>&1` in 9281 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9282 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9283 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9284 *) 9285 lt_use_gnu_ld_interface=yes 9286 ;; 9287 esac 9288 ;; 9289 *) 9290 lt_use_gnu_ld_interface=yes 9291 ;; 9292 esac 9293 fi 9294 9295 if test "$lt_use_gnu_ld_interface" = yes; then 9296 # If archive_cmds runs LD, not CC, wlarc should be empty 9297 wlarc='${wl}' 9298 9299 # Set some defaults for GNU ld with shared library support. These 9300 # are reset later if shared libraries are not supported. Putting them 9301 # here allows them to be overridden if necessary. 9302 runpath_var=LD_RUN_PATH 9303 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9304 export_dynamic_flag_spec='${wl}--export-dynamic' 9305 # ancient GNU ld didn't support --whole-archive et. al. 9306 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9307 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9308 else 9309 whole_archive_flag_spec= 9310 fi 9311 supports_anon_versioning=no 9312 case `$LD -v 2>&1` in 9313 *GNU\ gold*) supports_anon_versioning=yes ;; 9314 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9315 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9316 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9317 *\ 2.11.*) ;; # other 2.11 versions 9318 *) supports_anon_versioning=yes ;; 9319 esac 9320 9321 # See if GNU ld supports shared libraries. 9322 case $host_os in 9323 aix[3-9]*) 9324 # On AIX/PPC, the GNU linker is very broken 9325 if test "$host_cpu" != ia64; then 9326 ld_shlibs=no 9327 cat <<_LT_EOF 1>&2 9328 9329*** Warning: the GNU linker, at least up to release 2.19, is reported 9330*** to be unable to reliably create shared libraries on AIX. 9331*** Therefore, libtool is disabling shared libraries support. If you 9332*** really care for shared libraries, you may want to install binutils 9333*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9334*** You will then need to restart the configuration process. 9335 9336_LT_EOF 9337 fi 9338 ;; 9339 9340 amigaos*) 9341 case $host_cpu in 9342 powerpc) 9343 # see comment about AmigaOS4 .so support 9344 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9345 archive_expsym_cmds='' 9346 ;; 9347 m68k) 9348 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)' 9349 hardcode_libdir_flag_spec='-L$libdir' 9350 hardcode_minus_L=yes 9351 ;; 9352 esac 9353 ;; 9354 9355 beos*) 9356 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9357 allow_undefined_flag=unsupported 9358 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9359 # support --undefined. This deserves some investigation. FIXME 9360 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9361 else 9362 ld_shlibs=no 9363 fi 9364 ;; 9365 9366 cygwin* | mingw* | pw32* | cegcc*) 9367 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9368 # as there is no search path for DLLs. 9369 hardcode_libdir_flag_spec='-L$libdir' 9370 export_dynamic_flag_spec='${wl}--export-all-symbols' 9371 allow_undefined_flag=unsupported 9372 always_export_symbols=no 9373 enable_shared_with_static_runtimes=yes 9374 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' 9375 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9376 9377 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9378 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9379 # If the export-symbols file already is a .def file (1st line 9380 # is EXPORTS), use it as is; otherwise, prepend... 9381 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9382 cp $export_symbols $output_objdir/$soname.def; 9383 else 9384 echo EXPORTS > $output_objdir/$soname.def; 9385 cat $export_symbols >> $output_objdir/$soname.def; 9386 fi~ 9387 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9388 else 9389 ld_shlibs=no 9390 fi 9391 ;; 9392 9393 haiku*) 9394 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9395 link_all_deplibs=yes 9396 ;; 9397 9398 interix[3-9]*) 9399 hardcode_direct=no 9400 hardcode_shlibpath_var=no 9401 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9402 export_dynamic_flag_spec='${wl}-E' 9403 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9404 # Instead, shared libraries are loaded at an image base (0x10000000 by 9405 # default) and relocated if they conflict, which is a slow very memory 9406 # consuming and fragmenting process. To avoid this, we pick a random, 9407 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9408 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9409 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9410 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9411 ;; 9412 9413 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9414 tmp_diet=no 9415 if test "$host_os" = linux-dietlibc; then 9416 case $cc_basename in 9417 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9418 esac 9419 fi 9420 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9421 && test "$tmp_diet" = no 9422 then 9423 tmp_addflag=' $pic_flag' 9424 tmp_sharedflag='-shared' 9425 case $cc_basename,$host_cpu in 9426 pgcc*) # Portland Group C compiler 9427 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9428 tmp_addflag=' $pic_flag' 9429 ;; 9430 pgf77* | pgf90* | pgf95* | pgfortran*) 9431 # Portland Group f77 and f90 compilers 9432 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9433 tmp_addflag=' $pic_flag -Mnomain' ;; 9434 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9435 tmp_addflag=' -i_dynamic' ;; 9436 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9437 tmp_addflag=' -i_dynamic -nofor_main' ;; 9438 ifc* | ifort*) # Intel Fortran compiler 9439 tmp_addflag=' -nofor_main' ;; 9440 lf95*) # Lahey Fortran 8.1 9441 whole_archive_flag_spec= 9442 tmp_sharedflag='--shared' ;; 9443 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9444 tmp_sharedflag='-qmkshrobj' 9445 tmp_addflag= ;; 9446 nvcc*) # Cuda Compiler Driver 2.2 9447 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9448 compiler_needs_object=yes 9449 ;; 9450 esac 9451 case `$CC -V 2>&1 | sed 5q` in 9452 *Sun\ C*) # Sun C 5.9 9453 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9454 compiler_needs_object=yes 9455 tmp_sharedflag='-G' ;; 9456 *Sun\ F*) # Sun Fortran 8.3 9457 tmp_sharedflag='-G' ;; 9458 esac 9459 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9460 9461 if test "x$supports_anon_versioning" = xyes; then 9462 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9463 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9464 echo "local: *; };" >> $output_objdir/$libname.ver~ 9465 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9466 fi 9467 9468 case $cc_basename in 9469 xlf* | bgf* | bgxlf* | mpixlf*) 9470 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9471 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9472 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9473 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9474 if test "x$supports_anon_versioning" = xyes; then 9475 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9476 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9477 echo "local: *; };" >> $output_objdir/$libname.ver~ 9478 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9479 fi 9480 ;; 9481 esac 9482 else 9483 ld_shlibs=no 9484 fi 9485 ;; 9486 9487 netbsd*) 9488 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9489 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9490 wlarc= 9491 else 9492 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9493 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9494 fi 9495 ;; 9496 9497 solaris*) 9498 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9499 ld_shlibs=no 9500 cat <<_LT_EOF 1>&2 9501 9502*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9503*** create shared libraries on Solaris systems. Therefore, libtool 9504*** is disabling shared libraries support. We urge you to upgrade GNU 9505*** binutils to release 2.9.1 or newer. Another option is to modify 9506*** your PATH or compiler configuration so that the native linker is 9507*** used, and then restart. 9508 9509_LT_EOF 9510 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9511 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9512 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9513 else 9514 ld_shlibs=no 9515 fi 9516 ;; 9517 9518 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9519 case `$LD -v 2>&1` in 9520 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9521 ld_shlibs=no 9522 cat <<_LT_EOF 1>&2 9523 9524*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9525*** reliably create shared libraries on SCO systems. Therefore, libtool 9526*** is disabling shared libraries support. We urge you to upgrade GNU 9527*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9528*** your PATH or compiler configuration so that the native linker is 9529*** used, and then restart. 9530 9531_LT_EOF 9532 ;; 9533 *) 9534 # For security reasons, it is highly recommended that you always 9535 # use absolute paths for naming shared libraries, and exclude the 9536 # DT_RUNPATH tag from executables and libraries. But doing so 9537 # requires that you compile everything twice, which is a pain. 9538 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9539 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9540 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9541 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9542 else 9543 ld_shlibs=no 9544 fi 9545 ;; 9546 esac 9547 ;; 9548 9549 sunos4*) 9550 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9551 wlarc= 9552 hardcode_direct=yes 9553 hardcode_shlibpath_var=no 9554 ;; 9555 9556 *) 9557 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9558 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9559 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9560 else 9561 ld_shlibs=no 9562 fi 9563 ;; 9564 esac 9565 9566 if test "$ld_shlibs" = no; then 9567 runpath_var= 9568 hardcode_libdir_flag_spec= 9569 export_dynamic_flag_spec= 9570 whole_archive_flag_spec= 9571 fi 9572 else 9573 # PORTME fill in a description of your system's linker (not GNU ld) 9574 case $host_os in 9575 aix3*) 9576 allow_undefined_flag=unsupported 9577 always_export_symbols=yes 9578 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' 9579 # Note: this linker hardcodes the directories in LIBPATH if there 9580 # are no directories specified by -L. 9581 hardcode_minus_L=yes 9582 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9583 # Neither direct hardcoding nor static linking is supported with a 9584 # broken collect2. 9585 hardcode_direct=unsupported 9586 fi 9587 ;; 9588 9589 aix[4-9]*) 9590 if test "$host_cpu" = ia64; then 9591 # On IA64, the linker does run time linking by default, so we don't 9592 # have to do anything special. 9593 aix_use_runtimelinking=no 9594 exp_sym_flag='-Bexport' 9595 no_entry_flag="" 9596 else 9597 # If we're using GNU nm, then we don't want the "-C" option. 9598 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9599 # Also, AIX nm treats weak defined symbols like other global 9600 # defined symbols, whereas GNU nm marks them as "W". 9601 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9602 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' 9603 else 9604 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' 9605 fi 9606 aix_use_runtimelinking=no 9607 9608 # Test if we are trying to use run time linking or normal 9609 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9610 # need to do runtime linking. 9611 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9612 for ld_flag in $LDFLAGS; do 9613 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9614 aix_use_runtimelinking=yes 9615 break 9616 fi 9617 done 9618 ;; 9619 esac 9620 9621 exp_sym_flag='-bexport' 9622 no_entry_flag='-bnoentry' 9623 fi 9624 9625 # When large executables or shared objects are built, AIX ld can 9626 # have problems creating the table of contents. If linking a library 9627 # or program results in "error TOC overflow" add -mminimal-toc to 9628 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9629 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9630 9631 archive_cmds='' 9632 hardcode_direct=yes 9633 hardcode_direct_absolute=yes 9634 hardcode_libdir_separator=':' 9635 link_all_deplibs=yes 9636 file_list_spec='${wl}-f,' 9637 9638 if test "$GCC" = yes; then 9639 case $host_os in aix4.[012]|aix4.[012].*) 9640 # We only want to do this on AIX 4.2 and lower, the check 9641 # below for broken collect2 doesn't work under 4.3+ 9642 collect2name=`${CC} -print-prog-name=collect2` 9643 if test -f "$collect2name" && 9644 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9645 then 9646 # We have reworked collect2 9647 : 9648 else 9649 # We have old collect2 9650 hardcode_direct=unsupported 9651 # It fails to find uninstalled libraries when the uninstalled 9652 # path is not listed in the libpath. Setting hardcode_minus_L 9653 # to unsupported forces relinking 9654 hardcode_minus_L=yes 9655 hardcode_libdir_flag_spec='-L$libdir' 9656 hardcode_libdir_separator= 9657 fi 9658 ;; 9659 esac 9660 shared_flag='-shared' 9661 if test "$aix_use_runtimelinking" = yes; then 9662 shared_flag="$shared_flag "'${wl}-G' 9663 fi 9664 else 9665 # not using gcc 9666 if test "$host_cpu" = ia64; then 9667 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9668 # chokes on -Wl,-G. The following line is correct: 9669 shared_flag='-G' 9670 else 9671 if test "$aix_use_runtimelinking" = yes; then 9672 shared_flag='${wl}-G' 9673 else 9674 shared_flag='${wl}-bM:SRE' 9675 fi 9676 fi 9677 fi 9678 9679 export_dynamic_flag_spec='${wl}-bexpall' 9680 # It seems that -bexpall does not export symbols beginning with 9681 # underscore (_), so it is better to generate a list of symbols to export. 9682 always_export_symbols=yes 9683 if test "$aix_use_runtimelinking" = yes; then 9684 # Warning - without using the other runtime loading flags (-brtl), 9685 # -berok will link without error, but may produce a broken library. 9686 allow_undefined_flag='-berok' 9687 # Determine the default libpath from the value encoded in an 9688 # empty executable. 9689 if test "${lt_cv_aix_libpath+set}" = set; then 9690 aix_libpath=$lt_cv_aix_libpath 9691else 9692 if ${lt_cv_aix_libpath_+:} false; then : 9693 $as_echo_n "(cached) " >&6 9694else 9695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9696/* end confdefs.h. */ 9697 9698int 9699main () 9700{ 9701 9702 ; 9703 return 0; 9704} 9705_ACEOF 9706if ac_fn_c_try_link "$LINENO"; then : 9707 9708 lt_aix_libpath_sed=' 9709 /Import File Strings/,/^$/ { 9710 /^0/ { 9711 s/^0 *\([^ ]*\) *$/\1/ 9712 p 9713 } 9714 }' 9715 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9716 # Check for a 64-bit object if we didn't find anything. 9717 if test -z "$lt_cv_aix_libpath_"; then 9718 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9719 fi 9720fi 9721rm -f core conftest.err conftest.$ac_objext \ 9722 conftest$ac_exeext conftest.$ac_ext 9723 if test -z "$lt_cv_aix_libpath_"; then 9724 lt_cv_aix_libpath_="/usr/lib:/lib" 9725 fi 9726 9727fi 9728 9729 aix_libpath=$lt_cv_aix_libpath_ 9730fi 9731 9732 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9733 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" 9734 else 9735 if test "$host_cpu" = ia64; then 9736 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9737 allow_undefined_flag="-z nodefs" 9738 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" 9739 else 9740 # Determine the default libpath from the value encoded in an 9741 # empty executable. 9742 if test "${lt_cv_aix_libpath+set}" = set; then 9743 aix_libpath=$lt_cv_aix_libpath 9744else 9745 if ${lt_cv_aix_libpath_+:} false; then : 9746 $as_echo_n "(cached) " >&6 9747else 9748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9749/* end confdefs.h. */ 9750 9751int 9752main () 9753{ 9754 9755 ; 9756 return 0; 9757} 9758_ACEOF 9759if ac_fn_c_try_link "$LINENO"; then : 9760 9761 lt_aix_libpath_sed=' 9762 /Import File Strings/,/^$/ { 9763 /^0/ { 9764 s/^0 *\([^ ]*\) *$/\1/ 9765 p 9766 } 9767 }' 9768 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9769 # Check for a 64-bit object if we didn't find anything. 9770 if test -z "$lt_cv_aix_libpath_"; then 9771 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9772 fi 9773fi 9774rm -f core conftest.err conftest.$ac_objext \ 9775 conftest$ac_exeext conftest.$ac_ext 9776 if test -z "$lt_cv_aix_libpath_"; then 9777 lt_cv_aix_libpath_="/usr/lib:/lib" 9778 fi 9779 9780fi 9781 9782 aix_libpath=$lt_cv_aix_libpath_ 9783fi 9784 9785 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9786 # Warning - without using the other run time loading flags, 9787 # -berok will link without error, but may produce a broken library. 9788 no_undefined_flag=' ${wl}-bernotok' 9789 allow_undefined_flag=' ${wl}-berok' 9790 if test "$with_gnu_ld" = yes; then 9791 # We only use this code for GNU lds that support --whole-archive. 9792 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9793 else 9794 # Exported symbols can be pulled into shared objects from archives 9795 whole_archive_flag_spec='$convenience' 9796 fi 9797 archive_cmds_need_lc=yes 9798 # This is similar to how AIX traditionally builds its shared libraries. 9799 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' 9800 fi 9801 fi 9802 ;; 9803 9804 amigaos*) 9805 case $host_cpu in 9806 powerpc) 9807 # see comment about AmigaOS4 .so support 9808 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9809 archive_expsym_cmds='' 9810 ;; 9811 m68k) 9812 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)' 9813 hardcode_libdir_flag_spec='-L$libdir' 9814 hardcode_minus_L=yes 9815 ;; 9816 esac 9817 ;; 9818 9819 bsdi[45]*) 9820 export_dynamic_flag_spec=-rdynamic 9821 ;; 9822 9823 cygwin* | mingw* | pw32* | cegcc*) 9824 # When not using gcc, we currently assume that we are using 9825 # Microsoft Visual C++. 9826 # hardcode_libdir_flag_spec is actually meaningless, as there is 9827 # no search path for DLLs. 9828 case $cc_basename in 9829 cl*) 9830 # Native MSVC 9831 hardcode_libdir_flag_spec=' ' 9832 allow_undefined_flag=unsupported 9833 always_export_symbols=yes 9834 file_list_spec='@' 9835 # Tell ltmain to make .lib files, not .a files. 9836 libext=lib 9837 # Tell ltmain to make .dll files, not .so files. 9838 shrext_cmds=".dll" 9839 # FIXME: Setting linknames here is a bad hack. 9840 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9841 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9842 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9843 else 9844 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9845 fi~ 9846 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9847 linknames=' 9848 # The linker will not automatically build a static lib if we build a DLL. 9849 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9850 enable_shared_with_static_runtimes=yes 9851 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9852 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9853 # Don't use ranlib 9854 old_postinstall_cmds='chmod 644 $oldlib' 9855 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9856 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9857 case $lt_outputfile in 9858 *.exe|*.EXE) ;; 9859 *) 9860 lt_outputfile="$lt_outputfile.exe" 9861 lt_tool_outputfile="$lt_tool_outputfile.exe" 9862 ;; 9863 esac~ 9864 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9865 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9866 $RM "$lt_outputfile.manifest"; 9867 fi' 9868 ;; 9869 *) 9870 # Assume MSVC wrapper 9871 hardcode_libdir_flag_spec=' ' 9872 allow_undefined_flag=unsupported 9873 # Tell ltmain to make .lib files, not .a files. 9874 libext=lib 9875 # Tell ltmain to make .dll files, not .so files. 9876 shrext_cmds=".dll" 9877 # FIXME: Setting linknames here is a bad hack. 9878 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9879 # The linker will automatically build a .lib file if we build a DLL. 9880 old_archive_from_new_cmds='true' 9881 # FIXME: Should let the user specify the lib program. 9882 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9883 enable_shared_with_static_runtimes=yes 9884 ;; 9885 esac 9886 ;; 9887 9888 darwin* | rhapsody*) 9889 9890 9891 archive_cmds_need_lc=no 9892 hardcode_direct=no 9893 hardcode_automatic=yes 9894 hardcode_shlibpath_var=unsupported 9895 if test "$lt_cv_ld_force_load" = "yes"; then 9896 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\"`' 9897 9898 else 9899 whole_archive_flag_spec='' 9900 fi 9901 link_all_deplibs=yes 9902 allow_undefined_flag="$_lt_dar_allow_undefined" 9903 case $cc_basename in 9904 ifort*) _lt_dar_can_shared=yes ;; 9905 *) _lt_dar_can_shared=$GCC ;; 9906 esac 9907 if test "$_lt_dar_can_shared" = "yes"; then 9908 output_verbose_link_cmd=func_echo_all 9909 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9910 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9911 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}" 9912 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}" 9913 9914 else 9915 ld_shlibs=no 9916 fi 9917 9918 ;; 9919 9920 dgux*) 9921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9922 hardcode_libdir_flag_spec='-L$libdir' 9923 hardcode_shlibpath_var=no 9924 ;; 9925 9926 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9927 # support. Future versions do this automatically, but an explicit c++rt0.o 9928 # does not break anything, and helps significantly (at the cost of a little 9929 # extra space). 9930 freebsd2.2*) 9931 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9932 hardcode_libdir_flag_spec='-R$libdir' 9933 hardcode_direct=yes 9934 hardcode_shlibpath_var=no 9935 ;; 9936 9937 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9938 freebsd2.*) 9939 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9940 hardcode_direct=yes 9941 hardcode_minus_L=yes 9942 hardcode_shlibpath_var=no 9943 ;; 9944 9945 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9946 freebsd* | dragonfly*) 9947 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9948 hardcode_libdir_flag_spec='-R$libdir' 9949 hardcode_direct=yes 9950 hardcode_shlibpath_var=no 9951 ;; 9952 9953 hpux9*) 9954 if test "$GCC" = yes; then 9955 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' 9956 else 9957 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' 9958 fi 9959 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9960 hardcode_libdir_separator=: 9961 hardcode_direct=yes 9962 9963 # hardcode_minus_L: Not really in the search PATH, 9964 # but as the default location of the library. 9965 hardcode_minus_L=yes 9966 export_dynamic_flag_spec='${wl}-E' 9967 ;; 9968 9969 hpux10*) 9970 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9971 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9972 else 9973 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9974 fi 9975 if test "$with_gnu_ld" = no; then 9976 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9977 hardcode_libdir_separator=: 9978 hardcode_direct=yes 9979 hardcode_direct_absolute=yes 9980 export_dynamic_flag_spec='${wl}-E' 9981 # hardcode_minus_L: Not really in the search PATH, 9982 # but as the default location of the library. 9983 hardcode_minus_L=yes 9984 fi 9985 ;; 9986 9987 hpux11*) 9988 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9989 case $host_cpu in 9990 hppa*64*) 9991 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9992 ;; 9993 ia64*) 9994 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9995 ;; 9996 *) 9997 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9998 ;; 9999 esac 10000 else 10001 case $host_cpu in 10002 hppa*64*) 10003 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10004 ;; 10005 ia64*) 10006 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10007 ;; 10008 *) 10009 10010 # Older versions of the 11.00 compiler do not understand -b yet 10011 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10013$as_echo_n "checking if $CC understands -b... " >&6; } 10014if ${lt_cv_prog_compiler__b+:} false; then : 10015 $as_echo_n "(cached) " >&6 10016else 10017 lt_cv_prog_compiler__b=no 10018 save_LDFLAGS="$LDFLAGS" 10019 LDFLAGS="$LDFLAGS -b" 10020 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10021 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10022 # The linker can only warn and ignore the option if not recognized 10023 # So say no if there are warnings 10024 if test -s conftest.err; then 10025 # Append any errors to the config.log. 10026 cat conftest.err 1>&5 10027 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10028 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10029 if diff conftest.exp conftest.er2 >/dev/null; then 10030 lt_cv_prog_compiler__b=yes 10031 fi 10032 else 10033 lt_cv_prog_compiler__b=yes 10034 fi 10035 fi 10036 $RM -r conftest* 10037 LDFLAGS="$save_LDFLAGS" 10038 10039fi 10040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10041$as_echo "$lt_cv_prog_compiler__b" >&6; } 10042 10043if test x"$lt_cv_prog_compiler__b" = xyes; then 10044 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10045else 10046 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10047fi 10048 10049 ;; 10050 esac 10051 fi 10052 if test "$with_gnu_ld" = no; then 10053 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10054 hardcode_libdir_separator=: 10055 10056 case $host_cpu in 10057 hppa*64*|ia64*) 10058 hardcode_direct=no 10059 hardcode_shlibpath_var=no 10060 ;; 10061 *) 10062 hardcode_direct=yes 10063 hardcode_direct_absolute=yes 10064 export_dynamic_flag_spec='${wl}-E' 10065 10066 # hardcode_minus_L: Not really in the search PATH, 10067 # but as the default location of the library. 10068 hardcode_minus_L=yes 10069 ;; 10070 esac 10071 fi 10072 ;; 10073 10074 irix5* | irix6* | nonstopux*) 10075 if test "$GCC" = yes; then 10076 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' 10077 # Try to use the -exported_symbol ld option, if it does not 10078 # work, assume that -exports_file does not work either and 10079 # implicitly export all symbols. 10080 # This should be the same for all languages, so no per-tag cache variable. 10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10082$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10083if ${lt_cv_irix_exported_symbol+:} false; then : 10084 $as_echo_n "(cached) " >&6 10085else 10086 save_LDFLAGS="$LDFLAGS" 10087 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10089/* end confdefs.h. */ 10090int foo (void) { return 0; } 10091_ACEOF 10092if ac_fn_c_try_link "$LINENO"; then : 10093 lt_cv_irix_exported_symbol=yes 10094else 10095 lt_cv_irix_exported_symbol=no 10096fi 10097rm -f core conftest.err conftest.$ac_objext \ 10098 conftest$ac_exeext conftest.$ac_ext 10099 LDFLAGS="$save_LDFLAGS" 10100fi 10101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10102$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10103 if test "$lt_cv_irix_exported_symbol" = yes; then 10104 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' 10105 fi 10106 else 10107 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' 10108 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' 10109 fi 10110 archive_cmds_need_lc='no' 10111 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10112 hardcode_libdir_separator=: 10113 inherit_rpath=yes 10114 link_all_deplibs=yes 10115 ;; 10116 10117 netbsd*) 10118 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10119 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10120 else 10121 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10122 fi 10123 hardcode_libdir_flag_spec='-R$libdir' 10124 hardcode_direct=yes 10125 hardcode_shlibpath_var=no 10126 ;; 10127 10128 newsos6) 10129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10130 hardcode_direct=yes 10131 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10132 hardcode_libdir_separator=: 10133 hardcode_shlibpath_var=no 10134 ;; 10135 10136 *nto* | *qnx*) 10137 ;; 10138 10139 openbsd*) 10140 if test -f /usr/libexec/ld.so; then 10141 hardcode_direct=yes 10142 hardcode_shlibpath_var=no 10143 hardcode_direct_absolute=yes 10144 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10145 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10146 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10147 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10148 export_dynamic_flag_spec='${wl}-E' 10149 else 10150 case $host_os in 10151 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10152 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10153 hardcode_libdir_flag_spec='-R$libdir' 10154 ;; 10155 *) 10156 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10157 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10158 ;; 10159 esac 10160 fi 10161 else 10162 ld_shlibs=no 10163 fi 10164 ;; 10165 10166 os2*) 10167 hardcode_libdir_flag_spec='-L$libdir' 10168 hardcode_minus_L=yes 10169 allow_undefined_flag=unsupported 10170 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' 10171 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10172 ;; 10173 10174 osf3*) 10175 if test "$GCC" = yes; then 10176 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10177 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' 10178 else 10179 allow_undefined_flag=' -expect_unresolved \*' 10180 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' 10181 fi 10182 archive_cmds_need_lc='no' 10183 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10184 hardcode_libdir_separator=: 10185 ;; 10186 10187 osf4* | osf5*) # as osf3* with the addition of -msym flag 10188 if test "$GCC" = yes; then 10189 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10190 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' 10191 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10192 else 10193 allow_undefined_flag=' -expect_unresolved \*' 10194 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' 10195 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~ 10196 $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' 10197 10198 # Both c and cxx compiler support -rpath directly 10199 hardcode_libdir_flag_spec='-rpath $libdir' 10200 fi 10201 archive_cmds_need_lc='no' 10202 hardcode_libdir_separator=: 10203 ;; 10204 10205 solaris*) 10206 no_undefined_flag=' -z defs' 10207 if test "$GCC" = yes; then 10208 wlarc='${wl}' 10209 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10210 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10211 $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' 10212 else 10213 case `$CC -V 2>&1` in 10214 *"Compilers 5.0"*) 10215 wlarc='' 10216 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10217 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10218 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10219 ;; 10220 *) 10221 wlarc='${wl}' 10222 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10223 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10224 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10225 ;; 10226 esac 10227 fi 10228 hardcode_libdir_flag_spec='-R$libdir' 10229 hardcode_shlibpath_var=no 10230 case $host_os in 10231 solaris2.[0-5] | solaris2.[0-5].*) ;; 10232 *) 10233 # The compiler driver will combine and reorder linker options, 10234 # but understands `-z linker_flag'. GCC discards it without `$wl', 10235 # but is careful enough not to reorder. 10236 # Supported since Solaris 2.6 (maybe 2.5.1?) 10237 if test "$GCC" = yes; then 10238 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10239 else 10240 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10241 fi 10242 ;; 10243 esac 10244 link_all_deplibs=yes 10245 ;; 10246 10247 sunos4*) 10248 if test "x$host_vendor" = xsequent; then 10249 # Use $CC to link under sequent, because it throws in some extra .o 10250 # files that make .init and .fini sections work. 10251 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10252 else 10253 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10254 fi 10255 hardcode_libdir_flag_spec='-L$libdir' 10256 hardcode_direct=yes 10257 hardcode_minus_L=yes 10258 hardcode_shlibpath_var=no 10259 ;; 10260 10261 sysv4) 10262 case $host_vendor in 10263 sni) 10264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10265 hardcode_direct=yes # is this really true??? 10266 ;; 10267 siemens) 10268 ## LD is ld it makes a PLAMLIB 10269 ## CC just makes a GrossModule. 10270 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10271 reload_cmds='$CC -r -o $output$reload_objs' 10272 hardcode_direct=no 10273 ;; 10274 motorola) 10275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10276 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10277 ;; 10278 esac 10279 runpath_var='LD_RUN_PATH' 10280 hardcode_shlibpath_var=no 10281 ;; 10282 10283 sysv4.3*) 10284 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10285 hardcode_shlibpath_var=no 10286 export_dynamic_flag_spec='-Bexport' 10287 ;; 10288 10289 sysv4*MP*) 10290 if test -d /usr/nec; then 10291 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10292 hardcode_shlibpath_var=no 10293 runpath_var=LD_RUN_PATH 10294 hardcode_runpath_var=yes 10295 ld_shlibs=yes 10296 fi 10297 ;; 10298 10299 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10300 no_undefined_flag='${wl}-z,text' 10301 archive_cmds_need_lc=no 10302 hardcode_shlibpath_var=no 10303 runpath_var='LD_RUN_PATH' 10304 10305 if test "$GCC" = yes; then 10306 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10307 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10308 else 10309 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10310 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10311 fi 10312 ;; 10313 10314 sysv5* | sco3.2v5* | sco5v6*) 10315 # Note: We can NOT use -z defs as we might desire, because we do not 10316 # link with -lc, and that would cause any symbols used from libc to 10317 # always be unresolved, which means just about no library would 10318 # ever link correctly. If we're not using GNU ld we use -z text 10319 # though, which does catch some bad symbols but isn't as heavy-handed 10320 # as -z defs. 10321 no_undefined_flag='${wl}-z,text' 10322 allow_undefined_flag='${wl}-z,nodefs' 10323 archive_cmds_need_lc=no 10324 hardcode_shlibpath_var=no 10325 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10326 hardcode_libdir_separator=':' 10327 link_all_deplibs=yes 10328 export_dynamic_flag_spec='${wl}-Bexport' 10329 runpath_var='LD_RUN_PATH' 10330 10331 if test "$GCC" = yes; then 10332 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10333 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10334 else 10335 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10336 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10337 fi 10338 ;; 10339 10340 uts4*) 10341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10342 hardcode_libdir_flag_spec='-L$libdir' 10343 hardcode_shlibpath_var=no 10344 ;; 10345 10346 *) 10347 ld_shlibs=no 10348 ;; 10349 esac 10350 10351 if test x$host_vendor = xsni; then 10352 case $host in 10353 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10354 export_dynamic_flag_spec='${wl}-Blargedynsym' 10355 ;; 10356 esac 10357 fi 10358 fi 10359 10360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10361$as_echo "$ld_shlibs" >&6; } 10362test "$ld_shlibs" = no && can_build_shared=no 10363 10364with_gnu_ld=$with_gnu_ld 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380# 10381# Do we need to explicitly link libc? 10382# 10383case "x$archive_cmds_need_lc" in 10384x|xyes) 10385 # Assume -lc should be added 10386 archive_cmds_need_lc=yes 10387 10388 if test "$enable_shared" = yes && test "$GCC" = yes; then 10389 case $archive_cmds in 10390 *'~'*) 10391 # FIXME: we may have to deal with multi-command sequences. 10392 ;; 10393 '$CC '*) 10394 # Test whether the compiler implicitly links with -lc since on some 10395 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10396 # to ld, don't add -lc before -lgcc. 10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10398$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10399if ${lt_cv_archive_cmds_need_lc+:} false; then : 10400 $as_echo_n "(cached) " >&6 10401else 10402 $RM conftest* 10403 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10404 10405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10406 (eval $ac_compile) 2>&5 10407 ac_status=$? 10408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10409 test $ac_status = 0; } 2>conftest.err; then 10410 soname=conftest 10411 lib=conftest 10412 libobjs=conftest.$ac_objext 10413 deplibs= 10414 wl=$lt_prog_compiler_wl 10415 pic_flag=$lt_prog_compiler_pic 10416 compiler_flags=-v 10417 linker_flags=-v 10418 verstring= 10419 output_objdir=. 10420 libname=conftest 10421 lt_save_allow_undefined_flag=$allow_undefined_flag 10422 allow_undefined_flag= 10423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10424 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10425 ac_status=$? 10426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10427 test $ac_status = 0; } 10428 then 10429 lt_cv_archive_cmds_need_lc=no 10430 else 10431 lt_cv_archive_cmds_need_lc=yes 10432 fi 10433 allow_undefined_flag=$lt_save_allow_undefined_flag 10434 else 10435 cat conftest.err 1>&5 10436 fi 10437 $RM conftest* 10438 10439fi 10440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10441$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10442 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10443 ;; 10444 esac 10445 fi 10446 ;; 10447esac 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10601$as_echo_n "checking dynamic linker characteristics... " >&6; } 10602 10603if test "$GCC" = yes; then 10604 case $host_os in 10605 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10606 *) lt_awk_arg="/^libraries:/" ;; 10607 esac 10608 case $host_os in 10609 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10610 *) lt_sed_strip_eq="s,=/,/,g" ;; 10611 esac 10612 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10613 case $lt_search_path_spec in 10614 *\;*) 10615 # if the path contains ";" then we assume it to be the separator 10616 # otherwise default to the standard path separator (i.e. ":") - it is 10617 # assumed that no part of a normal pathname contains ";" but that should 10618 # okay in the real world where ";" in dirpaths is itself problematic. 10619 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10620 ;; 10621 *) 10622 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10623 ;; 10624 esac 10625 # Ok, now we have the path, separated by spaces, we can step through it 10626 # and add multilib dir if necessary. 10627 lt_tmp_lt_search_path_spec= 10628 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10629 for lt_sys_path in $lt_search_path_spec; do 10630 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10631 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10632 else 10633 test -d "$lt_sys_path" && \ 10634 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10635 fi 10636 done 10637 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10638BEGIN {RS=" "; FS="/|\n";} { 10639 lt_foo=""; 10640 lt_count=0; 10641 for (lt_i = NF; lt_i > 0; lt_i--) { 10642 if ($lt_i != "" && $lt_i != ".") { 10643 if ($lt_i == "..") { 10644 lt_count++; 10645 } else { 10646 if (lt_count == 0) { 10647 lt_foo="/" $lt_i lt_foo; 10648 } else { 10649 lt_count--; 10650 } 10651 } 10652 } 10653 } 10654 if (lt_foo != "") { lt_freq[lt_foo]++; } 10655 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10656}'` 10657 # AWK program above erroneously prepends '/' to C:/dos/paths 10658 # for these hosts. 10659 case $host_os in 10660 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10661 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10662 esac 10663 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10664else 10665 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10666fi 10667library_names_spec= 10668libname_spec='lib$name' 10669soname_spec= 10670shrext_cmds=".so" 10671postinstall_cmds= 10672postuninstall_cmds= 10673finish_cmds= 10674finish_eval= 10675shlibpath_var= 10676shlibpath_overrides_runpath=unknown 10677version_type=none 10678dynamic_linker="$host_os ld.so" 10679sys_lib_dlsearch_path_spec="/lib /usr/lib" 10680need_lib_prefix=unknown 10681hardcode_into_libs=no 10682 10683# when you set need_version to no, make sure it does not cause -set_version 10684# flags to be left without arguments 10685need_version=unknown 10686 10687case $host_os in 10688aix3*) 10689 version_type=linux # correct to gnu/linux during the next big refactor 10690 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10691 shlibpath_var=LIBPATH 10692 10693 # AIX 3 has no versioning support, so we append a major version to the name. 10694 soname_spec='${libname}${release}${shared_ext}$major' 10695 ;; 10696 10697aix[4-9]*) 10698 version_type=linux # correct to gnu/linux during the next big refactor 10699 need_lib_prefix=no 10700 need_version=no 10701 hardcode_into_libs=yes 10702 if test "$host_cpu" = ia64; then 10703 # AIX 5 supports IA64 10704 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10705 shlibpath_var=LD_LIBRARY_PATH 10706 else 10707 # With GCC up to 2.95.x, collect2 would create an import file 10708 # for dependence libraries. The import file would start with 10709 # the line `#! .'. This would cause the generated library to 10710 # depend on `.', always an invalid library. This was fixed in 10711 # development snapshots of GCC prior to 3.0. 10712 case $host_os in 10713 aix4 | aix4.[01] | aix4.[01].*) 10714 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10715 echo ' yes ' 10716 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10717 : 10718 else 10719 can_build_shared=no 10720 fi 10721 ;; 10722 esac 10723 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10724 # soname into executable. Probably we can add versioning support to 10725 # collect2, so additional links can be useful in future. 10726 if test "$aix_use_runtimelinking" = yes; then 10727 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10728 # instead of lib<name>.a to let people know that these are not 10729 # typical AIX shared libraries. 10730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10731 else 10732 # We preserve .a as extension for shared libraries through AIX4.2 10733 # and later when we are not doing run time linking. 10734 library_names_spec='${libname}${release}.a $libname.a' 10735 soname_spec='${libname}${release}${shared_ext}$major' 10736 fi 10737 shlibpath_var=LIBPATH 10738 fi 10739 ;; 10740 10741amigaos*) 10742 case $host_cpu in 10743 powerpc) 10744 # Since July 2007 AmigaOS4 officially supports .so libraries. 10745 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10747 ;; 10748 m68k) 10749 library_names_spec='$libname.ixlibrary $libname.a' 10750 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10751 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' 10752 ;; 10753 esac 10754 ;; 10755 10756beos*) 10757 library_names_spec='${libname}${shared_ext}' 10758 dynamic_linker="$host_os ld.so" 10759 shlibpath_var=LIBRARY_PATH 10760 ;; 10761 10762bsdi[45]*) 10763 version_type=linux # correct to gnu/linux during the next big refactor 10764 need_version=no 10765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10766 soname_spec='${libname}${release}${shared_ext}$major' 10767 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10768 shlibpath_var=LD_LIBRARY_PATH 10769 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10770 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10771 # the default ld.so.conf also contains /usr/contrib/lib and 10772 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10773 # libtool to hard-code these into programs 10774 ;; 10775 10776cygwin* | mingw* | pw32* | cegcc*) 10777 version_type=windows 10778 shrext_cmds=".dll" 10779 need_version=no 10780 need_lib_prefix=no 10781 10782 case $GCC,$cc_basename in 10783 yes,*) 10784 # gcc 10785 library_names_spec='$libname.dll.a' 10786 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10787 postinstall_cmds='base_file=`basename \${file}`~ 10788 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10789 dldir=$destdir/`dirname \$dlpath`~ 10790 test -d \$dldir || mkdir -p \$dldir~ 10791 $install_prog $dir/$dlname \$dldir/$dlname~ 10792 chmod a+x \$dldir/$dlname~ 10793 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10794 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10795 fi' 10796 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10797 dlpath=$dir/\$dldll~ 10798 $RM \$dlpath' 10799 shlibpath_overrides_runpath=yes 10800 10801 case $host_os in 10802 cygwin*) 10803 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10804 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10805 10806 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10807 ;; 10808 mingw* | cegcc*) 10809 # MinGW DLLs use traditional 'lib' prefix 10810 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10811 ;; 10812 pw32*) 10813 # pw32 DLLs use 'pw' prefix rather than 'lib' 10814 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10815 ;; 10816 esac 10817 dynamic_linker='Win32 ld.exe' 10818 ;; 10819 10820 *,cl*) 10821 # Native MSVC 10822 libname_spec='$name' 10823 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10824 library_names_spec='${libname}.dll.lib' 10825 10826 case $build_os in 10827 mingw*) 10828 sys_lib_search_path_spec= 10829 lt_save_ifs=$IFS 10830 IFS=';' 10831 for lt_path in $LIB 10832 do 10833 IFS=$lt_save_ifs 10834 # Let DOS variable expansion print the short 8.3 style file name. 10835 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10836 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10837 done 10838 IFS=$lt_save_ifs 10839 # Convert to MSYS style. 10840 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10841 ;; 10842 cygwin*) 10843 # Convert to unix form, then to dos form, then back to unix form 10844 # but this time dos style (no spaces!) so that the unix form looks 10845 # like /cygdrive/c/PROGRA~1:/cygdr... 10846 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10847 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10848 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10849 ;; 10850 *) 10851 sys_lib_search_path_spec="$LIB" 10852 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10853 # It is most probably a Windows format PATH. 10854 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10855 else 10856 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10857 fi 10858 # FIXME: find the short name or the path components, as spaces are 10859 # common. (e.g. "Program Files" -> "PROGRA~1") 10860 ;; 10861 esac 10862 10863 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10864 postinstall_cmds='base_file=`basename \${file}`~ 10865 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10866 dldir=$destdir/`dirname \$dlpath`~ 10867 test -d \$dldir || mkdir -p \$dldir~ 10868 $install_prog $dir/$dlname \$dldir/$dlname' 10869 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10870 dlpath=$dir/\$dldll~ 10871 $RM \$dlpath' 10872 shlibpath_overrides_runpath=yes 10873 dynamic_linker='Win32 link.exe' 10874 ;; 10875 10876 *) 10877 # Assume MSVC wrapper 10878 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10879 dynamic_linker='Win32 ld.exe' 10880 ;; 10881 esac 10882 # FIXME: first we should search . and the directory the executable is in 10883 shlibpath_var=PATH 10884 ;; 10885 10886darwin* | rhapsody*) 10887 dynamic_linker="$host_os dyld" 10888 version_type=darwin 10889 need_lib_prefix=no 10890 need_version=no 10891 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10892 soname_spec='${libname}${release}${major}$shared_ext' 10893 shlibpath_overrides_runpath=yes 10894 shlibpath_var=DYLD_LIBRARY_PATH 10895 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10896 10897 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10898 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10899 ;; 10900 10901dgux*) 10902 version_type=linux # correct to gnu/linux during the next big refactor 10903 need_lib_prefix=no 10904 need_version=no 10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10906 soname_spec='${libname}${release}${shared_ext}$major' 10907 shlibpath_var=LD_LIBRARY_PATH 10908 ;; 10909 10910freebsd* | dragonfly*) 10911 # DragonFly does not have aout. When/if they implement a new 10912 # versioning mechanism, adjust this. 10913 if test -x /usr/bin/objformat; then 10914 objformat=`/usr/bin/objformat` 10915 else 10916 case $host_os in 10917 freebsd[23].*) objformat=aout ;; 10918 *) objformat=elf ;; 10919 esac 10920 fi 10921 version_type=freebsd-$objformat 10922 case $version_type in 10923 freebsd-elf*) 10924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10925 need_version=no 10926 need_lib_prefix=no 10927 ;; 10928 freebsd-*) 10929 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10930 need_version=yes 10931 ;; 10932 esac 10933 shlibpath_var=LD_LIBRARY_PATH 10934 case $host_os in 10935 freebsd2.*) 10936 shlibpath_overrides_runpath=yes 10937 ;; 10938 freebsd3.[01]* | freebsdelf3.[01]*) 10939 shlibpath_overrides_runpath=yes 10940 hardcode_into_libs=yes 10941 ;; 10942 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10943 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10944 shlibpath_overrides_runpath=no 10945 hardcode_into_libs=yes 10946 ;; 10947 *) # from 4.6 on, and DragonFly 10948 shlibpath_overrides_runpath=yes 10949 hardcode_into_libs=yes 10950 ;; 10951 esac 10952 ;; 10953 10954gnu*) 10955 version_type=linux # correct to gnu/linux during the next big refactor 10956 need_lib_prefix=no 10957 need_version=no 10958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10959 soname_spec='${libname}${release}${shared_ext}$major' 10960 shlibpath_var=LD_LIBRARY_PATH 10961 shlibpath_overrides_runpath=no 10962 hardcode_into_libs=yes 10963 ;; 10964 10965haiku*) 10966 version_type=linux # correct to gnu/linux during the next big refactor 10967 need_lib_prefix=no 10968 need_version=no 10969 dynamic_linker="$host_os runtime_loader" 10970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10971 soname_spec='${libname}${release}${shared_ext}$major' 10972 shlibpath_var=LIBRARY_PATH 10973 shlibpath_overrides_runpath=yes 10974 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10975 hardcode_into_libs=yes 10976 ;; 10977 10978hpux9* | hpux10* | hpux11*) 10979 # Give a soname corresponding to the major version so that dld.sl refuses to 10980 # link against other versions. 10981 version_type=sunos 10982 need_lib_prefix=no 10983 need_version=no 10984 case $host_cpu in 10985 ia64*) 10986 shrext_cmds='.so' 10987 hardcode_into_libs=yes 10988 dynamic_linker="$host_os dld.so" 10989 shlibpath_var=LD_LIBRARY_PATH 10990 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10992 soname_spec='${libname}${release}${shared_ext}$major' 10993 if test "X$HPUX_IA64_MODE" = X32; then 10994 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10995 else 10996 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10997 fi 10998 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10999 ;; 11000 hppa*64*) 11001 shrext_cmds='.sl' 11002 hardcode_into_libs=yes 11003 dynamic_linker="$host_os dld.sl" 11004 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11005 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11007 soname_spec='${libname}${release}${shared_ext}$major' 11008 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11009 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11010 ;; 11011 *) 11012 shrext_cmds='.sl' 11013 dynamic_linker="$host_os dld.sl" 11014 shlibpath_var=SHLIB_PATH 11015 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11017 soname_spec='${libname}${release}${shared_ext}$major' 11018 ;; 11019 esac 11020 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11021 postinstall_cmds='chmod 555 $lib' 11022 # or fails outright, so override atomically: 11023 install_override_mode=555 11024 ;; 11025 11026interix[3-9]*) 11027 version_type=linux # correct to gnu/linux during the next big refactor 11028 need_lib_prefix=no 11029 need_version=no 11030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11031 soname_spec='${libname}${release}${shared_ext}$major' 11032 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11033 shlibpath_var=LD_LIBRARY_PATH 11034 shlibpath_overrides_runpath=no 11035 hardcode_into_libs=yes 11036 ;; 11037 11038irix5* | irix6* | nonstopux*) 11039 case $host_os in 11040 nonstopux*) version_type=nonstopux ;; 11041 *) 11042 if test "$lt_cv_prog_gnu_ld" = yes; then 11043 version_type=linux # correct to gnu/linux during the next big refactor 11044 else 11045 version_type=irix 11046 fi ;; 11047 esac 11048 need_lib_prefix=no 11049 need_version=no 11050 soname_spec='${libname}${release}${shared_ext}$major' 11051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11052 case $host_os in 11053 irix5* | nonstopux*) 11054 libsuff= shlibsuff= 11055 ;; 11056 *) 11057 case $LD in # libtool.m4 will add one of these switches to LD 11058 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11059 libsuff= shlibsuff= libmagic=32-bit;; 11060 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11061 libsuff=32 shlibsuff=N32 libmagic=N32;; 11062 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11063 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11064 *) libsuff= shlibsuff= libmagic=never-match;; 11065 esac 11066 ;; 11067 esac 11068 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11069 shlibpath_overrides_runpath=no 11070 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11071 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11072 hardcode_into_libs=yes 11073 ;; 11074 11075# No shared lib support for Linux oldld, aout, or coff. 11076linux*oldld* | linux*aout* | linux*coff*) 11077 dynamic_linker=no 11078 ;; 11079 11080# This must be glibc/ELF. 11081linux* | k*bsd*-gnu | kopensolaris*-gnu) 11082 version_type=linux # correct to gnu/linux during the next big refactor 11083 need_lib_prefix=no 11084 need_version=no 11085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11086 soname_spec='${libname}${release}${shared_ext}$major' 11087 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11088 shlibpath_var=LD_LIBRARY_PATH 11089 shlibpath_overrides_runpath=no 11090 11091 # Some binutils ld are patched to set DT_RUNPATH 11092 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11093 $as_echo_n "(cached) " >&6 11094else 11095 lt_cv_shlibpath_overrides_runpath=no 11096 save_LDFLAGS=$LDFLAGS 11097 save_libdir=$libdir 11098 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11099 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11101/* end confdefs.h. */ 11102 11103int 11104main () 11105{ 11106 11107 ; 11108 return 0; 11109} 11110_ACEOF 11111if ac_fn_c_try_link "$LINENO"; then : 11112 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11113 lt_cv_shlibpath_overrides_runpath=yes 11114fi 11115fi 11116rm -f core conftest.err conftest.$ac_objext \ 11117 conftest$ac_exeext conftest.$ac_ext 11118 LDFLAGS=$save_LDFLAGS 11119 libdir=$save_libdir 11120 11121fi 11122 11123 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11124 11125 # This implies no fast_install, which is unacceptable. 11126 # Some rework will be needed to allow for fast_install 11127 # before this can be enabled. 11128 hardcode_into_libs=yes 11129 11130 # Add ABI-specific directories to the system library path. 11131 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11132 11133 # Append ld.so.conf contents to the search path 11134 if test -f /etc/ld.so.conf; then 11135 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' ' '` 11136 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11137 11138 fi 11139 11140 # We used to test for /lib/ld.so.1 and disable shared libraries on 11141 # powerpc, because MkLinux only supported shared libraries with the 11142 # GNU dynamic linker. Since this was broken with cross compilers, 11143 # most powerpc-linux boxes support dynamic linking these days and 11144 # people can always --disable-shared, the test was removed, and we 11145 # assume the GNU/Linux dynamic linker is in use. 11146 dynamic_linker='GNU/Linux ld.so' 11147 ;; 11148 11149netbsd*) 11150 version_type=sunos 11151 need_lib_prefix=no 11152 need_version=no 11153 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11156 dynamic_linker='NetBSD (a.out) ld.so' 11157 else 11158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11159 soname_spec='${libname}${release}${shared_ext}$major' 11160 dynamic_linker='NetBSD ld.elf_so' 11161 fi 11162 shlibpath_var=LD_LIBRARY_PATH 11163 shlibpath_overrides_runpath=yes 11164 hardcode_into_libs=yes 11165 ;; 11166 11167newsos6) 11168 version_type=linux # correct to gnu/linux during the next big refactor 11169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11170 shlibpath_var=LD_LIBRARY_PATH 11171 shlibpath_overrides_runpath=yes 11172 ;; 11173 11174*nto* | *qnx*) 11175 version_type=qnx 11176 need_lib_prefix=no 11177 need_version=no 11178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11179 soname_spec='${libname}${release}${shared_ext}$major' 11180 shlibpath_var=LD_LIBRARY_PATH 11181 shlibpath_overrides_runpath=no 11182 hardcode_into_libs=yes 11183 dynamic_linker='ldqnx.so' 11184 ;; 11185 11186openbsd*) 11187 version_type=sunos 11188 sys_lib_dlsearch_path_spec="/usr/lib" 11189 need_lib_prefix=no 11190 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11191 case $host_os in 11192 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11193 *) need_version=no ;; 11194 esac 11195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11197 shlibpath_var=LD_LIBRARY_PATH 11198 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11199 case $host_os in 11200 openbsd2.[89] | openbsd2.[89].*) 11201 shlibpath_overrides_runpath=no 11202 ;; 11203 *) 11204 shlibpath_overrides_runpath=yes 11205 ;; 11206 esac 11207 else 11208 shlibpath_overrides_runpath=yes 11209 fi 11210 ;; 11211 11212os2*) 11213 libname_spec='$name' 11214 shrext_cmds=".dll" 11215 need_lib_prefix=no 11216 library_names_spec='$libname${shared_ext} $libname.a' 11217 dynamic_linker='OS/2 ld.exe' 11218 shlibpath_var=LIBPATH 11219 ;; 11220 11221osf3* | osf4* | osf5*) 11222 version_type=osf 11223 need_lib_prefix=no 11224 need_version=no 11225 soname_spec='${libname}${release}${shared_ext}$major' 11226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11227 shlibpath_var=LD_LIBRARY_PATH 11228 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11229 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11230 ;; 11231 11232rdos*) 11233 dynamic_linker=no 11234 ;; 11235 11236solaris*) 11237 version_type=linux # correct to gnu/linux during the next big refactor 11238 need_lib_prefix=no 11239 need_version=no 11240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11241 soname_spec='${libname}${release}${shared_ext}$major' 11242 shlibpath_var=LD_LIBRARY_PATH 11243 shlibpath_overrides_runpath=yes 11244 hardcode_into_libs=yes 11245 # ldd complains unless libraries are executable 11246 postinstall_cmds='chmod +x $lib' 11247 ;; 11248 11249sunos4*) 11250 version_type=sunos 11251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11252 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11253 shlibpath_var=LD_LIBRARY_PATH 11254 shlibpath_overrides_runpath=yes 11255 if test "$with_gnu_ld" = yes; then 11256 need_lib_prefix=no 11257 fi 11258 need_version=yes 11259 ;; 11260 11261sysv4 | sysv4.3*) 11262 version_type=linux # correct to gnu/linux during the next big refactor 11263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11264 soname_spec='${libname}${release}${shared_ext}$major' 11265 shlibpath_var=LD_LIBRARY_PATH 11266 case $host_vendor in 11267 sni) 11268 shlibpath_overrides_runpath=no 11269 need_lib_prefix=no 11270 runpath_var=LD_RUN_PATH 11271 ;; 11272 siemens) 11273 need_lib_prefix=no 11274 ;; 11275 motorola) 11276 need_lib_prefix=no 11277 need_version=no 11278 shlibpath_overrides_runpath=no 11279 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11280 ;; 11281 esac 11282 ;; 11283 11284sysv4*MP*) 11285 if test -d /usr/nec ;then 11286 version_type=linux # correct to gnu/linux during the next big refactor 11287 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11288 soname_spec='$libname${shared_ext}.$major' 11289 shlibpath_var=LD_LIBRARY_PATH 11290 fi 11291 ;; 11292 11293sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11294 version_type=freebsd-elf 11295 need_lib_prefix=no 11296 need_version=no 11297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11298 soname_spec='${libname}${release}${shared_ext}$major' 11299 shlibpath_var=LD_LIBRARY_PATH 11300 shlibpath_overrides_runpath=yes 11301 hardcode_into_libs=yes 11302 if test "$with_gnu_ld" = yes; then 11303 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11304 else 11305 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11306 case $host_os in 11307 sco3.2v5*) 11308 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11309 ;; 11310 esac 11311 fi 11312 sys_lib_dlsearch_path_spec='/usr/lib' 11313 ;; 11314 11315tpf*) 11316 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11317 version_type=linux # correct to gnu/linux during the next big refactor 11318 need_lib_prefix=no 11319 need_version=no 11320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11321 shlibpath_var=LD_LIBRARY_PATH 11322 shlibpath_overrides_runpath=no 11323 hardcode_into_libs=yes 11324 ;; 11325 11326uts4*) 11327 version_type=linux # correct to gnu/linux during the next big refactor 11328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11329 soname_spec='${libname}${release}${shared_ext}$major' 11330 shlibpath_var=LD_LIBRARY_PATH 11331 ;; 11332 11333*) 11334 dynamic_linker=no 11335 ;; 11336esac 11337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11338$as_echo "$dynamic_linker" >&6; } 11339test "$dynamic_linker" = no && can_build_shared=no 11340 11341variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11342if test "$GCC" = yes; then 11343 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11344fi 11345 11346if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11347 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11348fi 11349if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11350 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11351fi 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11445$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11446hardcode_action= 11447if test -n "$hardcode_libdir_flag_spec" || 11448 test -n "$runpath_var" || 11449 test "X$hardcode_automatic" = "Xyes" ; then 11450 11451 # We can hardcode non-existent directories. 11452 if test "$hardcode_direct" != no && 11453 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11454 # have to relink, otherwise we might link with an installed library 11455 # when we should be linking with a yet-to-be-installed one 11456 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11457 test "$hardcode_minus_L" != no; then 11458 # Linking always hardcodes the temporary library directory. 11459 hardcode_action=relink 11460 else 11461 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11462 hardcode_action=immediate 11463 fi 11464else 11465 # We cannot hardcode anything, or else we can only hardcode existing 11466 # directories. 11467 hardcode_action=unsupported 11468fi 11469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11470$as_echo "$hardcode_action" >&6; } 11471 11472if test "$hardcode_action" = relink || 11473 test "$inherit_rpath" = yes; then 11474 # Fast installation is not supported 11475 enable_fast_install=no 11476elif test "$shlibpath_overrides_runpath" = yes || 11477 test "$enable_shared" = no; then 11478 # Fast installation is not necessary 11479 enable_fast_install=needless 11480fi 11481 11482 11483 11484 11485 11486 11487 if test "x$enable_dlopen" != xyes; then 11488 enable_dlopen=unknown 11489 enable_dlopen_self=unknown 11490 enable_dlopen_self_static=unknown 11491else 11492 lt_cv_dlopen=no 11493 lt_cv_dlopen_libs= 11494 11495 case $host_os in 11496 beos*) 11497 lt_cv_dlopen="load_add_on" 11498 lt_cv_dlopen_libs= 11499 lt_cv_dlopen_self=yes 11500 ;; 11501 11502 mingw* | pw32* | cegcc*) 11503 lt_cv_dlopen="LoadLibrary" 11504 lt_cv_dlopen_libs= 11505 ;; 11506 11507 cygwin*) 11508 lt_cv_dlopen="dlopen" 11509 lt_cv_dlopen_libs= 11510 ;; 11511 11512 darwin*) 11513 # if libdl is installed we need to link against it 11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11515$as_echo_n "checking for dlopen in -ldl... " >&6; } 11516if ${ac_cv_lib_dl_dlopen+:} false; then : 11517 $as_echo_n "(cached) " >&6 11518else 11519 ac_check_lib_save_LIBS=$LIBS 11520LIBS="-ldl $LIBS" 11521cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11522/* end confdefs.h. */ 11523 11524/* Override any GCC internal prototype to avoid an error. 11525 Use char because int might match the return type of a GCC 11526 builtin and then its argument prototype would still apply. */ 11527#ifdef __cplusplus 11528extern "C" 11529#endif 11530char dlopen (); 11531int 11532main () 11533{ 11534return dlopen (); 11535 ; 11536 return 0; 11537} 11538_ACEOF 11539if ac_fn_c_try_link "$LINENO"; then : 11540 ac_cv_lib_dl_dlopen=yes 11541else 11542 ac_cv_lib_dl_dlopen=no 11543fi 11544rm -f core conftest.err conftest.$ac_objext \ 11545 conftest$ac_exeext conftest.$ac_ext 11546LIBS=$ac_check_lib_save_LIBS 11547fi 11548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11549$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11550if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11551 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11552else 11553 11554 lt_cv_dlopen="dyld" 11555 lt_cv_dlopen_libs= 11556 lt_cv_dlopen_self=yes 11557 11558fi 11559 11560 ;; 11561 11562 *) 11563 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11564if test "x$ac_cv_func_shl_load" = xyes; then : 11565 lt_cv_dlopen="shl_load" 11566else 11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11568$as_echo_n "checking for shl_load in -ldld... " >&6; } 11569if ${ac_cv_lib_dld_shl_load+:} false; then : 11570 $as_echo_n "(cached) " >&6 11571else 11572 ac_check_lib_save_LIBS=$LIBS 11573LIBS="-ldld $LIBS" 11574cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11575/* end confdefs.h. */ 11576 11577/* Override any GCC internal prototype to avoid an error. 11578 Use char because int might match the return type of a GCC 11579 builtin and then its argument prototype would still apply. */ 11580#ifdef __cplusplus 11581extern "C" 11582#endif 11583char shl_load (); 11584int 11585main () 11586{ 11587return shl_load (); 11588 ; 11589 return 0; 11590} 11591_ACEOF 11592if ac_fn_c_try_link "$LINENO"; then : 11593 ac_cv_lib_dld_shl_load=yes 11594else 11595 ac_cv_lib_dld_shl_load=no 11596fi 11597rm -f core conftest.err conftest.$ac_objext \ 11598 conftest$ac_exeext conftest.$ac_ext 11599LIBS=$ac_check_lib_save_LIBS 11600fi 11601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11602$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11603if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11604 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11605else 11606 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11607if test "x$ac_cv_func_dlopen" = xyes; then : 11608 lt_cv_dlopen="dlopen" 11609else 11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11611$as_echo_n "checking for dlopen in -ldl... " >&6; } 11612if ${ac_cv_lib_dl_dlopen+:} false; then : 11613 $as_echo_n "(cached) " >&6 11614else 11615 ac_check_lib_save_LIBS=$LIBS 11616LIBS="-ldl $LIBS" 11617cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11618/* end confdefs.h. */ 11619 11620/* Override any GCC internal prototype to avoid an error. 11621 Use char because int might match the return type of a GCC 11622 builtin and then its argument prototype would still apply. */ 11623#ifdef __cplusplus 11624extern "C" 11625#endif 11626char dlopen (); 11627int 11628main () 11629{ 11630return dlopen (); 11631 ; 11632 return 0; 11633} 11634_ACEOF 11635if ac_fn_c_try_link "$LINENO"; then : 11636 ac_cv_lib_dl_dlopen=yes 11637else 11638 ac_cv_lib_dl_dlopen=no 11639fi 11640rm -f core conftest.err conftest.$ac_objext \ 11641 conftest$ac_exeext conftest.$ac_ext 11642LIBS=$ac_check_lib_save_LIBS 11643fi 11644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11645$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11646if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11647 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11648else 11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11650$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11651if ${ac_cv_lib_svld_dlopen+:} false; then : 11652 $as_echo_n "(cached) " >&6 11653else 11654 ac_check_lib_save_LIBS=$LIBS 11655LIBS="-lsvld $LIBS" 11656cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11657/* end confdefs.h. */ 11658 11659/* Override any GCC internal prototype to avoid an error. 11660 Use char because int might match the return type of a GCC 11661 builtin and then its argument prototype would still apply. */ 11662#ifdef __cplusplus 11663extern "C" 11664#endif 11665char dlopen (); 11666int 11667main () 11668{ 11669return dlopen (); 11670 ; 11671 return 0; 11672} 11673_ACEOF 11674if ac_fn_c_try_link "$LINENO"; then : 11675 ac_cv_lib_svld_dlopen=yes 11676else 11677 ac_cv_lib_svld_dlopen=no 11678fi 11679rm -f core conftest.err conftest.$ac_objext \ 11680 conftest$ac_exeext conftest.$ac_ext 11681LIBS=$ac_check_lib_save_LIBS 11682fi 11683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11684$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11685if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11686 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11687else 11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11689$as_echo_n "checking for dld_link in -ldld... " >&6; } 11690if ${ac_cv_lib_dld_dld_link+:} false; then : 11691 $as_echo_n "(cached) " >&6 11692else 11693 ac_check_lib_save_LIBS=$LIBS 11694LIBS="-ldld $LIBS" 11695cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11696/* end confdefs.h. */ 11697 11698/* Override any GCC internal prototype to avoid an error. 11699 Use char because int might match the return type of a GCC 11700 builtin and then its argument prototype would still apply. */ 11701#ifdef __cplusplus 11702extern "C" 11703#endif 11704char dld_link (); 11705int 11706main () 11707{ 11708return dld_link (); 11709 ; 11710 return 0; 11711} 11712_ACEOF 11713if ac_fn_c_try_link "$LINENO"; then : 11714 ac_cv_lib_dld_dld_link=yes 11715else 11716 ac_cv_lib_dld_dld_link=no 11717fi 11718rm -f core conftest.err conftest.$ac_objext \ 11719 conftest$ac_exeext conftest.$ac_ext 11720LIBS=$ac_check_lib_save_LIBS 11721fi 11722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11723$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11724if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11725 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11726fi 11727 11728 11729fi 11730 11731 11732fi 11733 11734 11735fi 11736 11737 11738fi 11739 11740 11741fi 11742 11743 ;; 11744 esac 11745 11746 if test "x$lt_cv_dlopen" != xno; then 11747 enable_dlopen=yes 11748 else 11749 enable_dlopen=no 11750 fi 11751 11752 case $lt_cv_dlopen in 11753 dlopen) 11754 save_CPPFLAGS="$CPPFLAGS" 11755 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11756 11757 save_LDFLAGS="$LDFLAGS" 11758 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11759 11760 save_LIBS="$LIBS" 11761 LIBS="$lt_cv_dlopen_libs $LIBS" 11762 11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11764$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11765if ${lt_cv_dlopen_self+:} false; then : 11766 $as_echo_n "(cached) " >&6 11767else 11768 if test "$cross_compiling" = yes; then : 11769 lt_cv_dlopen_self=cross 11770else 11771 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11772 lt_status=$lt_dlunknown 11773 cat > conftest.$ac_ext <<_LT_EOF 11774#line $LINENO "configure" 11775#include "confdefs.h" 11776 11777#if HAVE_DLFCN_H 11778#include <dlfcn.h> 11779#endif 11780 11781#include <stdio.h> 11782 11783#ifdef RTLD_GLOBAL 11784# define LT_DLGLOBAL RTLD_GLOBAL 11785#else 11786# ifdef DL_GLOBAL 11787# define LT_DLGLOBAL DL_GLOBAL 11788# else 11789# define LT_DLGLOBAL 0 11790# endif 11791#endif 11792 11793/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11794 find out it does not work in some platform. */ 11795#ifndef LT_DLLAZY_OR_NOW 11796# ifdef RTLD_LAZY 11797# define LT_DLLAZY_OR_NOW RTLD_LAZY 11798# else 11799# ifdef DL_LAZY 11800# define LT_DLLAZY_OR_NOW DL_LAZY 11801# else 11802# ifdef RTLD_NOW 11803# define LT_DLLAZY_OR_NOW RTLD_NOW 11804# else 11805# ifdef DL_NOW 11806# define LT_DLLAZY_OR_NOW DL_NOW 11807# else 11808# define LT_DLLAZY_OR_NOW 0 11809# endif 11810# endif 11811# endif 11812# endif 11813#endif 11814 11815/* When -fvisbility=hidden is used, assume the code has been annotated 11816 correspondingly for the symbols needed. */ 11817#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11818int fnord () __attribute__((visibility("default"))); 11819#endif 11820 11821int fnord () { return 42; } 11822int main () 11823{ 11824 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11825 int status = $lt_dlunknown; 11826 11827 if (self) 11828 { 11829 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11830 else 11831 { 11832 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11833 else puts (dlerror ()); 11834 } 11835 /* dlclose (self); */ 11836 } 11837 else 11838 puts (dlerror ()); 11839 11840 return status; 11841} 11842_LT_EOF 11843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11844 (eval $ac_link) 2>&5 11845 ac_status=$? 11846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11847 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11848 (./conftest; exit; ) >&5 2>/dev/null 11849 lt_status=$? 11850 case x$lt_status in 11851 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11852 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11853 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11854 esac 11855 else : 11856 # compilation failed 11857 lt_cv_dlopen_self=no 11858 fi 11859fi 11860rm -fr conftest* 11861 11862 11863fi 11864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11865$as_echo "$lt_cv_dlopen_self" >&6; } 11866 11867 if test "x$lt_cv_dlopen_self" = xyes; then 11868 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11870$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11871if ${lt_cv_dlopen_self_static+:} false; then : 11872 $as_echo_n "(cached) " >&6 11873else 11874 if test "$cross_compiling" = yes; then : 11875 lt_cv_dlopen_self_static=cross 11876else 11877 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11878 lt_status=$lt_dlunknown 11879 cat > conftest.$ac_ext <<_LT_EOF 11880#line $LINENO "configure" 11881#include "confdefs.h" 11882 11883#if HAVE_DLFCN_H 11884#include <dlfcn.h> 11885#endif 11886 11887#include <stdio.h> 11888 11889#ifdef RTLD_GLOBAL 11890# define LT_DLGLOBAL RTLD_GLOBAL 11891#else 11892# ifdef DL_GLOBAL 11893# define LT_DLGLOBAL DL_GLOBAL 11894# else 11895# define LT_DLGLOBAL 0 11896# endif 11897#endif 11898 11899/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11900 find out it does not work in some platform. */ 11901#ifndef LT_DLLAZY_OR_NOW 11902# ifdef RTLD_LAZY 11903# define LT_DLLAZY_OR_NOW RTLD_LAZY 11904# else 11905# ifdef DL_LAZY 11906# define LT_DLLAZY_OR_NOW DL_LAZY 11907# else 11908# ifdef RTLD_NOW 11909# define LT_DLLAZY_OR_NOW RTLD_NOW 11910# else 11911# ifdef DL_NOW 11912# define LT_DLLAZY_OR_NOW DL_NOW 11913# else 11914# define LT_DLLAZY_OR_NOW 0 11915# endif 11916# endif 11917# endif 11918# endif 11919#endif 11920 11921/* When -fvisbility=hidden is used, assume the code has been annotated 11922 correspondingly for the symbols needed. */ 11923#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11924int fnord () __attribute__((visibility("default"))); 11925#endif 11926 11927int fnord () { return 42; } 11928int main () 11929{ 11930 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11931 int status = $lt_dlunknown; 11932 11933 if (self) 11934 { 11935 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11936 else 11937 { 11938 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11939 else puts (dlerror ()); 11940 } 11941 /* dlclose (self); */ 11942 } 11943 else 11944 puts (dlerror ()); 11945 11946 return status; 11947} 11948_LT_EOF 11949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11950 (eval $ac_link) 2>&5 11951 ac_status=$? 11952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11953 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11954 (./conftest; exit; ) >&5 2>/dev/null 11955 lt_status=$? 11956 case x$lt_status in 11957 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11958 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11959 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11960 esac 11961 else : 11962 # compilation failed 11963 lt_cv_dlopen_self_static=no 11964 fi 11965fi 11966rm -fr conftest* 11967 11968 11969fi 11970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11971$as_echo "$lt_cv_dlopen_self_static" >&6; } 11972 fi 11973 11974 CPPFLAGS="$save_CPPFLAGS" 11975 LDFLAGS="$save_LDFLAGS" 11976 LIBS="$save_LIBS" 11977 ;; 11978 esac 11979 11980 case $lt_cv_dlopen_self in 11981 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11982 *) enable_dlopen_self=unknown ;; 11983 esac 11984 11985 case $lt_cv_dlopen_self_static in 11986 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11987 *) enable_dlopen_self_static=unknown ;; 11988 esac 11989fi 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007striplib= 12008old_striplib= 12009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12010$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12011if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12012 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12013 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12015$as_echo "yes" >&6; } 12016else 12017# FIXME - insert some real tests, host_os isn't really good enough 12018 case $host_os in 12019 darwin*) 12020 if test -n "$STRIP" ; then 12021 striplib="$STRIP -x" 12022 old_striplib="$STRIP -S" 12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12024$as_echo "yes" >&6; } 12025 else 12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12027$as_echo "no" >&6; } 12028 fi 12029 ;; 12030 *) 12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12032$as_echo "no" >&6; } 12033 ;; 12034 esac 12035fi 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 # Report which library types will actually be built 12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12050$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12052$as_echo "$can_build_shared" >&6; } 12053 12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12055$as_echo_n "checking whether to build shared libraries... " >&6; } 12056 test "$can_build_shared" = "no" && enable_shared=no 12057 12058 # On AIX, shared libraries and static libraries use the same namespace, and 12059 # are all built from PIC. 12060 case $host_os in 12061 aix3*) 12062 test "$enable_shared" = yes && enable_static=no 12063 if test -n "$RANLIB"; then 12064 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12065 postinstall_cmds='$RANLIB $lib' 12066 fi 12067 ;; 12068 12069 aix[4-9]*) 12070 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12071 test "$enable_shared" = yes && enable_static=no 12072 fi 12073 ;; 12074 esac 12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12076$as_echo "$enable_shared" >&6; } 12077 12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12079$as_echo_n "checking whether to build static libraries... " >&6; } 12080 # Make sure either enable_shared or enable_static is yes. 12081 test "$enable_shared" = yes || enable_static=yes 12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12083$as_echo "$enable_static" >&6; } 12084 12085 12086 12087 12088fi 12089ac_ext=c 12090ac_cpp='$CPP $CPPFLAGS' 12091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12093ac_compiler_gnu=$ac_cv_c_compiler_gnu 12094 12095CC="$lt_save_CC" 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 ac_config_commands="$ac_config_commands libtool" 12112 12113 12114 12115 12116# Only expand once: 12117 12118 12119ac_ext=c 12120ac_cpp='$CPP $CPPFLAGS' 12121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12123ac_compiler_gnu=$ac_cv_c_compiler_gnu 12124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 12125$as_echo_n "checking how to run the C preprocessor... " >&6; } 12126# On Suns, sometimes $CPP names a directory. 12127if test -n "$CPP" && test -d "$CPP"; then 12128 CPP= 12129fi 12130if test -z "$CPP"; then 12131 if ${ac_cv_prog_CPP+:} false; then : 12132 $as_echo_n "(cached) " >&6 12133else 12134 # Double quotes because CPP needs to be expanded 12135 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 12136 do 12137 ac_preproc_ok=false 12138for ac_c_preproc_warn_flag in '' yes 12139do 12140 # Use a header file that comes with gcc, so configuring glibc 12141 # with a fresh cross-compiler works. 12142 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12143 # <limits.h> exists even on freestanding compilers. 12144 # On the NeXT, cc -E runs the code through the compiler's parser, 12145 # not just through cpp. "Syntax error" is here to catch this case. 12146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12147/* end confdefs.h. */ 12148#ifdef __STDC__ 12149# include <limits.h> 12150#else 12151# include <assert.h> 12152#endif 12153 Syntax error 12154_ACEOF 12155if ac_fn_c_try_cpp "$LINENO"; then : 12156 12157else 12158 # Broken: fails on valid input. 12159continue 12160fi 12161rm -f conftest.err conftest.i conftest.$ac_ext 12162 12163 # OK, works on sane cases. Now check whether nonexistent headers 12164 # can be detected and how. 12165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12166/* end confdefs.h. */ 12167#include <ac_nonexistent.h> 12168_ACEOF 12169if ac_fn_c_try_cpp "$LINENO"; then : 12170 # Broken: success on invalid input. 12171continue 12172else 12173 # Passes both tests. 12174ac_preproc_ok=: 12175break 12176fi 12177rm -f conftest.err conftest.i conftest.$ac_ext 12178 12179done 12180# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12181rm -f conftest.i conftest.err conftest.$ac_ext 12182if $ac_preproc_ok; then : 12183 break 12184fi 12185 12186 done 12187 ac_cv_prog_CPP=$CPP 12188 12189fi 12190 CPP=$ac_cv_prog_CPP 12191else 12192 ac_cv_prog_CPP=$CPP 12193fi 12194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 12195$as_echo "$CPP" >&6; } 12196ac_preproc_ok=false 12197for ac_c_preproc_warn_flag in '' yes 12198do 12199 # Use a header file that comes with gcc, so configuring glibc 12200 # with a fresh cross-compiler works. 12201 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12202 # <limits.h> exists even on freestanding compilers. 12203 # On the NeXT, cc -E runs the code through the compiler's parser, 12204 # not just through cpp. "Syntax error" is here to catch this case. 12205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12206/* end confdefs.h. */ 12207#ifdef __STDC__ 12208# include <limits.h> 12209#else 12210# include <assert.h> 12211#endif 12212 Syntax error 12213_ACEOF 12214if ac_fn_c_try_cpp "$LINENO"; then : 12215 12216else 12217 # Broken: fails on valid input. 12218continue 12219fi 12220rm -f conftest.err conftest.i conftest.$ac_ext 12221 12222 # OK, works on sane cases. Now check whether nonexistent headers 12223 # can be detected and how. 12224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12225/* end confdefs.h. */ 12226#include <ac_nonexistent.h> 12227_ACEOF 12228if ac_fn_c_try_cpp "$LINENO"; then : 12229 # Broken: success on invalid input. 12230continue 12231else 12232 # Passes both tests. 12233ac_preproc_ok=: 12234break 12235fi 12236rm -f conftest.err conftest.i conftest.$ac_ext 12237 12238done 12239# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12240rm -f conftest.i conftest.err conftest.$ac_ext 12241if $ac_preproc_ok; then : 12242 12243else 12244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12246as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 12247See \`config.log' for more details" "$LINENO" 5; } 12248fi 12249 12250ac_ext=c 12251ac_cpp='$CPP $CPPFLAGS' 12252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12254ac_compiler_gnu=$ac_cv_c_compiler_gnu 12255 12256# Extract the first word of "cpp", so it can be a program name with args. 12257set dummy cpp; ac_word=$2 12258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12259$as_echo_n "checking for $ac_word... " >&6; } 12260if ${ac_cv_path_CPP_FOR_BUILD+:} false; then : 12261 $as_echo_n "(cached) " >&6 12262else 12263 case $CPP_FOR_BUILD in 12264 [\\/]* | ?:[\\/]*) 12265 ac_cv_path_CPP_FOR_BUILD="$CPP_FOR_BUILD" # Let the user override the test with a path. 12266 ;; 12267 *) 12268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12269for as_dir in $PATH 12270do 12271 IFS=$as_save_IFS 12272 test -z "$as_dir" && as_dir=. 12273 for ac_exec_ext in '' $ac_executable_extensions; do 12274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12275 ac_cv_path_CPP_FOR_BUILD="$as_dir/$ac_word$ac_exec_ext" 12276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12277 break 2 12278 fi 12279done 12280 done 12281IFS=$as_save_IFS 12282 12283 ;; 12284esac 12285fi 12286CPP_FOR_BUILD=$ac_cv_path_CPP_FOR_BUILD 12287if test -n "$CPP_FOR_BUILD"; then 12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5 12289$as_echo "$CPP_FOR_BUILD" >&6; } 12290else 12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12292$as_echo "no" >&6; } 12293fi 12294 12295 12296if test -z "${CPP_FOR_BUILD}"; then 12297 as_fn_error $? "cannot find cpp" "$LINENO" 5 12298fi 12299 12300 if test "$with_gnu_ld" = "yes"; then 12301 WITH_GNU_LD_TRUE= 12302 WITH_GNU_LD_FALSE='#' 12303else 12304 WITH_GNU_LD_TRUE='#' 12305 WITH_GNU_LD_FALSE= 12306fi 12307 12308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 12309$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 12310set x ${MAKE-make} 12311ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 12312if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 12313 $as_echo_n "(cached) " >&6 12314else 12315 cat >conftest.make <<\_ACEOF 12316SHELL = /bin/sh 12317all: 12318 @echo '@@@%%%=$(MAKE)=@@@%%%' 12319_ACEOF 12320# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 12321case `${MAKE-make} -f conftest.make 2>/dev/null` in 12322 *@@@%%%=?*=@@@%%%*) 12323 eval ac_cv_prog_make_${ac_make}_set=yes;; 12324 *) 12325 eval ac_cv_prog_make_${ac_make}_set=no;; 12326esac 12327rm -f conftest.make 12328fi 12329if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12331$as_echo "yes" >&6; } 12332 SET_MAKE= 12333else 12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12335$as_echo "no" >&6; } 12336 SET_MAKE="MAKE=${MAKE-make}" 12337fi 12338 12339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12340$as_echo_n "checking whether ln -s works... " >&6; } 12341LN_S=$as_ln_s 12342if test "$LN_S" = "ln -s"; then 12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12344$as_echo "yes" >&6; } 12345else 12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12347$as_echo "no, using $LN_S" >&6; } 12348fi 12349 12350 12351# Check whether --enable-trace was given. 12352if test "${enable_trace+set}" = set; then : 12353 enableval=$enable_trace; 12354fi 12355 12356if test "x${enable_trace}" = "xyes" ; then 12357 12358$as_echo "#define IPMI_TRACE 1" >>confdefs.h 12359 12360elif test "x${enable_trace}" = "x" ; then 12361 enable_trace=no 12362fi 12363 12364# Check whether --enable-profiling was given. 12365if test "${enable_profiling+set}" = set; then : 12366 enableval=$enable_profiling; 12367fi 12368 12369if test "x${enable_profiling}" = "x" ; then 12370 enable_profiling=no 12371fi 12372 12373# Check whether --enable-debug was given. 12374if test "${enable_debug+set}" = set; then : 12375 enableval=$enable_debug; 12376fi 12377 12378if test "x${enable_debug}" = "xyes"; then 12379 if test "$GCC" = "yes" && test "x${enable_profiling}" = "xyes"; then 12380 CFLAGS="$CFLAGS -ggdb -Wall -pg" 12381 elif test "$GCC" = "yes" && test "x${enable_profiling}" = "xno"; then 12382 CFLAGS="$CFLAGS -ggdb -Wall" 12383 elif test "$ac_cv_prog_cc_g" = "yes"; then 12384 CFLAGS="$CFLAGS -g" 12385 fi 12386 WITH_DEBUG=1 12387else 12388 if test "x${enable_debug}" = "x" ; then 12389 enable_debug=no 12390 fi 12391 12392$as_echo "#define NDEBUG 1" >>confdefs.h 12393 12394 WITH_DEBUG=0 12395fi 12396 12397 12398# Check whether --enable-rawdumps was given. 12399if test "${enable_rawdumps+set}" = set; then : 12400 enableval=$enable_rawdumps; 12401fi 12402 12403if test "x${enable_rawdumps}" = "xyes"; then 12404 12405$as_echo "#define WITH_RAWDUMPS 1" >>confdefs.h 12406 12407fi 12408 12409INSTALL_DAEMON_SCRIPTS=install-init-scripts 12410UNINSTALL_DAEMON_SCRIPTS=uninstall-init-scripts 12411 12412# Check whether --enable-init-scripts was given. 12413if test "${enable_init_scripts+set}" = set; then : 12414 enableval=$enable_init_scripts; 12415fi 12416 12417if test x"$enable_init_scripts" = xno; then 12418 INSTALL_DAEMON_SCRIPTS= 12419fi 12420 12421 12422 12423# Check for systemd 12424 12425 12426 12427 12428 12429 12430 12431if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12432 if test -n "$ac_tool_prefix"; then 12433 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12434set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12436$as_echo_n "checking for $ac_word... " >&6; } 12437if ${ac_cv_path_PKG_CONFIG+:} false; then : 12438 $as_echo_n "(cached) " >&6 12439else 12440 case $PKG_CONFIG in 12441 [\\/]* | ?:[\\/]*) 12442 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12443 ;; 12444 *) 12445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12446for as_dir in $PATH 12447do 12448 IFS=$as_save_IFS 12449 test -z "$as_dir" && as_dir=. 12450 for ac_exec_ext in '' $ac_executable_extensions; do 12451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12452 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12454 break 2 12455 fi 12456done 12457 done 12458IFS=$as_save_IFS 12459 12460 ;; 12461esac 12462fi 12463PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12464if test -n "$PKG_CONFIG"; then 12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12466$as_echo "$PKG_CONFIG" >&6; } 12467else 12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12469$as_echo "no" >&6; } 12470fi 12471 12472 12473fi 12474if test -z "$ac_cv_path_PKG_CONFIG"; then 12475 ac_pt_PKG_CONFIG=$PKG_CONFIG 12476 # Extract the first word of "pkg-config", so it can be a program name with args. 12477set dummy pkg-config; ac_word=$2 12478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12479$as_echo_n "checking for $ac_word... " >&6; } 12480if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12481 $as_echo_n "(cached) " >&6 12482else 12483 case $ac_pt_PKG_CONFIG in 12484 [\\/]* | ?:[\\/]*) 12485 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12486 ;; 12487 *) 12488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12489for as_dir in $PATH 12490do 12491 IFS=$as_save_IFS 12492 test -z "$as_dir" && as_dir=. 12493 for ac_exec_ext in '' $ac_executable_extensions; do 12494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12495 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12497 break 2 12498 fi 12499done 12500 done 12501IFS=$as_save_IFS 12502 12503 ;; 12504esac 12505fi 12506ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12507if test -n "$ac_pt_PKG_CONFIG"; then 12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12509$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12510else 12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12512$as_echo "no" >&6; } 12513fi 12514 12515 if test "x$ac_pt_PKG_CONFIG" = x; then 12516 PKG_CONFIG="" 12517 else 12518 case $cross_compiling:$ac_tool_warned in 12519yes:) 12520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12522ac_tool_warned=yes ;; 12523esac 12524 PKG_CONFIG=$ac_pt_PKG_CONFIG 12525 fi 12526else 12527 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12528fi 12529 12530fi 12531if test -n "$PKG_CONFIG"; then 12532 _pkg_min_version=0.9.0 12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12534$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12535 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12537$as_echo "yes" >&6; } 12538 else 12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12540$as_echo "no" >&6; } 12541 PKG_CONFIG="" 12542 fi 12543fi 12544 12545 if test x"$PKG_CONFIG" = x; then : 12546 PKG_CONFIG=false 12547fi 12548 12549# Check whether --with-systemdsystemunitdir was given. 12550if test "${with_systemdsystemunitdir+set}" = set; then : 12551 withval=$with_systemdsystemunitdir; 12552else 12553 with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd) 12554fi 12555 12556 if test x"$with_systemdsystemunitdir" != xno; then : 12557 systemdsystemunitdir=$with_systemdsystemunitdir 12558 12559fi 12560 if test -n "$with_systemdsystemunitdir" -a x"$with_systemdsystemunitdir" != xno; then 12561 HAVE_SYSTEMD_TRUE= 12562 HAVE_SYSTEMD_FALSE='#' 12563else 12564 HAVE_SYSTEMD_TRUE='#' 12565 HAVE_SYSTEMD_FALSE= 12566fi 12567 12568if test -n "$with_systemdsystemunitdir" -a x"$with_systemdsystemunitdir" != xno; then 12569 INSTALL_DAEMON_SCRIPTS=install-systemd-scripts 12570 UNINSTALL_DAEMON_SCRIPTS=uninstall-systemd-scripts 12571fi 12572 12573 12574 12575# Check whether --enable-ipmisdrcachedir was given. 12576if test "${enable_ipmisdrcachedir+set}" = set; then : 12577 enableval=$enable_ipmisdrcachedir; 12578fi 12579 12580INSTALL_IPMISDRCACHEDIR=install-ipmisdrcachedir 12581if test x"$enable_ipmisdrcachedir" = xno; then 12582 INSTALL_IPMISDRCACHEDIR= 12583fi 12584 12585 12586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for encryption support" >&5 12587$as_echo_n "checking for encryption support... " >&6; } 12588 12589# Check whether --with-encryption was given. 12590if test "${with_encryption+set}" = set; then : 12591 withval=$with_encryption; case "$withval" in 12592 no) ac_with_encryption=no ;; 12593 yes) ac_with_encryption=yes ;; 12594 *) ac_with_encryption=yes ;; 12595 esac 12596 12597fi 12598 12599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_with_encryption=yes}" >&5 12600$as_echo "${ac_with_encryption=yes}" >&6; } 12601 12602if test x"${ac_with_encryption}" = xyes; then 12603 12604$as_echo "#define WITH_ENCRYPTION 1" >>confdefs.h 12605 12606fi 12607 12608if test x"${ac_with_encryption}" = xyes; then 12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_md_open in -lgcrypt" >&5 12610$as_echo_n "checking for gcry_md_open in -lgcrypt... " >&6; } 12611if ${ac_cv_lib_gcrypt_gcry_md_open+:} false; then : 12612 $as_echo_n "(cached) " >&6 12613else 12614 ac_check_lib_save_LIBS=$LIBS 12615LIBS="-lgcrypt $LIBS" 12616cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12617/* end confdefs.h. */ 12618 12619/* Override any GCC internal prototype to avoid an error. 12620 Use char because int might match the return type of a GCC 12621 builtin and then its argument prototype would still apply. */ 12622#ifdef __cplusplus 12623extern "C" 12624#endif 12625char gcry_md_open (); 12626int 12627main () 12628{ 12629return gcry_md_open (); 12630 ; 12631 return 0; 12632} 12633_ACEOF 12634if ac_fn_c_try_link "$LINENO"; then : 12635 ac_cv_lib_gcrypt_gcry_md_open=yes 12636else 12637 ac_cv_lib_gcrypt_gcry_md_open=no 12638fi 12639rm -f core conftest.err conftest.$ac_objext \ 12640 conftest$ac_exeext conftest.$ac_ext 12641LIBS=$ac_check_lib_save_LIBS 12642fi 12643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_md_open" >&5 12644$as_echo "$ac_cv_lib_gcrypt_gcry_md_open" >&6; } 12645if test "x$ac_cv_lib_gcrypt_gcry_md_open" = xyes; then : 12646 have_gcrypt=yes 12647else 12648 have_gcrypt=no 12649fi 12650 12651 if test "x${have_gcrypt}" = "xno"; then 12652 as_fn_error $? "libgcrypt required to build libfreeipmi" "$LINENO" 5 12653 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: libgpg-error required for libgcrypt" >&5 12654$as_echo "$as_me: Note: libgpg-error required for libgcrypt" >&6;} 12655 fi 12656 for ac_header in gcrypt.h 12657do : 12658 ac_fn_c_check_header_mongrel "$LINENO" "gcrypt.h" "ac_cv_header_gcrypt_h" "$ac_includes_default" 12659if test "x$ac_cv_header_gcrypt_h" = xyes; then : 12660 cat >>confdefs.h <<_ACEOF 12661#define HAVE_GCRYPT_H 1 12662_ACEOF 12663 have_gcrypt_header=yes 12664else 12665 have_gcrypt_header=no 12666fi 12667 12668done 12669 12670 if test "x${have_gcrypt_header}" = "xno"; then 12671 as_fn_error $? "gcrypt.h not found" "$LINENO" 5 12672 fi 12673 ac_fn_c_check_decl "$LINENO" "GCRYCTL_SET_THREAD_CBS" "ac_cv_have_decl_GCRYCTL_SET_THREAD_CBS" "#include <gcrypt.h> 12674" 12675if test "x$ac_cv_have_decl_GCRYCTL_SET_THREAD_CBS" = xyes; then : 12676 have_gcrypt_threads=yes 12677else 12678 have_gcrypt_threads=no 12679fi 12680 12681 if test "x${have_gcrypt_threads}" = "xno"; then 12682 as_fn_error $? "libgcrypt with threads support required for libfreeipmi" "$LINENO" 5 12683 fi 12684 GCRYPT_LIBS=-lgcrypt 12685fi 12686 12687 12688ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" 12689if test "x$ac_cv_func_getopt_long" = xyes; then : 12690 have_getopt_long=yes 12691else 12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long in -lgnugetopt" >&5 12693$as_echo_n "checking for getopt_long in -lgnugetopt... " >&6; } 12694if ${ac_cv_lib_gnugetopt_getopt_long+:} false; then : 12695 $as_echo_n "(cached) " >&6 12696else 12697 ac_check_lib_save_LIBS=$LIBS 12698LIBS="-lgnugetopt $LIBS" 12699cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12700/* end confdefs.h. */ 12701 12702/* Override any GCC internal prototype to avoid an error. 12703 Use char because int might match the return type of a GCC 12704 builtin and then its argument prototype would still apply. */ 12705#ifdef __cplusplus 12706extern "C" 12707#endif 12708char getopt_long (); 12709int 12710main () 12711{ 12712return getopt_long (); 12713 ; 12714 return 0; 12715} 12716_ACEOF 12717if ac_fn_c_try_link "$LINENO"; then : 12718 ac_cv_lib_gnugetopt_getopt_long=yes 12719else 12720 ac_cv_lib_gnugetopt_getopt_long=no 12721fi 12722rm -f core conftest.err conftest.$ac_objext \ 12723 conftest$ac_exeext conftest.$ac_ext 12724LIBS=$ac_check_lib_save_LIBS 12725fi 12726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnugetopt_getopt_long" >&5 12727$as_echo "$ac_cv_lib_gnugetopt_getopt_long" >&6; } 12728if test "x$ac_cv_lib_gnugetopt_getopt_long" = xyes; then : 12729 have_getopt_long=yes 12730else 12731 as_fn_error $? "getopt_long not found." "$LINENO" 5 12732fi 12733 12734fi 12735 12736 12737if test "x${have_getopt_long}" = "xyes"; then 12738 12739$as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h 12740 12741fi 12742 12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 12744$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 12745if ${ac_cv_c_bigendian+:} false; then : 12746 $as_echo_n "(cached) " >&6 12747else 12748 ac_cv_c_bigendian=unknown 12749 # See if we're dealing with a universal compiler. 12750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12751/* end confdefs.h. */ 12752#ifndef __APPLE_CC__ 12753 not a universal capable compiler 12754 #endif 12755 typedef int dummy; 12756 12757_ACEOF 12758if ac_fn_c_try_compile "$LINENO"; then : 12759 12760 # Check for potential -arch flags. It is not universal unless 12761 # there are at least two -arch flags with different values. 12762 ac_arch= 12763 ac_prev= 12764 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 12765 if test -n "$ac_prev"; then 12766 case $ac_word in 12767 i?86 | x86_64 | ppc | ppc64) 12768 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 12769 ac_arch=$ac_word 12770 else 12771 ac_cv_c_bigendian=universal 12772 break 12773 fi 12774 ;; 12775 esac 12776 ac_prev= 12777 elif test "x$ac_word" = "x-arch"; then 12778 ac_prev=arch 12779 fi 12780 done 12781fi 12782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12783 if test $ac_cv_c_bigendian = unknown; then 12784 # See if sys/param.h defines the BYTE_ORDER macro. 12785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12786/* end confdefs.h. */ 12787#include <sys/types.h> 12788 #include <sys/param.h> 12789 12790int 12791main () 12792{ 12793#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 12794 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 12795 && LITTLE_ENDIAN) 12796 bogus endian macros 12797 #endif 12798 12799 ; 12800 return 0; 12801} 12802_ACEOF 12803if ac_fn_c_try_compile "$LINENO"; then : 12804 # It does; now see whether it defined to BIG_ENDIAN or not. 12805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12806/* end confdefs.h. */ 12807#include <sys/types.h> 12808 #include <sys/param.h> 12809 12810int 12811main () 12812{ 12813#if BYTE_ORDER != BIG_ENDIAN 12814 not big endian 12815 #endif 12816 12817 ; 12818 return 0; 12819} 12820_ACEOF 12821if ac_fn_c_try_compile "$LINENO"; then : 12822 ac_cv_c_bigendian=yes 12823else 12824 ac_cv_c_bigendian=no 12825fi 12826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12827fi 12828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12829 fi 12830 if test $ac_cv_c_bigendian = unknown; then 12831 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 12832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12833/* end confdefs.h. */ 12834#include <limits.h> 12835 12836int 12837main () 12838{ 12839#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 12840 bogus endian macros 12841 #endif 12842 12843 ; 12844 return 0; 12845} 12846_ACEOF 12847if ac_fn_c_try_compile "$LINENO"; then : 12848 # It does; now see whether it defined to _BIG_ENDIAN or not. 12849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12850/* end confdefs.h. */ 12851#include <limits.h> 12852 12853int 12854main () 12855{ 12856#ifndef _BIG_ENDIAN 12857 not big endian 12858 #endif 12859 12860 ; 12861 return 0; 12862} 12863_ACEOF 12864if ac_fn_c_try_compile "$LINENO"; then : 12865 ac_cv_c_bigendian=yes 12866else 12867 ac_cv_c_bigendian=no 12868fi 12869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12870fi 12871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12872 fi 12873 if test $ac_cv_c_bigendian = unknown; then 12874 # Compile a test program. 12875 if test "$cross_compiling" = yes; then : 12876 # Try to guess by grepping values from an object file. 12877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12878/* end confdefs.h. */ 12879short int ascii_mm[] = 12880 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 12881 short int ascii_ii[] = 12882 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 12883 int use_ascii (int i) { 12884 return ascii_mm[i] + ascii_ii[i]; 12885 } 12886 short int ebcdic_ii[] = 12887 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 12888 short int ebcdic_mm[] = 12889 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 12890 int use_ebcdic (int i) { 12891 return ebcdic_mm[i] + ebcdic_ii[i]; 12892 } 12893 extern int foo; 12894 12895int 12896main () 12897{ 12898return use_ascii (foo) == use_ebcdic (foo); 12899 ; 12900 return 0; 12901} 12902_ACEOF 12903if ac_fn_c_try_compile "$LINENO"; then : 12904 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 12905 ac_cv_c_bigendian=yes 12906 fi 12907 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 12908 if test "$ac_cv_c_bigendian" = unknown; then 12909 ac_cv_c_bigendian=no 12910 else 12911 # finding both strings is unlikely to happen, but who knows? 12912 ac_cv_c_bigendian=unknown 12913 fi 12914 fi 12915fi 12916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12917else 12918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12919/* end confdefs.h. */ 12920$ac_includes_default 12921int 12922main () 12923{ 12924 12925 /* Are we little or big endian? From Harbison&Steele. */ 12926 union 12927 { 12928 long int l; 12929 char c[sizeof (long int)]; 12930 } u; 12931 u.l = 1; 12932 return u.c[sizeof (long int) - 1] == 1; 12933 12934 ; 12935 return 0; 12936} 12937_ACEOF 12938if ac_fn_c_try_run "$LINENO"; then : 12939 ac_cv_c_bigendian=no 12940else 12941 ac_cv_c_bigendian=yes 12942fi 12943rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12944 conftest.$ac_objext conftest.beam conftest.$ac_ext 12945fi 12946 12947 fi 12948fi 12949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 12950$as_echo "$ac_cv_c_bigendian" >&6; } 12951 case $ac_cv_c_bigendian in #( 12952 yes) 12953 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 12954;; #( 12955 no) 12956 ;; #( 12957 universal) 12958 12959$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 12960 12961 ;; #( 12962 *) 12963 as_fn_error $? "unknown endianness 12964 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 12965 esac 12966 12967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 12968$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12969if ${ac_cv_c_const+:} false; then : 12970 $as_echo_n "(cached) " >&6 12971else 12972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12973/* end confdefs.h. */ 12974 12975int 12976main () 12977{ 12978 12979#ifndef __cplusplus 12980 /* Ultrix mips cc rejects this sort of thing. */ 12981 typedef int charset[2]; 12982 const charset cs = { 0, 0 }; 12983 /* SunOS 4.1.1 cc rejects this. */ 12984 char const *const *pcpcc; 12985 char **ppc; 12986 /* NEC SVR4.0.2 mips cc rejects this. */ 12987 struct point {int x, y;}; 12988 static struct point const zero = {0,0}; 12989 /* AIX XL C 1.02.0.0 rejects this. 12990 It does not let you subtract one const X* pointer from another in 12991 an arm of an if-expression whose if-part is not a constant 12992 expression */ 12993 const char *g = "string"; 12994 pcpcc = &g + (g ? g-g : 0); 12995 /* HPUX 7.0 cc rejects these. */ 12996 ++pcpcc; 12997 ppc = (char**) pcpcc; 12998 pcpcc = (char const *const *) ppc; 12999 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13000 char tx; 13001 char *t = &tx; 13002 char const *s = 0 ? (char *) 0 : (char const *) 0; 13003 13004 *t++ = 0; 13005 if (s) return 0; 13006 } 13007 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13008 int x[] = {25, 17}; 13009 const int *foo = &x[0]; 13010 ++foo; 13011 } 13012 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13013 typedef const int *iptr; 13014 iptr p = 0; 13015 ++p; 13016 } 13017 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13018 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13019 struct s { int j; const int *ap[3]; } bx; 13020 struct s *b = &bx; b->j = 5; 13021 } 13022 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13023 const int foo = 10; 13024 if (!foo) return 0; 13025 } 13026 return !cs[0] && !zero.x; 13027#endif 13028 13029 ; 13030 return 0; 13031} 13032_ACEOF 13033if ac_fn_c_try_compile "$LINENO"; then : 13034 ac_cv_c_const=yes 13035else 13036 ac_cv_c_const=no 13037fi 13038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13039fi 13040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13041$as_echo "$ac_cv_c_const" >&6; } 13042if test $ac_cv_c_const = no; then 13043 13044$as_echo "#define const /**/" >>confdefs.h 13045 13046fi 13047 13048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 13049$as_echo_n "checking for inline... " >&6; } 13050if ${ac_cv_c_inline+:} false; then : 13051 $as_echo_n "(cached) " >&6 13052else 13053 ac_cv_c_inline=no 13054for ac_kw in inline __inline__ __inline; do 13055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13056/* end confdefs.h. */ 13057#ifndef __cplusplus 13058typedef int foo_t; 13059static $ac_kw foo_t static_foo () {return 0; } 13060$ac_kw foo_t foo () {return 0; } 13061#endif 13062 13063_ACEOF 13064if ac_fn_c_try_compile "$LINENO"; then : 13065 ac_cv_c_inline=$ac_kw 13066fi 13067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13068 test "$ac_cv_c_inline" != no && break 13069done 13070 13071fi 13072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 13073$as_echo "$ac_cv_c_inline" >&6; } 13074 13075case $ac_cv_c_inline in 13076 inline | yes) ;; 13077 *) 13078 case $ac_cv_c_inline in 13079 no) ac_val=;; 13080 *) ac_val=$ac_cv_c_inline;; 13081 esac 13082 cat >>confdefs.h <<_ACEOF 13083#ifndef __cplusplus 13084#define inline $ac_val 13085#endif 13086_ACEOF 13087 ;; 13088esac 13089 13090ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 13091if test "x$ac_cv_type_size_t" = xyes; then : 13092 13093else 13094 13095cat >>confdefs.h <<_ACEOF 13096#define size_t unsigned int 13097_ACEOF 13098 13099fi 13100 13101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 13102$as_echo_n "checking for __attribute__... " >&6; } 13103if ${lsh_cv_c_attribute+:} false; then : 13104 $as_echo_n "(cached) " >&6 13105else 13106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13107/* end confdefs.h. */ 13108 13109#include <stdlib.h> 13110 13111int 13112main () 13113{ 13114 13115static void foo(void) __attribute__ ((noreturn)); 13116 13117static void __attribute__ ((noreturn)) 13118foo(void) 13119{ 13120 exit(1); 13121} 13122 13123 ; 13124 return 0; 13125} 13126_ACEOF 13127if ac_fn_c_try_compile "$LINENO"; then : 13128 lsh_cv_c_attribute=yes 13129else 13130 lsh_cv_c_attribute=no 13131fi 13132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13133fi 13134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lsh_cv_c_attribute" >&5 13135$as_echo "$lsh_cv_c_attribute" >&6; } 13136 13137 13138if test "x$lsh_cv_c_attribute" = "xyes"; then 13139 $as_echo "#define HAVE_GCC_ATTRIBUTE 1" >>confdefs.h 13140 13141fi 13142 13143 13144 13145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 13146$as_echo_n "checking for ANSI C header files... " >&6; } 13147if ${ac_cv_header_stdc+:} false; then : 13148 $as_echo_n "(cached) " >&6 13149else 13150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13151/* end confdefs.h. */ 13152#include <stdlib.h> 13153#include <stdarg.h> 13154#include <string.h> 13155#include <float.h> 13156 13157int 13158main () 13159{ 13160 13161 ; 13162 return 0; 13163} 13164_ACEOF 13165if ac_fn_c_try_compile "$LINENO"; then : 13166 ac_cv_header_stdc=yes 13167else 13168 ac_cv_header_stdc=no 13169fi 13170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13171 13172if test $ac_cv_header_stdc = yes; then 13173 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13175/* end confdefs.h. */ 13176#include <string.h> 13177 13178_ACEOF 13179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13180 $EGREP "memchr" >/dev/null 2>&1; then : 13181 13182else 13183 ac_cv_header_stdc=no 13184fi 13185rm -f conftest* 13186 13187fi 13188 13189if test $ac_cv_header_stdc = yes; then 13190 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 13191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13192/* end confdefs.h. */ 13193#include <stdlib.h> 13194 13195_ACEOF 13196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13197 $EGREP "free" >/dev/null 2>&1; then : 13198 13199else 13200 ac_cv_header_stdc=no 13201fi 13202rm -f conftest* 13203 13204fi 13205 13206if test $ac_cv_header_stdc = yes; then 13207 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 13208 if test "$cross_compiling" = yes; then : 13209 : 13210else 13211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13212/* end confdefs.h. */ 13213#include <ctype.h> 13214#include <stdlib.h> 13215#if ((' ' & 0x0FF) == 0x020) 13216# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13217# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13218#else 13219# define ISLOWER(c) \ 13220 (('a' <= (c) && (c) <= 'i') \ 13221 || ('j' <= (c) && (c) <= 'r') \ 13222 || ('s' <= (c) && (c) <= 'z')) 13223# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13224#endif 13225 13226#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13227int 13228main () 13229{ 13230 int i; 13231 for (i = 0; i < 256; i++) 13232 if (XOR (islower (i), ISLOWER (i)) 13233 || toupper (i) != TOUPPER (i)) 13234 return 2; 13235 return 0; 13236} 13237_ACEOF 13238if ac_fn_c_try_run "$LINENO"; then : 13239 13240else 13241 ac_cv_header_stdc=no 13242fi 13243rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13244 conftest.$ac_objext conftest.beam conftest.$ac_ext 13245fi 13246 13247fi 13248fi 13249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 13250$as_echo "$ac_cv_header_stdc" >&6; } 13251if test $ac_cv_header_stdc = yes; then 13252 13253$as_echo "#define STDC_HEADERS 1" >>confdefs.h 13254 13255fi 13256 13257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 13258$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 13259if ${ac_cv_header_time+:} false; then : 13260 $as_echo_n "(cached) " >&6 13261else 13262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13263/* end confdefs.h. */ 13264#include <sys/types.h> 13265#include <sys/time.h> 13266#include <time.h> 13267 13268int 13269main () 13270{ 13271if ((struct tm *) 0) 13272return 0; 13273 ; 13274 return 0; 13275} 13276_ACEOF 13277if ac_fn_c_try_compile "$LINENO"; then : 13278 ac_cv_header_time=yes 13279else 13280 ac_cv_header_time=no 13281fi 13282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13283fi 13284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 13285$as_echo "$ac_cv_header_time" >&6; } 13286if test $ac_cv_header_time = yes; then 13287 13288$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 13289 13290fi 13291 13292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 13293$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 13294if ${ac_cv_header_sys_wait_h+:} false; then : 13295 $as_echo_n "(cached) " >&6 13296else 13297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13298/* end confdefs.h. */ 13299#include <sys/types.h> 13300#include <sys/wait.h> 13301#ifndef WEXITSTATUS 13302# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 13303#endif 13304#ifndef WIFEXITED 13305# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 13306#endif 13307 13308int 13309main () 13310{ 13311 int s; 13312 wait (&s); 13313 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 13314 ; 13315 return 0; 13316} 13317_ACEOF 13318if ac_fn_c_try_compile "$LINENO"; then : 13319 ac_cv_header_sys_wait_h=yes 13320else 13321 ac_cv_header_sys_wait_h=no 13322fi 13323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13324fi 13325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 13326$as_echo "$ac_cv_header_sys_wait_h" >&6; } 13327if test $ac_cv_header_sys_wait_h = yes; then 13328 13329$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 13330 13331fi 13332 13333for ac_header in unistd.h fcntl.h getopt.h pthread.h strings.h 13334do : 13335 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13336ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13337if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13338 cat >>confdefs.h <<_ACEOF 13339#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13340_ACEOF 13341 13342fi 13343 13344done 13345 13346for ac_header in linux/types.h error.h netdb.h sys/io.h sys/sockio.h asm/io.h sys/ioccom.h 13347do : 13348 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13349ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13350if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13351 cat >>confdefs.h <<_ACEOF 13352#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13353_ACEOF 13354 13355fi 13356 13357done 13358 13359for ac_header in linux/ipmi_msgdefs.h 13360do : 13361 ac_fn_c_check_header_mongrel "$LINENO" "linux/ipmi_msgdefs.h" "ac_cv_header_linux_ipmi_msgdefs_h" "$ac_includes_default" 13362if test "x$ac_cv_header_linux_ipmi_msgdefs_h" = xyes; then : 13363 cat >>confdefs.h <<_ACEOF 13364#define HAVE_LINUX_IPMI_MSGDEFS_H 1 13365_ACEOF 13366 13367fi 13368 13369done 13370 13371for ac_header in linux/compiler.h 13372do : 13373 ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default" 13374if test "x$ac_cv_header_linux_compiler_h" = xyes; then : 13375 cat >>confdefs.h <<_ACEOF 13376#define HAVE_LINUX_COMPILER_H 1 13377_ACEOF 13378 13379fi 13380 13381done 13382 13383for ac_header in stropts.h sys/stropts.h 13384do : 13385 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13386ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13387if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13388 cat >>confdefs.h <<_ACEOF 13389#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13390_ACEOF 13391 13392fi 13393 13394done 13395 13396for ac_header in linux/ipmi.h 13397do : 13398 ac_fn_c_check_header_compile "$LINENO" "linux/ipmi.h" "ac_cv_header_linux_ipmi_h" "#ifdef HAVE_LINUX_IPMI_MSGDEFS_H 13399 #include <linux/ipmi_msgdefs.h> 13400 #endif 13401 #ifdef HAVE_LINUX_COMPILER_H 13402 #include <linux/compiler.h> 13403 #endif 13404 13405" 13406if test "x$ac_cv_header_linux_ipmi_h" = xyes; then : 13407 cat >>confdefs.h <<_ACEOF 13408#define HAVE_LINUX_IPMI_H 1 13409_ACEOF 13410 13411fi 13412 13413done 13414 13415for ac_header in sys/ipmi.h 13416do : 13417 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipmi.h" "ac_cv_header_sys_ipmi_h" "$ac_includes_default" 13418if test "x$ac_cv_header_sys_ipmi_h" = xyes; then : 13419 cat >>confdefs.h <<_ACEOF 13420#define HAVE_SYS_IPMI_H 1 13421_ACEOF 13422 13423fi 13424 13425done 13426 13427for ac_header in sys/int_types.h 13428do : 13429 ac_fn_c_check_header_mongrel "$LINENO" "sys/int_types.h" "ac_cv_header_sys_int_types_h" "$ac_includes_default" 13430if test "x$ac_cv_header_sys_int_types_h" = xyes; then : 13431 cat >>confdefs.h <<_ACEOF 13432#define HAVE_SYS_INT_TYPES_H 1 13433_ACEOF 13434 13435fi 13436 13437done 13438 13439for ac_header in bmc_intf.h 13440do : 13441 ac_fn_c_check_header_mongrel "$LINENO" "bmc_intf.h" "ac_cv_header_bmc_intf_h" "$ac_includes_default" 13442if test "x$ac_cv_header_bmc_intf_h" = xyes; then : 13443 cat >>confdefs.h <<_ACEOF 13444#define HAVE_BMC_INTF_H 1 13445_ACEOF 13446 13447fi 13448 13449done 13450 13451for ac_header in signal.h 13452do : 13453 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" 13454if test "x$ac_cv_header_signal_h" = xyes; then : 13455 cat >>confdefs.h <<_ACEOF 13456#define HAVE_SIGNAL_H 1 13457_ACEOF 13458 13459fi 13460 13461done 13462 13463 13464# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 13465# for constant arguments. Useless! 13466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 13467$as_echo_n "checking for working alloca.h... " >&6; } 13468if ${ac_cv_working_alloca_h+:} false; then : 13469 $as_echo_n "(cached) " >&6 13470else 13471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13472/* end confdefs.h. */ 13473#include <alloca.h> 13474int 13475main () 13476{ 13477char *p = (char *) alloca (2 * sizeof (int)); 13478 if (p) return 0; 13479 ; 13480 return 0; 13481} 13482_ACEOF 13483if ac_fn_c_try_link "$LINENO"; then : 13484 ac_cv_working_alloca_h=yes 13485else 13486 ac_cv_working_alloca_h=no 13487fi 13488rm -f core conftest.err conftest.$ac_objext \ 13489 conftest$ac_exeext conftest.$ac_ext 13490fi 13491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 13492$as_echo "$ac_cv_working_alloca_h" >&6; } 13493if test $ac_cv_working_alloca_h = yes; then 13494 13495$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 13496 13497fi 13498 13499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 13500$as_echo_n "checking for alloca... " >&6; } 13501if ${ac_cv_func_alloca_works+:} false; then : 13502 $as_echo_n "(cached) " >&6 13503else 13504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13505/* end confdefs.h. */ 13506#ifdef __GNUC__ 13507# define alloca __builtin_alloca 13508#else 13509# ifdef _MSC_VER 13510# include <malloc.h> 13511# define alloca _alloca 13512# else 13513# ifdef HAVE_ALLOCA_H 13514# include <alloca.h> 13515# else 13516# ifdef _AIX 13517 #pragma alloca 13518# else 13519# ifndef alloca /* predefined by HP cc +Olibcalls */ 13520void *alloca (size_t); 13521# endif 13522# endif 13523# endif 13524# endif 13525#endif 13526 13527int 13528main () 13529{ 13530char *p = (char *) alloca (1); 13531 if (p) return 0; 13532 ; 13533 return 0; 13534} 13535_ACEOF 13536if ac_fn_c_try_link "$LINENO"; then : 13537 ac_cv_func_alloca_works=yes 13538else 13539 ac_cv_func_alloca_works=no 13540fi 13541rm -f core conftest.err conftest.$ac_objext \ 13542 conftest$ac_exeext conftest.$ac_ext 13543fi 13544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 13545$as_echo "$ac_cv_func_alloca_works" >&6; } 13546 13547if test $ac_cv_func_alloca_works = yes; then 13548 13549$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 13550 13551else 13552 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 13553# that cause trouble. Some versions do not even contain alloca or 13554# contain a buggy version. If you still want to use their alloca, 13555# use ar to extract alloca.o from them instead of compiling alloca.c. 13556 13557ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 13558 13559$as_echo "#define C_ALLOCA 1" >>confdefs.h 13560 13561 13562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 13563$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 13564if ${ac_cv_os_cray+:} false; then : 13565 $as_echo_n "(cached) " >&6 13566else 13567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13568/* end confdefs.h. */ 13569#if defined CRAY && ! defined CRAY2 13570webecray 13571#else 13572wenotbecray 13573#endif 13574 13575_ACEOF 13576if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13577 $EGREP "webecray" >/dev/null 2>&1; then : 13578 ac_cv_os_cray=yes 13579else 13580 ac_cv_os_cray=no 13581fi 13582rm -f conftest* 13583 13584fi 13585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 13586$as_echo "$ac_cv_os_cray" >&6; } 13587if test $ac_cv_os_cray = yes; then 13588 for ac_func in _getb67 GETB67 getb67; do 13589 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13590ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13591if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13592 13593cat >>confdefs.h <<_ACEOF 13594#define CRAY_STACKSEG_END $ac_func 13595_ACEOF 13596 13597 break 13598fi 13599 13600 done 13601fi 13602 13603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 13604$as_echo_n "checking stack direction for C alloca... " >&6; } 13605if ${ac_cv_c_stack_direction+:} false; then : 13606 $as_echo_n "(cached) " >&6 13607else 13608 if test "$cross_compiling" = yes; then : 13609 ac_cv_c_stack_direction=0 13610else 13611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13612/* end confdefs.h. */ 13613$ac_includes_default 13614int 13615find_stack_direction (int *addr, int depth) 13616{ 13617 int dir, dummy = 0; 13618 if (! addr) 13619 addr = &dummy; 13620 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 13621 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 13622 return dir + dummy; 13623} 13624 13625int 13626main (int argc, char **argv) 13627{ 13628 return find_stack_direction (0, argc + !argv + 20) < 0; 13629} 13630_ACEOF 13631if ac_fn_c_try_run "$LINENO"; then : 13632 ac_cv_c_stack_direction=1 13633else 13634 ac_cv_c_stack_direction=-1 13635fi 13636rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13637 conftest.$ac_objext conftest.beam conftest.$ac_ext 13638fi 13639 13640fi 13641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 13642$as_echo "$ac_cv_c_stack_direction" >&6; } 13643cat >>confdefs.h <<_ACEOF 13644#define STACK_DIRECTION $ac_cv_c_stack_direction 13645_ACEOF 13646 13647 13648fi 13649 13650 13651 13652 13653 for ac_header in $ac_header_list 13654do : 13655 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13656ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 13657" 13658if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13659 cat >>confdefs.h <<_ACEOF 13660#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13661_ACEOF 13662 13663fi 13664 13665done 13666 13667 13668 13669 13670 13671 13672 13673 13674for ac_func in getpagesize 13675do : 13676 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 13677if test "x$ac_cv_func_getpagesize" = xyes; then : 13678 cat >>confdefs.h <<_ACEOF 13679#define HAVE_GETPAGESIZE 1 13680_ACEOF 13681 13682fi 13683done 13684 13685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 13686$as_echo_n "checking for working mmap... " >&6; } 13687if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 13688 $as_echo_n "(cached) " >&6 13689else 13690 if test "$cross_compiling" = yes; then : 13691 ac_cv_func_mmap_fixed_mapped=no 13692else 13693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13694/* end confdefs.h. */ 13695$ac_includes_default 13696/* malloc might have been renamed as rpl_malloc. */ 13697#undef malloc 13698 13699/* Thanks to Mike Haertel and Jim Avera for this test. 13700 Here is a matrix of mmap possibilities: 13701 mmap private not fixed 13702 mmap private fixed at somewhere currently unmapped 13703 mmap private fixed at somewhere already mapped 13704 mmap shared not fixed 13705 mmap shared fixed at somewhere currently unmapped 13706 mmap shared fixed at somewhere already mapped 13707 For private mappings, we should verify that changes cannot be read() 13708 back from the file, nor mmap's back from the file at a different 13709 address. (There have been systems where private was not correctly 13710 implemented like the infamous i386 svr4.0, and systems where the 13711 VM page cache was not coherent with the file system buffer cache 13712 like early versions of FreeBSD and possibly contemporary NetBSD.) 13713 For shared mappings, we should conversely verify that changes get 13714 propagated back to all the places they're supposed to be. 13715 13716 Grep wants private fixed already mapped. 13717 The main things grep needs to know about mmap are: 13718 * does it exist and is it safe to write into the mmap'd area 13719 * how to use it (BSD variants) */ 13720 13721#include <fcntl.h> 13722#include <sys/mman.h> 13723 13724#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 13725char *malloc (); 13726#endif 13727 13728/* This mess was copied from the GNU getpagesize.h. */ 13729#ifndef HAVE_GETPAGESIZE 13730# ifdef _SC_PAGESIZE 13731# define getpagesize() sysconf(_SC_PAGESIZE) 13732# else /* no _SC_PAGESIZE */ 13733# ifdef HAVE_SYS_PARAM_H 13734# include <sys/param.h> 13735# ifdef EXEC_PAGESIZE 13736# define getpagesize() EXEC_PAGESIZE 13737# else /* no EXEC_PAGESIZE */ 13738# ifdef NBPG 13739# define getpagesize() NBPG * CLSIZE 13740# ifndef CLSIZE 13741# define CLSIZE 1 13742# endif /* no CLSIZE */ 13743# else /* no NBPG */ 13744# ifdef NBPC 13745# define getpagesize() NBPC 13746# else /* no NBPC */ 13747# ifdef PAGESIZE 13748# define getpagesize() PAGESIZE 13749# endif /* PAGESIZE */ 13750# endif /* no NBPC */ 13751# endif /* no NBPG */ 13752# endif /* no EXEC_PAGESIZE */ 13753# else /* no HAVE_SYS_PARAM_H */ 13754# define getpagesize() 8192 /* punt totally */ 13755# endif /* no HAVE_SYS_PARAM_H */ 13756# endif /* no _SC_PAGESIZE */ 13757 13758#endif /* no HAVE_GETPAGESIZE */ 13759 13760int 13761main () 13762{ 13763 char *data, *data2, *data3; 13764 const char *cdata2; 13765 int i, pagesize; 13766 int fd, fd2; 13767 13768 pagesize = getpagesize (); 13769 13770 /* First, make a file with some known garbage in it. */ 13771 data = (char *) malloc (pagesize); 13772 if (!data) 13773 return 1; 13774 for (i = 0; i < pagesize; ++i) 13775 *(data + i) = rand (); 13776 umask (0); 13777 fd = creat ("conftest.mmap", 0600); 13778 if (fd < 0) 13779 return 2; 13780 if (write (fd, data, pagesize) != pagesize) 13781 return 3; 13782 close (fd); 13783 13784 /* Next, check that the tail of a page is zero-filled. File must have 13785 non-zero length, otherwise we risk SIGBUS for entire page. */ 13786 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 13787 if (fd2 < 0) 13788 return 4; 13789 cdata2 = ""; 13790 if (write (fd2, cdata2, 1) != 1) 13791 return 5; 13792 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 13793 if (data2 == MAP_FAILED) 13794 return 6; 13795 for (i = 0; i < pagesize; ++i) 13796 if (*(data2 + i)) 13797 return 7; 13798 close (fd2); 13799 if (munmap (data2, pagesize)) 13800 return 8; 13801 13802 /* Next, try to mmap the file at a fixed address which already has 13803 something else allocated at it. If we can, also make sure that 13804 we see the same garbage. */ 13805 fd = open ("conftest.mmap", O_RDWR); 13806 if (fd < 0) 13807 return 9; 13808 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 13809 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 13810 return 10; 13811 for (i = 0; i < pagesize; ++i) 13812 if (*(data + i) != *(data2 + i)) 13813 return 11; 13814 13815 /* Finally, make sure that changes to the mapped area do not 13816 percolate back to the file as seen by read(). (This is a bug on 13817 some variants of i386 svr4.0.) */ 13818 for (i = 0; i < pagesize; ++i) 13819 *(data2 + i) = *(data2 + i) + 1; 13820 data3 = (char *) malloc (pagesize); 13821 if (!data3) 13822 return 12; 13823 if (read (fd, data3, pagesize) != pagesize) 13824 return 13; 13825 for (i = 0; i < pagesize; ++i) 13826 if (*(data + i) != *(data3 + i)) 13827 return 14; 13828 close (fd); 13829 return 0; 13830} 13831_ACEOF 13832if ac_fn_c_try_run "$LINENO"; then : 13833 ac_cv_func_mmap_fixed_mapped=yes 13834else 13835 ac_cv_func_mmap_fixed_mapped=no 13836fi 13837rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13838 conftest.$ac_objext conftest.beam conftest.$ac_ext 13839fi 13840 13841fi 13842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 13843$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 13844if test $ac_cv_func_mmap_fixed_mapped = yes; then 13845 13846$as_echo "#define HAVE_MMAP 1" >>confdefs.h 13847 13848fi 13849rm -f conftest.mmap conftest.txt 13850 13851for ac_func in vprintf 13852do : 13853 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 13854if test "x$ac_cv_func_vprintf" = xyes; then : 13855 cat >>confdefs.h <<_ACEOF 13856#define HAVE_VPRINTF 1 13857_ACEOF 13858 13859ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 13860if test "x$ac_cv_func__doprnt" = xyes; then : 13861 13862$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 13863 13864fi 13865 13866fi 13867done 13868 13869 13870 13871for ac_func in strchr strndup strchrnul strsep stristr 13872do : 13873 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13874ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13875if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13876 cat >>confdefs.h <<_ACEOF 13877#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13878_ACEOF 13879 13880fi 13881done 13882 13883for ac_func in memcpy mempcpy memset mlock 13884do : 13885 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13886ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13887if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13888 cat >>confdefs.h <<_ACEOF 13889#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13890_ACEOF 13891 13892fi 13893done 13894 13895for ac_func in getline getprogname 13896do : 13897 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13898ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13899if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13900 cat >>confdefs.h <<_ACEOF 13901#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13902_ACEOF 13903 13904fi 13905done 13906 13907for ac_func in strerror strerror_r 13908do : 13909 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13910ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13911if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13912 cat >>confdefs.h <<_ACEOF 13913#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13914_ACEOF 13915 13916fi 13917done 13918 13919for ac_func in flockfile fputs_unlocked fwrite_unlocked 13920do : 13921 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13922ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13923if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13924 cat >>confdefs.h <<_ACEOF 13925#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13926_ACEOF 13927 13928fi 13929done 13930 13931for ac_func in iopl 13932do : 13933 ac_fn_c_check_func "$LINENO" "iopl" "ac_cv_func_iopl" 13934if test "x$ac_cv_func_iopl" = xyes; then : 13935 cat >>confdefs.h <<_ACEOF 13936#define HAVE_IOPL 1 13937_ACEOF 13938 13939fi 13940done 13941 13942for ac_func in asprintf 13943do : 13944 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 13945if test "x$ac_cv_func_asprintf" = xyes; then : 13946 cat >>confdefs.h <<_ACEOF 13947#define HAVE_ASPRINTF 1 13948_ACEOF 13949 13950fi 13951done 13952 13953for ac_func in cbrt 13954do : 13955 ac_fn_c_check_func "$LINENO" "cbrt" "ac_cv_func_cbrt" 13956if test "x$ac_cv_func_cbrt" = xyes; then : 13957 cat >>confdefs.h <<_ACEOF 13958#define HAVE_CBRT 1 13959_ACEOF 13960 13961fi 13962done 13963 13964 13965ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "#include <signal.h> 13966" 13967if test "x$ac_cv_type_sighandler_t" = xyes; then : 13968 13969cat >>confdefs.h <<_ACEOF 13970#define HAVE_SIGHANDLER_T 1 13971_ACEOF 13972 13973 13974fi 13975 13976 13977# At least on freebsd, putc_unlocked is a macro, so the standard 13978# AC_CHECK_FUNCS doesn't work well. 13979cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13980/* end confdefs.h. */ 13981#include <stdio.h> 13982int 13983main () 13984{ 13985putc_unlocked('x', stdout) 13986 ; 13987 return 0; 13988} 13989_ACEOF 13990if ac_fn_c_try_link "$LINENO"; then : 13991 13992cat >>confdefs.h <<_ACEOF 13993#define HAVE_PUTC_UNLOCKED 1 13994_ACEOF 13995 13996fi 13997rm -f core conftest.err conftest.$ac_objext \ 13998 conftest$ac_exeext conftest.$ac_ext 13999 14000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp10 in -lm" >&5 14001$as_echo_n "checking for exp10 in -lm... " >&6; } 14002if ${ac_cv_lib_m_exp10+:} false; then : 14003 $as_echo_n "(cached) " >&6 14004else 14005 ac_check_lib_save_LIBS=$LIBS 14006LIBS="-lm $LIBS" 14007cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14008/* end confdefs.h. */ 14009 14010/* Override any GCC internal prototype to avoid an error. 14011 Use char because int might match the return type of a GCC 14012 builtin and then its argument prototype would still apply. */ 14013#ifdef __cplusplus 14014extern "C" 14015#endif 14016char exp10 (); 14017int 14018main () 14019{ 14020return exp10 (); 14021 ; 14022 return 0; 14023} 14024_ACEOF 14025if ac_fn_c_try_link "$LINENO"; then : 14026 ac_cv_lib_m_exp10=yes 14027else 14028 ac_cv_lib_m_exp10=no 14029fi 14030rm -f core conftest.err conftest.$ac_objext \ 14031 conftest$ac_exeext conftest.$ac_ext 14032LIBS=$ac_check_lib_save_LIBS 14033fi 14034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp10" >&5 14035$as_echo "$ac_cv_lib_m_exp10" >&6; } 14036if test "x$ac_cv_lib_m_exp10" = xyes; then : 14037 cat >>confdefs.h <<_ACEOF 14038#define HAVE_LIBM 1 14039_ACEOF 14040 14041 LIBS="-lm $LIBS" 14042 14043fi 14044 14045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp2 in -lm" >&5 14046$as_echo_n "checking for exp2 in -lm... " >&6; } 14047if ${ac_cv_lib_m_exp2+:} false; then : 14048 $as_echo_n "(cached) " >&6 14049else 14050 ac_check_lib_save_LIBS=$LIBS 14051LIBS="-lm $LIBS" 14052cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14053/* end confdefs.h. */ 14054 14055/* Override any GCC internal prototype to avoid an error. 14056 Use char because int might match the return type of a GCC 14057 builtin and then its argument prototype would still apply. */ 14058#ifdef __cplusplus 14059extern "C" 14060#endif 14061char exp2 (); 14062int 14063main () 14064{ 14065return exp2 (); 14066 ; 14067 return 0; 14068} 14069_ACEOF 14070if ac_fn_c_try_link "$LINENO"; then : 14071 ac_cv_lib_m_exp2=yes 14072else 14073 ac_cv_lib_m_exp2=no 14074fi 14075rm -f core conftest.err conftest.$ac_objext \ 14076 conftest$ac_exeext conftest.$ac_ext 14077LIBS=$ac_check_lib_save_LIBS 14078fi 14079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp2" >&5 14080$as_echo "$ac_cv_lib_m_exp2" >&6; } 14081if test "x$ac_cv_lib_m_exp2" = xyes; then : 14082 cat >>confdefs.h <<_ACEOF 14083#define HAVE_LIBM 1 14084_ACEOF 14085 14086 LIBS="-lm $LIBS" 14087 14088fi 14089 14090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5 14091$as_echo_n "checking for log2 in -lm... " >&6; } 14092if ${ac_cv_lib_m_log2+:} false; then : 14093 $as_echo_n "(cached) " >&6 14094else 14095 ac_check_lib_save_LIBS=$LIBS 14096LIBS="-lm $LIBS" 14097cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14098/* end confdefs.h. */ 14099 14100/* Override any GCC internal prototype to avoid an error. 14101 Use char because int might match the return type of a GCC 14102 builtin and then its argument prototype would still apply. */ 14103#ifdef __cplusplus 14104extern "C" 14105#endif 14106char log2 (); 14107int 14108main () 14109{ 14110return log2 (); 14111 ; 14112 return 0; 14113} 14114_ACEOF 14115if ac_fn_c_try_link "$LINENO"; then : 14116 ac_cv_lib_m_log2=yes 14117else 14118 ac_cv_lib_m_log2=no 14119fi 14120rm -f core conftest.err conftest.$ac_objext \ 14121 conftest$ac_exeext conftest.$ac_ext 14122LIBS=$ac_check_lib_save_LIBS 14123fi 14124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5 14125$as_echo "$ac_cv_lib_m_log2" >&6; } 14126if test "x$ac_cv_lib_m_log2" = xyes; then : 14127 cat >>confdefs.h <<_ACEOF 14128#define HAVE_LIBM 1 14129_ACEOF 14130 14131 LIBS="-lm $LIBS" 14132 14133fi 14134 14135 14136ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 14137if test "x$ac_cv_func_socket" = xyes; then : 14138 14139else 14140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 14141$as_echo_n "checking for socket in -lsocket... " >&6; } 14142if ${ac_cv_lib_socket_socket+:} false; then : 14143 $as_echo_n "(cached) " >&6 14144else 14145 ac_check_lib_save_LIBS=$LIBS 14146LIBS="-lsocket $LIBS" 14147cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14148/* end confdefs.h. */ 14149 14150/* Override any GCC internal prototype to avoid an error. 14151 Use char because int might match the return type of a GCC 14152 builtin and then its argument prototype would still apply. */ 14153#ifdef __cplusplus 14154extern "C" 14155#endif 14156char socket (); 14157int 14158main () 14159{ 14160return socket (); 14161 ; 14162 return 0; 14163} 14164_ACEOF 14165if ac_fn_c_try_link "$LINENO"; then : 14166 ac_cv_lib_socket_socket=yes 14167else 14168 ac_cv_lib_socket_socket=no 14169fi 14170rm -f core conftest.err conftest.$ac_objext \ 14171 conftest$ac_exeext conftest.$ac_ext 14172LIBS=$ac_check_lib_save_LIBS 14173fi 14174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 14175$as_echo "$ac_cv_lib_socket_socket" >&6; } 14176if test "x$ac_cv_lib_socket_socket" = xyes; then : 14177 cat >>confdefs.h <<_ACEOF 14178#define HAVE_LIBSOCKET 1 14179_ACEOF 14180 14181 LIBS="-lsocket $LIBS" 14182 14183fi 14184 14185fi 14186 14187 14188 14189ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" 14190if test "x$ac_cv_func_gethostbyname_r" = xyes; then : 14191 have_gethostbyname_r=yes 14192else 14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5 14194$as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; } 14195if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then : 14196 $as_echo_n "(cached) " >&6 14197else 14198 ac_check_lib_save_LIBS=$LIBS 14199LIBS="-lnsl $LIBS" 14200cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14201/* end confdefs.h. */ 14202 14203/* Override any GCC internal prototype to avoid an error. 14204 Use char because int might match the return type of a GCC 14205 builtin and then its argument prototype would still apply. */ 14206#ifdef __cplusplus 14207extern "C" 14208#endif 14209char gethostbyname_r (); 14210int 14211main () 14212{ 14213return gethostbyname_r (); 14214 ; 14215 return 0; 14216} 14217_ACEOF 14218if ac_fn_c_try_link "$LINENO"; then : 14219 ac_cv_lib_nsl_gethostbyname_r=yes 14220else 14221 ac_cv_lib_nsl_gethostbyname_r=no 14222fi 14223rm -f core conftest.err conftest.$ac_objext \ 14224 conftest$ac_exeext conftest.$ac_ext 14225LIBS=$ac_check_lib_save_LIBS 14226fi 14227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5 14228$as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; } 14229if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then : 14230 LIBS="$LIBS -lnsl" have_gethostbyname_r=yes 14231else 14232 have_gethostbyname_r=no 14233fi 14234 14235fi 14236 14237 14238if test "x${have_gethostbyname_r}" = "xyes"; then 14239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14240/* end confdefs.h. */ 14241 14242 #include <netdb.h> 14243 14244int 14245main () 14246{ 14247 14248 char *name; 14249 struct hostent *he; 14250 struct hostent_data data; 14251 (void) gethostbyname_r(name, he, &data); 14252 14253 ; 14254 return 0; 14255} 14256_ACEOF 14257if ac_fn_c_try_link "$LINENO"; then : 14258 ac_cv_func_which_gethostbyname_r=three 14259else 14260 14261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14262/* end confdefs.h. */ 14263 14264 #include <netdb.h> 14265 14266int 14267main () 14268{ 14269 14270 char *name; 14271 struct hostent *he, *res; 14272 char buffer[2048]; 14273 int buflen = 2048; 14274 int h_errnop; 14275 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop); 14276 14277 ; 14278 return 0; 14279} 14280_ACEOF 14281if ac_fn_c_try_link "$LINENO"; then : 14282 ac_cv_func_which_gethostbyname_r=six 14283else 14284 14285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14286/* end confdefs.h. */ 14287 14288 #include <netdb.h> 14289 14290int 14291main () 14292{ 14293 14294 char *name; 14295 struct hostent *he; 14296 char buffer[2048]; 14297 int buflen = 2048; 14298 int h_errnop; 14299 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop); 14300 14301 ; 14302 return 0; 14303} 14304_ACEOF 14305if ac_fn_c_try_link "$LINENO"; then : 14306 ac_cv_func_which_gethostbyname_r=five 14307else 14308 ac_cv_func_which_gethostbyname_r=no 14309fi 14310rm -f core conftest.err conftest.$ac_objext \ 14311 conftest$ac_exeext conftest.$ac_ext 14312 14313fi 14314rm -f core conftest.err conftest.$ac_objext \ 14315 conftest$ac_exeext conftest.$ac_ext 14316 14317fi 14318rm -f core conftest.err conftest.$ac_objext \ 14319 conftest$ac_exeext conftest.$ac_ext 14320 14321 14322 if test "x${ac_cv_func_which_gethostbyname_r}" = "xsix"; then 14323 14324$as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_6 /**/" >>confdefs.h 14325 14326 elif test "x${ac_cv_func_which_gethostbyname_r}" = "xfive"; then 14327 14328$as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_5 /**/" >>confdefs.h 14329 14330 elif test "x${ac_cv_func_which_gethostbyname_r}" = "xthree"; then 14331 14332$as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_3 /**/" >>confdefs.h 14333 14334 fi 14335fi 14336 14337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread-safe gethostbyname()" >&5 14338$as_echo_n "checking for thread-safe gethostbyname()... " >&6; } 14339have_thread_safe_gethostbyname=no 14340case "$host_os" in 14341*freebsd*) 14342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14343/* end confdefs.h. */ 14344 14345 #include <sys/param.h> 14346 #if __FreeBSD_version < 505000 14347 #error "gethostbyname() is not thread-safe" 14348 #endif 14349 14350_ACEOF 14351if ac_fn_c_try_cpp "$LINENO"; then : 14352 have_thread_safe_gethostbyname=yes 14353fi 14354rm -f conftest.err conftest.i conftest.$ac_ext 14355 ;; 14356esac 14357if test "x$have_thread_safe_gethostbyname" = "xyes"; then 14358 14359$as_echo "#define HAVE_THREAD_SAFE_GETHOSTBYNAME 1" >>confdefs.h 14360 14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14362$as_echo "yes" >&6; } 14363else 14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14365$as_echo "no" >&6; } 14366fi 14367 14368ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror" 14369if test "x$ac_cv_func_hstrerror" = xyes; then : 14370 have_hstrerror=yes 14371else 14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror in -lnsl" >&5 14373$as_echo_n "checking for hstrerror in -lnsl... " >&6; } 14374if ${ac_cv_lib_nsl_hstrerror+:} false; then : 14375 $as_echo_n "(cached) " >&6 14376else 14377 ac_check_lib_save_LIBS=$LIBS 14378LIBS="-lnsl $LIBS" 14379cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14380/* end confdefs.h. */ 14381 14382/* Override any GCC internal prototype to avoid an error. 14383 Use char because int might match the return type of a GCC 14384 builtin and then its argument prototype would still apply. */ 14385#ifdef __cplusplus 14386extern "C" 14387#endif 14388char hstrerror (); 14389int 14390main () 14391{ 14392return hstrerror (); 14393 ; 14394 return 0; 14395} 14396_ACEOF 14397if ac_fn_c_try_link "$LINENO"; then : 14398 ac_cv_lib_nsl_hstrerror=yes 14399else 14400 ac_cv_lib_nsl_hstrerror=no 14401fi 14402rm -f core conftest.err conftest.$ac_objext \ 14403 conftest$ac_exeext conftest.$ac_ext 14404LIBS=$ac_check_lib_save_LIBS 14405fi 14406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_hstrerror" >&5 14407$as_echo "$ac_cv_lib_nsl_hstrerror" >&6; } 14408if test "x$ac_cv_lib_nsl_hstrerror" = xyes; then : 14409 have_hstrerror=yes 14410else 14411 have_hstrerror=no 14412fi 14413 14414fi 14415 14416 14417if test "x$have_hstrerror" = "xyes"; then 14418 14419$as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h 14420 14421fi 14422 14423ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r" 14424if test "x$ac_cv_func_getpwuid_r" = xyes; then : 14425 have_getpwuid_r=yes 14426else 14427 as_fn_error $? "getpwuid_r cannot be found" "$LINENO" 5 14428fi 14429 14430 14431if test "x${have_getpwuid_r}" = "xyes"; then 14432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14433/* end confdefs.h. */ 14434 14435 #include <pwd.h> 14436 #include <sys/types.h> 14437 14438int 14439main () 14440{ 14441 14442 uid_t uid; 14443 struct passwd pwd; 14444 struct passwd *result; 14445 char buffer[1]; 14446 int bufsize; 14447 (void) getpwuid_r (uid, &pwd, buffer, bufsize, &result); 14448 14449 ; 14450 return 0; 14451} 14452_ACEOF 14453if ac_fn_c_try_link "$LINENO"; then : 14454 ac_cv_func_which_getpwuid_r=five 14455else 14456 14457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14458/* end confdefs.h. */ 14459 14460 #include <pwd.h> 14461 #include <sys/types.h> 14462 14463int 14464main () 14465{ 14466 14467 uid_t uid; 14468 struct passwd pwd; 14469 char buffer[1]; 14470 int bufsize; 14471 (void) getpwuid_r (uid, &pwd, buffer, bufsize); 14472 14473 ; 14474 return 0; 14475} 14476_ACEOF 14477if ac_fn_c_try_link "$LINENO"; then : 14478 ac_cv_func_which_getpwuid_r=four 14479else 14480 ac_cv_func_which_getpwuid_r=no 14481fi 14482rm -f core conftest.err conftest.$ac_objext \ 14483 conftest$ac_exeext conftest.$ac_ext 14484 14485fi 14486rm -f core conftest.err conftest.$ac_objext \ 14487 conftest$ac_exeext conftest.$ac_ext 14488 14489 14490 if test "x${ac_cv_func_which_getpwuid_r}" = "xfive"; then 14491 14492$as_echo "#define HAVE_FUNC_GETPWUID_R_5 /**/" >>confdefs.h 14493 14494 elif test "x${ac_cv_func_which_getpwuid_r}" = "xfour"; then 14495 14496$as_echo "#define HAVE_FUNC_GETPWUID_R_4 /**/" >>confdefs.h 14497 14498 else 14499 as_fn_error $? "getpwuid_r cannot be compiled" "$LINENO" 5 14500 fi 14501fi 14502 14503ac_fn_c_check_func "$LINENO" "argp_parse" "ac_cv_func_argp_parse" 14504if test "x$ac_cv_func_argp_parse" = xyes; then : 14505 have_argp=yes 14506else 14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for argp_parse in -largp" >&5 14508$as_echo_n "checking for argp_parse in -largp... " >&6; } 14509if ${ac_cv_lib_argp_argp_parse+:} false; then : 14510 $as_echo_n "(cached) " >&6 14511else 14512 ac_check_lib_save_LIBS=$LIBS 14513LIBS="-largp $LIBS" 14514cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14515/* end confdefs.h. */ 14516 14517/* Override any GCC internal prototype to avoid an error. 14518 Use char because int might match the return type of a GCC 14519 builtin and then its argument prototype would still apply. */ 14520#ifdef __cplusplus 14521extern "C" 14522#endif 14523char argp_parse (); 14524int 14525main () 14526{ 14527return argp_parse (); 14528 ; 14529 return 0; 14530} 14531_ACEOF 14532if ac_fn_c_try_link "$LINENO"; then : 14533 ac_cv_lib_argp_argp_parse=yes 14534else 14535 ac_cv_lib_argp_argp_parse=no 14536fi 14537rm -f core conftest.err conftest.$ac_objext \ 14538 conftest$ac_exeext conftest.$ac_ext 14539LIBS=$ac_check_lib_save_LIBS 14540fi 14541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_argp_argp_parse" >&5 14542$as_echo "$ac_cv_lib_argp_argp_parse" >&6; } 14543if test "x$ac_cv_lib_argp_argp_parse" = xyes; then : 14544 have_argp=yes; LIBS="-largp $LIBS" 14545else 14546 have_argp=no 14547fi 14548 14549fi 14550 14551 14552if test "x$have_argp" = "xyes"; then 14553 ac_fn_c_check_header_mongrel "$LINENO" "argp.h" "ac_cv_header_argp_h" "$ac_includes_default" 14554if test "x$ac_cv_header_argp_h" = xyes; then : 14555 14556$as_echo "#define HAVE_ARGP_H 1" >>confdefs.h 14557 14558else 14559 as_fn_error $? "argp header cannot be found" "$LINENO" 5 14560fi 14561 14562 14563else 14564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14565/* end confdefs.h. */ 14566#include <sys/param.h> 14567int 14568main () 14569{ 14570 14571 #if defined(__FreeBSD__) || defined(__APPLE__) 14572 uncompilable junk syntax %$ # @ 14573 #endif 14574 14575 ; 14576 return 0; 14577} 14578_ACEOF 14579if ac_fn_c_try_compile "$LINENO"; then : 14580 14581else 14582 as_fn_error $? "argp library not found. argp-standalone required." "$LINENO" 5 14583fi 14584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14585fi 14586 14587 if test "$have_argp" = "no"; then 14588 WITH_FREEIPMI_ARGP_TRUE= 14589 WITH_FREEIPMI_ARGP_FALSE='#' 14590else 14591 WITH_FREEIPMI_ARGP_TRUE='#' 14592 WITH_FREEIPMI_ARGP_FALSE= 14593fi 14594 14595 14596cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14597/* end confdefs.h. */ 14598#include <stdlib.h> 14599int 14600main () 14601{ 14602printf("%s\n", __FUNCTION__); 14603 ; 14604 return 0; 14605} 14606_ACEOF 14607if ac_fn_c_try_compile "$LINENO"; then : 14608 14609$as_echo "#define HAVE_FUNCTION_MACRO 1" >>confdefs.h 14610 14611fi 14612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14613 14614 14615 14616 14617ac_ext=c 14618ac_cpp='$CPP $CPPFLAGS' 14619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14621ac_compiler_gnu=$ac_cv_c_compiler_gnu 14622 14623acx_pthread_ok=no 14624 14625# We used to check for pthread.h first, but this fails if pthread.h 14626# requires special compiler flags (e.g. on True64 or Sequent). 14627# It gets checked for in the link test anyway. 14628 14629# First of all, check if the user has set any of the PTHREAD_LIBS, 14630# etcetera environment variables, and if threads linking works using 14631# them: 14632if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 14633 save_CFLAGS="$CFLAGS" 14634 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 14635 save_LIBS="$LIBS" 14636 LIBS="$PTHREAD_LIBS $LIBS" 14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 14638$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 14639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14640/* end confdefs.h. */ 14641 14642/* Override any GCC internal prototype to avoid an error. 14643 Use char because int might match the return type of a GCC 14644 builtin and then its argument prototype would still apply. */ 14645#ifdef __cplusplus 14646extern "C" 14647#endif 14648char pthread_join (); 14649int 14650main () 14651{ 14652return pthread_join (); 14653 ; 14654 return 0; 14655} 14656_ACEOF 14657if ac_fn_c_try_link "$LINENO"; then : 14658 acx_pthread_ok=yes 14659fi 14660rm -f core conftest.err conftest.$ac_objext \ 14661 conftest$ac_exeext conftest.$ac_ext 14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 14663$as_echo "$acx_pthread_ok" >&6; } 14664 if test x"$acx_pthread_ok" = xno; then 14665 PTHREAD_LIBS="" 14666 PTHREAD_CFLAGS="" 14667 fi 14668 LIBS="$save_LIBS" 14669 CFLAGS="$save_CFLAGS" 14670fi 14671 14672# We must check for the threads library under a number of different 14673# names; the ordering is very important because some systems 14674# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 14675# libraries is broken (non-POSIX). 14676 14677# Create a list of thread flags to try. Items starting with a "-" are 14678# C compiler flags, and other items are library names, except for "none" 14679# which indicates that we try without any flags at all. 14680 14681acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt" 14682 14683# The ordering *is* (sometimes) important. Some notes on the 14684# individual items follow: 14685 14686# pthreads: AIX (must check this before -lpthread) 14687# none: in case threads are in libc; should be tried before -Kthread and 14688# other compiler flags to prevent continual compiler warnings 14689# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 14690# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 14691# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 14692# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 14693# -pthreads: Solaris/gcc 14694# -mthreads: Mingw32/gcc, Lynx/gcc 14695# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 14696# doesn't hurt to check since this sometimes defines pthreads too; 14697# also defines -D_REENTRANT) 14698# pthread: Linux, etcetera 14699# --thread-safe: KAI C++ 14700 14701case "${host_cpu}-${host_os}" in 14702 *solaris*) 14703 14704 # On Solaris (at least, for some versions), libc contains stubbed 14705 # (non-functional) versions of the pthreads routines, so link-based 14706 # tests will erroneously succeed. (We need to link with -pthread or 14707 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 14708 # a function called by this macro, so we could check for that, but 14709 # who knows whether they'll stub that too in a future libc.) So, 14710 # we'll just look for -pthreads and -lpthread first: 14711 14712 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags" 14713 ;; 14714 14715 *linux*|*k*bsd*) 14716 14717 # achu 14718 # 14719 # libipmiconsole is a library, not an application, so move pthread 14720 # earlier to override just building with the -pthread # flag 14721 # 14722 acx_pthread_flags="pthreads pthread none -Kthread -kthread lthread -pthread -pthreads -mthreads --thread-safe -mt" 14723 ;; 14724esac 14725 14726if test x"$acx_pthread_ok" = xno; then 14727for flag in $acx_pthread_flags; do 14728 14729 case $flag in 14730 none) 14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 14732$as_echo_n "checking whether pthreads work without any flags... " >&6; } 14733 ;; 14734 14735 -*) 14736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 14737$as_echo_n "checking whether pthreads work with $flag... " >&6; } 14738 PTHREAD_CFLAGS="$flag" 14739 ;; 14740 14741 *) 14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 14743$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 14744 PTHREAD_LIBS="-l$flag" 14745 ;; 14746 esac 14747 14748 save_LIBS="$LIBS" 14749 save_CFLAGS="$CFLAGS" 14750 LIBS="$PTHREAD_LIBS $LIBS" 14751 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 14752 14753 # Check for various functions. We must include pthread.h, 14754 # since some functions may be macros. (On the Sequent, we 14755 # need a special flag -Kthread to make this header compile.) 14756 # We check for pthread_join because it is in -lpthread on IRIX 14757 # while pthread_create is in libc. We check for pthread_attr_init 14758 # due to DEC craziness with -lpthreads. We check for 14759 # pthread_cleanup_push because it is one of the few pthread 14760 # functions on Solaris that doesn't have a non-functional libc stub. 14761 # We try pthread_create on general principles. 14762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14763/* end confdefs.h. */ 14764#include <pthread.h> 14765int 14766main () 14767{ 14768pthread_t th; pthread_join(th, 0); 14769 pthread_attr_init(0); pthread_cleanup_push(0, 0); 14770 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 14771 ; 14772 return 0; 14773} 14774_ACEOF 14775if ac_fn_c_try_link "$LINENO"; then : 14776 acx_pthread_ok=yes 14777fi 14778rm -f core conftest.err conftest.$ac_objext \ 14779 conftest$ac_exeext conftest.$ac_ext 14780 14781 LIBS="$save_LIBS" 14782 CFLAGS="$save_CFLAGS" 14783 14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 14785$as_echo "$acx_pthread_ok" >&6; } 14786 if test "x$acx_pthread_ok" = xyes; then 14787 break; 14788 fi 14789 14790 PTHREAD_LIBS="" 14791 PTHREAD_CFLAGS="" 14792done 14793fi 14794 14795# Various other checks: 14796if test "x$acx_pthread_ok" = xyes; then 14797 save_LIBS="$LIBS" 14798 LIBS="$PTHREAD_LIBS $LIBS" 14799 save_CFLAGS="$CFLAGS" 14800 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 14801 14802 # Detect AIX lossage: threads are created detached by default 14803 # and the JOINABLE attribute has a nonstandard name (UNDETACHED). 14804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 14805$as_echo_n "checking for joinable pthread attribute... " >&6; } 14806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14807/* end confdefs.h. */ 14808#include <pthread.h> 14809int 14810main () 14811{ 14812int attr=PTHREAD_CREATE_JOINABLE; 14813 ; 14814 return 0; 14815} 14816_ACEOF 14817if ac_fn_c_try_link "$LINENO"; then : 14818 ok=PTHREAD_CREATE_JOINABLE 14819else 14820 ok=unknown 14821fi 14822rm -f core conftest.err conftest.$ac_objext \ 14823 conftest$ac_exeext conftest.$ac_ext 14824 if test x"$ok" = xunknown; then 14825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14826/* end confdefs.h. */ 14827#include <pthread.h> 14828int 14829main () 14830{ 14831int attr=PTHREAD_CREATE_UNDETACHED; 14832 ; 14833 return 0; 14834} 14835_ACEOF 14836if ac_fn_c_try_link "$LINENO"; then : 14837 ok=PTHREAD_CREATE_UNDETACHED 14838else 14839 ok=unknown 14840fi 14841rm -f core conftest.err conftest.$ac_objext \ 14842 conftest$ac_exeext conftest.$ac_ext 14843 fi 14844 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then 14845 14846$as_echo "#define PTHREAD_CREATE_JOINABLE \$ok" >>confdefs.h 14847 14848 fi 14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ok}" >&5 14850$as_echo "${ok}" >&6; } 14851 if test x"$ok" = xunknown; then 14852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: we do not know how to create joinable pthreads" >&5 14853$as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;} 14854 fi 14855 14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 14857$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 14858 flag=no 14859 case "${host_cpu}-${host_os}" in 14860 *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";; 14861 *solaris* | alpha*-osf*) flag="-D_REENTRANT";; 14862 esac 14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 14864$as_echo "${flag}" >&6; } 14865 if test "x$flag" != xno; then 14866 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 14867 fi 14868 14869 LIBS="$save_LIBS" 14870 CFLAGS="$save_CFLAGS" 14871 14872 # More AIX lossage: must compile with cc_r 14873 # Extract the first word of "cc_r", so it can be a program name with args. 14874set dummy cc_r; ac_word=$2 14875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14876$as_echo_n "checking for $ac_word... " >&6; } 14877if ${ac_cv_prog_PTHREAD_CC+:} false; then : 14878 $as_echo_n "(cached) " >&6 14879else 14880 if test -n "$PTHREAD_CC"; then 14881 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 14882else 14883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14884for as_dir in $PATH 14885do 14886 IFS=$as_save_IFS 14887 test -z "$as_dir" && as_dir=. 14888 for ac_exec_ext in '' $ac_executable_extensions; do 14889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14890 ac_cv_prog_PTHREAD_CC="cc_r" 14891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14892 break 2 14893 fi 14894done 14895 done 14896IFS=$as_save_IFS 14897 14898 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}" 14899fi 14900fi 14901PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 14902if test -n "$PTHREAD_CC"; then 14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 14904$as_echo "$PTHREAD_CC" >&6; } 14905else 14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14907$as_echo "no" >&6; } 14908fi 14909 14910 14911else 14912 PTHREAD_CC="$CC" 14913fi 14914 14915 14916 14917 14918 14919# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 14920if test x"$acx_pthread_ok" = xyes; then 14921 14922$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 14923 14924 : 14925else 14926 acx_pthread_ok=no 14927 as_fn_error $? "Posix threads required to build libipmiconsole" "$LINENO" 5 14928fi 14929ac_ext=c 14930ac_cpp='$CPP $CPPFLAGS' 14931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14933ac_compiler_gnu=$ac_cv_c_compiler_gnu 14934 14935 14936 14937 14938FREEIPMI_SYSCONFDIR=${sysconfdir} 14939 14940 14941 14942 # Must expand nested unquoting 14943 FREEIPMI_CONFIG_FILE_DEFAULT_TMP1="`eval echo $FREEIPMI_SYSCONFDIR/freeipmi.conf.sample`" 14944 FREEIPMI_CONFIG_FILE_DEFAULT_TMP2="`echo $FREEIPMI_CONFIG_FILE_DEFAULT_TMP1 | sed 's/^NONE/$ac_default_prefix/'`" 14945 FREEIPMI_CONFIG_FILE_DEFAULT="`eval echo $FREEIPMI_CONFIG_FILE_DEFAULT_TMP2`" 14946 14947 14948cat >>confdefs.h <<_ACEOF 14949#define FREEIPMI_CONFIG_FILE_DEFAULT "$FREEIPMI_CONFIG_FILE_DEFAULT" 14950_ACEOF 14951 14952 14953 14954# Must expand nested unquoting 14955# Legacy - don't store in /etc/freeipmi/ 14956 FREEIPMI_CONFIG_FILE_LEGACY_TMP1="`eval echo ${sysconfdir}/freeipmi.conf`" 14957 FREEIPMI_CONFIG_FILE_LEGACY_TMP2="`echo $FREEIPMI_CONFIG_FILE_LEGACY_TMP1 | sed 's/^NONE/$ac_default_prefix/'`" 14958 FREEIPMI_CONFIG_FILE_LEGACY="`eval echo $FREEIPMI_CONFIG_FILE_LEGACY_TMP2`" 14959 14960 14961cat >>confdefs.h <<_ACEOF 14962#define FREEIPMI_CONFIG_FILE_LEGACY "$FREEIPMI_CONFIG_FILE_LEGACY" 14963_ACEOF 14964 14965 14966 14967# Must expand nested unquoting 14968 IPMI_MONITORING_SDR_CACHE_DIR_TMP1="`eval echo ${localstatedir}/cache/ipmimonitoringsdrcache`" 14969 IPMI_MONITORING_SDR_CACHE_DIR_TMP2="`echo $IPMI_MONITORING_SDR_CACHE_DIR_TMP1 | sed 's/^NONE/$ac_default_prefix/'`" 14970 IPMI_MONITORING_SDR_CACHE_DIR="`eval echo $IPMI_MONITORING_SDR_CACHE_DIR_TMP2`" 14971 14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipmi_monitoring sdr cache dir default path" >&5 14973$as_echo_n "checking for ipmi_monitoring sdr cache dir default path... " >&6; } 14974 14975# Check whether --with-ipmi-monitoring-sdr-cache-dir was given. 14976if test "${with_ipmi_monitoring_sdr_cache_dir+set}" = set; then : 14977 withval=$with_ipmi_monitoring_sdr_cache_dir; case "$withval" in 14978 no) ;; 14979 yes) ;; 14980 *) IPMI_MONITORING_SDR_CACHE_DIR=$withval 14981 esac 14982 14983 14984fi 14985 14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPMI_MONITORING_SDR_CACHE_DIR" >&5 14987$as_echo "$IPMI_MONITORING_SDR_CACHE_DIR" >&6; } 14988 14989 14990cat >>confdefs.h <<_ACEOF 14991#define IPMI_MONITORING_SDR_CACHE_DIR "$IPMI_MONITORING_SDR_CACHE_DIR" 14992_ACEOF 14993 14994 14995 14996 14997# Must expand nested unquoting 14998# Legacy - don't store in /etc/freeipmi/ 14999 IPMI_MONITORING_SENSOR_CONFIG_FILE_LEGACY_TMP1="`eval echo ${sysconfdir}/ipmi_monitoring_sensors.conf`" 15000 IPMI_MONITORING_SENSOR_CONFIG_FILE_LEGACY_TMP2="`echo $IPMI_MONITORING_SENSOR_CONFIG_FILE_LEGACY_TMP1 | sed 's/^NONE/$ac_default_prefix/'`" 15001 IPMI_MONITORING_SENSOR_CONFIG_FILE_LEGACY="`eval echo $IPMI_MONITORING_SENSOR_CONFIG_FILE_LEGACY_TMP2`" 15002 15003 15004cat >>confdefs.h <<_ACEOF 15005#define IPMI_MONITORING_SENSOR_CONFIG_FILE_LEGACY "$IPMI_MONITORING_SENSOR_CONFIG_FILE_LEGACY" 15006_ACEOF 15007 15008 15009 15010 15011# Must expand nested unquoting 15012# Legacy - don't store in /etc/freeipmi/ 15013 IPMIPOWER_CONFIG_FILE_LEGACY_TMP1="`eval echo ${sysconfdir}/ipmipower.conf`" 15014 IPMIPOWER_CONFIG_FILE_LEGACY_TMP2="`echo $IPMIPOWER_CONFIG_FILE_LEGACY_TMP1 | sed 's/^NONE/$ac_default_prefix/'`" 15015 IPMIPOWER_CONFIG_FILE_LEGACY="`eval echo $IPMIPOWER_CONFIG_FILE_LEGACY_TMP2`" 15016 15017 15018cat >>confdefs.h <<_ACEOF 15019#define IPMIPOWER_CONFIG_FILE_LEGACY "$IPMIPOWER_CONFIG_FILE_LEGACY" 15020_ACEOF 15021 15022 15023 15024 15025# Must expand nested unquoting 15026# Legacy - don't store in /etc/freeipmi/ 15027 IPMICONSOLE_CONFIG_FILE_LEGACY_TMP1="`eval echo ${sysconfdir}/ipmiconsole.conf`" 15028 IPMICONSOLE_CONFIG_FILE_LEGACY_TMP2="`echo $IPMICONSOLE_CONFIG_FILE_LEGACY_TMP1 | sed 's/^NONE/$ac_default_prefix/'`" 15029 IPMICONSOLE_CONFIG_FILE_LEGACY="`eval echo $IPMICONSOLE_CONFIG_FILE_LEGACY_TMP2`" 15030 15031 15032cat >>confdefs.h <<_ACEOF 15033#define IPMICONSOLE_CONFIG_FILE_LEGACY "$IPMICONSOLE_CONFIG_FILE_LEGACY" 15034_ACEOF 15035 15036 15037 15038 15039# Must expand nested unquoting 15040 INTERPRET_SENSOR_CONFIG_FILE_DEFAULT_TMP1="`eval echo $FREEIPMI_SYSCONFDIR/freeipmi_interpret_sensor.conf`" 15041 INTERPRET_SENSOR_CONFIG_FILE_DEFAULT_TMP2="`echo $INTERPRET_SENSOR_CONFIG_FILE_DEFAULT_TMP1 | sed 's/^NONE/$ac_default_prefix/'`" 15042 INTERPRET_SENSOR_CONFIG_FILE_DEFAULT="`eval echo $INTERPRET_SENSOR_CONFIG_FILE_DEFAULT_TMP2`" 15043 15044 15045cat >>confdefs.h <<_ACEOF 15046#define INTERPRET_SENSOR_CONFIG_FILE_DEFAULT "$INTERPRET_SENSOR_CONFIG_FILE_DEFAULT" 15047_ACEOF 15048 15049 15050 15051 15052# Must expand nested unquoting 15053 INTERPRET_SEL_CONFIG_FILE_DEFAULT_TMP1="`eval echo $FREEIPMI_SYSCONFDIR/freeipmi_interpret_sel.conf`" 15054 INTERPRET_SEL_CONFIG_FILE_DEFAULT_TMP2="`echo $INTERPRET_SEL_CONFIG_FILE_DEFAULT_TMP1 | sed 's/^NONE/$ac_default_prefix/'`" 15055 INTERPRET_SEL_CONFIG_FILE_DEFAULT="`eval echo $INTERPRET_SEL_CONFIG_FILE_DEFAULT_TMP2`" 15056 15057 15058cat >>confdefs.h <<_ACEOF 15059#define INTERPRET_SEL_CONFIG_FILE_DEFAULT "$INTERPRET_SEL_CONFIG_FILE_DEFAULT" 15060_ACEOF 15061 15062 15063 15064 15065# Must expand nested unquoting 15066 IPMIDETECT_CONFIG_FILE_DEFAULT_TMP1="`eval echo $FREEIPMI_SYSCONFDIR/ipmidetect.conf`" 15067 IPMIDETECT_CONFIG_FILE_DEFAULT_TMP2="`echo $IPMIDETECT_CONFIG_FILE_DEFAULT_TMP1 | sed 's/^NONE/$ac_default_prefix/'`" 15068 IPMIDETECT_CONFIG_FILE_DEFAULT="`eval echo $IPMIDETECT_CONFIG_FILE_DEFAULT_TMP2`" 15069 15070 15071cat >>confdefs.h <<_ACEOF 15072#define IPMIDETECT_CONFIG_FILE_DEFAULT "$IPMIDETECT_CONFIG_FILE_DEFAULT" 15073_ACEOF 15074 15075 15076 15077# Must expand nested unquoting 15078# Legacy - don't store in /etc/freeipmi/ 15079 IPMIDETECT_CONFIG_FILE_LEGACY_TMP1="`eval echo ${sysconfdir}/ipmidetect.conf`" 15080 IPMIDETECT_CONFIG_FILE_LEGACY_TMP2="`echo $IPMIDETECT_CONFIG_FILE_LEGACY_TMP1 | sed 's/^NONE/$ac_default_prefix/'`" 15081 IPMIDETECT_CONFIG_FILE_LEGACY="`eval echo $IPMIDETECT_CONFIG_FILE_LEGACY_TMP2`" 15082 15083 15084cat >>confdefs.h <<_ACEOF 15085#define IPMIDETECT_CONFIG_FILE_LEGACY "$IPMIDETECT_CONFIG_FILE_LEGACY" 15086_ACEOF 15087 15088 15089 15090# Must expand nested unquoting 15091 IPMIDETECTD_CONFIG_FILE_DEFAULT_TMP1="`eval echo $FREEIPMI_SYSCONFDIR/ipmidetectd.conf`" 15092 IPMIDETECTD_CONFIG_FILE_DEFAULT_TMP2="`echo $IPMIDETECTD_CONFIG_FILE_DEFAULT_TMP1 | sed 's/^NONE/$ac_default_prefix/'`" 15093 IPMIDETECTD_CONFIG_FILE_DEFAULT="`eval echo $IPMIDETECTD_CONFIG_FILE_DEFAULT_TMP2`" 15094 15095 15096cat >>confdefs.h <<_ACEOF 15097#define IPMIDETECTD_CONFIG_FILE_DEFAULT "$IPMIDETECTD_CONFIG_FILE_DEFAULT" 15098_ACEOF 15099 15100 15101 15102# Must expand nested unquoting 15103# Legacy - don't store in /etc/freeipmi/ 15104 IPMIDETECTD_CONFIG_FILE_LEGACY_TMP1="`eval echo ${sysconfdir}/ipmidetectd.conf`" 15105 IPMIDETECTD_CONFIG_FILE_LEGACY_TMP2="`echo $IPMIDETECTD_CONFIG_FILE_LEGACY_TMP1 | sed 's/^NONE/$ac_default_prefix/'`" 15106 IPMIDETECTD_CONFIG_FILE_LEGACY="`eval echo $IPMIDETECTD_CONFIG_FILE_LEGACY_TMP2`" 15107 15108 15109cat >>confdefs.h <<_ACEOF 15110#define IPMIDETECTD_CONFIG_FILE_LEGACY "$IPMIDETECTD_CONFIG_FILE_LEGACY" 15111_ACEOF 15112 15113 15114 15115# Must expand nested unquoting 15116 IPMISELD_CONFIG_FILE_DEFAULT_TMP1="`eval echo $FREEIPMI_SYSCONFDIR/ipmiseld.conf`" 15117 IPMISELD_CONFIG_FILE_DEFAULT_TMP2="`echo $IPMISELD_CONFIG_FILE_DEFAULT_TMP1 | sed 's/^NONE/$ac_default_prefix/'`" 15118 IPMISELD_CONFIG_FILE_DEFAULT="`eval echo $IPMISELD_CONFIG_FILE_DEFAULT_TMP2`" 15119 15120 15121cat >>confdefs.h <<_ACEOF 15122#define IPMISELD_CONFIG_FILE_DEFAULT "$IPMISELD_CONFIG_FILE_DEFAULT" 15123_ACEOF 15124 15125 15126 15127 15128# Must expand nested unquoting 15129 IPMISELD_CACHE_DIRECTORY_TMP1="`eval echo ${localstatedir}/cache/ipmiseld/`" 15130 IPMISELD_CACHE_DIRECTORY_TMP2="`echo $IPMISELD_CACHE_DIRECTORY_TMP1 | sed 's/^NONE/$ac_default_prefix/'`" 15131 IPMISELD_CACHE_DIRECTORY="`eval echo $IPMISELD_CACHE_DIRECTORY_TMP2`" 15132 15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipmiseld cache dir default path" >&5 15134$as_echo_n "checking for ipmiseld cache dir default path... " >&6; } 15135 15136# Check whether --with-ipmiseld-cache-dir was given. 15137if test "${with_ipmiseld_cache_dir+set}" = set; then : 15138 withval=$with_ipmiseld_cache_dir; case "$withval" in 15139 no) ;; 15140 yes) ;; 15141 *) IPMISELD_CACHE_DIRECTORY=$withval 15142 esac 15143 15144 15145fi 15146 15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPMISELD_CACHE_DIRECTORY" >&5 15148$as_echo "$IPMISELD_CACHE_DIRECTORY" >&6; } 15149 15150 15151cat >>confdefs.h <<_ACEOF 15152#define IPMISELD_CACHE_DIRECTORY "$IPMISELD_CACHE_DIRECTORY" 15153_ACEOF 15154 15155 15156 15157 15158# Must expand nested unquoting 15159 LIBIPMICONSOLE_CONFIG_FILE_DEFAULT_TMP1="`eval echo $FREEIPMI_SYSCONFDIR/libipmiconsole.conf`" 15160 LIBIPMICONSOLE_CONFIG_FILE_DEFAULT_TMP2="`echo $LIBIPMICONSOLE_CONFIG_FILE_DEFAULT_TMP1 | sed 's/^NONE/$ac_default_prefix/'`" 15161 LIBIPMICONSOLE_CONFIG_FILE_DEFAULT="`eval echo $LIBIPMICONSOLE_CONFIG_FILE_DEFAULT_TMP2`" 15162 15163 15164cat >>confdefs.h <<_ACEOF 15165#define LIBIPMICONSOLE_CONFIG_FILE_DEFAULT "$LIBIPMICONSOLE_CONFIG_FILE_DEFAULT" 15166_ACEOF 15167 15168 15169 15170 15171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tools should check for root before executing in-band IPMI communication" >&5 15172$as_echo_n "checking whether tools should check for root before executing in-band IPMI communication... " >&6; } 15173 15174# Check whether --with-dont-check-for-root was given. 15175if test "${with_dont_check_for_root+set}" = set; then : 15176 withval=$with_dont_check_for_root; case "$withval" in 15177 yes) ac_dont_check_for_root=yes ;; 15178 no) ac_dont_check_for_root=no ;; 15179 *) ac_dont_check_for_root=yes ;; 15180 esac 15181 15182 15183fi 15184 15185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_dont_check_for_root=no}" >&5 15186$as_echo "${ac_dont_check_for_root=no}" >&6; } 15187 15188 if test "$ac_dont_check_for_root" = "yes"; then 15189 15190$as_echo "#define IPMI_DONT_CHECK_FOR_ROOT 1" >>confdefs.h 15191 15192 fi 15193 15194 15195ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h> 15196" 15197if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then : 15198 ac_have_decl=1 15199else 15200 ac_have_decl=0 15201fi 15202 15203cat >>confdefs.h <<_ACEOF 15204#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl 15205_ACEOF 15206ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h> 15207" 15208if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then : 15209 ac_have_decl=1 15210else 15211 ac_have_decl=0 15212fi 15213 15214cat >>confdefs.h <<_ACEOF 15215#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl 15216_ACEOF 15217 15218 15219 15220 15221 15222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device support" >&5 15223$as_echo_n "checking for random device support... " >&6; } 15224 15225# Check whether --with-random-device was given. 15226if test "${with_random_device+set}" = set; then : 15227 withval=$with_random_device; case "$withval" in 15228 no) ac_with_random_device=no ;; 15229 yes) ac_with_random_device=yes ;; 15230 *) ac_with_random_device=yes ;; 15231 esac 15232 15233fi 15234 15235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_with_random_device=yes}" >&5 15236$as_echo "${ac_with_random_device=yes}" >&6; } 15237 15238if test x"${ac_with_random_device}" = xyes; then 15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5 15240$as_echo_n "checking for /dev/urandom... " >&6; } 15241if ${ac_cv_file__dev_urandom+:} false; then : 15242 $as_echo_n "(cached) " >&6 15243else 15244 test "$cross_compiling" = yes && 15245 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 15246if test -r "/dev/urandom"; then 15247 ac_cv_file__dev_urandom=yes 15248else 15249 ac_cv_file__dev_urandom=no 15250fi 15251fi 15252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5 15253$as_echo "$ac_cv_file__dev_urandom" >&6; } 15254if test "x$ac_cv_file__dev_urandom" = xyes; then : 15255 15256$as_echo "#define HAVE_DEVURANDOM 1" >>confdefs.h 15257 15258fi 15259 15260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5 15261$as_echo_n "checking for /dev/random... " >&6; } 15262if ${ac_cv_file__dev_random+:} false; then : 15263 $as_echo_n "(cached) " >&6 15264else 15265 test "$cross_compiling" = yes && 15266 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 15267if test -r "/dev/random"; then 15268 ac_cv_file__dev_random=yes 15269else 15270 ac_cv_file__dev_random=no 15271fi 15272fi 15273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5 15274$as_echo "$ac_cv_file__dev_random" >&6; } 15275if test "x$ac_cv_file__dev_random" = xyes; then : 15276 15277$as_echo "#define HAVE_DEVRANDOM 1" >>confdefs.h 15278 15279fi 15280 15281fi 15282 15283 15284 15285pkgconfigdir='${libdir}/pkgconfig' 15286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install pkg-config *.pc files" >&5 15287$as_echo_n "checking whether to install pkg-config *.pc files... " >&6; } 15288 15289# Check whether --with-pkgconfig-dir was given. 15290if test "${with_pkgconfig_dir+set}" = set; then : 15291 withval=$with_pkgconfig_dir; 15292 case "${withval}" in 15293 yes|auto) 15294 ;; 15295 no) 15296 pkgconfigdir="" 15297 ;; 15298 *) 15299 pkgconfigdir="${withval}" 15300 ;; 15301 esac 15302 15303fi 15304 15305if test -n "${pkgconfigdir}"; then 15306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${pkgconfigdir}" >&5 15307$as_echo "using ${pkgconfigdir}" >&6; } 15308else 15309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15310$as_echo "no" >&6; } 15311fi 15312 if test -n "${pkgconfigdir}"; then 15313 WITH_PKG_CONFIG_TRUE= 15314 WITH_PKG_CONFIG_FALSE='#' 15315else 15316 WITH_PKG_CONFIG_TRUE='#' 15317 WITH_PKG_CONFIG_FALSE= 15318fi 15319 15320 15321 15322cat >confcache <<\_ACEOF 15323# This file is a shell script that caches the results of configure 15324# tests run on this system so they can be shared between configure 15325# scripts and configure runs, see configure's option --config-cache. 15326# It is not useful on other systems. If it contains results you don't 15327# want to keep, you may remove or edit it. 15328# 15329# config.status only pays attention to the cache file if you give it 15330# the --recheck option to rerun configure. 15331# 15332# `ac_cv_env_foo' variables (set or unset) will be overridden when 15333# loading this file, other *unset* `ac_cv_foo' will be assigned the 15334# following values. 15335 15336_ACEOF 15337 15338# The following way of writing the cache mishandles newlines in values, 15339# but we know of no workaround that is simple, portable, and efficient. 15340# So, we kill variables containing newlines. 15341# Ultrix sh set writes to stderr and can't be redirected directly, 15342# and sets the high bit in the cache file unless we assign to the vars. 15343( 15344 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15345 eval ac_val=\$$ac_var 15346 case $ac_val in #( 15347 *${as_nl}*) 15348 case $ac_var in #( 15349 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15350$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15351 esac 15352 case $ac_var in #( 15353 _ | IFS | as_nl) ;; #( 15354 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15355 *) { eval $ac_var=; unset $ac_var;} ;; 15356 esac ;; 15357 esac 15358 done 15359 15360 (set) 2>&1 | 15361 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15362 *${as_nl}ac_space=\ *) 15363 # `set' does not quote correctly, so add quotes: double-quote 15364 # substitution turns \\\\ into \\, and sed turns \\ into \. 15365 sed -n \ 15366 "s/'/'\\\\''/g; 15367 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15368 ;; #( 15369 *) 15370 # `set' quotes correctly as required by POSIX, so do not add quotes. 15371 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15372 ;; 15373 esac | 15374 sort 15375) | 15376 sed ' 15377 /^ac_cv_env_/b end 15378 t clear 15379 :clear 15380 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15381 t end 15382 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15383 :end' >>confcache 15384if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15385 if test -w "$cache_file"; then 15386 if test "x$cache_file" != "x/dev/null"; then 15387 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15388$as_echo "$as_me: updating cache $cache_file" >&6;} 15389 if test ! -f "$cache_file" || test -h "$cache_file"; then 15390 cat confcache >"$cache_file" 15391 else 15392 case $cache_file in #( 15393 */* | ?:*) 15394 mv -f confcache "$cache_file"$$ && 15395 mv -f "$cache_file"$$ "$cache_file" ;; #( 15396 *) 15397 mv -f confcache "$cache_file" ;; 15398 esac 15399 fi 15400 fi 15401 else 15402 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15403$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15404 fi 15405fi 15406rm -f confcache 15407 15408test "x$prefix" = xNONE && prefix=$ac_default_prefix 15409# Let make expand exec_prefix. 15410test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15411 15412DEFS=-DHAVE_CONFIG_H 15413 15414ac_libobjs= 15415ac_ltlibobjs= 15416U= 15417for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15418 # 1. Remove the extension, and $U if already installed. 15419 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15420 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15421 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15422 # will be set to the directory where LIBOBJS objects are built. 15423 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15424 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15425done 15426LIBOBJS=$ac_libobjs 15427 15428LTLIBOBJS=$ac_ltlibobjs 15429 15430 15431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 15432$as_echo_n "checking that generated files are newer than configure... " >&6; } 15433 if test -n "$am_sleep_pid"; then 15434 # Hide warnings about reused PIDs. 15435 wait $am_sleep_pid 2>/dev/null 15436 fi 15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 15438$as_echo "done" >&6; } 15439 if test -n "$EXEEXT"; then 15440 am__EXEEXT_TRUE= 15441 am__EXEEXT_FALSE='#' 15442else 15443 am__EXEEXT_TRUE='#' 15444 am__EXEEXT_FALSE= 15445fi 15446 15447if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15448 as_fn_error $? "conditional \"AMDEP\" was never defined. 15449Usually this means the macro was only invoked conditionally." "$LINENO" 5 15450fi 15451if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15452 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15453Usually this means the macro was only invoked conditionally." "$LINENO" 5 15454fi 15455if test -z "${WITH_GNU_LD_TRUE}" && test -z "${WITH_GNU_LD_FALSE}"; then 15456 as_fn_error $? "conditional \"WITH_GNU_LD\" was never defined. 15457Usually this means the macro was only invoked conditionally." "$LINENO" 5 15458fi 15459if test -z "${HAVE_SYSTEMD_TRUE}" && test -z "${HAVE_SYSTEMD_FALSE}"; then 15460 as_fn_error $? "conditional \"HAVE_SYSTEMD\" was never defined. 15461Usually this means the macro was only invoked conditionally." "$LINENO" 5 15462fi 15463 15464if test -z "${WITH_FREEIPMI_ARGP_TRUE}" && test -z "${WITH_FREEIPMI_ARGP_FALSE}"; then 15465 as_fn_error $? "conditional \"WITH_FREEIPMI_ARGP\" was never defined. 15466Usually this means the macro was only invoked conditionally." "$LINENO" 5 15467fi 15468if test -z "${WITH_PKG_CONFIG_TRUE}" && test -z "${WITH_PKG_CONFIG_FALSE}"; then 15469 as_fn_error $? "conditional \"WITH_PKG_CONFIG\" was never defined. 15470Usually this means the macro was only invoked conditionally." "$LINENO" 5 15471fi 15472 15473: "${CONFIG_STATUS=./config.status}" 15474ac_write_fail=0 15475ac_clean_files_save=$ac_clean_files 15476ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15477{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15478$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15479as_write_fail=0 15480cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15481#! $SHELL 15482# Generated by $as_me. 15483# Run this file to recreate the current configuration. 15484# Compiler output produced by configure, useful for debugging 15485# configure, is in config.log if it exists. 15486 15487debug=false 15488ac_cs_recheck=false 15489ac_cs_silent=false 15490 15491SHELL=\${CONFIG_SHELL-$SHELL} 15492export SHELL 15493_ASEOF 15494cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15495## -------------------- ## 15496## M4sh Initialization. ## 15497## -------------------- ## 15498 15499# Be more Bourne compatible 15500DUALCASE=1; export DUALCASE # for MKS sh 15501if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15502 emulate sh 15503 NULLCMD=: 15504 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15505 # is contrary to our usage. Disable this feature. 15506 alias -g '${1+"$@"}'='"$@"' 15507 setopt NO_GLOB_SUBST 15508else 15509 case `(set -o) 2>/dev/null` in #( 15510 *posix*) : 15511 set -o posix ;; #( 15512 *) : 15513 ;; 15514esac 15515fi 15516 15517 15518as_nl=' 15519' 15520export as_nl 15521# Printing a long string crashes Solaris 7 /usr/bin/printf. 15522as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15523as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15524as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15525# Prefer a ksh shell builtin over an external printf program on Solaris, 15526# but without wasting forks for bash or zsh. 15527if test -z "$BASH_VERSION$ZSH_VERSION" \ 15528 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15529 as_echo='print -r --' 15530 as_echo_n='print -rn --' 15531elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15532 as_echo='printf %s\n' 15533 as_echo_n='printf %s' 15534else 15535 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15536 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15537 as_echo_n='/usr/ucb/echo -n' 15538 else 15539 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15540 as_echo_n_body='eval 15541 arg=$1; 15542 case $arg in #( 15543 *"$as_nl"*) 15544 expr "X$arg" : "X\\(.*\\)$as_nl"; 15545 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15546 esac; 15547 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15548 ' 15549 export as_echo_n_body 15550 as_echo_n='sh -c $as_echo_n_body as_echo' 15551 fi 15552 export as_echo_body 15553 as_echo='sh -c $as_echo_body as_echo' 15554fi 15555 15556# The user is always right. 15557if test "${PATH_SEPARATOR+set}" != set; then 15558 PATH_SEPARATOR=: 15559 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15560 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15561 PATH_SEPARATOR=';' 15562 } 15563fi 15564 15565 15566# IFS 15567# We need space, tab and new line, in precisely that order. Quoting is 15568# there to prevent editors from complaining about space-tab. 15569# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15570# splitting by setting IFS to empty value.) 15571IFS=" "" $as_nl" 15572 15573# Find who we are. Look in the path if we contain no directory separator. 15574as_myself= 15575case $0 in #(( 15576 *[\\/]* ) as_myself=$0 ;; 15577 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15578for as_dir in $PATH 15579do 15580 IFS=$as_save_IFS 15581 test -z "$as_dir" && as_dir=. 15582 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15583 done 15584IFS=$as_save_IFS 15585 15586 ;; 15587esac 15588# We did not find ourselves, most probably we were run as `sh COMMAND' 15589# in which case we are not to be found in the path. 15590if test "x$as_myself" = x; then 15591 as_myself=$0 15592fi 15593if test ! -f "$as_myself"; then 15594 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15595 exit 1 15596fi 15597 15598# Unset variables that we do not need and which cause bugs (e.g. in 15599# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15600# suppresses any "Segmentation fault" message there. '((' could 15601# trigger a bug in pdksh 5.2.14. 15602for as_var in BASH_ENV ENV MAIL MAILPATH 15603do eval test x\${$as_var+set} = xset \ 15604 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15605done 15606PS1='$ ' 15607PS2='> ' 15608PS4='+ ' 15609 15610# NLS nuisances. 15611LC_ALL=C 15612export LC_ALL 15613LANGUAGE=C 15614export LANGUAGE 15615 15616# CDPATH. 15617(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15618 15619 15620# as_fn_error STATUS ERROR [LINENO LOG_FD] 15621# ---------------------------------------- 15622# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15623# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15624# script with STATUS, using 1 if that was 0. 15625as_fn_error () 15626{ 15627 as_status=$1; test $as_status -eq 0 && as_status=1 15628 if test "$4"; then 15629 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15630 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15631 fi 15632 $as_echo "$as_me: error: $2" >&2 15633 as_fn_exit $as_status 15634} # as_fn_error 15635 15636 15637# as_fn_set_status STATUS 15638# ----------------------- 15639# Set $? to STATUS, without forking. 15640as_fn_set_status () 15641{ 15642 return $1 15643} # as_fn_set_status 15644 15645# as_fn_exit STATUS 15646# ----------------- 15647# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15648as_fn_exit () 15649{ 15650 set +e 15651 as_fn_set_status $1 15652 exit $1 15653} # as_fn_exit 15654 15655# as_fn_unset VAR 15656# --------------- 15657# Portably unset VAR. 15658as_fn_unset () 15659{ 15660 { eval $1=; unset $1;} 15661} 15662as_unset=as_fn_unset 15663# as_fn_append VAR VALUE 15664# ---------------------- 15665# Append the text in VALUE to the end of the definition contained in VAR. Take 15666# advantage of any shell optimizations that allow amortized linear growth over 15667# repeated appends, instead of the typical quadratic growth present in naive 15668# implementations. 15669if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15670 eval 'as_fn_append () 15671 { 15672 eval $1+=\$2 15673 }' 15674else 15675 as_fn_append () 15676 { 15677 eval $1=\$$1\$2 15678 } 15679fi # as_fn_append 15680 15681# as_fn_arith ARG... 15682# ------------------ 15683# Perform arithmetic evaluation on the ARGs, and store the result in the 15684# global $as_val. Take advantage of shells that can avoid forks. The arguments 15685# must be portable across $(()) and expr. 15686if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15687 eval 'as_fn_arith () 15688 { 15689 as_val=$(( $* )) 15690 }' 15691else 15692 as_fn_arith () 15693 { 15694 as_val=`expr "$@" || test $? -eq 1` 15695 } 15696fi # as_fn_arith 15697 15698 15699if expr a : '\(a\)' >/dev/null 2>&1 && 15700 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15701 as_expr=expr 15702else 15703 as_expr=false 15704fi 15705 15706if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15707 as_basename=basename 15708else 15709 as_basename=false 15710fi 15711 15712if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15713 as_dirname=dirname 15714else 15715 as_dirname=false 15716fi 15717 15718as_me=`$as_basename -- "$0" || 15719$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15720 X"$0" : 'X\(//\)$' \| \ 15721 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15722$as_echo X/"$0" | 15723 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15724 s//\1/ 15725 q 15726 } 15727 /^X\/\(\/\/\)$/{ 15728 s//\1/ 15729 q 15730 } 15731 /^X\/\(\/\).*/{ 15732 s//\1/ 15733 q 15734 } 15735 s/.*/./; q'` 15736 15737# Avoid depending upon Character Ranges. 15738as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15739as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15740as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15741as_cr_digits='0123456789' 15742as_cr_alnum=$as_cr_Letters$as_cr_digits 15743 15744ECHO_C= ECHO_N= ECHO_T= 15745case `echo -n x` in #((((( 15746-n*) 15747 case `echo 'xy\c'` in 15748 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15749 xy) ECHO_C='\c';; 15750 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15751 ECHO_T=' ';; 15752 esac;; 15753*) 15754 ECHO_N='-n';; 15755esac 15756 15757rm -f conf$$ conf$$.exe conf$$.file 15758if test -d conf$$.dir; then 15759 rm -f conf$$.dir/conf$$.file 15760else 15761 rm -f conf$$.dir 15762 mkdir conf$$.dir 2>/dev/null 15763fi 15764if (echo >conf$$.file) 2>/dev/null; then 15765 if ln -s conf$$.file conf$$ 2>/dev/null; then 15766 as_ln_s='ln -s' 15767 # ... but there are two gotchas: 15768 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15769 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15770 # In both cases, we have to default to `cp -pR'. 15771 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15772 as_ln_s='cp -pR' 15773 elif ln conf$$.file conf$$ 2>/dev/null; then 15774 as_ln_s=ln 15775 else 15776 as_ln_s='cp -pR' 15777 fi 15778else 15779 as_ln_s='cp -pR' 15780fi 15781rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15782rmdir conf$$.dir 2>/dev/null 15783 15784 15785# as_fn_mkdir_p 15786# ------------- 15787# Create "$as_dir" as a directory, including parents if necessary. 15788as_fn_mkdir_p () 15789{ 15790 15791 case $as_dir in #( 15792 -*) as_dir=./$as_dir;; 15793 esac 15794 test -d "$as_dir" || eval $as_mkdir_p || { 15795 as_dirs= 15796 while :; do 15797 case $as_dir in #( 15798 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15799 *) as_qdir=$as_dir;; 15800 esac 15801 as_dirs="'$as_qdir' $as_dirs" 15802 as_dir=`$as_dirname -- "$as_dir" || 15803$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15804 X"$as_dir" : 'X\(//\)[^/]' \| \ 15805 X"$as_dir" : 'X\(//\)$' \| \ 15806 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15807$as_echo X"$as_dir" | 15808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15809 s//\1/ 15810 q 15811 } 15812 /^X\(\/\/\)[^/].*/{ 15813 s//\1/ 15814 q 15815 } 15816 /^X\(\/\/\)$/{ 15817 s//\1/ 15818 q 15819 } 15820 /^X\(\/\).*/{ 15821 s//\1/ 15822 q 15823 } 15824 s/.*/./; q'` 15825 test -d "$as_dir" && break 15826 done 15827 test -z "$as_dirs" || eval "mkdir $as_dirs" 15828 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15829 15830 15831} # as_fn_mkdir_p 15832if mkdir -p . 2>/dev/null; then 15833 as_mkdir_p='mkdir -p "$as_dir"' 15834else 15835 test -d ./-p && rmdir ./-p 15836 as_mkdir_p=false 15837fi 15838 15839 15840# as_fn_executable_p FILE 15841# ----------------------- 15842# Test if FILE is an executable regular file. 15843as_fn_executable_p () 15844{ 15845 test -f "$1" && test -x "$1" 15846} # as_fn_executable_p 15847as_test_x='test -x' 15848as_executable_p=as_fn_executable_p 15849 15850# Sed expression to map a string onto a valid CPP name. 15851as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15852 15853# Sed expression to map a string onto a valid variable name. 15854as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15855 15856 15857exec 6>&1 15858## ----------------------------------- ## 15859## Main body of $CONFIG_STATUS script. ## 15860## ----------------------------------- ## 15861_ASEOF 15862test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15863 15864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15865# Save the log message, to keep $0 and so on meaningful, and to 15866# report actual input values of CONFIG_FILES etc. instead of their 15867# values after options handling. 15868ac_log=" 15869This file was extended by freeipmi $as_me 1.6.8, which was 15870generated by GNU Autoconf 2.69. Invocation command line was 15871 15872 CONFIG_FILES = $CONFIG_FILES 15873 CONFIG_HEADERS = $CONFIG_HEADERS 15874 CONFIG_LINKS = $CONFIG_LINKS 15875 CONFIG_COMMANDS = $CONFIG_COMMANDS 15876 $ $0 $@ 15877 15878on `(hostname || uname -n) 2>/dev/null | sed 1q` 15879" 15880 15881_ACEOF 15882 15883case $ac_config_files in *" 15884"*) set x $ac_config_files; shift; ac_config_files=$*;; 15885esac 15886 15887case $ac_config_headers in *" 15888"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15889esac 15890 15891 15892cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15893# Files that config.status was made for. 15894config_files="$ac_config_files" 15895config_headers="$ac_config_headers" 15896config_commands="$ac_config_commands" 15897 15898_ACEOF 15899 15900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15901ac_cs_usage="\ 15902\`$as_me' instantiates files and other configuration actions 15903from templates according to the current configuration. Unless the files 15904and actions are specified as TAGs, all are instantiated by default. 15905 15906Usage: $0 [OPTION]... [TAG]... 15907 15908 -h, --help print this help, then exit 15909 -V, --version print version number and configuration settings, then exit 15910 --config print configuration, then exit 15911 -q, --quiet, --silent 15912 do not print progress messages 15913 -d, --debug don't remove temporary files 15914 --recheck update $as_me by reconfiguring in the same conditions 15915 --file=FILE[:TEMPLATE] 15916 instantiate the configuration file FILE 15917 --header=FILE[:TEMPLATE] 15918 instantiate the configuration header FILE 15919 15920Configuration files: 15921$config_files 15922 15923Configuration headers: 15924$config_headers 15925 15926Configuration commands: 15927$config_commands 15928 15929Report bugs to <freeipmi-devel@gnu.org>." 15930 15931_ACEOF 15932cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15933ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15934ac_cs_version="\\ 15935freeipmi config.status 1.6.8 15936configured by $0, generated by GNU Autoconf 2.69, 15937 with options \\"\$ac_cs_config\\" 15938 15939Copyright (C) 2012 Free Software Foundation, Inc. 15940This config.status script is free software; the Free Software Foundation 15941gives unlimited permission to copy, distribute and modify it." 15942 15943ac_pwd='$ac_pwd' 15944srcdir='$srcdir' 15945INSTALL='$INSTALL' 15946MKDIR_P='$MKDIR_P' 15947AWK='$AWK' 15948test -n "\$AWK" || AWK=awk 15949_ACEOF 15950 15951cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15952# The default lists apply if the user does not specify any file. 15953ac_need_defaults=: 15954while test $# != 0 15955do 15956 case $1 in 15957 --*=?*) 15958 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15959 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15960 ac_shift=: 15961 ;; 15962 --*=) 15963 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15964 ac_optarg= 15965 ac_shift=: 15966 ;; 15967 *) 15968 ac_option=$1 15969 ac_optarg=$2 15970 ac_shift=shift 15971 ;; 15972 esac 15973 15974 case $ac_option in 15975 # Handling of the options. 15976 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15977 ac_cs_recheck=: ;; 15978 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15979 $as_echo "$ac_cs_version"; exit ;; 15980 --config | --confi | --conf | --con | --co | --c ) 15981 $as_echo "$ac_cs_config"; exit ;; 15982 --debug | --debu | --deb | --de | --d | -d ) 15983 debug=: ;; 15984 --file | --fil | --fi | --f ) 15985 $ac_shift 15986 case $ac_optarg in 15987 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15988 '') as_fn_error $? "missing file argument" ;; 15989 esac 15990 as_fn_append CONFIG_FILES " '$ac_optarg'" 15991 ac_need_defaults=false;; 15992 --header | --heade | --head | --hea ) 15993 $ac_shift 15994 case $ac_optarg in 15995 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15996 esac 15997 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15998 ac_need_defaults=false;; 15999 --he | --h) 16000 # Conflict between --help and --header 16001 as_fn_error $? "ambiguous option: \`$1' 16002Try \`$0 --help' for more information.";; 16003 --help | --hel | -h ) 16004 $as_echo "$ac_cs_usage"; exit ;; 16005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16006 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16007 ac_cs_silent=: ;; 16008 16009 # This is an error. 16010 -*) as_fn_error $? "unrecognized option: \`$1' 16011Try \`$0 --help' for more information." ;; 16012 16013 *) as_fn_append ac_config_targets " $1" 16014 ac_need_defaults=false ;; 16015 16016 esac 16017 shift 16018done 16019 16020ac_configure_extra_args= 16021 16022if $ac_cs_silent; then 16023 exec 6>/dev/null 16024 ac_configure_extra_args="$ac_configure_extra_args --silent" 16025fi 16026 16027_ACEOF 16028cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16029if \$ac_cs_recheck; then 16030 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16031 shift 16032 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16033 CONFIG_SHELL='$SHELL' 16034 export CONFIG_SHELL 16035 exec "\$@" 16036fi 16037 16038_ACEOF 16039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16040exec 5>>config.log 16041{ 16042 echo 16043 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16044## Running $as_me. ## 16045_ASBOX 16046 $as_echo "$ac_log" 16047} >&5 16048 16049_ACEOF 16050cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16051# 16052# INIT-COMMANDS 16053# 16054AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16055 16056 16057# The HP-UX ksh and POSIX shell print the target directory to stdout 16058# if CDPATH is set. 16059(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16060 16061sed_quote_subst='$sed_quote_subst' 16062double_quote_subst='$double_quote_subst' 16063delay_variable_subst='$delay_variable_subst' 16064macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16065macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16066enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16067enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16068pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16069enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16070SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16071ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16072PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 16073host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16074host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16075host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16076build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16077build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16078build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16079SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16080Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16081GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16082EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16083FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16084LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16085NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16086LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16087max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16088ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16089exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16090lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16091lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16092lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16093lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 16094lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 16095reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16096reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16097OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16098deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16099file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16100file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 16101want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 16102DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 16103sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 16104AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16105AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16106archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 16107STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16108RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16109old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16110old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16111old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16112lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16113CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16114CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16115compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16116GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16117lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16118lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16119lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16120lt_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"`' 16121nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 16122lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 16123objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16124MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16125lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16126lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16127lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16128lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16129lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16130need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16131MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 16132DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16133NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16134LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16135OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16136OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16137libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16138shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16139extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16140archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16141enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16142export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16143whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16144compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16145old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16146old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16147archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16148archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16149module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16150module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16151with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16152allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16153no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16154hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16155hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16156hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16157hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16158hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16159hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16160hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16161inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16162link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16163always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16164export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16165exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16166include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16167prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16168postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 16169file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16170variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16171need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16172need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16173version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16174runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16175shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16176shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16177libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16178library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16179soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16180install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16181postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16182postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16183finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16184finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16185hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16186sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16187sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 16188hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16189enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16190enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16191enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16192old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16193striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16194 16195LTCC='$LTCC' 16196LTCFLAGS='$LTCFLAGS' 16197compiler='$compiler_DEFAULT' 16198 16199# A function that is used when there is no print builtin or printf. 16200func_fallback_echo () 16201{ 16202 eval 'cat <<_LTECHO_EOF 16203\$1 16204_LTECHO_EOF' 16205} 16206 16207# Quote evaled strings. 16208for var in SHELL \ 16209ECHO \ 16210PATH_SEPARATOR \ 16211SED \ 16212GREP \ 16213EGREP \ 16214FGREP \ 16215LD \ 16216NM \ 16217LN_S \ 16218lt_SP2NL \ 16219lt_NL2SP \ 16220reload_flag \ 16221OBJDUMP \ 16222deplibs_check_method \ 16223file_magic_cmd \ 16224file_magic_glob \ 16225want_nocaseglob \ 16226DLLTOOL \ 16227sharedlib_from_linklib_cmd \ 16228AR \ 16229AR_FLAGS \ 16230archiver_list_spec \ 16231STRIP \ 16232RANLIB \ 16233CC \ 16234CFLAGS \ 16235compiler \ 16236lt_cv_sys_global_symbol_pipe \ 16237lt_cv_sys_global_symbol_to_cdecl \ 16238lt_cv_sys_global_symbol_to_c_name_address \ 16239lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16240nm_file_list_spec \ 16241lt_prog_compiler_no_builtin_flag \ 16242lt_prog_compiler_pic \ 16243lt_prog_compiler_wl \ 16244lt_prog_compiler_static \ 16245lt_cv_prog_compiler_c_o \ 16246need_locks \ 16247MANIFEST_TOOL \ 16248DSYMUTIL \ 16249NMEDIT \ 16250LIPO \ 16251OTOOL \ 16252OTOOL64 \ 16253shrext_cmds \ 16254export_dynamic_flag_spec \ 16255whole_archive_flag_spec \ 16256compiler_needs_object \ 16257with_gnu_ld \ 16258allow_undefined_flag \ 16259no_undefined_flag \ 16260hardcode_libdir_flag_spec \ 16261hardcode_libdir_separator \ 16262exclude_expsyms \ 16263include_expsyms \ 16264file_list_spec \ 16265variables_saved_for_relink \ 16266libname_spec \ 16267library_names_spec \ 16268soname_spec \ 16269install_override_mode \ 16270finish_eval \ 16271old_striplib \ 16272striplib; do 16273 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16274 *[\\\\\\\`\\"\\\$]*) 16275 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 16276 ;; 16277 *) 16278 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16279 ;; 16280 esac 16281done 16282 16283# Double-quote double-evaled strings. 16284for var in reload_cmds \ 16285old_postinstall_cmds \ 16286old_postuninstall_cmds \ 16287old_archive_cmds \ 16288extract_expsyms_cmds \ 16289old_archive_from_new_cmds \ 16290old_archive_from_expsyms_cmds \ 16291archive_cmds \ 16292archive_expsym_cmds \ 16293module_cmds \ 16294module_expsym_cmds \ 16295export_symbols_cmds \ 16296prelink_cmds \ 16297postlink_cmds \ 16298postinstall_cmds \ 16299postuninstall_cmds \ 16300finish_cmds \ 16301sys_lib_search_path_spec \ 16302sys_lib_dlsearch_path_spec; do 16303 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16304 *[\\\\\\\`\\"\\\$]*) 16305 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16306 ;; 16307 *) 16308 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16309 ;; 16310 esac 16311done 16312 16313ac_aux_dir='$ac_aux_dir' 16314xsi_shell='$xsi_shell' 16315lt_shell_append='$lt_shell_append' 16316 16317# See if we are running on zsh, and set the options which allow our 16318# commands through without removal of \ escapes INIT. 16319if test -n "\${ZSH_VERSION+set}" ; then 16320 setopt NO_GLOB_SUBST 16321fi 16322 16323 16324 PACKAGE='$PACKAGE' 16325 VERSION='$VERSION' 16326 TIMESTAMP='$TIMESTAMP' 16327 RM='$RM' 16328 ofile='$ofile' 16329 16330 16331 16332 16333_ACEOF 16334 16335cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16336 16337# Handling of arguments. 16338for ac_config_target in $ac_config_targets 16339do 16340 case $ac_config_target in 16341 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;; 16342 "freeipmi.spec") CONFIG_FILES="$CONFIG_FILES freeipmi.spec" ;; 16343 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16344 "bmc-device/Makefile") CONFIG_FILES="$CONFIG_FILES bmc-device/Makefile" ;; 16345 "bmc-info/Makefile") CONFIG_FILES="$CONFIG_FILES bmc-info/Makefile" ;; 16346 "bmc-watchdog/Makefile") CONFIG_FILES="$CONFIG_FILES bmc-watchdog/Makefile" ;; 16347 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; 16348 "common/debugutil/Makefile") CONFIG_FILES="$CONFIG_FILES common/debugutil/Makefile" ;; 16349 "common/miscutil/Makefile") CONFIG_FILES="$CONFIG_FILES common/miscutil/Makefile" ;; 16350 "common/parsecommon/Makefile") CONFIG_FILES="$CONFIG_FILES common/parsecommon/Makefile" ;; 16351 "common/pingtool/Makefile") CONFIG_FILES="$CONFIG_FILES common/pingtool/Makefile" ;; 16352 "common/portability/Makefile") CONFIG_FILES="$CONFIG_FILES common/portability/Makefile" ;; 16353 "common/toolcommon/Makefile") CONFIG_FILES="$CONFIG_FILES common/toolcommon/Makefile" ;; 16354 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; 16355 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 16356 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;; 16357 "etc/bmc-watchdog.init") CONFIG_FILES="$CONFIG_FILES etc/bmc-watchdog.init" ;; 16358 "etc/bmc-watchdog.service") CONFIG_FILES="$CONFIG_FILES etc/bmc-watchdog.service" ;; 16359 "etc/ipmidetectd.init") CONFIG_FILES="$CONFIG_FILES etc/ipmidetectd.init" ;; 16360 "etc/ipmidetectd.service") CONFIG_FILES="$CONFIG_FILES etc/ipmidetectd.service" ;; 16361 "etc/ipmiseld.init") CONFIG_FILES="$CONFIG_FILES etc/ipmiseld.init" ;; 16362 "etc/ipmiseld.service") CONFIG_FILES="$CONFIG_FILES etc/ipmiseld.service" ;; 16363 "etc/os-shutdown-event.service") CONFIG_FILES="$CONFIG_FILES etc/os-shutdown-event.service" ;; 16364 "etc/os-startup-event.service") CONFIG_FILES="$CONFIG_FILES etc/os-startup-event.service" ;; 16365 "etc/set-sysinfo-in-bmc.service") CONFIG_FILES="$CONFIG_FILES etc/set-sysinfo-in-bmc.service" ;; 16366 "ipmi-chassis/Makefile") CONFIG_FILES="$CONFIG_FILES ipmi-chassis/Makefile" ;; 16367 "ipmi-config/Makefile") CONFIG_FILES="$CONFIG_FILES ipmi-config/Makefile" ;; 16368 "ipmi-dcmi/Makefile") CONFIG_FILES="$CONFIG_FILES ipmi-dcmi/Makefile" ;; 16369 "ipmi-fru/Makefile") CONFIG_FILES="$CONFIG_FILES ipmi-fru/Makefile" ;; 16370 "ipmi-locate/Makefile") CONFIG_FILES="$CONFIG_FILES ipmi-locate/Makefile" ;; 16371 "ipmi-oem/Makefile") CONFIG_FILES="$CONFIG_FILES ipmi-oem/Makefile" ;; 16372 "ipmi-pet/Makefile") CONFIG_FILES="$CONFIG_FILES ipmi-pet/Makefile" ;; 16373 "ipmi-raw/Makefile") CONFIG_FILES="$CONFIG_FILES ipmi-raw/Makefile" ;; 16374 "ipmi-sel/Makefile") CONFIG_FILES="$CONFIG_FILES ipmi-sel/Makefile" ;; 16375 "ipmi-sensors/Makefile") CONFIG_FILES="$CONFIG_FILES ipmi-sensors/Makefile" ;; 16376 "ipmiconsole/Makefile") CONFIG_FILES="$CONFIG_FILES ipmiconsole/Makefile" ;; 16377 "ipmidetect/Makefile") CONFIG_FILES="$CONFIG_FILES ipmidetect/Makefile" ;; 16378 "ipmidetectd/Makefile") CONFIG_FILES="$CONFIG_FILES ipmidetectd/Makefile" ;; 16379 "ipmiping/Makefile") CONFIG_FILES="$CONFIG_FILES ipmiping/Makefile" ;; 16380 "ipmipower/Makefile") CONFIG_FILES="$CONFIG_FILES ipmipower/Makefile" ;; 16381 "ipmiseld/Makefile") CONFIG_FILES="$CONFIG_FILES ipmiseld/Makefile" ;; 16382 "libfreeipmi/Makefile") CONFIG_FILES="$CONFIG_FILES libfreeipmi/Makefile" ;; 16383 "libfreeipmi/libfreeipmi.pc") CONFIG_FILES="$CONFIG_FILES libfreeipmi/libfreeipmi.pc" ;; 16384 "libfreeipmi/include/Makefile") CONFIG_FILES="$CONFIG_FILES libfreeipmi/include/Makefile" ;; 16385 "libfreeipmi/include/freeipmi/freeipmi.h") CONFIG_FILES="$CONFIG_FILES libfreeipmi/include/freeipmi/freeipmi.h" ;; 16386 "libipmiconsole/Makefile") CONFIG_FILES="$CONFIG_FILES libipmiconsole/Makefile" ;; 16387 "libipmiconsole/ipmiconsole.h") CONFIG_FILES="$CONFIG_FILES libipmiconsole/ipmiconsole.h" ;; 16388 "libipmiconsole/libipmiconsole.pc") CONFIG_FILES="$CONFIG_FILES libipmiconsole/libipmiconsole.pc" ;; 16389 "libipmidetect/Makefile") CONFIG_FILES="$CONFIG_FILES libipmidetect/Makefile" ;; 16390 "libipmidetect/ipmidetect.h") CONFIG_FILES="$CONFIG_FILES libipmidetect/ipmidetect.h" ;; 16391 "libipmidetect/libipmidetect.pc") CONFIG_FILES="$CONFIG_FILES libipmidetect/libipmidetect.pc" ;; 16392 "libipmimonitoring/Makefile") CONFIG_FILES="$CONFIG_FILES libipmimonitoring/Makefile" ;; 16393 "libipmimonitoring/ipmi_monitoring.h") CONFIG_FILES="$CONFIG_FILES libipmimonitoring/ipmi_monitoring.h" ;; 16394 "libipmimonitoring/libipmimonitoring.pc") CONFIG_FILES="$CONFIG_FILES libipmimonitoring/libipmimonitoring.pc" ;; 16395 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 16396 "man/bmc-device.8.pre") CONFIG_FILES="$CONFIG_FILES man/bmc-device.8.pre" ;; 16397 "man/bmc-info.8.pre") CONFIG_FILES="$CONFIG_FILES man/bmc-info.8.pre" ;; 16398 "man/bmc-watchdog.8.pre") CONFIG_FILES="$CONFIG_FILES man/bmc-watchdog.8.pre" ;; 16399 "man/freeipmi.conf.5.pre") CONFIG_FILES="$CONFIG_FILES man/freeipmi.conf.5.pre" ;; 16400 "man/freeipmi.7.pre") CONFIG_FILES="$CONFIG_FILES man/freeipmi.7.pre" ;; 16401 "man/ipmi-chassis.8.pre") CONFIG_FILES="$CONFIG_FILES man/ipmi-chassis.8.pre" ;; 16402 "man/ipmi-config.8.pre") CONFIG_FILES="$CONFIG_FILES man/ipmi-config.8.pre" ;; 16403 "man/ipmi-config.conf.5.pre") CONFIG_FILES="$CONFIG_FILES man/ipmi-config.conf.5.pre" ;; 16404 "man/ipmi-dcmi.8.pre") CONFIG_FILES="$CONFIG_FILES man/ipmi-dcmi.8.pre" ;; 16405 "man/ipmi-fru.8.pre") CONFIG_FILES="$CONFIG_FILES man/ipmi-fru.8.pre" ;; 16406 "man/ipmi-locate.8.pre") CONFIG_FILES="$CONFIG_FILES man/ipmi-locate.8.pre" ;; 16407 "man/ipmi-oem.8.pre") CONFIG_FILES="$CONFIG_FILES man/ipmi-oem.8.pre" ;; 16408 "man/ipmi-pet.8.pre") CONFIG_FILES="$CONFIG_FILES man/ipmi-pet.8.pre" ;; 16409 "man/ipmi-raw.8.pre") CONFIG_FILES="$CONFIG_FILES man/ipmi-raw.8.pre" ;; 16410 "man/ipmi-sel.8.pre") CONFIG_FILES="$CONFIG_FILES man/ipmi-sel.8.pre" ;; 16411 "man/ipmi-sensors.8.pre") CONFIG_FILES="$CONFIG_FILES man/ipmi-sensors.8.pre" ;; 16412 "man/ipmiconsole.8.pre") CONFIG_FILES="$CONFIG_FILES man/ipmiconsole.8.pre" ;; 16413 "man/ipmidetect.8.pre") CONFIG_FILES="$CONFIG_FILES man/ipmidetect.8.pre" ;; 16414 "man/ipmidetect.conf.5.pre") CONFIG_FILES="$CONFIG_FILES man/ipmidetect.conf.5.pre" ;; 16415 "man/ipmidetectd.8.pre") CONFIG_FILES="$CONFIG_FILES man/ipmidetectd.8.pre" ;; 16416 "man/ipmidetectd.conf.5.pre") CONFIG_FILES="$CONFIG_FILES man/ipmidetectd.conf.5.pre" ;; 16417 "man/ipmiping.8.pre") CONFIG_FILES="$CONFIG_FILES man/ipmiping.8.pre" ;; 16418 "man/ipmipower.8.pre") CONFIG_FILES="$CONFIG_FILES man/ipmipower.8.pre" ;; 16419 "man/ipmiseld.8.pre") CONFIG_FILES="$CONFIG_FILES man/ipmiseld.8.pre" ;; 16420 "man/ipmiseld.conf.5.pre") CONFIG_FILES="$CONFIG_FILES man/ipmiseld.conf.5.pre" ;; 16421 "man/libfreeipmi.3.pre") CONFIG_FILES="$CONFIG_FILES man/libfreeipmi.3.pre" ;; 16422 "man/freeipmi_interpret_sensor.conf.5.pre") CONFIG_FILES="$CONFIG_FILES man/freeipmi_interpret_sensor.conf.5.pre" ;; 16423 "man/freeipmi_interpret_sel.conf.5.pre") CONFIG_FILES="$CONFIG_FILES man/freeipmi_interpret_sel.conf.5.pre" ;; 16424 "man/libipmiconsole.3.pre") CONFIG_FILES="$CONFIG_FILES man/libipmiconsole.3.pre" ;; 16425 "man/libipmiconsole.conf.5.pre") CONFIG_FILES="$CONFIG_FILES man/libipmiconsole.conf.5.pre" ;; 16426 "man/libipmidetect.3.pre") CONFIG_FILES="$CONFIG_FILES man/libipmidetect.3.pre" ;; 16427 "man/libipmimonitoring.3.pre") CONFIG_FILES="$CONFIG_FILES man/libipmimonitoring.3.pre" ;; 16428 "man/rmcpping.8.pre") CONFIG_FILES="$CONFIG_FILES man/rmcpping.8.pre" ;; 16429 "rmcpping/Makefile") CONFIG_FILES="$CONFIG_FILES rmcpping/Makefile" ;; 16430 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16431 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16432 16433 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16434 esac 16435done 16436 16437 16438# If the user did not use the arguments to specify the items to instantiate, 16439# then the envvar interface is used. Set only those that are not. 16440# We use the long form for the default assignment because of an extremely 16441# bizarre bug on SunOS 4.1.3. 16442if $ac_need_defaults; then 16443 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16444 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16445 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16446fi 16447 16448# Have a temporary directory for convenience. Make it in the build tree 16449# simply because there is no reason against having it here, and in addition, 16450# creating and moving files from /tmp can sometimes cause problems. 16451# Hook for its removal unless debugging. 16452# Note that there is a small window in which the directory will not be cleaned: 16453# after its creation but before its name has been assigned to `$tmp'. 16454$debug || 16455{ 16456 tmp= ac_tmp= 16457 trap 'exit_status=$? 16458 : "${ac_tmp:=$tmp}" 16459 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16460' 0 16461 trap 'as_fn_exit 1' 1 2 13 15 16462} 16463# Create a (secure) tmp directory for tmp files. 16464 16465{ 16466 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16467 test -d "$tmp" 16468} || 16469{ 16470 tmp=./conf$$-$RANDOM 16471 (umask 077 && mkdir "$tmp") 16472} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16473ac_tmp=$tmp 16474 16475# Set up the scripts for CONFIG_FILES section. 16476# No need to generate them if there are no CONFIG_FILES. 16477# This happens for instance with `./config.status config.h'. 16478if test -n "$CONFIG_FILES"; then 16479 16480 16481ac_cr=`echo X | tr X '\015'` 16482# On cygwin, bash can eat \r inside `` if the user requested igncr. 16483# But we know of no other shell where ac_cr would be empty at this 16484# point, so we can use a bashism as a fallback. 16485if test "x$ac_cr" = x; then 16486 eval ac_cr=\$\'\\r\' 16487fi 16488ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16489if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16490 ac_cs_awk_cr='\\r' 16491else 16492 ac_cs_awk_cr=$ac_cr 16493fi 16494 16495echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16496_ACEOF 16497 16498 16499{ 16500 echo "cat >conf$$subs.awk <<_ACEOF" && 16501 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16502 echo "_ACEOF" 16503} >conf$$subs.sh || 16504 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16505ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16506ac_delim='%!_!# ' 16507for ac_last_try in false false false false false :; do 16508 . ./conf$$subs.sh || 16509 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16510 16511 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16512 if test $ac_delim_n = $ac_delim_num; then 16513 break 16514 elif $ac_last_try; then 16515 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16516 else 16517 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16518 fi 16519done 16520rm -f conf$$subs.sh 16521 16522cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16523cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16524_ACEOF 16525sed -n ' 16526h 16527s/^/S["/; s/!.*/"]=/ 16528p 16529g 16530s/^[^!]*!// 16531:repl 16532t repl 16533s/'"$ac_delim"'$// 16534t delim 16535:nl 16536h 16537s/\(.\{148\}\)..*/\1/ 16538t more1 16539s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16540p 16541n 16542b repl 16543:more1 16544s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16545p 16546g 16547s/.\{148\}// 16548t nl 16549:delim 16550h 16551s/\(.\{148\}\)..*/\1/ 16552t more2 16553s/["\\]/\\&/g; s/^/"/; s/$/"/ 16554p 16555b 16556:more2 16557s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16558p 16559g 16560s/.\{148\}// 16561t delim 16562' <conf$$subs.awk | sed ' 16563/^[^""]/{ 16564 N 16565 s/\n// 16566} 16567' >>$CONFIG_STATUS || ac_write_fail=1 16568rm -f conf$$subs.awk 16569cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16570_ACAWK 16571cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16572 for (key in S) S_is_set[key] = 1 16573 FS = "" 16574 16575} 16576{ 16577 line = $ 0 16578 nfields = split(line, field, "@") 16579 substed = 0 16580 len = length(field[1]) 16581 for (i = 2; i < nfields; i++) { 16582 key = field[i] 16583 keylen = length(key) 16584 if (S_is_set[key]) { 16585 value = S[key] 16586 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16587 len += length(value) + length(field[++i]) 16588 substed = 1 16589 } else 16590 len += 1 + keylen 16591 } 16592 16593 print line 16594} 16595 16596_ACAWK 16597_ACEOF 16598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16599if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16600 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16601else 16602 cat 16603fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16604 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16605_ACEOF 16606 16607# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16608# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16609# trailing colons and then remove the whole line if VPATH becomes empty 16610# (actually we leave an empty line to preserve line numbers). 16611if test "x$srcdir" = x.; then 16612 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16613h 16614s/// 16615s/^/:/ 16616s/[ ]*$/:/ 16617s/:\$(srcdir):/:/g 16618s/:\${srcdir}:/:/g 16619s/:@srcdir@:/:/g 16620s/^:*// 16621s/:*$// 16622x 16623s/\(=[ ]*\).*/\1/ 16624G 16625s/\n// 16626s/^[^=]*=[ ]*$// 16627}' 16628fi 16629 16630cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16631fi # test -n "$CONFIG_FILES" 16632 16633# Set up the scripts for CONFIG_HEADERS section. 16634# No need to generate them if there are no CONFIG_HEADERS. 16635# This happens for instance with `./config.status Makefile'. 16636if test -n "$CONFIG_HEADERS"; then 16637cat >"$ac_tmp/defines.awk" <<\_ACAWK || 16638BEGIN { 16639_ACEOF 16640 16641# Transform confdefs.h into an awk script `defines.awk', embedded as 16642# here-document in config.status, that substitutes the proper values into 16643# config.h.in to produce config.h. 16644 16645# Create a delimiter string that does not exist in confdefs.h, to ease 16646# handling of long lines. 16647ac_delim='%!_!# ' 16648for ac_last_try in false false :; do 16649 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 16650 if test -z "$ac_tt"; then 16651 break 16652 elif $ac_last_try; then 16653 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 16654 else 16655 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16656 fi 16657done 16658 16659# For the awk script, D is an array of macro values keyed by name, 16660# likewise P contains macro parameters if any. Preserve backslash 16661# newline sequences. 16662 16663ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16664sed -n ' 16665s/.\{148\}/&'"$ac_delim"'/g 16666t rset 16667:rset 16668s/^[ ]*#[ ]*define[ ][ ]*/ / 16669t def 16670d 16671:def 16672s/\\$// 16673t bsnl 16674s/["\\]/\\&/g 16675s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16676D["\1"]=" \3"/p 16677s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16678d 16679:bsnl 16680s/["\\]/\\&/g 16681s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16682D["\1"]=" \3\\\\\\n"\\/p 16683t cont 16684s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16685t cont 16686d 16687:cont 16688n 16689s/.\{148\}/&'"$ac_delim"'/g 16690t clear 16691:clear 16692s/\\$// 16693t bsnlc 16694s/["\\]/\\&/g; s/^/"/; s/$/"/p 16695d 16696:bsnlc 16697s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16698b cont 16699' <confdefs.h | sed ' 16700s/'"$ac_delim"'/"\\\ 16701"/g' >>$CONFIG_STATUS || ac_write_fail=1 16702 16703cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16704 for (key in D) D_is_set[key] = 1 16705 FS = "" 16706} 16707/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16708 line = \$ 0 16709 split(line, arg, " ") 16710 if (arg[1] == "#") { 16711 defundef = arg[2] 16712 mac1 = arg[3] 16713 } else { 16714 defundef = substr(arg[1], 2) 16715 mac1 = arg[2] 16716 } 16717 split(mac1, mac2, "(") #) 16718 macro = mac2[1] 16719 prefix = substr(line, 1, index(line, defundef) - 1) 16720 if (D_is_set[macro]) { 16721 # Preserve the white space surrounding the "#". 16722 print prefix "define", macro P[macro] D[macro] 16723 next 16724 } else { 16725 # Replace #undef with comments. This is necessary, for example, 16726 # in the case of _POSIX_SOURCE, which is predefined and required 16727 # on some systems where configure will not decide to define it. 16728 if (defundef == "undef") { 16729 print "/*", prefix defundef, macro, "*/" 16730 next 16731 } 16732 } 16733} 16734{ print } 16735_ACAWK 16736_ACEOF 16737cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16738 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 16739fi # test -n "$CONFIG_HEADERS" 16740 16741 16742eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16743shift 16744for ac_tag 16745do 16746 case $ac_tag in 16747 :[FHLC]) ac_mode=$ac_tag; continue;; 16748 esac 16749 case $ac_mode$ac_tag in 16750 :[FHL]*:*);; 16751 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16752 :[FH]-) ac_tag=-:-;; 16753 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16754 esac 16755 ac_save_IFS=$IFS 16756 IFS=: 16757 set x $ac_tag 16758 IFS=$ac_save_IFS 16759 shift 16760 ac_file=$1 16761 shift 16762 16763 case $ac_mode in 16764 :L) ac_source=$1;; 16765 :[FH]) 16766 ac_file_inputs= 16767 for ac_f 16768 do 16769 case $ac_f in 16770 -) ac_f="$ac_tmp/stdin";; 16771 *) # Look for the file first in the build tree, then in the source tree 16772 # (if the path is not absolute). The absolute path cannot be DOS-style, 16773 # because $ac_f cannot contain `:'. 16774 test -f "$ac_f" || 16775 case $ac_f in 16776 [\\/$]*) false;; 16777 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16778 esac || 16779 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16780 esac 16781 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16782 as_fn_append ac_file_inputs " '$ac_f'" 16783 done 16784 16785 # Let's still pretend it is `configure' which instantiates (i.e., don't 16786 # use $as_me), people would be surprised to read: 16787 # /* config.h. Generated by config.status. */ 16788 configure_input='Generated from '` 16789 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16790 `' by configure.' 16791 if test x"$ac_file" != x-; then 16792 configure_input="$ac_file. $configure_input" 16793 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16794$as_echo "$as_me: creating $ac_file" >&6;} 16795 fi 16796 # Neutralize special characters interpreted by sed in replacement strings. 16797 case $configure_input in #( 16798 *\&* | *\|* | *\\* ) 16799 ac_sed_conf_input=`$as_echo "$configure_input" | 16800 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16801 *) ac_sed_conf_input=$configure_input;; 16802 esac 16803 16804 case $ac_tag in 16805 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16806 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16807 esac 16808 ;; 16809 esac 16810 16811 ac_dir=`$as_dirname -- "$ac_file" || 16812$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16813 X"$ac_file" : 'X\(//\)[^/]' \| \ 16814 X"$ac_file" : 'X\(//\)$' \| \ 16815 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16816$as_echo X"$ac_file" | 16817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16818 s//\1/ 16819 q 16820 } 16821 /^X\(\/\/\)[^/].*/{ 16822 s//\1/ 16823 q 16824 } 16825 /^X\(\/\/\)$/{ 16826 s//\1/ 16827 q 16828 } 16829 /^X\(\/\).*/{ 16830 s//\1/ 16831 q 16832 } 16833 s/.*/./; q'` 16834 as_dir="$ac_dir"; as_fn_mkdir_p 16835 ac_builddir=. 16836 16837case "$ac_dir" in 16838.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16839*) 16840 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16841 # A ".." for each directory in $ac_dir_suffix. 16842 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16843 case $ac_top_builddir_sub in 16844 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16845 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16846 esac ;; 16847esac 16848ac_abs_top_builddir=$ac_pwd 16849ac_abs_builddir=$ac_pwd$ac_dir_suffix 16850# for backward compatibility: 16851ac_top_builddir=$ac_top_build_prefix 16852 16853case $srcdir in 16854 .) # We are building in place. 16855 ac_srcdir=. 16856 ac_top_srcdir=$ac_top_builddir_sub 16857 ac_abs_top_srcdir=$ac_pwd ;; 16858 [\\/]* | ?:[\\/]* ) # Absolute name. 16859 ac_srcdir=$srcdir$ac_dir_suffix; 16860 ac_top_srcdir=$srcdir 16861 ac_abs_top_srcdir=$srcdir ;; 16862 *) # Relative name. 16863 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16864 ac_top_srcdir=$ac_top_build_prefix$srcdir 16865 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16866esac 16867ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16868 16869 16870 case $ac_mode in 16871 :F) 16872 # 16873 # CONFIG_FILE 16874 # 16875 16876 case $INSTALL in 16877 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16878 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16879 esac 16880 ac_MKDIR_P=$MKDIR_P 16881 case $MKDIR_P in 16882 [\\/$]* | ?:[\\/]* ) ;; 16883 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16884 esac 16885_ACEOF 16886 16887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16888# If the template does not know about datarootdir, expand it. 16889# FIXME: This hack should be removed a few years after 2.60. 16890ac_datarootdir_hack=; ac_datarootdir_seen= 16891ac_sed_dataroot=' 16892/datarootdir/ { 16893 p 16894 q 16895} 16896/@datadir@/p 16897/@docdir@/p 16898/@infodir@/p 16899/@localedir@/p 16900/@mandir@/p' 16901case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16902*datarootdir*) ac_datarootdir_seen=yes;; 16903*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16905$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16906_ACEOF 16907cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16908 ac_datarootdir_hack=' 16909 s&@datadir@&$datadir&g 16910 s&@docdir@&$docdir&g 16911 s&@infodir@&$infodir&g 16912 s&@localedir@&$localedir&g 16913 s&@mandir@&$mandir&g 16914 s&\\\${datarootdir}&$datarootdir&g' ;; 16915esac 16916_ACEOF 16917 16918# Neutralize VPATH when `$srcdir' = `.'. 16919# Shell code in configure.ac might set extrasub. 16920# FIXME: do we really want to maintain this feature? 16921cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16922ac_sed_extra="$ac_vpsub 16923$extrasub 16924_ACEOF 16925cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16926:t 16927/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16928s|@configure_input@|$ac_sed_conf_input|;t t 16929s&@top_builddir@&$ac_top_builddir_sub&;t t 16930s&@top_build_prefix@&$ac_top_build_prefix&;t t 16931s&@srcdir@&$ac_srcdir&;t t 16932s&@abs_srcdir@&$ac_abs_srcdir&;t t 16933s&@top_srcdir@&$ac_top_srcdir&;t t 16934s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16935s&@builddir@&$ac_builddir&;t t 16936s&@abs_builddir@&$ac_abs_builddir&;t t 16937s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16938s&@INSTALL@&$ac_INSTALL&;t t 16939s&@MKDIR_P@&$ac_MKDIR_P&;t t 16940$ac_datarootdir_hack 16941" 16942eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16943 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16944 16945test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16946 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16947 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16948 "$ac_tmp/out"`; test -z "$ac_out"; } && 16949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16950which seems to be undefined. Please make sure it is defined" >&5 16951$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16952which seems to be undefined. Please make sure it is defined" >&2;} 16953 16954 rm -f "$ac_tmp/stdin" 16955 case $ac_file in 16956 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16957 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16958 esac \ 16959 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16960 ;; 16961 :H) 16962 # 16963 # CONFIG_HEADER 16964 # 16965 if test x"$ac_file" != x-; then 16966 { 16967 $as_echo "/* $configure_input */" \ 16968 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 16969 } >"$ac_tmp/config.h" \ 16970 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16971 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 16972 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16973$as_echo "$as_me: $ac_file is unchanged" >&6;} 16974 else 16975 rm -f "$ac_file" 16976 mv "$ac_tmp/config.h" "$ac_file" \ 16977 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16978 fi 16979 else 16980 $as_echo "/* $configure_input */" \ 16981 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 16982 || as_fn_error $? "could not create -" "$LINENO" 5 16983 fi 16984# Compute "$ac_file"'s index in $config_headers. 16985_am_arg="$ac_file" 16986_am_stamp_count=1 16987for _am_header in $config_headers :; do 16988 case $_am_header in 16989 $_am_arg | $_am_arg:* ) 16990 break ;; 16991 * ) 16992 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16993 esac 16994done 16995echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16996$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16997 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16998 X"$_am_arg" : 'X\(//\)$' \| \ 16999 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17000$as_echo X"$_am_arg" | 17001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17002 s//\1/ 17003 q 17004 } 17005 /^X\(\/\/\)[^/].*/{ 17006 s//\1/ 17007 q 17008 } 17009 /^X\(\/\/\)$/{ 17010 s//\1/ 17011 q 17012 } 17013 /^X\(\/\).*/{ 17014 s//\1/ 17015 q 17016 } 17017 s/.*/./; q'`/stamp-h$_am_stamp_count 17018 ;; 17019 17020 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17021$as_echo "$as_me: executing $ac_file commands" >&6;} 17022 ;; 17023 esac 17024 17025 17026 case $ac_file$ac_mode in 17027 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17028 # Older Autoconf quotes --file arguments for eval, but not when files 17029 # are listed without --file. Let's play safe and only enable the eval 17030 # if we detect the quoting. 17031 case $CONFIG_FILES in 17032 *\'*) eval set x "$CONFIG_FILES" ;; 17033 *) set x $CONFIG_FILES ;; 17034 esac 17035 shift 17036 for mf 17037 do 17038 # Strip MF so we end up with the name of the file. 17039 mf=`echo "$mf" | sed -e 's/:.*$//'` 17040 # Check whether this is an Automake generated Makefile or not. 17041 # We used to match only the files named 'Makefile.in', but 17042 # some people rename them; so instead we look at the file content. 17043 # Grep'ing the first line is not enough: some people post-process 17044 # each Makefile.in and add a new line on top of each file to say so. 17045 # Grep'ing the whole file is not good either: AIX grep has a line 17046 # limit of 2048, but all sed's we know have understand at least 4000. 17047 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17048 dirpart=`$as_dirname -- "$mf" || 17049$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17050 X"$mf" : 'X\(//\)[^/]' \| \ 17051 X"$mf" : 'X\(//\)$' \| \ 17052 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17053$as_echo X"$mf" | 17054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17055 s//\1/ 17056 q 17057 } 17058 /^X\(\/\/\)[^/].*/{ 17059 s//\1/ 17060 q 17061 } 17062 /^X\(\/\/\)$/{ 17063 s//\1/ 17064 q 17065 } 17066 /^X\(\/\).*/{ 17067 s//\1/ 17068 q 17069 } 17070 s/.*/./; q'` 17071 else 17072 continue 17073 fi 17074 # Extract the definition of DEPDIR, am__include, and am__quote 17075 # from the Makefile without running 'make'. 17076 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17077 test -z "$DEPDIR" && continue 17078 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17079 test -z "$am__include" && continue 17080 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17081 # Find all dependency output files, they are included files with 17082 # $(DEPDIR) in their names. We invoke sed twice because it is the 17083 # simplest approach to changing $(DEPDIR) to its actual value in the 17084 # expansion. 17085 for file in `sed -n " 17086 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17087 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 17088 # Make sure the directory exists. 17089 test -f "$dirpart/$file" && continue 17090 fdir=`$as_dirname -- "$file" || 17091$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17092 X"$file" : 'X\(//\)[^/]' \| \ 17093 X"$file" : 'X\(//\)$' \| \ 17094 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17095$as_echo X"$file" | 17096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17097 s//\1/ 17098 q 17099 } 17100 /^X\(\/\/\)[^/].*/{ 17101 s//\1/ 17102 q 17103 } 17104 /^X\(\/\/\)$/{ 17105 s//\1/ 17106 q 17107 } 17108 /^X\(\/\).*/{ 17109 s//\1/ 17110 q 17111 } 17112 s/.*/./; q'` 17113 as_dir=$dirpart/$fdir; as_fn_mkdir_p 17114 # echo "creating $dirpart/$file" 17115 echo '# dummy' > "$dirpart/$file" 17116 done 17117 done 17118} 17119 ;; 17120 "libtool":C) 17121 17122 # See if we are running on zsh, and set the options which allow our 17123 # commands through without removal of \ escapes. 17124 if test -n "${ZSH_VERSION+set}" ; then 17125 setopt NO_GLOB_SUBST 17126 fi 17127 17128 cfgfile="${ofile}T" 17129 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17130 $RM "$cfgfile" 17131 17132 cat <<_LT_EOF >> "$cfgfile" 17133#! $SHELL 17134 17135# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17136# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17137# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17138# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17139# 17140# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17141# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 17142# Foundation, Inc. 17143# Written by Gordon Matzigkeit, 1996 17144# 17145# This file is part of GNU Libtool. 17146# 17147# GNU Libtool is free software; you can redistribute it and/or 17148# modify it under the terms of the GNU General Public License as 17149# published by the Free Software Foundation; either version 2 of 17150# the License, or (at your option) any later version. 17151# 17152# As a special exception to the GNU General Public License, 17153# if you distribute this file as part of a program or library that 17154# is built using GNU Libtool, you may include this file under the 17155# same distribution terms that you use for the rest of that program. 17156# 17157# GNU Libtool is distributed in the hope that it will be useful, 17158# but WITHOUT ANY WARRANTY; without even the implied warranty of 17159# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17160# GNU General Public License for more details. 17161# 17162# You should have received a copy of the GNU General Public License 17163# along with GNU Libtool; see the file COPYING. If not, a copy 17164# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17165# obtained by writing to the Free Software Foundation, Inc., 17166# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17167 17168 17169# The names of the tagged configurations supported by this script. 17170available_tags="" 17171 17172# ### BEGIN LIBTOOL CONFIG 17173 17174# Which release of libtool.m4 was used? 17175macro_version=$macro_version 17176macro_revision=$macro_revision 17177 17178# Whether or not to build shared libraries. 17179build_libtool_libs=$enable_shared 17180 17181# Whether or not to build static libraries. 17182build_old_libs=$enable_static 17183 17184# What type of objects to build. 17185pic_mode=$pic_mode 17186 17187# Whether or not to optimize for fast installation. 17188fast_install=$enable_fast_install 17189 17190# Shell to use when invoking shell scripts. 17191SHELL=$lt_SHELL 17192 17193# An echo program that protects backslashes. 17194ECHO=$lt_ECHO 17195 17196# The PATH separator for the build system. 17197PATH_SEPARATOR=$lt_PATH_SEPARATOR 17198 17199# The host system. 17200host_alias=$host_alias 17201host=$host 17202host_os=$host_os 17203 17204# The build system. 17205build_alias=$build_alias 17206build=$build 17207build_os=$build_os 17208 17209# A sed program that does not truncate output. 17210SED=$lt_SED 17211 17212# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17213Xsed="\$SED -e 1s/^X//" 17214 17215# A grep program that handles long lines. 17216GREP=$lt_GREP 17217 17218# An ERE matcher. 17219EGREP=$lt_EGREP 17220 17221# A literal string matcher. 17222FGREP=$lt_FGREP 17223 17224# A BSD- or MS-compatible name lister. 17225NM=$lt_NM 17226 17227# Whether we need soft or hard links. 17228LN_S=$lt_LN_S 17229 17230# What is the maximum length of a command? 17231max_cmd_len=$max_cmd_len 17232 17233# Object file suffix (normally "o"). 17234objext=$ac_objext 17235 17236# Executable file suffix (normally ""). 17237exeext=$exeext 17238 17239# whether the shell understands "unset". 17240lt_unset=$lt_unset 17241 17242# turn spaces into newlines. 17243SP2NL=$lt_lt_SP2NL 17244 17245# turn newlines into spaces. 17246NL2SP=$lt_lt_NL2SP 17247 17248# convert \$build file names to \$host format. 17249to_host_file_cmd=$lt_cv_to_host_file_cmd 17250 17251# convert \$build files to toolchain format. 17252to_tool_file_cmd=$lt_cv_to_tool_file_cmd 17253 17254# An object symbol dumper. 17255OBJDUMP=$lt_OBJDUMP 17256 17257# Method to check whether dependent libraries are shared objects. 17258deplibs_check_method=$lt_deplibs_check_method 17259 17260# Command to use when deplibs_check_method = "file_magic". 17261file_magic_cmd=$lt_file_magic_cmd 17262 17263# How to find potential files when deplibs_check_method = "file_magic". 17264file_magic_glob=$lt_file_magic_glob 17265 17266# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 17267want_nocaseglob=$lt_want_nocaseglob 17268 17269# DLL creation program. 17270DLLTOOL=$lt_DLLTOOL 17271 17272# Command to associate shared and link libraries. 17273sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 17274 17275# The archiver. 17276AR=$lt_AR 17277 17278# Flags to create an archive. 17279AR_FLAGS=$lt_AR_FLAGS 17280 17281# How to feed a file listing to the archiver. 17282archiver_list_spec=$lt_archiver_list_spec 17283 17284# A symbol stripping program. 17285STRIP=$lt_STRIP 17286 17287# Commands used to install an old-style archive. 17288RANLIB=$lt_RANLIB 17289old_postinstall_cmds=$lt_old_postinstall_cmds 17290old_postuninstall_cmds=$lt_old_postuninstall_cmds 17291 17292# Whether to use a lock for old archive extraction. 17293lock_old_archive_extraction=$lock_old_archive_extraction 17294 17295# A C compiler. 17296LTCC=$lt_CC 17297 17298# LTCC compiler flags. 17299LTCFLAGS=$lt_CFLAGS 17300 17301# Take the output of nm and produce a listing of raw symbols and C names. 17302global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17303 17304# Transform the output of nm in a proper C declaration. 17305global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17306 17307# Transform the output of nm in a C name address pair. 17308global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17309 17310# Transform the output of nm in a C name address pair when lib prefix is needed. 17311global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17312 17313# Specify filename containing input files for \$NM. 17314nm_file_list_spec=$lt_nm_file_list_spec 17315 17316# The root where to search for dependent libraries,and in which our libraries should be installed. 17317lt_sysroot=$lt_sysroot 17318 17319# The name of the directory that contains temporary libtool files. 17320objdir=$objdir 17321 17322# Used to examine libraries when file_magic_cmd begins with "file". 17323MAGIC_CMD=$MAGIC_CMD 17324 17325# Must we lock files when doing compilation? 17326need_locks=$lt_need_locks 17327 17328# Manifest tool. 17329MANIFEST_TOOL=$lt_MANIFEST_TOOL 17330 17331# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17332DSYMUTIL=$lt_DSYMUTIL 17333 17334# Tool to change global to local symbols on Mac OS X. 17335NMEDIT=$lt_NMEDIT 17336 17337# Tool to manipulate fat objects and archives on Mac OS X. 17338LIPO=$lt_LIPO 17339 17340# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17341OTOOL=$lt_OTOOL 17342 17343# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17344OTOOL64=$lt_OTOOL64 17345 17346# Old archive suffix (normally "a"). 17347libext=$libext 17348 17349# Shared library suffix (normally ".so"). 17350shrext_cmds=$lt_shrext_cmds 17351 17352# The commands to extract the exported symbol list from a shared archive. 17353extract_expsyms_cmds=$lt_extract_expsyms_cmds 17354 17355# Variables whose values should be saved in libtool wrapper scripts and 17356# restored at link time. 17357variables_saved_for_relink=$lt_variables_saved_for_relink 17358 17359# Do we need the "lib" prefix for modules? 17360need_lib_prefix=$need_lib_prefix 17361 17362# Do we need a version for libraries? 17363need_version=$need_version 17364 17365# Library versioning type. 17366version_type=$version_type 17367 17368# Shared library runtime path variable. 17369runpath_var=$runpath_var 17370 17371# Shared library path variable. 17372shlibpath_var=$shlibpath_var 17373 17374# Is shlibpath searched before the hard-coded library search path? 17375shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17376 17377# Format of library name prefix. 17378libname_spec=$lt_libname_spec 17379 17380# List of archive names. First name is the real one, the rest are links. 17381# The last name is the one that the linker finds with -lNAME 17382library_names_spec=$lt_library_names_spec 17383 17384# The coded name of the library, if different from the real name. 17385soname_spec=$lt_soname_spec 17386 17387# Permission mode override for installation of shared libraries. 17388install_override_mode=$lt_install_override_mode 17389 17390# Command to use after installation of a shared archive. 17391postinstall_cmds=$lt_postinstall_cmds 17392 17393# Command to use after uninstallation of a shared archive. 17394postuninstall_cmds=$lt_postuninstall_cmds 17395 17396# Commands used to finish a libtool library installation in a directory. 17397finish_cmds=$lt_finish_cmds 17398 17399# As "finish_cmds", except a single script fragment to be evaled but 17400# not shown. 17401finish_eval=$lt_finish_eval 17402 17403# Whether we should hardcode library paths into libraries. 17404hardcode_into_libs=$hardcode_into_libs 17405 17406# Compile-time system search path for libraries. 17407sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17408 17409# Run-time system search path for libraries. 17410sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17411 17412# Whether dlopen is supported. 17413dlopen_support=$enable_dlopen 17414 17415# Whether dlopen of programs is supported. 17416dlopen_self=$enable_dlopen_self 17417 17418# Whether dlopen of statically linked programs is supported. 17419dlopen_self_static=$enable_dlopen_self_static 17420 17421# Commands to strip libraries. 17422old_striplib=$lt_old_striplib 17423striplib=$lt_striplib 17424 17425 17426# The linker used to build libraries. 17427LD=$lt_LD 17428 17429# How to create reloadable object files. 17430reload_flag=$lt_reload_flag 17431reload_cmds=$lt_reload_cmds 17432 17433# Commands used to build an old-style archive. 17434old_archive_cmds=$lt_old_archive_cmds 17435 17436# A language specific compiler. 17437CC=$lt_compiler 17438 17439# Is the compiler the GNU compiler? 17440with_gcc=$GCC 17441 17442# Compiler flag to turn off builtin functions. 17443no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17444 17445# Additional compiler flags for building library objects. 17446pic_flag=$lt_lt_prog_compiler_pic 17447 17448# How to pass a linker flag through the compiler. 17449wl=$lt_lt_prog_compiler_wl 17450 17451# Compiler flag to prevent dynamic linking. 17452link_static_flag=$lt_lt_prog_compiler_static 17453 17454# Does compiler simultaneously support -c and -o options? 17455compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17456 17457# Whether or not to add -lc for building shared libraries. 17458build_libtool_need_lc=$archive_cmds_need_lc 17459 17460# Whether or not to disallow shared libs when runtime libs are static. 17461allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17462 17463# Compiler flag to allow reflexive dlopens. 17464export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17465 17466# Compiler flag to generate shared objects directly from archives. 17467whole_archive_flag_spec=$lt_whole_archive_flag_spec 17468 17469# Whether the compiler copes with passing no objects directly. 17470compiler_needs_object=$lt_compiler_needs_object 17471 17472# Create an old-style archive from a shared archive. 17473old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17474 17475# Create a temporary old-style archive to link instead of a shared archive. 17476old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17477 17478# Commands used to build a shared archive. 17479archive_cmds=$lt_archive_cmds 17480archive_expsym_cmds=$lt_archive_expsym_cmds 17481 17482# Commands used to build a loadable module if different from building 17483# a shared archive. 17484module_cmds=$lt_module_cmds 17485module_expsym_cmds=$lt_module_expsym_cmds 17486 17487# Whether we are building with GNU ld or not. 17488with_gnu_ld=$lt_with_gnu_ld 17489 17490# Flag that allows shared libraries with undefined symbols to be built. 17491allow_undefined_flag=$lt_allow_undefined_flag 17492 17493# Flag that enforces no undefined symbols. 17494no_undefined_flag=$lt_no_undefined_flag 17495 17496# Flag to hardcode \$libdir into a binary during linking. 17497# This must work even if \$libdir does not exist 17498hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17499 17500# Whether we need a single "-rpath" flag with a separated argument. 17501hardcode_libdir_separator=$lt_hardcode_libdir_separator 17502 17503# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17504# DIR into the resulting binary. 17505hardcode_direct=$hardcode_direct 17506 17507# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17508# DIR into the resulting binary and the resulting library dependency is 17509# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17510# library is relocated. 17511hardcode_direct_absolute=$hardcode_direct_absolute 17512 17513# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17514# into the resulting binary. 17515hardcode_minus_L=$hardcode_minus_L 17516 17517# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17518# into the resulting binary. 17519hardcode_shlibpath_var=$hardcode_shlibpath_var 17520 17521# Set to "yes" if building a shared library automatically hardcodes DIR 17522# into the library and all subsequent libraries and executables linked 17523# against it. 17524hardcode_automatic=$hardcode_automatic 17525 17526# Set to yes if linker adds runtime paths of dependent libraries 17527# to runtime path list. 17528inherit_rpath=$inherit_rpath 17529 17530# Whether libtool must link a program against all its dependency libraries. 17531link_all_deplibs=$link_all_deplibs 17532 17533# Set to "yes" if exported symbols are required. 17534always_export_symbols=$always_export_symbols 17535 17536# The commands to list exported symbols. 17537export_symbols_cmds=$lt_export_symbols_cmds 17538 17539# Symbols that should not be listed in the preloaded symbols. 17540exclude_expsyms=$lt_exclude_expsyms 17541 17542# Symbols that must always be exported. 17543include_expsyms=$lt_include_expsyms 17544 17545# Commands necessary for linking programs (against libraries) with templates. 17546prelink_cmds=$lt_prelink_cmds 17547 17548# Commands necessary for finishing linking programs. 17549postlink_cmds=$lt_postlink_cmds 17550 17551# Specify filename containing input files. 17552file_list_spec=$lt_file_list_spec 17553 17554# How to hardcode a shared library path into an executable. 17555hardcode_action=$hardcode_action 17556 17557# ### END LIBTOOL CONFIG 17558 17559_LT_EOF 17560 17561 case $host_os in 17562 aix3*) 17563 cat <<\_LT_EOF >> "$cfgfile" 17564# AIX sometimes has problems with the GCC collect2 program. For some 17565# reason, if we set the COLLECT_NAMES environment variable, the problems 17566# vanish in a puff of smoke. 17567if test "X${COLLECT_NAMES+set}" != Xset; then 17568 COLLECT_NAMES= 17569 export COLLECT_NAMES 17570fi 17571_LT_EOF 17572 ;; 17573 esac 17574 17575 17576ltmain="$ac_aux_dir/ltmain.sh" 17577 17578 17579 # We use sed instead of cat because bash on DJGPP gets confused if 17580 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17581 # text mode, it properly converts lines to CR/LF. This bash problem 17582 # is reportedly fixed, but why not run on old versions too? 17583 sed '$q' "$ltmain" >> "$cfgfile" \ 17584 || (rm -f "$cfgfile"; exit 1) 17585 17586 if test x"$xsi_shell" = xyes; then 17587 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 17588func_dirname ()\ 17589{\ 17590\ case ${1} in\ 17591\ */*) func_dirname_result="${1%/*}${2}" ;;\ 17592\ * ) func_dirname_result="${3}" ;;\ 17593\ esac\ 17594} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 17595 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17596 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17597test 0 -eq $? || _lt_function_replace_fail=: 17598 17599 17600 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 17601func_basename ()\ 17602{\ 17603\ func_basename_result="${1##*/}"\ 17604} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 17605 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17606 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17607test 0 -eq $? || _lt_function_replace_fail=: 17608 17609 17610 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 17611func_dirname_and_basename ()\ 17612{\ 17613\ case ${1} in\ 17614\ */*) func_dirname_result="${1%/*}${2}" ;;\ 17615\ * ) func_dirname_result="${3}" ;;\ 17616\ esac\ 17617\ func_basename_result="${1##*/}"\ 17618} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 17619 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17620 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17621test 0 -eq $? || _lt_function_replace_fail=: 17622 17623 17624 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 17625func_stripname ()\ 17626{\ 17627\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 17628\ # positional parameters, so assign one to ordinary parameter first.\ 17629\ func_stripname_result=${3}\ 17630\ func_stripname_result=${func_stripname_result#"${1}"}\ 17631\ func_stripname_result=${func_stripname_result%"${2}"}\ 17632} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 17633 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17634 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17635test 0 -eq $? || _lt_function_replace_fail=: 17636 17637 17638 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 17639func_split_long_opt ()\ 17640{\ 17641\ func_split_long_opt_name=${1%%=*}\ 17642\ func_split_long_opt_arg=${1#*=}\ 17643} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 17644 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17645 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17646test 0 -eq $? || _lt_function_replace_fail=: 17647 17648 17649 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 17650func_split_short_opt ()\ 17651{\ 17652\ func_split_short_opt_arg=${1#??}\ 17653\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 17654} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 17655 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17656 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17657test 0 -eq $? || _lt_function_replace_fail=: 17658 17659 17660 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 17661func_lo2o ()\ 17662{\ 17663\ case ${1} in\ 17664\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 17665\ *) func_lo2o_result=${1} ;;\ 17666\ esac\ 17667} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 17668 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17669 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17670test 0 -eq $? || _lt_function_replace_fail=: 17671 17672 17673 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 17674func_xform ()\ 17675{\ 17676 func_xform_result=${1%.*}.lo\ 17677} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 17678 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17679 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17680test 0 -eq $? || _lt_function_replace_fail=: 17681 17682 17683 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 17684func_arith ()\ 17685{\ 17686 func_arith_result=$(( $* ))\ 17687} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 17688 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17689 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17690test 0 -eq $? || _lt_function_replace_fail=: 17691 17692 17693 sed -e '/^func_len ()$/,/^} # func_len /c\ 17694func_len ()\ 17695{\ 17696 func_len_result=${#1}\ 17697} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 17698 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17699 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17700test 0 -eq $? || _lt_function_replace_fail=: 17701 17702fi 17703 17704if test x"$lt_shell_append" = xyes; then 17705 sed -e '/^func_append ()$/,/^} # func_append /c\ 17706func_append ()\ 17707{\ 17708 eval "${1}+=\\${2}"\ 17709} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 17710 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17711 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17712test 0 -eq $? || _lt_function_replace_fail=: 17713 17714 17715 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 17716func_append_quoted ()\ 17717{\ 17718\ func_quote_for_eval "${2}"\ 17719\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 17720} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 17721 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17722 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17723test 0 -eq $? || _lt_function_replace_fail=: 17724 17725 17726 # Save a `func_append' function call where possible by direct use of '+=' 17727 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 17728 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17729 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17730 test 0 -eq $? || _lt_function_replace_fail=: 17731else 17732 # Save a `func_append' function call even when '+=' is not available 17733 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 17734 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17735 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17736 test 0 -eq $? || _lt_function_replace_fail=: 17737fi 17738 17739if test x"$_lt_function_replace_fail" = x":"; then 17740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 17741$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 17742fi 17743 17744 17745 mv -f "$cfgfile" "$ofile" || 17746 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17747 chmod +x "$ofile" 17748 17749 ;; 17750 17751 esac 17752done # for ac_tag 17753 17754 17755as_fn_exit 0 17756_ACEOF 17757ac_clean_files=$ac_clean_files_save 17758 17759test $ac_write_fail = 0 || 17760 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17761 17762 17763# configure is writing to config.log, and then calls config.status. 17764# config.status does its own redirection, appending to config.log. 17765# Unfortunately, on DOS this fails, as config.log is still kept open 17766# by configure, so config.status won't be able to write to it; its 17767# output is simply discarded. So we exec the FD to /dev/null, 17768# effectively closing config.log, so it can be properly (re)opened and 17769# appended to by config.status. When coming back to configure, we 17770# need to make the FD available again. 17771if test "$no_create" != yes; then 17772 ac_cs_success=: 17773 ac_config_status_args= 17774 test "$silent" = yes && 17775 ac_config_status_args="$ac_config_status_args --quiet" 17776 exec 5>/dev/null 17777 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17778 exec 5>>config.log 17779 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17780 # would make configure fail if this is the last instruction. 17781 $ac_cs_success || as_fn_exit 1 17782fi 17783if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17785$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17786fi 17787 17788