1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for nut 2.7.4. 4# 5# Report bugs to <https://github.com/networkupstools/nut/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://github.com/networkupstools/nut/issues about 279$0: your system, including any error possibly output before 280$0: this message. Then install a modern shell, or manually 281$0: run the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='nut' 592PACKAGE_TARNAME='nut' 593PACKAGE_VERSION='2.7.4' 594PACKAGE_STRING='nut 2.7.4' 595PACKAGE_BUGREPORT='https://github.com/networkupstools/nut/issues' 596PACKAGE_URL='' 597 598ac_unique_file="server/upsd.c" 599ac_default_prefix=/usr/local/ups 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_config_libobj_dir=common 637ac_subst_vars='am__EXEEXT_FALSE 638am__EXEEXT_TRUE 639LTLIBOBJS 640udevdir 641hotplugdir 642systemdsystemshutdowndir 643systemdsystemunitdir 644pkgconfigdir 645driverexecdir 646devddir 647cgiexecdir 648WORDS_BIGENDIAN 649SUN_LIBUSB 650RUN_AS_GROUP 651RUN_AS_USER 652PORT 653SBINDIR 654DRVPATH 655LIBDIR 656BINDIR 657CONFPATH 658STATEPATH 659PIDPATH 660SERLIBS 661NETLIBS 662DRIVER_INSTALL_TARGET 663DRIVER_MAN_LIST 664DRIVER_BUILD_LIST 665LIBLTDL_LIBS 666LIBLTDL_CFLAGS 667LIBWRAP_LIBS 668LIBWRAP_CFLAGS 669DOC_BUILD_LIST 670LIBIPMI_LIBS 671LIBIPMI_CFLAGS 672LIBPOWERMAN_LIBS 673LIBPOWERMAN_CFLAGS 674LIBAVAHI_LIBS 675LIBAVAHI_CFLAGS 676LIBNEON_LIBS 677LIBNEON_CFLAGS 678LIBUSB_LIBS 679LIBUSB_CFLAGS 680LIBNETSNMP_LIBS 681LIBNETSNMP_CFLAGS 682LIBGD_LDFLAGS 683LIBGD_CFLAGS 684LIBSSL_LIBS 685LIBSSL_CFLAGS 686NUT_NETVERSION 687TREE_VERSION 688OS_NAME 689now 690SYSTEM_AIX_FALSE 691SYSTEM_AIX_TRUE 692HAVE_ASPELL_FALSE 693HAVE_ASPELL_TRUE 694ASPELL 695MANUALUPDATE_FALSE 696MANUALUPDATE_TRUE 697WITH_DEVD_FALSE 698WITH_DEVD_TRUE 699WITH_UDEV_FALSE 700WITH_UDEV_TRUE 701WITH_HOTPLUG_FALSE 702WITH_HOTPLUG_TRUE 703HAVE_SYSTEMD_FALSE 704HAVE_SYSTEMD_TRUE 705WITH_PKG_CONFIG_FALSE 706WITH_PKG_CONFIG_TRUE 707SOME_DRIVERS_FALSE 708SOME_DRIVERS_TRUE 709WITH_DEV_FALSE 710WITH_DEV_TRUE 711CXXCPP 712OTOOL64 713OTOOL 714LIPO 715NMEDIT 716DSYMUTIL 717MANIFEST_TOOL 718ac_ct_AR 719DLLTOOL 720OBJDUMP 721LN_S 722NM 723ac_ct_DUMPBIN 724DUMPBIN 725LD 726FGREP 727SED 728LIBTOOL 729HAVE_ASCIIDOC_FALSE 730HAVE_ASCIIDOC_TRUE 731WITH_ASCIIDOC_FALSE 732WITH_ASCIIDOC_TRUE 733SOURCE_HIGHLIGHT 734XMLLINT 735XSLTPROC 736DBLATEX 737A2X 738ASCIIDOC 739WITH_CGI_FALSE 740WITH_CGI_TRUE 741WITH_LIBLTDL_FALSE 742WITH_LIBLTDL_TRUE 743WITH_WRAP_FALSE 744WITH_WRAP_TRUE 745WITH_SSL_FALSE 746WITH_SSL_TRUE 747WITH_OPENSSL_FALSE 748WITH_OPENSSL_TRUE 749WITH_NSS_FALSE 750WITH_NSS_TRUE 751WITH_LINUX_I2C_FALSE 752WITH_LINUX_I2C_TRUE 753WITH_MACOSX_FALSE 754WITH_MACOSX_TRUE 755WITH_FREEIPMI_FALSE 756WITH_FREEIPMI_TRUE 757WITH_IPMI_FALSE 758WITH_IPMI_TRUE 759WITH_LIBPOWERMAN_FALSE 760WITH_LIBPOWERMAN_TRUE 761WITH_AVAHI_FALSE 762WITH_AVAHI_TRUE 763WITH_NEON_FALSE 764WITH_NEON_TRUE 765WITH_SNMP_FALSE 766WITH_SNMP_TRUE 767WITH_USB_FALSE 768WITH_USB_TRUE 769WITH_SERIAL_FALSE 770WITH_SERIAL_TRUE 771HAVE_CPPUNIT_FALSE 772HAVE_CPPUNIT_TRUE 773CPPUNIT_LIBS 774CPPUNIT_CFLAGS 775PKG_CONFIG_LIBDIR 776PKG_CONFIG_PATH 777PKG_CONFIG 778LIBOBJS 779RANLIB 780AR 781am__fastdepCXX_FALSE 782am__fastdepCXX_TRUE 783CXXDEPMODE 784ac_ct_CXX 785CXXFLAGS 786CXX 787MAINT 788MAINTAINER_MODE_FALSE 789MAINTAINER_MODE_TRUE 790EGREP 791GREP 792CPP 793am__fastdepCC_FALSE 794am__fastdepCC_TRUE 795CCDEPMODE 796am__nodep 797AMDEPBACKSLASH 798AMDEP_FALSE 799AMDEP_TRUE 800am__quote 801am__include 802DEPDIR 803OBJEXT 804EXEEXT 805ac_ct_CC 806CPPFLAGS 807LDFLAGS 808CFLAGS 809CC 810AM_BACKSLASH 811AM_DEFAULT_VERBOSITY 812AM_DEFAULT_V 813AM_V 814am__untar 815am__tar 816AMTAR 817am__leading_dot 818SET_MAKE 819AWK 820mkdir_p 821MKDIR_P 822INSTALL_STRIP_PROGRAM 823STRIP 824install_sh 825MAKEINFO 826AUTOHEADER 827AUTOMAKE 828AUTOCONF 829ACLOCAL 830VERSION 831PACKAGE 832CYGPATH_W 833am__isrc 834INSTALL_DATA 835INSTALL_SCRIPT 836INSTALL_PROGRAM 837target_os 838target_vendor 839target_cpu 840target 841host_os 842host_vendor 843host_cpu 844host 845build_os 846build_vendor 847build_cpu 848build 849target_alias 850host_alias 851build_alias 852LIBS 853ECHO_T 854ECHO_N 855ECHO_C 856DEFS 857mandir 858localedir 859libdir 860psdir 861pdfdir 862dvidir 863htmldir 864infodir 865docdir 866oldincludedir 867includedir 868localstatedir 869sharedstatedir 870sysconfdir 871datadir 872datarootdir 873libexecdir 874sbindir 875bindir 876program_transform_name 877prefix 878exec_prefix 879PACKAGE_URL 880PACKAGE_BUGREPORT 881PACKAGE_STRING 882PACKAGE_VERSION 883PACKAGE_TARNAME 884PACKAGE_NAME 885PATH_SEPARATOR 886SHELL' 887ac_subst_files='' 888ac_user_opts=' 889enable_option_checking 890enable_silent_rules 891enable_dependency_tracking 892enable_maintainer_mode 893with_all 894with_dev 895with_serial 896with_usb 897with_doc 898with_avahi 899with_snmp_includes 900with_snmp_libs 901with_usb_includes 902with_usb_libs 903with_snmp 904with_neon 905with_neon_includes 906with_neon_libs 907with_powerman 908with_powerman_includes 909with_powerman_libs 910with_avahi_includes 911with_avahi_libs 912with_ipmi 913with_freeipmi 914with_freeipmi_includes 915with_freeipmi_libs 916with_macosx_ups 917with_linux_i2c 918with_ssl 919with_nss 920with_openssl 921with_nss_includes 922with_nss_libs 923with_openssl_includes 924with_openssl_libs 925with_wrap 926with_libltdl 927with_libltdl_includes 928with_libltdl_libs 929with_cgi 930with_gd_includes 931with_gd_libs 932enable_shared 933enable_static 934with_pic 935enable_fast_install 936with_gnu_ld 937with_sysroot 938enable_libtool_lock 939with_statepath 940with_altpidpath 941with_drvpath 942with_cgipath 943with_htmlpath 944with_pidpath 945with_port 946with_user 947with_group 948with_logfacility 949with_drivers 950enable_strip 951with_pkgconfig_dir 952with_systemdsystemunitdir 953with_hotplug_dir 954with_udev_dir 955with_devd_dir 956' 957 ac_precious_vars='build_alias 958host_alias 959target_alias 960CC 961CFLAGS 962LDFLAGS 963LIBS 964CPPFLAGS 965CPP 966CXX 967CXXFLAGS 968CCC 969PKG_CONFIG 970PKG_CONFIG_PATH 971PKG_CONFIG_LIBDIR 972CPPUNIT_CFLAGS 973CPPUNIT_LIBS 974CXXCPP' 975 976 977# Initialize some variables set by options. 978ac_init_help= 979ac_init_version=false 980ac_unrecognized_opts= 981ac_unrecognized_sep= 982# The variables have the same names as the options, with 983# dashes changed to underlines. 984cache_file=/dev/null 985exec_prefix=NONE 986no_create= 987no_recursion= 988prefix=NONE 989program_prefix=NONE 990program_suffix=NONE 991program_transform_name=s,x,x, 992silent= 993site= 994srcdir= 995verbose= 996x_includes=NONE 997x_libraries=NONE 998 999# Installation directory options. 1000# These are left unexpanded so users can "make install exec_prefix=/foo" 1001# and all the variables that are supposed to be based on exec_prefix 1002# by default will actually change. 1003# Use braces instead of parens because sh, perl, etc. also accept them. 1004# (The list follows the same order as the GNU Coding Standards.) 1005bindir='${exec_prefix}/bin' 1006sbindir='${exec_prefix}/sbin' 1007libexecdir='${exec_prefix}/libexec' 1008datarootdir='${prefix}/share' 1009datadir='${datarootdir}' 1010sysconfdir='${prefix}/etc' 1011sharedstatedir='${prefix}/com' 1012localstatedir='${prefix}/var' 1013includedir='${prefix}/include' 1014oldincludedir='/usr/include' 1015docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1016infodir='${datarootdir}/info' 1017htmldir='${docdir}' 1018dvidir='${docdir}' 1019pdfdir='${docdir}' 1020psdir='${docdir}' 1021libdir='${exec_prefix}/lib' 1022localedir='${datarootdir}/locale' 1023mandir='${datarootdir}/man' 1024 1025ac_prev= 1026ac_dashdash= 1027for ac_option 1028do 1029 # If the previous option needs an argument, assign it. 1030 if test -n "$ac_prev"; then 1031 eval $ac_prev=\$ac_option 1032 ac_prev= 1033 continue 1034 fi 1035 1036 case $ac_option in 1037 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1038 *=) ac_optarg= ;; 1039 *) ac_optarg=yes ;; 1040 esac 1041 1042 # Accept the important Cygnus configure options, so we can diagnose typos. 1043 1044 case $ac_dashdash$ac_option in 1045 --) 1046 ac_dashdash=yes ;; 1047 1048 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1049 ac_prev=bindir ;; 1050 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1051 bindir=$ac_optarg ;; 1052 1053 -build | --build | --buil | --bui | --bu) 1054 ac_prev=build_alias ;; 1055 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1056 build_alias=$ac_optarg ;; 1057 1058 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1059 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1060 ac_prev=cache_file ;; 1061 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1062 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1063 cache_file=$ac_optarg ;; 1064 1065 --config-cache | -C) 1066 cache_file=config.cache ;; 1067 1068 -datadir | --datadir | --datadi | --datad) 1069 ac_prev=datadir ;; 1070 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1071 datadir=$ac_optarg ;; 1072 1073 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1074 | --dataroo | --dataro | --datar) 1075 ac_prev=datarootdir ;; 1076 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1077 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1078 datarootdir=$ac_optarg ;; 1079 1080 -disable-* | --disable-*) 1081 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1082 # Reject names that are not valid shell variable names. 1083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1084 as_fn_error $? "invalid feature name: $ac_useropt" 1085 ac_useropt_orig=$ac_useropt 1086 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1087 case $ac_user_opts in 1088 *" 1089"enable_$ac_useropt" 1090"*) ;; 1091 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1092 ac_unrecognized_sep=', ';; 1093 esac 1094 eval enable_$ac_useropt=no ;; 1095 1096 -docdir | --docdir | --docdi | --doc | --do) 1097 ac_prev=docdir ;; 1098 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1099 docdir=$ac_optarg ;; 1100 1101 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1102 ac_prev=dvidir ;; 1103 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1104 dvidir=$ac_optarg ;; 1105 1106 -enable-* | --enable-*) 1107 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1108 # Reject names that are not valid shell variable names. 1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1110 as_fn_error $? "invalid feature name: $ac_useropt" 1111 ac_useropt_orig=$ac_useropt 1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1113 case $ac_user_opts in 1114 *" 1115"enable_$ac_useropt" 1116"*) ;; 1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1118 ac_unrecognized_sep=', ';; 1119 esac 1120 eval enable_$ac_useropt=\$ac_optarg ;; 1121 1122 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1123 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1124 | --exec | --exe | --ex) 1125 ac_prev=exec_prefix ;; 1126 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1127 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1128 | --exec=* | --exe=* | --ex=*) 1129 exec_prefix=$ac_optarg ;; 1130 1131 -gas | --gas | --ga | --g) 1132 # Obsolete; use --with-gas. 1133 with_gas=yes ;; 1134 1135 -help | --help | --hel | --he | -h) 1136 ac_init_help=long ;; 1137 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1138 ac_init_help=recursive ;; 1139 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1140 ac_init_help=short ;; 1141 1142 -host | --host | --hos | --ho) 1143 ac_prev=host_alias ;; 1144 -host=* | --host=* | --hos=* | --ho=*) 1145 host_alias=$ac_optarg ;; 1146 1147 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1148 ac_prev=htmldir ;; 1149 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1150 | --ht=*) 1151 htmldir=$ac_optarg ;; 1152 1153 -includedir | --includedir | --includedi | --included | --include \ 1154 | --includ | --inclu | --incl | --inc) 1155 ac_prev=includedir ;; 1156 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1157 | --includ=* | --inclu=* | --incl=* | --inc=*) 1158 includedir=$ac_optarg ;; 1159 1160 -infodir | --infodir | --infodi | --infod | --info | --inf) 1161 ac_prev=infodir ;; 1162 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1163 infodir=$ac_optarg ;; 1164 1165 -libdir | --libdir | --libdi | --libd) 1166 ac_prev=libdir ;; 1167 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1168 libdir=$ac_optarg ;; 1169 1170 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1171 | --libexe | --libex | --libe) 1172 ac_prev=libexecdir ;; 1173 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1174 | --libexe=* | --libex=* | --libe=*) 1175 libexecdir=$ac_optarg ;; 1176 1177 -localedir | --localedir | --localedi | --localed | --locale) 1178 ac_prev=localedir ;; 1179 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1180 localedir=$ac_optarg ;; 1181 1182 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1183 | --localstate | --localstat | --localsta | --localst | --locals) 1184 ac_prev=localstatedir ;; 1185 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1186 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1187 localstatedir=$ac_optarg ;; 1188 1189 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1190 ac_prev=mandir ;; 1191 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1192 mandir=$ac_optarg ;; 1193 1194 -nfp | --nfp | --nf) 1195 # Obsolete; use --without-fp. 1196 with_fp=no ;; 1197 1198 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1199 | --no-cr | --no-c | -n) 1200 no_create=yes ;; 1201 1202 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1203 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1204 no_recursion=yes ;; 1205 1206 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1207 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1208 | --oldin | --oldi | --old | --ol | --o) 1209 ac_prev=oldincludedir ;; 1210 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1211 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1212 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1213 oldincludedir=$ac_optarg ;; 1214 1215 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1216 ac_prev=prefix ;; 1217 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1218 prefix=$ac_optarg ;; 1219 1220 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1221 | --program-pre | --program-pr | --program-p) 1222 ac_prev=program_prefix ;; 1223 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1224 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1225 program_prefix=$ac_optarg ;; 1226 1227 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1228 | --program-suf | --program-su | --program-s) 1229 ac_prev=program_suffix ;; 1230 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1231 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1232 program_suffix=$ac_optarg ;; 1233 1234 -program-transform-name | --program-transform-name \ 1235 | --program-transform-nam | --program-transform-na \ 1236 | --program-transform-n | --program-transform- \ 1237 | --program-transform | --program-transfor \ 1238 | --program-transfo | --program-transf \ 1239 | --program-trans | --program-tran \ 1240 | --progr-tra | --program-tr | --program-t) 1241 ac_prev=program_transform_name ;; 1242 -program-transform-name=* | --program-transform-name=* \ 1243 | --program-transform-nam=* | --program-transform-na=* \ 1244 | --program-transform-n=* | --program-transform-=* \ 1245 | --program-transform=* | --program-transfor=* \ 1246 | --program-transfo=* | --program-transf=* \ 1247 | --program-trans=* | --program-tran=* \ 1248 | --progr-tra=* | --program-tr=* | --program-t=*) 1249 program_transform_name=$ac_optarg ;; 1250 1251 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1252 ac_prev=pdfdir ;; 1253 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1254 pdfdir=$ac_optarg ;; 1255 1256 -psdir | --psdir | --psdi | --psd | --ps) 1257 ac_prev=psdir ;; 1258 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1259 psdir=$ac_optarg ;; 1260 1261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1262 | -silent | --silent | --silen | --sile | --sil) 1263 silent=yes ;; 1264 1265 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1266 ac_prev=sbindir ;; 1267 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1268 | --sbi=* | --sb=*) 1269 sbindir=$ac_optarg ;; 1270 1271 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1272 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1273 | --sharedst | --shareds | --shared | --share | --shar \ 1274 | --sha | --sh) 1275 ac_prev=sharedstatedir ;; 1276 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1277 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1278 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1279 | --sha=* | --sh=*) 1280 sharedstatedir=$ac_optarg ;; 1281 1282 -site | --site | --sit) 1283 ac_prev=site ;; 1284 -site=* | --site=* | --sit=*) 1285 site=$ac_optarg ;; 1286 1287 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1288 ac_prev=srcdir ;; 1289 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1290 srcdir=$ac_optarg ;; 1291 1292 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1293 | --syscon | --sysco | --sysc | --sys | --sy) 1294 ac_prev=sysconfdir ;; 1295 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1296 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1297 sysconfdir=$ac_optarg ;; 1298 1299 -target | --target | --targe | --targ | --tar | --ta | --t) 1300 ac_prev=target_alias ;; 1301 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1302 target_alias=$ac_optarg ;; 1303 1304 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1305 verbose=yes ;; 1306 1307 -version | --version | --versio | --versi | --vers | -V) 1308 ac_init_version=: ;; 1309 1310 -with-* | --with-*) 1311 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1312 # Reject names that are not valid shell variable names. 1313 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1314 as_fn_error $? "invalid package name: $ac_useropt" 1315 ac_useropt_orig=$ac_useropt 1316 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1317 case $ac_user_opts in 1318 *" 1319"with_$ac_useropt" 1320"*) ;; 1321 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1322 ac_unrecognized_sep=', ';; 1323 esac 1324 eval with_$ac_useropt=\$ac_optarg ;; 1325 1326 -without-* | --without-*) 1327 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1328 # Reject names that are not valid shell variable names. 1329 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1330 as_fn_error $? "invalid package name: $ac_useropt" 1331 ac_useropt_orig=$ac_useropt 1332 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1333 case $ac_user_opts in 1334 *" 1335"with_$ac_useropt" 1336"*) ;; 1337 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1338 ac_unrecognized_sep=', ';; 1339 esac 1340 eval with_$ac_useropt=no ;; 1341 1342 --x) 1343 # Obsolete; use --with-x. 1344 with_x=yes ;; 1345 1346 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1347 | --x-incl | --x-inc | --x-in | --x-i) 1348 ac_prev=x_includes ;; 1349 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1350 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1351 x_includes=$ac_optarg ;; 1352 1353 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1354 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1355 ac_prev=x_libraries ;; 1356 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1357 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1358 x_libraries=$ac_optarg ;; 1359 1360 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1361Try \`$0 --help' for more information" 1362 ;; 1363 1364 *=*) 1365 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1366 # Reject names that are not valid shell variable names. 1367 case $ac_envvar in #( 1368 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1369 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1370 esac 1371 eval $ac_envvar=\$ac_optarg 1372 export $ac_envvar ;; 1373 1374 *) 1375 # FIXME: should be removed in autoconf 3.0. 1376 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1377 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1378 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1379 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1380 ;; 1381 1382 esac 1383done 1384 1385if test -n "$ac_prev"; then 1386 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1387 as_fn_error $? "missing argument to $ac_option" 1388fi 1389 1390if test -n "$ac_unrecognized_opts"; then 1391 case $enable_option_checking in 1392 no) ;; 1393 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1394 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1395 esac 1396fi 1397 1398# Check all directory arguments for consistency. 1399for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1400 datadir sysconfdir sharedstatedir localstatedir includedir \ 1401 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1402 libdir localedir mandir 1403do 1404 eval ac_val=\$$ac_var 1405 # Remove trailing slashes. 1406 case $ac_val in 1407 */ ) 1408 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1409 eval $ac_var=\$ac_val;; 1410 esac 1411 # Be sure to have absolute directory names. 1412 case $ac_val in 1413 [\\/$]* | ?:[\\/]* ) continue;; 1414 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1415 esac 1416 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1417done 1418 1419# There might be people who depend on the old broken behavior: `$host' 1420# used to hold the argument of --host etc. 1421# FIXME: To remove some day. 1422build=$build_alias 1423host=$host_alias 1424target=$target_alias 1425 1426# FIXME: To remove some day. 1427if test "x$host_alias" != x; then 1428 if test "x$build_alias" = x; then 1429 cross_compiling=maybe 1430 elif test "x$build_alias" != "x$host_alias"; then 1431 cross_compiling=yes 1432 fi 1433fi 1434 1435ac_tool_prefix= 1436test -n "$host_alias" && ac_tool_prefix=$host_alias- 1437 1438test "$silent" = yes && exec 6>/dev/null 1439 1440 1441ac_pwd=`pwd` && test -n "$ac_pwd" && 1442ac_ls_di=`ls -di .` && 1443ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1444 as_fn_error $? "working directory cannot be determined" 1445test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1446 as_fn_error $? "pwd does not report name of working directory" 1447 1448 1449# Find the source files, if location was not specified. 1450if test -z "$srcdir"; then 1451 ac_srcdir_defaulted=yes 1452 # Try the directory containing this script, then the parent directory. 1453 ac_confdir=`$as_dirname -- "$as_myself" || 1454$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1455 X"$as_myself" : 'X\(//\)[^/]' \| \ 1456 X"$as_myself" : 'X\(//\)$' \| \ 1457 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1458$as_echo X"$as_myself" | 1459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1460 s//\1/ 1461 q 1462 } 1463 /^X\(\/\/\)[^/].*/{ 1464 s//\1/ 1465 q 1466 } 1467 /^X\(\/\/\)$/{ 1468 s//\1/ 1469 q 1470 } 1471 /^X\(\/\).*/{ 1472 s//\1/ 1473 q 1474 } 1475 s/.*/./; q'` 1476 srcdir=$ac_confdir 1477 if test ! -r "$srcdir/$ac_unique_file"; then 1478 srcdir=.. 1479 fi 1480else 1481 ac_srcdir_defaulted=no 1482fi 1483if test ! -r "$srcdir/$ac_unique_file"; then 1484 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1485 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1486fi 1487ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1488ac_abs_confdir=`( 1489 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1490 pwd)` 1491# When building in place, set srcdir=. 1492if test "$ac_abs_confdir" = "$ac_pwd"; then 1493 srcdir=. 1494fi 1495# Remove unnecessary trailing slashes from srcdir. 1496# Double slashes in file names in object file debugging info 1497# mess up M-x gdb in Emacs. 1498case $srcdir in 1499*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1500esac 1501for ac_var in $ac_precious_vars; do 1502 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1503 eval ac_env_${ac_var}_value=\$${ac_var} 1504 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1505 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1506done 1507 1508# 1509# Report the --help message. 1510# 1511if test "$ac_init_help" = "long"; then 1512 # Omit some internal or obsolete options to make the list less imposing. 1513 # This message is too long to be a string in the A/UX 3.1 sh. 1514 cat <<_ACEOF 1515\`configure' configures nut 2.7.4 to adapt to many kinds of systems. 1516 1517Usage: $0 [OPTION]... [VAR=VALUE]... 1518 1519To assign environment variables (e.g., CC, CFLAGS...), specify them as 1520VAR=VALUE. See below for descriptions of some of the useful variables. 1521 1522Defaults for the options are specified in brackets. 1523 1524Configuration: 1525 -h, --help display this help and exit 1526 --help=short display options specific to this package 1527 --help=recursive display the short help of all the included packages 1528 -V, --version display version information and exit 1529 -q, --quiet, --silent do not print \`checking ...' messages 1530 --cache-file=FILE cache test results in FILE [disabled] 1531 -C, --config-cache alias for \`--cache-file=config.cache' 1532 -n, --no-create do not create output files 1533 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1534 1535Installation directories: 1536 --prefix=PREFIX install architecture-independent files in PREFIX 1537 [$ac_default_prefix] 1538 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1539 [PREFIX] 1540 1541By default, \`make install' will install all the files in 1542\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1543an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1544for instance \`--prefix=\$HOME'. 1545 1546For better control, use the options below. 1547 1548Fine tuning of the installation directories: 1549 --bindir=DIR user executables [EPREFIX/bin] 1550 --sbindir=DIR system admin executables [EPREFIX/sbin] 1551 --libexecdir=DIR program executables [EPREFIX/libexec] 1552 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1553 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1554 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1555 --libdir=DIR object code libraries [EPREFIX/lib] 1556 --includedir=DIR C header files [PREFIX/include] 1557 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1558 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1559 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1560 --infodir=DIR info documentation [DATAROOTDIR/info] 1561 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1562 --mandir=DIR man documentation [DATAROOTDIR/man] 1563 --docdir=DIR documentation root [DATAROOTDIR/doc/nut] 1564 --htmldir=DIR html documentation [DOCDIR] 1565 --dvidir=DIR dvi documentation [DOCDIR] 1566 --pdfdir=DIR pdf documentation [DOCDIR] 1567 --psdir=DIR ps documentation [DOCDIR] 1568_ACEOF 1569 1570 cat <<\_ACEOF 1571 1572Program names: 1573 --program-prefix=PREFIX prepend PREFIX to installed program names 1574 --program-suffix=SUFFIX append SUFFIX to installed program names 1575 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1576 1577System types: 1578 --build=BUILD configure for building on BUILD [guessed] 1579 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1580 --target=TARGET configure for building compilers for TARGET [HOST] 1581_ACEOF 1582fi 1583 1584if test -n "$ac_init_help"; then 1585 case $ac_init_help in 1586 short | recursive ) echo "Configuration of nut 2.7.4:";; 1587 esac 1588 cat <<\_ACEOF 1589 1590Optional Features: 1591 --disable-option-checking ignore unrecognized --enable/--with options 1592 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1593 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1594 --enable-silent-rules less verbose build output (undo: "make V=1") 1595 --disable-silent-rules verbose build output (undo: "make V=0") 1596 --enable-dependency-tracking 1597 do not reject slow dependency extractors 1598 --disable-dependency-tracking 1599 speeds up one-time build 1600 --enable-maintainer-mode 1601 enable make rules and dependencies not useful (and 1602 sometimes confusing) to the casual installer 1603 --enable-shared[=PKGS] build shared libraries [default=yes] 1604 --enable-static[=PKGS] build static libraries [default=yes] 1605 --enable-fast-install[=PKGS] 1606 optimize for fast installation [default=yes] 1607 --disable-libtool-lock avoid locking (might break parallel builds) 1608 --enable-strip Strip debugging symbols from binaries (no) 1609 1610Optional Packages: 1611 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1612 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1613 --with-all enable serial, usb, snmp, neon, ipmi, powerman, cgi, 1614 dev, avahi, linux_i2c 1615 --with-dev build and install the development files (no) 1616 --with-serial build and install serial drivers (yes) 1617 --with-usb build and install USB drivers (auto) 1618 --with-doc build and install documentation (no) 1619 --with-avahi build and install Avahi support (auto) 1620 [--with-snmp-includes=CFLAGS] 1621 include flags for the Net-SNMP library 1622 [--with-snmp-libs=LIBS] linker flags for the Net-SNMP library 1623 [--with-usb-includes=CFLAGS] 1624 include flags for the libusb library 1625 [--with-usb-libs=LIBS] linker flags for the libusb library 1626 --with-snmp build and install SNMP drivers (auto) 1627 --with-neon build and install neon based XML/HTTP driver (auto) 1628 [--with-neon-includes=CFLAGS] 1629 include flags for the neon library 1630 [--with-neon-libs=LIBS] linker flags for the neon library 1631 --with-powerman build and install Powerman PDU client driver (auto) 1632 [--with-powerman-includes=CFLAGS] 1633 include flags for the libpowerman library 1634 [--with-powerman-libs=LIBS] 1635 linker flags for the libpowerman library 1636 [--with-avahi-includes=CFLAGS] 1637 include flags for the avahi library 1638 [--with-avahi-libs=LIBS] 1639 linker flags for the avahi library 1640 --with-ipmi build and install IPMI PSU driver (auto) 1641 --with-freeipmi enable IPMI support using FreeIPMI (auto) 1642 [--with-freeipmi-includes=CFLAGS] 1643 include flags for the FreeIPMI library 1644 [--with-freeipmi-libs=LIBS] 1645 linker flags for the FreeIPMI library 1646 --with-macosx_ups build and install Mac OS X Power Sources meta-driver 1647 (auto) 1648 --with-linux_i2c build and install i2c drivers (auto) 1649 --with-ssl enable SSL support (either NSS or OpenSSL) (auto) 1650 --with-nss enable SSL support using Mozilla NSS (auto) 1651 --with-openssl enable SSL support using OpenSSL (auto) 1652 [--with-nss-includes=CFLAGS] 1653 include flags for the Mozilla NSS library 1654 [--with-nss-libs=LIBS] linker flags for the Mozilla NSS library 1655 [--with-openssl-includes=CFLAGS] 1656 include flags for the OpenSSL library 1657 [--with-openssl-libs=LIBS] 1658 linker flags for the OpenSSL library 1659 --with-wrap enable libwrap (tcp-wrappers) support (auto) 1660 --with-libltdl enable libltdl (Libtool dlopen abstraction) support 1661 (auto) 1662 [--with-libltdl-includes=CFLAGS] 1663 include flags for the libltdl library 1664 [--with-libltdl-libs=LIBS] 1665 linker flags for the libltdl library 1666 --with-cgi build and install the CGI programs (no) 1667 [--with-gd-includes=CFLAGS] 1668 include flags for the gd library 1669 [--with-gd-libs=LDFLAGS] 1670 linker flags for the gd library 1671 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1672 both] 1673 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1674 --with-sysroot=DIR Search for dependent libraries within DIR 1675 (or the compiler's sysroot if not specified). 1676 --with-statepath=PATH path for ups state files (/var/state/ups) 1677 --with-altpidpath=PATH path for driver/upsd .pid files (<statepath>) 1678 --with-drvpath=PATH where to install UPS drivers (EPREFIX/bin) 1679 --with-cgipath=PATH where to install CGI programs (EPREFIX/cgi-bin) 1680 --with-htmlpath=PATH where to install HTML files (PREFIX/html) 1681 --with-pidpath=PATH path for .pid files (/var/run) 1682 --with-port=PORT port for network communications (3493) 1683 --with-user=username user for programs started as root (nobody) 1684 --with-group=groupname group membership of user for programs started as 1685 root (nogroup) 1686 --with-logfacility=FACILITY 1687 facility for log messages (LOG_DAEMON) 1688 [--with-drivers=driver[,driver]] 1689 Only build specific drivers (all) 1690 --with-pkgconfig-dir=PATH 1691 where to install pkg-config *.pc files 1692 (EPREFIX/lib/pkgconfig) 1693 --with-systemdsystemunitdir=DIR 1694 Directory for systemd service files (auto) 1695 --with-hotplug-dir=PATH where to install hotplug rules (/etc/hotplug) 1696 --with-udev-dir=PATH where to install udev rules (/lib/udev or /etc/udev) 1697 --with-devd-dir=PATH where to install devd.conf file (/usr/local/etc/devd 1698 or /etc/devd) 1699 1700Some influential environment variables: 1701 CC C compiler command 1702 CFLAGS C compiler flags 1703 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1704 nonstandard directory <lib dir> 1705 LIBS libraries to pass to the linker, e.g. -l<library> 1706 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1707 you have headers in a nonstandard directory <include dir> 1708 CPP C preprocessor 1709 CXX C++ compiler command 1710 CXXFLAGS C++ compiler flags 1711 PKG_CONFIG path to pkg-config utility 1712 PKG_CONFIG_PATH 1713 directories to add to pkg-config's search path 1714 PKG_CONFIG_LIBDIR 1715 path overriding pkg-config's built-in search path 1716 CPPUNIT_CFLAGS 1717 C compiler flags for CPPUNIT, overriding pkg-config 1718 CPPUNIT_LIBS 1719 linker flags for CPPUNIT, overriding pkg-config 1720 CXXCPP C++ preprocessor 1721 1722Use these variables to override the choices made by `configure' or to help 1723it to find libraries and programs with nonstandard names/locations. 1724 1725Report bugs to <https://github.com/networkupstools/nut/issues>. 1726_ACEOF 1727ac_status=$? 1728fi 1729 1730if test "$ac_init_help" = "recursive"; then 1731 # If there are subdirs, report their specific --help. 1732 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1733 test -d "$ac_dir" || 1734 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1735 continue 1736 ac_builddir=. 1737 1738case "$ac_dir" in 1739.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1740*) 1741 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1742 # A ".." for each directory in $ac_dir_suffix. 1743 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1744 case $ac_top_builddir_sub in 1745 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1746 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1747 esac ;; 1748esac 1749ac_abs_top_builddir=$ac_pwd 1750ac_abs_builddir=$ac_pwd$ac_dir_suffix 1751# for backward compatibility: 1752ac_top_builddir=$ac_top_build_prefix 1753 1754case $srcdir in 1755 .) # We are building in place. 1756 ac_srcdir=. 1757 ac_top_srcdir=$ac_top_builddir_sub 1758 ac_abs_top_srcdir=$ac_pwd ;; 1759 [\\/]* | ?:[\\/]* ) # Absolute name. 1760 ac_srcdir=$srcdir$ac_dir_suffix; 1761 ac_top_srcdir=$srcdir 1762 ac_abs_top_srcdir=$srcdir ;; 1763 *) # Relative name. 1764 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1765 ac_top_srcdir=$ac_top_build_prefix$srcdir 1766 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1767esac 1768ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1769 1770 cd "$ac_dir" || { ac_status=$?; continue; } 1771 # Check for guested configure. 1772 if test -f "$ac_srcdir/configure.gnu"; then 1773 echo && 1774 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1775 elif test -f "$ac_srcdir/configure"; then 1776 echo && 1777 $SHELL "$ac_srcdir/configure" --help=recursive 1778 else 1779 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1780 fi || ac_status=$? 1781 cd "$ac_pwd" || { ac_status=$?; break; } 1782 done 1783fi 1784 1785test -n "$ac_init_help" && exit $ac_status 1786if $ac_init_version; then 1787 cat <<\_ACEOF 1788nut configure 2.7.4 1789generated by GNU Autoconf 2.69 1790 1791Copyright (C) 2012 Free Software Foundation, Inc. 1792This configure script is free software; the Free Software Foundation 1793gives unlimited permission to copy, distribute and modify it. 1794_ACEOF 1795 exit 1796fi 1797 1798## ------------------------ ## 1799## Autoconf initialization. ## 1800## ------------------------ ## 1801 1802# ac_fn_c_try_compile LINENO 1803# -------------------------- 1804# Try to compile conftest.$ac_ext, and return whether this succeeded. 1805ac_fn_c_try_compile () 1806{ 1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1808 rm -f conftest.$ac_objext 1809 if { { ac_try="$ac_compile" 1810case "(($ac_try" in 1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1812 *) ac_try_echo=$ac_try;; 1813esac 1814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1815$as_echo "$ac_try_echo"; } >&5 1816 (eval "$ac_compile") 2>conftest.err 1817 ac_status=$? 1818 if test -s conftest.err; then 1819 grep -v '^ *+' conftest.err >conftest.er1 1820 cat conftest.er1 >&5 1821 mv -f conftest.er1 conftest.err 1822 fi 1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1824 test $ac_status = 0; } && { 1825 test -z "$ac_c_werror_flag" || 1826 test ! -s conftest.err 1827 } && test -s conftest.$ac_objext; then : 1828 ac_retval=0 1829else 1830 $as_echo "$as_me: failed program was:" >&5 1831sed 's/^/| /' conftest.$ac_ext >&5 1832 1833 ac_retval=1 1834fi 1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1836 as_fn_set_status $ac_retval 1837 1838} # ac_fn_c_try_compile 1839 1840# ac_fn_c_try_cpp LINENO 1841# ---------------------- 1842# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1843ac_fn_c_try_cpp () 1844{ 1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1846 if { { ac_try="$ac_cpp conftest.$ac_ext" 1847case "(($ac_try" in 1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1849 *) ac_try_echo=$ac_try;; 1850esac 1851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1852$as_echo "$ac_try_echo"; } >&5 1853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1854 ac_status=$? 1855 if test -s conftest.err; then 1856 grep -v '^ *+' conftest.err >conftest.er1 1857 cat conftest.er1 >&5 1858 mv -f conftest.er1 conftest.err 1859 fi 1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1861 test $ac_status = 0; } > conftest.i && { 1862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1863 test ! -s conftest.err 1864 }; then : 1865 ac_retval=0 1866else 1867 $as_echo "$as_me: failed program was:" >&5 1868sed 's/^/| /' conftest.$ac_ext >&5 1869 1870 ac_retval=1 1871fi 1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1873 as_fn_set_status $ac_retval 1874 1875} # ac_fn_c_try_cpp 1876 1877# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1878# ------------------------------------------------------- 1879# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1880# the include files in INCLUDES and setting the cache variable VAR 1881# accordingly. 1882ac_fn_c_check_header_mongrel () 1883{ 1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1885 if eval \${$3+:} false; then : 1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1887$as_echo_n "checking for $2... " >&6; } 1888if eval \${$3+:} false; then : 1889 $as_echo_n "(cached) " >&6 1890fi 1891eval ac_res=\$$3 1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1893$as_echo "$ac_res" >&6; } 1894else 1895 # Is the header compilable? 1896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1897$as_echo_n "checking $2 usability... " >&6; } 1898cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1899/* end confdefs.h. */ 1900$4 1901#include <$2> 1902_ACEOF 1903if ac_fn_c_try_compile "$LINENO"; then : 1904 ac_header_compiler=yes 1905else 1906 ac_header_compiler=no 1907fi 1908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1910$as_echo "$ac_header_compiler" >&6; } 1911 1912# Is the header present? 1913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1914$as_echo_n "checking $2 presence... " >&6; } 1915cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1916/* end confdefs.h. */ 1917#include <$2> 1918_ACEOF 1919if ac_fn_c_try_cpp "$LINENO"; then : 1920 ac_header_preproc=yes 1921else 1922 ac_header_preproc=no 1923fi 1924rm -f conftest.err conftest.i conftest.$ac_ext 1925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1926$as_echo "$ac_header_preproc" >&6; } 1927 1928# So? What about this header? 1929case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1930 yes:no: ) 1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1932$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1934$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1935 ;; 1936 no:yes:* ) 1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1938$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1940$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1942$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1944$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1946$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1947( $as_echo "## ------------------------------------------------------------ ## 1948## Report this to https://github.com/networkupstools/nut/issues ## 1949## ------------------------------------------------------------ ##" 1950 ) | sed "s/^/$as_me: WARNING: /" >&2 1951 ;; 1952esac 1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1954$as_echo_n "checking for $2... " >&6; } 1955if eval \${$3+:} false; then : 1956 $as_echo_n "(cached) " >&6 1957else 1958 eval "$3=\$ac_header_compiler" 1959fi 1960eval ac_res=\$$3 1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1962$as_echo "$ac_res" >&6; } 1963fi 1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1965 1966} # ac_fn_c_check_header_mongrel 1967 1968# ac_fn_c_try_run LINENO 1969# ---------------------- 1970# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1971# that executables *can* be run. 1972ac_fn_c_try_run () 1973{ 1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1975 if { { ac_try="$ac_link" 1976case "(($ac_try" in 1977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1978 *) ac_try_echo=$ac_try;; 1979esac 1980eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1981$as_echo "$ac_try_echo"; } >&5 1982 (eval "$ac_link") 2>&5 1983 ac_status=$? 1984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1985 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1986 { { case "(($ac_try" in 1987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1988 *) ac_try_echo=$ac_try;; 1989esac 1990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1991$as_echo "$ac_try_echo"; } >&5 1992 (eval "$ac_try") 2>&5 1993 ac_status=$? 1994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1995 test $ac_status = 0; }; }; then : 1996 ac_retval=0 1997else 1998 $as_echo "$as_me: program exited with status $ac_status" >&5 1999 $as_echo "$as_me: failed program was:" >&5 2000sed 's/^/| /' conftest.$ac_ext >&5 2001 2002 ac_retval=$ac_status 2003fi 2004 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2006 as_fn_set_status $ac_retval 2007 2008} # ac_fn_c_try_run 2009 2010# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2011# ------------------------------------------------------- 2012# Tests whether HEADER exists and can be compiled using the include files in 2013# INCLUDES, setting the cache variable VAR accordingly. 2014ac_fn_c_check_header_compile () 2015{ 2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2018$as_echo_n "checking for $2... " >&6; } 2019if eval \${$3+:} false; then : 2020 $as_echo_n "(cached) " >&6 2021else 2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2023/* end confdefs.h. */ 2024$4 2025#include <$2> 2026_ACEOF 2027if ac_fn_c_try_compile "$LINENO"; then : 2028 eval "$3=yes" 2029else 2030 eval "$3=no" 2031fi 2032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2033fi 2034eval ac_res=\$$3 2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2036$as_echo "$ac_res" >&6; } 2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2038 2039} # ac_fn_c_check_header_compile 2040 2041# ac_fn_cxx_try_compile LINENO 2042# ---------------------------- 2043# Try to compile conftest.$ac_ext, and return whether this succeeded. 2044ac_fn_cxx_try_compile () 2045{ 2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2047 rm -f conftest.$ac_objext 2048 if { { ac_try="$ac_compile" 2049case "(($ac_try" in 2050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2051 *) ac_try_echo=$ac_try;; 2052esac 2053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2054$as_echo "$ac_try_echo"; } >&5 2055 (eval "$ac_compile") 2>conftest.err 2056 ac_status=$? 2057 if test -s conftest.err; then 2058 grep -v '^ *+' conftest.err >conftest.er1 2059 cat conftest.er1 >&5 2060 mv -f conftest.er1 conftest.err 2061 fi 2062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2063 test $ac_status = 0; } && { 2064 test -z "$ac_cxx_werror_flag" || 2065 test ! -s conftest.err 2066 } && test -s conftest.$ac_objext; then : 2067 ac_retval=0 2068else 2069 $as_echo "$as_me: failed program was:" >&5 2070sed 's/^/| /' conftest.$ac_ext >&5 2071 2072 ac_retval=1 2073fi 2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2075 as_fn_set_status $ac_retval 2076 2077} # ac_fn_cxx_try_compile 2078 2079# ac_fn_c_try_link LINENO 2080# ----------------------- 2081# Try to link conftest.$ac_ext, and return whether this succeeded. 2082ac_fn_c_try_link () 2083{ 2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2085 rm -f conftest.$ac_objext conftest$ac_exeext 2086 if { { ac_try="$ac_link" 2087case "(($ac_try" in 2088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2089 *) ac_try_echo=$ac_try;; 2090esac 2091eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2092$as_echo "$ac_try_echo"; } >&5 2093 (eval "$ac_link") 2>conftest.err 2094 ac_status=$? 2095 if test -s conftest.err; then 2096 grep -v '^ *+' conftest.err >conftest.er1 2097 cat conftest.er1 >&5 2098 mv -f conftest.er1 conftest.err 2099 fi 2100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2101 test $ac_status = 0; } && { 2102 test -z "$ac_c_werror_flag" || 2103 test ! -s conftest.err 2104 } && test -s conftest$ac_exeext && { 2105 test "$cross_compiling" = yes || 2106 test -x conftest$ac_exeext 2107 }; then : 2108 ac_retval=0 2109else 2110 $as_echo "$as_me: failed program was:" >&5 2111sed 's/^/| /' conftest.$ac_ext >&5 2112 2113 ac_retval=1 2114fi 2115 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2116 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2117 # interfere with the next link command; also delete a directory that is 2118 # left behind by Apple's compiler. We do this before executing the actions. 2119 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2120 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2121 as_fn_set_status $ac_retval 2122 2123} # ac_fn_c_try_link 2124 2125# ac_fn_c_check_func LINENO FUNC VAR 2126# ---------------------------------- 2127# Tests whether FUNC exists, setting the cache variable VAR accordingly 2128ac_fn_c_check_func () 2129{ 2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2132$as_echo_n "checking for $2... " >&6; } 2133if eval \${$3+:} false; then : 2134 $as_echo_n "(cached) " >&6 2135else 2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2137/* end confdefs.h. */ 2138/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2139 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2140#define $2 innocuous_$2 2141 2142/* System header to define __stub macros and hopefully few prototypes, 2143 which can conflict with char $2 (); below. 2144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2145 <limits.h> exists even on freestanding compilers. */ 2146 2147#ifdef __STDC__ 2148# include <limits.h> 2149#else 2150# include <assert.h> 2151#endif 2152 2153#undef $2 2154 2155/* Override any GCC internal prototype to avoid an error. 2156 Use char because int might match the return type of a GCC 2157 builtin and then its argument prototype would still apply. */ 2158#ifdef __cplusplus 2159extern "C" 2160#endif 2161char $2 (); 2162/* The GNU C library defines this for functions which it implements 2163 to always fail with ENOSYS. Some functions are actually named 2164 something starting with __ and the normal name is an alias. */ 2165#if defined __stub_$2 || defined __stub___$2 2166choke me 2167#endif 2168 2169int 2170main () 2171{ 2172return $2 (); 2173 ; 2174 return 0; 2175} 2176_ACEOF 2177if ac_fn_c_try_link "$LINENO"; then : 2178 eval "$3=yes" 2179else 2180 eval "$3=no" 2181fi 2182rm -f core conftest.err conftest.$ac_objext \ 2183 conftest$ac_exeext conftest.$ac_ext 2184fi 2185eval ac_res=\$$3 2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2187$as_echo "$ac_res" >&6; } 2188 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2189 2190} # ac_fn_c_check_func 2191 2192# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2193# --------------------------------------------- 2194# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2195# accordingly. 2196ac_fn_c_check_decl () 2197{ 2198 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2199 as_decl_name=`echo $2|sed 's/ *(.*//'` 2200 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2202$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2203if eval \${$3+:} false; then : 2204 $as_echo_n "(cached) " >&6 2205else 2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2207/* end confdefs.h. */ 2208$4 2209int 2210main () 2211{ 2212#ifndef $as_decl_name 2213#ifdef __cplusplus 2214 (void) $as_decl_use; 2215#else 2216 (void) $as_decl_name; 2217#endif 2218#endif 2219 2220 ; 2221 return 0; 2222} 2223_ACEOF 2224if ac_fn_c_try_compile "$LINENO"; then : 2225 eval "$3=yes" 2226else 2227 eval "$3=no" 2228fi 2229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2230fi 2231eval ac_res=\$$3 2232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2233$as_echo "$ac_res" >&6; } 2234 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2235 2236} # ac_fn_c_check_decl 2237 2238# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2239# ------------------------------------------- 2240# Tests whether TYPE exists after having included INCLUDES, setting cache 2241# variable VAR accordingly. 2242ac_fn_c_check_type () 2243{ 2244 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2246$as_echo_n "checking for $2... " >&6; } 2247if eval \${$3+:} false; then : 2248 $as_echo_n "(cached) " >&6 2249else 2250 eval "$3=no" 2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2252/* end confdefs.h. */ 2253$4 2254int 2255main () 2256{ 2257if (sizeof ($2)) 2258 return 0; 2259 ; 2260 return 0; 2261} 2262_ACEOF 2263if ac_fn_c_try_compile "$LINENO"; then : 2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2265/* end confdefs.h. */ 2266$4 2267int 2268main () 2269{ 2270if (sizeof (($2))) 2271 return 0; 2272 ; 2273 return 0; 2274} 2275_ACEOF 2276if ac_fn_c_try_compile "$LINENO"; then : 2277 2278else 2279 eval "$3=yes" 2280fi 2281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2282fi 2283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2284fi 2285eval ac_res=\$$3 2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2287$as_echo "$ac_res" >&6; } 2288 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2289 2290} # ac_fn_c_check_type 2291 2292# ac_fn_cxx_try_cpp LINENO 2293# ------------------------ 2294# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2295ac_fn_cxx_try_cpp () 2296{ 2297 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2298 if { { ac_try="$ac_cpp conftest.$ac_ext" 2299case "(($ac_try" in 2300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2301 *) ac_try_echo=$ac_try;; 2302esac 2303eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2304$as_echo "$ac_try_echo"; } >&5 2305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2306 ac_status=$? 2307 if test -s conftest.err; then 2308 grep -v '^ *+' conftest.err >conftest.er1 2309 cat conftest.er1 >&5 2310 mv -f conftest.er1 conftest.err 2311 fi 2312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2313 test $ac_status = 0; } > conftest.i && { 2314 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2315 test ! -s conftest.err 2316 }; then : 2317 ac_retval=0 2318else 2319 $as_echo "$as_me: failed program was:" >&5 2320sed 's/^/| /' conftest.$ac_ext >&5 2321 2322 ac_retval=1 2323fi 2324 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2325 as_fn_set_status $ac_retval 2326 2327} # ac_fn_cxx_try_cpp 2328 2329# ac_fn_cxx_try_link LINENO 2330# ------------------------- 2331# Try to link conftest.$ac_ext, and return whether this succeeded. 2332ac_fn_cxx_try_link () 2333{ 2334 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2335 rm -f conftest.$ac_objext conftest$ac_exeext 2336 if { { ac_try="$ac_link" 2337case "(($ac_try" in 2338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2339 *) ac_try_echo=$ac_try;; 2340esac 2341eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2342$as_echo "$ac_try_echo"; } >&5 2343 (eval "$ac_link") 2>conftest.err 2344 ac_status=$? 2345 if test -s conftest.err; then 2346 grep -v '^ *+' conftest.err >conftest.er1 2347 cat conftest.er1 >&5 2348 mv -f conftest.er1 conftest.err 2349 fi 2350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2351 test $ac_status = 0; } && { 2352 test -z "$ac_cxx_werror_flag" || 2353 test ! -s conftest.err 2354 } && test -s conftest$ac_exeext && { 2355 test "$cross_compiling" = yes || 2356 test -x conftest$ac_exeext 2357 }; then : 2358 ac_retval=0 2359else 2360 $as_echo "$as_me: failed program was:" >&5 2361sed 's/^/| /' conftest.$ac_ext >&5 2362 2363 ac_retval=1 2364fi 2365 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2366 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2367 # interfere with the next link command; also delete a directory that is 2368 # left behind by Apple's compiler. We do this before executing the actions. 2369 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2370 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2371 as_fn_set_status $ac_retval 2372 2373} # ac_fn_cxx_try_link 2374cat >config.log <<_ACEOF 2375This file contains any messages produced by compilers while 2376running configure, to aid debugging if configure makes a mistake. 2377 2378It was created by nut $as_me 2.7.4, which was 2379generated by GNU Autoconf 2.69. Invocation command line was 2380 2381 $ $0 $@ 2382 2383_ACEOF 2384exec 5>>config.log 2385{ 2386cat <<_ASUNAME 2387## --------- ## 2388## Platform. ## 2389## --------- ## 2390 2391hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2392uname -m = `(uname -m) 2>/dev/null || echo unknown` 2393uname -r = `(uname -r) 2>/dev/null || echo unknown` 2394uname -s = `(uname -s) 2>/dev/null || echo unknown` 2395uname -v = `(uname -v) 2>/dev/null || echo unknown` 2396 2397/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2398/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2399 2400/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2401/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2402/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2403/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2404/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2405/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2406/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2407 2408_ASUNAME 2409 2410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2411for as_dir in $PATH 2412do 2413 IFS=$as_save_IFS 2414 test -z "$as_dir" && as_dir=. 2415 $as_echo "PATH: $as_dir" 2416 done 2417IFS=$as_save_IFS 2418 2419} >&5 2420 2421cat >&5 <<_ACEOF 2422 2423 2424## ----------- ## 2425## Core tests. ## 2426## ----------- ## 2427 2428_ACEOF 2429 2430 2431# Keep a trace of the command line. 2432# Strip out --no-create and --no-recursion so they do not pile up. 2433# Strip out --silent because we don't want to record it for future runs. 2434# Also quote any args containing shell meta-characters. 2435# Make two passes to allow for proper duplicate-argument suppression. 2436ac_configure_args= 2437ac_configure_args0= 2438ac_configure_args1= 2439ac_must_keep_next=false 2440for ac_pass in 1 2 2441do 2442 for ac_arg 2443 do 2444 case $ac_arg in 2445 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2446 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2447 | -silent | --silent | --silen | --sile | --sil) 2448 continue ;; 2449 *\'*) 2450 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2451 esac 2452 case $ac_pass in 2453 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2454 2) 2455 as_fn_append ac_configure_args1 " '$ac_arg'" 2456 if test $ac_must_keep_next = true; then 2457 ac_must_keep_next=false # Got value, back to normal. 2458 else 2459 case $ac_arg in 2460 *=* | --config-cache | -C | -disable-* | --disable-* \ 2461 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2462 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2463 | -with-* | --with-* | -without-* | --without-* | --x) 2464 case "$ac_configure_args0 " in 2465 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2466 esac 2467 ;; 2468 -* ) ac_must_keep_next=true ;; 2469 esac 2470 fi 2471 as_fn_append ac_configure_args " '$ac_arg'" 2472 ;; 2473 esac 2474 done 2475done 2476{ ac_configure_args0=; unset ac_configure_args0;} 2477{ ac_configure_args1=; unset ac_configure_args1;} 2478 2479# When interrupted or exit'd, cleanup temporary files, and complete 2480# config.log. We remove comments because anyway the quotes in there 2481# would cause problems or look ugly. 2482# WARNING: Use '\'' to represent an apostrophe within the trap. 2483# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2484trap 'exit_status=$? 2485 # Save into config.log some information that might help in debugging. 2486 { 2487 echo 2488 2489 $as_echo "## ---------------- ## 2490## Cache variables. ## 2491## ---------------- ##" 2492 echo 2493 # The following way of writing the cache mishandles newlines in values, 2494( 2495 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2496 eval ac_val=\$$ac_var 2497 case $ac_val in #( 2498 *${as_nl}*) 2499 case $ac_var in #( 2500 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2501$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2502 esac 2503 case $ac_var in #( 2504 _ | IFS | as_nl) ;; #( 2505 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2506 *) { eval $ac_var=; unset $ac_var;} ;; 2507 esac ;; 2508 esac 2509 done 2510 (set) 2>&1 | 2511 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2512 *${as_nl}ac_space=\ *) 2513 sed -n \ 2514 "s/'\''/'\''\\\\'\'''\''/g; 2515 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2516 ;; #( 2517 *) 2518 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2519 ;; 2520 esac | 2521 sort 2522) 2523 echo 2524 2525 $as_echo "## ----------------- ## 2526## Output variables. ## 2527## ----------------- ##" 2528 echo 2529 for ac_var in $ac_subst_vars 2530 do 2531 eval ac_val=\$$ac_var 2532 case $ac_val in 2533 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2534 esac 2535 $as_echo "$ac_var='\''$ac_val'\''" 2536 done | sort 2537 echo 2538 2539 if test -n "$ac_subst_files"; then 2540 $as_echo "## ------------------- ## 2541## File substitutions. ## 2542## ------------------- ##" 2543 echo 2544 for ac_var in $ac_subst_files 2545 do 2546 eval ac_val=\$$ac_var 2547 case $ac_val in 2548 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2549 esac 2550 $as_echo "$ac_var='\''$ac_val'\''" 2551 done | sort 2552 echo 2553 fi 2554 2555 if test -s confdefs.h; then 2556 $as_echo "## ----------- ## 2557## confdefs.h. ## 2558## ----------- ##" 2559 echo 2560 cat confdefs.h 2561 echo 2562 fi 2563 test "$ac_signal" != 0 && 2564 $as_echo "$as_me: caught signal $ac_signal" 2565 $as_echo "$as_me: exit $exit_status" 2566 } >&5 2567 rm -f core *.core core.conftest.* && 2568 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2569 exit $exit_status 2570' 0 2571for ac_signal in 1 2 13 15; do 2572 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2573done 2574ac_signal=0 2575 2576# confdefs.h avoids OS command line length limits that DEFS can exceed. 2577rm -f -r conftest* confdefs.h 2578 2579$as_echo "/* confdefs.h */" > confdefs.h 2580 2581# Predefined preprocessor variables. 2582 2583cat >>confdefs.h <<_ACEOF 2584#define PACKAGE_NAME "$PACKAGE_NAME" 2585_ACEOF 2586 2587cat >>confdefs.h <<_ACEOF 2588#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2589_ACEOF 2590 2591cat >>confdefs.h <<_ACEOF 2592#define PACKAGE_VERSION "$PACKAGE_VERSION" 2593_ACEOF 2594 2595cat >>confdefs.h <<_ACEOF 2596#define PACKAGE_STRING "$PACKAGE_STRING" 2597_ACEOF 2598 2599cat >>confdefs.h <<_ACEOF 2600#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2601_ACEOF 2602 2603cat >>confdefs.h <<_ACEOF 2604#define PACKAGE_URL "$PACKAGE_URL" 2605_ACEOF 2606 2607 2608# Let the site file select an alternate cache file if it wants to. 2609# Prefer an explicitly selected file to automatically selected ones. 2610ac_site_file1=NONE 2611ac_site_file2=NONE 2612if test -n "$CONFIG_SITE"; then 2613 # We do not want a PATH search for config.site. 2614 case $CONFIG_SITE in #(( 2615 -*) ac_site_file1=./$CONFIG_SITE;; 2616 */*) ac_site_file1=$CONFIG_SITE;; 2617 *) ac_site_file1=./$CONFIG_SITE;; 2618 esac 2619elif test "x$prefix" != xNONE; then 2620 ac_site_file1=$prefix/share/config.site 2621 ac_site_file2=$prefix/etc/config.site 2622else 2623 ac_site_file1=$ac_default_prefix/share/config.site 2624 ac_site_file2=$ac_default_prefix/etc/config.site 2625fi 2626for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2627do 2628 test "x$ac_site_file" = xNONE && continue 2629 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2630 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2631$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2632 sed 's/^/| /' "$ac_site_file" >&5 2633 . "$ac_site_file" \ 2634 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2636as_fn_error $? "failed to load site script $ac_site_file 2637See \`config.log' for more details" "$LINENO" 5; } 2638 fi 2639done 2640 2641if test -r "$cache_file"; then 2642 # Some versions of bash will fail to source /dev/null (special files 2643 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2644 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2645 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2646$as_echo "$as_me: loading cache $cache_file" >&6;} 2647 case $cache_file in 2648 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2649 *) . "./$cache_file";; 2650 esac 2651 fi 2652else 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2654$as_echo "$as_me: creating cache $cache_file" >&6;} 2655 >$cache_file 2656fi 2657 2658# Check that the precious variables saved in the cache have kept the same 2659# value. 2660ac_cache_corrupted=false 2661for ac_var in $ac_precious_vars; do 2662 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2663 eval ac_new_set=\$ac_env_${ac_var}_set 2664 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2665 eval ac_new_val=\$ac_env_${ac_var}_value 2666 case $ac_old_set,$ac_new_set in 2667 set,) 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2669$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2670 ac_cache_corrupted=: ;; 2671 ,set) 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2673$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2674 ac_cache_corrupted=: ;; 2675 ,);; 2676 *) 2677 if test "x$ac_old_val" != "x$ac_new_val"; then 2678 # differences in whitespace do not lead to failure. 2679 ac_old_val_w=`echo x $ac_old_val` 2680 ac_new_val_w=`echo x $ac_new_val` 2681 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2682 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2683$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2684 ac_cache_corrupted=: 2685 else 2686 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2687$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2688 eval $ac_var=\$ac_old_val 2689 fi 2690 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2691$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2692 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2693$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2694 fi;; 2695 esac 2696 # Pass precious variables to config.status. 2697 if test "$ac_new_set" = set; then 2698 case $ac_new_val in 2699 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2700 *) ac_arg=$ac_var=$ac_new_val ;; 2701 esac 2702 case " $ac_configure_args " in 2703 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2704 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2705 esac 2706 fi 2707done 2708if $ac_cache_corrupted; then 2709 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2711 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2712$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2713 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2714fi 2715## -------------------- ## 2716## Main body of script. ## 2717## -------------------- ## 2718 2719ac_ext=c 2720ac_cpp='$CPP $CPPFLAGS' 2721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2723ac_compiler_gnu=$ac_cv_c_compiler_gnu 2724 2725 2726 2727 2728echo "Network UPS Tools version ${PACKAGE_VERSION}" 2729ac_aux_dir= 2730for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2731 if test -f "$ac_dir/install-sh"; then 2732 ac_aux_dir=$ac_dir 2733 ac_install_sh="$ac_aux_dir/install-sh -c" 2734 break 2735 elif test -f "$ac_dir/install.sh"; then 2736 ac_aux_dir=$ac_dir 2737 ac_install_sh="$ac_aux_dir/install.sh -c" 2738 break 2739 elif test -f "$ac_dir/shtool"; then 2740 ac_aux_dir=$ac_dir 2741 ac_install_sh="$ac_aux_dir/shtool install -c" 2742 break 2743 fi 2744done 2745if test -z "$ac_aux_dir"; then 2746 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2747fi 2748 2749# These three variables are undocumented and unsupported, 2750# and are intended to be withdrawn in a future Autoconf release. 2751# They can cause serious problems if a builder's source tree is in a directory 2752# whose full name contains unusual characters. 2753ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2754ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2755ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2756 2757 2758# Make sure we can run config.sub. 2759$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2760 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2761 2762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2763$as_echo_n "checking build system type... " >&6; } 2764if ${ac_cv_build+:} false; then : 2765 $as_echo_n "(cached) " >&6 2766else 2767 ac_build_alias=$build_alias 2768test "x$ac_build_alias" = x && 2769 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2770test "x$ac_build_alias" = x && 2771 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2772ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2773 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2774 2775fi 2776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2777$as_echo "$ac_cv_build" >&6; } 2778case $ac_cv_build in 2779*-*-*) ;; 2780*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2781esac 2782build=$ac_cv_build 2783ac_save_IFS=$IFS; IFS='-' 2784set x $ac_cv_build 2785shift 2786build_cpu=$1 2787build_vendor=$2 2788shift; shift 2789# Remember, the first character of IFS is used to create $*, 2790# except with old shells: 2791build_os=$* 2792IFS=$ac_save_IFS 2793case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2794 2795 2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2797$as_echo_n "checking host system type... " >&6; } 2798if ${ac_cv_host+:} false; then : 2799 $as_echo_n "(cached) " >&6 2800else 2801 if test "x$host_alias" = x; then 2802 ac_cv_host=$ac_cv_build 2803else 2804 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2805 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2806fi 2807 2808fi 2809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2810$as_echo "$ac_cv_host" >&6; } 2811case $ac_cv_host in 2812*-*-*) ;; 2813*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2814esac 2815host=$ac_cv_host 2816ac_save_IFS=$IFS; IFS='-' 2817set x $ac_cv_host 2818shift 2819host_cpu=$1 2820host_vendor=$2 2821shift; shift 2822# Remember, the first character of IFS is used to create $*, 2823# except with old shells: 2824host_os=$* 2825IFS=$ac_save_IFS 2826case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2827 2828 2829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2830$as_echo_n "checking target system type... " >&6; } 2831if ${ac_cv_target+:} false; then : 2832 $as_echo_n "(cached) " >&6 2833else 2834 if test "x$target_alias" = x; then 2835 ac_cv_target=$ac_cv_host 2836else 2837 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2838 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2839fi 2840 2841fi 2842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2843$as_echo "$ac_cv_target" >&6; } 2844case $ac_cv_target in 2845*-*-*) ;; 2846*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2847esac 2848target=$ac_cv_target 2849ac_save_IFS=$IFS; IFS='-' 2850set x $ac_cv_target 2851shift 2852target_cpu=$1 2853target_vendor=$2 2854shift; shift 2855# Remember, the first character of IFS is used to create $*, 2856# except with old shells: 2857target_os=$* 2858IFS=$ac_save_IFS 2859case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2860 2861 2862# The aliases save the names the user supplied, while $host etc. 2863# will get canonicalized. 2864test -n "$target_alias" && 2865 test "$program_prefix$program_suffix$program_transform_name" = \ 2866 NONENONEs,x,x, && 2867 program_prefix=${target_alias}- 2868 2869 2870 os_get_name() { 2871 case "$1" in 2872 (*CentOS*|*CENTOS*) echo 'centos' ;; 2873 (*Lineox*|*LINEOX*) echo 'lineox' ;; 2874 (*White?Box*|*WHITE?BOX*) echo 'whitebox' ;; 2875 (*Fedora*|*FEDORA*) echo 'fedora' ;; 2876 (*Mandrake*|*Mandriva*|*MANDRAKE*|*MANDRIVA*) echo 'mandriva' ;; 2877 (*Red?Hat*|*RED?HAT*) echo 'redhat' ;; 2878 (*SuSE*|*SUSE*|*Novell*|*NOVELL*) echo 'suse' ;; 2879 (*Debian*|*DEBIAN*) echo 'debian' ;; 2880 (*Ubuntu*|*UBUNTU*) echo 'ubuntu' ;; 2881 (*Gentoo*|*gentoo*) echo 'gentoo' ;; 2882# FIXME: *BSD, Solaris, HPUX, Aix, ... 2883 (*) # fallback for other systems 2884 case "${host_cpu}-${host_os}" in 2885 *-aix*) echo 'aix' ;; 2886 *-freebsd*) echo 'freebsd' ;; 2887 *-darwin*) echo 'darwin' ;; 2888 *solaris*) echo 'Linux unknown 2889' ;; 2890 *-hpux*) echo 'hpux' ;; 2891 esac 2892 esac 2893} 2894 # only list special cases. 2895 os_get_target() { 2896 case "$1" in 2897 # some may fall under generic-rpm 2898 (centos|lineox|whitebox|fedora|redhat) echo 'redhat' ;; 2899 (suse) echo 'opensuse' ;; 2900 (ubuntu) echo 'debian' ;; 2901 (*) echo '$1' ;; 2902# FIXME: *BSD, Solaris, HPUX, Aix, ... 2903 esac 2904} 2905 2906 2907 2908 # Look for all possible source of OS name resolution 2909 # 1) we look for a LSB release info file 2910 eval "dist_search_path=\" 2911 /etc/lsb-release\"" 2912 dist_search_path=$(echo "$dist_search_path" | sed -e 's|\<NONE\>||g;s|//|/|g') 2913 for dist_file in $dist_search_path 2914 do 2915 if test -f "$dist_file" 2916 then 2917 dist_cv_build_lsb_file="$dist_file" 2918 break 2919 fi 2920 done 2921 if test -z "$dist_cv_build_lsb_file" ; then 2922 dist_cv_build_lsb_file='no' 2923 fi 2924 # 2) we look at specific release info file 2925 eval "dist_search_path=\" 2926 /etc/gentoo-release 2927 /etc/centos-release 2928 /etc/lineox-release 2929 /etc/whitebox-release 2930 /etc/fedora-release 2931 /etc/mandrake-release 2932 /etc/mandriva-release 2933 /etc/redhat-release 2934 /etc/SuSE-release 2935 /etc/debian_version\"" 2936 dist_search_path=$(echo "$dist_search_path" | sed -e 's|\<NONE\>||g;s|//|/|g') 2937 for dist_file in $dist_search_path 2938 do 2939 if test -f "$dist_file" 2940 then 2941 dist_cv_build_rel_file="$dist_file" 2942 break 2943 fi 2944 done 2945 if test -z "$dist_cv_build_rel_file" ; then 2946 dist_cv_build_rel_file='no' 2947 fi 2948 # 3) we try the generic issue info file 2949 eval "dist_search_path=\" 2950 /etc/issue 2951 /etc/issue.net\"" 2952 dist_search_path=$(echo "$dist_search_path" | sed -e 's|\<NONE\>||g;s|//|/|g') 2953 for dist_file in $dist_search_path 2954 do 2955 if test -f "$dist_file" 2956 then 2957 dist_cv_build_issue_file="$dist_file" 2958 break 2959 fi 2960 done 2961 if test -z "$dist_cv_build_issue_file" ; then 2962 dist_cv_build_issue_file='no' 2963 fi 2964 2965 # Now we parse these content to search for the OS name 2966 2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host system name" >&5 2968$as_echo_n "checking for host system name... " >&6; } 2969if ${dist_cv_build_flavor+:} false; then : 2970 $as_echo_n "(cached) " >&6 2971else 2972 if test -z "$dist_cv_build_flavor" -a ":${dist_cv_build_rel_file:-no}" != :no ; then 2973 if test `echo "$dist_cv_build_rel_file" | sed -e 's|.*/||'` != 'debian_version' ; then 2974 dist_cv_build_flavor=$(os_get_name "$(cat $dist_cv_build_rel_file)") 2975 fi 2976 fi 2977 if test -z "$dist_cv_build_flavor" -a ":${dist_cv_build_lsb_file:-no}" != :no ; then 2978 . "$dist_cv_build_lsb_file" 2979 dist_cv_build_flavor=$(os_get_name "${DISTRIB_DESCRIPTION:-unknown}") 2980 if test -z "$dist_cv_build_flavor" ; then 2981 dist_cv_build_flavor=$(echo "$DISTRIB_ID" | tr [:upper:] [:lower:] | sed -e 's|[[:space:]]*||g;s|linux||g') 2982 fi 2983 fi 2984 if test -z "$dist_cv_build_flavor" -a ":${dist_cv_build_issue_file:-no}" != :no ; then 2985 dist_cv_build_flavor=$(os_get_name "$(cat $dist_cv_build_issue_file | grep 'Linux\|Fedora\|Ubuntu' | head -1)") 2986 fi 2987 # do debian after lsb and issue for Ubuntu 2988 if test -z "$dist_cv_build_flavor" -a ":${dist_cv_build_rel_file:-no}" != :no ; then 2989 if test `echo "$dist_cv_build_rel_file" | sed -e 's|.*/||'` = 'debian_version' ; then 2990 dist_cv_build_flavor='debian' 2991 fi 2992 fi 2993 # FIXME 2994 if test -z "$dist_cv_build_flavor" ; then 2995 dist_cv_build_flavor=$(os_get_name "$(${CC-cc} $CFLAGS -v 2>&1 | grep 'gcc version')") 2996 fi 2997 2998 # save the result 2999 if test -n "$dist_cv_build_flavor" ; then 3000 OS_NAME=$dist_cv_build_flavor 3001 PKG_TARGET=$(os_get_target "$dist_cv_build_flavor") 3002 fi 3003 3004fi 3005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dist_cv_build_flavor" >&5 3006$as_echo "$dist_cv_build_flavor" >&6; } 3007 3008ac_config_headers="$ac_config_headers include/config.h" 3009 3010 3011am__api_version='1.14' 3012 3013# Find a good install program. We prefer a C program (faster), 3014# so one script is as good as another. But avoid the broken or 3015# incompatible versions: 3016# SysV /etc/install, /usr/sbin/install 3017# SunOS /usr/etc/install 3018# IRIX /sbin/install 3019# AIX /bin/install 3020# AmigaOS /C/install, which installs bootblocks on floppy discs 3021# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3022# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3023# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3024# OS/2's system install, which has a completely different semantic 3025# ./install, which can be erroneously created by make from ./install.sh. 3026# Reject install programs that cannot install multiple files. 3027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3028$as_echo_n "checking for a BSD-compatible install... " >&6; } 3029if test -z "$INSTALL"; then 3030if ${ac_cv_path_install+:} false; then : 3031 $as_echo_n "(cached) " >&6 3032else 3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3034for as_dir in $PATH 3035do 3036 IFS=$as_save_IFS 3037 test -z "$as_dir" && as_dir=. 3038 # Account for people who put trailing slashes in PATH elements. 3039case $as_dir/ in #(( 3040 ./ | .// | /[cC]/* | \ 3041 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3042 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3043 /usr/ucb/* ) ;; 3044 *) 3045 # OSF1 and SCO ODT 3.0 have their own names for install. 3046 # Don't use installbsd from OSF since it installs stuff as root 3047 # by default. 3048 for ac_prog in ginstall scoinst install; do 3049 for ac_exec_ext in '' $ac_executable_extensions; do 3050 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3051 if test $ac_prog = install && 3052 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3053 # AIX install. It has an incompatible calling convention. 3054 : 3055 elif test $ac_prog = install && 3056 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3057 # program-specific install script used by HP pwplus--don't use. 3058 : 3059 else 3060 rm -rf conftest.one conftest.two conftest.dir 3061 echo one > conftest.one 3062 echo two > conftest.two 3063 mkdir conftest.dir 3064 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3065 test -s conftest.one && test -s conftest.two && 3066 test -s conftest.dir/conftest.one && 3067 test -s conftest.dir/conftest.two 3068 then 3069 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3070 break 3 3071 fi 3072 fi 3073 fi 3074 done 3075 done 3076 ;; 3077esac 3078 3079 done 3080IFS=$as_save_IFS 3081 3082rm -rf conftest.one conftest.two conftest.dir 3083 3084fi 3085 if test "${ac_cv_path_install+set}" = set; then 3086 INSTALL=$ac_cv_path_install 3087 else 3088 # As a last resort, use the slow shell script. Don't cache a 3089 # value for INSTALL within a source directory, because that will 3090 # break other packages using the cache if that directory is 3091 # removed, or if the value is a relative name. 3092 INSTALL=$ac_install_sh 3093 fi 3094fi 3095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3096$as_echo "$INSTALL" >&6; } 3097 3098# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3099# It thinks the first close brace ends the variable substitution. 3100test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3101 3102test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3103 3104test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3105 3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3107$as_echo_n "checking whether build environment is sane... " >&6; } 3108# Reject unsafe characters in $srcdir or the absolute working directory 3109# name. Accept space and tab only in the latter. 3110am_lf=' 3111' 3112case `pwd` in 3113 *[\\\"\#\$\&\'\`$am_lf]*) 3114 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3115esac 3116case $srcdir in 3117 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3118 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3119esac 3120 3121# Do 'set' in a subshell so we don't clobber the current shell's 3122# arguments. Must try -L first in case configure is actually a 3123# symlink; some systems play weird games with the mod time of symlinks 3124# (eg FreeBSD returns the mod time of the symlink's containing 3125# directory). 3126if ( 3127 am_has_slept=no 3128 for am_try in 1 2; do 3129 echo "timestamp, slept: $am_has_slept" > conftest.file 3130 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3131 if test "$*" = "X"; then 3132 # -L didn't work. 3133 set X `ls -t "$srcdir/configure" conftest.file` 3134 fi 3135 if test "$*" != "X $srcdir/configure conftest.file" \ 3136 && test "$*" != "X conftest.file $srcdir/configure"; then 3137 3138 # If neither matched, then we have a broken ls. This can happen 3139 # if, for instance, CONFIG_SHELL is bash and it inherits a 3140 # broken ls alias from the environment. This has actually 3141 # happened. Such a system could not be considered "sane". 3142 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3143 alias in your environment" "$LINENO" 5 3144 fi 3145 if test "$2" = conftest.file || test $am_try -eq 2; then 3146 break 3147 fi 3148 # Just in case. 3149 sleep 1 3150 am_has_slept=yes 3151 done 3152 test "$2" = conftest.file 3153 ) 3154then 3155 # Ok. 3156 : 3157else 3158 as_fn_error $? "newly created file is older than distributed files! 3159Check your system clock" "$LINENO" 5 3160fi 3161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3162$as_echo "yes" >&6; } 3163# If we didn't sleep, we still need to ensure time stamps of config.status and 3164# generated files are strictly newer. 3165am_sleep_pid= 3166if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3167 ( sleep 1 ) & 3168 am_sleep_pid=$! 3169fi 3170 3171rm -f conftest.file 3172 3173test "$program_prefix" != NONE && 3174 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3175# Use a double $ so make ignores it. 3176test "$program_suffix" != NONE && 3177 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3178# Double any \ or $. 3179# By default was `s,x,x', remove it if useless. 3180ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3181program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3182 3183# Expand $ac_aux_dir to an absolute path. 3184am_aux_dir=`cd "$ac_aux_dir" && pwd` 3185 3186if test x"${MISSING+set}" != xset; then 3187 case $am_aux_dir in 3188 *\ * | *\ *) 3189 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3190 *) 3191 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3192 esac 3193fi 3194# Use eval to expand $SHELL 3195if eval "$MISSING --is-lightweight"; then 3196 am_missing_run="$MISSING " 3197else 3198 am_missing_run= 3199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3200$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3201fi 3202 3203if test x"${install_sh}" != xset; then 3204 case $am_aux_dir in 3205 *\ * | *\ *) 3206 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3207 *) 3208 install_sh="\${SHELL} $am_aux_dir/install-sh" 3209 esac 3210fi 3211 3212# Installed binaries are usually stripped using 'strip' when the user 3213# run "make install-strip". However 'strip' might not be the right 3214# tool to use in cross-compilation environments, therefore Automake 3215# will honor the 'STRIP' environment variable to overrule this program. 3216if test "$cross_compiling" != no; then 3217 if test -n "$ac_tool_prefix"; then 3218 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3219set dummy ${ac_tool_prefix}strip; ac_word=$2 3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3221$as_echo_n "checking for $ac_word... " >&6; } 3222if ${ac_cv_prog_STRIP+:} false; then : 3223 $as_echo_n "(cached) " >&6 3224else 3225 if test -n "$STRIP"; then 3226 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3227else 3228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3229for as_dir in $PATH 3230do 3231 IFS=$as_save_IFS 3232 test -z "$as_dir" && as_dir=. 3233 for ac_exec_ext in '' $ac_executable_extensions; do 3234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3235 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3237 break 2 3238 fi 3239done 3240 done 3241IFS=$as_save_IFS 3242 3243fi 3244fi 3245STRIP=$ac_cv_prog_STRIP 3246if test -n "$STRIP"; then 3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3248$as_echo "$STRIP" >&6; } 3249else 3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3251$as_echo "no" >&6; } 3252fi 3253 3254 3255fi 3256if test -z "$ac_cv_prog_STRIP"; then 3257 ac_ct_STRIP=$STRIP 3258 # Extract the first word of "strip", so it can be a program name with args. 3259set dummy strip; ac_word=$2 3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3261$as_echo_n "checking for $ac_word... " >&6; } 3262if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3263 $as_echo_n "(cached) " >&6 3264else 3265 if test -n "$ac_ct_STRIP"; then 3266 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3267else 3268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3269for as_dir in $PATH 3270do 3271 IFS=$as_save_IFS 3272 test -z "$as_dir" && as_dir=. 3273 for ac_exec_ext in '' $ac_executable_extensions; do 3274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3275 ac_cv_prog_ac_ct_STRIP="strip" 3276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3277 break 2 3278 fi 3279done 3280 done 3281IFS=$as_save_IFS 3282 3283fi 3284fi 3285ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3286if test -n "$ac_ct_STRIP"; then 3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3288$as_echo "$ac_ct_STRIP" >&6; } 3289else 3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3291$as_echo "no" >&6; } 3292fi 3293 3294 if test "x$ac_ct_STRIP" = x; then 3295 STRIP=":" 3296 else 3297 case $cross_compiling:$ac_tool_warned in 3298yes:) 3299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3301ac_tool_warned=yes ;; 3302esac 3303 STRIP=$ac_ct_STRIP 3304 fi 3305else 3306 STRIP="$ac_cv_prog_STRIP" 3307fi 3308 3309fi 3310INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3311 3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3313$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3314if test -z "$MKDIR_P"; then 3315 if ${ac_cv_path_mkdir+:} false; then : 3316 $as_echo_n "(cached) " >&6 3317else 3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3319for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3320do 3321 IFS=$as_save_IFS 3322 test -z "$as_dir" && as_dir=. 3323 for ac_prog in mkdir gmkdir; do 3324 for ac_exec_ext in '' $ac_executable_extensions; do 3325 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3326 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3327 'mkdir (GNU coreutils) '* | \ 3328 'mkdir (coreutils) '* | \ 3329 'mkdir (fileutils) '4.1*) 3330 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3331 break 3;; 3332 esac 3333 done 3334 done 3335 done 3336IFS=$as_save_IFS 3337 3338fi 3339 3340 test -d ./--version && rmdir ./--version 3341 if test "${ac_cv_path_mkdir+set}" = set; then 3342 MKDIR_P="$ac_cv_path_mkdir -p" 3343 else 3344 # As a last resort, use the slow shell script. Don't cache a 3345 # value for MKDIR_P within a source directory, because that will 3346 # break other packages using the cache if that directory is 3347 # removed, or if the value is a relative name. 3348 MKDIR_P="$ac_install_sh -d" 3349 fi 3350fi 3351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3352$as_echo "$MKDIR_P" >&6; } 3353 3354for ac_prog in gawk mawk nawk awk 3355do 3356 # Extract the first word of "$ac_prog", so it can be a program name with args. 3357set dummy $ac_prog; ac_word=$2 3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3359$as_echo_n "checking for $ac_word... " >&6; } 3360if ${ac_cv_prog_AWK+:} false; then : 3361 $as_echo_n "(cached) " >&6 3362else 3363 if test -n "$AWK"; then 3364 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3365else 3366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3367for as_dir in $PATH 3368do 3369 IFS=$as_save_IFS 3370 test -z "$as_dir" && as_dir=. 3371 for ac_exec_ext in '' $ac_executable_extensions; do 3372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3373 ac_cv_prog_AWK="$ac_prog" 3374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3375 break 2 3376 fi 3377done 3378 done 3379IFS=$as_save_IFS 3380 3381fi 3382fi 3383AWK=$ac_cv_prog_AWK 3384if test -n "$AWK"; then 3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3386$as_echo "$AWK" >&6; } 3387else 3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3389$as_echo "no" >&6; } 3390fi 3391 3392 3393 test -n "$AWK" && break 3394done 3395 3396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3397$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3398set x ${MAKE-make} 3399ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3400if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3401 $as_echo_n "(cached) " >&6 3402else 3403 cat >conftest.make <<\_ACEOF 3404SHELL = /bin/sh 3405all: 3406 @echo '@@@%%%=$(MAKE)=@@@%%%' 3407_ACEOF 3408# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3409case `${MAKE-make} -f conftest.make 2>/dev/null` in 3410 *@@@%%%=?*=@@@%%%*) 3411 eval ac_cv_prog_make_${ac_make}_set=yes;; 3412 *) 3413 eval ac_cv_prog_make_${ac_make}_set=no;; 3414esac 3415rm -f conftest.make 3416fi 3417if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3419$as_echo "yes" >&6; } 3420 SET_MAKE= 3421else 3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3423$as_echo "no" >&6; } 3424 SET_MAKE="MAKE=${MAKE-make}" 3425fi 3426 3427rm -rf .tst 2>/dev/null 3428mkdir .tst 2>/dev/null 3429if test -d .tst; then 3430 am__leading_dot=. 3431else 3432 am__leading_dot=_ 3433fi 3434rmdir .tst 2>/dev/null 3435 3436# Check whether --enable-silent-rules was given. 3437if test "${enable_silent_rules+set}" = set; then : 3438 enableval=$enable_silent_rules; 3439fi 3440 3441case $enable_silent_rules in # ((( 3442 yes) AM_DEFAULT_VERBOSITY=0;; 3443 no) AM_DEFAULT_VERBOSITY=1;; 3444 *) AM_DEFAULT_VERBOSITY=1;; 3445esac 3446am_make=${MAKE-make} 3447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3448$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3449if ${am_cv_make_support_nested_variables+:} false; then : 3450 $as_echo_n "(cached) " >&6 3451else 3452 if $as_echo 'TRUE=$(BAR$(V)) 3453BAR0=false 3454BAR1=true 3455V=1 3456am__doit: 3457 @$(TRUE) 3458.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3459 am_cv_make_support_nested_variables=yes 3460else 3461 am_cv_make_support_nested_variables=no 3462fi 3463fi 3464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3465$as_echo "$am_cv_make_support_nested_variables" >&6; } 3466if test $am_cv_make_support_nested_variables = yes; then 3467 AM_V='$(V)' 3468 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3469else 3470 AM_V=$AM_DEFAULT_VERBOSITY 3471 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3472fi 3473AM_BACKSLASH='\' 3474 3475if test "`cd $srcdir && pwd`" != "`pwd`"; then 3476 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3477 # is not polluted with repeated "-I." 3478 am__isrc=' -I$(srcdir)' 3479 # test to see if srcdir already configured 3480 if test -f $srcdir/config.status; then 3481 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3482 fi 3483fi 3484 3485# test whether we have cygpath 3486if test -z "$CYGPATH_W"; then 3487 if (cygpath --version) >/dev/null 2>/dev/null; then 3488 CYGPATH_W='cygpath -w' 3489 else 3490 CYGPATH_W=echo 3491 fi 3492fi 3493 3494 3495# Define the identity of the package. 3496 PACKAGE='nut' 3497 VERSION='2.7.4' 3498 3499 3500cat >>confdefs.h <<_ACEOF 3501#define PACKAGE "$PACKAGE" 3502_ACEOF 3503 3504 3505cat >>confdefs.h <<_ACEOF 3506#define VERSION "$VERSION" 3507_ACEOF 3508 3509# Some tools Automake needs. 3510 3511ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3512 3513 3514AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3515 3516 3517AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3518 3519 3520AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3521 3522 3523MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3524 3525# For better backward compatibility. To be removed once Automake 1.9.x 3526# dies out for good. For more background, see: 3527# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3528# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3529mkdir_p='$(MKDIR_P)' 3530 3531# We need awk for the "check" target. The system "awk" is bad on 3532# some platforms. 3533# Always define AMTAR for backward compatibility. Yes, it's still used 3534# in the wild :-( We should find a proper way to deprecate it ... 3535AMTAR='$${TAR-tar}' 3536 3537 3538# We'll loop over all known methods to create a tar archive until one works. 3539_am_tools='gnutar pax cpio none' 3540 3541am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3542 3543 3544 3545 3546 3547 3548# POSIX will say in a future version that running "rm -f" with no argument 3549# is OK; and we want to be able to make that assumption in our Makefile 3550# recipes. So use an aggressive probe to check that the usage we want is 3551# actually supported "in the wild" to an acceptable degree. 3552# See automake bug#10828. 3553# To make any issue more visible, cause the running configure to be aborted 3554# by default if the 'rm' program in use doesn't match our expectations; the 3555# user can still override this though. 3556if rm -f && rm -fr && rm -rf; then : OK; else 3557 cat >&2 <<'END' 3558Oops! 3559 3560Your 'rm' program seems unable to run without file operands specified 3561on the command line, even when the '-f' option is present. This is contrary 3562to the behaviour of most rm programs out there, and not conforming with 3563the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3564 3565Please tell bug-automake@gnu.org about your system, including the value 3566of your $PATH and any error possibly output before this message. This 3567can help us improve future automake versions. 3568 3569END 3570 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3571 echo 'Configuration will proceed anyway, since you have set the' >&2 3572 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3573 echo >&2 3574 else 3575 cat >&2 <<'END' 3576Aborting the configuration process, to ensure you take notice of the issue. 3577 3578You can download and install GNU coreutils to get an 'rm' implementation 3579that behaves properly: <http://www.gnu.org/software/coreutils/>. 3580 3581If you want to complete the configuration process using your problematic 3582'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3583to "yes", and re-run configure. 3584 3585END 3586 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3587 fi 3588fi 3589 3590 3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for autoconf macro to enable system extensions" >&5 3592$as_echo_n "checking for autoconf macro to enable system extensions... " >&6; } 3593 3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3595$as_echo "yes" >&6; } 3596 DEPDIR="${am__leading_dot}deps" 3597 3598ac_config_commands="$ac_config_commands depfiles" 3599 3600 3601am_make=${MAKE-make} 3602cat > confinc << 'END' 3603am__doit: 3604 @echo this is the am__doit target 3605.PHONY: am__doit 3606END 3607# If we don't find an include directive, just comment out the code. 3608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3609$as_echo_n "checking for style of include used by $am_make... " >&6; } 3610am__include="#" 3611am__quote= 3612_am_result=none 3613# First try GNU make style include. 3614echo "include confinc" > confmf 3615# Ignore all kinds of additional output from 'make'. 3616case `$am_make -s -f confmf 2> /dev/null` in #( 3617*the\ am__doit\ target*) 3618 am__include=include 3619 am__quote= 3620 _am_result=GNU 3621 ;; 3622esac 3623# Now try BSD make style include. 3624if test "$am__include" = "#"; then 3625 echo '.include "confinc"' > confmf 3626 case `$am_make -s -f confmf 2> /dev/null` in #( 3627 *the\ am__doit\ target*) 3628 am__include=.include 3629 am__quote="\"" 3630 _am_result=BSD 3631 ;; 3632 esac 3633fi 3634 3635 3636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3637$as_echo "$_am_result" >&6; } 3638rm -f confinc confmf 3639 3640# Check whether --enable-dependency-tracking was given. 3641if test "${enable_dependency_tracking+set}" = set; then : 3642 enableval=$enable_dependency_tracking; 3643fi 3644 3645if test "x$enable_dependency_tracking" != xno; then 3646 am_depcomp="$ac_aux_dir/depcomp" 3647 AMDEPBACKSLASH='\' 3648 am__nodep='_no' 3649fi 3650 if test "x$enable_dependency_tracking" != xno; then 3651 AMDEP_TRUE= 3652 AMDEP_FALSE='#' 3653else 3654 AMDEP_TRUE='#' 3655 AMDEP_FALSE= 3656fi 3657 3658 3659ac_ext=c 3660ac_cpp='$CPP $CPPFLAGS' 3661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3663ac_compiler_gnu=$ac_cv_c_compiler_gnu 3664if test -n "$ac_tool_prefix"; then 3665 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3666set dummy ${ac_tool_prefix}gcc; ac_word=$2 3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3668$as_echo_n "checking for $ac_word... " >&6; } 3669if ${ac_cv_prog_CC+:} false; then : 3670 $as_echo_n "(cached) " >&6 3671else 3672 if test -n "$CC"; then 3673 ac_cv_prog_CC="$CC" # Let the user override the test. 3674else 3675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3676for as_dir in $PATH 3677do 3678 IFS=$as_save_IFS 3679 test -z "$as_dir" && as_dir=. 3680 for ac_exec_ext in '' $ac_executable_extensions; do 3681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3682 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3684 break 2 3685 fi 3686done 3687 done 3688IFS=$as_save_IFS 3689 3690fi 3691fi 3692CC=$ac_cv_prog_CC 3693if test -n "$CC"; then 3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3695$as_echo "$CC" >&6; } 3696else 3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3698$as_echo "no" >&6; } 3699fi 3700 3701 3702fi 3703if test -z "$ac_cv_prog_CC"; then 3704 ac_ct_CC=$CC 3705 # Extract the first word of "gcc", so it can be a program name with args. 3706set dummy gcc; ac_word=$2 3707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3708$as_echo_n "checking for $ac_word... " >&6; } 3709if ${ac_cv_prog_ac_ct_CC+:} false; then : 3710 $as_echo_n "(cached) " >&6 3711else 3712 if test -n "$ac_ct_CC"; then 3713 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3714else 3715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3716for as_dir in $PATH 3717do 3718 IFS=$as_save_IFS 3719 test -z "$as_dir" && as_dir=. 3720 for ac_exec_ext in '' $ac_executable_extensions; do 3721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3722 ac_cv_prog_ac_ct_CC="gcc" 3723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3724 break 2 3725 fi 3726done 3727 done 3728IFS=$as_save_IFS 3729 3730fi 3731fi 3732ac_ct_CC=$ac_cv_prog_ac_ct_CC 3733if test -n "$ac_ct_CC"; then 3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3735$as_echo "$ac_ct_CC" >&6; } 3736else 3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3738$as_echo "no" >&6; } 3739fi 3740 3741 if test "x$ac_ct_CC" = x; then 3742 CC="" 3743 else 3744 case $cross_compiling:$ac_tool_warned in 3745yes:) 3746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3748ac_tool_warned=yes ;; 3749esac 3750 CC=$ac_ct_CC 3751 fi 3752else 3753 CC="$ac_cv_prog_CC" 3754fi 3755 3756if test -z "$CC"; then 3757 if test -n "$ac_tool_prefix"; then 3758 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3759set dummy ${ac_tool_prefix}cc; ac_word=$2 3760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3761$as_echo_n "checking for $ac_word... " >&6; } 3762if ${ac_cv_prog_CC+:} false; then : 3763 $as_echo_n "(cached) " >&6 3764else 3765 if test -n "$CC"; then 3766 ac_cv_prog_CC="$CC" # Let the user override the test. 3767else 3768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3769for as_dir in $PATH 3770do 3771 IFS=$as_save_IFS 3772 test -z "$as_dir" && as_dir=. 3773 for ac_exec_ext in '' $ac_executable_extensions; do 3774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3775 ac_cv_prog_CC="${ac_tool_prefix}cc" 3776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3777 break 2 3778 fi 3779done 3780 done 3781IFS=$as_save_IFS 3782 3783fi 3784fi 3785CC=$ac_cv_prog_CC 3786if test -n "$CC"; then 3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3788$as_echo "$CC" >&6; } 3789else 3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3791$as_echo "no" >&6; } 3792fi 3793 3794 3795 fi 3796fi 3797if test -z "$CC"; then 3798 # Extract the first word of "cc", so it can be a program name with args. 3799set dummy cc; ac_word=$2 3800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3801$as_echo_n "checking for $ac_word... " >&6; } 3802if ${ac_cv_prog_CC+:} false; then : 3803 $as_echo_n "(cached) " >&6 3804else 3805 if test -n "$CC"; then 3806 ac_cv_prog_CC="$CC" # Let the user override the test. 3807else 3808 ac_prog_rejected=no 3809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3810for as_dir in $PATH 3811do 3812 IFS=$as_save_IFS 3813 test -z "$as_dir" && as_dir=. 3814 for ac_exec_ext in '' $ac_executable_extensions; do 3815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3816 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3817 ac_prog_rejected=yes 3818 continue 3819 fi 3820 ac_cv_prog_CC="cc" 3821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3822 break 2 3823 fi 3824done 3825 done 3826IFS=$as_save_IFS 3827 3828if test $ac_prog_rejected = yes; then 3829 # We found a bogon in the path, so make sure we never use it. 3830 set dummy $ac_cv_prog_CC 3831 shift 3832 if test $# != 0; then 3833 # We chose a different compiler from the bogus one. 3834 # However, it has the same basename, so the bogon will be chosen 3835 # first if we set CC to just the basename; use the full file name. 3836 shift 3837 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3838 fi 3839fi 3840fi 3841fi 3842CC=$ac_cv_prog_CC 3843if test -n "$CC"; then 3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3845$as_echo "$CC" >&6; } 3846else 3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3848$as_echo "no" >&6; } 3849fi 3850 3851 3852fi 3853if test -z "$CC"; then 3854 if test -n "$ac_tool_prefix"; then 3855 for ac_prog in cl.exe 3856 do 3857 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3858set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3860$as_echo_n "checking for $ac_word... " >&6; } 3861if ${ac_cv_prog_CC+:} false; then : 3862 $as_echo_n "(cached) " >&6 3863else 3864 if test -n "$CC"; then 3865 ac_cv_prog_CC="$CC" # Let the user override the test. 3866else 3867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3868for as_dir in $PATH 3869do 3870 IFS=$as_save_IFS 3871 test -z "$as_dir" && as_dir=. 3872 for ac_exec_ext in '' $ac_executable_extensions; do 3873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3874 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3876 break 2 3877 fi 3878done 3879 done 3880IFS=$as_save_IFS 3881 3882fi 3883fi 3884CC=$ac_cv_prog_CC 3885if test -n "$CC"; then 3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3887$as_echo "$CC" >&6; } 3888else 3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3890$as_echo "no" >&6; } 3891fi 3892 3893 3894 test -n "$CC" && break 3895 done 3896fi 3897if test -z "$CC"; then 3898 ac_ct_CC=$CC 3899 for ac_prog in cl.exe 3900do 3901 # Extract the first word of "$ac_prog", so it can be a program name with args. 3902set dummy $ac_prog; ac_word=$2 3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3904$as_echo_n "checking for $ac_word... " >&6; } 3905if ${ac_cv_prog_ac_ct_CC+:} false; then : 3906 $as_echo_n "(cached) " >&6 3907else 3908 if test -n "$ac_ct_CC"; then 3909 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3910else 3911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3912for as_dir in $PATH 3913do 3914 IFS=$as_save_IFS 3915 test -z "$as_dir" && as_dir=. 3916 for ac_exec_ext in '' $ac_executable_extensions; do 3917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3918 ac_cv_prog_ac_ct_CC="$ac_prog" 3919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3920 break 2 3921 fi 3922done 3923 done 3924IFS=$as_save_IFS 3925 3926fi 3927fi 3928ac_ct_CC=$ac_cv_prog_ac_ct_CC 3929if test -n "$ac_ct_CC"; then 3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3931$as_echo "$ac_ct_CC" >&6; } 3932else 3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3934$as_echo "no" >&6; } 3935fi 3936 3937 3938 test -n "$ac_ct_CC" && break 3939done 3940 3941 if test "x$ac_ct_CC" = x; then 3942 CC="" 3943 else 3944 case $cross_compiling:$ac_tool_warned in 3945yes:) 3946{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3947$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3948ac_tool_warned=yes ;; 3949esac 3950 CC=$ac_ct_CC 3951 fi 3952fi 3953 3954fi 3955 3956 3957test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3958$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3959as_fn_error $? "no acceptable C compiler found in \$PATH 3960See \`config.log' for more details" "$LINENO" 5; } 3961 3962# Provide some information about the compiler. 3963$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3964set X $ac_compile 3965ac_compiler=$2 3966for ac_option in --version -v -V -qversion; do 3967 { { ac_try="$ac_compiler $ac_option >&5" 3968case "(($ac_try" in 3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3970 *) ac_try_echo=$ac_try;; 3971esac 3972eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3973$as_echo "$ac_try_echo"; } >&5 3974 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3975 ac_status=$? 3976 if test -s conftest.err; then 3977 sed '10a\ 3978... rest of stderr output deleted ... 3979 10q' conftest.err >conftest.er1 3980 cat conftest.er1 >&5 3981 fi 3982 rm -f conftest.er1 conftest.err 3983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3984 test $ac_status = 0; } 3985done 3986 3987cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3988/* end confdefs.h. */ 3989 3990int 3991main () 3992{ 3993 3994 ; 3995 return 0; 3996} 3997_ACEOF 3998ac_clean_files_save=$ac_clean_files 3999ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4000# Try to create an executable without -o first, disregard a.out. 4001# It will help us diagnose broken compilers, and finding out an intuition 4002# of exeext. 4003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4004$as_echo_n "checking whether the C compiler works... " >&6; } 4005ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4006 4007# The possible output files: 4008ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4009 4010ac_rmfiles= 4011for ac_file in $ac_files 4012do 4013 case $ac_file in 4014 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4015 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4016 esac 4017done 4018rm -f $ac_rmfiles 4019 4020if { { ac_try="$ac_link_default" 4021case "(($ac_try" in 4022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4023 *) ac_try_echo=$ac_try;; 4024esac 4025eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4026$as_echo "$ac_try_echo"; } >&5 4027 (eval "$ac_link_default") 2>&5 4028 ac_status=$? 4029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4030 test $ac_status = 0; }; then : 4031 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4032# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4033# in a Makefile. We should not override ac_cv_exeext if it was cached, 4034# so that the user can short-circuit this test for compilers unknown to 4035# Autoconf. 4036for ac_file in $ac_files '' 4037do 4038 test -f "$ac_file" || continue 4039 case $ac_file in 4040 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4041 ;; 4042 [ab].out ) 4043 # We found the default executable, but exeext='' is most 4044 # certainly right. 4045 break;; 4046 *.* ) 4047 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4048 then :; else 4049 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4050 fi 4051 # We set ac_cv_exeext here because the later test for it is not 4052 # safe: cross compilers may not add the suffix if given an `-o' 4053 # argument, so we may need to know it at that point already. 4054 # Even if this section looks crufty: it has the advantage of 4055 # actually working. 4056 break;; 4057 * ) 4058 break;; 4059 esac 4060done 4061test "$ac_cv_exeext" = no && ac_cv_exeext= 4062 4063else 4064 ac_file='' 4065fi 4066if test -z "$ac_file"; then : 4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4068$as_echo "no" >&6; } 4069$as_echo "$as_me: failed program was:" >&5 4070sed 's/^/| /' conftest.$ac_ext >&5 4071 4072{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4073$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4074as_fn_error 77 "C compiler cannot create executables 4075See \`config.log' for more details" "$LINENO" 5; } 4076else 4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4078$as_echo "yes" >&6; } 4079fi 4080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4081$as_echo_n "checking for C compiler default output file name... " >&6; } 4082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4083$as_echo "$ac_file" >&6; } 4084ac_exeext=$ac_cv_exeext 4085 4086rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4087ac_clean_files=$ac_clean_files_save 4088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4089$as_echo_n "checking for suffix of executables... " >&6; } 4090if { { ac_try="$ac_link" 4091case "(($ac_try" in 4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4093 *) ac_try_echo=$ac_try;; 4094esac 4095eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4096$as_echo "$ac_try_echo"; } >&5 4097 (eval "$ac_link") 2>&5 4098 ac_status=$? 4099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4100 test $ac_status = 0; }; then : 4101 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4102# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4103# work properly (i.e., refer to `conftest.exe'), while it won't with 4104# `rm'. 4105for ac_file in conftest.exe conftest conftest.*; do 4106 test -f "$ac_file" || continue 4107 case $ac_file in 4108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4109 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4110 break;; 4111 * ) break;; 4112 esac 4113done 4114else 4115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4116$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4117as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4118See \`config.log' for more details" "$LINENO" 5; } 4119fi 4120rm -f conftest conftest$ac_cv_exeext 4121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4122$as_echo "$ac_cv_exeext" >&6; } 4123 4124rm -f conftest.$ac_ext 4125EXEEXT=$ac_cv_exeext 4126ac_exeext=$EXEEXT 4127cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4128/* end confdefs.h. */ 4129#include <stdio.h> 4130int 4131main () 4132{ 4133FILE *f = fopen ("conftest.out", "w"); 4134 return ferror (f) || fclose (f) != 0; 4135 4136 ; 4137 return 0; 4138} 4139_ACEOF 4140ac_clean_files="$ac_clean_files conftest.out" 4141# Check that the compiler produces executables we can run. If not, either 4142# the compiler is broken, or we cross compile. 4143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4144$as_echo_n "checking whether we are cross compiling... " >&6; } 4145if test "$cross_compiling" != yes; then 4146 { { ac_try="$ac_link" 4147case "(($ac_try" in 4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4149 *) ac_try_echo=$ac_try;; 4150esac 4151eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4152$as_echo "$ac_try_echo"; } >&5 4153 (eval "$ac_link") 2>&5 4154 ac_status=$? 4155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4156 test $ac_status = 0; } 4157 if { ac_try='./conftest$ac_cv_exeext' 4158 { { case "(($ac_try" in 4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4160 *) ac_try_echo=$ac_try;; 4161esac 4162eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4163$as_echo "$ac_try_echo"; } >&5 4164 (eval "$ac_try") 2>&5 4165 ac_status=$? 4166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4167 test $ac_status = 0; }; }; then 4168 cross_compiling=no 4169 else 4170 if test "$cross_compiling" = maybe; then 4171 cross_compiling=yes 4172 else 4173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4175as_fn_error $? "cannot run C compiled programs. 4176If you meant to cross compile, use \`--host'. 4177See \`config.log' for more details" "$LINENO" 5; } 4178 fi 4179 fi 4180fi 4181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4182$as_echo "$cross_compiling" >&6; } 4183 4184rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4185ac_clean_files=$ac_clean_files_save 4186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4187$as_echo_n "checking for suffix of object files... " >&6; } 4188if ${ac_cv_objext+:} false; then : 4189 $as_echo_n "(cached) " >&6 4190else 4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4192/* end confdefs.h. */ 4193 4194int 4195main () 4196{ 4197 4198 ; 4199 return 0; 4200} 4201_ACEOF 4202rm -f conftest.o conftest.obj 4203if { { ac_try="$ac_compile" 4204case "(($ac_try" in 4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4206 *) ac_try_echo=$ac_try;; 4207esac 4208eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4209$as_echo "$ac_try_echo"; } >&5 4210 (eval "$ac_compile") 2>&5 4211 ac_status=$? 4212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4213 test $ac_status = 0; }; then : 4214 for ac_file in conftest.o conftest.obj conftest.*; do 4215 test -f "$ac_file" || continue; 4216 case $ac_file in 4217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4218 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4219 break;; 4220 esac 4221done 4222else 4223 $as_echo "$as_me: failed program was:" >&5 4224sed 's/^/| /' conftest.$ac_ext >&5 4225 4226{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4227$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4228as_fn_error $? "cannot compute suffix of object files: cannot compile 4229See \`config.log' for more details" "$LINENO" 5; } 4230fi 4231rm -f conftest.$ac_cv_objext conftest.$ac_ext 4232fi 4233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4234$as_echo "$ac_cv_objext" >&6; } 4235OBJEXT=$ac_cv_objext 4236ac_objext=$OBJEXT 4237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4238$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4239if ${ac_cv_c_compiler_gnu+:} false; then : 4240 $as_echo_n "(cached) " >&6 4241else 4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4243/* end confdefs.h. */ 4244 4245int 4246main () 4247{ 4248#ifndef __GNUC__ 4249 choke me 4250#endif 4251 4252 ; 4253 return 0; 4254} 4255_ACEOF 4256if ac_fn_c_try_compile "$LINENO"; then : 4257 ac_compiler_gnu=yes 4258else 4259 ac_compiler_gnu=no 4260fi 4261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4262ac_cv_c_compiler_gnu=$ac_compiler_gnu 4263 4264fi 4265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4266$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4267if test $ac_compiler_gnu = yes; then 4268 GCC=yes 4269else 4270 GCC= 4271fi 4272ac_test_CFLAGS=${CFLAGS+set} 4273ac_save_CFLAGS=$CFLAGS 4274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4275$as_echo_n "checking whether $CC accepts -g... " >&6; } 4276if ${ac_cv_prog_cc_g+:} false; then : 4277 $as_echo_n "(cached) " >&6 4278else 4279 ac_save_c_werror_flag=$ac_c_werror_flag 4280 ac_c_werror_flag=yes 4281 ac_cv_prog_cc_g=no 4282 CFLAGS="-g" 4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4284/* end confdefs.h. */ 4285 4286int 4287main () 4288{ 4289 4290 ; 4291 return 0; 4292} 4293_ACEOF 4294if ac_fn_c_try_compile "$LINENO"; then : 4295 ac_cv_prog_cc_g=yes 4296else 4297 CFLAGS="" 4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4299/* end confdefs.h. */ 4300 4301int 4302main () 4303{ 4304 4305 ; 4306 return 0; 4307} 4308_ACEOF 4309if ac_fn_c_try_compile "$LINENO"; then : 4310 4311else 4312 ac_c_werror_flag=$ac_save_c_werror_flag 4313 CFLAGS="-g" 4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4315/* end confdefs.h. */ 4316 4317int 4318main () 4319{ 4320 4321 ; 4322 return 0; 4323} 4324_ACEOF 4325if ac_fn_c_try_compile "$LINENO"; then : 4326 ac_cv_prog_cc_g=yes 4327fi 4328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4329fi 4330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4331fi 4332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4333 ac_c_werror_flag=$ac_save_c_werror_flag 4334fi 4335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4336$as_echo "$ac_cv_prog_cc_g" >&6; } 4337if test "$ac_test_CFLAGS" = set; then 4338 CFLAGS=$ac_save_CFLAGS 4339elif test $ac_cv_prog_cc_g = yes; then 4340 if test "$GCC" = yes; then 4341 CFLAGS="-g -O2" 4342 else 4343 CFLAGS="-g" 4344 fi 4345else 4346 if test "$GCC" = yes; then 4347 CFLAGS="-O2" 4348 else 4349 CFLAGS= 4350 fi 4351fi 4352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4353$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4354if ${ac_cv_prog_cc_c89+:} false; then : 4355 $as_echo_n "(cached) " >&6 4356else 4357 ac_cv_prog_cc_c89=no 4358ac_save_CC=$CC 4359cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4360/* end confdefs.h. */ 4361#include <stdarg.h> 4362#include <stdio.h> 4363struct stat; 4364/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4365struct buf { int x; }; 4366FILE * (*rcsopen) (struct buf *, struct stat *, int); 4367static char *e (p, i) 4368 char **p; 4369 int i; 4370{ 4371 return p[i]; 4372} 4373static char *f (char * (*g) (char **, int), char **p, ...) 4374{ 4375 char *s; 4376 va_list v; 4377 va_start (v,p); 4378 s = g (p, va_arg (v,int)); 4379 va_end (v); 4380 return s; 4381} 4382 4383/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4384 function prototypes and stuff, but not '\xHH' hex character constants. 4385 These don't provoke an error unfortunately, instead are silently treated 4386 as 'x'. The following induces an error, until -std is added to get 4387 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4388 array size at least. It's necessary to write '\x00'==0 to get something 4389 that's true only with -std. */ 4390int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4391 4392/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4393 inside strings and character constants. */ 4394#define FOO(x) 'x' 4395int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4396 4397int test (int i, double x); 4398struct s1 {int (*f) (int a);}; 4399struct s2 {int (*f) (double a);}; 4400int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4401int argc; 4402char **argv; 4403int 4404main () 4405{ 4406return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4407 ; 4408 return 0; 4409} 4410_ACEOF 4411for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4412 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4413do 4414 CC="$ac_save_CC $ac_arg" 4415 if ac_fn_c_try_compile "$LINENO"; then : 4416 ac_cv_prog_cc_c89=$ac_arg 4417fi 4418rm -f core conftest.err conftest.$ac_objext 4419 test "x$ac_cv_prog_cc_c89" != "xno" && break 4420done 4421rm -f conftest.$ac_ext 4422CC=$ac_save_CC 4423 4424fi 4425# AC_CACHE_VAL 4426case "x$ac_cv_prog_cc_c89" in 4427 x) 4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4429$as_echo "none needed" >&6; } ;; 4430 xno) 4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4432$as_echo "unsupported" >&6; } ;; 4433 *) 4434 CC="$CC $ac_cv_prog_cc_c89" 4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4436$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4437esac 4438if test "x$ac_cv_prog_cc_c89" != xno; then : 4439 4440fi 4441 4442ac_ext=c 4443ac_cpp='$CPP $CPPFLAGS' 4444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4446ac_compiler_gnu=$ac_cv_c_compiler_gnu 4447 4448ac_ext=c 4449ac_cpp='$CPP $CPPFLAGS' 4450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4452ac_compiler_gnu=$ac_cv_c_compiler_gnu 4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4454$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4455if ${am_cv_prog_cc_c_o+:} false; then : 4456 $as_echo_n "(cached) " >&6 4457else 4458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4459/* end confdefs.h. */ 4460 4461int 4462main () 4463{ 4464 4465 ; 4466 return 0; 4467} 4468_ACEOF 4469 # Make sure it works both with $CC and with simple cc. 4470 # Following AC_PROG_CC_C_O, we do the test twice because some 4471 # compilers refuse to overwrite an existing .o file with -o, 4472 # though they will create one. 4473 am_cv_prog_cc_c_o=yes 4474 for am_i in 1 2; do 4475 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4476 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4477 ac_status=$? 4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4479 (exit $ac_status); } \ 4480 && test -f conftest2.$ac_objext; then 4481 : OK 4482 else 4483 am_cv_prog_cc_c_o=no 4484 break 4485 fi 4486 done 4487 rm -f core conftest* 4488 unset am_i 4489fi 4490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4491$as_echo "$am_cv_prog_cc_c_o" >&6; } 4492if test "$am_cv_prog_cc_c_o" != yes; then 4493 # Losing compiler, so override with the script. 4494 # FIXME: It is wrong to rewrite CC. 4495 # But if we don't then we get into trouble of one sort or another. 4496 # A longer-term fix would be to have automake use am__CC in this case, 4497 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4498 CC="$am_aux_dir/compile $CC" 4499fi 4500ac_ext=c 4501ac_cpp='$CPP $CPPFLAGS' 4502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4504ac_compiler_gnu=$ac_cv_c_compiler_gnu 4505 4506 4507depcc="$CC" am_compiler_list= 4508 4509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4510$as_echo_n "checking dependency style of $depcc... " >&6; } 4511if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4512 $as_echo_n "(cached) " >&6 4513else 4514 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4515 # We make a subdir and do the tests there. Otherwise we can end up 4516 # making bogus files that we don't know about and never remove. For 4517 # instance it was reported that on HP-UX the gcc test will end up 4518 # making a dummy file named 'D' -- because '-MD' means "put the output 4519 # in D". 4520 rm -rf conftest.dir 4521 mkdir conftest.dir 4522 # Copy depcomp to subdir because otherwise we won't find it if we're 4523 # using a relative directory. 4524 cp "$am_depcomp" conftest.dir 4525 cd conftest.dir 4526 # We will build objects and dependencies in a subdirectory because 4527 # it helps to detect inapplicable dependency modes. For instance 4528 # both Tru64's cc and ICC support -MD to output dependencies as a 4529 # side effect of compilation, but ICC will put the dependencies in 4530 # the current directory while Tru64 will put them in the object 4531 # directory. 4532 mkdir sub 4533 4534 am_cv_CC_dependencies_compiler_type=none 4535 if test "$am_compiler_list" = ""; then 4536 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4537 fi 4538 am__universal=false 4539 case " $depcc " in #( 4540 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4541 esac 4542 4543 for depmode in $am_compiler_list; do 4544 # Setup a source with many dependencies, because some compilers 4545 # like to wrap large dependency lists on column 80 (with \), and 4546 # we should not choose a depcomp mode which is confused by this. 4547 # 4548 # We need to recreate these files for each test, as the compiler may 4549 # overwrite some of them when testing with obscure command lines. 4550 # This happens at least with the AIX C compiler. 4551 : > sub/conftest.c 4552 for i in 1 2 3 4 5 6; do 4553 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4554 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4555 # Solaris 10 /bin/sh. 4556 echo '/* dummy */' > sub/conftst$i.h 4557 done 4558 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4559 4560 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4561 # mode. It turns out that the SunPro C++ compiler does not properly 4562 # handle '-M -o', and we need to detect this. Also, some Intel 4563 # versions had trouble with output in subdirs. 4564 am__obj=sub/conftest.${OBJEXT-o} 4565 am__minus_obj="-o $am__obj" 4566 case $depmode in 4567 gcc) 4568 # This depmode causes a compiler race in universal mode. 4569 test "$am__universal" = false || continue 4570 ;; 4571 nosideeffect) 4572 # After this tag, mechanisms are not by side-effect, so they'll 4573 # only be used when explicitly requested. 4574 if test "x$enable_dependency_tracking" = xyes; then 4575 continue 4576 else 4577 break 4578 fi 4579 ;; 4580 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4581 # This compiler won't grok '-c -o', but also, the minuso test has 4582 # not run yet. These depmodes are late enough in the game, and 4583 # so weak that their functioning should not be impacted. 4584 am__obj=conftest.${OBJEXT-o} 4585 am__minus_obj= 4586 ;; 4587 none) break ;; 4588 esac 4589 if depmode=$depmode \ 4590 source=sub/conftest.c object=$am__obj \ 4591 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4592 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4593 >/dev/null 2>conftest.err && 4594 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4595 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4596 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4597 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4598 # icc doesn't choke on unknown options, it will just issue warnings 4599 # or remarks (even with -Werror). So we grep stderr for any message 4600 # that says an option was ignored or not supported. 4601 # When given -MP, icc 7.0 and 7.1 complain thusly: 4602 # icc: Command line warning: ignoring option '-M'; no argument required 4603 # The diagnosis changed in icc 8.0: 4604 # icc: Command line remark: option '-MP' not supported 4605 if (grep 'ignoring option' conftest.err || 4606 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4607 am_cv_CC_dependencies_compiler_type=$depmode 4608 break 4609 fi 4610 fi 4611 done 4612 4613 cd .. 4614 rm -rf conftest.dir 4615else 4616 am_cv_CC_dependencies_compiler_type=none 4617fi 4618 4619fi 4620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4621$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4622CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4623 4624 if 4625 test "x$enable_dependency_tracking" != xno \ 4626 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4627 am__fastdepCC_TRUE= 4628 am__fastdepCC_FALSE='#' 4629else 4630 am__fastdepCC_TRUE='#' 4631 am__fastdepCC_FALSE= 4632fi 4633 4634 4635 4636ac_ext=c 4637ac_cpp='$CPP $CPPFLAGS' 4638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4640ac_compiler_gnu=$ac_cv_c_compiler_gnu 4641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4642$as_echo_n "checking how to run the C preprocessor... " >&6; } 4643# On Suns, sometimes $CPP names a directory. 4644if test -n "$CPP" && test -d "$CPP"; then 4645 CPP= 4646fi 4647if test -z "$CPP"; then 4648 if ${ac_cv_prog_CPP+:} false; then : 4649 $as_echo_n "(cached) " >&6 4650else 4651 # Double quotes because CPP needs to be expanded 4652 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4653 do 4654 ac_preproc_ok=false 4655for ac_c_preproc_warn_flag in '' yes 4656do 4657 # Use a header file that comes with gcc, so configuring glibc 4658 # with a fresh cross-compiler works. 4659 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4660 # <limits.h> exists even on freestanding compilers. 4661 # On the NeXT, cc -E runs the code through the compiler's parser, 4662 # not just through cpp. "Syntax error" is here to catch this case. 4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4664/* end confdefs.h. */ 4665#ifdef __STDC__ 4666# include <limits.h> 4667#else 4668# include <assert.h> 4669#endif 4670 Syntax error 4671_ACEOF 4672if ac_fn_c_try_cpp "$LINENO"; then : 4673 4674else 4675 # Broken: fails on valid input. 4676continue 4677fi 4678rm -f conftest.err conftest.i conftest.$ac_ext 4679 4680 # OK, works on sane cases. Now check whether nonexistent headers 4681 # can be detected and how. 4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4683/* end confdefs.h. */ 4684#include <ac_nonexistent.h> 4685_ACEOF 4686if ac_fn_c_try_cpp "$LINENO"; then : 4687 # Broken: success on invalid input. 4688continue 4689else 4690 # Passes both tests. 4691ac_preproc_ok=: 4692break 4693fi 4694rm -f conftest.err conftest.i conftest.$ac_ext 4695 4696done 4697# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4698rm -f conftest.i conftest.err conftest.$ac_ext 4699if $ac_preproc_ok; then : 4700 break 4701fi 4702 4703 done 4704 ac_cv_prog_CPP=$CPP 4705 4706fi 4707 CPP=$ac_cv_prog_CPP 4708else 4709 ac_cv_prog_CPP=$CPP 4710fi 4711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4712$as_echo "$CPP" >&6; } 4713ac_preproc_ok=false 4714for ac_c_preproc_warn_flag in '' yes 4715do 4716 # Use a header file that comes with gcc, so configuring glibc 4717 # with a fresh cross-compiler works. 4718 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4719 # <limits.h> exists even on freestanding compilers. 4720 # On the NeXT, cc -E runs the code through the compiler's parser, 4721 # not just through cpp. "Syntax error" is here to catch this case. 4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4723/* end confdefs.h. */ 4724#ifdef __STDC__ 4725# include <limits.h> 4726#else 4727# include <assert.h> 4728#endif 4729 Syntax error 4730_ACEOF 4731if ac_fn_c_try_cpp "$LINENO"; then : 4732 4733else 4734 # Broken: fails on valid input. 4735continue 4736fi 4737rm -f conftest.err conftest.i conftest.$ac_ext 4738 4739 # OK, works on sane cases. Now check whether nonexistent headers 4740 # can be detected and how. 4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4742/* end confdefs.h. */ 4743#include <ac_nonexistent.h> 4744_ACEOF 4745if ac_fn_c_try_cpp "$LINENO"; then : 4746 # Broken: success on invalid input. 4747continue 4748else 4749 # Passes both tests. 4750ac_preproc_ok=: 4751break 4752fi 4753rm -f conftest.err conftest.i conftest.$ac_ext 4754 4755done 4756# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4757rm -f conftest.i conftest.err conftest.$ac_ext 4758if $ac_preproc_ok; then : 4759 4760else 4761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4763as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4764See \`config.log' for more details" "$LINENO" 5; } 4765fi 4766 4767ac_ext=c 4768ac_cpp='$CPP $CPPFLAGS' 4769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4771ac_compiler_gnu=$ac_cv_c_compiler_gnu 4772 4773 4774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4775$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4776if ${ac_cv_path_GREP+:} false; then : 4777 $as_echo_n "(cached) " >&6 4778else 4779 if test -z "$GREP"; then 4780 ac_path_GREP_found=false 4781 # Loop through the user's path and test for each of PROGNAME-LIST 4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4783for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4784do 4785 IFS=$as_save_IFS 4786 test -z "$as_dir" && as_dir=. 4787 for ac_prog in grep ggrep; do 4788 for ac_exec_ext in '' $ac_executable_extensions; do 4789 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4790 as_fn_executable_p "$ac_path_GREP" || continue 4791# Check for GNU ac_path_GREP and select it if it is found. 4792 # Check for GNU $ac_path_GREP 4793case `"$ac_path_GREP" --version 2>&1` in 4794*GNU*) 4795 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4796*) 4797 ac_count=0 4798 $as_echo_n 0123456789 >"conftest.in" 4799 while : 4800 do 4801 cat "conftest.in" "conftest.in" >"conftest.tmp" 4802 mv "conftest.tmp" "conftest.in" 4803 cp "conftest.in" "conftest.nl" 4804 $as_echo 'GREP' >> "conftest.nl" 4805 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4806 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4807 as_fn_arith $ac_count + 1 && ac_count=$as_val 4808 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4809 # Best one so far, save it but keep looking for a better one 4810 ac_cv_path_GREP="$ac_path_GREP" 4811 ac_path_GREP_max=$ac_count 4812 fi 4813 # 10*(2^10) chars as input seems more than enough 4814 test $ac_count -gt 10 && break 4815 done 4816 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4817esac 4818 4819 $ac_path_GREP_found && break 3 4820 done 4821 done 4822 done 4823IFS=$as_save_IFS 4824 if test -z "$ac_cv_path_GREP"; then 4825 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4826 fi 4827else 4828 ac_cv_path_GREP=$GREP 4829fi 4830 4831fi 4832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4833$as_echo "$ac_cv_path_GREP" >&6; } 4834 GREP="$ac_cv_path_GREP" 4835 4836 4837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4838$as_echo_n "checking for egrep... " >&6; } 4839if ${ac_cv_path_EGREP+:} false; then : 4840 $as_echo_n "(cached) " >&6 4841else 4842 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4843 then ac_cv_path_EGREP="$GREP -E" 4844 else 4845 if test -z "$EGREP"; then 4846 ac_path_EGREP_found=false 4847 # Loop through the user's path and test for each of PROGNAME-LIST 4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4849for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4850do 4851 IFS=$as_save_IFS 4852 test -z "$as_dir" && as_dir=. 4853 for ac_prog in egrep; do 4854 for ac_exec_ext in '' $ac_executable_extensions; do 4855 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4856 as_fn_executable_p "$ac_path_EGREP" || continue 4857# Check for GNU ac_path_EGREP and select it if it is found. 4858 # Check for GNU $ac_path_EGREP 4859case `"$ac_path_EGREP" --version 2>&1` in 4860*GNU*) 4861 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4862*) 4863 ac_count=0 4864 $as_echo_n 0123456789 >"conftest.in" 4865 while : 4866 do 4867 cat "conftest.in" "conftest.in" >"conftest.tmp" 4868 mv "conftest.tmp" "conftest.in" 4869 cp "conftest.in" "conftest.nl" 4870 $as_echo 'EGREP' >> "conftest.nl" 4871 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4872 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4873 as_fn_arith $ac_count + 1 && ac_count=$as_val 4874 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4875 # Best one so far, save it but keep looking for a better one 4876 ac_cv_path_EGREP="$ac_path_EGREP" 4877 ac_path_EGREP_max=$ac_count 4878 fi 4879 # 10*(2^10) chars as input seems more than enough 4880 test $ac_count -gt 10 && break 4881 done 4882 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4883esac 4884 4885 $ac_path_EGREP_found && break 3 4886 done 4887 done 4888 done 4889IFS=$as_save_IFS 4890 if test -z "$ac_cv_path_EGREP"; then 4891 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4892 fi 4893else 4894 ac_cv_path_EGREP=$EGREP 4895fi 4896 4897 fi 4898fi 4899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4900$as_echo "$ac_cv_path_EGREP" >&6; } 4901 EGREP="$ac_cv_path_EGREP" 4902 4903 4904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4905$as_echo_n "checking for ANSI C header files... " >&6; } 4906if ${ac_cv_header_stdc+:} false; then : 4907 $as_echo_n "(cached) " >&6 4908else 4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4910/* end confdefs.h. */ 4911#include <stdlib.h> 4912#include <stdarg.h> 4913#include <string.h> 4914#include <float.h> 4915 4916int 4917main () 4918{ 4919 4920 ; 4921 return 0; 4922} 4923_ACEOF 4924if ac_fn_c_try_compile "$LINENO"; then : 4925 ac_cv_header_stdc=yes 4926else 4927 ac_cv_header_stdc=no 4928fi 4929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4930 4931if test $ac_cv_header_stdc = yes; then 4932 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4934/* end confdefs.h. */ 4935#include <string.h> 4936 4937_ACEOF 4938if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4939 $EGREP "memchr" >/dev/null 2>&1; then : 4940 4941else 4942 ac_cv_header_stdc=no 4943fi 4944rm -f conftest* 4945 4946fi 4947 4948if test $ac_cv_header_stdc = yes; then 4949 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4951/* end confdefs.h. */ 4952#include <stdlib.h> 4953 4954_ACEOF 4955if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4956 $EGREP "free" >/dev/null 2>&1; then : 4957 4958else 4959 ac_cv_header_stdc=no 4960fi 4961rm -f conftest* 4962 4963fi 4964 4965if test $ac_cv_header_stdc = yes; then 4966 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4967 if test "$cross_compiling" = yes; then : 4968 : 4969else 4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4971/* end confdefs.h. */ 4972#include <ctype.h> 4973#include <stdlib.h> 4974#if ((' ' & 0x0FF) == 0x020) 4975# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4976# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4977#else 4978# define ISLOWER(c) \ 4979 (('a' <= (c) && (c) <= 'i') \ 4980 || ('j' <= (c) && (c) <= 'r') \ 4981 || ('s' <= (c) && (c) <= 'z')) 4982# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4983#endif 4984 4985#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4986int 4987main () 4988{ 4989 int i; 4990 for (i = 0; i < 256; i++) 4991 if (XOR (islower (i), ISLOWER (i)) 4992 || toupper (i) != TOUPPER (i)) 4993 return 2; 4994 return 0; 4995} 4996_ACEOF 4997if ac_fn_c_try_run "$LINENO"; then : 4998 4999else 5000 ac_cv_header_stdc=no 5001fi 5002rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5003 conftest.$ac_objext conftest.beam conftest.$ac_ext 5004fi 5005 5006fi 5007fi 5008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5009$as_echo "$ac_cv_header_stdc" >&6; } 5010if test $ac_cv_header_stdc = yes; then 5011 5012$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5013 5014fi 5015 5016# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5017for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5018 inttypes.h stdint.h unistd.h 5019do : 5020 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5021ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5022" 5023if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5024 cat >>confdefs.h <<_ACEOF 5025#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5026_ACEOF 5027 5028fi 5029 5030done 5031 5032 5033 5034 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5035if test "x$ac_cv_header_minix_config_h" = xyes; then : 5036 MINIX=yes 5037else 5038 MINIX= 5039fi 5040 5041 5042 if test "$MINIX" = yes; then 5043 5044$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5045 5046 5047$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5048 5049 5050$as_echo "#define _MINIX 1" >>confdefs.h 5051 5052 fi 5053 5054 5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5056$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5057if ${ac_cv_safe_to_define___extensions__+:} false; then : 5058 $as_echo_n "(cached) " >&6 5059else 5060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5061/* end confdefs.h. */ 5062 5063# define __EXTENSIONS__ 1 5064 $ac_includes_default 5065int 5066main () 5067{ 5068 5069 ; 5070 return 0; 5071} 5072_ACEOF 5073if ac_fn_c_try_compile "$LINENO"; then : 5074 ac_cv_safe_to_define___extensions__=yes 5075else 5076 ac_cv_safe_to_define___extensions__=no 5077fi 5078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5079fi 5080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5081$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5082 test $ac_cv_safe_to_define___extensions__ = yes && 5083 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5084 5085 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5086 5087 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5088 5089 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5090 5091 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5092 5093 5094 5095 5096 5097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 5098$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 5099 # Check whether --enable-maintainer-mode was given. 5100if test "${enable_maintainer_mode+set}" = set; then : 5101 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 5102else 5103 USE_MAINTAINER_MODE=no 5104fi 5105 5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 5107$as_echo "$USE_MAINTAINER_MODE" >&6; } 5108 if test $USE_MAINTAINER_MODE = yes; then 5109 MAINTAINER_MODE_TRUE= 5110 MAINTAINER_MODE_FALSE='#' 5111else 5112 MAINTAINER_MODE_TRUE='#' 5113 MAINTAINER_MODE_FALSE= 5114fi 5115 5116 MAINT=$MAINTAINER_MODE_TRUE 5117 5118 5119 5120 5121 5122 5123TREE_VERSION="`echo ${PACKAGE_VERSION} | awk '{ print substr($0,1,3) }'`" 5124 5125cat >>confdefs.h <<_ACEOF 5126#define TREE_VERSION "${TREE_VERSION}" 5127_ACEOF 5128 5129 5130NUT_NETVERSION="1.2" 5131 5132cat >>confdefs.h <<_ACEOF 5133#define NUT_NETVERSION "${NUT_NETVERSION}" 5134_ACEOF 5135 5136 5137 5138test "${prefix}" = "NONE" && prefix="${ac_default_prefix}" 5139test "${exec_prefix}" = "NONE" && exec_prefix='${prefix}' 5140 5141CFLAGS=${CFLAGS-"-O"} 5142 5143 5144 5145STATEPATH="/var/state/ups" 5146 5147cgiexecdir='${exec_prefix}/cgi-bin' 5148driverexecdir='${exec_prefix}/bin' 5149htmldir='${prefix}/html' 5150pkgconfigdir='${libdir}/pkgconfig' 5151hotplugdir='/etc/hotplug' 5152if test ! -d "${hotplugdir}"; then 5153 hotplugdir='' 5154fi 5155udevdir='/lib/udev' 5156if test ! -d "${udevdir}"; then 5157 udevdir='/etc/udev' 5158 if test ! -d "${udevdir}"; then 5159 udevdir='' 5160 fi 5161fi 5162 5163devddir='/usr/local/etc/devd' 5164if test ! -d "${devddir}"; then 5165 devddir='/etc/devd' 5166 if test ! -d "${devddir}"; then 5167 devddir='' 5168 fi 5169fi 5170 5171RUN_AS_USER="nobody" 5172RUN_AS_GROUP="nobody" 5173PIDPATH="/var/run" 5174 5175 5176 5177 5178ac_ext=c 5179ac_cpp='$CPP $CPPFLAGS' 5180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5182ac_compiler_gnu=$ac_cv_c_compiler_gnu 5183if test -n "$ac_tool_prefix"; then 5184 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5185set dummy ${ac_tool_prefix}gcc; ac_word=$2 5186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5187$as_echo_n "checking for $ac_word... " >&6; } 5188if ${ac_cv_prog_CC+:} false; then : 5189 $as_echo_n "(cached) " >&6 5190else 5191 if test -n "$CC"; then 5192 ac_cv_prog_CC="$CC" # Let the user override the test. 5193else 5194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5195for as_dir in $PATH 5196do 5197 IFS=$as_save_IFS 5198 test -z "$as_dir" && as_dir=. 5199 for ac_exec_ext in '' $ac_executable_extensions; do 5200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5201 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5203 break 2 5204 fi 5205done 5206 done 5207IFS=$as_save_IFS 5208 5209fi 5210fi 5211CC=$ac_cv_prog_CC 5212if test -n "$CC"; then 5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5214$as_echo "$CC" >&6; } 5215else 5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5217$as_echo "no" >&6; } 5218fi 5219 5220 5221fi 5222if test -z "$ac_cv_prog_CC"; then 5223 ac_ct_CC=$CC 5224 # Extract the first word of "gcc", so it can be a program name with args. 5225set dummy gcc; ac_word=$2 5226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5227$as_echo_n "checking for $ac_word... " >&6; } 5228if ${ac_cv_prog_ac_ct_CC+:} false; then : 5229 $as_echo_n "(cached) " >&6 5230else 5231 if test -n "$ac_ct_CC"; then 5232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5233else 5234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5235for as_dir in $PATH 5236do 5237 IFS=$as_save_IFS 5238 test -z "$as_dir" && as_dir=. 5239 for ac_exec_ext in '' $ac_executable_extensions; do 5240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5241 ac_cv_prog_ac_ct_CC="gcc" 5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5243 break 2 5244 fi 5245done 5246 done 5247IFS=$as_save_IFS 5248 5249fi 5250fi 5251ac_ct_CC=$ac_cv_prog_ac_ct_CC 5252if test -n "$ac_ct_CC"; then 5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5254$as_echo "$ac_ct_CC" >&6; } 5255else 5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5257$as_echo "no" >&6; } 5258fi 5259 5260 if test "x$ac_ct_CC" = x; then 5261 CC="" 5262 else 5263 case $cross_compiling:$ac_tool_warned in 5264yes:) 5265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5267ac_tool_warned=yes ;; 5268esac 5269 CC=$ac_ct_CC 5270 fi 5271else 5272 CC="$ac_cv_prog_CC" 5273fi 5274 5275if test -z "$CC"; then 5276 if test -n "$ac_tool_prefix"; then 5277 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5278set dummy ${ac_tool_prefix}cc; ac_word=$2 5279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5280$as_echo_n "checking for $ac_word... " >&6; } 5281if ${ac_cv_prog_CC+:} false; then : 5282 $as_echo_n "(cached) " >&6 5283else 5284 if test -n "$CC"; then 5285 ac_cv_prog_CC="$CC" # Let the user override the test. 5286else 5287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5288for as_dir in $PATH 5289do 5290 IFS=$as_save_IFS 5291 test -z "$as_dir" && as_dir=. 5292 for ac_exec_ext in '' $ac_executable_extensions; do 5293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5294 ac_cv_prog_CC="${ac_tool_prefix}cc" 5295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5296 break 2 5297 fi 5298done 5299 done 5300IFS=$as_save_IFS 5301 5302fi 5303fi 5304CC=$ac_cv_prog_CC 5305if test -n "$CC"; then 5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5307$as_echo "$CC" >&6; } 5308else 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5310$as_echo "no" >&6; } 5311fi 5312 5313 5314 fi 5315fi 5316if test -z "$CC"; then 5317 # Extract the first word of "cc", so it can be a program name with args. 5318set dummy cc; ac_word=$2 5319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5320$as_echo_n "checking for $ac_word... " >&6; } 5321if ${ac_cv_prog_CC+:} false; then : 5322 $as_echo_n "(cached) " >&6 5323else 5324 if test -n "$CC"; then 5325 ac_cv_prog_CC="$CC" # Let the user override the test. 5326else 5327 ac_prog_rejected=no 5328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5329for as_dir in $PATH 5330do 5331 IFS=$as_save_IFS 5332 test -z "$as_dir" && as_dir=. 5333 for ac_exec_ext in '' $ac_executable_extensions; do 5334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5335 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5336 ac_prog_rejected=yes 5337 continue 5338 fi 5339 ac_cv_prog_CC="cc" 5340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5341 break 2 5342 fi 5343done 5344 done 5345IFS=$as_save_IFS 5346 5347if test $ac_prog_rejected = yes; then 5348 # We found a bogon in the path, so make sure we never use it. 5349 set dummy $ac_cv_prog_CC 5350 shift 5351 if test $# != 0; then 5352 # We chose a different compiler from the bogus one. 5353 # However, it has the same basename, so the bogon will be chosen 5354 # first if we set CC to just the basename; use the full file name. 5355 shift 5356 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5357 fi 5358fi 5359fi 5360fi 5361CC=$ac_cv_prog_CC 5362if test -n "$CC"; then 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5364$as_echo "$CC" >&6; } 5365else 5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5367$as_echo "no" >&6; } 5368fi 5369 5370 5371fi 5372if test -z "$CC"; then 5373 if test -n "$ac_tool_prefix"; then 5374 for ac_prog in cl.exe 5375 do 5376 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5377set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5379$as_echo_n "checking for $ac_word... " >&6; } 5380if ${ac_cv_prog_CC+:} false; then : 5381 $as_echo_n "(cached) " >&6 5382else 5383 if test -n "$CC"; then 5384 ac_cv_prog_CC="$CC" # Let the user override the test. 5385else 5386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5387for as_dir in $PATH 5388do 5389 IFS=$as_save_IFS 5390 test -z "$as_dir" && as_dir=. 5391 for ac_exec_ext in '' $ac_executable_extensions; do 5392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5393 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5395 break 2 5396 fi 5397done 5398 done 5399IFS=$as_save_IFS 5400 5401fi 5402fi 5403CC=$ac_cv_prog_CC 5404if test -n "$CC"; then 5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5406$as_echo "$CC" >&6; } 5407else 5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5409$as_echo "no" >&6; } 5410fi 5411 5412 5413 test -n "$CC" && break 5414 done 5415fi 5416if test -z "$CC"; then 5417 ac_ct_CC=$CC 5418 for ac_prog in cl.exe 5419do 5420 # Extract the first word of "$ac_prog", so it can be a program name with args. 5421set dummy $ac_prog; ac_word=$2 5422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5423$as_echo_n "checking for $ac_word... " >&6; } 5424if ${ac_cv_prog_ac_ct_CC+:} false; then : 5425 $as_echo_n "(cached) " >&6 5426else 5427 if test -n "$ac_ct_CC"; then 5428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5429else 5430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5431for as_dir in $PATH 5432do 5433 IFS=$as_save_IFS 5434 test -z "$as_dir" && as_dir=. 5435 for ac_exec_ext in '' $ac_executable_extensions; do 5436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5437 ac_cv_prog_ac_ct_CC="$ac_prog" 5438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5439 break 2 5440 fi 5441done 5442 done 5443IFS=$as_save_IFS 5444 5445fi 5446fi 5447ac_ct_CC=$ac_cv_prog_ac_ct_CC 5448if test -n "$ac_ct_CC"; then 5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5450$as_echo "$ac_ct_CC" >&6; } 5451else 5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5453$as_echo "no" >&6; } 5454fi 5455 5456 5457 test -n "$ac_ct_CC" && break 5458done 5459 5460 if test "x$ac_ct_CC" = x; then 5461 CC="" 5462 else 5463 case $cross_compiling:$ac_tool_warned in 5464yes:) 5465{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5466$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5467ac_tool_warned=yes ;; 5468esac 5469 CC=$ac_ct_CC 5470 fi 5471fi 5472 5473fi 5474 5475 5476test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5478as_fn_error $? "no acceptable C compiler found in \$PATH 5479See \`config.log' for more details" "$LINENO" 5; } 5480 5481# Provide some information about the compiler. 5482$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5483set X $ac_compile 5484ac_compiler=$2 5485for ac_option in --version -v -V -qversion; do 5486 { { ac_try="$ac_compiler $ac_option >&5" 5487case "(($ac_try" in 5488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5489 *) ac_try_echo=$ac_try;; 5490esac 5491eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5492$as_echo "$ac_try_echo"; } >&5 5493 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5494 ac_status=$? 5495 if test -s conftest.err; then 5496 sed '10a\ 5497... rest of stderr output deleted ... 5498 10q' conftest.err >conftest.er1 5499 cat conftest.er1 >&5 5500 fi 5501 rm -f conftest.er1 conftest.err 5502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5503 test $ac_status = 0; } 5504done 5505 5506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5507$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5508if ${ac_cv_c_compiler_gnu+:} false; then : 5509 $as_echo_n "(cached) " >&6 5510else 5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5512/* end confdefs.h. */ 5513 5514int 5515main () 5516{ 5517#ifndef __GNUC__ 5518 choke me 5519#endif 5520 5521 ; 5522 return 0; 5523} 5524_ACEOF 5525if ac_fn_c_try_compile "$LINENO"; then : 5526 ac_compiler_gnu=yes 5527else 5528 ac_compiler_gnu=no 5529fi 5530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5531ac_cv_c_compiler_gnu=$ac_compiler_gnu 5532 5533fi 5534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5535$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5536if test $ac_compiler_gnu = yes; then 5537 GCC=yes 5538else 5539 GCC= 5540fi 5541ac_test_CFLAGS=${CFLAGS+set} 5542ac_save_CFLAGS=$CFLAGS 5543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5544$as_echo_n "checking whether $CC accepts -g... " >&6; } 5545if ${ac_cv_prog_cc_g+:} false; then : 5546 $as_echo_n "(cached) " >&6 5547else 5548 ac_save_c_werror_flag=$ac_c_werror_flag 5549 ac_c_werror_flag=yes 5550 ac_cv_prog_cc_g=no 5551 CFLAGS="-g" 5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5553/* end confdefs.h. */ 5554 5555int 5556main () 5557{ 5558 5559 ; 5560 return 0; 5561} 5562_ACEOF 5563if ac_fn_c_try_compile "$LINENO"; then : 5564 ac_cv_prog_cc_g=yes 5565else 5566 CFLAGS="" 5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5568/* end confdefs.h. */ 5569 5570int 5571main () 5572{ 5573 5574 ; 5575 return 0; 5576} 5577_ACEOF 5578if ac_fn_c_try_compile "$LINENO"; then : 5579 5580else 5581 ac_c_werror_flag=$ac_save_c_werror_flag 5582 CFLAGS="-g" 5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5584/* end confdefs.h. */ 5585 5586int 5587main () 5588{ 5589 5590 ; 5591 return 0; 5592} 5593_ACEOF 5594if ac_fn_c_try_compile "$LINENO"; then : 5595 ac_cv_prog_cc_g=yes 5596fi 5597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5598fi 5599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5600fi 5601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5602 ac_c_werror_flag=$ac_save_c_werror_flag 5603fi 5604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5605$as_echo "$ac_cv_prog_cc_g" >&6; } 5606if test "$ac_test_CFLAGS" = set; then 5607 CFLAGS=$ac_save_CFLAGS 5608elif test $ac_cv_prog_cc_g = yes; then 5609 if test "$GCC" = yes; then 5610 CFLAGS="-g -O2" 5611 else 5612 CFLAGS="-g" 5613 fi 5614else 5615 if test "$GCC" = yes; then 5616 CFLAGS="-O2" 5617 else 5618 CFLAGS= 5619 fi 5620fi 5621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5622$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5623if ${ac_cv_prog_cc_c89+:} false; then : 5624 $as_echo_n "(cached) " >&6 5625else 5626 ac_cv_prog_cc_c89=no 5627ac_save_CC=$CC 5628cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5629/* end confdefs.h. */ 5630#include <stdarg.h> 5631#include <stdio.h> 5632struct stat; 5633/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5634struct buf { int x; }; 5635FILE * (*rcsopen) (struct buf *, struct stat *, int); 5636static char *e (p, i) 5637 char **p; 5638 int i; 5639{ 5640 return p[i]; 5641} 5642static char *f (char * (*g) (char **, int), char **p, ...) 5643{ 5644 char *s; 5645 va_list v; 5646 va_start (v,p); 5647 s = g (p, va_arg (v,int)); 5648 va_end (v); 5649 return s; 5650} 5651 5652/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5653 function prototypes and stuff, but not '\xHH' hex character constants. 5654 These don't provoke an error unfortunately, instead are silently treated 5655 as 'x'. The following induces an error, until -std is added to get 5656 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5657 array size at least. It's necessary to write '\x00'==0 to get something 5658 that's true only with -std. */ 5659int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5660 5661/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5662 inside strings and character constants. */ 5663#define FOO(x) 'x' 5664int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5665 5666int test (int i, double x); 5667struct s1 {int (*f) (int a);}; 5668struct s2 {int (*f) (double a);}; 5669int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5670int argc; 5671char **argv; 5672int 5673main () 5674{ 5675return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5676 ; 5677 return 0; 5678} 5679_ACEOF 5680for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5681 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5682do 5683 CC="$ac_save_CC $ac_arg" 5684 if ac_fn_c_try_compile "$LINENO"; then : 5685 ac_cv_prog_cc_c89=$ac_arg 5686fi 5687rm -f core conftest.err conftest.$ac_objext 5688 test "x$ac_cv_prog_cc_c89" != "xno" && break 5689done 5690rm -f conftest.$ac_ext 5691CC=$ac_save_CC 5692 5693fi 5694# AC_CACHE_VAL 5695case "x$ac_cv_prog_cc_c89" in 5696 x) 5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5698$as_echo "none needed" >&6; } ;; 5699 xno) 5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5701$as_echo "unsupported" >&6; } ;; 5702 *) 5703 CC="$CC $ac_cv_prog_cc_c89" 5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5705$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5706esac 5707if test "x$ac_cv_prog_cc_c89" != xno; then : 5708 5709fi 5710 5711ac_ext=c 5712ac_cpp='$CPP $CPPFLAGS' 5713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5715ac_compiler_gnu=$ac_cv_c_compiler_gnu 5716 5717ac_ext=c 5718ac_cpp='$CPP $CPPFLAGS' 5719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5721ac_compiler_gnu=$ac_cv_c_compiler_gnu 5722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5723$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5724if ${am_cv_prog_cc_c_o+:} false; then : 5725 $as_echo_n "(cached) " >&6 5726else 5727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5728/* end confdefs.h. */ 5729 5730int 5731main () 5732{ 5733 5734 ; 5735 return 0; 5736} 5737_ACEOF 5738 # Make sure it works both with $CC and with simple cc. 5739 # Following AC_PROG_CC_C_O, we do the test twice because some 5740 # compilers refuse to overwrite an existing .o file with -o, 5741 # though they will create one. 5742 am_cv_prog_cc_c_o=yes 5743 for am_i in 1 2; do 5744 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5745 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5746 ac_status=$? 5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5748 (exit $ac_status); } \ 5749 && test -f conftest2.$ac_objext; then 5750 : OK 5751 else 5752 am_cv_prog_cc_c_o=no 5753 break 5754 fi 5755 done 5756 rm -f core conftest* 5757 unset am_i 5758fi 5759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5760$as_echo "$am_cv_prog_cc_c_o" >&6; } 5761if test "$am_cv_prog_cc_c_o" != yes; then 5762 # Losing compiler, so override with the script. 5763 # FIXME: It is wrong to rewrite CC. 5764 # But if we don't then we get into trouble of one sort or another. 5765 # A longer-term fix would be to have automake use am__CC in this case, 5766 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5767 CC="$am_aux_dir/compile $CC" 5768fi 5769ac_ext=c 5770ac_cpp='$CPP $CPPFLAGS' 5771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5773ac_compiler_gnu=$ac_cv_c_compiler_gnu 5774 5775 5776depcc="$CC" am_compiler_list= 5777 5778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5779$as_echo_n "checking dependency style of $depcc... " >&6; } 5780if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5781 $as_echo_n "(cached) " >&6 5782else 5783 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5784 # We make a subdir and do the tests there. Otherwise we can end up 5785 # making bogus files that we don't know about and never remove. For 5786 # instance it was reported that on HP-UX the gcc test will end up 5787 # making a dummy file named 'D' -- because '-MD' means "put the output 5788 # in D". 5789 rm -rf conftest.dir 5790 mkdir conftest.dir 5791 # Copy depcomp to subdir because otherwise we won't find it if we're 5792 # using a relative directory. 5793 cp "$am_depcomp" conftest.dir 5794 cd conftest.dir 5795 # We will build objects and dependencies in a subdirectory because 5796 # it helps to detect inapplicable dependency modes. For instance 5797 # both Tru64's cc and ICC support -MD to output dependencies as a 5798 # side effect of compilation, but ICC will put the dependencies in 5799 # the current directory while Tru64 will put them in the object 5800 # directory. 5801 mkdir sub 5802 5803 am_cv_CC_dependencies_compiler_type=none 5804 if test "$am_compiler_list" = ""; then 5805 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5806 fi 5807 am__universal=false 5808 case " $depcc " in #( 5809 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5810 esac 5811 5812 for depmode in $am_compiler_list; do 5813 # Setup a source with many dependencies, because some compilers 5814 # like to wrap large dependency lists on column 80 (with \), and 5815 # we should not choose a depcomp mode which is confused by this. 5816 # 5817 # We need to recreate these files for each test, as the compiler may 5818 # overwrite some of them when testing with obscure command lines. 5819 # This happens at least with the AIX C compiler. 5820 : > sub/conftest.c 5821 for i in 1 2 3 4 5 6; do 5822 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5823 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5824 # Solaris 10 /bin/sh. 5825 echo '/* dummy */' > sub/conftst$i.h 5826 done 5827 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5828 5829 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5830 # mode. It turns out that the SunPro C++ compiler does not properly 5831 # handle '-M -o', and we need to detect this. Also, some Intel 5832 # versions had trouble with output in subdirs. 5833 am__obj=sub/conftest.${OBJEXT-o} 5834 am__minus_obj="-o $am__obj" 5835 case $depmode in 5836 gcc) 5837 # This depmode causes a compiler race in universal mode. 5838 test "$am__universal" = false || continue 5839 ;; 5840 nosideeffect) 5841 # After this tag, mechanisms are not by side-effect, so they'll 5842 # only be used when explicitly requested. 5843 if test "x$enable_dependency_tracking" = xyes; then 5844 continue 5845 else 5846 break 5847 fi 5848 ;; 5849 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5850 # This compiler won't grok '-c -o', but also, the minuso test has 5851 # not run yet. These depmodes are late enough in the game, and 5852 # so weak that their functioning should not be impacted. 5853 am__obj=conftest.${OBJEXT-o} 5854 am__minus_obj= 5855 ;; 5856 none) break ;; 5857 esac 5858 if depmode=$depmode \ 5859 source=sub/conftest.c object=$am__obj \ 5860 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5861 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5862 >/dev/null 2>conftest.err && 5863 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5864 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5865 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5866 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5867 # icc doesn't choke on unknown options, it will just issue warnings 5868 # or remarks (even with -Werror). So we grep stderr for any message 5869 # that says an option was ignored or not supported. 5870 # When given -MP, icc 7.0 and 7.1 complain thusly: 5871 # icc: Command line warning: ignoring option '-M'; no argument required 5872 # The diagnosis changed in icc 8.0: 5873 # icc: Command line remark: option '-MP' not supported 5874 if (grep 'ignoring option' conftest.err || 5875 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5876 am_cv_CC_dependencies_compiler_type=$depmode 5877 break 5878 fi 5879 fi 5880 done 5881 5882 cd .. 5883 rm -rf conftest.dir 5884else 5885 am_cv_CC_dependencies_compiler_type=none 5886fi 5887 5888fi 5889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5890$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5891CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5892 5893 if 5894 test "x$enable_dependency_tracking" != xno \ 5895 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5896 am__fastdepCC_TRUE= 5897 am__fastdepCC_FALSE='#' 5898else 5899 am__fastdepCC_TRUE='#' 5900 am__fastdepCC_FALSE= 5901fi 5902 5903 5904 5905ac_ext=c 5906ac_cpp='$CPP $CPPFLAGS' 5907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5909ac_compiler_gnu=$ac_cv_c_compiler_gnu 5910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5911$as_echo_n "checking how to run the C preprocessor... " >&6; } 5912# On Suns, sometimes $CPP names a directory. 5913if test -n "$CPP" && test -d "$CPP"; then 5914 CPP= 5915fi 5916if test -z "$CPP"; then 5917 if ${ac_cv_prog_CPP+:} false; then : 5918 $as_echo_n "(cached) " >&6 5919else 5920 # Double quotes because CPP needs to be expanded 5921 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5922 do 5923 ac_preproc_ok=false 5924for ac_c_preproc_warn_flag in '' yes 5925do 5926 # Use a header file that comes with gcc, so configuring glibc 5927 # with a fresh cross-compiler works. 5928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5929 # <limits.h> exists even on freestanding compilers. 5930 # On the NeXT, cc -E runs the code through the compiler's parser, 5931 # not just through cpp. "Syntax error" is here to catch this case. 5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5933/* end confdefs.h. */ 5934#ifdef __STDC__ 5935# include <limits.h> 5936#else 5937# include <assert.h> 5938#endif 5939 Syntax error 5940_ACEOF 5941if ac_fn_c_try_cpp "$LINENO"; then : 5942 5943else 5944 # Broken: fails on valid input. 5945continue 5946fi 5947rm -f conftest.err conftest.i conftest.$ac_ext 5948 5949 # OK, works on sane cases. Now check whether nonexistent headers 5950 # can be detected and how. 5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5952/* end confdefs.h. */ 5953#include <ac_nonexistent.h> 5954_ACEOF 5955if ac_fn_c_try_cpp "$LINENO"; then : 5956 # Broken: success on invalid input. 5957continue 5958else 5959 # Passes both tests. 5960ac_preproc_ok=: 5961break 5962fi 5963rm -f conftest.err conftest.i conftest.$ac_ext 5964 5965done 5966# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5967rm -f conftest.i conftest.err conftest.$ac_ext 5968if $ac_preproc_ok; then : 5969 break 5970fi 5971 5972 done 5973 ac_cv_prog_CPP=$CPP 5974 5975fi 5976 CPP=$ac_cv_prog_CPP 5977else 5978 ac_cv_prog_CPP=$CPP 5979fi 5980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5981$as_echo "$CPP" >&6; } 5982ac_preproc_ok=false 5983for ac_c_preproc_warn_flag in '' yes 5984do 5985 # Use a header file that comes with gcc, so configuring glibc 5986 # with a fresh cross-compiler works. 5987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5988 # <limits.h> exists even on freestanding compilers. 5989 # On the NeXT, cc -E runs the code through the compiler's parser, 5990 # not just through cpp. "Syntax error" is here to catch this case. 5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5992/* end confdefs.h. */ 5993#ifdef __STDC__ 5994# include <limits.h> 5995#else 5996# include <assert.h> 5997#endif 5998 Syntax error 5999_ACEOF 6000if ac_fn_c_try_cpp "$LINENO"; then : 6001 6002else 6003 # Broken: fails on valid input. 6004continue 6005fi 6006rm -f conftest.err conftest.i conftest.$ac_ext 6007 6008 # OK, works on sane cases. Now check whether nonexistent headers 6009 # can be detected and how. 6010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6011/* end confdefs.h. */ 6012#include <ac_nonexistent.h> 6013_ACEOF 6014if ac_fn_c_try_cpp "$LINENO"; then : 6015 # Broken: success on invalid input. 6016continue 6017else 6018 # Passes both tests. 6019ac_preproc_ok=: 6020break 6021fi 6022rm -f conftest.err conftest.i conftest.$ac_ext 6023 6024done 6025# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6026rm -f conftest.i conftest.err conftest.$ac_ext 6027if $ac_preproc_ok; then : 6028 6029else 6030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6032as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6033See \`config.log' for more details" "$LINENO" 5; } 6034fi 6035 6036ac_ext=c 6037ac_cpp='$CPP $CPPFLAGS' 6038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6040ac_compiler_gnu=$ac_cv_c_compiler_gnu 6041 6042ac_ext=cpp 6043ac_cpp='$CXXCPP $CPPFLAGS' 6044ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6045ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6046ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6047if test -z "$CXX"; then 6048 if test -n "$CCC"; then 6049 CXX=$CCC 6050 else 6051 if test -n "$ac_tool_prefix"; then 6052 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6053 do 6054 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6055set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6057$as_echo_n "checking for $ac_word... " >&6; } 6058if ${ac_cv_prog_CXX+:} false; then : 6059 $as_echo_n "(cached) " >&6 6060else 6061 if test -n "$CXX"; then 6062 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6063else 6064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6065for as_dir in $PATH 6066do 6067 IFS=$as_save_IFS 6068 test -z "$as_dir" && as_dir=. 6069 for ac_exec_ext in '' $ac_executable_extensions; do 6070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6071 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6073 break 2 6074 fi 6075done 6076 done 6077IFS=$as_save_IFS 6078 6079fi 6080fi 6081CXX=$ac_cv_prog_CXX 6082if test -n "$CXX"; then 6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 6084$as_echo "$CXX" >&6; } 6085else 6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6087$as_echo "no" >&6; } 6088fi 6089 6090 6091 test -n "$CXX" && break 6092 done 6093fi 6094if test -z "$CXX"; then 6095 ac_ct_CXX=$CXX 6096 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6097do 6098 # Extract the first word of "$ac_prog", so it can be a program name with args. 6099set dummy $ac_prog; ac_word=$2 6100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6101$as_echo_n "checking for $ac_word... " >&6; } 6102if ${ac_cv_prog_ac_ct_CXX+:} false; then : 6103 $as_echo_n "(cached) " >&6 6104else 6105 if test -n "$ac_ct_CXX"; then 6106 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6107else 6108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6109for as_dir in $PATH 6110do 6111 IFS=$as_save_IFS 6112 test -z "$as_dir" && as_dir=. 6113 for ac_exec_ext in '' $ac_executable_extensions; do 6114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6115 ac_cv_prog_ac_ct_CXX="$ac_prog" 6116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6117 break 2 6118 fi 6119done 6120 done 6121IFS=$as_save_IFS 6122 6123fi 6124fi 6125ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6126if test -n "$ac_ct_CXX"; then 6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 6128$as_echo "$ac_ct_CXX" >&6; } 6129else 6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6131$as_echo "no" >&6; } 6132fi 6133 6134 6135 test -n "$ac_ct_CXX" && break 6136done 6137 6138 if test "x$ac_ct_CXX" = x; then 6139 CXX="g++" 6140 else 6141 case $cross_compiling:$ac_tool_warned in 6142yes:) 6143{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6144$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6145ac_tool_warned=yes ;; 6146esac 6147 CXX=$ac_ct_CXX 6148 fi 6149fi 6150 6151 fi 6152fi 6153# Provide some information about the compiler. 6154$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 6155set X $ac_compile 6156ac_compiler=$2 6157for ac_option in --version -v -V -qversion; do 6158 { { ac_try="$ac_compiler $ac_option >&5" 6159case "(($ac_try" in 6160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6161 *) ac_try_echo=$ac_try;; 6162esac 6163eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6164$as_echo "$ac_try_echo"; } >&5 6165 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6166 ac_status=$? 6167 if test -s conftest.err; then 6168 sed '10a\ 6169... rest of stderr output deleted ... 6170 10q' conftest.err >conftest.er1 6171 cat conftest.er1 >&5 6172 fi 6173 rm -f conftest.er1 conftest.err 6174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6175 test $ac_status = 0; } 6176done 6177 6178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 6179$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 6180if ${ac_cv_cxx_compiler_gnu+:} false; then : 6181 $as_echo_n "(cached) " >&6 6182else 6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6184/* end confdefs.h. */ 6185 6186int 6187main () 6188{ 6189#ifndef __GNUC__ 6190 choke me 6191#endif 6192 6193 ; 6194 return 0; 6195} 6196_ACEOF 6197if ac_fn_cxx_try_compile "$LINENO"; then : 6198 ac_compiler_gnu=yes 6199else 6200 ac_compiler_gnu=no 6201fi 6202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6203ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6204 6205fi 6206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 6207$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 6208if test $ac_compiler_gnu = yes; then 6209 GXX=yes 6210else 6211 GXX= 6212fi 6213ac_test_CXXFLAGS=${CXXFLAGS+set} 6214ac_save_CXXFLAGS=$CXXFLAGS 6215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 6216$as_echo_n "checking whether $CXX accepts -g... " >&6; } 6217if ${ac_cv_prog_cxx_g+:} false; then : 6218 $as_echo_n "(cached) " >&6 6219else 6220 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6221 ac_cxx_werror_flag=yes 6222 ac_cv_prog_cxx_g=no 6223 CXXFLAGS="-g" 6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6225/* end confdefs.h. */ 6226 6227int 6228main () 6229{ 6230 6231 ; 6232 return 0; 6233} 6234_ACEOF 6235if ac_fn_cxx_try_compile "$LINENO"; then : 6236 ac_cv_prog_cxx_g=yes 6237else 6238 CXXFLAGS="" 6239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6240/* end confdefs.h. */ 6241 6242int 6243main () 6244{ 6245 6246 ; 6247 return 0; 6248} 6249_ACEOF 6250if ac_fn_cxx_try_compile "$LINENO"; then : 6251 6252else 6253 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6254 CXXFLAGS="-g" 6255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6256/* end confdefs.h. */ 6257 6258int 6259main () 6260{ 6261 6262 ; 6263 return 0; 6264} 6265_ACEOF 6266if ac_fn_cxx_try_compile "$LINENO"; then : 6267 ac_cv_prog_cxx_g=yes 6268fi 6269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6270fi 6271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6272fi 6273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6274 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6275fi 6276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 6277$as_echo "$ac_cv_prog_cxx_g" >&6; } 6278if test "$ac_test_CXXFLAGS" = set; then 6279 CXXFLAGS=$ac_save_CXXFLAGS 6280elif test $ac_cv_prog_cxx_g = yes; then 6281 if test "$GXX" = yes; then 6282 CXXFLAGS="-g -O2" 6283 else 6284 CXXFLAGS="-g" 6285 fi 6286else 6287 if test "$GXX" = yes; then 6288 CXXFLAGS="-O2" 6289 else 6290 CXXFLAGS= 6291 fi 6292fi 6293ac_ext=c 6294ac_cpp='$CPP $CPPFLAGS' 6295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6297ac_compiler_gnu=$ac_cv_c_compiler_gnu 6298 6299depcc="$CXX" am_compiler_list= 6300 6301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6302$as_echo_n "checking dependency style of $depcc... " >&6; } 6303if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 6304 $as_echo_n "(cached) " >&6 6305else 6306 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6307 # We make a subdir and do the tests there. Otherwise we can end up 6308 # making bogus files that we don't know about and never remove. For 6309 # instance it was reported that on HP-UX the gcc test will end up 6310 # making a dummy file named 'D' -- because '-MD' means "put the output 6311 # in D". 6312 rm -rf conftest.dir 6313 mkdir conftest.dir 6314 # Copy depcomp to subdir because otherwise we won't find it if we're 6315 # using a relative directory. 6316 cp "$am_depcomp" conftest.dir 6317 cd conftest.dir 6318 # We will build objects and dependencies in a subdirectory because 6319 # it helps to detect inapplicable dependency modes. For instance 6320 # both Tru64's cc and ICC support -MD to output dependencies as a 6321 # side effect of compilation, but ICC will put the dependencies in 6322 # the current directory while Tru64 will put them in the object 6323 # directory. 6324 mkdir sub 6325 6326 am_cv_CXX_dependencies_compiler_type=none 6327 if test "$am_compiler_list" = ""; then 6328 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6329 fi 6330 am__universal=false 6331 case " $depcc " in #( 6332 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6333 esac 6334 6335 for depmode in $am_compiler_list; do 6336 # Setup a source with many dependencies, because some compilers 6337 # like to wrap large dependency lists on column 80 (with \), and 6338 # we should not choose a depcomp mode which is confused by this. 6339 # 6340 # We need to recreate these files for each test, as the compiler may 6341 # overwrite some of them when testing with obscure command lines. 6342 # This happens at least with the AIX C compiler. 6343 : > sub/conftest.c 6344 for i in 1 2 3 4 5 6; do 6345 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6346 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6347 # Solaris 10 /bin/sh. 6348 echo '/* dummy */' > sub/conftst$i.h 6349 done 6350 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6351 6352 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6353 # mode. It turns out that the SunPro C++ compiler does not properly 6354 # handle '-M -o', and we need to detect this. Also, some Intel 6355 # versions had trouble with output in subdirs. 6356 am__obj=sub/conftest.${OBJEXT-o} 6357 am__minus_obj="-o $am__obj" 6358 case $depmode in 6359 gcc) 6360 # This depmode causes a compiler race in universal mode. 6361 test "$am__universal" = false || continue 6362 ;; 6363 nosideeffect) 6364 # After this tag, mechanisms are not by side-effect, so they'll 6365 # only be used when explicitly requested. 6366 if test "x$enable_dependency_tracking" = xyes; then 6367 continue 6368 else 6369 break 6370 fi 6371 ;; 6372 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6373 # This compiler won't grok '-c -o', but also, the minuso test has 6374 # not run yet. These depmodes are late enough in the game, and 6375 # so weak that their functioning should not be impacted. 6376 am__obj=conftest.${OBJEXT-o} 6377 am__minus_obj= 6378 ;; 6379 none) break ;; 6380 esac 6381 if depmode=$depmode \ 6382 source=sub/conftest.c object=$am__obj \ 6383 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6384 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6385 >/dev/null 2>conftest.err && 6386 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6387 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6388 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6389 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6390 # icc doesn't choke on unknown options, it will just issue warnings 6391 # or remarks (even with -Werror). So we grep stderr for any message 6392 # that says an option was ignored or not supported. 6393 # When given -MP, icc 7.0 and 7.1 complain thusly: 6394 # icc: Command line warning: ignoring option '-M'; no argument required 6395 # The diagnosis changed in icc 8.0: 6396 # icc: Command line remark: option '-MP' not supported 6397 if (grep 'ignoring option' conftest.err || 6398 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6399 am_cv_CXX_dependencies_compiler_type=$depmode 6400 break 6401 fi 6402 fi 6403 done 6404 6405 cd .. 6406 rm -rf conftest.dir 6407else 6408 am_cv_CXX_dependencies_compiler_type=none 6409fi 6410 6411fi 6412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 6413$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 6414CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6415 6416 if 6417 test "x$enable_dependency_tracking" != xno \ 6418 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6419 am__fastdepCXX_TRUE= 6420 am__fastdepCXX_FALSE='#' 6421else 6422 am__fastdepCXX_TRUE='#' 6423 am__fastdepCXX_FALSE= 6424fi 6425 6426 6427 6428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6429$as_echo_n "checking for egrep... " >&6; } 6430if ${ac_cv_path_EGREP+:} false; then : 6431 $as_echo_n "(cached) " >&6 6432else 6433 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6434 then ac_cv_path_EGREP="$GREP -E" 6435 else 6436 if test -z "$EGREP"; then 6437 ac_path_EGREP_found=false 6438 # Loop through the user's path and test for each of PROGNAME-LIST 6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6440for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6441do 6442 IFS=$as_save_IFS 6443 test -z "$as_dir" && as_dir=. 6444 for ac_prog in egrep; do 6445 for ac_exec_ext in '' $ac_executable_extensions; do 6446 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 6447 as_fn_executable_p "$ac_path_EGREP" || continue 6448# Check for GNU ac_path_EGREP and select it if it is found. 6449 # Check for GNU $ac_path_EGREP 6450case `"$ac_path_EGREP" --version 2>&1` in 6451*GNU*) 6452 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6453*) 6454 ac_count=0 6455 $as_echo_n 0123456789 >"conftest.in" 6456 while : 6457 do 6458 cat "conftest.in" "conftest.in" >"conftest.tmp" 6459 mv "conftest.tmp" "conftest.in" 6460 cp "conftest.in" "conftest.nl" 6461 $as_echo 'EGREP' >> "conftest.nl" 6462 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6463 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6464 as_fn_arith $ac_count + 1 && ac_count=$as_val 6465 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6466 # Best one so far, save it but keep looking for a better one 6467 ac_cv_path_EGREP="$ac_path_EGREP" 6468 ac_path_EGREP_max=$ac_count 6469 fi 6470 # 10*(2^10) chars as input seems more than enough 6471 test $ac_count -gt 10 && break 6472 done 6473 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6474esac 6475 6476 $ac_path_EGREP_found && break 3 6477 done 6478 done 6479 done 6480IFS=$as_save_IFS 6481 if test -z "$ac_cv_path_EGREP"; then 6482 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6483 fi 6484else 6485 ac_cv_path_EGREP=$EGREP 6486fi 6487 6488 fi 6489fi 6490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6491$as_echo "$ac_cv_path_EGREP" >&6; } 6492 EGREP="$ac_cv_path_EGREP" 6493 6494 6495# Extract the first word of "ar", so it can be a program name with args. 6496set dummy ar; ac_word=$2 6497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6498$as_echo_n "checking for $ac_word... " >&6; } 6499if ${ac_cv_path_AR+:} false; then : 6500 $as_echo_n "(cached) " >&6 6501else 6502 case $AR in 6503 [\\/]* | ?:[\\/]*) 6504 ac_cv_path_AR="$AR" # Let the user override the test with a path. 6505 ;; 6506 *) 6507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6508for as_dir in $PATH 6509do 6510 IFS=$as_save_IFS 6511 test -z "$as_dir" && as_dir=. 6512 for ac_exec_ext in '' $ac_executable_extensions; do 6513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6514 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 6515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6516 break 2 6517 fi 6518done 6519 done 6520IFS=$as_save_IFS 6521 6522 ;; 6523esac 6524fi 6525AR=$ac_cv_path_AR 6526if test -n "$AR"; then 6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6528$as_echo "$AR" >&6; } 6529else 6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6531$as_echo "no" >&6; } 6532fi 6533 6534 6535if test -n "$ac_tool_prefix"; then 6536 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6537set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6539$as_echo_n "checking for $ac_word... " >&6; } 6540if ${ac_cv_prog_RANLIB+:} false; then : 6541 $as_echo_n "(cached) " >&6 6542else 6543 if test -n "$RANLIB"; then 6544 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6545else 6546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6547for as_dir in $PATH 6548do 6549 IFS=$as_save_IFS 6550 test -z "$as_dir" && as_dir=. 6551 for ac_exec_ext in '' $ac_executable_extensions; do 6552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6553 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6555 break 2 6556 fi 6557done 6558 done 6559IFS=$as_save_IFS 6560 6561fi 6562fi 6563RANLIB=$ac_cv_prog_RANLIB 6564if test -n "$RANLIB"; then 6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6566$as_echo "$RANLIB" >&6; } 6567else 6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6569$as_echo "no" >&6; } 6570fi 6571 6572 6573fi 6574if test -z "$ac_cv_prog_RANLIB"; then 6575 ac_ct_RANLIB=$RANLIB 6576 # Extract the first word of "ranlib", so it can be a program name with args. 6577set dummy ranlib; ac_word=$2 6578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6579$as_echo_n "checking for $ac_word... " >&6; } 6580if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6581 $as_echo_n "(cached) " >&6 6582else 6583 if test -n "$ac_ct_RANLIB"; then 6584 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6585else 6586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6587for as_dir in $PATH 6588do 6589 IFS=$as_save_IFS 6590 test -z "$as_dir" && as_dir=. 6591 for ac_exec_ext in '' $ac_executable_extensions; do 6592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6593 ac_cv_prog_ac_ct_RANLIB="ranlib" 6594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6595 break 2 6596 fi 6597done 6598 done 6599IFS=$as_save_IFS 6600 6601fi 6602fi 6603ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6604if test -n "$ac_ct_RANLIB"; then 6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6606$as_echo "$ac_ct_RANLIB" >&6; } 6607else 6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6609$as_echo "no" >&6; } 6610fi 6611 6612 if test "x$ac_ct_RANLIB" = x; then 6613 RANLIB=":" 6614 else 6615 case $cross_compiling:$ac_tool_warned in 6616yes:) 6617{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6618$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6619ac_tool_warned=yes ;; 6620esac 6621 RANLIB=$ac_ct_RANLIB 6622 fi 6623else 6624 RANLIB="$ac_cv_prog_RANLIB" 6625fi 6626 6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 6628$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 6629if ${ac_cv_c_bigendian+:} false; then : 6630 $as_echo_n "(cached) " >&6 6631else 6632 ac_cv_c_bigendian=unknown 6633 # See if we're dealing with a universal compiler. 6634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6635/* end confdefs.h. */ 6636#ifndef __APPLE_CC__ 6637 not a universal capable compiler 6638 #endif 6639 typedef int dummy; 6640 6641_ACEOF 6642if ac_fn_c_try_compile "$LINENO"; then : 6643 6644 # Check for potential -arch flags. It is not universal unless 6645 # there are at least two -arch flags with different values. 6646 ac_arch= 6647 ac_prev= 6648 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 6649 if test -n "$ac_prev"; then 6650 case $ac_word in 6651 i?86 | x86_64 | ppc | ppc64) 6652 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 6653 ac_arch=$ac_word 6654 else 6655 ac_cv_c_bigendian=universal 6656 break 6657 fi 6658 ;; 6659 esac 6660 ac_prev= 6661 elif test "x$ac_word" = "x-arch"; then 6662 ac_prev=arch 6663 fi 6664 done 6665fi 6666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6667 if test $ac_cv_c_bigendian = unknown; then 6668 # See if sys/param.h defines the BYTE_ORDER macro. 6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6670/* end confdefs.h. */ 6671#include <sys/types.h> 6672 #include <sys/param.h> 6673 6674int 6675main () 6676{ 6677#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 6678 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 6679 && LITTLE_ENDIAN) 6680 bogus endian macros 6681 #endif 6682 6683 ; 6684 return 0; 6685} 6686_ACEOF 6687if ac_fn_c_try_compile "$LINENO"; then : 6688 # It does; now see whether it defined to BIG_ENDIAN or not. 6689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6690/* end confdefs.h. */ 6691#include <sys/types.h> 6692 #include <sys/param.h> 6693 6694int 6695main () 6696{ 6697#if BYTE_ORDER != BIG_ENDIAN 6698 not big endian 6699 #endif 6700 6701 ; 6702 return 0; 6703} 6704_ACEOF 6705if ac_fn_c_try_compile "$LINENO"; then : 6706 ac_cv_c_bigendian=yes 6707else 6708 ac_cv_c_bigendian=no 6709fi 6710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6711fi 6712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6713 fi 6714 if test $ac_cv_c_bigendian = unknown; then 6715 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6717/* end confdefs.h. */ 6718#include <limits.h> 6719 6720int 6721main () 6722{ 6723#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 6724 bogus endian macros 6725 #endif 6726 6727 ; 6728 return 0; 6729} 6730_ACEOF 6731if ac_fn_c_try_compile "$LINENO"; then : 6732 # It does; now see whether it defined to _BIG_ENDIAN or not. 6733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6734/* end confdefs.h. */ 6735#include <limits.h> 6736 6737int 6738main () 6739{ 6740#ifndef _BIG_ENDIAN 6741 not big endian 6742 #endif 6743 6744 ; 6745 return 0; 6746} 6747_ACEOF 6748if ac_fn_c_try_compile "$LINENO"; then : 6749 ac_cv_c_bigendian=yes 6750else 6751 ac_cv_c_bigendian=no 6752fi 6753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6754fi 6755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6756 fi 6757 if test $ac_cv_c_bigendian = unknown; then 6758 # Compile a test program. 6759 if test "$cross_compiling" = yes; then : 6760 # Try to guess by grepping values from an object file. 6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6762/* end confdefs.h. */ 6763short int ascii_mm[] = 6764 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 6765 short int ascii_ii[] = 6766 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 6767 int use_ascii (int i) { 6768 return ascii_mm[i] + ascii_ii[i]; 6769 } 6770 short int ebcdic_ii[] = 6771 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 6772 short int ebcdic_mm[] = 6773 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 6774 int use_ebcdic (int i) { 6775 return ebcdic_mm[i] + ebcdic_ii[i]; 6776 } 6777 extern int foo; 6778 6779int 6780main () 6781{ 6782return use_ascii (foo) == use_ebcdic (foo); 6783 ; 6784 return 0; 6785} 6786_ACEOF 6787if ac_fn_c_try_compile "$LINENO"; then : 6788 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 6789 ac_cv_c_bigendian=yes 6790 fi 6791 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 6792 if test "$ac_cv_c_bigendian" = unknown; then 6793 ac_cv_c_bigendian=no 6794 else 6795 # finding both strings is unlikely to happen, but who knows? 6796 ac_cv_c_bigendian=unknown 6797 fi 6798 fi 6799fi 6800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6801else 6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6803/* end confdefs.h. */ 6804$ac_includes_default 6805int 6806main () 6807{ 6808 6809 /* Are we little or big endian? From Harbison&Steele. */ 6810 union 6811 { 6812 long int l; 6813 char c[sizeof (long int)]; 6814 } u; 6815 u.l = 1; 6816 return u.c[sizeof (long int) - 1] == 1; 6817 6818 ; 6819 return 0; 6820} 6821_ACEOF 6822if ac_fn_c_try_run "$LINENO"; then : 6823 ac_cv_c_bigendian=no 6824else 6825 ac_cv_c_bigendian=yes 6826fi 6827rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6828 conftest.$ac_objext conftest.beam conftest.$ac_ext 6829fi 6830 6831 fi 6832fi 6833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 6834$as_echo "$ac_cv_c_bigendian" >&6; } 6835 case $ac_cv_c_bigendian in #( 6836 yes) 6837 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 6838;; #( 6839 no) 6840 ;; #( 6841 universal) 6842 6843$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 6844 6845 ;; #( 6846 *) 6847 as_fn_error $? "unknown endianness 6848 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 6849 esac 6850 6851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 6852$as_echo_n "checking for inline... " >&6; } 6853if ${ac_cv_c_inline+:} false; then : 6854 $as_echo_n "(cached) " >&6 6855else 6856 ac_cv_c_inline=no 6857for ac_kw in inline __inline__ __inline; do 6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6859/* end confdefs.h. */ 6860#ifndef __cplusplus 6861typedef int foo_t; 6862static $ac_kw foo_t static_foo () {return 0; } 6863$ac_kw foo_t foo () {return 0; } 6864#endif 6865 6866_ACEOF 6867if ac_fn_c_try_compile "$LINENO"; then : 6868 ac_cv_c_inline=$ac_kw 6869fi 6870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6871 test "$ac_cv_c_inline" != no && break 6872done 6873 6874fi 6875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 6876$as_echo "$ac_cv_c_inline" >&6; } 6877 6878case $ac_cv_c_inline in 6879 inline | yes) ;; 6880 *) 6881 case $ac_cv_c_inline in 6882 no) ac_val=;; 6883 *) ac_val=$ac_cv_c_inline;; 6884 esac 6885 cat >>confdefs.h <<_ACEOF 6886#ifndef __cplusplus 6887#define inline $ac_val 6888#endif 6889_ACEOF 6890 ;; 6891esac 6892 6893 6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5 6895$as_echo_n "checking for flexible array members... " >&6; } 6896if ${ac_cv_c_flexmember+:} false; then : 6897 $as_echo_n "(cached) " >&6 6898else 6899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6900/* end confdefs.h. */ 6901#include <stdlib.h> 6902 #include <stdio.h> 6903 #include <stddef.h> 6904 struct s { int n; double d[]; }; 6905int 6906main () 6907{ 6908int m = getchar (); 6909 struct s *p = malloc (offsetof (struct s, d) 6910 + m * sizeof (double)); 6911 p->d[0] = 0.0; 6912 return p->d != (double *) NULL; 6913 ; 6914 return 0; 6915} 6916_ACEOF 6917if ac_fn_c_try_compile "$LINENO"; then : 6918 ac_cv_c_flexmember=yes 6919else 6920 ac_cv_c_flexmember=no 6921fi 6922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6923fi 6924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5 6925$as_echo "$ac_cv_c_flexmember" >&6; } 6926 if test $ac_cv_c_flexmember = yes; then 6927 6928$as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h 6929 6930 else 6931 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h 6932 6933 fi 6934 6935 6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5 6937$as_echo_n "checking for variable-length arrays... " >&6; } 6938if ${ac_cv_c_vararrays+:} false; then : 6939 $as_echo_n "(cached) " >&6 6940else 6941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6942/* end confdefs.h. */ 6943 6944int 6945main () 6946{ 6947static int x; char a[++x]; a[sizeof a - 1] = 0; return a[0]; 6948 ; 6949 return 0; 6950} 6951_ACEOF 6952if ac_fn_c_try_compile "$LINENO"; then : 6953 ac_cv_c_vararrays=yes 6954else 6955 ac_cv_c_vararrays=no 6956fi 6957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6958fi 6959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5 6960$as_echo "$ac_cv_c_vararrays" >&6; } 6961 if test $ac_cv_c_vararrays = yes; then 6962 6963$as_echo "#define HAVE_C_VARARRAYS 1" >>confdefs.h 6964 6965 fi 6966 6967for ac_func in flock lockf fcvt fcvtl 6968do : 6969 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6970ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6971if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6972 cat >>confdefs.h <<_ACEOF 6973#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6974_ACEOF 6975 6976fi 6977done 6978 6979for ac_func in cfsetispeed tcsendbreak 6980do : 6981 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6982ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6983if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6984 cat >>confdefs.h <<_ACEOF 6985#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6986_ACEOF 6987 6988fi 6989done 6990 6991for ac_func in seteuid setsid getpassphrase 6992do : 6993 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6994ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6995if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6996 cat >>confdefs.h <<_ACEOF 6997#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6998_ACEOF 6999 7000fi 7001done 7002 7003for ac_func in on_exit strptime setlogmask 7004do : 7005 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7006ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7007if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7008 cat >>confdefs.h <<_ACEOF 7009#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7010_ACEOF 7011 7012fi 7013done 7014 7015ac_fn_c_check_decl "$LINENO" "LOG_UPTO" "ac_cv_have_decl_LOG_UPTO" "#include <syslog.h> 7016" 7017if test "x$ac_cv_have_decl_LOG_UPTO" = xyes; then : 7018 ac_have_decl=1 7019else 7020 ac_have_decl=0 7021fi 7022 7023cat >>confdefs.h <<_ACEOF 7024#define HAVE_DECL_LOG_UPTO $ac_have_decl 7025_ACEOF 7026 7027 7028 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 7030$as_echo_n "checking for unsigned long long int... " >&6; } 7031if ${ac_cv_type_unsigned_long_long_int+:} false; then : 7032 $as_echo_n "(cached) " >&6 7033else 7034 ac_cv_type_unsigned_long_long_int=yes 7035 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7037/* end confdefs.h. */ 7038 7039 /* For now, do not test the preprocessor; as of 2007 there are too many 7040 implementations with broken preprocessors. Perhaps this can 7041 be revisited in 2012. In the meantime, code should not expect 7042 #if to work with literals wider than 32 bits. */ 7043 /* Test literals. */ 7044 long long int ll = 9223372036854775807ll; 7045 long long int nll = -9223372036854775807LL; 7046 unsigned long long int ull = 18446744073709551615ULL; 7047 /* Test constant expressions. */ 7048 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 7049 ? 1 : -1)]; 7050 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 7051 ? 1 : -1)]; 7052 int i = 63; 7053int 7054main () 7055{ 7056/* Test availability of runtime routines for shift and division. */ 7057 long long int llmax = 9223372036854775807ll; 7058 unsigned long long int ullmax = 18446744073709551615ull; 7059 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 7060 | (llmax / ll) | (llmax % ll) 7061 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 7062 | (ullmax / ull) | (ullmax % ull)); 7063 ; 7064 return 0; 7065} 7066 7067_ACEOF 7068if ac_fn_c_try_link "$LINENO"; then : 7069 7070else 7071 ac_cv_type_unsigned_long_long_int=no 7072fi 7073rm -f core conftest.err conftest.$ac_objext \ 7074 conftest$ac_exeext conftest.$ac_ext 7075 fi 7076fi 7077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 7078$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 7079 if test $ac_cv_type_unsigned_long_long_int = yes; then 7080 7081$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 7082 7083 fi 7084 7085for ac_func in vsnprintf snprintf 7086do : 7087 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7088ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7089if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7090 cat >>confdefs.h <<_ACEOF 7091#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7092_ACEOF 7093 7094else 7095 7096 case " $LIBOBJS " in 7097 *" snprintf.$ac_objext "* ) ;; 7098 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 7099 ;; 7100esac 7101 7102 7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 7104$as_echo_n "checking for long double... " >&6; } 7105if ${ac_cv_type_long_double+:} false; then : 7106 $as_echo_n "(cached) " >&6 7107else 7108 if test "$GCC" = yes; then 7109 ac_cv_type_long_double=yes 7110 else 7111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7112/* end confdefs.h. */ 7113/* The Stardent Vistra knows sizeof (long double), but does 7114 not support it. */ 7115 long double foo = 0.0L; 7116int 7117main () 7118{ 7119static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 7120 sizeof (double) <= sizeof (long double))]; 7121test_array [0] = 0; 7122return test_array [0]; 7123 7124 ; 7125 return 0; 7126} 7127_ACEOF 7128if ac_fn_c_try_compile "$LINENO"; then : 7129 ac_cv_type_long_double=yes 7130else 7131 ac_cv_type_long_double=no 7132fi 7133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7134 fi 7135fi 7136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 7137$as_echo "$ac_cv_type_long_double" >&6; } 7138 if test $ac_cv_type_long_double = yes; then 7139 7140$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 7141 7142 fi 7143 7144 7145 7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 7147$as_echo_n "checking for long long int... " >&6; } 7148if ${ac_cv_type_long_long_int+:} false; then : 7149 $as_echo_n "(cached) " >&6 7150else 7151 ac_cv_type_long_long_int=yes 7152 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 7153 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 7154 if test $ac_cv_type_long_long_int = yes; then 7155 if test "$cross_compiling" = yes; then : 7156 : 7157else 7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7159/* end confdefs.h. */ 7160#include <limits.h> 7161 #ifndef LLONG_MAX 7162 # define HALF \ 7163 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 7164 # define LLONG_MAX (HALF - 1 + HALF) 7165 #endif 7166int 7167main () 7168{ 7169long long int n = 1; 7170 int i; 7171 for (i = 0; ; i++) 7172 { 7173 long long int m = n << i; 7174 if (m >> i != n) 7175 return 1; 7176 if (LLONG_MAX / 2 < m) 7177 break; 7178 } 7179 return 0; 7180 ; 7181 return 0; 7182} 7183_ACEOF 7184if ac_fn_c_try_run "$LINENO"; then : 7185 7186else 7187 ac_cv_type_long_long_int=no 7188fi 7189rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7190 conftest.$ac_objext conftest.beam conftest.$ac_ext 7191fi 7192 7193 fi 7194 fi 7195fi 7196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 7197$as_echo "$ac_cv_type_long_long_int" >&6; } 7198 if test $ac_cv_type_long_long_int = yes; then 7199 7200$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 7201 7202 fi 7203 7204 7205fi 7206done 7207 7208 7209ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv" 7210if test "x$ac_cv_func_setenv" = xyes; then : 7211 $as_echo "#define HAVE_SETENV 1" >>confdefs.h 7212 7213else 7214 case " $LIBOBJS " in 7215 *" setenv.$ac_objext "* ) ;; 7216 *) LIBOBJS="$LIBOBJS setenv.$ac_objext" 7217 ;; 7218esac 7219 7220fi 7221 7222ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" 7223if test "x$ac_cv_func_strerror" = xyes; then : 7224 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h 7225 7226else 7227 case " $LIBOBJS " in 7228 *" strerror.$ac_objext "* ) ;; 7229 *) LIBOBJS="$LIBOBJS strerror.$ac_objext" 7230 ;; 7231esac 7232 7233fi 7234 7235ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit" 7236if test "x$ac_cv_func_atexit" = xyes; then : 7237 $as_echo "#define HAVE_ATEXIT 1" >>confdefs.h 7238 7239else 7240 case " $LIBOBJS " in 7241 *" atexit.$ac_objext "* ) ;; 7242 *) LIBOBJS="$LIBOBJS atexit.$ac_objext" 7243 ;; 7244esac 7245 7246fi 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 7260 if test -n "$ac_tool_prefix"; then 7261 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 7262set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 7263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7264$as_echo_n "checking for $ac_word... " >&6; } 7265if ${ac_cv_path_PKG_CONFIG+:} false; then : 7266 $as_echo_n "(cached) " >&6 7267else 7268 case $PKG_CONFIG in 7269 [\\/]* | ?:[\\/]*) 7270 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7271 ;; 7272 *) 7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7274for as_dir in $PATH 7275do 7276 IFS=$as_save_IFS 7277 test -z "$as_dir" && as_dir=. 7278 for ac_exec_ext in '' $ac_executable_extensions; do 7279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7280 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7282 break 2 7283 fi 7284done 7285 done 7286IFS=$as_save_IFS 7287 7288 ;; 7289esac 7290fi 7291PKG_CONFIG=$ac_cv_path_PKG_CONFIG 7292if test -n "$PKG_CONFIG"; then 7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 7294$as_echo "$PKG_CONFIG" >&6; } 7295else 7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7297$as_echo "no" >&6; } 7298fi 7299 7300 7301fi 7302if test -z "$ac_cv_path_PKG_CONFIG"; then 7303 ac_pt_PKG_CONFIG=$PKG_CONFIG 7304 # Extract the first word of "pkg-config", so it can be a program name with args. 7305set dummy pkg-config; ac_word=$2 7306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7307$as_echo_n "checking for $ac_word... " >&6; } 7308if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 7309 $as_echo_n "(cached) " >&6 7310else 7311 case $ac_pt_PKG_CONFIG in 7312 [\\/]* | ?:[\\/]*) 7313 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 7314 ;; 7315 *) 7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7317for as_dir in $PATH 7318do 7319 IFS=$as_save_IFS 7320 test -z "$as_dir" && as_dir=. 7321 for ac_exec_ext in '' $ac_executable_extensions; do 7322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7323 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7325 break 2 7326 fi 7327done 7328 done 7329IFS=$as_save_IFS 7330 7331 ;; 7332esac 7333fi 7334ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 7335if test -n "$ac_pt_PKG_CONFIG"; then 7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 7337$as_echo "$ac_pt_PKG_CONFIG" >&6; } 7338else 7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7340$as_echo "no" >&6; } 7341fi 7342 7343 if test "x$ac_pt_PKG_CONFIG" = x; then 7344 PKG_CONFIG="" 7345 else 7346 case $cross_compiling:$ac_tool_warned in 7347yes:) 7348{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7350ac_tool_warned=yes ;; 7351esac 7352 PKG_CONFIG=$ac_pt_PKG_CONFIG 7353 fi 7354else 7355 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 7356fi 7357 7358fi 7359if test -n "$PKG_CONFIG"; then 7360 _pkg_min_version=0.9.0 7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 7362$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 7363 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7365$as_echo "yes" >&6; } 7366 else 7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7368$as_echo "no" >&6; } 7369 PKG_CONFIG="" 7370 fi 7371fi 7372 7373pkg_failed=no 7374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPPUNIT" >&5 7375$as_echo_n "checking for CPPUNIT... " >&6; } 7376 7377if test -n "$CPPUNIT_CFLAGS"; then 7378 pkg_cv_CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS" 7379 elif test -n "$PKG_CONFIG"; then 7380 if test -n "$PKG_CONFIG" && \ 7381 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit\""; } >&5 7382 ($PKG_CONFIG --exists --print-errors "cppunit") 2>&5 7383 ac_status=$? 7384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7385 test $ac_status = 0; }; then 7386 pkg_cv_CPPUNIT_CFLAGS=`$PKG_CONFIG --cflags "cppunit" 2>/dev/null` 7387 test "x$?" != "x0" && pkg_failed=yes 7388else 7389 pkg_failed=yes 7390fi 7391 else 7392 pkg_failed=untried 7393fi 7394if test -n "$CPPUNIT_LIBS"; then 7395 pkg_cv_CPPUNIT_LIBS="$CPPUNIT_LIBS" 7396 elif test -n "$PKG_CONFIG"; then 7397 if test -n "$PKG_CONFIG" && \ 7398 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit\""; } >&5 7399 ($PKG_CONFIG --exists --print-errors "cppunit") 2>&5 7400 ac_status=$? 7401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7402 test $ac_status = 0; }; then 7403 pkg_cv_CPPUNIT_LIBS=`$PKG_CONFIG --libs "cppunit" 2>/dev/null` 7404 test "x$?" != "x0" && pkg_failed=yes 7405else 7406 pkg_failed=yes 7407fi 7408 else 7409 pkg_failed=untried 7410fi 7411 7412 7413 7414if test $pkg_failed = yes; then 7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7416$as_echo "no" >&6; } 7417 7418if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 7419 _pkg_short_errors_supported=yes 7420else 7421 _pkg_short_errors_supported=no 7422fi 7423 if test $_pkg_short_errors_supported = yes; then 7424 CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cppunit" 2>&1` 7425 else 7426 CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cppunit" 2>&1` 7427 fi 7428 # Put the nasty error message in config.log where it belongs 7429 echo "$CPPUNIT_PKG_ERRORS" >&5 7430 7431 have_cppunit=no 7432elif test $pkg_failed = untried; then 7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7434$as_echo "no" >&6; } 7435 have_cppunit=no 7436else 7437 CPPUNIT_CFLAGS=$pkg_cv_CPPUNIT_CFLAGS 7438 CPPUNIT_LIBS=$pkg_cv_CPPUNIT_LIBS 7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7440$as_echo "yes" >&6; } 7441 have_cppunit=yes 7442fi 7443if test "${have_cppunit}" != "yes" ; then 7444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcppunit not found." >&5 7445$as_echo "$as_me: WARNING: libcppunit not found." >&2;} 7446fi 7447 if test "${have_cppunit}" = "yes"; then 7448 HAVE_CPPUNIT_TRUE= 7449 HAVE_CPPUNIT_FALSE='#' 7450else 7451 HAVE_CPPUNIT_TRUE='#' 7452 HAVE_CPPUNIT_FALSE= 7453fi 7454 7455 7456if ( test "${GCC}" = "yes" ) 7457then 7458 CFLAGS="${CFLAGS} -Wall -Wsign-compare" 7459fi 7460 7461case ${target_os} in 7462 solaris2* ) 7463 CFLAGS="${CFLAGS} -D_REENTRANT" 7464 ;; 7465 aix* ) 7466 CFLAGS="${CFLAGS} -D_REENTRANT" 7467 ;; 7468 hpux11* ) 7469 CFLAGS="${CFLAGS} -D_REENTRANT" 7470 ;; 7471esac 7472 7473ac_fn_c_check_decl "$LINENO" "optind" "ac_cv_have_decl_optind" "$ac_includes_default 7474" 7475if test "x$ac_cv_have_decl_optind" = xyes; then : 7476 ac_have_decl=1 7477else 7478 ac_have_decl=0 7479fi 7480 7481cat >>confdefs.h <<_ACEOF 7482#define HAVE_DECL_OPTIND $ac_have_decl 7483_ACEOF 7484if test $ac_have_decl = 1; then : 7485 7486else 7487 7488 for ac_header in getopt.h 7489do : 7490 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default 7491" 7492if test "x$ac_cv_header_getopt_h" = xyes; then : 7493 cat >>confdefs.h <<_ACEOF 7494#define HAVE_GETOPT_H 1 7495_ACEOF 7496 7497 7498$as_echo "#define NEED_GETOPT_H 1" >>confdefs.h 7499 7500 7501else 7502 7503 7504$as_echo "#define NEED_GETOPT_DECLS 1" >>confdefs.h 7505 7506 7507fi 7508 7509done 7510 7511 7512fi 7513 7514 7515for ac_header in getopt.h 7516do : 7517 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default 7518" 7519if test "x$ac_cv_header_getopt_h" = xyes; then : 7520 cat >>confdefs.h <<_ACEOF 7521#define HAVE_GETOPT_H 1 7522_ACEOF 7523 7524 7525$as_echo "#define NEED_GETOPT_H 1" >>confdefs.h 7526 7527 7528else 7529 7530 7531$as_echo "#define NEED_GETOPT_DECLS 1" >>confdefs.h 7532 7533 7534fi 7535 7536done 7537 7538 7539for ac_func in getopt_long 7540do : 7541 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" 7542if test "x$ac_cv_func_getopt_long" = xyes; then : 7543 cat >>confdefs.h <<_ACEOF 7544#define HAVE_GETOPT_LONG 1 7545_ACEOF 7546 7547fi 7548done 7549 7550 7551ac_fn_c_check_decl "$LINENO" "uu_lock" "ac_cv_have_decl_uu_lock" " 7552#include <sys/types.h> 7553#include <libutil.h> 7554 7555" 7556if test "x$ac_cv_have_decl_uu_lock" = xyes; then : 7557 ac_have_decl=1 7558else 7559 ac_have_decl=0 7560fi 7561 7562cat >>confdefs.h <<_ACEOF 7563#define HAVE_DECL_UU_LOCK $ac_have_decl 7564_ACEOF 7565if test $ac_have_decl = 1; then : 7566 7567 7568$as_echo "#define HAVE_UU_LOCK 1" >>confdefs.h 7569 7570 SERLIBS="-lutil" 7571 RUN_AS_USER="uucp" 7572 7573else 7574 7575 SERLIBS="" 7576 7577fi 7578 7579 7580ac_fn_c_check_decl "$LINENO" "__func__" "ac_cv_have_decl___func__" "$ac_includes_default 7581" 7582if test "x$ac_cv_have_decl___func__" = xyes; then : 7583 ac_have_decl=1 7584else 7585 ac_have_decl=0 7586fi 7587 7588cat >>confdefs.h <<_ACEOF 7589#define HAVE_DECL___FUNC__ $ac_have_decl 7590_ACEOF 7591if test $ac_have_decl = 1; then : 7592 7593else 7594 7595 ac_fn_c_check_decl "$LINENO" "__FUNCTION__" "ac_cv_have_decl___FUNCTION__" "$ac_includes_default 7596" 7597if test "x$ac_cv_have_decl___FUNCTION__" = xyes; then : 7598 ac_have_decl=1 7599else 7600 ac_have_decl=0 7601fi 7602 7603cat >>confdefs.h <<_ACEOF 7604#define HAVE_DECL___FUNCTION__ $ac_have_decl 7605_ACEOF 7606if test $ac_have_decl = 1; then : 7607 7608 7609$as_echo "#define __func__ __FUNCTION__" >>confdefs.h 7610 7611 7612else 7613 7614 7615$as_echo "#define __func__ __LINE__" >>confdefs.h 7616 7617 7618fi 7619 7620 7621fi 7622 7623 7624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 7625$as_echo_n "checking for library containing gethostbyname... " >&6; } 7626if ${ac_cv_search_gethostbyname+:} false; then : 7627 $as_echo_n "(cached) " >&6 7628else 7629 ac_func_search_save_LIBS=$LIBS 7630cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7631/* end confdefs.h. */ 7632 7633/* Override any GCC internal prototype to avoid an error. 7634 Use char because int might match the return type of a GCC 7635 builtin and then its argument prototype would still apply. */ 7636#ifdef __cplusplus 7637extern "C" 7638#endif 7639char gethostbyname (); 7640int 7641main () 7642{ 7643return gethostbyname (); 7644 ; 7645 return 0; 7646} 7647_ACEOF 7648for ac_lib in '' nsl; do 7649 if test -z "$ac_lib"; then 7650 ac_res="none required" 7651 else 7652 ac_res=-l$ac_lib 7653 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7654 fi 7655 if ac_fn_c_try_link "$LINENO"; then : 7656 ac_cv_search_gethostbyname=$ac_res 7657fi 7658rm -f core conftest.err conftest.$ac_objext \ 7659 conftest$ac_exeext 7660 if ${ac_cv_search_gethostbyname+:} false; then : 7661 break 7662fi 7663done 7664if ${ac_cv_search_gethostbyname+:} false; then : 7665 7666else 7667 ac_cv_search_gethostbyname=no 7668fi 7669rm conftest.$ac_ext 7670LIBS=$ac_func_search_save_LIBS 7671fi 7672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 7673$as_echo "$ac_cv_search_gethostbyname" >&6; } 7674ac_res=$ac_cv_search_gethostbyname 7675if test "$ac_res" != no; then : 7676 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7677 7678fi 7679 7680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5 7681$as_echo_n "checking for library containing connect... " >&6; } 7682if ${ac_cv_search_connect+:} false; then : 7683 $as_echo_n "(cached) " >&6 7684else 7685 ac_func_search_save_LIBS=$LIBS 7686cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7687/* end confdefs.h. */ 7688 7689/* Override any GCC internal prototype to avoid an error. 7690 Use char because int might match the return type of a GCC 7691 builtin and then its argument prototype would still apply. */ 7692#ifdef __cplusplus 7693extern "C" 7694#endif 7695char connect (); 7696int 7697main () 7698{ 7699return connect (); 7700 ; 7701 return 0; 7702} 7703_ACEOF 7704for ac_lib in '' socket; do 7705 if test -z "$ac_lib"; then 7706 ac_res="none required" 7707 else 7708 ac_res=-l$ac_lib 7709 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7710 fi 7711 if ac_fn_c_try_link "$LINENO"; then : 7712 ac_cv_search_connect=$ac_res 7713fi 7714rm -f core conftest.err conftest.$ac_objext \ 7715 conftest$ac_exeext 7716 if ${ac_cv_search_connect+:} false; then : 7717 break 7718fi 7719done 7720if ${ac_cv_search_connect+:} false; then : 7721 7722else 7723 ac_cv_search_connect=no 7724fi 7725rm conftest.$ac_ext 7726LIBS=$ac_func_search_save_LIBS 7727fi 7728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5 7729$as_echo "$ac_cv_search_connect" >&6; } 7730ac_res=$ac_cv_search_connect 7731if test "$ac_res" != no; then : 7732 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7733 7734fi 7735 7736 7737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 7738$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 7739if ${ac_cv_header_time+:} false; then : 7740 $as_echo_n "(cached) " >&6 7741else 7742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7743/* end confdefs.h. */ 7744#include <sys/types.h> 7745#include <sys/time.h> 7746#include <time.h> 7747 7748int 7749main () 7750{ 7751if ((struct tm *) 0) 7752return 0; 7753 ; 7754 return 0; 7755} 7756_ACEOF 7757if ac_fn_c_try_compile "$LINENO"; then : 7758 ac_cv_header_time=yes 7759else 7760 ac_cv_header_time=no 7761fi 7762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7763fi 7764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 7765$as_echo "$ac_cv_header_time" >&6; } 7766if test $ac_cv_header_time = yes; then 7767 7768$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 7769 7770fi 7771 7772for ac_header in sys/modem.h stdarg.h varargs.h sys/termios.h sys/time.h 7773do : 7774 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7775ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7776" 7777if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7778 cat >>confdefs.h <<_ACEOF 7779#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7780_ACEOF 7781 7782fi 7783 7784done 7785 7786 7787# pthread related checks 7788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 7789$as_echo_n "checking for library containing pthread_create... " >&6; } 7790if ${ac_cv_search_pthread_create+:} false; then : 7791 $as_echo_n "(cached) " >&6 7792else 7793 ac_func_search_save_LIBS=$LIBS 7794cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7795/* end confdefs.h. */ 7796 7797/* Override any GCC internal prototype to avoid an error. 7798 Use char because int might match the return type of a GCC 7799 builtin and then its argument prototype would still apply. */ 7800#ifdef __cplusplus 7801extern "C" 7802#endif 7803char pthread_create (); 7804int 7805main () 7806{ 7807return pthread_create (); 7808 ; 7809 return 0; 7810} 7811_ACEOF 7812for ac_lib in '' pthread; do 7813 if test -z "$ac_lib"; then 7814 ac_res="none required" 7815 else 7816 ac_res=-l$ac_lib 7817 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7818 fi 7819 if ac_fn_c_try_link "$LINENO"; then : 7820 ac_cv_search_pthread_create=$ac_res 7821fi 7822rm -f core conftest.err conftest.$ac_objext \ 7823 conftest$ac_exeext 7824 if ${ac_cv_search_pthread_create+:} false; then : 7825 break 7826fi 7827done 7828if ${ac_cv_search_pthread_create+:} false; then : 7829 7830else 7831 ac_cv_search_pthread_create=no 7832fi 7833rm conftest.$ac_ext 7834LIBS=$ac_func_search_save_LIBS 7835fi 7836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 7837$as_echo "$ac_cv_search_pthread_create" >&6; } 7838ac_res=$ac_cv_search_pthread_create 7839if test "$ac_res" != no; then : 7840 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7841 7842$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 7843 7844fi 7845 7846 7847 7848 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> 7849#include <sys/socket.h> 7850" 7851if test "x$ac_cv_type_socklen_t" = xyes; then : 7852 7853else 7854 7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 7856$as_echo_n "checking for socklen_t equivalent... " >&6; } 7857 if ${nut_cv_socklen_t_equiv+:} false; then : 7858 $as_echo_n "(cached) " >&6 7859else 7860 7861 # Systems have either "struct sockaddr *" or 7862 # "void *" as the second argument to getpeername 7863 nut_cv_socklen_t_equiv= 7864 for arg2 in "struct sockaddr" void; do 7865 for t in int size_t unsigned long "unsigned long"; do 7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7867/* end confdefs.h. */ 7868 7869#include <sys/types.h> 7870#include <sys/socket.h> 7871 7872 int getpeername (int, $arg2 *, $t *); 7873 7874int 7875main () 7876{ 7877 7878 $t len; 7879 getpeername(0,0,&len); 7880 7881 ; 7882 return 0; 7883} 7884_ACEOF 7885if ac_fn_c_try_compile "$LINENO"; then : 7886 7887 nut_cv_socklen_t_equiv="$t" 7888 break 7889 7890fi 7891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7892 done 7893 done 7894 7895 if test "x$nut_cv_socklen_t_equiv" = x; then 7896 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5 7897 fi 7898 7899fi 7900 7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nut_cv_socklen_t_equiv" >&5 7902$as_echo "$nut_cv_socklen_t_equiv" >&6; } 7903 7904cat >>confdefs.h <<_ACEOF 7905#define socklen_t $nut_cv_socklen_t_equiv 7906_ACEOF 7907 7908fi 7909 7910 7911 7912 7913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-all" >&5 7914$as_echo_n "checking for --with-all... " >&6; } 7915 7916# Check whether --with-all was given. 7917if test "${with_all+set}" = set; then : 7918 withval=$with_all; 7919 if test -n "${withval}"; then 7920 if test -z "${with_serial}"; then with_serial="${withval}"; fi 7921 if test -z "${with_usb}"; then with_usb="${withval}"; fi 7922 if test -z "${with_snmp}"; then with_snmp="${withval}"; fi 7923 if test -z "${with_neon}"; then with_neon="${withval}"; fi 7924 if test -z "${with_powerman}"; then with_powerman="${withval}"; fi 7925 if test -z "${with_cgi}"; then with_cgi="${withval}"; fi 7926 if test -z "${with_dev}"; then with_dev="${withval}"; fi 7927 if test -z "${with_avahi}"; then with_avahi="${withval}"; fi 7928 if test -z "${with_ipmi}"; then with_ipmi="${withval}"; fi 7929 if test -z "${with_linux_i2c}"; then with_linux_i2c="${withval}"; fi 7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"${withval}\"" >&5 7931$as_echo "\"${withval}\"" >&6; } 7932 else 7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not given" >&5 7934$as_echo "not given" >&6; } 7935 fi 7936 7937else 7938 7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not given" >&5 7940$as_echo "not given" >&6; } 7941 7942fi 7943 7944 7945 7946 7947# Check whether --with-dev was given. 7948if test "${with_dev+set}" = set; then : 7949 withval=$with_dev; nut_with_dev="${withval}" 7950else 7951 nut_with_dev="no" 7952 7953fi 7954 7955 7956 7957# Check whether --with-serial was given. 7958if test "${with_serial+set}" = set; then : 7959 withval=$with_serial; nut_with_serial="${withval}" 7960else 7961 nut_with_serial="yes" 7962 7963fi 7964 7965 7966 7967# Check whether --with-usb was given. 7968if test "${with_usb+set}" = set; then : 7969 withval=$with_usb; nut_with_usb="${withval}" 7970else 7971 nut_with_usb="auto" 7972 7973fi 7974 7975 7976 7977# Check whether --with-doc was given. 7978if test "${with_doc+set}" = set; then : 7979 withval=$with_doc; nut_with_doc="${withval}" 7980else 7981 nut_with_doc="no" 7982 7983fi 7984 7985 7986 7987# Check whether --with-avahi was given. 7988if test "${with_avahi+set}" = set; then : 7989 withval=$with_avahi; nut_with_avahi="${withval}" 7990else 7991 nut_with_avahi="auto" 7992 7993fi 7994 7995 7996 7997 7998 7999 8000if test -z "${nut_have_libnetsnmp_seen}"; then 8001 nut_have_libnetsnmp_seen=yes 8002 8003 CFLAGS_ORIG="${CFLAGS}" 8004 LIBS_ORIG="${LIBS}" 8005 8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Net-SNMP version via net-snmp-config" >&5 8007$as_echo_n "checking for Net-SNMP version via net-snmp-config... " >&6; } 8008 SNMP_VERSION=`net-snmp-config --version 2>/dev/null` 8009 if test "$?" != "0" -o -z "${SNMP_VERSION}"; then 8010 SNMP_VERSION="none" 8011 fi 8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SNMP_VERSION} found" >&5 8013$as_echo "${SNMP_VERSION} found" >&6; } 8014 8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Net-SNMP cflags" >&5 8016$as_echo_n "checking for Net-SNMP cflags... " >&6; } 8017 8018# Check whether --with-snmp-includes was given. 8019if test "${with_snmp_includes+set}" = set; then : 8020 withval=$with_snmp_includes; 8021 case "${withval}" in 8022 yes|no) 8023 as_fn_error $? "invalid option --with(out)-snmp-includes - see docs/configure.txt" "$LINENO" 5 8024 ;; 8025 *) 8026 CFLAGS="${withval}" 8027 ;; 8028 esac 8029 8030else 8031 CFLAGS="`net-snmp-config --base-cflags 2>/dev/null`" 8032fi 8033 8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CFLAGS}" >&5 8035$as_echo "${CFLAGS}" >&6; } 8036 8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Net-SNMP libs" >&5 8038$as_echo_n "checking for Net-SNMP libs... " >&6; } 8039 8040# Check whether --with-snmp-libs was given. 8041if test "${with_snmp_libs+set}" = set; then : 8042 withval=$with_snmp_libs; 8043 case "${withval}" in 8044 yes|no) 8045 as_fn_error $? "invalid option --with(out)-snmp-libs - see docs/configure.txt" "$LINENO" 5 8046 ;; 8047 *) 8048 LIBS="${withval}" 8049 ;; 8050 esac 8051 8052else 8053 LIBS="`net-snmp-config --libs 2>/dev/null`" 8054fi 8055 8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBS}" >&5 8057$as_echo "${LIBS}" >&6; } 8058 8059 for ac_header in net-snmp/net-snmp-config.h 8060do : 8061 ac_fn_c_check_header_compile "$LINENO" "net-snmp/net-snmp-config.h" "ac_cv_header_net_snmp_net_snmp_config_h" "$ac_includes_default 8062" 8063if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then : 8064 cat >>confdefs.h <<_ACEOF 8065#define HAVE_NET_SNMP_NET_SNMP_CONFIG_H 1 8066_ACEOF 8067 nut_have_libnetsnmp=yes 8068else 8069 nut_have_libnetsnmp=no 8070fi 8071 8072done 8073 8074 for ac_func in init_snmp 8075do : 8076 ac_fn_c_check_func "$LINENO" "init_snmp" "ac_cv_func_init_snmp" 8077if test "x$ac_cv_func_init_snmp" = xyes; then : 8078 cat >>confdefs.h <<_ACEOF 8079#define HAVE_INIT_SNMP 1 8080_ACEOF 8081 8082else 8083 nut_have_libnetsnmp=no 8084fi 8085done 8086 8087 8088 if test "${nut_have_libnetsnmp}" = "yes"; then 8089 LIBNETSNMP_CFLAGS="${CFLAGS}" 8090 LIBNETSNMP_LIBS="${LIBS}" 8091 fi 8092 8093 CFLAGS="${CFLAGS_ORIG}" 8094 LIBS="${LIBS_ORIG}" 8095fi 8096 8097 8098if test -z "${nut_have_libusb_seen}"; then 8099 nut_have_libusb_seen=yes 8100 8101 CFLAGS_ORIG="${CFLAGS}" 8102 LIBS_ORIG="${LIBS}" 8103 8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb version via pkg-config" >&5 8105$as_echo_n "checking for libusb version via pkg-config... " >&6; } 8106 LIBUSB_VERSION="`pkg-config --silence-errors --modversion libusb 2>/dev/null`" 8107 if test "$?" = "0" -a -n "${LIBUSB_VERSION}"; then 8108 CFLAGS="`pkg-config --silence-errors --cflags libusb 2>/dev/null`" 8109 LIBS="`pkg-config --silence-errors --libs libusb 2>/dev/null`" 8110 else 8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking via libusb-config" >&5 8112$as_echo_n "checking via libusb-config... " >&6; } 8113 LIBUSB_VERSION="`libusb-config --version 2>/dev/null`" 8114 if test "$?" = "0" -a -n "${LIBUSB_VERSION}"; then 8115 CFLAGS="`libusb-config --cflags 2>/dev/null`" 8116 LIBS="`libusb-config --libs 2>/dev/null`" 8117 else 8118 LIBUSB_VERSION="none" 8119 CFLAGS="" 8120 LIBS="-lusb" 8121 fi 8122 fi 8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBUSB_VERSION} found" >&5 8124$as_echo "${LIBUSB_VERSION} found" >&6; } 8125 8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb cflags" >&5 8127$as_echo_n "checking for libusb cflags... " >&6; } 8128 8129# Check whether --with-usb-includes was given. 8130if test "${with_usb_includes+set}" = set; then : 8131 withval=$with_usb_includes; 8132 case "${withval}" in 8133 yes|no) 8134 as_fn_error $? "invalid option --with(out)-usb-includes - see docs/configure.txt" "$LINENO" 5 8135 ;; 8136 *) 8137 CFLAGS="${withval}" 8138 ;; 8139 esac 8140 8141fi 8142 8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CFLAGS}" >&5 8144$as_echo "${CFLAGS}" >&6; } 8145 8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb ldflags" >&5 8147$as_echo_n "checking for libusb ldflags... " >&6; } 8148 8149# Check whether --with-usb-libs was given. 8150if test "${with_usb_libs+set}" = set; then : 8151 withval=$with_usb_libs; 8152 case "${withval}" in 8153 yes|no) 8154 as_fn_error $? "invalid option --with(out)-usb-libs - see docs/configure.txt" "$LINENO" 5 8155 ;; 8156 *) 8157 LIBS="${withval}" 8158 ;; 8159 esac 8160 8161fi 8162 8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBS}" >&5 8164$as_echo "${LIBS}" >&6; } 8165 8166 for ac_header in usb.h 8167do : 8168 ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default 8169" 8170if test "x$ac_cv_header_usb_h" = xyes; then : 8171 cat >>confdefs.h <<_ACEOF 8172#define HAVE_USB_H 1 8173_ACEOF 8174 nut_have_libusb=yes 8175else 8176 nut_have_libusb=no 8177fi 8178 8179done 8180 8181 for ac_func in usb_init 8182do : 8183 ac_fn_c_check_func "$LINENO" "usb_init" "ac_cv_func_usb_init" 8184if test "x$ac_cv_func_usb_init" = xyes; then : 8185 cat >>confdefs.h <<_ACEOF 8186#define HAVE_USB_INIT 1 8187_ACEOF 8188 8189else 8190 nut_have_libusb=no 8191fi 8192done 8193 8194 8195 if test "${nut_have_libusb}" = "yes"; then 8196 for ac_func in usb_detach_kernel_driver_np 8197do : 8198 ac_fn_c_check_func "$LINENO" "usb_detach_kernel_driver_np" "ac_cv_func_usb_detach_kernel_driver_np" 8199if test "x$ac_cv_func_usb_detach_kernel_driver_np" = xyes; then : 8200 cat >>confdefs.h <<_ACEOF 8201#define HAVE_USB_DETACH_KERNEL_DRIVER_NP 1 8202_ACEOF 8203 8204fi 8205done 8206 8207 LIBUSB_CFLAGS="${CFLAGS}" 8208 LIBUSB_LIBS="${LIBS}" 8209 fi 8210 8211 CFLAGS="${CFLAGS_ORIG}" 8212 LIBS="${LIBS_ORIG}" 8213fi 8214 8215 8216# Check whether --with-snmp was given. 8217if test "${with_snmp+set}" = set; then : 8218 withval=$with_snmp; nut_with_snmp="${withval}" 8219else 8220 nut_with_snmp="auto" 8221 8222fi 8223 8224 8225 8226if test -z "${nut_have_libnetsnmp_seen}"; then 8227 nut_have_libnetsnmp_seen=yes 8228 8229 CFLAGS_ORIG="${CFLAGS}" 8230 LIBS_ORIG="${LIBS}" 8231 8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Net-SNMP version via net-snmp-config" >&5 8233$as_echo_n "checking for Net-SNMP version via net-snmp-config... " >&6; } 8234 SNMP_VERSION=`net-snmp-config --version 2>/dev/null` 8235 if test "$?" != "0" -o -z "${SNMP_VERSION}"; then 8236 SNMP_VERSION="none" 8237 fi 8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SNMP_VERSION} found" >&5 8239$as_echo "${SNMP_VERSION} found" >&6; } 8240 8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Net-SNMP cflags" >&5 8242$as_echo_n "checking for Net-SNMP cflags... " >&6; } 8243 8244# Check whether --with-snmp-includes was given. 8245if test "${with_snmp_includes+set}" = set; then : 8246 withval=$with_snmp_includes; 8247 case "${withval}" in 8248 yes|no) 8249 as_fn_error $? "invalid option --with(out)-snmp-includes - see docs/configure.txt" "$LINENO" 5 8250 ;; 8251 *) 8252 CFLAGS="${withval}" 8253 ;; 8254 esac 8255 8256else 8257 CFLAGS="`net-snmp-config --base-cflags 2>/dev/null`" 8258fi 8259 8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CFLAGS}" >&5 8261$as_echo "${CFLAGS}" >&6; } 8262 8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Net-SNMP libs" >&5 8264$as_echo_n "checking for Net-SNMP libs... " >&6; } 8265 8266# Check whether --with-snmp-libs was given. 8267if test "${with_snmp_libs+set}" = set; then : 8268 withval=$with_snmp_libs; 8269 case "${withval}" in 8270 yes|no) 8271 as_fn_error $? "invalid option --with(out)-snmp-libs - see docs/configure.txt" "$LINENO" 5 8272 ;; 8273 *) 8274 LIBS="${withval}" 8275 ;; 8276 esac 8277 8278else 8279 LIBS="`net-snmp-config --libs 2>/dev/null`" 8280fi 8281 8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBS}" >&5 8283$as_echo "${LIBS}" >&6; } 8284 8285 for ac_header in net-snmp/net-snmp-config.h 8286do : 8287 ac_fn_c_check_header_compile "$LINENO" "net-snmp/net-snmp-config.h" "ac_cv_header_net_snmp_net_snmp_config_h" "$ac_includes_default 8288" 8289if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then : 8290 cat >>confdefs.h <<_ACEOF 8291#define HAVE_NET_SNMP_NET_SNMP_CONFIG_H 1 8292_ACEOF 8293 nut_have_libnetsnmp=yes 8294else 8295 nut_have_libnetsnmp=no 8296fi 8297 8298done 8299 8300 for ac_func in init_snmp 8301do : 8302 ac_fn_c_check_func "$LINENO" "init_snmp" "ac_cv_func_init_snmp" 8303if test "x$ac_cv_func_init_snmp" = xyes; then : 8304 cat >>confdefs.h <<_ACEOF 8305#define HAVE_INIT_SNMP 1 8306_ACEOF 8307 8308else 8309 nut_have_libnetsnmp=no 8310fi 8311done 8312 8313 8314 if test "${nut_have_libnetsnmp}" = "yes"; then 8315 LIBNETSNMP_CFLAGS="${CFLAGS}" 8316 LIBNETSNMP_LIBS="${LIBS}" 8317 fi 8318 8319 CFLAGS="${CFLAGS_ORIG}" 8320 LIBS="${LIBS_ORIG}" 8321fi 8322 8323 8324# Check whether --with-neon was given. 8325if test "${with_neon+set}" = set; then : 8326 withval=$with_neon; nut_with_neon="${withval}" 8327else 8328 nut_with_neon="auto" 8329 8330fi 8331 8332 8333 8334if test -z "${nut_have_neon_seen}"; then 8335 nut_have_neon_seen=yes 8336 8337 CFLAGS_ORIG="${CFLAGS}" 8338 LIBS_ORIG="${LIBS}" 8339 8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libneon version via pkg-config (0.25.0 minimum required)" >&5 8341$as_echo_n "checking for libneon version via pkg-config (0.25.0 minimum required)... " >&6; } 8342 NEON_VERSION="`pkg-config --silence-errors --modversion neon 2>/dev/null`" 8343 if test "$?" != "0" -o -z "${NEON_VERSION}"; then 8344 NEON_VERSION="none" 8345 fi 8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${NEON_VERSION} found" >&5 8347$as_echo "${NEON_VERSION} found" >&6; } 8348 8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libneon cflags" >&5 8350$as_echo_n "checking for libneon cflags... " >&6; } 8351 8352# Check whether --with-neon-includes was given. 8353if test "${with_neon_includes+set}" = set; then : 8354 withval=$with_neon_includes; 8355 case "${withval}" in 8356 yes|no) 8357 as_fn_error $? "invalid option --with(out)-neon-includes - see docs/configure.txt" "$LINENO" 5 8358 ;; 8359 *) 8360 CFLAGS="${withval}" 8361 ;; 8362 esac 8363 8364else 8365 CFLAGS="`pkg-config --silence-errors --cflags neon 2>/dev/null`" 8366fi 8367 8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CFLAGS}" >&5 8369$as_echo "${CFLAGS}" >&6; } 8370 8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libneon ldflags" >&5 8372$as_echo_n "checking for libneon ldflags... " >&6; } 8373 8374# Check whether --with-neon-libs was given. 8375if test "${with_neon_libs+set}" = set; then : 8376 withval=$with_neon_libs; 8377 case "${withval}" in 8378 yes|no) 8379 as_fn_error $? "invalid option --with(out)-neon-libs - see docs/configure.txt" "$LINENO" 5 8380 ;; 8381 *) 8382 LIBS="${withval}" 8383 ;; 8384 esac 8385 8386else 8387 LIBS="`pkg-config --silence-errors --libs neon 2>/dev/null`" 8388fi 8389 8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBS}" >&5 8391$as_echo "${LIBS}" >&6; } 8392 8393 for ac_header in ne_xmlreq.h 8394do : 8395 ac_fn_c_check_header_compile "$LINENO" "ne_xmlreq.h" "ac_cv_header_ne_xmlreq_h" "$ac_includes_default 8396" 8397if test "x$ac_cv_header_ne_xmlreq_h" = xyes; then : 8398 cat >>confdefs.h <<_ACEOF 8399#define HAVE_NE_XMLREQ_H 1 8400_ACEOF 8401 nut_have_neon=yes 8402else 8403 nut_have_neon=no 8404fi 8405 8406done 8407 8408 for ac_func in ne_xml_dispatch_request 8409do : 8410 ac_fn_c_check_func "$LINENO" "ne_xml_dispatch_request" "ac_cv_func_ne_xml_dispatch_request" 8411if test "x$ac_cv_func_ne_xml_dispatch_request" = xyes; then : 8412 cat >>confdefs.h <<_ACEOF 8413#define HAVE_NE_XML_DISPATCH_REQUEST 1 8414_ACEOF 8415 8416else 8417 nut_have_neon=no 8418fi 8419done 8420 8421 8422 if test "${nut_have_neon}" = "yes"; then 8423 for ac_func in ne_set_connect_timeout ne_sock_connect_timeout 8424do : 8425 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8426ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8427if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8428 cat >>confdefs.h <<_ACEOF 8429#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8430_ACEOF 8431 8432fi 8433done 8434 8435 LIBNEON_CFLAGS="${CFLAGS}" 8436 LIBNEON_LIBS="${LIBS}" 8437 fi 8438 8439 CFLAGS="${CFLAGS_ORIG}" 8440 LIBS="${LIBS_ORIG}" 8441fi 8442 8443 8444# Check whether --with-powerman was given. 8445if test "${with_powerman+set}" = set; then : 8446 withval=$with_powerman; nut_with_powerman="${withval}" 8447else 8448 nut_with_powerman="auto" 8449 8450fi 8451 8452 8453 8454if test -z "${nut_have_libpowerman_seen}"; then 8455 nut_have_libpowerman_seen=yes 8456 8457 CFLAGS_ORIG="${CFLAGS}" 8458 LIBS_ORIG="${LIBS}" 8459 8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpowerman cflags" >&5 8461$as_echo_n "checking for libpowerman cflags... " >&6; } 8462 8463# Check whether --with-powerman-includes was given. 8464if test "${with_powerman_includes+set}" = set; then : 8465 withval=$with_powerman_includes; 8466 case "${withval}" in 8467 yes|no) 8468 as_fn_error $? "invalid option --with(out)-powerman-includes - see docs/configure.txt" "$LINENO" 5 8469 ;; 8470 *) 8471 CFLAGS="${withval}" 8472 ;; 8473 esac 8474 8475else 8476 CFLAGS="`pkg-config --silence-errors --cflags libpowerman 2>/dev/null`" 8477fi 8478 8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CFLAGS}" >&5 8480$as_echo "${CFLAGS}" >&6; } 8481 8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpowerman libs" >&5 8483$as_echo_n "checking for libpowerman libs... " >&6; } 8484 8485# Check whether --with-powerman-libs was given. 8486if test "${with_powerman_libs+set}" = set; then : 8487 withval=$with_powerman_libs; 8488 case "${withval}" in 8489 yes|no) 8490 as_fn_error $? "invalid option --with(out)-powerman-libs - see docs/configure.txt" "$LINENO" 5 8491 ;; 8492 *) 8493 LIBS="${withval}" 8494 ;; 8495 esac 8496 8497else 8498 LIBS="`pkg-config --silence-errors --libs libpowerman 2>/dev/null`" 8499fi 8500 8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBS}" >&5 8502$as_echo "${LIBS}" >&6; } 8503 8504 for ac_header in libpowerman.h 8505do : 8506 ac_fn_c_check_header_compile "$LINENO" "libpowerman.h" "ac_cv_header_libpowerman_h" "$ac_includes_default 8507" 8508if test "x$ac_cv_header_libpowerman_h" = xyes; then : 8509 cat >>confdefs.h <<_ACEOF 8510#define HAVE_LIBPOWERMAN_H 1 8511_ACEOF 8512 nut_have_libpowerman=yes 8513else 8514 nut_have_libpowerman=no 8515fi 8516 8517done 8518 8519 for ac_func in pm_connect 8520do : 8521 ac_fn_c_check_func "$LINENO" "pm_connect" "ac_cv_func_pm_connect" 8522if test "x$ac_cv_func_pm_connect" = xyes; then : 8523 cat >>confdefs.h <<_ACEOF 8524#define HAVE_PM_CONNECT 1 8525_ACEOF 8526 8527else 8528 nut_have_libpowerman=no 8529fi 8530done 8531 8532 8533 if test "${nut_have_libpowerman}" = "yes"; then 8534 LIBPOWERMAN_CFLAGS="${CFLAGS}" 8535 LIBPOWERMAN_LIBS="${LIBS}" 8536 fi 8537 8538 CFLAGS="${CFLAGS_ORIG}" 8539 LIBS="${LIBS_ORIG}" 8540 8541fi 8542 8543 8544if test -z "${nut_have_avahi_seen}"; then 8545 nut_have_avahi_seen=yes 8546 8547 CFLAGS_ORIG="${CFLAGS}" 8548 LIBS_ORIG="${LIBS}" 8549 8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi-core version via pkg-config (0.6.30 minimum required)" >&5 8551$as_echo_n "checking for avahi-core version via pkg-config (0.6.30 minimum required)... " >&6; } 8552 AVAHI_CORE_VERSION="`pkg-config --silence-errors --modversion avahi-core 2>/dev/null`" 8553 if test "$?" != "0" -o -z "${AVAHI_CORE_VERSION}"; then 8554 AVAHI_CORE_VERSION="none" 8555 fi 8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${AVAHI_CORE_VERSION} found" >&5 8557$as_echo "${AVAHI_CORE_VERSION} found" >&6; } 8558 8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi-client version via pkg-config (0.6.30 minimum required)" >&5 8560$as_echo_n "checking for avahi-client version via pkg-config (0.6.30 minimum required)... " >&6; } 8561 AVAHI_CLIENT_VERSION="`pkg-config --silence-errors --modversion avahi-client 2>/dev/null`" 8562 if test "$?" != "0" -o -z "${AVAHI_CLIENT_VERSION}"; then 8563 AVAHI_CLIENT_VERSION="none" 8564 fi 8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${AVAHI_CLIENT_VERSION} found" >&5 8566$as_echo "${AVAHI_CLIENT_VERSION} found" >&6; } 8567 8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi cflags" >&5 8569$as_echo_n "checking for avahi cflags... " >&6; } 8570 8571# Check whether --with-avahi-includes was given. 8572if test "${with_avahi_includes+set}" = set; then : 8573 withval=$with_avahi_includes; 8574 case "${withval}" in 8575 yes|no) 8576 as_fn_error $? "invalid option --with(out)-avahi-includes - see docs/configure.txt" "$LINENO" 5 8577 ;; 8578 *) 8579 CFLAGS="${withval}" 8580 ;; 8581 esac 8582 8583else 8584 CFLAGS="`pkg-config --silence-errors --cflags avahi-core avahi-client 2>/dev/null`" 8585fi 8586 8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CFLAGS}" >&5 8588$as_echo "${CFLAGS}" >&6; } 8589 8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi ldflags" >&5 8591$as_echo_n "checking for avahi ldflags... " >&6; } 8592 8593# Check whether --with-avahi-libs was given. 8594if test "${with_avahi_libs+set}" = set; then : 8595 withval=$with_avahi_libs; 8596 case "${withval}" in 8597 yes|no) 8598 as_fn_error $? "invalid option --with(out)-avahi-libs - see docs/configure.txt" "$LINENO" 5 8599 ;; 8600 *) 8601 LIBS="${withval}" 8602 ;; 8603 esac 8604 8605else 8606 LIBS="`pkg-config --silence-errors --libs avahi-core avahi-client 2>/dev/null`" 8607fi 8608 8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBS}" >&5 8610$as_echo "${LIBS}" >&6; } 8611 8612 for ac_header in avahi-common/malloc.h 8613do : 8614 ac_fn_c_check_header_compile "$LINENO" "avahi-common/malloc.h" "ac_cv_header_avahi_common_malloc_h" "$ac_includes_default 8615" 8616if test "x$ac_cv_header_avahi_common_malloc_h" = xyes; then : 8617 cat >>confdefs.h <<_ACEOF 8618#define HAVE_AVAHI_COMMON_MALLOC_H 1 8619_ACEOF 8620 nut_have_avahi=yes 8621else 8622 nut_have_avahi=no 8623fi 8624 8625done 8626 8627 for ac_func in avahi_free 8628do : 8629 ac_fn_c_check_func "$LINENO" "avahi_free" "ac_cv_func_avahi_free" 8630if test "x$ac_cv_func_avahi_free" = xyes; then : 8631 cat >>confdefs.h <<_ACEOF 8632#define HAVE_AVAHI_FREE 1 8633_ACEOF 8634 8635else 8636 nut_have_avahi=no 8637fi 8638done 8639 8640 8641 if test "${nut_have_avahi}" = "yes"; then 8642 for ac_header in avahi-client/client.h 8643do : 8644 ac_fn_c_check_header_compile "$LINENO" "avahi-client/client.h" "ac_cv_header_avahi_client_client_h" "$ac_includes_default 8645" 8646if test "x$ac_cv_header_avahi_client_client_h" = xyes; then : 8647 cat >>confdefs.h <<_ACEOF 8648#define HAVE_AVAHI_CLIENT_CLIENT_H 1 8649_ACEOF 8650 nut_have_avahi=yes 8651else 8652 nut_have_avahi=no 8653fi 8654 8655done 8656 8657 for ac_func in avahi_client_new 8658do : 8659 ac_fn_c_check_func "$LINENO" "avahi_client_new" "ac_cv_func_avahi_client_new" 8660if test "x$ac_cv_func_avahi_client_new" = xyes; then : 8661 cat >>confdefs.h <<_ACEOF 8662#define HAVE_AVAHI_CLIENT_NEW 1 8663_ACEOF 8664 8665else 8666 nut_have_avahi=no 8667fi 8668done 8669 8670 if test "${nut_have_avahi}" = "yes"; then 8671 LIBAVAHI_CFLAGS="${CFLAGS}" 8672 LIBAVAHI_LIBS="${LIBS}" 8673 fi 8674 fi 8675 8676 CFLAGS="${CFLAGS_ORIG}" 8677 LIBS="${LIBS_ORIG}" 8678fi 8679 8680 8681 8682case ${target_os} in 8683 solaris2.1* ) 8684 echo Checking for Solaris 10 / 11 specific configuration for usb drivers 8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5 8686$as_echo_n "checking for library containing nanosleep... " >&6; } 8687if ${ac_cv_search_nanosleep+:} false; then : 8688 $as_echo_n "(cached) " >&6 8689else 8690 ac_func_search_save_LIBS=$LIBS 8691cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8692/* end confdefs.h. */ 8693 8694/* Override any GCC internal prototype to avoid an error. 8695 Use char because int might match the return type of a GCC 8696 builtin and then its argument prototype would still apply. */ 8697#ifdef __cplusplus 8698extern "C" 8699#endif 8700char nanosleep (); 8701int 8702main () 8703{ 8704return nanosleep (); 8705 ; 8706 return 0; 8707} 8708_ACEOF 8709for ac_lib in '' rt; do 8710 if test -z "$ac_lib"; then 8711 ac_res="none required" 8712 else 8713 ac_res=-l$ac_lib 8714 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8715 fi 8716 if ac_fn_c_try_link "$LINENO"; then : 8717 ac_cv_search_nanosleep=$ac_res 8718fi 8719rm -f core conftest.err conftest.$ac_objext \ 8720 conftest$ac_exeext 8721 if ${ac_cv_search_nanosleep+:} false; then : 8722 break 8723fi 8724done 8725if ${ac_cv_search_nanosleep+:} false; then : 8726 8727else 8728 ac_cv_search_nanosleep=no 8729fi 8730rm conftest.$ac_ext 8731LIBS=$ac_func_search_save_LIBS 8732fi 8733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5 8734$as_echo "$ac_cv_search_nanosleep" >&6; } 8735ac_res=$ac_cv_search_nanosleep 8736if test "$ac_res" != no; then : 8737 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8738 8739fi 8740 8741 LIBUSB_LIBS="-R/usr/sfw/lib ${LIBUSB_LIBS}" 8742 8743$as_echo "#define SUN_LIBUSB 1" >>confdefs.h 8744 8745 SUN_LIBUSB=1 8746 ;; 8747 hpux11*) 8748 CFLAGS="${CFLAGS} -lpthread" 8749esac 8750 8751 8752 8753if test "${nut_with_serial}" != "no"; then 8754 nut_with_serial="yes" 8755fi 8756 8757 8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build serial drivers" >&5 8759$as_echo_n "checking whether to build serial drivers... " >&6; } 8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${nut_with_serial} " >&5 8761$as_echo "${nut_with_serial} " >&6; } 8762 if test -z "${nut_report_feature_flag}"; then 8763 nut_report_feature_flag="1" 8764 ac_clean_files="${ac_clean_files} conf_nut_report_feature" 8765 echo > conf_nut_report_feature 8766 echo "Configuration summary:" >> conf_nut_report_feature 8767 echo "======================" >> conf_nut_report_feature 8768 fi 8769 echo "build serial drivers: ${nut_with_serial} " >> conf_nut_report_feature 8770 8771 8772 if test "${nut_with_serial}" = "yes"; then 8773 WITH_SERIAL_TRUE= 8774 WITH_SERIAL_FALSE='#' 8775else 8776 WITH_SERIAL_TRUE='#' 8777 WITH_SERIAL_FALSE= 8778fi 8779 8780 if test "${nut_with_serial}" = "yes"; then 8781 8782cat >>confdefs.h <<_ACEOF 8783#define WITH_SERIAL 1 8784_ACEOF 8785 8786 fi 8787 8788 8789 8790if test "${nut_with_usb}" = "yes" -a "${nut_have_libusb}" != "yes"; then 8791 as_fn_error $? "\"USB drivers requested, but libusb not found.\"" "$LINENO" 5 8792fi 8793 8794if test "${nut_with_usb}" != "no"; then 8795 nut_with_usb="${nut_have_libusb}" 8796fi 8797 8798 8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build USB drivers" >&5 8800$as_echo_n "checking whether to build USB drivers... " >&6; } 8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${nut_with_usb} " >&5 8802$as_echo "${nut_with_usb} " >&6; } 8803 if test -z "${nut_report_feature_flag}"; then 8804 nut_report_feature_flag="1" 8805 ac_clean_files="${ac_clean_files} conf_nut_report_feature" 8806 echo > conf_nut_report_feature 8807 echo "Configuration summary:" >> conf_nut_report_feature 8808 echo "======================" >> conf_nut_report_feature 8809 fi 8810 echo "build USB drivers: ${nut_with_usb} " >> conf_nut_report_feature 8811 8812 8813 if test "${nut_with_usb}" = "yes"; then 8814 WITH_USB_TRUE= 8815 WITH_USB_FALSE='#' 8816else 8817 WITH_USB_TRUE='#' 8818 WITH_USB_FALSE= 8819fi 8820 8821 if test "${nut_with_usb}" = "yes"; then 8822 8823cat >>confdefs.h <<_ACEOF 8824#define WITH_USB 1 8825_ACEOF 8826 8827 fi 8828 8829 8830 8831if test "${nut_with_snmp}" = "yes" -a "${nut_have_libnetsnmp}" != "yes"; then 8832 as_fn_error $? "\"Net-SNMP libraries not found, required for SNMP drivers\"" "$LINENO" 5 8833fi 8834 8835if test "${nut_with_snmp}" != "no"; then 8836 nut_with_snmp="${nut_have_libnetsnmp}" 8837fi 8838 8839 8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build SNMP drivers" >&5 8841$as_echo_n "checking whether to build SNMP drivers... " >&6; } 8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${nut_with_snmp} " >&5 8843$as_echo "${nut_with_snmp} " >&6; } 8844 if test -z "${nut_report_feature_flag}"; then 8845 nut_report_feature_flag="1" 8846 ac_clean_files="${ac_clean_files} conf_nut_report_feature" 8847 echo > conf_nut_report_feature 8848 echo "Configuration summary:" >> conf_nut_report_feature 8849 echo "======================" >> conf_nut_report_feature 8850 fi 8851 echo "build SNMP drivers: ${nut_with_snmp} " >> conf_nut_report_feature 8852 8853 8854 if test "${nut_with_snmp}" = "yes"; then 8855 WITH_SNMP_TRUE= 8856 WITH_SNMP_FALSE='#' 8857else 8858 WITH_SNMP_TRUE='#' 8859 WITH_SNMP_FALSE= 8860fi 8861 8862 if test "${nut_with_snmp}" = "yes"; then 8863 8864cat >>confdefs.h <<_ACEOF 8865#define WITH_SNMP 1 8866_ACEOF 8867 8868 fi 8869 8870 8871 8872if test "${nut_with_neon}" = "yes" -a "${nut_have_neon}" != "yes"; then 8873 as_fn_error $? "\"neon libraries not found, required for neon based XML/HTTP driver\"" "$LINENO" 5 8874fi 8875 8876if test "${nut_with_neon}" != "no"; then 8877 nut_with_neon="${nut_have_neon}" 8878fi 8879 8880 8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build neon based XML driver" >&5 8882$as_echo_n "checking whether to build neon based XML driver... " >&6; } 8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${nut_with_neon} " >&5 8884$as_echo "${nut_with_neon} " >&6; } 8885 if test -z "${nut_report_feature_flag}"; then 8886 nut_report_feature_flag="1" 8887 ac_clean_files="${ac_clean_files} conf_nut_report_feature" 8888 echo > conf_nut_report_feature 8889 echo "Configuration summary:" >> conf_nut_report_feature 8890 echo "======================" >> conf_nut_report_feature 8891 fi 8892 echo "build neon based XML driver: ${nut_with_neon} " >> conf_nut_report_feature 8893 8894 8895 if test "${nut_with_neon}" = "yes"; then 8896 WITH_NEON_TRUE= 8897 WITH_NEON_FALSE='#' 8898else 8899 WITH_NEON_TRUE='#' 8900 WITH_NEON_FALSE= 8901fi 8902 8903 if test "${nut_with_neon}" = "yes"; then 8904 8905cat >>confdefs.h <<_ACEOF 8906#define WITH_NEON 1 8907_ACEOF 8908 8909 fi 8910 8911 8912 8913if test "${nut_with_avahi}" = "yes" -a "${nut_have_avahi}" != "yes"; then 8914 as_fn_error $? "\"avahi libraries not found\"" "$LINENO" 5 8915fi 8916 8917if test "${nut_with_avahi}" != "no"; then 8918 nut_with_avahi="${nut_have_avahi}" 8919fi 8920 8921 8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Avahi support" >&5 8923$as_echo_n "checking whether to enable Avahi support... " >&6; } 8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${nut_with_avahi} " >&5 8925$as_echo "${nut_with_avahi} " >&6; } 8926 if test -z "${nut_report_feature_flag}"; then 8927 nut_report_feature_flag="1" 8928 ac_clean_files="${ac_clean_files} conf_nut_report_feature" 8929 echo > conf_nut_report_feature 8930 echo "Configuration summary:" >> conf_nut_report_feature 8931 echo "======================" >> conf_nut_report_feature 8932 fi 8933 echo "enable Avahi support: ${nut_with_avahi} " >> conf_nut_report_feature 8934 8935 8936 if test "${nut_with_avahi}" = "yes"; then 8937 WITH_AVAHI_TRUE= 8938 WITH_AVAHI_FALSE='#' 8939else 8940 WITH_AVAHI_TRUE='#' 8941 WITH_AVAHI_FALSE= 8942fi 8943 8944 if test "${nut_with_avahi}" = "yes"; then 8945 8946cat >>confdefs.h <<_ACEOF 8947#define WITH_AVAHI 1 8948_ACEOF 8949 8950 fi 8951 8952 8953 8954 8955if test "${nut_with_powerman}" = "yes" -a "${nut_have_libpowerman}" != "yes"; then 8956 as_fn_error $? "\"Powerman client libraries not found, required for Powerman PDU client driver\"" "$LINENO" 5 8957fi 8958 8959if test "${nut_with_powerman}" != "no"; then 8960 nut_with_powerman="${nut_have_libpowerman}" 8961fi 8962 8963 8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Powerman PDU client driver" >&5 8965$as_echo_n "checking whether to build Powerman PDU client driver... " >&6; } 8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${nut_with_powerman} " >&5 8967$as_echo "${nut_with_powerman} " >&6; } 8968 if test -z "${nut_report_feature_flag}"; then 8969 nut_report_feature_flag="1" 8970 ac_clean_files="${ac_clean_files} conf_nut_report_feature" 8971 echo > conf_nut_report_feature 8972 echo "Configuration summary:" >> conf_nut_report_feature 8973 echo "======================" >> conf_nut_report_feature 8974 fi 8975 echo "build Powerman PDU client driver: ${nut_with_powerman} " >> conf_nut_report_feature 8976 8977 8978 if test "${nut_with_powerman}" = "yes"; then 8979 WITH_LIBPOWERMAN_TRUE= 8980 WITH_LIBPOWERMAN_FALSE='#' 8981else 8982 WITH_LIBPOWERMAN_TRUE='#' 8983 WITH_LIBPOWERMAN_FALSE= 8984fi 8985 8986 if test "${nut_with_powerman}" = "yes"; then 8987 8988cat >>confdefs.h <<_ACEOF 8989#define WITH_LIBPOWERMAN 1 8990_ACEOF 8991 8992 fi 8993 8994 8995 8996nut_ipmi_lib="" 8997 8998 8999# Check whether --with-ipmi was given. 9000if test "${with_ipmi+set}" = set; then : 9001 withval=$with_ipmi; nut_with_ipmi="${withval}" 9002else 9003 nut_with_ipmi="auto" 9004 9005fi 9006 9007 9008 9009# Check whether --with-freeipmi was given. 9010if test "${with_freeipmi+set}" = set; then : 9011 withval=$with_freeipmi; nut_with_freeipmi="${withval}" 9012else 9013 nut_with_freeipmi="auto" 9014 9015fi 9016 9017 9018 9019if test "${nut_with_ipmi}" != "no"; then 9020 if test "${nut_with_freeipmi}" = "yes"; then 9021 9022if test -z "${nut_have_libfreeipmi_seen}"; then 9023 nut_have_libfreeipmi_seen=yes 9024 9025 CFLAGS_ORIG="${CFLAGS}" 9026 LIBS_ORIG="${LIBS}" 9027 9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeIPMI version via pkg-config" >&5 9029$as_echo_n "checking for FreeIPMI version via pkg-config... " >&6; } 9030 FREEIPMI_VERSION="`pkg-config --silence-errors --modversion libfreeipmi 2>/dev/null`" 9031 if test "$?" = "0" -a -n "${FREEIPMI_VERSION}"; then 9032 CFLAGS="`pkg-config --silence-errors --cflags libfreeipmi libipmimonitoring 2>/dev/null`" 9033 LIBS="`pkg-config --silence-errors --libs libfreeipmi libipmimonitoring 2>/dev/null`" 9034 else 9035 FREEIPMI_VERSION="none" 9036 CFLAGS="" 9037 LIBS="-lfreeipmi -lipmimonitoring" 9038 fi 9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FREEIPMI_VERSION} found" >&5 9040$as_echo "${FREEIPMI_VERSION} found" >&6; } 9041 9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeIPMI cflags" >&5 9043$as_echo_n "checking for FreeIPMI cflags... " >&6; } 9044 9045# Check whether --with-freeipmi-includes was given. 9046if test "${with_freeipmi_includes+set}" = set; then : 9047 withval=$with_freeipmi_includes; 9048 case "${withval}" in 9049 yes|no) 9050 as_fn_error $? "invalid option --with(out)-freeipmi-includes - see docs/configure.txt" "$LINENO" 5 9051 ;; 9052 *) 9053 CFLAGS="${withval}" 9054 ;; 9055 esac 9056 9057fi 9058 9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CFLAGS}" >&5 9060$as_echo "${CFLAGS}" >&6; } 9061 9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeIPMI ldflags" >&5 9063$as_echo_n "checking for FreeIPMI ldflags... " >&6; } 9064 9065# Check whether --with-freeipmi-libs was given. 9066if test "${with_freeipmi_libs+set}" = set; then : 9067 withval=$with_freeipmi_libs; 9068 case "${withval}" in 9069 yes|no) 9070 as_fn_error $? "invalid option --with(out)-freeipmi-libs - see docs/configure.txt" "$LINENO" 5 9071 ;; 9072 *) 9073 LIBS="${withval}" 9074 ;; 9075 esac 9076 9077fi 9078 9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBS}" >&5 9080$as_echo "${LIBS}" >&6; } 9081 9082 for ac_header in freeipmi/freeipmi.h 9083do : 9084 ac_fn_c_check_header_compile "$LINENO" "freeipmi/freeipmi.h" "ac_cv_header_freeipmi_freeipmi_h" "$ac_includes_default 9085" 9086if test "x$ac_cv_header_freeipmi_freeipmi_h" = xyes; then : 9087 cat >>confdefs.h <<_ACEOF 9088#define HAVE_FREEIPMI_FREEIPMI_H 1 9089_ACEOF 9090 nut_have_freeipmi=yes 9091else 9092 nut_have_freeipmi=no 9093fi 9094 9095done 9096 9097 for ac_header in ipmi_monitoring.h 9098do : 9099 ac_fn_c_check_header_compile "$LINENO" "ipmi_monitoring.h" "ac_cv_header_ipmi_monitoring_h" "$ac_includes_default 9100" 9101if test "x$ac_cv_header_ipmi_monitoring_h" = xyes; then : 9102 cat >>confdefs.h <<_ACEOF 9103#define HAVE_IPMI_MONITORING_H 1 9104_ACEOF 9105 9106else 9107 nut_have_freeipmi=no 9108fi 9109 9110done 9111 9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ipmi_ctx_create" >&5 9113$as_echo_n "checking for library containing ipmi_ctx_create... " >&6; } 9114if ${ac_cv_search_ipmi_ctx_create+:} false; then : 9115 $as_echo_n "(cached) " >&6 9116else 9117 ac_func_search_save_LIBS=$LIBS 9118cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9119/* end confdefs.h. */ 9120 9121/* Override any GCC internal prototype to avoid an error. 9122 Use char because int might match the return type of a GCC 9123 builtin and then its argument prototype would still apply. */ 9124#ifdef __cplusplus 9125extern "C" 9126#endif 9127char ipmi_ctx_create (); 9128int 9129main () 9130{ 9131return ipmi_ctx_create (); 9132 ; 9133 return 0; 9134} 9135_ACEOF 9136for ac_lib in '' freeipmi; do 9137 if test -z "$ac_lib"; then 9138 ac_res="none required" 9139 else 9140 ac_res=-l$ac_lib 9141 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9142 fi 9143 if ac_fn_c_try_link "$LINENO"; then : 9144 ac_cv_search_ipmi_ctx_create=$ac_res 9145fi 9146rm -f core conftest.err conftest.$ac_objext \ 9147 conftest$ac_exeext 9148 if ${ac_cv_search_ipmi_ctx_create+:} false; then : 9149 break 9150fi 9151done 9152if ${ac_cv_search_ipmi_ctx_create+:} false; then : 9153 9154else 9155 ac_cv_search_ipmi_ctx_create=no 9156fi 9157rm conftest.$ac_ext 9158LIBS=$ac_func_search_save_LIBS 9159fi 9160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ipmi_ctx_create" >&5 9161$as_echo "$ac_cv_search_ipmi_ctx_create" >&6; } 9162ac_res=$ac_cv_search_ipmi_ctx_create 9163if test "$ac_res" != no; then : 9164 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9165 9166else 9167 nut_have_freeipmi=no 9168fi 9169 9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ipmi_ctx_find_inband" >&5 9171$as_echo_n "checking for library containing ipmi_ctx_find_inband... " >&6; } 9172if ${ac_cv_search_ipmi_ctx_find_inband+:} false; then : 9173 $as_echo_n "(cached) " >&6 9174else 9175 ac_func_search_save_LIBS=$LIBS 9176cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9177/* end confdefs.h. */ 9178 9179/* Override any GCC internal prototype to avoid an error. 9180 Use char because int might match the return type of a GCC 9181 builtin and then its argument prototype would still apply. */ 9182#ifdef __cplusplus 9183extern "C" 9184#endif 9185char ipmi_ctx_find_inband (); 9186int 9187main () 9188{ 9189return ipmi_ctx_find_inband (); 9190 ; 9191 return 0; 9192} 9193_ACEOF 9194for ac_lib in '' freeipmi; do 9195 if test -z "$ac_lib"; then 9196 ac_res="none required" 9197 else 9198 ac_res=-l$ac_lib 9199 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9200 fi 9201 if ac_fn_c_try_link "$LINENO"; then : 9202 ac_cv_search_ipmi_ctx_find_inband=$ac_res 9203fi 9204rm -f core conftest.err conftest.$ac_objext \ 9205 conftest$ac_exeext 9206 if ${ac_cv_search_ipmi_ctx_find_inband+:} false; then : 9207 break 9208fi 9209done 9210if ${ac_cv_search_ipmi_ctx_find_inband+:} false; then : 9211 9212else 9213 ac_cv_search_ipmi_ctx_find_inband=no 9214fi 9215rm conftest.$ac_ext 9216LIBS=$ac_func_search_save_LIBS 9217fi 9218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ipmi_ctx_find_inband" >&5 9219$as_echo "$ac_cv_search_ipmi_ctx_find_inband" >&6; } 9220ac_res=$ac_cv_search_ipmi_ctx_find_inband 9221if test "$ac_res" != no; then : 9222 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9223 9224else 9225 nut_have_freeipmi=no 9226fi 9227 9228 9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ipmi_monitoring_init" >&5 9230$as_echo_n "checking for library containing ipmi_monitoring_init... " >&6; } 9231if ${ac_cv_search_ipmi_monitoring_init+:} false; then : 9232 $as_echo_n "(cached) " >&6 9233else 9234 ac_func_search_save_LIBS=$LIBS 9235cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9236/* end confdefs.h. */ 9237 9238/* Override any GCC internal prototype to avoid an error. 9239 Use char because int might match the return type of a GCC 9240 builtin and then its argument prototype would still apply. */ 9241#ifdef __cplusplus 9242extern "C" 9243#endif 9244char ipmi_monitoring_init (); 9245int 9246main () 9247{ 9248return ipmi_monitoring_init (); 9249 ; 9250 return 0; 9251} 9252_ACEOF 9253for ac_lib in '' ipmimonitoring; do 9254 if test -z "$ac_lib"; then 9255 ac_res="none required" 9256 else 9257 ac_res=-l$ac_lib 9258 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9259 fi 9260 if ac_fn_c_try_link "$LINENO"; then : 9261 ac_cv_search_ipmi_monitoring_init=$ac_res 9262fi 9263rm -f core conftest.err conftest.$ac_objext \ 9264 conftest$ac_exeext 9265 if ${ac_cv_search_ipmi_monitoring_init+:} false; then : 9266 break 9267fi 9268done 9269if ${ac_cv_search_ipmi_monitoring_init+:} false; then : 9270 9271else 9272 ac_cv_search_ipmi_monitoring_init=no 9273fi 9274rm conftest.$ac_ext 9275LIBS=$ac_func_search_save_LIBS 9276fi 9277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ipmi_monitoring_init" >&5 9278$as_echo "$ac_cv_search_ipmi_monitoring_init" >&6; } 9279ac_res=$ac_cv_search_ipmi_monitoring_init 9280if test "$ac_res" != no; then : 9281 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9282 nut_have_freeipmi_monitoring=yes 9283else 9284 nut_have_freeipmi_monitoring=no 9285fi 9286 9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ipmi_monitoring_sensor_read_record_id" >&5 9288$as_echo_n "checking for library containing ipmi_monitoring_sensor_read_record_id... " >&6; } 9289if ${ac_cv_search_ipmi_monitoring_sensor_read_record_id+:} false; then : 9290 $as_echo_n "(cached) " >&6 9291else 9292 ac_func_search_save_LIBS=$LIBS 9293cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9294/* end confdefs.h. */ 9295 9296/* Override any GCC internal prototype to avoid an error. 9297 Use char because int might match the return type of a GCC 9298 builtin and then its argument prototype would still apply. */ 9299#ifdef __cplusplus 9300extern "C" 9301#endif 9302char ipmi_monitoring_sensor_read_record_id (); 9303int 9304main () 9305{ 9306return ipmi_monitoring_sensor_read_record_id (); 9307 ; 9308 return 0; 9309} 9310_ACEOF 9311for ac_lib in '' ipmimonitoring; do 9312 if test -z "$ac_lib"; then 9313 ac_res="none required" 9314 else 9315 ac_res=-l$ac_lib 9316 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9317 fi 9318 if ac_fn_c_try_link "$LINENO"; then : 9319 ac_cv_search_ipmi_monitoring_sensor_read_record_id=$ac_res 9320fi 9321rm -f core conftest.err conftest.$ac_objext \ 9322 conftest$ac_exeext 9323 if ${ac_cv_search_ipmi_monitoring_sensor_read_record_id+:} false; then : 9324 break 9325fi 9326done 9327if ${ac_cv_search_ipmi_monitoring_sensor_read_record_id+:} false; then : 9328 9329else 9330 ac_cv_search_ipmi_monitoring_sensor_read_record_id=no 9331fi 9332rm conftest.$ac_ext 9333LIBS=$ac_func_search_save_LIBS 9334fi 9335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ipmi_monitoring_sensor_read_record_id" >&5 9336$as_echo "$ac_cv_search_ipmi_monitoring_sensor_read_record_id" >&6; } 9337ac_res=$ac_cv_search_ipmi_monitoring_sensor_read_record_id 9338if test "$ac_res" != no; then : 9339 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9340 9341else 9342 nut_have_freeipmi_monitoring=no 9343fi 9344 9345 9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ipmi_sdr_cache_ctx_destroy" >&5 9347$as_echo_n "checking for library containing ipmi_sdr_cache_ctx_destroy... " >&6; } 9348if ${ac_cv_search_ipmi_sdr_cache_ctx_destroy+:} false; then : 9349 $as_echo_n "(cached) " >&6 9350else 9351 ac_func_search_save_LIBS=$LIBS 9352cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9353/* end confdefs.h. */ 9354 9355/* Override any GCC internal prototype to avoid an error. 9356 Use char because int might match the return type of a GCC 9357 builtin and then its argument prototype would still apply. */ 9358#ifdef __cplusplus 9359extern "C" 9360#endif 9361char ipmi_sdr_cache_ctx_destroy (); 9362int 9363main () 9364{ 9365return ipmi_sdr_cache_ctx_destroy (); 9366 ; 9367 return 0; 9368} 9369_ACEOF 9370for ac_lib in '' freeipmi; do 9371 if test -z "$ac_lib"; then 9372 ac_res="none required" 9373 else 9374 ac_res=-l$ac_lib 9375 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9376 fi 9377 if ac_fn_c_try_link "$LINENO"; then : 9378 ac_cv_search_ipmi_sdr_cache_ctx_destroy=$ac_res 9379fi 9380rm -f core conftest.err conftest.$ac_objext \ 9381 conftest$ac_exeext 9382 if ${ac_cv_search_ipmi_sdr_cache_ctx_destroy+:} false; then : 9383 break 9384fi 9385done 9386if ${ac_cv_search_ipmi_sdr_cache_ctx_destroy+:} false; then : 9387 9388else 9389 ac_cv_search_ipmi_sdr_cache_ctx_destroy=no 9390fi 9391rm conftest.$ac_ext 9392LIBS=$ac_func_search_save_LIBS 9393fi 9394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ipmi_sdr_cache_ctx_destroy" >&5 9395$as_echo "$ac_cv_search_ipmi_sdr_cache_ctx_destroy" >&6; } 9396ac_res=$ac_cv_search_ipmi_sdr_cache_ctx_destroy 9397if test "$ac_res" != no; then : 9398 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9399 nut_have_freeipmi_11x_12x=no 9400fi 9401 9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ipmi_sdr_ctx_destroy" >&5 9403$as_echo_n "checking for library containing ipmi_sdr_ctx_destroy... " >&6; } 9404if ${ac_cv_search_ipmi_sdr_ctx_destroy+:} false; then : 9405 $as_echo_n "(cached) " >&6 9406else 9407 ac_func_search_save_LIBS=$LIBS 9408cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9409/* end confdefs.h. */ 9410 9411/* Override any GCC internal prototype to avoid an error. 9412 Use char because int might match the return type of a GCC 9413 builtin and then its argument prototype would still apply. */ 9414#ifdef __cplusplus 9415extern "C" 9416#endif 9417char ipmi_sdr_ctx_destroy (); 9418int 9419main () 9420{ 9421return ipmi_sdr_ctx_destroy (); 9422 ; 9423 return 0; 9424} 9425_ACEOF 9426for ac_lib in '' freeipmi; do 9427 if test -z "$ac_lib"; then 9428 ac_res="none required" 9429 else 9430 ac_res=-l$ac_lib 9431 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9432 fi 9433 if ac_fn_c_try_link "$LINENO"; then : 9434 ac_cv_search_ipmi_sdr_ctx_destroy=$ac_res 9435fi 9436rm -f core conftest.err conftest.$ac_objext \ 9437 conftest$ac_exeext 9438 if ${ac_cv_search_ipmi_sdr_ctx_destroy+:} false; then : 9439 break 9440fi 9441done 9442if ${ac_cv_search_ipmi_sdr_ctx_destroy+:} false; then : 9443 9444else 9445 ac_cv_search_ipmi_sdr_ctx_destroy=no 9446fi 9447rm conftest.$ac_ext 9448LIBS=$ac_func_search_save_LIBS 9449fi 9450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ipmi_sdr_ctx_destroy" >&5 9451$as_echo "$ac_cv_search_ipmi_sdr_ctx_destroy" >&6; } 9452ac_res=$ac_cv_search_ipmi_sdr_ctx_destroy 9453if test "$ac_res" != no; then : 9454 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9455 nut_have_freeipmi_11x_12x=yes 9456else 9457 nut_have_freeipmi_11x_12x=no 9458fi 9459 9460 9461 if test "${nut_have_freeipmi}" = "yes"; then 9462 nut_with_ipmi="yes" 9463 nut_ipmi_lib="(FreeIPMI)" 9464 nut_have_libipmi="yes" 9465 9466$as_echo "#define HAVE_FREEIPMI 1" >>confdefs.h 9467 9468 LIBIPMI_CFLAGS="${CFLAGS}" 9469 LIBIPMI_LIBS="${LIBS}" 9470 fi 9471 9472 if test "${nut_have_freeipmi_11x_12x}" = "yes"; then 9473 9474$as_echo "#define HAVE_FREEIPMI_11X_12X 1" >>confdefs.h 9475 9476 fi 9477 9478 if test "${nut_have_freeipmi_monitoring}" = "yes"; then 9479 9480$as_echo "#define HAVE_FREEIPMI_MONITORING 1" >>confdefs.h 9481 9482 fi 9483 9484 CFLAGS="${CFLAGS_ORIG}" 9485 LIBS="${LIBS_ORIG}" 9486fi 9487 9488 if test "${nut_have_freeipmi}" != "yes"; then 9489 as_fn_error $? "\"GNU FreeIPMI not found, required for IPMI support\"" "$LINENO" 5 9490 fi 9491 nut_with_ipmi="yes" 9492 else 9493 9494if test -z "${nut_have_libfreeipmi_seen}"; then 9495 nut_have_libfreeipmi_seen=yes 9496 9497 CFLAGS_ORIG="${CFLAGS}" 9498 LIBS_ORIG="${LIBS}" 9499 9500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeIPMI version via pkg-config" >&5 9501$as_echo_n "checking for FreeIPMI version via pkg-config... " >&6; } 9502 FREEIPMI_VERSION="`pkg-config --silence-errors --modversion libfreeipmi 2>/dev/null`" 9503 if test "$?" = "0" -a -n "${FREEIPMI_VERSION}"; then 9504 CFLAGS="`pkg-config --silence-errors --cflags libfreeipmi libipmimonitoring 2>/dev/null`" 9505 LIBS="`pkg-config --silence-errors --libs libfreeipmi libipmimonitoring 2>/dev/null`" 9506 else 9507 FREEIPMI_VERSION="none" 9508 CFLAGS="" 9509 LIBS="-lfreeipmi -lipmimonitoring" 9510 fi 9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FREEIPMI_VERSION} found" >&5 9512$as_echo "${FREEIPMI_VERSION} found" >&6; } 9513 9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeIPMI cflags" >&5 9515$as_echo_n "checking for FreeIPMI cflags... " >&6; } 9516 9517# Check whether --with-freeipmi-includes was given. 9518if test "${with_freeipmi_includes+set}" = set; then : 9519 withval=$with_freeipmi_includes; 9520 case "${withval}" in 9521 yes|no) 9522 as_fn_error $? "invalid option --with(out)-freeipmi-includes - see docs/configure.txt" "$LINENO" 5 9523 ;; 9524 *) 9525 CFLAGS="${withval}" 9526 ;; 9527 esac 9528 9529fi 9530 9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CFLAGS}" >&5 9532$as_echo "${CFLAGS}" >&6; } 9533 9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeIPMI ldflags" >&5 9535$as_echo_n "checking for FreeIPMI ldflags... " >&6; } 9536 9537# Check whether --with-freeipmi-libs was given. 9538if test "${with_freeipmi_libs+set}" = set; then : 9539 withval=$with_freeipmi_libs; 9540 case "${withval}" in 9541 yes|no) 9542 as_fn_error $? "invalid option --with(out)-freeipmi-libs - see docs/configure.txt" "$LINENO" 5 9543 ;; 9544 *) 9545 LIBS="${withval}" 9546 ;; 9547 esac 9548 9549fi 9550 9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBS}" >&5 9552$as_echo "${LIBS}" >&6; } 9553 9554 for ac_header in freeipmi/freeipmi.h 9555do : 9556 ac_fn_c_check_header_compile "$LINENO" "freeipmi/freeipmi.h" "ac_cv_header_freeipmi_freeipmi_h" "$ac_includes_default 9557" 9558if test "x$ac_cv_header_freeipmi_freeipmi_h" = xyes; then : 9559 cat >>confdefs.h <<_ACEOF 9560#define HAVE_FREEIPMI_FREEIPMI_H 1 9561_ACEOF 9562 nut_have_freeipmi=yes 9563else 9564 nut_have_freeipmi=no 9565fi 9566 9567done 9568 9569 for ac_header in ipmi_monitoring.h 9570do : 9571 ac_fn_c_check_header_compile "$LINENO" "ipmi_monitoring.h" "ac_cv_header_ipmi_monitoring_h" "$ac_includes_default 9572" 9573if test "x$ac_cv_header_ipmi_monitoring_h" = xyes; then : 9574 cat >>confdefs.h <<_ACEOF 9575#define HAVE_IPMI_MONITORING_H 1 9576_ACEOF 9577 9578else 9579 nut_have_freeipmi=no 9580fi 9581 9582done 9583 9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ipmi_ctx_create" >&5 9585$as_echo_n "checking for library containing ipmi_ctx_create... " >&6; } 9586if ${ac_cv_search_ipmi_ctx_create+:} false; then : 9587 $as_echo_n "(cached) " >&6 9588else 9589 ac_func_search_save_LIBS=$LIBS 9590cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9591/* end confdefs.h. */ 9592 9593/* Override any GCC internal prototype to avoid an error. 9594 Use char because int might match the return type of a GCC 9595 builtin and then its argument prototype would still apply. */ 9596#ifdef __cplusplus 9597extern "C" 9598#endif 9599char ipmi_ctx_create (); 9600int 9601main () 9602{ 9603return ipmi_ctx_create (); 9604 ; 9605 return 0; 9606} 9607_ACEOF 9608for ac_lib in '' freeipmi; do 9609 if test -z "$ac_lib"; then 9610 ac_res="none required" 9611 else 9612 ac_res=-l$ac_lib 9613 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9614 fi 9615 if ac_fn_c_try_link "$LINENO"; then : 9616 ac_cv_search_ipmi_ctx_create=$ac_res 9617fi 9618rm -f core conftest.err conftest.$ac_objext \ 9619 conftest$ac_exeext 9620 if ${ac_cv_search_ipmi_ctx_create+:} false; then : 9621 break 9622fi 9623done 9624if ${ac_cv_search_ipmi_ctx_create+:} false; then : 9625 9626else 9627 ac_cv_search_ipmi_ctx_create=no 9628fi 9629rm conftest.$ac_ext 9630LIBS=$ac_func_search_save_LIBS 9631fi 9632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ipmi_ctx_create" >&5 9633$as_echo "$ac_cv_search_ipmi_ctx_create" >&6; } 9634ac_res=$ac_cv_search_ipmi_ctx_create 9635if test "$ac_res" != no; then : 9636 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9637 9638else 9639 nut_have_freeipmi=no 9640fi 9641 9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ipmi_ctx_find_inband" >&5 9643$as_echo_n "checking for library containing ipmi_ctx_find_inband... " >&6; } 9644if ${ac_cv_search_ipmi_ctx_find_inband+:} false; then : 9645 $as_echo_n "(cached) " >&6 9646else 9647 ac_func_search_save_LIBS=$LIBS 9648cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9649/* end confdefs.h. */ 9650 9651/* Override any GCC internal prototype to avoid an error. 9652 Use char because int might match the return type of a GCC 9653 builtin and then its argument prototype would still apply. */ 9654#ifdef __cplusplus 9655extern "C" 9656#endif 9657char ipmi_ctx_find_inband (); 9658int 9659main () 9660{ 9661return ipmi_ctx_find_inband (); 9662 ; 9663 return 0; 9664} 9665_ACEOF 9666for ac_lib in '' freeipmi; do 9667 if test -z "$ac_lib"; then 9668 ac_res="none required" 9669 else 9670 ac_res=-l$ac_lib 9671 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9672 fi 9673 if ac_fn_c_try_link "$LINENO"; then : 9674 ac_cv_search_ipmi_ctx_find_inband=$ac_res 9675fi 9676rm -f core conftest.err conftest.$ac_objext \ 9677 conftest$ac_exeext 9678 if ${ac_cv_search_ipmi_ctx_find_inband+:} false; then : 9679 break 9680fi 9681done 9682if ${ac_cv_search_ipmi_ctx_find_inband+:} false; then : 9683 9684else 9685 ac_cv_search_ipmi_ctx_find_inband=no 9686fi 9687rm conftest.$ac_ext 9688LIBS=$ac_func_search_save_LIBS 9689fi 9690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ipmi_ctx_find_inband" >&5 9691$as_echo "$ac_cv_search_ipmi_ctx_find_inband" >&6; } 9692ac_res=$ac_cv_search_ipmi_ctx_find_inband 9693if test "$ac_res" != no; then : 9694 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9695 9696else 9697 nut_have_freeipmi=no 9698fi 9699 9700 9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ipmi_monitoring_init" >&5 9702$as_echo_n "checking for library containing ipmi_monitoring_init... " >&6; } 9703if ${ac_cv_search_ipmi_monitoring_init+:} false; then : 9704 $as_echo_n "(cached) " >&6 9705else 9706 ac_func_search_save_LIBS=$LIBS 9707cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9708/* end confdefs.h. */ 9709 9710/* Override any GCC internal prototype to avoid an error. 9711 Use char because int might match the return type of a GCC 9712 builtin and then its argument prototype would still apply. */ 9713#ifdef __cplusplus 9714extern "C" 9715#endif 9716char ipmi_monitoring_init (); 9717int 9718main () 9719{ 9720return ipmi_monitoring_init (); 9721 ; 9722 return 0; 9723} 9724_ACEOF 9725for ac_lib in '' ipmimonitoring; do 9726 if test -z "$ac_lib"; then 9727 ac_res="none required" 9728 else 9729 ac_res=-l$ac_lib 9730 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9731 fi 9732 if ac_fn_c_try_link "$LINENO"; then : 9733 ac_cv_search_ipmi_monitoring_init=$ac_res 9734fi 9735rm -f core conftest.err conftest.$ac_objext \ 9736 conftest$ac_exeext 9737 if ${ac_cv_search_ipmi_monitoring_init+:} false; then : 9738 break 9739fi 9740done 9741if ${ac_cv_search_ipmi_monitoring_init+:} false; then : 9742 9743else 9744 ac_cv_search_ipmi_monitoring_init=no 9745fi 9746rm conftest.$ac_ext 9747LIBS=$ac_func_search_save_LIBS 9748fi 9749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ipmi_monitoring_init" >&5 9750$as_echo "$ac_cv_search_ipmi_monitoring_init" >&6; } 9751ac_res=$ac_cv_search_ipmi_monitoring_init 9752if test "$ac_res" != no; then : 9753 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9754 nut_have_freeipmi_monitoring=yes 9755else 9756 nut_have_freeipmi_monitoring=no 9757fi 9758 9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ipmi_monitoring_sensor_read_record_id" >&5 9760$as_echo_n "checking for library containing ipmi_monitoring_sensor_read_record_id... " >&6; } 9761if ${ac_cv_search_ipmi_monitoring_sensor_read_record_id+:} false; then : 9762 $as_echo_n "(cached) " >&6 9763else 9764 ac_func_search_save_LIBS=$LIBS 9765cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9766/* end confdefs.h. */ 9767 9768/* Override any GCC internal prototype to avoid an error. 9769 Use char because int might match the return type of a GCC 9770 builtin and then its argument prototype would still apply. */ 9771#ifdef __cplusplus 9772extern "C" 9773#endif 9774char ipmi_monitoring_sensor_read_record_id (); 9775int 9776main () 9777{ 9778return ipmi_monitoring_sensor_read_record_id (); 9779 ; 9780 return 0; 9781} 9782_ACEOF 9783for ac_lib in '' ipmimonitoring; do 9784 if test -z "$ac_lib"; then 9785 ac_res="none required" 9786 else 9787 ac_res=-l$ac_lib 9788 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9789 fi 9790 if ac_fn_c_try_link "$LINENO"; then : 9791 ac_cv_search_ipmi_monitoring_sensor_read_record_id=$ac_res 9792fi 9793rm -f core conftest.err conftest.$ac_objext \ 9794 conftest$ac_exeext 9795 if ${ac_cv_search_ipmi_monitoring_sensor_read_record_id+:} false; then : 9796 break 9797fi 9798done 9799if ${ac_cv_search_ipmi_monitoring_sensor_read_record_id+:} false; then : 9800 9801else 9802 ac_cv_search_ipmi_monitoring_sensor_read_record_id=no 9803fi 9804rm conftest.$ac_ext 9805LIBS=$ac_func_search_save_LIBS 9806fi 9807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ipmi_monitoring_sensor_read_record_id" >&5 9808$as_echo "$ac_cv_search_ipmi_monitoring_sensor_read_record_id" >&6; } 9809ac_res=$ac_cv_search_ipmi_monitoring_sensor_read_record_id 9810if test "$ac_res" != no; then : 9811 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9812 9813else 9814 nut_have_freeipmi_monitoring=no 9815fi 9816 9817 9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ipmi_sdr_cache_ctx_destroy" >&5 9819$as_echo_n "checking for library containing ipmi_sdr_cache_ctx_destroy... " >&6; } 9820if ${ac_cv_search_ipmi_sdr_cache_ctx_destroy+:} false; then : 9821 $as_echo_n "(cached) " >&6 9822else 9823 ac_func_search_save_LIBS=$LIBS 9824cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9825/* end confdefs.h. */ 9826 9827/* Override any GCC internal prototype to avoid an error. 9828 Use char because int might match the return type of a GCC 9829 builtin and then its argument prototype would still apply. */ 9830#ifdef __cplusplus 9831extern "C" 9832#endif 9833char ipmi_sdr_cache_ctx_destroy (); 9834int 9835main () 9836{ 9837return ipmi_sdr_cache_ctx_destroy (); 9838 ; 9839 return 0; 9840} 9841_ACEOF 9842for ac_lib in '' freeipmi; do 9843 if test -z "$ac_lib"; then 9844 ac_res="none required" 9845 else 9846 ac_res=-l$ac_lib 9847 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9848 fi 9849 if ac_fn_c_try_link "$LINENO"; then : 9850 ac_cv_search_ipmi_sdr_cache_ctx_destroy=$ac_res 9851fi 9852rm -f core conftest.err conftest.$ac_objext \ 9853 conftest$ac_exeext 9854 if ${ac_cv_search_ipmi_sdr_cache_ctx_destroy+:} false; then : 9855 break 9856fi 9857done 9858if ${ac_cv_search_ipmi_sdr_cache_ctx_destroy+:} false; then : 9859 9860else 9861 ac_cv_search_ipmi_sdr_cache_ctx_destroy=no 9862fi 9863rm conftest.$ac_ext 9864LIBS=$ac_func_search_save_LIBS 9865fi 9866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ipmi_sdr_cache_ctx_destroy" >&5 9867$as_echo "$ac_cv_search_ipmi_sdr_cache_ctx_destroy" >&6; } 9868ac_res=$ac_cv_search_ipmi_sdr_cache_ctx_destroy 9869if test "$ac_res" != no; then : 9870 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9871 nut_have_freeipmi_11x_12x=no 9872fi 9873 9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ipmi_sdr_ctx_destroy" >&5 9875$as_echo_n "checking for library containing ipmi_sdr_ctx_destroy... " >&6; } 9876if ${ac_cv_search_ipmi_sdr_ctx_destroy+:} false; then : 9877 $as_echo_n "(cached) " >&6 9878else 9879 ac_func_search_save_LIBS=$LIBS 9880cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9881/* end confdefs.h. */ 9882 9883/* Override any GCC internal prototype to avoid an error. 9884 Use char because int might match the return type of a GCC 9885 builtin and then its argument prototype would still apply. */ 9886#ifdef __cplusplus 9887extern "C" 9888#endif 9889char ipmi_sdr_ctx_destroy (); 9890int 9891main () 9892{ 9893return ipmi_sdr_ctx_destroy (); 9894 ; 9895 return 0; 9896} 9897_ACEOF 9898for ac_lib in '' freeipmi; do 9899 if test -z "$ac_lib"; then 9900 ac_res="none required" 9901 else 9902 ac_res=-l$ac_lib 9903 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9904 fi 9905 if ac_fn_c_try_link "$LINENO"; then : 9906 ac_cv_search_ipmi_sdr_ctx_destroy=$ac_res 9907fi 9908rm -f core conftest.err conftest.$ac_objext \ 9909 conftest$ac_exeext 9910 if ${ac_cv_search_ipmi_sdr_ctx_destroy+:} false; then : 9911 break 9912fi 9913done 9914if ${ac_cv_search_ipmi_sdr_ctx_destroy+:} false; then : 9915 9916else 9917 ac_cv_search_ipmi_sdr_ctx_destroy=no 9918fi 9919rm conftest.$ac_ext 9920LIBS=$ac_func_search_save_LIBS 9921fi 9922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ipmi_sdr_ctx_destroy" >&5 9923$as_echo "$ac_cv_search_ipmi_sdr_ctx_destroy" >&6; } 9924ac_res=$ac_cv_search_ipmi_sdr_ctx_destroy 9925if test "$ac_res" != no; then : 9926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9927 nut_have_freeipmi_11x_12x=yes 9928else 9929 nut_have_freeipmi_11x_12x=no 9930fi 9931 9932 9933 if test "${nut_have_freeipmi}" = "yes"; then 9934 nut_with_ipmi="yes" 9935 nut_ipmi_lib="(FreeIPMI)" 9936 nut_have_libipmi="yes" 9937 9938$as_echo "#define HAVE_FREEIPMI 1" >>confdefs.h 9939 9940 LIBIPMI_CFLAGS="${CFLAGS}" 9941 LIBIPMI_LIBS="${LIBS}" 9942 fi 9943 9944 if test "${nut_have_freeipmi_11x_12x}" = "yes"; then 9945 9946$as_echo "#define HAVE_FREEIPMI_11X_12X 1" >>confdefs.h 9947 9948 fi 9949 9950 if test "${nut_have_freeipmi_monitoring}" = "yes"; then 9951 9952$as_echo "#define HAVE_FREEIPMI_MONITORING 1" >>confdefs.h 9953 9954 fi 9955 9956 CFLAGS="${CFLAGS_ORIG}" 9957 LIBS="${LIBS_ORIG}" 9958fi 9959 9960 if test "${nut_have_freeipmi}" != "yes"; then 9961 if test "${nut_with_ipmi}" = "yes"; then 9962 as_fn_error $? "\"FreeIPMI not found, required for IPMI support\"" "$LINENO" 5 9963 fi 9964 nut_with_ipmi="no" 9965 else 9966 nut_with_ipmi="yes" 9967 nut_with_freeipmi="yes" 9968 9969$as_echo "#define WITH_FREEIPMI 1" >>confdefs.h 9970 9971 fi 9972 fi 9973fi 9974 9975 9976 9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build IPMI driver" >&5 9978$as_echo_n "checking whether to build IPMI driver... " >&6; } 9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${nut_with_ipmi} ${nut_ipmi_lib}" >&5 9980$as_echo "${nut_with_ipmi} ${nut_ipmi_lib}" >&6; } 9981 if test -z "${nut_report_feature_flag}"; then 9982 nut_report_feature_flag="1" 9983 ac_clean_files="${ac_clean_files} conf_nut_report_feature" 9984 echo > conf_nut_report_feature 9985 echo "Configuration summary:" >> conf_nut_report_feature 9986 echo "======================" >> conf_nut_report_feature 9987 fi 9988 echo "build IPMI driver: ${nut_with_ipmi} ${nut_ipmi_lib}" >> conf_nut_report_feature 9989 9990 9991 if test "${nut_with_ipmi}" = "yes"; then 9992 WITH_IPMI_TRUE= 9993 WITH_IPMI_FALSE='#' 9994else 9995 WITH_IPMI_TRUE='#' 9996 WITH_IPMI_FALSE= 9997fi 9998 9999 if test "${nut_with_ipmi}" = "yes"; then 10000 10001cat >>confdefs.h <<_ACEOF 10002#define WITH_IPMI 1 10003_ACEOF 10004 10005 fi 10006 10007 10008 if test "${nut_with_freeipmi}" = "yes"; then 10009 WITH_FREEIPMI_TRUE= 10010 WITH_FREEIPMI_FALSE='#' 10011else 10012 WITH_FREEIPMI_TRUE='#' 10013 WITH_FREEIPMI_FALSE= 10014fi 10015 10016 10017 10018 10019 10020# Check whether --with-macosx_ups was given. 10021if test "${with_macosx_ups+set}" = set; then : 10022 withval=$with_macosx_ups; nut_with_macosx_ups="${withval}" 10023else 10024 nut_with_macosx_ups="auto" 10025 10026fi 10027 10028 10029if test "${nut_with_macosx_ups}" != no; then 10030 if test -d /System/Library/Frameworks/IOKit.framework/ ; then 10031 nut_with_macosx_ups="yes" 10032 else 10033 nut_with_macosx_ups="no" 10034 fi 10035fi 10036 10037 10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Mac OS X meta-driver" >&5 10039$as_echo_n "checking whether to build Mac OS X meta-driver... " >&6; } 10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${nut_with_macosx_ups} ${nut_macosx_ups_lib}" >&5 10041$as_echo "${nut_with_macosx_ups} ${nut_macosx_ups_lib}" >&6; } 10042 if test -z "${nut_report_feature_flag}"; then 10043 nut_report_feature_flag="1" 10044 ac_clean_files="${ac_clean_files} conf_nut_report_feature" 10045 echo > conf_nut_report_feature 10046 echo "Configuration summary:" >> conf_nut_report_feature 10047 echo "======================" >> conf_nut_report_feature 10048 fi 10049 echo "build Mac OS X meta-driver: ${nut_with_macosx_ups} ${nut_macosx_ups_lib}" >> conf_nut_report_feature 10050 10051 10052 if test "${nut_with_macosx_ups}" = "yes"; then 10053 WITH_MACOSX_TRUE= 10054 WITH_MACOSX_FALSE='#' 10055else 10056 WITH_MACOSX_TRUE='#' 10057 WITH_MACOSX_FALSE= 10058fi 10059 10060 if test "${nut_with_macosx_ups}" = "yes"; then 10061 10062cat >>confdefs.h <<_ACEOF 10063#define WITH_MACOSX 1 10064_ACEOF 10065 10066 fi 10067 10068 10069 10070# Check whether --with-linux_i2c was given. 10071if test "${with_linux_i2c+set}" = set; then : 10072 withval=$with_linux_i2c; nut_with_linux_i2c="${withval}" 10073else 10074 nut_with_linux_i2c="auto" 10075 10076fi 10077 10078 10079if test "${nut_with_linux_i2c}" != no; then 10080 case ${target_os} in 10081 linux* ) 10082 ac_fn_c_check_decl "$LINENO" "i2c_smbus_read_word_data" "ac_cv_have_decl_i2c_smbus_read_word_data" "#include <stdio.h> 10083 #include <linux/i2c-dev.h> 10084 10085 10086" 10087if test "x$ac_cv_have_decl_i2c_smbus_read_word_data" = xyes; then : 10088 ac_have_decl=1 10089else 10090 ac_have_decl=0 10091fi 10092 10093cat >>confdefs.h <<_ACEOF 10094#define HAVE_DECL_I2C_SMBUS_READ_WORD_DATA $ac_have_decl 10095_ACEOF 10096if test $ac_have_decl = 1; then : 10097 nut_with_linux_i2c="yes" 10098else 10099 nut_with_linux_i2c="no" 10100fi 10101ac_fn_c_check_decl "$LINENO" "i2c_smbus_write_word_data" "ac_cv_have_decl_i2c_smbus_write_word_data" "#include <stdio.h> 10102 #include <linux/i2c-dev.h> 10103 10104 10105" 10106if test "x$ac_cv_have_decl_i2c_smbus_write_word_data" = xyes; then : 10107 ac_have_decl=1 10108else 10109 ac_have_decl=0 10110fi 10111 10112cat >>confdefs.h <<_ACEOF 10113#define HAVE_DECL_I2C_SMBUS_WRITE_WORD_DATA $ac_have_decl 10114_ACEOF 10115if test $ac_have_decl = 1; then : 10116 nut_with_linux_i2c="yes" 10117else 10118 nut_with_linux_i2c="no" 10119fi 10120ac_fn_c_check_decl "$LINENO" "i2c_smbus_read_block_data" "ac_cv_have_decl_i2c_smbus_read_block_data" "#include <stdio.h> 10121 #include <linux/i2c-dev.h> 10122 10123 10124" 10125if test "x$ac_cv_have_decl_i2c_smbus_read_block_data" = xyes; then : 10126 ac_have_decl=1 10127else 10128 ac_have_decl=0 10129fi 10130 10131cat >>confdefs.h <<_ACEOF 10132#define HAVE_DECL_I2C_SMBUS_READ_BLOCK_DATA $ac_have_decl 10133_ACEOF 10134if test $ac_have_decl = 1; then : 10135 nut_with_linux_i2c="yes" 10136else 10137 nut_with_linux_i2c="no" 10138fi 10139 10140 ;; 10141 * ) 10142 nut_with_linux_i2c="no" 10143 ;; 10144 esac 10145fi 10146 10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build i2c based drivers" >&5 10148$as_echo_n "checking whether to build i2c based drivers... " >&6; } 10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${nut_with_linux_i2c} " >&5 10150$as_echo "${nut_with_linux_i2c} " >&6; } 10151 if test -z "${nut_report_feature_flag}"; then 10152 nut_report_feature_flag="1" 10153 ac_clean_files="${ac_clean_files} conf_nut_report_feature" 10154 echo > conf_nut_report_feature 10155 echo "Configuration summary:" >> conf_nut_report_feature 10156 echo "======================" >> conf_nut_report_feature 10157 fi 10158 echo "build i2c based drivers: ${nut_with_linux_i2c} " >> conf_nut_report_feature 10159 10160 10161 if test "${nut_with_linux_i2c}" = "yes"; then 10162 WITH_LINUX_I2C_TRUE= 10163 WITH_LINUX_I2C_FALSE='#' 10164else 10165 WITH_LINUX_I2C_TRUE='#' 10166 WITH_LINUX_I2C_FALSE= 10167fi 10168 10169 if test "${nut_with_linux_i2c}" = "yes"; then 10170 10171cat >>confdefs.h <<_ACEOF 10172#define WITH_LINUX_I2C 1 10173_ACEOF 10174 10175 fi 10176 10177 10178 10179nut_ssl_lib="" 10180 10181 10182# Check whether --with-ssl was given. 10183if test "${with_ssl+set}" = set; then : 10184 withval=$with_ssl; nut_with_ssl="${withval}" 10185else 10186 nut_with_ssl="auto" 10187 10188fi 10189 10190 10191 10192# Check whether --with-nss was given. 10193if test "${with_nss+set}" = set; then : 10194 withval=$with_nss; nut_with_nss="${withval}" 10195else 10196 nut_with_nss="auto" 10197 10198fi 10199 10200 10201 10202# Check whether --with-openssl was given. 10203if test "${with_openssl+set}" = set; then : 10204 withval=$with_openssl; nut_with_openssl="${withval}" 10205else 10206 nut_with_openssl="auto" 10207 10208fi 10209 10210 10211 10212if test "${nut_with_ssl}" != "no"; then 10213 if test "${nut_with_nss}" = "yes"; then 10214 10215if test -z "${nut_have_libnss_seen}"; then 10216 nut_have_libnss_seen=yes 10217 10218 CFLAGS_ORIG="${CFLAGS}" 10219 LIBS_ORIG="${LIBS}" 10220 10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla NSS version via pkg-config" >&5 10222$as_echo_n "checking for Mozilla NSS version via pkg-config... " >&6; } 10223 NSS_VERSION="`pkg-config --silence-errors --modversion nss 2>/dev/null`" 10224 if test "$?" = "0" -a -n "${NSS_VERSION}"; then 10225 CFLAGS="`pkg-config --silence-errors --cflags nss 2>/dev/null`" 10226 LIBS="`pkg-config --silence-errors --libs nss 2>/dev/null`" 10227 else 10228 NSS_VERSION="none" 10229 CFLAGS="" 10230 LIBS="-lnss3 -lnssutil3 -lsmime3 -lssl3 -lplds4 -lplc4 -lnspr4" 10231 fi 10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${NSS_VERSION} found" >&5 10233$as_echo "${NSS_VERSION} found" >&6; } 10234 10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla NSS cflags" >&5 10236$as_echo_n "checking for Mozilla NSS cflags... " >&6; } 10237 10238# Check whether --with-nss-includes was given. 10239if test "${with_nss_includes+set}" = set; then : 10240 withval=$with_nss_includes; 10241 case "${withval}" in 10242 yes|no) 10243 as_fn_error $? "invalid option --with(out)-nss-includes - see docs/configure.txt" "$LINENO" 5 10244 ;; 10245 *) 10246 CFLAGS="${withval}" 10247 ;; 10248 esac 10249 10250fi 10251 10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CFLAGS}" >&5 10253$as_echo "${CFLAGS}" >&6; } 10254 10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla NSS ldflags" >&5 10256$as_echo_n "checking for Mozilla NSS ldflags... " >&6; } 10257 10258# Check whether --with-nss-libs was given. 10259if test "${with_nss_libs+set}" = set; then : 10260 withval=$with_nss_libs; 10261 case "${withval}" in 10262 yes|no) 10263 as_fn_error $? "invalid option --with(out)-nss-libs - see docs/configure.txt" "$LINENO" 5 10264 ;; 10265 *) 10266 LIBS="${withval}" 10267 ;; 10268 esac 10269 10270fi 10271 10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBS}" >&5 10273$as_echo "${LIBS}" >&6; } 10274 10275 for ac_func in NSS_Init 10276do : 10277 ac_fn_c_check_func "$LINENO" "NSS_Init" "ac_cv_func_NSS_Init" 10278if test "x$ac_cv_func_NSS_Init" = xyes; then : 10279 cat >>confdefs.h <<_ACEOF 10280#define HAVE_NSS_INIT 1 10281_ACEOF 10282 nut_have_libnss=yes 10283else 10284 nut_have_libnss=no 10285fi 10286done 10287 10288 for ac_header in nss.h ssl.h 10289do : 10290 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10291ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 10292" 10293if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10294 cat >>confdefs.h <<_ACEOF 10295#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10296_ACEOF 10297 10298else 10299 nut_have_libnss=no 10300fi 10301 10302done 10303 10304 10305 if test "${nut_have_libnss}" = "yes"; then 10306 nut_with_ssl="yes" 10307 nut_ssl_lib="(Mozilla NSS)" 10308 10309$as_echo "#define WITH_SSL 1" >>confdefs.h 10310 10311 10312$as_echo "#define WITH_NSS 1" >>confdefs.h 10313 10314 LIBSSL_CFLAGS="${CFLAGS}" 10315 LIBSSL_LIBS="${LIBS}" 10316 fi 10317 10318 CFLAGS="${CFLAGS_ORIG}" 10319 LIBS="${LIBS_ORIG}" 10320fi 10321 10322 if test "${nut_have_libnss}" != "yes"; then 10323 as_fn_error $? "\"Mozilla NSS not found, required for SSL support\"" "$LINENO" 5 10324 fi 10325 elif test "${nut_with_openssl}" = "yes"; then 10326 10327if test -z "${nut_have_libopenssl_seen}"; then 10328 nut_have_libopenssl_seen=yes 10329 10330 CFLAGS_ORIG="${CFLAGS}" 10331 LIBS_ORIG="${LIBS}" 10332 10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version via pkg-config" >&5 10334$as_echo_n "checking for OpenSSL version via pkg-config... " >&6; } 10335 OPENSSL_VERSION="`pkg-config --silence-errors --modversion openssl 2>/dev/null`" 10336 if test "$?" = "0" -a -n "${OPENSSL_VERSION}"; then 10337 CFLAGS="`pkg-config --silence-errors --cflags openssl 2>/dev/null`" 10338 LIBS="`pkg-config --silence-errors --libs openssl 2>/dev/null`" 10339 else 10340 OPENSSL_VERSION="none" 10341 CFLAGS="" 10342 LIBS="-lssl -lcrypto" 10343 fi 10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${OPENSSL_VERSION} found" >&5 10345$as_echo "${OPENSSL_VERSION} found" >&6; } 10346 10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL cflags" >&5 10348$as_echo_n "checking for OpenSSL cflags... " >&6; } 10349 10350# Check whether --with-openssl-includes was given. 10351if test "${with_openssl_includes+set}" = set; then : 10352 withval=$with_openssl_includes; 10353 case "${withval}" in 10354 yes|no) 10355 as_fn_error $? "invalid option --with(out)-openssl-includes - see docs/configure.txt" "$LINENO" 5 10356 ;; 10357 *) 10358 CFLAGS="${withval}" 10359 ;; 10360 esac 10361 10362fi 10363 10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CFLAGS}" >&5 10365$as_echo "${CFLAGS}" >&6; } 10366 10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ldflags" >&5 10368$as_echo_n "checking for OpenSSL ldflags... " >&6; } 10369 10370# Check whether --with-openssl-libs was given. 10371if test "${with_openssl_libs+set}" = set; then : 10372 withval=$with_openssl_libs; 10373 case "${withval}" in 10374 yes|no) 10375 as_fn_error $? "invalid option --with(out)-openssl-libs - see docs/configure.txt" "$LINENO" 5 10376 ;; 10377 *) 10378 LIBS="${withval}" 10379 ;; 10380 esac 10381 10382fi 10383 10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBS}" >&5 10385$as_echo "${LIBS}" >&6; } 10386 10387 for ac_header in openssl/ssl.h 10388do : 10389 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default 10390" 10391if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : 10392 cat >>confdefs.h <<_ACEOF 10393#define HAVE_OPENSSL_SSL_H 1 10394_ACEOF 10395 nut_have_openssl=yes 10396else 10397 nut_have_openssl=no 10398fi 10399 10400done 10401 10402 for ac_func in SSL_library_init 10403do : 10404 ac_fn_c_check_func "$LINENO" "SSL_library_init" "ac_cv_func_SSL_library_init" 10405if test "x$ac_cv_func_SSL_library_init" = xyes; then : 10406 cat >>confdefs.h <<_ACEOF 10407#define HAVE_SSL_LIBRARY_INIT 1 10408_ACEOF 10409 10410else 10411 nut_have_openssl=no 10412fi 10413done 10414 10415 10416 if test "${nut_have_openssl}" = "yes"; then 10417 nut_with_ssl="yes" 10418 nut_ssl_lib="(OpenSSL)" 10419 10420$as_echo "#define WITH_SSL 1" >>confdefs.h 10421 10422 10423$as_echo "#define WITH_OPENSSL 1" >>confdefs.h 10424 10425 LIBSSL_CFLAGS="${CFLAGS}" 10426 LIBSSL_LIBS="${LIBS}" 10427 fi 10428 10429 CFLAGS="${CFLAGS_ORIG}" 10430 LIBS="${LIBS_ORIG}" 10431fi 10432 10433 if test "${nut_have_openssl}" != "yes"; then 10434 as_fn_error $? "\"OpenSSL not found, required for SSL support\"" "$LINENO" 5 10435 fi 10436 else 10437 10438if test -z "${nut_have_libopenssl_seen}"; then 10439 nut_have_libopenssl_seen=yes 10440 10441 CFLAGS_ORIG="${CFLAGS}" 10442 LIBS_ORIG="${LIBS}" 10443 10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version via pkg-config" >&5 10445$as_echo_n "checking for OpenSSL version via pkg-config... " >&6; } 10446 OPENSSL_VERSION="`pkg-config --silence-errors --modversion openssl 2>/dev/null`" 10447 if test "$?" = "0" -a -n "${OPENSSL_VERSION}"; then 10448 CFLAGS="`pkg-config --silence-errors --cflags openssl 2>/dev/null`" 10449 LIBS="`pkg-config --silence-errors --libs openssl 2>/dev/null`" 10450 else 10451 OPENSSL_VERSION="none" 10452 CFLAGS="" 10453 LIBS="-lssl -lcrypto" 10454 fi 10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${OPENSSL_VERSION} found" >&5 10456$as_echo "${OPENSSL_VERSION} found" >&6; } 10457 10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL cflags" >&5 10459$as_echo_n "checking for OpenSSL cflags... " >&6; } 10460 10461# Check whether --with-openssl-includes was given. 10462if test "${with_openssl_includes+set}" = set; then : 10463 withval=$with_openssl_includes; 10464 case "${withval}" in 10465 yes|no) 10466 as_fn_error $? "invalid option --with(out)-openssl-includes - see docs/configure.txt" "$LINENO" 5 10467 ;; 10468 *) 10469 CFLAGS="${withval}" 10470 ;; 10471 esac 10472 10473fi 10474 10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CFLAGS}" >&5 10476$as_echo "${CFLAGS}" >&6; } 10477 10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ldflags" >&5 10479$as_echo_n "checking for OpenSSL ldflags... " >&6; } 10480 10481# Check whether --with-openssl-libs was given. 10482if test "${with_openssl_libs+set}" = set; then : 10483 withval=$with_openssl_libs; 10484 case "${withval}" in 10485 yes|no) 10486 as_fn_error $? "invalid option --with(out)-openssl-libs - see docs/configure.txt" "$LINENO" 5 10487 ;; 10488 *) 10489 LIBS="${withval}" 10490 ;; 10491 esac 10492 10493fi 10494 10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBS}" >&5 10496$as_echo "${LIBS}" >&6; } 10497 10498 for ac_header in openssl/ssl.h 10499do : 10500 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default 10501" 10502if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : 10503 cat >>confdefs.h <<_ACEOF 10504#define HAVE_OPENSSL_SSL_H 1 10505_ACEOF 10506 nut_have_openssl=yes 10507else 10508 nut_have_openssl=no 10509fi 10510 10511done 10512 10513 for ac_func in SSL_library_init 10514do : 10515 ac_fn_c_check_func "$LINENO" "SSL_library_init" "ac_cv_func_SSL_library_init" 10516if test "x$ac_cv_func_SSL_library_init" = xyes; then : 10517 cat >>confdefs.h <<_ACEOF 10518#define HAVE_SSL_LIBRARY_INIT 1 10519_ACEOF 10520 10521else 10522 nut_have_openssl=no 10523fi 10524done 10525 10526 10527 if test "${nut_have_openssl}" = "yes"; then 10528 nut_with_ssl="yes" 10529 nut_ssl_lib="(OpenSSL)" 10530 10531$as_echo "#define WITH_SSL 1" >>confdefs.h 10532 10533 10534$as_echo "#define WITH_OPENSSL 1" >>confdefs.h 10535 10536 LIBSSL_CFLAGS="${CFLAGS}" 10537 LIBSSL_LIBS="${LIBS}" 10538 fi 10539 10540 CFLAGS="${CFLAGS_ORIG}" 10541 LIBS="${LIBS_ORIG}" 10542fi 10543 10544 if test "${nut_have_openssl}" != "yes"; then 10545 10546if test -z "${nut_have_libnss_seen}"; then 10547 nut_have_libnss_seen=yes 10548 10549 CFLAGS_ORIG="${CFLAGS}" 10550 LIBS_ORIG="${LIBS}" 10551 10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla NSS version via pkg-config" >&5 10553$as_echo_n "checking for Mozilla NSS version via pkg-config... " >&6; } 10554 NSS_VERSION="`pkg-config --silence-errors --modversion nss 2>/dev/null`" 10555 if test "$?" = "0" -a -n "${NSS_VERSION}"; then 10556 CFLAGS="`pkg-config --silence-errors --cflags nss 2>/dev/null`" 10557 LIBS="`pkg-config --silence-errors --libs nss 2>/dev/null`" 10558 else 10559 NSS_VERSION="none" 10560 CFLAGS="" 10561 LIBS="-lnss3 -lnssutil3 -lsmime3 -lssl3 -lplds4 -lplc4 -lnspr4" 10562 fi 10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${NSS_VERSION} found" >&5 10564$as_echo "${NSS_VERSION} found" >&6; } 10565 10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla NSS cflags" >&5 10567$as_echo_n "checking for Mozilla NSS cflags... " >&6; } 10568 10569# Check whether --with-nss-includes was given. 10570if test "${with_nss_includes+set}" = set; then : 10571 withval=$with_nss_includes; 10572 case "${withval}" in 10573 yes|no) 10574 as_fn_error $? "invalid option --with(out)-nss-includes - see docs/configure.txt" "$LINENO" 5 10575 ;; 10576 *) 10577 CFLAGS="${withval}" 10578 ;; 10579 esac 10580 10581fi 10582 10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CFLAGS}" >&5 10584$as_echo "${CFLAGS}" >&6; } 10585 10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla NSS ldflags" >&5 10587$as_echo_n "checking for Mozilla NSS ldflags... " >&6; } 10588 10589# Check whether --with-nss-libs was given. 10590if test "${with_nss_libs+set}" = set; then : 10591 withval=$with_nss_libs; 10592 case "${withval}" in 10593 yes|no) 10594 as_fn_error $? "invalid option --with(out)-nss-libs - see docs/configure.txt" "$LINENO" 5 10595 ;; 10596 *) 10597 LIBS="${withval}" 10598 ;; 10599 esac 10600 10601fi 10602 10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBS}" >&5 10604$as_echo "${LIBS}" >&6; } 10605 10606 for ac_func in NSS_Init 10607do : 10608 ac_fn_c_check_func "$LINENO" "NSS_Init" "ac_cv_func_NSS_Init" 10609if test "x$ac_cv_func_NSS_Init" = xyes; then : 10610 cat >>confdefs.h <<_ACEOF 10611#define HAVE_NSS_INIT 1 10612_ACEOF 10613 nut_have_libnss=yes 10614else 10615 nut_have_libnss=no 10616fi 10617done 10618 10619 for ac_header in nss.h ssl.h 10620do : 10621 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10622ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 10623" 10624if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10625 cat >>confdefs.h <<_ACEOF 10626#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10627_ACEOF 10628 10629else 10630 nut_have_libnss=no 10631fi 10632 10633done 10634 10635 10636 if test "${nut_have_libnss}" = "yes"; then 10637 nut_with_ssl="yes" 10638 nut_ssl_lib="(Mozilla NSS)" 10639 10640$as_echo "#define WITH_SSL 1" >>confdefs.h 10641 10642 10643$as_echo "#define WITH_NSS 1" >>confdefs.h 10644 10645 LIBSSL_CFLAGS="${CFLAGS}" 10646 LIBSSL_LIBS="${LIBS}" 10647 fi 10648 10649 CFLAGS="${CFLAGS_ORIG}" 10650 LIBS="${LIBS_ORIG}" 10651fi 10652 10653 if test "${nut_have_libnss}" != "yes"; then 10654 if test "${nut_with_ssl}" = "yes"; then 10655 as_fn_error $? "\"Mozilla NSS and OpenSSL neither found, but are needed for the requested SSL support\"" "$LINENO" 5 10656 else 10657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Mozilla NSS and OpenSSL neither found, required for SSL support\"" >&5 10658$as_echo "$as_me: WARNING: \"Mozilla NSS and OpenSSL neither found, required for SSL support\"" >&2;} 10659 fi 10660 nut_with_ssl="no" 10661 else 10662 nut_with_nss="${nut_have_libnss}" 10663 fi 10664 else 10665 nut_with_openssl="${nut_have_openssl}" 10666 fi 10667 fi 10668fi 10669 10670 if test "${nut_with_nss}" = "yes"; then 10671 WITH_NSS_TRUE= 10672 WITH_NSS_FALSE='#' 10673else 10674 WITH_NSS_TRUE='#' 10675 WITH_NSS_FALSE= 10676fi 10677 10678 if test "${nut_with_openssl}" = "yes"; then 10679 WITH_OPENSSL_TRUE= 10680 WITH_OPENSSL_FALSE='#' 10681else 10682 WITH_OPENSSL_TRUE='#' 10683 WITH_OPENSSL_FALSE= 10684fi 10685 10686 10687 10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSL support" >&5 10689$as_echo_n "checking whether to enable SSL support... " >&6; } 10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${nut_with_ssl} ${nut_ssl_lib}" >&5 10691$as_echo "${nut_with_ssl} ${nut_ssl_lib}" >&6; } 10692 if test -z "${nut_report_feature_flag}"; then 10693 nut_report_feature_flag="1" 10694 ac_clean_files="${ac_clean_files} conf_nut_report_feature" 10695 echo > conf_nut_report_feature 10696 echo "Configuration summary:" >> conf_nut_report_feature 10697 echo "======================" >> conf_nut_report_feature 10698 fi 10699 echo "enable SSL support: ${nut_with_ssl} ${nut_ssl_lib}" >> conf_nut_report_feature 10700 10701 10702 if test "${nut_with_ssl}" = "yes"; then 10703 WITH_SSL_TRUE= 10704 WITH_SSL_FALSE='#' 10705else 10706 WITH_SSL_TRUE='#' 10707 WITH_SSL_FALSE= 10708fi 10709 10710 if test "${nut_with_ssl}" = "yes"; then 10711 10712cat >>confdefs.h <<_ACEOF 10713#define WITH_SSL 1 10714_ACEOF 10715 10716 fi 10717 10718 10719 10720 10721# Check whether --with-wrap was given. 10722if test "${with_wrap+set}" = set; then : 10723 withval=$with_wrap; nut_with_wrap="${withval}" 10724else 10725 nut_with_wrap="auto" 10726 10727fi 10728 10729 10730 10731if test "${nut_with_wrap}" != "no"; then 10732 10733if test -z "${nut_have_libwrap_seen}"; then 10734 nut_have_libwrap_seen=yes 10735 10736 LIBS_ORIG="${LIBS}" 10737 LIBS="" 10738 10739 for ac_header in tcpd.h 10740do : 10741 ac_fn_c_check_header_compile "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default 10742" 10743if test "x$ac_cv_header_tcpd_h" = xyes; then : 10744 cat >>confdefs.h <<_ACEOF 10745#define HAVE_TCPD_H 1 10746_ACEOF 10747 nut_have_libwrap=yes 10748else 10749 nut_have_libwrap=no 10750fi 10751 10752done 10753 10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing yp_get_default_domain" >&5 10755$as_echo_n "checking for library containing yp_get_default_domain... " >&6; } 10756if ${ac_cv_search_yp_get_default_domain+:} false; then : 10757 $as_echo_n "(cached) " >&6 10758else 10759 ac_func_search_save_LIBS=$LIBS 10760cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10761/* end confdefs.h. */ 10762 10763/* Override any GCC internal prototype to avoid an error. 10764 Use char because int might match the return type of a GCC 10765 builtin and then its argument prototype would still apply. */ 10766#ifdef __cplusplus 10767extern "C" 10768#endif 10769char yp_get_default_domain (); 10770int 10771main () 10772{ 10773return yp_get_default_domain (); 10774 ; 10775 return 0; 10776} 10777_ACEOF 10778for ac_lib in '' nsl; do 10779 if test -z "$ac_lib"; then 10780 ac_res="none required" 10781 else 10782 ac_res=-l$ac_lib 10783 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10784 fi 10785 if ac_fn_c_try_link "$LINENO"; then : 10786 ac_cv_search_yp_get_default_domain=$ac_res 10787fi 10788rm -f core conftest.err conftest.$ac_objext \ 10789 conftest$ac_exeext 10790 if ${ac_cv_search_yp_get_default_domain+:} false; then : 10791 break 10792fi 10793done 10794if ${ac_cv_search_yp_get_default_domain+:} false; then : 10795 10796else 10797 ac_cv_search_yp_get_default_domain=no 10798fi 10799rm conftest.$ac_ext 10800LIBS=$ac_func_search_save_LIBS 10801fi 10802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yp_get_default_domain" >&5 10803$as_echo "$ac_cv_search_yp_get_default_domain" >&6; } 10804ac_res=$ac_cv_search_yp_get_default_domain 10805if test "$ac_res" != no; then : 10806 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10807 10808else 10809 nut_have_libwrap=no 10810fi 10811 10812 10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing request_init" >&5 10814$as_echo_n "checking for library containing request_init... " >&6; } 10815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10816/* end confdefs.h. */ 10817 10818#include <tcpd.h> 10819int allow_severity = 0, deny_severity = 0; 10820 10821int 10822main () 10823{ 10824 request_init(0); 10825 ; 10826 return 0; 10827} 10828_ACEOF 10829if ac_fn_c_try_link "$LINENO"; then : 10830 10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none required" >&5 10832$as_echo "none required" >&6; } 10833 10834else 10835 10836 LIBS="${LIBS} -lwrap" 10837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10838/* end confdefs.h. */ 10839 10840#include <tcpd.h> 10841int allow_severity = 0, deny_severity = 0; 10842 10843int 10844main () 10845{ 10846 request_init(0); 10847 ; 10848 return 0; 10849} 10850_ACEOF 10851if ac_fn_c_try_link "$LINENO"; then : 10852 10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lwrap" >&5 10854$as_echo "-lwrap" >&6; } 10855 10856else 10857 10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10859$as_echo "no" >&6; } 10860 nut_have_libwrap=no 10861 10862fi 10863rm -f core conftest.err conftest.$ac_objext \ 10864 conftest$ac_exeext conftest.$ac_ext 10865 10866fi 10867rm -f core conftest.err conftest.$ac_objext \ 10868 conftest$ac_exeext conftest.$ac_ext 10869 10870 if test "${nut_have_libwrap}" = "yes"; then 10871 10872$as_echo "#define HAVE_WRAP 1" >>confdefs.h 10873 10874 LIBWRAP_CFLAGS="" 10875 LIBWRAP_LIBS="${LIBS}" 10876 fi 10877 10878 LIBS="${LIBS_ORIG}" 10879fi 10880 10881fi 10882 10883if test "${nut_with_wrap}" = "yes" -a "${nut_have_libwrap}" != "yes"; then 10884 as_fn_error $? "\"libwrap not found\"" "$LINENO" 5 10885fi 10886 10887if test "${nut_with_wrap}" != "no"; then 10888 nut_with_wrap="${nut_have_libwrap}" 10889fi 10890 10891 10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libwrap (tcp-wrappers) support" >&5 10893$as_echo_n "checking whether to enable libwrap (tcp-wrappers) support... " >&6; } 10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${nut_with_wrap} " >&5 10895$as_echo "${nut_with_wrap} " >&6; } 10896 if test -z "${nut_report_feature_flag}"; then 10897 nut_report_feature_flag="1" 10898 ac_clean_files="${ac_clean_files} conf_nut_report_feature" 10899 echo > conf_nut_report_feature 10900 echo "Configuration summary:" >> conf_nut_report_feature 10901 echo "======================" >> conf_nut_report_feature 10902 fi 10903 echo "enable libwrap (tcp-wrappers) support: ${nut_with_wrap} " >> conf_nut_report_feature 10904 10905 10906 if test "${nut_with_wrap}" = "yes"; then 10907 WITH_WRAP_TRUE= 10908 WITH_WRAP_FALSE='#' 10909else 10910 WITH_WRAP_TRUE='#' 10911 WITH_WRAP_FALSE= 10912fi 10913 10914 if test "${nut_with_wrap}" = "yes"; then 10915 10916cat >>confdefs.h <<_ACEOF 10917#define WITH_WRAP 1 10918_ACEOF 10919 10920 fi 10921 10922 10923 10924 10925 10926# Check whether --with-libltdl was given. 10927if test "${with_libltdl+set}" = set; then : 10928 withval=$with_libltdl; nut_with_libltdl="${withval}" 10929else 10930 nut_with_libltdl="auto" 10931 10932fi 10933 10934 10935 10936if test "${nut_with_libltdl}" != "no"; then 10937 10938if test -z "${nut_have_libltdl_seen}"; then 10939 nut_have_libltdl_seen=yes 10940 10941 LIBS_ORIG="${LIBS}" 10942 LIBS="" 10943 10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl cflags" >&5 10945$as_echo_n "checking for libltdl cflags... " >&6; } 10946 10947# Check whether --with-libltdl-includes was given. 10948if test "${with_libltdl_includes+set}" = set; then : 10949 withval=$with_libltdl_includes; 10950 case "${withval}" in 10951 yes|no) 10952 as_fn_error $? "invalid option --with(out)-libltdl-includes - see docs/configure.txt" "$LINENO" 5 10953 ;; 10954 *) 10955 CFLAGS="${withval}" 10956 ;; 10957 esac 10958 10959fi 10960 10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CFLAGS}" >&5 10962$as_echo "${CFLAGS}" >&6; } 10963 10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl ldflags" >&5 10965$as_echo_n "checking for libltdl ldflags... " >&6; } 10966 10967# Check whether --with-libltdl-libs was given. 10968if test "${with_libltdl_libs+set}" = set; then : 10969 withval=$with_libltdl_libs; 10970 case "${withval}" in 10971 yes|no) 10972 as_fn_error $? "invalid option --with(out)-libltdl-libs - see docs/configure.txt" "$LINENO" 5 10973 ;; 10974 *) 10975 LIBS="${withval}" 10976 ;; 10977 esac 10978 10979fi 10980 10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBS}" >&5 10982$as_echo "${LIBS}" >&6; } 10983 10984 for ac_header in ltdl.h 10985do : 10986 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default 10987" 10988if test "x$ac_cv_header_ltdl_h" = xyes; then : 10989 cat >>confdefs.h <<_ACEOF 10990#define HAVE_LTDL_H 1 10991_ACEOF 10992 nut_have_libltdl=yes 10993else 10994 nut_have_libltdl=no 10995fi 10996 10997done 10998 10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lt_dlinit" >&5 11000$as_echo_n "checking for library containing lt_dlinit... " >&6; } 11001if ${ac_cv_search_lt_dlinit+:} false; then : 11002 $as_echo_n "(cached) " >&6 11003else 11004 ac_func_search_save_LIBS=$LIBS 11005cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11006/* end confdefs.h. */ 11007 11008/* Override any GCC internal prototype to avoid an error. 11009 Use char because int might match the return type of a GCC 11010 builtin and then its argument prototype would still apply. */ 11011#ifdef __cplusplus 11012extern "C" 11013#endif 11014char lt_dlinit (); 11015int 11016main () 11017{ 11018return lt_dlinit (); 11019 ; 11020 return 0; 11021} 11022_ACEOF 11023for ac_lib in '' ltdl; do 11024 if test -z "$ac_lib"; then 11025 ac_res="none required" 11026 else 11027 ac_res=-l$ac_lib 11028 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11029 fi 11030 if ac_fn_c_try_link "$LINENO"; then : 11031 ac_cv_search_lt_dlinit=$ac_res 11032fi 11033rm -f core conftest.err conftest.$ac_objext \ 11034 conftest$ac_exeext 11035 if ${ac_cv_search_lt_dlinit+:} false; then : 11036 break 11037fi 11038done 11039if ${ac_cv_search_lt_dlinit+:} false; then : 11040 11041else 11042 ac_cv_search_lt_dlinit=no 11043fi 11044rm conftest.$ac_ext 11045LIBS=$ac_func_search_save_LIBS 11046fi 11047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lt_dlinit" >&5 11048$as_echo "$ac_cv_search_lt_dlinit" >&6; } 11049ac_res=$ac_cv_search_lt_dlinit 11050if test "$ac_res" != no; then : 11051 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11052 11053else 11054 nut_have_libltdl=no 11055fi 11056 11057 11058 if test "${nut_have_libltdl}" = "yes"; then 11059 11060$as_echo "#define HAVE_LIBLTDL 1" >>confdefs.h 11061 11062 LIBLTDL_CFLAGS="" 11063 LIBLTDL_LIBS="${LIBS}" 11064 fi 11065 11066 LIBS="${LIBS_ORIG}" 11067fi 11068 11069fi 11070 11071if test "${nut_with_libltdl}" = "yes" -a "${nut_have_libltdl}" != "yes"; then 11072 as_fn_error $? "\"libltdl not found\"" "$LINENO" 5 11073fi 11074 11075if test "${nut_with_libltdl}" != "no"; then 11076 nut_with_libltdl="${nut_have_libltdl}" 11077fi 11078 11079 11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libltdl (Libtool dlopen abstraction) support" >&5 11081$as_echo_n "checking whether to enable libltdl (Libtool dlopen abstraction) support... " >&6; } 11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${nut_with_libltdl} " >&5 11083$as_echo "${nut_with_libltdl} " >&6; } 11084 if test -z "${nut_report_feature_flag}"; then 11085 nut_report_feature_flag="1" 11086 ac_clean_files="${ac_clean_files} conf_nut_report_feature" 11087 echo > conf_nut_report_feature 11088 echo "Configuration summary:" >> conf_nut_report_feature 11089 echo "======================" >> conf_nut_report_feature 11090 fi 11091 echo "enable libltdl (Libtool dlopen abstraction) support: ${nut_with_libltdl} " >> conf_nut_report_feature 11092 11093 11094 if test "${nut_with_libltdl}" = "yes"; then 11095 WITH_LIBLTDL_TRUE= 11096 WITH_LIBLTDL_FALSE='#' 11097else 11098 WITH_LIBLTDL_TRUE='#' 11099 WITH_LIBLTDL_FALSE= 11100fi 11101 11102 if test "${nut_with_libltdl}" = "yes"; then 11103 11104cat >>confdefs.h <<_ACEOF 11105#define WITH_LIBLTDL 1 11106_ACEOF 11107 11108 fi 11109 11110 11111 if test -z "${nut_report_feature_flag}"; then 11112 nut_report_feature_flag="1" 11113 ac_clean_files="${ac_clean_files} conf_nut_report_feature" 11114 echo > conf_nut_report_feature 11115 echo "Configuration summary:" >> conf_nut_report_feature 11116 echo "======================" >> conf_nut_report_feature 11117 fi 11118 echo "build nut-scanner: ${nut_with_libltdl}" >> conf_nut_report_feature 11119 11120 11121 11122 11123# Check whether --with-cgi was given. 11124if test "${with_cgi+set}" = set; then : 11125 withval=$with_cgi; nut_with_cgi="${withval}" 11126else 11127 nut_with_cgi="no" 11128 11129fi 11130 11131 11132 11133if test "${nut_with_cgi}" != "no"; then 11134 11135if test -z "${nut_have_libgd_seen}"; then 11136 nut_have_libgd_seen=yes 11137 11138 CFLAGS_ORIG="${CFLAGS}" 11139 LDFLAGS_ORIG="${LDFLAGS}" 11140 LIBS_ORIG="${LIBS}" 11141 11142 CFLAGS="" 11143 LDFLAGS="-L/usr/X11R6/lib" 11144 LIBS="-lgd -lpng -lz -ljpeg -lfreetype -lm -lXpm -lX11" 11145 11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gd version via gdlib-config" >&5 11147$as_echo_n "checking for gd version via gdlib-config... " >&6; } 11148 GD_VERSION=`gdlib-config --version 2>/dev/null` 11149 if test "$?" != "0" -o -z "${GD_VERSION}"; then 11150 GD_VERSION="none" 11151 fi 11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GD_VERSION} found" >&5 11153$as_echo "${GD_VERSION} found" >&6; } 11154 11155 case "${GD_VERSION}" in 11156 none) 11157 ;; 11158 2.0.5 | 2.0.6 | 2.0.7) 11159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gd ${GD_VERSION} detected, unable to use gdlib-config script" >&5 11160$as_echo "$as_me: WARNING: gd ${GD_VERSION} detected, unable to use gdlib-config script" >&2;} 11161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If gd detection fails, upgrade gd or use --with-gd-includes and --with-gd-libs" >&5 11162$as_echo "$as_me: WARNING: If gd detection fails, upgrade gd or use --with-gd-includes and --with-gd-libs" >&2;} 11163 ;; 11164 *) 11165 CFLAGS="`gdlib-config --includes 2>/dev/null`" 11166 LDFLAGS="`gdlib-config --ldflags 2>/dev/null`" 11167 LIBS="`gdlib-config --libs 2>/dev/null`" 11168 ;; 11169 esac 11170 11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gd include flags" >&5 11172$as_echo_n "checking for gd include flags... " >&6; } 11173 11174# Check whether --with-gd-includes was given. 11175if test "${with_gd_includes+set}" = set; then : 11176 withval=$with_gd_includes; 11177 case "${withval}" in 11178 yes|no) 11179 as_fn_error $? "invalid option --with(out)-gd-includes - see docs/configure.txt" "$LINENO" 5 11180 ;; 11181 *) 11182 CFLAGS="${withval}" 11183 ;; 11184 esac 11185 11186fi 11187 11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CFLAGS}" >&5 11189$as_echo "${CFLAGS}" >&6; } 11190 11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gd library flags" >&5 11192$as_echo_n "checking for gd library flags... " >&6; } 11193 11194# Check whether --with-gd-libs was given. 11195if test "${with_gd_libs+set}" = set; then : 11196 withval=$with_gd_libs; 11197 case "${withval}" in 11198 yes|no) 11199 as_fn_error $? "invalid option --with(out)-gd-libs - see docs/configure.txt" "$LINENO" 5 11200 ;; 11201 *) 11202 LDFLAGS="${withval}" 11203 LIBS="" 11204 ;; 11205 esac 11206 11207fi 11208 11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LDFLAGS} ${LIBS}" >&5 11210$as_echo "${LDFLAGS} ${LIBS}" >&6; } 11211 11212 for ac_header in gd.h gdfontmb.h 11213do : 11214 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11215ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 11216" 11217if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11218 cat >>confdefs.h <<_ACEOF 11219#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11220_ACEOF 11221 nut_have_libgd=yes 11222else 11223 nut_have_libgd=no 11224fi 11225 11226done 11227 11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gdImagePng" >&5 11229$as_echo_n "checking for library containing gdImagePng... " >&6; } 11230if ${ac_cv_search_gdImagePng+:} false; then : 11231 $as_echo_n "(cached) " >&6 11232else 11233 ac_func_search_save_LIBS=$LIBS 11234cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11235/* end confdefs.h. */ 11236 11237/* Override any GCC internal prototype to avoid an error. 11238 Use char because int might match the return type of a GCC 11239 builtin and then its argument prototype would still apply. */ 11240#ifdef __cplusplus 11241extern "C" 11242#endif 11243char gdImagePng (); 11244int 11245main () 11246{ 11247return gdImagePng (); 11248 ; 11249 return 0; 11250} 11251_ACEOF 11252for ac_lib in '' gd; do 11253 if test -z "$ac_lib"; then 11254 ac_res="none required" 11255 else 11256 ac_res=-l$ac_lib 11257 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11258 fi 11259 if ac_fn_c_try_link "$LINENO"; then : 11260 ac_cv_search_gdImagePng=$ac_res 11261fi 11262rm -f core conftest.err conftest.$ac_objext \ 11263 conftest$ac_exeext 11264 if ${ac_cv_search_gdImagePng+:} false; then : 11265 break 11266fi 11267done 11268if ${ac_cv_search_gdImagePng+:} false; then : 11269 11270else 11271 ac_cv_search_gdImagePng=no 11272fi 11273rm conftest.$ac_ext 11274LIBS=$ac_func_search_save_LIBS 11275fi 11276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gdImagePng" >&5 11277$as_echo "$ac_cv_search_gdImagePng" >&6; } 11278ac_res=$ac_cv_search_gdImagePng 11279if test "$ac_res" != no; then : 11280 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11281 11282else 11283 nut_have_libgd=no 11284fi 11285 11286 11287 if test "${nut_have_libgd}" = "yes"; then 11288 11289$as_echo "#define HAVE_LIBGD 1" >>confdefs.h 11290 11291 LIBGD_CFLAGS="${CFLAGS}" 11292 LIBGD_LDFLAGS="${LDFLAGS} ${LIBS}" 11293 fi 11294 11295 CFLAGS="${CFLAGS_ORIG}" 11296 LDFLAGS="${LDFLAGS_ORIG}" 11297 LIBS="${LIBS_ORIG}" 11298fi 11299 11300fi 11301 11302if test "${nut_with_cgi}" = "yes" -a "${nut_have_libgd}" != "yes"; then 11303 as_fn_error $? "libgd not found, required for CGI build" "$LINENO" 5 11304fi 11305 11306if test "${nut_with_cgi}" != "no"; then 11307 nut_with_cgi="${nut_have_libgd}" 11308fi 11309 11310 11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build CGI programs" >&5 11312$as_echo_n "checking whether to build CGI programs... " >&6; } 11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${nut_with_cgi} " >&5 11314$as_echo "${nut_with_cgi} " >&6; } 11315 if test -z "${nut_report_feature_flag}"; then 11316 nut_report_feature_flag="1" 11317 ac_clean_files="${ac_clean_files} conf_nut_report_feature" 11318 echo > conf_nut_report_feature 11319 echo "Configuration summary:" >> conf_nut_report_feature 11320 echo "======================" >> conf_nut_report_feature 11321 fi 11322 echo "build CGI programs: ${nut_with_cgi} " >> conf_nut_report_feature 11323 11324 11325 if test "${nut_with_cgi}" = "yes"; then 11326 WITH_CGI_TRUE= 11327 WITH_CGI_FALSE='#' 11328else 11329 WITH_CGI_TRUE='#' 11330 WITH_CGI_FALSE= 11331fi 11332 11333 if test "${nut_with_cgi}" = "yes"; then 11334 11335cat >>confdefs.h <<_ACEOF 11336#define WITH_CGI 1 11337_ACEOF 11338 11339 fi 11340 11341 11342 11343 11344 11345 11346if test -z "${nut_have_asciidoc_seen}"; then 11347 nut_have_asciidoc_seen=yes 11348 11349 for ac_prog in asciidoc 11350do 11351 # Extract the first word of "$ac_prog", so it can be a program name with args. 11352set dummy $ac_prog; ac_word=$2 11353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11354$as_echo_n "checking for $ac_word... " >&6; } 11355if ${ac_cv_path_ASCIIDOC+:} false; then : 11356 $as_echo_n "(cached) " >&6 11357else 11358 case $ASCIIDOC in 11359 [\\/]* | ?:[\\/]*) 11360 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path. 11361 ;; 11362 *) 11363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11364for as_dir in $PATH 11365do 11366 IFS=$as_save_IFS 11367 test -z "$as_dir" && as_dir=. 11368 for ac_exec_ext in '' $ac_executable_extensions; do 11369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11370 ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext" 11371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11372 break 2 11373 fi 11374done 11375 done 11376IFS=$as_save_IFS 11377 11378 ;; 11379esac 11380fi 11381ASCIIDOC=$ac_cv_path_ASCIIDOC 11382if test -n "$ASCIIDOC"; then 11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5 11384$as_echo "$ASCIIDOC" >&6; } 11385else 11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11387$as_echo "no" >&6; } 11388fi 11389 11390 11391 test -n "$ASCIIDOC" && break 11392done 11393 11394 if test -n "${ASCIIDOC}"; then 11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asciiDoc version" >&5 11396$as_echo_n "checking for asciiDoc version... " >&6; } 11397 ASCIIDOC_VERSION="`${ASCIIDOC} --version 2>/dev/null`" 11398 ASCIIDOC_VERSION="${ASCIIDOC_VERSION##* }" 11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ASCIIDOC_VERSION} found" >&5 11400$as_echo "${ASCIIDOC_VERSION} found" >&6; } 11401 fi 11402 11403 for ac_prog in a2x 11404do 11405 # Extract the first word of "$ac_prog", so it can be a program name with args. 11406set dummy $ac_prog; ac_word=$2 11407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11408$as_echo_n "checking for $ac_word... " >&6; } 11409if ${ac_cv_path_A2X+:} false; then : 11410 $as_echo_n "(cached) " >&6 11411else 11412 case $A2X in 11413 [\\/]* | ?:[\\/]*) 11414 ac_cv_path_A2X="$A2X" # Let the user override the test with a path. 11415 ;; 11416 *) 11417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11418for as_dir in $PATH 11419do 11420 IFS=$as_save_IFS 11421 test -z "$as_dir" && as_dir=. 11422 for ac_exec_ext in '' $ac_executable_extensions; do 11423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11424 ac_cv_path_A2X="$as_dir/$ac_word$ac_exec_ext" 11425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11426 break 2 11427 fi 11428done 11429 done 11430IFS=$as_save_IFS 11431 11432 ;; 11433esac 11434fi 11435A2X=$ac_cv_path_A2X 11436if test -n "$A2X"; then 11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $A2X" >&5 11438$as_echo "$A2X" >&6; } 11439else 11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11441$as_echo "no" >&6; } 11442fi 11443 11444 11445 test -n "$A2X" && break 11446done 11447 11448 if test -n "${A2X}"; then 11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a2x version" >&5 11450$as_echo_n "checking for a2x version... " >&6; } 11451 A2X_VERSION="`${A2X} --version 2>/dev/null`" 11452 A2X_VERSION="${A2X_VERSION##* }" 11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${A2X_VERSION} found" >&5 11454$as_echo "${A2X_VERSION} found" >&6; } 11455 fi 11456 11457 for ac_prog in dblatex 11458do 11459 # Extract the first word of "$ac_prog", so it can be a program name with args. 11460set dummy $ac_prog; ac_word=$2 11461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11462$as_echo_n "checking for $ac_word... " >&6; } 11463if ${ac_cv_path_DBLATEX+:} false; then : 11464 $as_echo_n "(cached) " >&6 11465else 11466 case $DBLATEX in 11467 [\\/]* | ?:[\\/]*) 11468 ac_cv_path_DBLATEX="$DBLATEX" # Let the user override the test with a path. 11469 ;; 11470 *) 11471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11472for as_dir in $PATH 11473do 11474 IFS=$as_save_IFS 11475 test -z "$as_dir" && as_dir=. 11476 for ac_exec_ext in '' $ac_executable_extensions; do 11477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11478 ac_cv_path_DBLATEX="$as_dir/$ac_word$ac_exec_ext" 11479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11480 break 2 11481 fi 11482done 11483 done 11484IFS=$as_save_IFS 11485 11486 ;; 11487esac 11488fi 11489DBLATEX=$ac_cv_path_DBLATEX 11490if test -n "$DBLATEX"; then 11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5 11492$as_echo "$DBLATEX" >&6; } 11493else 11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11495$as_echo "no" >&6; } 11496fi 11497 11498 11499 test -n "$DBLATEX" && break 11500done 11501 11502 if test -n "${DBLATEX}"; then 11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dblatex version" >&5 11504$as_echo_n "checking for dblatex version... " >&6; } 11505 DBLATEX_VERSION="`${DBLATEX} --version 2>/dev/null`" 11506 DBLATEX_VERSION="${DBLATEX_VERSION##* }" 11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${DBLATEX_VERSION} found" >&5 11508$as_echo "${DBLATEX_VERSION} found" >&6; } 11509 fi 11510 11511 for ac_prog in xsltproc 11512do 11513 # Extract the first word of "$ac_prog", so it can be a program name with args. 11514set dummy $ac_prog; ac_word=$2 11515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11516$as_echo_n "checking for $ac_word... " >&6; } 11517if ${ac_cv_path_XSLTPROC+:} false; then : 11518 $as_echo_n "(cached) " >&6 11519else 11520 case $XSLTPROC in 11521 [\\/]* | ?:[\\/]*) 11522 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 11523 ;; 11524 *) 11525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11526for as_dir in $PATH 11527do 11528 IFS=$as_save_IFS 11529 test -z "$as_dir" && as_dir=. 11530 for ac_exec_ext in '' $ac_executable_extensions; do 11531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11532 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 11533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11534 break 2 11535 fi 11536done 11537 done 11538IFS=$as_save_IFS 11539 11540 ;; 11541esac 11542fi 11543XSLTPROC=$ac_cv_path_XSLTPROC 11544if test -n "$XSLTPROC"; then 11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 11546$as_echo "$XSLTPROC" >&6; } 11547else 11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11549$as_echo "no" >&6; } 11550fi 11551 11552 11553 test -n "$XSLTPROC" && break 11554done 11555 11556 if test -n "${XSLTPROC}"; then 11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsltproc version" >&5 11558$as_echo_n "checking for xsltproc version... " >&6; } 11559 XSLTPROC_VERSION="`${XSLTPROC} --version 2>/dev/null`" 11560 XSLTPROC_VERSION="${XSLTPROC_VERSION##* }" 11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${XSLTPROC_VERSION} found" >&5 11562$as_echo "${XSLTPROC_VERSION} found" >&6; } 11563 fi 11564 11565 for ac_prog in xmllint 11566do 11567 # Extract the first word of "$ac_prog", so it can be a program name with args. 11568set dummy $ac_prog; ac_word=$2 11569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11570$as_echo_n "checking for $ac_word... " >&6; } 11571if ${ac_cv_path_XMLLINT+:} false; then : 11572 $as_echo_n "(cached) " >&6 11573else 11574 case $XMLLINT in 11575 [\\/]* | ?:[\\/]*) 11576 ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path. 11577 ;; 11578 *) 11579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11580for as_dir in $PATH 11581do 11582 IFS=$as_save_IFS 11583 test -z "$as_dir" && as_dir=. 11584 for ac_exec_ext in '' $ac_executable_extensions; do 11585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11586 ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext" 11587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11588 break 2 11589 fi 11590done 11591 done 11592IFS=$as_save_IFS 11593 11594 ;; 11595esac 11596fi 11597XMLLINT=$ac_cv_path_XMLLINT 11598if test -n "$XMLLINT"; then 11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5 11600$as_echo "$XMLLINT" >&6; } 11601else 11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11603$as_echo "no" >&6; } 11604fi 11605 11606 11607 test -n "$XMLLINT" && break 11608done 11609 11610 if test -n "${XMLLINT}"; then 11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmllint version" >&5 11612$as_echo_n "checking for xmllint version... " >&6; } 11613 XMLLINT_VERSION="`${XMLLINT} --version 2>/dev/null`" 11614 XMLLINT_VERSION="${XMLLINT_VERSION##* }" 11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${XMLLINT_VERSION} found" >&5 11616$as_echo "${XMLLINT_VERSION} found" >&6; } 11617 fi 11618 11619 for ac_prog in source-highlight 11620do 11621 # Extract the first word of "$ac_prog", so it can be a program name with args. 11622set dummy $ac_prog; ac_word=$2 11623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11624$as_echo_n "checking for $ac_word... " >&6; } 11625if ${ac_cv_path_SOURCE_HIGHLIGHT+:} false; then : 11626 $as_echo_n "(cached) " >&6 11627else 11628 case $SOURCE_HIGHLIGHT in 11629 [\\/]* | ?:[\\/]*) 11630 ac_cv_path_SOURCE_HIGHLIGHT="$SOURCE_HIGHLIGHT" # Let the user override the test with a path. 11631 ;; 11632 *) 11633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11634for as_dir in $PATH 11635do 11636 IFS=$as_save_IFS 11637 test -z "$as_dir" && as_dir=. 11638 for ac_exec_ext in '' $ac_executable_extensions; do 11639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11640 ac_cv_path_SOURCE_HIGHLIGHT="$as_dir/$ac_word$ac_exec_ext" 11641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11642 break 2 11643 fi 11644done 11645 done 11646IFS=$as_save_IFS 11647 11648 ;; 11649esac 11650fi 11651SOURCE_HIGHLIGHT=$ac_cv_path_SOURCE_HIGHLIGHT 11652if test -n "$SOURCE_HIGHLIGHT"; then 11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOURCE_HIGHLIGHT" >&5 11654$as_echo "$SOURCE_HIGHLIGHT" >&6; } 11655else 11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11657$as_echo "no" >&6; } 11658fi 11659 11660 11661 test -n "$SOURCE_HIGHLIGHT" && break 11662done 11663 11664 11665fi 11666 11667 11668case "${nut_with_doc}" in 11669 yes|all|auto) 11670 nut_doc_build_list="html-single html-chunked pdf" 11671 ;; 11672 no) 11673 nut_doc_build_list="" 11674 ;; 11675 *) 11676 nut_doc_build_list="`echo ${nut_with_doc} | sed 's/,/ /g'`" 11677 ;; 11678esac 11679 11680for nut_doc_build_target in ${nut_doc_build_list}; do 11681 case "${nut_doc_build_target}" in 11682 html-single) 11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if asciidoc version can build ${nut_doc_build_target} (minimum required 8.6.3)" >&5 11684$as_echo_n "checking if asciidoc version can build ${nut_doc_build_target} (minimum required 8.6.3)... " >&6; } 11685 11686 11687 11688 # Used to indicate true or false condition 11689 ax_compare_version=false 11690 11691 # Convert the two version strings to be compared into a format that 11692 # allows a simple string comparison. The end result is that a version 11693 # string of the form 1.12.5-r617 will be converted to the form 11694 # 0001001200050617. In other words, each number is zero padded to four 11695 # digits, and non digits are removed. 11696 11697 ax_compare_version_A=`echo "${ASCIIDOC_VERSION}" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 11698 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 11699 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 11700 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 11701 -e 's/[^0-9]//g'` 11702 11703 11704 ax_compare_version_B=`echo "8.6.3" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 11705 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 11706 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 11707 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 11708 -e 's/[^0-9]//g'` 11709 11710 11711 ax_compare_version=`echo "x$ax_compare_version_A 11712x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"` 11713 11714 11715 11716 if test "$ax_compare_version" = "true" ; then 11717 11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11719$as_echo "yes" >&6; } 11720 DOC_BUILD_LIST="${DOC_BUILD_LIST} ${nut_doc_build_target}" 11721 11722 else 11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11724$as_echo "no" >&6; } 11725 DOC_NOBUILD_LIST="${DOC_NOBUILD_LIST} ${nut_doc_build_target}" 11726 11727 fi 11728 11729 ;; 11730 11731 html-chunked) 11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if a2x version can build ${nut_doc_build_target} (minimum required 8.6.3)" >&5 11733$as_echo_n "checking if a2x version can build ${nut_doc_build_target} (minimum required 8.6.3)... " >&6; } 11734 11735 11736 11737 # Used to indicate true or false condition 11738 ax_compare_version=false 11739 11740 # Convert the two version strings to be compared into a format that 11741 # allows a simple string comparison. The end result is that a version 11742 # string of the form 1.12.5-r617 will be converted to the form 11743 # 0001001200050617. In other words, each number is zero padded to four 11744 # digits, and non digits are removed. 11745 11746 ax_compare_version_A=`echo "${A2X_VERSION}" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 11747 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 11748 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 11749 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 11750 -e 's/[^0-9]//g'` 11751 11752 11753 ax_compare_version_B=`echo "8.6.3" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 11754 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 11755 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 11756 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 11757 -e 's/[^0-9]//g'` 11758 11759 11760 ax_compare_version=`echo "x$ax_compare_version_A 11761x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"` 11762 11763 11764 11765 if test "$ax_compare_version" = "true" ; then 11766 11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11768$as_echo "yes" >&6; } 11769 DOC_BUILD_LIST="${DOC_BUILD_LIST} ${nut_doc_build_target}" 11770 11771 else 11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11773$as_echo "no" >&6; } 11774 DOC_NOBUILD_LIST="${DOC_NOBUILD_LIST} ${nut_doc_build_target}" 11775 11776 fi 11777 11778 ;; 11779 11780 pdf) 11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dblatex version can build ${nut_doc_build_target} (minimum required 0.2.5)" >&5 11782$as_echo_n "checking if dblatex version can build ${nut_doc_build_target} (minimum required 0.2.5)... " >&6; } 11783 11784 11785 11786 # Used to indicate true or false condition 11787 ax_compare_version=false 11788 11789 # Convert the two version strings to be compared into a format that 11790 # allows a simple string comparison. The end result is that a version 11791 # string of the form 1.12.5-r617 will be converted to the form 11792 # 0001001200050617. In other words, each number is zero padded to four 11793 # digits, and non digits are removed. 11794 11795 ax_compare_version_A=`echo "${DBLATEX_VERSION}" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 11796 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 11797 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 11798 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 11799 -e 's/[^0-9]//g'` 11800 11801 11802 ax_compare_version_B=`echo "0.2.5" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 11803 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 11804 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 11805 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 11806 -e 's/[^0-9]//g'` 11807 11808 11809 ax_compare_version=`echo "x$ax_compare_version_A 11810x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"` 11811 11812 11813 11814 if test "$ax_compare_version" = "true" ; then 11815 11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11817$as_echo "yes" >&6; } 11818 DOC_BUILD_LIST="${DOC_BUILD_LIST} ${nut_doc_build_target}" 11819 11820 else 11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11822$as_echo "no" >&6; } 11823 DOC_NOBUILD_LIST="${DOC_NOBUILD_LIST} ${nut_doc_build_target}" 11824 11825 fi 11826 11827 ;; 11828 esac 11829done 11830 11831case "${nut_with_doc}" in 11832auto) 11833 if test -n "${DOC_BUILD_LIST}"; then 11834 nut_with_doc="yes" 11835 else 11836 nut_with_doc="no" 11837 fi 11838 ;; 11839no) 11840 ;; 11841*) 11842 if test -z "${DOC_NOBUILD_LIST}"; then 11843 nut_with_doc="yes" 11844 else 11845 as_fn_error $? "\"Unable to build ${DOC_NOBUILD_LIST} documentation (check for 'no' results above)\"" "$LINENO" 5 11846 fi 11847 ;; 11848esac 11849 11850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if asciidoc version can build manpages (minimum required 8.6.3)" >&5 11851$as_echo_n "checking if asciidoc version can build manpages (minimum required 8.6.3)... " >&6; } 11852 11853 11854 11855 # Used to indicate true or false condition 11856 ax_compare_version=false 11857 11858 # Convert the two version strings to be compared into a format that 11859 # allows a simple string comparison. The end result is that a version 11860 # string of the form 1.12.5-r617 will be converted to the form 11861 # 0001001200050617. In other words, each number is zero padded to four 11862 # digits, and non digits are removed. 11863 11864 ax_compare_version_A=`echo "${ASCIIDOC_VERSION}" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 11865 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 11866 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 11867 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 11868 -e 's/[^0-9]//g'` 11869 11870 11871 ax_compare_version_B=`echo "8.6.3" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 11872 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 11873 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 11874 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 11875 -e 's/[^0-9]//g'` 11876 11877 11878 ax_compare_version=`echo "x$ax_compare_version_A 11879x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"` 11880 11881 11882 11883 if test "$ax_compare_version" = "true" ; then 11884 11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11886$as_echo "yes" >&6; } 11887 nut_have_asciidoc="yes" 11888 11889 else 11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11891$as_echo "no" >&6; } 11892 nut_have_asciidoc="no" 11893 11894 fi 11895 11896 11897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if a2x version can build manpages (minimum required 8.6.3)" >&5 11898$as_echo_n "checking if a2x version can build manpages (minimum required 8.6.3)... " >&6; } 11899 11900 11901 11902 # Used to indicate true or false condition 11903 ax_compare_version=false 11904 11905 # Convert the two version strings to be compared into a format that 11906 # allows a simple string comparison. The end result is that a version 11907 # string of the form 1.12.5-r617 will be converted to the form 11908 # 0001001200050617. In other words, each number is zero padded to four 11909 # digits, and non digits are removed. 11910 11911 ax_compare_version_A=`echo "${A2X_VERSION}" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 11912 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 11913 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 11914 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 11915 -e 's/[^0-9]//g'` 11916 11917 11918 ax_compare_version_B=`echo "8.6.3" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 11919 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 11920 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 11921 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 11922 -e 's/[^0-9]//g'` 11923 11924 11925 ax_compare_version=`echo "x$ax_compare_version_A 11926x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"` 11927 11928 11929 11930 if test "$ax_compare_version" = "true" ; then 11931 11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11933$as_echo "yes" >&6; } 11934 11935 else 11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11937$as_echo "no" >&6; } 11938 nut_have_asciidoc="no" 11939 11940 fi 11941 11942 11943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if xsltproc is present (mandatory for man page regeneration)" >&5 11944$as_echo_n "checking if xsltproc is present (mandatory for man page regeneration)... " >&6; } 11945if test -n "${XSLTPROC}"; then 11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11947$as_echo "yes" >&6; } 11948else 11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11950$as_echo "no" >&6; } 11951 nut_have_asciidoc="no" 11952fi 11953 11954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if xmllint is present (mandatory for man page regeneration)" >&5 11955$as_echo_n "checking if xmllint is present (mandatory for man page regeneration)... " >&6; } 11956if test -n "${XMLLINT}"; then 11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11958$as_echo "yes" >&6; } 11959else 11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11961$as_echo "no" >&6; } 11962 nut_have_asciidoc="no" 11963fi 11964 11965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if source-highlight is present (preferable for documentation generation)" >&5 11966$as_echo_n "checking if source-highlight is present (preferable for documentation generation)... " >&6; } 11967if test -n "${SOURCE_HIGHLIGHT}"; then 11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11969$as_echo "yes" >&6; } 11970else 11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11972$as_echo "no" >&6; } 11973fi 11974 11975 11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build and install documentation" >&5 11977$as_echo_n "checking whether to build and install documentation... " >&6; } 11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${nut_with_doc} " >&5 11979$as_echo "${nut_with_doc} " >&6; } 11980 if test -z "${nut_report_feature_flag}"; then 11981 nut_report_feature_flag="1" 11982 ac_clean_files="${ac_clean_files} conf_nut_report_feature" 11983 echo > conf_nut_report_feature 11984 echo "Configuration summary:" >> conf_nut_report_feature 11985 echo "======================" >> conf_nut_report_feature 11986 fi 11987 echo "build and install documentation: ${nut_with_doc} " >> conf_nut_report_feature 11988 11989 11990 if test "${nut_with_doc}" = "yes"; then 11991 WITH_ASCIIDOC_TRUE= 11992 WITH_ASCIIDOC_FALSE='#' 11993else 11994 WITH_ASCIIDOC_TRUE='#' 11995 WITH_ASCIIDOC_FALSE= 11996fi 11997 11998 if test "${nut_with_doc}" = "yes"; then 11999 12000cat >>confdefs.h <<_ACEOF 12001#define WITH_ASCIIDOC 1 12002_ACEOF 12003 12004 fi 12005 12006 12007 if test "${nut_have_asciidoc}" = "yes"; then 12008 HAVE_ASCIIDOC_TRUE= 12009 HAVE_ASCIIDOC_FALSE='#' 12010else 12011 HAVE_ASCIIDOC_TRUE='#' 12012 HAVE_ASCIIDOC_FALSE= 12013fi 12014 12015 12016if test "${nut_with_doc}" = "yes"; then 12017 if test -z "${nut_report_feature_flag}"; then 12018 nut_report_feature_flag="1" 12019 ac_clean_files="${ac_clean_files} conf_nut_report_feature" 12020 echo > conf_nut_report_feature 12021 echo "Configuration summary:" >> conf_nut_report_feature 12022 echo "======================" >> conf_nut_report_feature 12023 fi 12024 echo "only build specific documentation format: ${DOC_BUILD_LIST}" >> conf_nut_report_feature 12025 12026fi 12027 12028 12029case `pwd` in 12030 *\ * | *\ *) 12031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 12032$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 12033esac 12034 12035 12036 12037macro_version='2.4.2' 12038macro_revision='1.3337' 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052ltmain="$ac_aux_dir/ltmain.sh" 12053 12054# Backslashify metacharacters that are still active within 12055# double-quoted strings. 12056sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 12057 12058# Same as above, but do not quote variable references. 12059double_quote_subst='s/\(["`\\]\)/\\\1/g' 12060 12061# Sed substitution to delay expansion of an escaped shell variable in a 12062# double_quote_subst'ed string. 12063delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 12064 12065# Sed substitution to delay expansion of an escaped single quote. 12066delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 12067 12068# Sed substitution to avoid accidental globbing in evaled expressions 12069no_glob_subst='s/\*/\\\*/g' 12070 12071ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12072ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 12073ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 12074 12075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 12076$as_echo_n "checking how to print strings... " >&6; } 12077# Test print first, because it will be a builtin if present. 12078if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 12079 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 12080 ECHO='print -r --' 12081elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 12082 ECHO='printf %s\n' 12083else 12084 # Use this function as a fallback that always works. 12085 func_fallback_echo () 12086 { 12087 eval 'cat <<_LTECHO_EOF 12088$1 12089_LTECHO_EOF' 12090 } 12091 ECHO='func_fallback_echo' 12092fi 12093 12094# func_echo_all arg... 12095# Invoke $ECHO with all args, space-separated. 12096func_echo_all () 12097{ 12098 $ECHO "" 12099} 12100 12101case "$ECHO" in 12102 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 12103$as_echo "printf" >&6; } ;; 12104 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 12105$as_echo "print -r" >&6; } ;; 12106 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 12107$as_echo "cat" >&6; } ;; 12108esac 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12124$as_echo_n "checking for a sed that does not truncate output... " >&6; } 12125if ${ac_cv_path_SED+:} false; then : 12126 $as_echo_n "(cached) " >&6 12127else 12128 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12129 for ac_i in 1 2 3 4 5 6 7; do 12130 ac_script="$ac_script$as_nl$ac_script" 12131 done 12132 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12133 { ac_script=; unset ac_script;} 12134 if test -z "$SED"; then 12135 ac_path_SED_found=false 12136 # Loop through the user's path and test for each of PROGNAME-LIST 12137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12138for as_dir in $PATH 12139do 12140 IFS=$as_save_IFS 12141 test -z "$as_dir" && as_dir=. 12142 for ac_prog in sed gsed; do 12143 for ac_exec_ext in '' $ac_executable_extensions; do 12144 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12145 as_fn_executable_p "$ac_path_SED" || continue 12146# Check for GNU ac_path_SED and select it if it is found. 12147 # Check for GNU $ac_path_SED 12148case `"$ac_path_SED" --version 2>&1` in 12149*GNU*) 12150 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12151*) 12152 ac_count=0 12153 $as_echo_n 0123456789 >"conftest.in" 12154 while : 12155 do 12156 cat "conftest.in" "conftest.in" >"conftest.tmp" 12157 mv "conftest.tmp" "conftest.in" 12158 cp "conftest.in" "conftest.nl" 12159 $as_echo '' >> "conftest.nl" 12160 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12161 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12162 as_fn_arith $ac_count + 1 && ac_count=$as_val 12163 if test $ac_count -gt ${ac_path_SED_max-0}; then 12164 # Best one so far, save it but keep looking for a better one 12165 ac_cv_path_SED="$ac_path_SED" 12166 ac_path_SED_max=$ac_count 12167 fi 12168 # 10*(2^10) chars as input seems more than enough 12169 test $ac_count -gt 10 && break 12170 done 12171 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12172esac 12173 12174 $ac_path_SED_found && break 3 12175 done 12176 done 12177 done 12178IFS=$as_save_IFS 12179 if test -z "$ac_cv_path_SED"; then 12180 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12181 fi 12182else 12183 ac_cv_path_SED=$SED 12184fi 12185 12186fi 12187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12188$as_echo "$ac_cv_path_SED" >&6; } 12189 SED="$ac_cv_path_SED" 12190 rm -f conftest.sed 12191 12192test -z "$SED" && SED=sed 12193Xsed="$SED -e 1s/^X//" 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12206$as_echo_n "checking for fgrep... " >&6; } 12207if ${ac_cv_path_FGREP+:} false; then : 12208 $as_echo_n "(cached) " >&6 12209else 12210 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12211 then ac_cv_path_FGREP="$GREP -F" 12212 else 12213 if test -z "$FGREP"; then 12214 ac_path_FGREP_found=false 12215 # Loop through the user's path and test for each of PROGNAME-LIST 12216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12217for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12218do 12219 IFS=$as_save_IFS 12220 test -z "$as_dir" && as_dir=. 12221 for ac_prog in fgrep; do 12222 for ac_exec_ext in '' $ac_executable_extensions; do 12223 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12224 as_fn_executable_p "$ac_path_FGREP" || continue 12225# Check for GNU ac_path_FGREP and select it if it is found. 12226 # Check for GNU $ac_path_FGREP 12227case `"$ac_path_FGREP" --version 2>&1` in 12228*GNU*) 12229 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12230*) 12231 ac_count=0 12232 $as_echo_n 0123456789 >"conftest.in" 12233 while : 12234 do 12235 cat "conftest.in" "conftest.in" >"conftest.tmp" 12236 mv "conftest.tmp" "conftest.in" 12237 cp "conftest.in" "conftest.nl" 12238 $as_echo 'FGREP' >> "conftest.nl" 12239 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12240 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12241 as_fn_arith $ac_count + 1 && ac_count=$as_val 12242 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12243 # Best one so far, save it but keep looking for a better one 12244 ac_cv_path_FGREP="$ac_path_FGREP" 12245 ac_path_FGREP_max=$ac_count 12246 fi 12247 # 10*(2^10) chars as input seems more than enough 12248 test $ac_count -gt 10 && break 12249 done 12250 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12251esac 12252 12253 $ac_path_FGREP_found && break 3 12254 done 12255 done 12256 done 12257IFS=$as_save_IFS 12258 if test -z "$ac_cv_path_FGREP"; then 12259 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12260 fi 12261else 12262 ac_cv_path_FGREP=$FGREP 12263fi 12264 12265 fi 12266fi 12267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12268$as_echo "$ac_cv_path_FGREP" >&6; } 12269 FGREP="$ac_cv_path_FGREP" 12270 12271 12272test -z "$GREP" && GREP=grep 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292# Check whether --with-gnu-ld was given. 12293if test "${with_gnu_ld+set}" = set; then : 12294 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12295else 12296 with_gnu_ld=no 12297fi 12298 12299ac_prog=ld 12300if test "$GCC" = yes; then 12301 # Check if gcc -print-prog-name=ld gives a path. 12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12303$as_echo_n "checking for ld used by $CC... " >&6; } 12304 case $host in 12305 *-*-mingw*) 12306 # gcc leaves a trailing carriage return which upsets mingw 12307 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12308 *) 12309 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12310 esac 12311 case $ac_prog in 12312 # Accept absolute paths. 12313 [\\/]* | ?:[\\/]*) 12314 re_direlt='/[^/][^/]*/\.\./' 12315 # Canonicalize the pathname of ld 12316 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12317 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12318 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12319 done 12320 test -z "$LD" && LD="$ac_prog" 12321 ;; 12322 "") 12323 # If it fails, then pretend we aren't using GCC. 12324 ac_prog=ld 12325 ;; 12326 *) 12327 # If it is relative, then search for the first ld in PATH. 12328 with_gnu_ld=unknown 12329 ;; 12330 esac 12331elif test "$with_gnu_ld" = yes; then 12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12333$as_echo_n "checking for GNU ld... " >&6; } 12334else 12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12336$as_echo_n "checking for non-GNU ld... " >&6; } 12337fi 12338if ${lt_cv_path_LD+:} false; then : 12339 $as_echo_n "(cached) " >&6 12340else 12341 if test -z "$LD"; then 12342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12343 for ac_dir in $PATH; do 12344 IFS="$lt_save_ifs" 12345 test -z "$ac_dir" && ac_dir=. 12346 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12347 lt_cv_path_LD="$ac_dir/$ac_prog" 12348 # Check to see if the program is GNU ld. I'd rather use --version, 12349 # but apparently some variants of GNU ld only accept -v. 12350 # Break only if it was the GNU/non-GNU ld that we prefer. 12351 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12352 *GNU* | *'with BFD'*) 12353 test "$with_gnu_ld" != no && break 12354 ;; 12355 *) 12356 test "$with_gnu_ld" != yes && break 12357 ;; 12358 esac 12359 fi 12360 done 12361 IFS="$lt_save_ifs" 12362else 12363 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12364fi 12365fi 12366 12367LD="$lt_cv_path_LD" 12368if test -n "$LD"; then 12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12370$as_echo "$LD" >&6; } 12371else 12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12373$as_echo "no" >&6; } 12374fi 12375test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12377$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12378if ${lt_cv_prog_gnu_ld+:} false; then : 12379 $as_echo_n "(cached) " >&6 12380else 12381 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12382case `$LD -v 2>&1 </dev/null` in 12383*GNU* | *'with BFD'*) 12384 lt_cv_prog_gnu_ld=yes 12385 ;; 12386*) 12387 lt_cv_prog_gnu_ld=no 12388 ;; 12389esac 12390fi 12391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12392$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12393with_gnu_ld=$lt_cv_prog_gnu_ld 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 12404$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 12405if ${lt_cv_path_NM+:} false; then : 12406 $as_echo_n "(cached) " >&6 12407else 12408 if test -n "$NM"; then 12409 # Let the user override the test. 12410 lt_cv_path_NM="$NM" 12411else 12412 lt_nm_to_check="${ac_tool_prefix}nm" 12413 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 12414 lt_nm_to_check="$lt_nm_to_check nm" 12415 fi 12416 for lt_tmp_nm in $lt_nm_to_check; do 12417 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12418 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 12419 IFS="$lt_save_ifs" 12420 test -z "$ac_dir" && ac_dir=. 12421 tmp_nm="$ac_dir/$lt_tmp_nm" 12422 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 12423 # Check to see if the nm accepts a BSD-compat flag. 12424 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 12425 # nm: unknown option "B" ignored 12426 # Tru64's nm complains that /dev/null is an invalid object file 12427 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 12428 */dev/null* | *'Invalid file or object type'*) 12429 lt_cv_path_NM="$tmp_nm -B" 12430 break 12431 ;; 12432 *) 12433 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 12434 */dev/null*) 12435 lt_cv_path_NM="$tmp_nm -p" 12436 break 12437 ;; 12438 *) 12439 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 12440 continue # so that we can try to find one that supports BSD flags 12441 ;; 12442 esac 12443 ;; 12444 esac 12445 fi 12446 done 12447 IFS="$lt_save_ifs" 12448 done 12449 : ${lt_cv_path_NM=no} 12450fi 12451fi 12452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 12453$as_echo "$lt_cv_path_NM" >&6; } 12454if test "$lt_cv_path_NM" != "no"; then 12455 NM="$lt_cv_path_NM" 12456else 12457 # Didn't find any BSD compatible name lister, look for dumpbin. 12458 if test -n "$DUMPBIN"; then : 12459 # Let the user override the test. 12460 else 12461 if test -n "$ac_tool_prefix"; then 12462 for ac_prog in dumpbin "link -dump" 12463 do 12464 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12465set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12467$as_echo_n "checking for $ac_word... " >&6; } 12468if ${ac_cv_prog_DUMPBIN+:} false; then : 12469 $as_echo_n "(cached) " >&6 12470else 12471 if test -n "$DUMPBIN"; then 12472 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 12473else 12474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12475for as_dir in $PATH 12476do 12477 IFS=$as_save_IFS 12478 test -z "$as_dir" && as_dir=. 12479 for ac_exec_ext in '' $ac_executable_extensions; do 12480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12481 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 12482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12483 break 2 12484 fi 12485done 12486 done 12487IFS=$as_save_IFS 12488 12489fi 12490fi 12491DUMPBIN=$ac_cv_prog_DUMPBIN 12492if test -n "$DUMPBIN"; then 12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 12494$as_echo "$DUMPBIN" >&6; } 12495else 12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12497$as_echo "no" >&6; } 12498fi 12499 12500 12501 test -n "$DUMPBIN" && break 12502 done 12503fi 12504if test -z "$DUMPBIN"; then 12505 ac_ct_DUMPBIN=$DUMPBIN 12506 for ac_prog in dumpbin "link -dump" 12507do 12508 # Extract the first word of "$ac_prog", so it can be a program name with args. 12509set dummy $ac_prog; ac_word=$2 12510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12511$as_echo_n "checking for $ac_word... " >&6; } 12512if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 12513 $as_echo_n "(cached) " >&6 12514else 12515 if test -n "$ac_ct_DUMPBIN"; then 12516 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 12517else 12518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12519for as_dir in $PATH 12520do 12521 IFS=$as_save_IFS 12522 test -z "$as_dir" && as_dir=. 12523 for ac_exec_ext in '' $ac_executable_extensions; do 12524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12525 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 12526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12527 break 2 12528 fi 12529done 12530 done 12531IFS=$as_save_IFS 12532 12533fi 12534fi 12535ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 12536if test -n "$ac_ct_DUMPBIN"; then 12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 12538$as_echo "$ac_ct_DUMPBIN" >&6; } 12539else 12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12541$as_echo "no" >&6; } 12542fi 12543 12544 12545 test -n "$ac_ct_DUMPBIN" && break 12546done 12547 12548 if test "x$ac_ct_DUMPBIN" = x; then 12549 DUMPBIN=":" 12550 else 12551 case $cross_compiling:$ac_tool_warned in 12552yes:) 12553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12555ac_tool_warned=yes ;; 12556esac 12557 DUMPBIN=$ac_ct_DUMPBIN 12558 fi 12559fi 12560 12561 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 12562 *COFF*) 12563 DUMPBIN="$DUMPBIN -symbols" 12564 ;; 12565 *) 12566 DUMPBIN=: 12567 ;; 12568 esac 12569 fi 12570 12571 if test "$DUMPBIN" != ":"; then 12572 NM="$DUMPBIN" 12573 fi 12574fi 12575test -z "$NM" && NM=nm 12576 12577 12578 12579 12580 12581 12582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 12583$as_echo_n "checking the name lister ($NM) interface... " >&6; } 12584if ${lt_cv_nm_interface+:} false; then : 12585 $as_echo_n "(cached) " >&6 12586else 12587 lt_cv_nm_interface="BSD nm" 12588 echo "int some_variable = 0;" > conftest.$ac_ext 12589 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 12590 (eval "$ac_compile" 2>conftest.err) 12591 cat conftest.err >&5 12592 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 12593 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 12594 cat conftest.err >&5 12595 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 12596 cat conftest.out >&5 12597 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 12598 lt_cv_nm_interface="MS dumpbin" 12599 fi 12600 rm -f conftest* 12601fi 12602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 12603$as_echo "$lt_cv_nm_interface" >&6; } 12604 12605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12606$as_echo_n "checking whether ln -s works... " >&6; } 12607LN_S=$as_ln_s 12608if test "$LN_S" = "ln -s"; then 12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12610$as_echo "yes" >&6; } 12611else 12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12613$as_echo "no, using $LN_S" >&6; } 12614fi 12615 12616# find the maximum length of command line arguments 12617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 12618$as_echo_n "checking the maximum length of command line arguments... " >&6; } 12619if ${lt_cv_sys_max_cmd_len+:} false; then : 12620 $as_echo_n "(cached) " >&6 12621else 12622 i=0 12623 teststring="ABCD" 12624 12625 case $build_os in 12626 msdosdjgpp*) 12627 # On DJGPP, this test can blow up pretty badly due to problems in libc 12628 # (any single argument exceeding 2000 bytes causes a buffer overrun 12629 # during glob expansion). Even if it were fixed, the result of this 12630 # check would be larger than it should be. 12631 lt_cv_sys_max_cmd_len=12288; # 12K is about right 12632 ;; 12633 12634 gnu*) 12635 # Under GNU Hurd, this test is not required because there is 12636 # no limit to the length of command line arguments. 12637 # Libtool will interpret -1 as no limit whatsoever 12638 lt_cv_sys_max_cmd_len=-1; 12639 ;; 12640 12641 cygwin* | mingw* | cegcc*) 12642 # On Win9x/ME, this test blows up -- it succeeds, but takes 12643 # about 5 minutes as the teststring grows exponentially. 12644 # Worse, since 9x/ME are not pre-emptively multitasking, 12645 # you end up with a "frozen" computer, even though with patience 12646 # the test eventually succeeds (with a max line length of 256k). 12647 # Instead, let's just punt: use the minimum linelength reported by 12648 # all of the supported platforms: 8192 (on NT/2K/XP). 12649 lt_cv_sys_max_cmd_len=8192; 12650 ;; 12651 12652 mint*) 12653 # On MiNT this can take a long time and run out of memory. 12654 lt_cv_sys_max_cmd_len=8192; 12655 ;; 12656 12657 amigaos*) 12658 # On AmigaOS with pdksh, this test takes hours, literally. 12659 # So we just punt and use a minimum line length of 8192. 12660 lt_cv_sys_max_cmd_len=8192; 12661 ;; 12662 12663 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 12664 # This has been around since 386BSD, at least. Likely further. 12665 if test -x /sbin/sysctl; then 12666 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 12667 elif test -x /usr/sbin/sysctl; then 12668 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 12669 else 12670 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 12671 fi 12672 # And add a safety zone 12673 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12674 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12675 ;; 12676 12677 interix*) 12678 # We know the value 262144 and hardcode it with a safety zone (like BSD) 12679 lt_cv_sys_max_cmd_len=196608 12680 ;; 12681 12682 os2*) 12683 # The test takes a long time on OS/2. 12684 lt_cv_sys_max_cmd_len=8192 12685 ;; 12686 12687 osf*) 12688 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 12689 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 12690 # nice to cause kernel panics so lets avoid the loop below. 12691 # First set a reasonable default. 12692 lt_cv_sys_max_cmd_len=16384 12693 # 12694 if test -x /sbin/sysconfig; then 12695 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 12696 *1*) lt_cv_sys_max_cmd_len=-1 ;; 12697 esac 12698 fi 12699 ;; 12700 sco3.2v5*) 12701 lt_cv_sys_max_cmd_len=102400 12702 ;; 12703 sysv5* | sco5v6* | sysv4.2uw2*) 12704 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 12705 if test -n "$kargmax"; then 12706 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 12707 else 12708 lt_cv_sys_max_cmd_len=32768 12709 fi 12710 ;; 12711 *) 12712 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 12713 if test -n "$lt_cv_sys_max_cmd_len" && \ 12714 test undefined != "$lt_cv_sys_max_cmd_len"; then 12715 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12716 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12717 else 12718 # Make teststring a little bigger before we do anything with it. 12719 # a 1K string should be a reasonable start. 12720 for i in 1 2 3 4 5 6 7 8 ; do 12721 teststring=$teststring$teststring 12722 done 12723 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 12724 # If test is not a shell built-in, we'll probably end up computing a 12725 # maximum length that is only half of the actual maximum length, but 12726 # we can't tell. 12727 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 12728 = "X$teststring$teststring"; } >/dev/null 2>&1 && 12729 test $i != 17 # 1/2 MB should be enough 12730 do 12731 i=`expr $i + 1` 12732 teststring=$teststring$teststring 12733 done 12734 # Only check the string length outside the loop. 12735 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 12736 teststring= 12737 # Add a significant safety factor because C++ compilers can tack on 12738 # massive amounts of additional arguments before passing them to the 12739 # linker. It appears as though 1/2 is a usable value. 12740 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 12741 fi 12742 ;; 12743 esac 12744 12745fi 12746 12747if test -n $lt_cv_sys_max_cmd_len ; then 12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 12749$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 12750else 12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 12752$as_echo "none" >&6; } 12753fi 12754max_cmd_len=$lt_cv_sys_max_cmd_len 12755 12756 12757 12758 12759 12760 12761: ${CP="cp -f"} 12762: ${MV="mv -f"} 12763: ${RM="rm -f"} 12764 12765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 12766$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 12767# Try some XSI features 12768xsi_shell=no 12769( _lt_dummy="a/b/c" 12770 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 12771 = c,a/b,b/c, \ 12772 && eval 'test $(( 1 + 1 )) -eq 2 \ 12773 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 12774 && xsi_shell=yes 12775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 12776$as_echo "$xsi_shell" >&6; } 12777 12778 12779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 12780$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 12781lt_shell_append=no 12782( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 12783 >/dev/null 2>&1 \ 12784 && lt_shell_append=yes 12785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 12786$as_echo "$lt_shell_append" >&6; } 12787 12788 12789if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12790 lt_unset=unset 12791else 12792 lt_unset=false 12793fi 12794 12795 12796 12797 12798 12799# test EBCDIC or ASCII 12800case `echo X|tr X '\101'` in 12801 A) # ASCII based system 12802 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 12803 lt_SP2NL='tr \040 \012' 12804 lt_NL2SP='tr \015\012 \040\040' 12805 ;; 12806 *) # EBCDIC based system 12807 lt_SP2NL='tr \100 \n' 12808 lt_NL2SP='tr \r\n \100\100' 12809 ;; 12810esac 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 12821$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 12822if ${lt_cv_to_host_file_cmd+:} false; then : 12823 $as_echo_n "(cached) " >&6 12824else 12825 case $host in 12826 *-*-mingw* ) 12827 case $build in 12828 *-*-mingw* ) # actually msys 12829 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 12830 ;; 12831 *-*-cygwin* ) 12832 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 12833 ;; 12834 * ) # otherwise, assume *nix 12835 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 12836 ;; 12837 esac 12838 ;; 12839 *-*-cygwin* ) 12840 case $build in 12841 *-*-mingw* ) # actually msys 12842 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 12843 ;; 12844 *-*-cygwin* ) 12845 lt_cv_to_host_file_cmd=func_convert_file_noop 12846 ;; 12847 * ) # otherwise, assume *nix 12848 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 12849 ;; 12850 esac 12851 ;; 12852 * ) # unhandled hosts (and "normal" native builds) 12853 lt_cv_to_host_file_cmd=func_convert_file_noop 12854 ;; 12855esac 12856 12857fi 12858 12859to_host_file_cmd=$lt_cv_to_host_file_cmd 12860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 12861$as_echo "$lt_cv_to_host_file_cmd" >&6; } 12862 12863 12864 12865 12866 12867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 12868$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 12869if ${lt_cv_to_tool_file_cmd+:} false; then : 12870 $as_echo_n "(cached) " >&6 12871else 12872 #assume ordinary cross tools, or native build. 12873lt_cv_to_tool_file_cmd=func_convert_file_noop 12874case $host in 12875 *-*-mingw* ) 12876 case $build in 12877 *-*-mingw* ) # actually msys 12878 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 12879 ;; 12880 esac 12881 ;; 12882esac 12883 12884fi 12885 12886to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12888$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 12889 12890 12891 12892 12893 12894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12895$as_echo_n "checking for $LD option to reload object files... " >&6; } 12896if ${lt_cv_ld_reload_flag+:} false; then : 12897 $as_echo_n "(cached) " >&6 12898else 12899 lt_cv_ld_reload_flag='-r' 12900fi 12901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12902$as_echo "$lt_cv_ld_reload_flag" >&6; } 12903reload_flag=$lt_cv_ld_reload_flag 12904case $reload_flag in 12905"" | " "*) ;; 12906*) reload_flag=" $reload_flag" ;; 12907esac 12908reload_cmds='$LD$reload_flag -o $output$reload_objs' 12909case $host_os in 12910 cygwin* | mingw* | pw32* | cegcc*) 12911 if test "$GCC" != yes; then 12912 reload_cmds=false 12913 fi 12914 ;; 12915 darwin*) 12916 if test "$GCC" = yes; then 12917 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 12918 else 12919 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12920 fi 12921 ;; 12922esac 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932if test -n "$ac_tool_prefix"; then 12933 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12934set dummy ${ac_tool_prefix}objdump; ac_word=$2 12935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12936$as_echo_n "checking for $ac_word... " >&6; } 12937if ${ac_cv_prog_OBJDUMP+:} false; then : 12938 $as_echo_n "(cached) " >&6 12939else 12940 if test -n "$OBJDUMP"; then 12941 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12942else 12943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12944for as_dir in $PATH 12945do 12946 IFS=$as_save_IFS 12947 test -z "$as_dir" && as_dir=. 12948 for ac_exec_ext in '' $ac_executable_extensions; do 12949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12950 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12952 break 2 12953 fi 12954done 12955 done 12956IFS=$as_save_IFS 12957 12958fi 12959fi 12960OBJDUMP=$ac_cv_prog_OBJDUMP 12961if test -n "$OBJDUMP"; then 12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12963$as_echo "$OBJDUMP" >&6; } 12964else 12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12966$as_echo "no" >&6; } 12967fi 12968 12969 12970fi 12971if test -z "$ac_cv_prog_OBJDUMP"; then 12972 ac_ct_OBJDUMP=$OBJDUMP 12973 # Extract the first word of "objdump", so it can be a program name with args. 12974set dummy objdump; ac_word=$2 12975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12976$as_echo_n "checking for $ac_word... " >&6; } 12977if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 12978 $as_echo_n "(cached) " >&6 12979else 12980 if test -n "$ac_ct_OBJDUMP"; then 12981 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12982else 12983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12984for as_dir in $PATH 12985do 12986 IFS=$as_save_IFS 12987 test -z "$as_dir" && as_dir=. 12988 for ac_exec_ext in '' $ac_executable_extensions; do 12989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12990 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12992 break 2 12993 fi 12994done 12995 done 12996IFS=$as_save_IFS 12997 12998fi 12999fi 13000ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 13001if test -n "$ac_ct_OBJDUMP"; then 13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 13003$as_echo "$ac_ct_OBJDUMP" >&6; } 13004else 13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13006$as_echo "no" >&6; } 13007fi 13008 13009 if test "x$ac_ct_OBJDUMP" = x; then 13010 OBJDUMP="false" 13011 else 13012 case $cross_compiling:$ac_tool_warned in 13013yes:) 13014{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13015$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13016ac_tool_warned=yes ;; 13017esac 13018 OBJDUMP=$ac_ct_OBJDUMP 13019 fi 13020else 13021 OBJDUMP="$ac_cv_prog_OBJDUMP" 13022fi 13023 13024test -z "$OBJDUMP" && OBJDUMP=objdump 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 13035$as_echo_n "checking how to recognize dependent libraries... " >&6; } 13036if ${lt_cv_deplibs_check_method+:} false; then : 13037 $as_echo_n "(cached) " >&6 13038else 13039 lt_cv_file_magic_cmd='$MAGIC_CMD' 13040lt_cv_file_magic_test_file= 13041lt_cv_deplibs_check_method='unknown' 13042# Need to set the preceding variable on all platforms that support 13043# interlibrary dependencies. 13044# 'none' -- dependencies not supported. 13045# `unknown' -- same as none, but documents that we really don't know. 13046# 'pass_all' -- all dependencies passed with no checks. 13047# 'test_compile' -- check by making test program. 13048# 'file_magic [[regex]]' -- check by looking for files in library path 13049# which responds to the $file_magic_cmd with a given extended regex. 13050# If you have `file' or equivalent on your system and you're not sure 13051# whether `pass_all' will *always* work, you probably want this one. 13052 13053case $host_os in 13054aix[4-9]*) 13055 lt_cv_deplibs_check_method=pass_all 13056 ;; 13057 13058beos*) 13059 lt_cv_deplibs_check_method=pass_all 13060 ;; 13061 13062bsdi[45]*) 13063 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 13064 lt_cv_file_magic_cmd='/usr/bin/file -L' 13065 lt_cv_file_magic_test_file=/shlib/libc.so 13066 ;; 13067 13068cygwin*) 13069 # func_win32_libid is a shell function defined in ltmain.sh 13070 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 13071 lt_cv_file_magic_cmd='func_win32_libid' 13072 ;; 13073 13074mingw* | pw32*) 13075 # Base MSYS/MinGW do not provide the 'file' command needed by 13076 # func_win32_libid shell function, so use a weaker test based on 'objdump', 13077 # unless we find 'file', for example because we are cross-compiling. 13078 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 13079 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 13080 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 13081 lt_cv_file_magic_cmd='func_win32_libid' 13082 else 13083 # Keep this pattern in sync with the one in func_win32_libid. 13084 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 13085 lt_cv_file_magic_cmd='$OBJDUMP -f' 13086 fi 13087 ;; 13088 13089cegcc*) 13090 # use the weaker test based on 'objdump'. See mingw*. 13091 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 13092 lt_cv_file_magic_cmd='$OBJDUMP -f' 13093 ;; 13094 13095darwin* | rhapsody*) 13096 lt_cv_deplibs_check_method=pass_all 13097 ;; 13098 13099freebsd* | dragonfly*) 13100 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 13101 case $host_cpu in 13102 i*86 ) 13103 # Not sure whether the presence of OpenBSD here was a mistake. 13104 # Let's accept both of them until this is cleared up. 13105 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 13106 lt_cv_file_magic_cmd=/usr/bin/file 13107 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 13108 ;; 13109 esac 13110 else 13111 lt_cv_deplibs_check_method=pass_all 13112 fi 13113 ;; 13114 13115haiku*) 13116 lt_cv_deplibs_check_method=pass_all 13117 ;; 13118 13119hpux10.20* | hpux11*) 13120 lt_cv_file_magic_cmd=/usr/bin/file 13121 case $host_cpu in 13122 ia64*) 13123 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 13124 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 13125 ;; 13126 hppa*64*) 13127 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]' 13128 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 13129 ;; 13130 *) 13131 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 13132 lt_cv_file_magic_test_file=/usr/lib/libc.sl 13133 ;; 13134 esac 13135 ;; 13136 13137interix[3-9]*) 13138 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 13139 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 13140 ;; 13141 13142irix5* | irix6* | nonstopux*) 13143 case $LD in 13144 *-32|*"-32 ") libmagic=32-bit;; 13145 *-n32|*"-n32 ") libmagic=N32;; 13146 *-64|*"-64 ") libmagic=64-bit;; 13147 *) libmagic=never-match;; 13148 esac 13149 lt_cv_deplibs_check_method=pass_all 13150 ;; 13151 13152# This must be glibc/ELF. 13153linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13154 lt_cv_deplibs_check_method=pass_all 13155 ;; 13156 13157netbsd* | netbsdelf*-gnu) 13158 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 13159 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 13160 else 13161 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 13162 fi 13163 ;; 13164 13165newos6*) 13166 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 13167 lt_cv_file_magic_cmd=/usr/bin/file 13168 lt_cv_file_magic_test_file=/usr/lib/libnls.so 13169 ;; 13170 13171*nto* | *qnx*) 13172 lt_cv_deplibs_check_method=pass_all 13173 ;; 13174 13175openbsd*) 13176 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13177 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 13178 else 13179 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 13180 fi 13181 ;; 13182 13183osf3* | osf4* | osf5*) 13184 lt_cv_deplibs_check_method=pass_all 13185 ;; 13186 13187rdos*) 13188 lt_cv_deplibs_check_method=pass_all 13189 ;; 13190 13191solaris*) 13192 lt_cv_deplibs_check_method=pass_all 13193 ;; 13194 13195sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13196 lt_cv_deplibs_check_method=pass_all 13197 ;; 13198 13199sysv4 | sysv4.3*) 13200 case $host_vendor in 13201 motorola) 13202 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]' 13203 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 13204 ;; 13205 ncr) 13206 lt_cv_deplibs_check_method=pass_all 13207 ;; 13208 sequent) 13209 lt_cv_file_magic_cmd='/bin/file' 13210 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 13211 ;; 13212 sni) 13213 lt_cv_file_magic_cmd='/bin/file' 13214 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 13215 lt_cv_file_magic_test_file=/lib/libc.so 13216 ;; 13217 siemens) 13218 lt_cv_deplibs_check_method=pass_all 13219 ;; 13220 pc) 13221 lt_cv_deplibs_check_method=pass_all 13222 ;; 13223 esac 13224 ;; 13225 13226tpf*) 13227 lt_cv_deplibs_check_method=pass_all 13228 ;; 13229esac 13230 13231fi 13232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 13233$as_echo "$lt_cv_deplibs_check_method" >&6; } 13234 13235file_magic_glob= 13236want_nocaseglob=no 13237if test "$build" = "$host"; then 13238 case $host_os in 13239 mingw* | pw32*) 13240 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 13241 want_nocaseglob=yes 13242 else 13243 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 13244 fi 13245 ;; 13246 esac 13247fi 13248 13249file_magic_cmd=$lt_cv_file_magic_cmd 13250deplibs_check_method=$lt_cv_deplibs_check_method 13251test -z "$deplibs_check_method" && deplibs_check_method=unknown 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274if test -n "$ac_tool_prefix"; then 13275 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 13276set dummy ${ac_tool_prefix}dlltool; ac_word=$2 13277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13278$as_echo_n "checking for $ac_word... " >&6; } 13279if ${ac_cv_prog_DLLTOOL+:} false; then : 13280 $as_echo_n "(cached) " >&6 13281else 13282 if test -n "$DLLTOOL"; then 13283 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 13284else 13285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13286for as_dir in $PATH 13287do 13288 IFS=$as_save_IFS 13289 test -z "$as_dir" && as_dir=. 13290 for ac_exec_ext in '' $ac_executable_extensions; do 13291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13292 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 13293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13294 break 2 13295 fi 13296done 13297 done 13298IFS=$as_save_IFS 13299 13300fi 13301fi 13302DLLTOOL=$ac_cv_prog_DLLTOOL 13303if test -n "$DLLTOOL"; then 13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 13305$as_echo "$DLLTOOL" >&6; } 13306else 13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13308$as_echo "no" >&6; } 13309fi 13310 13311 13312fi 13313if test -z "$ac_cv_prog_DLLTOOL"; then 13314 ac_ct_DLLTOOL=$DLLTOOL 13315 # Extract the first word of "dlltool", so it can be a program name with args. 13316set dummy dlltool; ac_word=$2 13317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13318$as_echo_n "checking for $ac_word... " >&6; } 13319if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 13320 $as_echo_n "(cached) " >&6 13321else 13322 if test -n "$ac_ct_DLLTOOL"; then 13323 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 13324else 13325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13326for as_dir in $PATH 13327do 13328 IFS=$as_save_IFS 13329 test -z "$as_dir" && as_dir=. 13330 for ac_exec_ext in '' $ac_executable_extensions; do 13331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13332 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 13333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13334 break 2 13335 fi 13336done 13337 done 13338IFS=$as_save_IFS 13339 13340fi 13341fi 13342ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 13343if test -n "$ac_ct_DLLTOOL"; then 13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 13345$as_echo "$ac_ct_DLLTOOL" >&6; } 13346else 13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13348$as_echo "no" >&6; } 13349fi 13350 13351 if test "x$ac_ct_DLLTOOL" = x; then 13352 DLLTOOL="false" 13353 else 13354 case $cross_compiling:$ac_tool_warned in 13355yes:) 13356{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13358ac_tool_warned=yes ;; 13359esac 13360 DLLTOOL=$ac_ct_DLLTOOL 13361 fi 13362else 13363 DLLTOOL="$ac_cv_prog_DLLTOOL" 13364fi 13365 13366test -z "$DLLTOOL" && DLLTOOL=dlltool 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 13378$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 13379if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 13380 $as_echo_n "(cached) " >&6 13381else 13382 lt_cv_sharedlib_from_linklib_cmd='unknown' 13383 13384case $host_os in 13385cygwin* | mingw* | pw32* | cegcc*) 13386 # two different shell functions defined in ltmain.sh 13387 # decide which to use based on capabilities of $DLLTOOL 13388 case `$DLLTOOL --help 2>&1` in 13389 *--identify-strict*) 13390 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 13391 ;; 13392 *) 13393 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 13394 ;; 13395 esac 13396 ;; 13397*) 13398 # fallback: assume linklib IS sharedlib 13399 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 13400 ;; 13401esac 13402 13403fi 13404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 13405$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 13406sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 13407test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 13408 13409 13410 13411 13412 13413 13414 13415if test -n "$ac_tool_prefix"; then 13416 for ac_prog in ar 13417 do 13418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13419set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13421$as_echo_n "checking for $ac_word... " >&6; } 13422if ${ac_cv_prog_AR+:} false; then : 13423 $as_echo_n "(cached) " >&6 13424else 13425 if test -n "$AR"; then 13426 ac_cv_prog_AR="$AR" # Let the user override the test. 13427else 13428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13429for as_dir in $PATH 13430do 13431 IFS=$as_save_IFS 13432 test -z "$as_dir" && as_dir=. 13433 for ac_exec_ext in '' $ac_executable_extensions; do 13434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13435 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 13436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13437 break 2 13438 fi 13439done 13440 done 13441IFS=$as_save_IFS 13442 13443fi 13444fi 13445AR=$ac_cv_prog_AR 13446if test -n "$AR"; then 13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 13448$as_echo "$AR" >&6; } 13449else 13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13451$as_echo "no" >&6; } 13452fi 13453 13454 13455 test -n "$AR" && break 13456 done 13457fi 13458if test -z "$AR"; then 13459 ac_ct_AR=$AR 13460 for ac_prog in ar 13461do 13462 # Extract the first word of "$ac_prog", so it can be a program name with args. 13463set dummy $ac_prog; ac_word=$2 13464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13465$as_echo_n "checking for $ac_word... " >&6; } 13466if ${ac_cv_prog_ac_ct_AR+:} false; then : 13467 $as_echo_n "(cached) " >&6 13468else 13469 if test -n "$ac_ct_AR"; then 13470 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 13471else 13472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13473for as_dir in $PATH 13474do 13475 IFS=$as_save_IFS 13476 test -z "$as_dir" && as_dir=. 13477 for ac_exec_ext in '' $ac_executable_extensions; do 13478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13479 ac_cv_prog_ac_ct_AR="$ac_prog" 13480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13481 break 2 13482 fi 13483done 13484 done 13485IFS=$as_save_IFS 13486 13487fi 13488fi 13489ac_ct_AR=$ac_cv_prog_ac_ct_AR 13490if test -n "$ac_ct_AR"; then 13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 13492$as_echo "$ac_ct_AR" >&6; } 13493else 13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13495$as_echo "no" >&6; } 13496fi 13497 13498 13499 test -n "$ac_ct_AR" && break 13500done 13501 13502 if test "x$ac_ct_AR" = x; then 13503 AR="false" 13504 else 13505 case $cross_compiling:$ac_tool_warned in 13506yes:) 13507{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13508$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13509ac_tool_warned=yes ;; 13510esac 13511 AR=$ac_ct_AR 13512 fi 13513fi 13514 13515: ${AR=ar} 13516: ${AR_FLAGS=cru} 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 13529$as_echo_n "checking for archiver @FILE support... " >&6; } 13530if ${lt_cv_ar_at_file+:} false; then : 13531 $as_echo_n "(cached) " >&6 13532else 13533 lt_cv_ar_at_file=no 13534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13535/* end confdefs.h. */ 13536 13537int 13538main () 13539{ 13540 13541 ; 13542 return 0; 13543} 13544_ACEOF 13545if ac_fn_c_try_compile "$LINENO"; then : 13546 echo conftest.$ac_objext > conftest.lst 13547 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 13548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13549 (eval $lt_ar_try) 2>&5 13550 ac_status=$? 13551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13552 test $ac_status = 0; } 13553 if test "$ac_status" -eq 0; then 13554 # Ensure the archiver fails upon bogus file names. 13555 rm -f conftest.$ac_objext libconftest.a 13556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13557 (eval $lt_ar_try) 2>&5 13558 ac_status=$? 13559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13560 test $ac_status = 0; } 13561 if test "$ac_status" -ne 0; then 13562 lt_cv_ar_at_file=@ 13563 fi 13564 fi 13565 rm -f conftest.* libconftest.a 13566 13567fi 13568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13569 13570fi 13571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 13572$as_echo "$lt_cv_ar_at_file" >&6; } 13573 13574if test "x$lt_cv_ar_at_file" = xno; then 13575 archiver_list_spec= 13576else 13577 archiver_list_spec=$lt_cv_ar_at_file 13578fi 13579 13580 13581 13582 13583 13584 13585 13586if test -n "$ac_tool_prefix"; then 13587 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13588set dummy ${ac_tool_prefix}strip; ac_word=$2 13589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13590$as_echo_n "checking for $ac_word... " >&6; } 13591if ${ac_cv_prog_STRIP+:} false; then : 13592 $as_echo_n "(cached) " >&6 13593else 13594 if test -n "$STRIP"; then 13595 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 13596else 13597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13598for as_dir in $PATH 13599do 13600 IFS=$as_save_IFS 13601 test -z "$as_dir" && as_dir=. 13602 for ac_exec_ext in '' $ac_executable_extensions; do 13603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13604 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 13605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13606 break 2 13607 fi 13608done 13609 done 13610IFS=$as_save_IFS 13611 13612fi 13613fi 13614STRIP=$ac_cv_prog_STRIP 13615if test -n "$STRIP"; then 13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 13617$as_echo "$STRIP" >&6; } 13618else 13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13620$as_echo "no" >&6; } 13621fi 13622 13623 13624fi 13625if test -z "$ac_cv_prog_STRIP"; then 13626 ac_ct_STRIP=$STRIP 13627 # Extract the first word of "strip", so it can be a program name with args. 13628set dummy strip; ac_word=$2 13629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13630$as_echo_n "checking for $ac_word... " >&6; } 13631if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 13632 $as_echo_n "(cached) " >&6 13633else 13634 if test -n "$ac_ct_STRIP"; then 13635 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13636else 13637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13638for as_dir in $PATH 13639do 13640 IFS=$as_save_IFS 13641 test -z "$as_dir" && as_dir=. 13642 for ac_exec_ext in '' $ac_executable_extensions; do 13643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13644 ac_cv_prog_ac_ct_STRIP="strip" 13645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13646 break 2 13647 fi 13648done 13649 done 13650IFS=$as_save_IFS 13651 13652fi 13653fi 13654ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13655if test -n "$ac_ct_STRIP"; then 13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 13657$as_echo "$ac_ct_STRIP" >&6; } 13658else 13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13660$as_echo "no" >&6; } 13661fi 13662 13663 if test "x$ac_ct_STRIP" = x; then 13664 STRIP=":" 13665 else 13666 case $cross_compiling:$ac_tool_warned in 13667yes:) 13668{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13669$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13670ac_tool_warned=yes ;; 13671esac 13672 STRIP=$ac_ct_STRIP 13673 fi 13674else 13675 STRIP="$ac_cv_prog_STRIP" 13676fi 13677 13678test -z "$STRIP" && STRIP=: 13679 13680 13681 13682 13683 13684 13685if test -n "$ac_tool_prefix"; then 13686 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13687set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13689$as_echo_n "checking for $ac_word... " >&6; } 13690if ${ac_cv_prog_RANLIB+:} false; then : 13691 $as_echo_n "(cached) " >&6 13692else 13693 if test -n "$RANLIB"; then 13694 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13695else 13696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13697for as_dir in $PATH 13698do 13699 IFS=$as_save_IFS 13700 test -z "$as_dir" && as_dir=. 13701 for ac_exec_ext in '' $ac_executable_extensions; do 13702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13703 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13705 break 2 13706 fi 13707done 13708 done 13709IFS=$as_save_IFS 13710 13711fi 13712fi 13713RANLIB=$ac_cv_prog_RANLIB 13714if test -n "$RANLIB"; then 13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13716$as_echo "$RANLIB" >&6; } 13717else 13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13719$as_echo "no" >&6; } 13720fi 13721 13722 13723fi 13724if test -z "$ac_cv_prog_RANLIB"; then 13725 ac_ct_RANLIB=$RANLIB 13726 # Extract the first word of "ranlib", so it can be a program name with args. 13727set dummy ranlib; ac_word=$2 13728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13729$as_echo_n "checking for $ac_word... " >&6; } 13730if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 13731 $as_echo_n "(cached) " >&6 13732else 13733 if test -n "$ac_ct_RANLIB"; then 13734 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13735else 13736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13737for as_dir in $PATH 13738do 13739 IFS=$as_save_IFS 13740 test -z "$as_dir" && as_dir=. 13741 for ac_exec_ext in '' $ac_executable_extensions; do 13742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13743 ac_cv_prog_ac_ct_RANLIB="ranlib" 13744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13745 break 2 13746 fi 13747done 13748 done 13749IFS=$as_save_IFS 13750 13751fi 13752fi 13753ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13754if test -n "$ac_ct_RANLIB"; then 13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13756$as_echo "$ac_ct_RANLIB" >&6; } 13757else 13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13759$as_echo "no" >&6; } 13760fi 13761 13762 if test "x$ac_ct_RANLIB" = x; then 13763 RANLIB=":" 13764 else 13765 case $cross_compiling:$ac_tool_warned in 13766yes:) 13767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13769ac_tool_warned=yes ;; 13770esac 13771 RANLIB=$ac_ct_RANLIB 13772 fi 13773else 13774 RANLIB="$ac_cv_prog_RANLIB" 13775fi 13776 13777test -z "$RANLIB" && RANLIB=: 13778 13779 13780 13781 13782 13783 13784# Determine commands to create old-style static archives. 13785old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13786old_postinstall_cmds='chmod 644 $oldlib' 13787old_postuninstall_cmds= 13788 13789if test -n "$RANLIB"; then 13790 case $host_os in 13791 openbsd*) 13792 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 13793 ;; 13794 *) 13795 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 13796 ;; 13797 esac 13798 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 13799fi 13800 13801case $host_os in 13802 darwin*) 13803 lock_old_archive_extraction=yes ;; 13804 *) 13805 lock_old_archive_extraction=no ;; 13806esac 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846# If no C compiler was specified, use CC. 13847LTCC=${LTCC-"$CC"} 13848 13849# If no C compiler flags were specified, use CFLAGS. 13850LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13851 13852# Allow CC to be a program name with arguments. 13853compiler=$CC 13854 13855 13856# Check for command to grab the raw symbol name followed by C symbol from nm. 13857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 13858$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 13859if ${lt_cv_sys_global_symbol_pipe+:} false; then : 13860 $as_echo_n "(cached) " >&6 13861else 13862 13863# These are sane defaults that work on at least a few old systems. 13864# [They come from Ultrix. What could be older than Ultrix?!! ;)] 13865 13866# Character class describing NM global symbol codes. 13867symcode='[BCDEGRST]' 13868 13869# Regexp to match symbols that can be accessed directly from C. 13870sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13871 13872# Define system-specific variables. 13873case $host_os in 13874aix*) 13875 symcode='[BCDT]' 13876 ;; 13877cygwin* | mingw* | pw32* | cegcc*) 13878 symcode='[ABCDGISTW]' 13879 ;; 13880hpux*) 13881 if test "$host_cpu" = ia64; then 13882 symcode='[ABCDEGRST]' 13883 fi 13884 ;; 13885irix* | nonstopux*) 13886 symcode='[BCDEGRST]' 13887 ;; 13888osf*) 13889 symcode='[BCDEGQRST]' 13890 ;; 13891solaris*) 13892 symcode='[BDRT]' 13893 ;; 13894sco3.2v5*) 13895 symcode='[DT]' 13896 ;; 13897sysv4.2uw2*) 13898 symcode='[DT]' 13899 ;; 13900sysv5* | sco5v6* | unixware* | OpenUNIX*) 13901 symcode='[ABDT]' 13902 ;; 13903sysv4) 13904 symcode='[DFNSTU]' 13905 ;; 13906esac 13907 13908# If we're using GNU nm, then use its standard symbol codes. 13909case `$NM -V 2>&1` in 13910*GNU* | *'with BFD'*) 13911 symcode='[ABCDGIRSTW]' ;; 13912esac 13913 13914# Transform an extracted symbol line into a proper C declaration. 13915# Some systems (esp. on ia64) link data and code symbols differently, 13916# so use this general approach. 13917lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 13918 13919# Transform an extracted symbol line into symbol name and symbol address 13920lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 13921lt_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'" 13922 13923# Handle CRLF in mingw tool chain 13924opt_cr= 13925case $build_os in 13926mingw*) 13927 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13928 ;; 13929esac 13930 13931# Try without a prefix underscore, then with it. 13932for ac_symprfx in "" "_"; do 13933 13934 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13935 symxfrm="\\1 $ac_symprfx\\2 \\2" 13936 13937 # Write the raw and C identifiers. 13938 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13939 # Fake it for dumpbin and say T for any non-static function 13940 # and D for any global variable. 13941 # Also find C++ and __fastcall symbols from MSVC++, 13942 # which start with @ or ?. 13943 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13944" {last_section=section; section=\$ 3};"\ 13945" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13946" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13947" \$ 0!~/External *\|/{next};"\ 13948" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13949" {if(hide[section]) next};"\ 13950" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 13951" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 13952" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 13953" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 13954" ' prfx=^$ac_symprfx" 13955 else 13956 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13957 fi 13958 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 13959 13960 # Check to see that the pipe works correctly. 13961 pipe_works=no 13962 13963 rm -f conftest* 13964 cat > conftest.$ac_ext <<_LT_EOF 13965#ifdef __cplusplus 13966extern "C" { 13967#endif 13968char nm_test_var; 13969void nm_test_func(void); 13970void nm_test_func(void){} 13971#ifdef __cplusplus 13972} 13973#endif 13974int main(){nm_test_var='a';nm_test_func();return(0);} 13975_LT_EOF 13976 13977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13978 (eval $ac_compile) 2>&5 13979 ac_status=$? 13980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13981 test $ac_status = 0; }; then 13982 # Now try to grab the symbols. 13983 nlist=conftest.nm 13984 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 13985 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 13986 ac_status=$? 13987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13988 test $ac_status = 0; } && test -s "$nlist"; then 13989 # Try sorting and uniquifying the output. 13990 if sort "$nlist" | uniq > "$nlist"T; then 13991 mv -f "$nlist"T "$nlist" 13992 else 13993 rm -f "$nlist"T 13994 fi 13995 13996 # Make sure that we snagged all the symbols we need. 13997 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13998 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13999 cat <<_LT_EOF > conftest.$ac_ext 14000/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 14001#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 14002/* DATA imports from DLLs on WIN32 con't be const, because runtime 14003 relocations are performed -- see ld's documentation on pseudo-relocs. */ 14004# define LT_DLSYM_CONST 14005#elif defined(__osf__) 14006/* This system does not cope well with relocations in const data. */ 14007# define LT_DLSYM_CONST 14008#else 14009# define LT_DLSYM_CONST const 14010#endif 14011 14012#ifdef __cplusplus 14013extern "C" { 14014#endif 14015 14016_LT_EOF 14017 # Now generate the symbol file. 14018 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 14019 14020 cat <<_LT_EOF >> conftest.$ac_ext 14021 14022/* The mapping between symbol names and symbols. */ 14023LT_DLSYM_CONST struct { 14024 const char *name; 14025 void *address; 14026} 14027lt__PROGRAM__LTX_preloaded_symbols[] = 14028{ 14029 { "@PROGRAM@", (void *) 0 }, 14030_LT_EOF 14031 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 14032 cat <<\_LT_EOF >> conftest.$ac_ext 14033 {0, (void *) 0} 14034}; 14035 14036/* This works around a problem in FreeBSD linker */ 14037#ifdef FREEBSD_WORKAROUND 14038static const void *lt_preloaded_setup() { 14039 return lt__PROGRAM__LTX_preloaded_symbols; 14040} 14041#endif 14042 14043#ifdef __cplusplus 14044} 14045#endif 14046_LT_EOF 14047 # Now try linking the two files. 14048 mv conftest.$ac_objext conftstm.$ac_objext 14049 lt_globsym_save_LIBS=$LIBS 14050 lt_globsym_save_CFLAGS=$CFLAGS 14051 LIBS="conftstm.$ac_objext" 14052 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 14053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14054 (eval $ac_link) 2>&5 14055 ac_status=$? 14056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14057 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 14058 pipe_works=yes 14059 fi 14060 LIBS=$lt_globsym_save_LIBS 14061 CFLAGS=$lt_globsym_save_CFLAGS 14062 else 14063 echo "cannot find nm_test_func in $nlist" >&5 14064 fi 14065 else 14066 echo "cannot find nm_test_var in $nlist" >&5 14067 fi 14068 else 14069 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 14070 fi 14071 else 14072 echo "$progname: failed program was:" >&5 14073 cat conftest.$ac_ext >&5 14074 fi 14075 rm -rf conftest* conftst* 14076 14077 # Do not use the global_symbol_pipe unless it works. 14078 if test "$pipe_works" = yes; then 14079 break 14080 else 14081 lt_cv_sys_global_symbol_pipe= 14082 fi 14083done 14084 14085fi 14086 14087if test -z "$lt_cv_sys_global_symbol_pipe"; then 14088 lt_cv_sys_global_symbol_to_cdecl= 14089fi 14090if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14092$as_echo "failed" >&6; } 14093else 14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 14095$as_echo "ok" >&6; } 14096fi 14097 14098# Response file support. 14099if test "$lt_cv_nm_interface" = "MS dumpbin"; then 14100 nm_file_list_spec='@' 14101elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 14102 nm_file_list_spec='@' 14103fi 14104 14105 14106 14107 14108 14109 14110 14111 14112 14113 14114 14115 14116 14117 14118 14119 14120 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 14132$as_echo_n "checking for sysroot... " >&6; } 14133 14134# Check whether --with-sysroot was given. 14135if test "${with_sysroot+set}" = set; then : 14136 withval=$with_sysroot; 14137else 14138 with_sysroot=no 14139fi 14140 14141 14142lt_sysroot= 14143case ${with_sysroot} in #( 14144 yes) 14145 if test "$GCC" = yes; then 14146 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 14147 fi 14148 ;; #( 14149 /*) 14150 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 14151 ;; #( 14152 no|'') 14153 ;; #( 14154 *) 14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 14156$as_echo "${with_sysroot}" >&6; } 14157 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 14158 ;; 14159esac 14160 14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 14162$as_echo "${lt_sysroot:-no}" >&6; } 14163 14164 14165 14166 14167 14168# Check whether --enable-libtool-lock was given. 14169if test "${enable_libtool_lock+set}" = set; then : 14170 enableval=$enable_libtool_lock; 14171fi 14172 14173test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 14174 14175# Some flags need to be propagated to the compiler or linker for good 14176# libtool support. 14177case $host in 14178ia64-*-hpux*) 14179 # Find out which ABI we are using. 14180 echo 'int i;' > conftest.$ac_ext 14181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14182 (eval $ac_compile) 2>&5 14183 ac_status=$? 14184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14185 test $ac_status = 0; }; then 14186 case `/usr/bin/file conftest.$ac_objext` in 14187 *ELF-32*) 14188 HPUX_IA64_MODE="32" 14189 ;; 14190 *ELF-64*) 14191 HPUX_IA64_MODE="64" 14192 ;; 14193 esac 14194 fi 14195 rm -rf conftest* 14196 ;; 14197*-*-irix6*) 14198 # Find out which ABI we are using. 14199 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14201 (eval $ac_compile) 2>&5 14202 ac_status=$? 14203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14204 test $ac_status = 0; }; then 14205 if test "$lt_cv_prog_gnu_ld" = yes; then 14206 case `/usr/bin/file conftest.$ac_objext` in 14207 *32-bit*) 14208 LD="${LD-ld} -melf32bsmip" 14209 ;; 14210 *N32*) 14211 LD="${LD-ld} -melf32bmipn32" 14212 ;; 14213 *64-bit*) 14214 LD="${LD-ld} -melf64bmip" 14215 ;; 14216 esac 14217 else 14218 case `/usr/bin/file conftest.$ac_objext` in 14219 *32-bit*) 14220 LD="${LD-ld} -32" 14221 ;; 14222 *N32*) 14223 LD="${LD-ld} -n32" 14224 ;; 14225 *64-bit*) 14226 LD="${LD-ld} -64" 14227 ;; 14228 esac 14229 fi 14230 fi 14231 rm -rf conftest* 14232 ;; 14233 14234x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 14235s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 14236 # Find out which ABI we are using. 14237 echo 'int i;' > conftest.$ac_ext 14238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14239 (eval $ac_compile) 2>&5 14240 ac_status=$? 14241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14242 test $ac_status = 0; }; then 14243 case `/usr/bin/file conftest.o` in 14244 *32-bit*) 14245 case $host in 14246 x86_64-*kfreebsd*-gnu) 14247 LD="${LD-ld} -m elf_i386_fbsd" 14248 ;; 14249 x86_64-*linux*) 14250 case `/usr/bin/file conftest.o` in 14251 *x86-64*) 14252 LD="${LD-ld} -m elf32_x86_64" 14253 ;; 14254 *) 14255 LD="${LD-ld} -m elf_i386" 14256 ;; 14257 esac 14258 ;; 14259 powerpc64le-*) 14260 LD="${LD-ld} -m elf32lppclinux" 14261 ;; 14262 powerpc64-*) 14263 LD="${LD-ld} -m elf32ppclinux" 14264 ;; 14265 s390x-*linux*) 14266 LD="${LD-ld} -m elf_s390" 14267 ;; 14268 sparc64-*linux*) 14269 LD="${LD-ld} -m elf32_sparc" 14270 ;; 14271 esac 14272 ;; 14273 *64-bit*) 14274 case $host in 14275 x86_64-*kfreebsd*-gnu) 14276 LD="${LD-ld} -m elf_x86_64_fbsd" 14277 ;; 14278 x86_64-*linux*) 14279 LD="${LD-ld} -m elf_x86_64" 14280 ;; 14281 powerpcle-*) 14282 LD="${LD-ld} -m elf64lppc" 14283 ;; 14284 powerpc-*) 14285 LD="${LD-ld} -m elf64ppc" 14286 ;; 14287 s390*-*linux*|s390*-*tpf*) 14288 LD="${LD-ld} -m elf64_s390" 14289 ;; 14290 sparc*-*linux*) 14291 LD="${LD-ld} -m elf64_sparc" 14292 ;; 14293 esac 14294 ;; 14295 esac 14296 fi 14297 rm -rf conftest* 14298 ;; 14299 14300*-*-sco3.2v5*) 14301 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 14302 SAVE_CFLAGS="$CFLAGS" 14303 CFLAGS="$CFLAGS -belf" 14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 14305$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 14306if ${lt_cv_cc_needs_belf+:} false; then : 14307 $as_echo_n "(cached) " >&6 14308else 14309 ac_ext=c 14310ac_cpp='$CPP $CPPFLAGS' 14311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14313ac_compiler_gnu=$ac_cv_c_compiler_gnu 14314 14315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14316/* end confdefs.h. */ 14317 14318int 14319main () 14320{ 14321 14322 ; 14323 return 0; 14324} 14325_ACEOF 14326if ac_fn_c_try_link "$LINENO"; then : 14327 lt_cv_cc_needs_belf=yes 14328else 14329 lt_cv_cc_needs_belf=no 14330fi 14331rm -f core conftest.err conftest.$ac_objext \ 14332 conftest$ac_exeext conftest.$ac_ext 14333 ac_ext=c 14334ac_cpp='$CPP $CPPFLAGS' 14335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14337ac_compiler_gnu=$ac_cv_c_compiler_gnu 14338 14339fi 14340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 14341$as_echo "$lt_cv_cc_needs_belf" >&6; } 14342 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 14343 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14344 CFLAGS="$SAVE_CFLAGS" 14345 fi 14346 ;; 14347*-*solaris*) 14348 # Find out which ABI we are using. 14349 echo 'int i;' > conftest.$ac_ext 14350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14351 (eval $ac_compile) 2>&5 14352 ac_status=$? 14353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14354 test $ac_status = 0; }; then 14355 case `/usr/bin/file conftest.o` in 14356 *64-bit*) 14357 case $lt_cv_prog_gnu_ld in 14358 yes*) 14359 case $host in 14360 i?86-*-solaris*) 14361 LD="${LD-ld} -m elf_x86_64" 14362 ;; 14363 sparc*-*-solaris*) 14364 LD="${LD-ld} -m elf64_sparc" 14365 ;; 14366 esac 14367 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 14368 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 14369 LD="${LD-ld}_sol2" 14370 fi 14371 ;; 14372 *) 14373 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14374 LD="${LD-ld} -64" 14375 fi 14376 ;; 14377 esac 14378 ;; 14379 esac 14380 fi 14381 rm -rf conftest* 14382 ;; 14383esac 14384 14385need_locks="$enable_libtool_lock" 14386 14387if test -n "$ac_tool_prefix"; then 14388 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 14389set dummy ${ac_tool_prefix}mt; ac_word=$2 14390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14391$as_echo_n "checking for $ac_word... " >&6; } 14392if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 14393 $as_echo_n "(cached) " >&6 14394else 14395 if test -n "$MANIFEST_TOOL"; then 14396 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 14397else 14398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14399for as_dir in $PATH 14400do 14401 IFS=$as_save_IFS 14402 test -z "$as_dir" && as_dir=. 14403 for ac_exec_ext in '' $ac_executable_extensions; do 14404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14405 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 14406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14407 break 2 14408 fi 14409done 14410 done 14411IFS=$as_save_IFS 14412 14413fi 14414fi 14415MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 14416if test -n "$MANIFEST_TOOL"; then 14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 14418$as_echo "$MANIFEST_TOOL" >&6; } 14419else 14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14421$as_echo "no" >&6; } 14422fi 14423 14424 14425fi 14426if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 14427 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 14428 # Extract the first word of "mt", so it can be a program name with args. 14429set dummy mt; ac_word=$2 14430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14431$as_echo_n "checking for $ac_word... " >&6; } 14432if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 14433 $as_echo_n "(cached) " >&6 14434else 14435 if test -n "$ac_ct_MANIFEST_TOOL"; then 14436 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 14437else 14438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14439for as_dir in $PATH 14440do 14441 IFS=$as_save_IFS 14442 test -z "$as_dir" && as_dir=. 14443 for ac_exec_ext in '' $ac_executable_extensions; do 14444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14445 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 14446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14447 break 2 14448 fi 14449done 14450 done 14451IFS=$as_save_IFS 14452 14453fi 14454fi 14455ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 14456if test -n "$ac_ct_MANIFEST_TOOL"; then 14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 14458$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 14459else 14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14461$as_echo "no" >&6; } 14462fi 14463 14464 if test "x$ac_ct_MANIFEST_TOOL" = x; then 14465 MANIFEST_TOOL=":" 14466 else 14467 case $cross_compiling:$ac_tool_warned in 14468yes:) 14469{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14470$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14471ac_tool_warned=yes ;; 14472esac 14473 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 14474 fi 14475else 14476 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 14477fi 14478 14479test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 14480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 14481$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 14482if ${lt_cv_path_mainfest_tool+:} false; then : 14483 $as_echo_n "(cached) " >&6 14484else 14485 lt_cv_path_mainfest_tool=no 14486 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 14487 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 14488 cat conftest.err >&5 14489 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 14490 lt_cv_path_mainfest_tool=yes 14491 fi 14492 rm -f conftest* 14493fi 14494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 14495$as_echo "$lt_cv_path_mainfest_tool" >&6; } 14496if test "x$lt_cv_path_mainfest_tool" != xyes; then 14497 MANIFEST_TOOL=: 14498fi 14499 14500 14501 14502 14503 14504 14505 case $host_os in 14506 rhapsody* | darwin*) 14507 if test -n "$ac_tool_prefix"; then 14508 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 14509set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 14510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14511$as_echo_n "checking for $ac_word... " >&6; } 14512if ${ac_cv_prog_DSYMUTIL+:} false; then : 14513 $as_echo_n "(cached) " >&6 14514else 14515 if test -n "$DSYMUTIL"; then 14516 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 14517else 14518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14519for as_dir in $PATH 14520do 14521 IFS=$as_save_IFS 14522 test -z "$as_dir" && as_dir=. 14523 for ac_exec_ext in '' $ac_executable_extensions; do 14524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14525 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 14526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14527 break 2 14528 fi 14529done 14530 done 14531IFS=$as_save_IFS 14532 14533fi 14534fi 14535DSYMUTIL=$ac_cv_prog_DSYMUTIL 14536if test -n "$DSYMUTIL"; then 14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 14538$as_echo "$DSYMUTIL" >&6; } 14539else 14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14541$as_echo "no" >&6; } 14542fi 14543 14544 14545fi 14546if test -z "$ac_cv_prog_DSYMUTIL"; then 14547 ac_ct_DSYMUTIL=$DSYMUTIL 14548 # Extract the first word of "dsymutil", so it can be a program name with args. 14549set dummy dsymutil; ac_word=$2 14550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14551$as_echo_n "checking for $ac_word... " >&6; } 14552if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 14553 $as_echo_n "(cached) " >&6 14554else 14555 if test -n "$ac_ct_DSYMUTIL"; then 14556 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 14557else 14558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14559for as_dir in $PATH 14560do 14561 IFS=$as_save_IFS 14562 test -z "$as_dir" && as_dir=. 14563 for ac_exec_ext in '' $ac_executable_extensions; do 14564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14565 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 14566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14567 break 2 14568 fi 14569done 14570 done 14571IFS=$as_save_IFS 14572 14573fi 14574fi 14575ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 14576if test -n "$ac_ct_DSYMUTIL"; then 14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 14578$as_echo "$ac_ct_DSYMUTIL" >&6; } 14579else 14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14581$as_echo "no" >&6; } 14582fi 14583 14584 if test "x$ac_ct_DSYMUTIL" = x; then 14585 DSYMUTIL=":" 14586 else 14587 case $cross_compiling:$ac_tool_warned in 14588yes:) 14589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14591ac_tool_warned=yes ;; 14592esac 14593 DSYMUTIL=$ac_ct_DSYMUTIL 14594 fi 14595else 14596 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 14597fi 14598 14599 if test -n "$ac_tool_prefix"; then 14600 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 14601set dummy ${ac_tool_prefix}nmedit; ac_word=$2 14602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14603$as_echo_n "checking for $ac_word... " >&6; } 14604if ${ac_cv_prog_NMEDIT+:} false; then : 14605 $as_echo_n "(cached) " >&6 14606else 14607 if test -n "$NMEDIT"; then 14608 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 14609else 14610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14611for as_dir in $PATH 14612do 14613 IFS=$as_save_IFS 14614 test -z "$as_dir" && as_dir=. 14615 for ac_exec_ext in '' $ac_executable_extensions; do 14616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14617 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 14618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14619 break 2 14620 fi 14621done 14622 done 14623IFS=$as_save_IFS 14624 14625fi 14626fi 14627NMEDIT=$ac_cv_prog_NMEDIT 14628if test -n "$NMEDIT"; then 14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 14630$as_echo "$NMEDIT" >&6; } 14631else 14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14633$as_echo "no" >&6; } 14634fi 14635 14636 14637fi 14638if test -z "$ac_cv_prog_NMEDIT"; then 14639 ac_ct_NMEDIT=$NMEDIT 14640 # Extract the first word of "nmedit", so it can be a program name with args. 14641set dummy nmedit; ac_word=$2 14642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14643$as_echo_n "checking for $ac_word... " >&6; } 14644if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 14645 $as_echo_n "(cached) " >&6 14646else 14647 if test -n "$ac_ct_NMEDIT"; then 14648 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14649else 14650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14651for as_dir in $PATH 14652do 14653 IFS=$as_save_IFS 14654 test -z "$as_dir" && as_dir=. 14655 for ac_exec_ext in '' $ac_executable_extensions; do 14656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14657 ac_cv_prog_ac_ct_NMEDIT="nmedit" 14658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14659 break 2 14660 fi 14661done 14662 done 14663IFS=$as_save_IFS 14664 14665fi 14666fi 14667ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14668if test -n "$ac_ct_NMEDIT"; then 14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 14670$as_echo "$ac_ct_NMEDIT" >&6; } 14671else 14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14673$as_echo "no" >&6; } 14674fi 14675 14676 if test "x$ac_ct_NMEDIT" = x; then 14677 NMEDIT=":" 14678 else 14679 case $cross_compiling:$ac_tool_warned in 14680yes:) 14681{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14683ac_tool_warned=yes ;; 14684esac 14685 NMEDIT=$ac_ct_NMEDIT 14686 fi 14687else 14688 NMEDIT="$ac_cv_prog_NMEDIT" 14689fi 14690 14691 if test -n "$ac_tool_prefix"; then 14692 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 14693set dummy ${ac_tool_prefix}lipo; ac_word=$2 14694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14695$as_echo_n "checking for $ac_word... " >&6; } 14696if ${ac_cv_prog_LIPO+:} false; then : 14697 $as_echo_n "(cached) " >&6 14698else 14699 if test -n "$LIPO"; then 14700 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 14701else 14702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14703for as_dir in $PATH 14704do 14705 IFS=$as_save_IFS 14706 test -z "$as_dir" && as_dir=. 14707 for ac_exec_ext in '' $ac_executable_extensions; do 14708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14709 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 14710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14711 break 2 14712 fi 14713done 14714 done 14715IFS=$as_save_IFS 14716 14717fi 14718fi 14719LIPO=$ac_cv_prog_LIPO 14720if test -n "$LIPO"; then 14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14722$as_echo "$LIPO" >&6; } 14723else 14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14725$as_echo "no" >&6; } 14726fi 14727 14728 14729fi 14730if test -z "$ac_cv_prog_LIPO"; then 14731 ac_ct_LIPO=$LIPO 14732 # Extract the first word of "lipo", so it can be a program name with args. 14733set dummy lipo; ac_word=$2 14734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14735$as_echo_n "checking for $ac_word... " >&6; } 14736if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 14737 $as_echo_n "(cached) " >&6 14738else 14739 if test -n "$ac_ct_LIPO"; then 14740 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14741else 14742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14743for as_dir in $PATH 14744do 14745 IFS=$as_save_IFS 14746 test -z "$as_dir" && as_dir=. 14747 for ac_exec_ext in '' $ac_executable_extensions; do 14748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14749 ac_cv_prog_ac_ct_LIPO="lipo" 14750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14751 break 2 14752 fi 14753done 14754 done 14755IFS=$as_save_IFS 14756 14757fi 14758fi 14759ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14760if test -n "$ac_ct_LIPO"; then 14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14762$as_echo "$ac_ct_LIPO" >&6; } 14763else 14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14765$as_echo "no" >&6; } 14766fi 14767 14768 if test "x$ac_ct_LIPO" = x; then 14769 LIPO=":" 14770 else 14771 case $cross_compiling:$ac_tool_warned in 14772yes:) 14773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14775ac_tool_warned=yes ;; 14776esac 14777 LIPO=$ac_ct_LIPO 14778 fi 14779else 14780 LIPO="$ac_cv_prog_LIPO" 14781fi 14782 14783 if test -n "$ac_tool_prefix"; then 14784 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14785set dummy ${ac_tool_prefix}otool; ac_word=$2 14786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14787$as_echo_n "checking for $ac_word... " >&6; } 14788if ${ac_cv_prog_OTOOL+:} false; then : 14789 $as_echo_n "(cached) " >&6 14790else 14791 if test -n "$OTOOL"; then 14792 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14793else 14794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14795for as_dir in $PATH 14796do 14797 IFS=$as_save_IFS 14798 test -z "$as_dir" && as_dir=. 14799 for ac_exec_ext in '' $ac_executable_extensions; do 14800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14801 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14803 break 2 14804 fi 14805done 14806 done 14807IFS=$as_save_IFS 14808 14809fi 14810fi 14811OTOOL=$ac_cv_prog_OTOOL 14812if test -n "$OTOOL"; then 14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14814$as_echo "$OTOOL" >&6; } 14815else 14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14817$as_echo "no" >&6; } 14818fi 14819 14820 14821fi 14822if test -z "$ac_cv_prog_OTOOL"; then 14823 ac_ct_OTOOL=$OTOOL 14824 # Extract the first word of "otool", so it can be a program name with args. 14825set dummy otool; ac_word=$2 14826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14827$as_echo_n "checking for $ac_word... " >&6; } 14828if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 14829 $as_echo_n "(cached) " >&6 14830else 14831 if test -n "$ac_ct_OTOOL"; then 14832 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14833else 14834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14835for as_dir in $PATH 14836do 14837 IFS=$as_save_IFS 14838 test -z "$as_dir" && as_dir=. 14839 for ac_exec_ext in '' $ac_executable_extensions; do 14840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14841 ac_cv_prog_ac_ct_OTOOL="otool" 14842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14843 break 2 14844 fi 14845done 14846 done 14847IFS=$as_save_IFS 14848 14849fi 14850fi 14851ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14852if test -n "$ac_ct_OTOOL"; then 14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 14854$as_echo "$ac_ct_OTOOL" >&6; } 14855else 14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14857$as_echo "no" >&6; } 14858fi 14859 14860 if test "x$ac_ct_OTOOL" = x; then 14861 OTOOL=":" 14862 else 14863 case $cross_compiling:$ac_tool_warned in 14864yes:) 14865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14867ac_tool_warned=yes ;; 14868esac 14869 OTOOL=$ac_ct_OTOOL 14870 fi 14871else 14872 OTOOL="$ac_cv_prog_OTOOL" 14873fi 14874 14875 if test -n "$ac_tool_prefix"; then 14876 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 14877set dummy ${ac_tool_prefix}otool64; ac_word=$2 14878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14879$as_echo_n "checking for $ac_word... " >&6; } 14880if ${ac_cv_prog_OTOOL64+:} false; then : 14881 $as_echo_n "(cached) " >&6 14882else 14883 if test -n "$OTOOL64"; then 14884 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 14885else 14886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14887for as_dir in $PATH 14888do 14889 IFS=$as_save_IFS 14890 test -z "$as_dir" && as_dir=. 14891 for ac_exec_ext in '' $ac_executable_extensions; do 14892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14893 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 14894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14895 break 2 14896 fi 14897done 14898 done 14899IFS=$as_save_IFS 14900 14901fi 14902fi 14903OTOOL64=$ac_cv_prog_OTOOL64 14904if test -n "$OTOOL64"; then 14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 14906$as_echo "$OTOOL64" >&6; } 14907else 14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14909$as_echo "no" >&6; } 14910fi 14911 14912 14913fi 14914if test -z "$ac_cv_prog_OTOOL64"; then 14915 ac_ct_OTOOL64=$OTOOL64 14916 # Extract the first word of "otool64", so it can be a program name with args. 14917set dummy otool64; ac_word=$2 14918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14919$as_echo_n "checking for $ac_word... " >&6; } 14920if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 14921 $as_echo_n "(cached) " >&6 14922else 14923 if test -n "$ac_ct_OTOOL64"; then 14924 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 14925else 14926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14927for as_dir in $PATH 14928do 14929 IFS=$as_save_IFS 14930 test -z "$as_dir" && as_dir=. 14931 for ac_exec_ext in '' $ac_executable_extensions; do 14932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14933 ac_cv_prog_ac_ct_OTOOL64="otool64" 14934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14935 break 2 14936 fi 14937done 14938 done 14939IFS=$as_save_IFS 14940 14941fi 14942fi 14943ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 14944if test -n "$ac_ct_OTOOL64"; then 14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 14946$as_echo "$ac_ct_OTOOL64" >&6; } 14947else 14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14949$as_echo "no" >&6; } 14950fi 14951 14952 if test "x$ac_ct_OTOOL64" = x; then 14953 OTOOL64=":" 14954 else 14955 case $cross_compiling:$ac_tool_warned in 14956yes:) 14957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14959ac_tool_warned=yes ;; 14960esac 14961 OTOOL64=$ac_ct_OTOOL64 14962 fi 14963else 14964 OTOOL64="$ac_cv_prog_OTOOL64" 14965fi 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14994$as_echo_n "checking for -single_module linker flag... " >&6; } 14995if ${lt_cv_apple_cc_single_mod+:} false; then : 14996 $as_echo_n "(cached) " >&6 14997else 14998 lt_cv_apple_cc_single_mod=no 14999 if test -z "${LT_MULTI_MODULE}"; then 15000 # By default we will add the -single_module flag. You can override 15001 # by either setting the environment variable LT_MULTI_MODULE 15002 # non-empty at configure time, or by adding -multi_module to the 15003 # link flags. 15004 rm -rf libconftest.dylib* 15005 echo "int foo(void){return 1;}" > conftest.c 15006 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 15007-dynamiclib -Wl,-single_module conftest.c" >&5 15008 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 15009 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 15010 _lt_result=$? 15011 # If there is a non-empty error log, and "single_module" 15012 # appears in it, assume the flag caused a linker warning 15013 if test -s conftest.err && $GREP single_module conftest.err; then 15014 cat conftest.err >&5 15015 # Otherwise, if the output was created with a 0 exit code from 15016 # the compiler, it worked. 15017 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 15018 lt_cv_apple_cc_single_mod=yes 15019 else 15020 cat conftest.err >&5 15021 fi 15022 rm -rf libconftest.dylib* 15023 rm -f conftest.* 15024 fi 15025fi 15026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 15027$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 15028 15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 15030$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 15031if ${lt_cv_ld_exported_symbols_list+:} false; then : 15032 $as_echo_n "(cached) " >&6 15033else 15034 lt_cv_ld_exported_symbols_list=no 15035 save_LDFLAGS=$LDFLAGS 15036 echo "_main" > conftest.sym 15037 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 15038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15039/* end confdefs.h. */ 15040 15041int 15042main () 15043{ 15044 15045 ; 15046 return 0; 15047} 15048_ACEOF 15049if ac_fn_c_try_link "$LINENO"; then : 15050 lt_cv_ld_exported_symbols_list=yes 15051else 15052 lt_cv_ld_exported_symbols_list=no 15053fi 15054rm -f core conftest.err conftest.$ac_objext \ 15055 conftest$ac_exeext conftest.$ac_ext 15056 LDFLAGS="$save_LDFLAGS" 15057 15058fi 15059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 15060$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 15061 15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 15063$as_echo_n "checking for -force_load linker flag... " >&6; } 15064if ${lt_cv_ld_force_load+:} false; then : 15065 $as_echo_n "(cached) " >&6 15066else 15067 lt_cv_ld_force_load=no 15068 cat > conftest.c << _LT_EOF 15069int forced_loaded() { return 2;} 15070_LT_EOF 15071 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 15072 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 15073 echo "$AR cru libconftest.a conftest.o" >&5 15074 $AR cru libconftest.a conftest.o 2>&5 15075 echo "$RANLIB libconftest.a" >&5 15076 $RANLIB libconftest.a 2>&5 15077 cat > conftest.c << _LT_EOF 15078int main() { return 0;} 15079_LT_EOF 15080 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 15081 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 15082 _lt_result=$? 15083 if test -s conftest.err && $GREP force_load conftest.err; then 15084 cat conftest.err >&5 15085 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 15086 lt_cv_ld_force_load=yes 15087 else 15088 cat conftest.err >&5 15089 fi 15090 rm -f conftest.err libconftest.a conftest conftest.c 15091 rm -rf conftest.dSYM 15092 15093fi 15094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 15095$as_echo "$lt_cv_ld_force_load" >&6; } 15096 case $host_os in 15097 rhapsody* | darwin1.[012]) 15098 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 15099 darwin1.*) 15100 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 15101 darwin*) # darwin 5.x on 15102 # if running on 10.5 or later, the deployment target defaults 15103 # to the OS version, if on x86, and 10.4, the deployment 15104 # target defaults to 10.4. Don't you love it? 15105 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 15106 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 15107 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 15108 10.[012]*) 15109 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 15110 10.*) 15111 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 15112 esac 15113 ;; 15114 esac 15115 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 15116 _lt_dar_single_mod='$single_module' 15117 fi 15118 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 15119 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 15120 else 15121 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 15122 fi 15123 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 15124 _lt_dsymutil='~$DSYMUTIL $lib || :' 15125 else 15126 _lt_dsymutil= 15127 fi 15128 ;; 15129 esac 15130 15131for ac_header in dlfcn.h 15132do : 15133 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 15134" 15135if test "x$ac_cv_header_dlfcn_h" = xyes; then : 15136 cat >>confdefs.h <<_ACEOF 15137#define HAVE_DLFCN_H 1 15138_ACEOF 15139 15140fi 15141 15142done 15143 15144 15145 15146 15147func_stripname_cnf () 15148{ 15149 case ${2} in 15150 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 15151 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 15152 esac 15153} # func_stripname_cnf 15154 15155 15156 15157 15158 15159# Set options 15160 15161 15162 15163 enable_dlopen=no 15164 15165 15166 enable_win32_dll=no 15167 15168 15169 # Check whether --enable-shared was given. 15170if test "${enable_shared+set}" = set; then : 15171 enableval=$enable_shared; p=${PACKAGE-default} 15172 case $enableval in 15173 yes) enable_shared=yes ;; 15174 no) enable_shared=no ;; 15175 *) 15176 enable_shared=no 15177 # Look at the argument we got. We use all the common list separators. 15178 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 15179 for pkg in $enableval; do 15180 IFS="$lt_save_ifs" 15181 if test "X$pkg" = "X$p"; then 15182 enable_shared=yes 15183 fi 15184 done 15185 IFS="$lt_save_ifs" 15186 ;; 15187 esac 15188else 15189 enable_shared=yes 15190fi 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 # Check whether --enable-static was given. 15201if test "${enable_static+set}" = set; then : 15202 enableval=$enable_static; p=${PACKAGE-default} 15203 case $enableval in 15204 yes) enable_static=yes ;; 15205 no) enable_static=no ;; 15206 *) 15207 enable_static=no 15208 # Look at the argument we got. We use all the common list separators. 15209 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 15210 for pkg in $enableval; do 15211 IFS="$lt_save_ifs" 15212 if test "X$pkg" = "X$p"; then 15213 enable_static=yes 15214 fi 15215 done 15216 IFS="$lt_save_ifs" 15217 ;; 15218 esac 15219else 15220 enable_static=yes 15221fi 15222 15223 15224 15225 15226 15227 15228 15229 15230 15231 15232# Check whether --with-pic was given. 15233if test "${with_pic+set}" = set; then : 15234 withval=$with_pic; lt_p=${PACKAGE-default} 15235 case $withval in 15236 yes|no) pic_mode=$withval ;; 15237 *) 15238 pic_mode=default 15239 # Look at the argument we got. We use all the common list separators. 15240 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 15241 for lt_pkg in $withval; do 15242 IFS="$lt_save_ifs" 15243 if test "X$lt_pkg" = "X$lt_p"; then 15244 pic_mode=yes 15245 fi 15246 done 15247 IFS="$lt_save_ifs" 15248 ;; 15249 esac 15250else 15251 pic_mode=default 15252fi 15253 15254 15255test -z "$pic_mode" && pic_mode=default 15256 15257 15258 15259 15260 15261 15262 15263 # Check whether --enable-fast-install was given. 15264if test "${enable_fast_install+set}" = set; then : 15265 enableval=$enable_fast_install; p=${PACKAGE-default} 15266 case $enableval in 15267 yes) enable_fast_install=yes ;; 15268 no) enable_fast_install=no ;; 15269 *) 15270 enable_fast_install=no 15271 # Look at the argument we got. We use all the common list separators. 15272 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 15273 for pkg in $enableval; do 15274 IFS="$lt_save_ifs" 15275 if test "X$pkg" = "X$p"; then 15276 enable_fast_install=yes 15277 fi 15278 done 15279 IFS="$lt_save_ifs" 15280 ;; 15281 esac 15282else 15283 enable_fast_install=yes 15284fi 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295 15296# This can be used to rebuild libtool when needed 15297LIBTOOL_DEPS="$ltmain" 15298 15299# Always use our own libtool. 15300LIBTOOL='$(SHELL) $(top_builddir)/libtool' 15301 15302 15303 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331test -z "$LN_S" && LN_S="ln -s" 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346if test -n "${ZSH_VERSION+set}" ; then 15347 setopt NO_GLOB_SUBST 15348fi 15349 15350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 15351$as_echo_n "checking for objdir... " >&6; } 15352if ${lt_cv_objdir+:} false; then : 15353 $as_echo_n "(cached) " >&6 15354else 15355 rm -f .libs 2>/dev/null 15356mkdir .libs 2>/dev/null 15357if test -d .libs; then 15358 lt_cv_objdir=.libs 15359else 15360 # MS-DOS does not allow filenames that begin with a dot. 15361 lt_cv_objdir=_libs 15362fi 15363rmdir .libs 2>/dev/null 15364fi 15365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 15366$as_echo "$lt_cv_objdir" >&6; } 15367objdir=$lt_cv_objdir 15368 15369 15370 15371 15372 15373cat >>confdefs.h <<_ACEOF 15374#define LT_OBJDIR "$lt_cv_objdir/" 15375_ACEOF 15376 15377 15378 15379 15380case $host_os in 15381aix3*) 15382 # AIX sometimes has problems with the GCC collect2 program. For some 15383 # reason, if we set the COLLECT_NAMES environment variable, the problems 15384 # vanish in a puff of smoke. 15385 if test "X${COLLECT_NAMES+set}" != Xset; then 15386 COLLECT_NAMES= 15387 export COLLECT_NAMES 15388 fi 15389 ;; 15390esac 15391 15392# Global variables: 15393ofile=libtool 15394can_build_shared=yes 15395 15396# All known linkers require a `.a' archive for static linking (except MSVC, 15397# which needs '.lib'). 15398libext=a 15399 15400with_gnu_ld="$lt_cv_prog_gnu_ld" 15401 15402old_CC="$CC" 15403old_CFLAGS="$CFLAGS" 15404 15405# Set sane defaults for various variables 15406test -z "$CC" && CC=cc 15407test -z "$LTCC" && LTCC=$CC 15408test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 15409test -z "$LD" && LD=ld 15410test -z "$ac_objext" && ac_objext=o 15411 15412for cc_temp in $compiler""; do 15413 case $cc_temp in 15414 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15415 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15416 \-*) ;; 15417 *) break;; 15418 esac 15419done 15420cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15421 15422 15423# Only perform the check for file, if the check method requires it 15424test -z "$MAGIC_CMD" && MAGIC_CMD=file 15425case $deplibs_check_method in 15426file_magic*) 15427 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 15429$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 15430if ${lt_cv_path_MAGIC_CMD+:} false; then : 15431 $as_echo_n "(cached) " >&6 15432else 15433 case $MAGIC_CMD in 15434[\\/*] | ?:[\\/]*) 15435 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 15436 ;; 15437*) 15438 lt_save_MAGIC_CMD="$MAGIC_CMD" 15439 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 15440 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15441 for ac_dir in $ac_dummy; do 15442 IFS="$lt_save_ifs" 15443 test -z "$ac_dir" && ac_dir=. 15444 if test -f $ac_dir/${ac_tool_prefix}file; then 15445 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 15446 if test -n "$file_magic_test_file"; then 15447 case $deplibs_check_method in 15448 "file_magic "*) 15449 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15450 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 15451 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15452 $EGREP "$file_magic_regex" > /dev/null; then 15453 : 15454 else 15455 cat <<_LT_EOF 1>&2 15456 15457*** Warning: the command libtool uses to detect shared libraries, 15458*** $file_magic_cmd, produces output that libtool cannot recognize. 15459*** The result is that libtool may fail to recognize shared libraries 15460*** as such. This will affect the creation of libtool libraries that 15461*** depend on shared libraries, but programs linked with such libtool 15462*** libraries will work regardless of this problem. Nevertheless, you 15463*** may want to report the problem to your system manager and/or to 15464*** bug-libtool@gnu.org 15465 15466_LT_EOF 15467 fi ;; 15468 esac 15469 fi 15470 break 15471 fi 15472 done 15473 IFS="$lt_save_ifs" 15474 MAGIC_CMD="$lt_save_MAGIC_CMD" 15475 ;; 15476esac 15477fi 15478 15479MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 15480if test -n "$MAGIC_CMD"; then 15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15482$as_echo "$MAGIC_CMD" >&6; } 15483else 15484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15485$as_echo "no" >&6; } 15486fi 15487 15488 15489 15490 15491 15492if test -z "$lt_cv_path_MAGIC_CMD"; then 15493 if test -n "$ac_tool_prefix"; then 15494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 15495$as_echo_n "checking for file... " >&6; } 15496if ${lt_cv_path_MAGIC_CMD+:} false; then : 15497 $as_echo_n "(cached) " >&6 15498else 15499 case $MAGIC_CMD in 15500[\\/*] | ?:[\\/]*) 15501 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 15502 ;; 15503*) 15504 lt_save_MAGIC_CMD="$MAGIC_CMD" 15505 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 15506 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15507 for ac_dir in $ac_dummy; do 15508 IFS="$lt_save_ifs" 15509 test -z "$ac_dir" && ac_dir=. 15510 if test -f $ac_dir/file; then 15511 lt_cv_path_MAGIC_CMD="$ac_dir/file" 15512 if test -n "$file_magic_test_file"; then 15513 case $deplibs_check_method in 15514 "file_magic "*) 15515 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15516 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 15517 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15518 $EGREP "$file_magic_regex" > /dev/null; then 15519 : 15520 else 15521 cat <<_LT_EOF 1>&2 15522 15523*** Warning: the command libtool uses to detect shared libraries, 15524*** $file_magic_cmd, produces output that libtool cannot recognize. 15525*** The result is that libtool may fail to recognize shared libraries 15526*** as such. This will affect the creation of libtool libraries that 15527*** depend on shared libraries, but programs linked with such libtool 15528*** libraries will work regardless of this problem. Nevertheless, you 15529*** may want to report the problem to your system manager and/or to 15530*** bug-libtool@gnu.org 15531 15532_LT_EOF 15533 fi ;; 15534 esac 15535 fi 15536 break 15537 fi 15538 done 15539 IFS="$lt_save_ifs" 15540 MAGIC_CMD="$lt_save_MAGIC_CMD" 15541 ;; 15542esac 15543fi 15544 15545MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 15546if test -n "$MAGIC_CMD"; then 15547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15548$as_echo "$MAGIC_CMD" >&6; } 15549else 15550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15551$as_echo "no" >&6; } 15552fi 15553 15554 15555 else 15556 MAGIC_CMD=: 15557 fi 15558fi 15559 15560 fi 15561 ;; 15562esac 15563 15564# Use C for the default configuration in the libtool script 15565 15566lt_save_CC="$CC" 15567ac_ext=c 15568ac_cpp='$CPP $CPPFLAGS' 15569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15571ac_compiler_gnu=$ac_cv_c_compiler_gnu 15572 15573 15574# Source file extension for C test sources. 15575ac_ext=c 15576 15577# Object file extension for compiled C test sources. 15578objext=o 15579objext=$objext 15580 15581# Code to be used in simple compile tests 15582lt_simple_compile_test_code="int some_variable = 0;" 15583 15584# Code to be used in simple link tests 15585lt_simple_link_test_code='int main(){return(0);}' 15586 15587 15588 15589 15590 15591 15592 15593# If no C compiler was specified, use CC. 15594LTCC=${LTCC-"$CC"} 15595 15596# If no C compiler flags were specified, use CFLAGS. 15597LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15598 15599# Allow CC to be a program name with arguments. 15600compiler=$CC 15601 15602# Save the default compiler, since it gets overwritten when the other 15603# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 15604compiler_DEFAULT=$CC 15605 15606# save warnings/boilerplate of simple test code 15607ac_outfile=conftest.$ac_objext 15608echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15609eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15610_lt_compiler_boilerplate=`cat conftest.err` 15611$RM conftest* 15612 15613ac_outfile=conftest.$ac_objext 15614echo "$lt_simple_link_test_code" >conftest.$ac_ext 15615eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15616_lt_linker_boilerplate=`cat conftest.err` 15617$RM -r conftest* 15618 15619 15620## CAVEAT EMPTOR: 15621## There is no encapsulation within the following macros, do not change 15622## the running order or otherwise move them around unless you know exactly 15623## what you are doing... 15624if test -n "$compiler"; then 15625 15626lt_prog_compiler_no_builtin_flag= 15627 15628if test "$GCC" = yes; then 15629 case $cc_basename in 15630 nvcc*) 15631 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 15632 *) 15633 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 15634 esac 15635 15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15637$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 15638if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 15639 $as_echo_n "(cached) " >&6 15640else 15641 lt_cv_prog_compiler_rtti_exceptions=no 15642 ac_outfile=conftest.$ac_objext 15643 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15644 lt_compiler_flag="-fno-rtti -fno-exceptions" 15645 # Insert the option either (1) after the last *FLAGS variable, or 15646 # (2) before a word containing "conftest.", or (3) at the end. 15647 # Note that $ac_compile itself does not contain backslashes and begins 15648 # with a dollar sign (not a hyphen), so the echo should work correctly. 15649 # The option is referenced via a variable to avoid confusing sed. 15650 lt_compile=`echo "$ac_compile" | $SED \ 15651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15653 -e 's:$: $lt_compiler_flag:'` 15654 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15655 (eval "$lt_compile" 2>conftest.err) 15656 ac_status=$? 15657 cat conftest.err >&5 15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15659 if (exit $ac_status) && test -s "$ac_outfile"; then 15660 # The compiler can only warn and ignore the option if not recognized 15661 # So say no if there are warnings other than the usual output. 15662 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15663 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15664 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15665 lt_cv_prog_compiler_rtti_exceptions=yes 15666 fi 15667 fi 15668 $RM conftest* 15669 15670fi 15671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15672$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15673 15674if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 15675 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15676else 15677 : 15678fi 15679 15680fi 15681 15682 15683 15684 15685 15686 15687 lt_prog_compiler_wl= 15688lt_prog_compiler_pic= 15689lt_prog_compiler_static= 15690 15691 15692 if test "$GCC" = yes; then 15693 lt_prog_compiler_wl='-Wl,' 15694 lt_prog_compiler_static='-static' 15695 15696 case $host_os in 15697 aix*) 15698 # All AIX code is PIC. 15699 if test "$host_cpu" = ia64; then 15700 # AIX 5 now supports IA64 processor 15701 lt_prog_compiler_static='-Bstatic' 15702 fi 15703 ;; 15704 15705 amigaos*) 15706 case $host_cpu in 15707 powerpc) 15708 # see comment about AmigaOS4 .so support 15709 lt_prog_compiler_pic='-fPIC' 15710 ;; 15711 m68k) 15712 # FIXME: we need at least 68020 code to build shared libraries, but 15713 # adding the `-m68020' flag to GCC prevents building anything better, 15714 # like `-m68040'. 15715 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15716 ;; 15717 esac 15718 ;; 15719 15720 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15721 # PIC is the default for these OSes. 15722 ;; 15723 15724 mingw* | cygwin* | pw32* | os2* | cegcc*) 15725 # This hack is so that the source file can tell whether it is being 15726 # built for inclusion in a dll (and should export symbols for example). 15727 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15728 # (--disable-auto-import) libraries 15729 lt_prog_compiler_pic='-DDLL_EXPORT' 15730 ;; 15731 15732 darwin* | rhapsody*) 15733 # PIC is the default on this platform 15734 # Common symbols not allowed in MH_DYLIB files 15735 lt_prog_compiler_pic='-fno-common' 15736 ;; 15737 15738 haiku*) 15739 # PIC is the default for Haiku. 15740 # The "-static" flag exists, but is broken. 15741 lt_prog_compiler_static= 15742 ;; 15743 15744 hpux*) 15745 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15746 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15747 # sets the default TLS model and affects inlining. 15748 case $host_cpu in 15749 hppa*64*) 15750 # +Z the default 15751 ;; 15752 *) 15753 lt_prog_compiler_pic='-fPIC' 15754 ;; 15755 esac 15756 ;; 15757 15758 interix[3-9]*) 15759 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15760 # Instead, we relocate shared libraries at runtime. 15761 ;; 15762 15763 msdosdjgpp*) 15764 # Just because we use GCC doesn't mean we suddenly get shared libraries 15765 # on systems that don't support them. 15766 lt_prog_compiler_can_build_shared=no 15767 enable_shared=no 15768 ;; 15769 15770 *nto* | *qnx*) 15771 # QNX uses GNU C++, but need to define -shared option too, otherwise 15772 # it will coredump. 15773 lt_prog_compiler_pic='-fPIC -shared' 15774 ;; 15775 15776 sysv4*MP*) 15777 if test -d /usr/nec; then 15778 lt_prog_compiler_pic=-Kconform_pic 15779 fi 15780 ;; 15781 15782 *) 15783 lt_prog_compiler_pic='-fPIC' 15784 ;; 15785 esac 15786 15787 case $cc_basename in 15788 nvcc*) # Cuda Compiler Driver 2.2 15789 lt_prog_compiler_wl='-Xlinker ' 15790 if test -n "$lt_prog_compiler_pic"; then 15791 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 15792 fi 15793 ;; 15794 esac 15795 else 15796 # PORTME Check for flag to pass linker flags through the system compiler. 15797 case $host_os in 15798 aix*) 15799 lt_prog_compiler_wl='-Wl,' 15800 if test "$host_cpu" = ia64; then 15801 # AIX 5 now supports IA64 processor 15802 lt_prog_compiler_static='-Bstatic' 15803 else 15804 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 15805 fi 15806 ;; 15807 15808 mingw* | cygwin* | pw32* | os2* | cegcc*) 15809 # This hack is so that the source file can tell whether it is being 15810 # built for inclusion in a dll (and should export symbols for example). 15811 lt_prog_compiler_pic='-DDLL_EXPORT' 15812 ;; 15813 15814 hpux9* | hpux10* | hpux11*) 15815 lt_prog_compiler_wl='-Wl,' 15816 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15817 # not for PA HP-UX. 15818 case $host_cpu in 15819 hppa*64*|ia64*) 15820 # +Z the default 15821 ;; 15822 *) 15823 lt_prog_compiler_pic='+Z' 15824 ;; 15825 esac 15826 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15827 lt_prog_compiler_static='${wl}-a ${wl}archive' 15828 ;; 15829 15830 irix5* | irix6* | nonstopux*) 15831 lt_prog_compiler_wl='-Wl,' 15832 # PIC (with -KPIC) is the default. 15833 lt_prog_compiler_static='-non_shared' 15834 ;; 15835 15836 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15837 case $cc_basename in 15838 # old Intel for x86_64 which still supported -KPIC. 15839 ecc*) 15840 lt_prog_compiler_wl='-Wl,' 15841 lt_prog_compiler_pic='-KPIC' 15842 lt_prog_compiler_static='-static' 15843 ;; 15844 # icc used to be incompatible with GCC. 15845 # ICC 10 doesn't accept -KPIC any more. 15846 icc* | ifort*) 15847 lt_prog_compiler_wl='-Wl,' 15848 lt_prog_compiler_pic='-fPIC' 15849 lt_prog_compiler_static='-static' 15850 ;; 15851 # Lahey Fortran 8.1. 15852 lf95*) 15853 lt_prog_compiler_wl='-Wl,' 15854 lt_prog_compiler_pic='--shared' 15855 lt_prog_compiler_static='--static' 15856 ;; 15857 nagfor*) 15858 # NAG Fortran compiler 15859 lt_prog_compiler_wl='-Wl,-Wl,,' 15860 lt_prog_compiler_pic='-PIC' 15861 lt_prog_compiler_static='-Bstatic' 15862 ;; 15863 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 15864 # Portland Group compilers (*not* the Pentium gcc compiler, 15865 # which looks to be a dead project) 15866 lt_prog_compiler_wl='-Wl,' 15867 lt_prog_compiler_pic='-fpic' 15868 lt_prog_compiler_static='-Bstatic' 15869 ;; 15870 ccc*) 15871 lt_prog_compiler_wl='-Wl,' 15872 # All Alpha code is PIC. 15873 lt_prog_compiler_static='-non_shared' 15874 ;; 15875 xl* | bgxl* | bgf* | mpixl*) 15876 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 15877 lt_prog_compiler_wl='-Wl,' 15878 lt_prog_compiler_pic='-qpic' 15879 lt_prog_compiler_static='-qstaticlink' 15880 ;; 15881 *) 15882 case `$CC -V 2>&1 | sed 5q` in 15883 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 15884 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15885 lt_prog_compiler_pic='-KPIC' 15886 lt_prog_compiler_static='-Bstatic' 15887 lt_prog_compiler_wl='' 15888 ;; 15889 *Sun\ F* | *Sun*Fortran*) 15890 lt_prog_compiler_pic='-KPIC' 15891 lt_prog_compiler_static='-Bstatic' 15892 lt_prog_compiler_wl='-Qoption ld ' 15893 ;; 15894 *Sun\ C*) 15895 # Sun C 5.9 15896 lt_prog_compiler_pic='-KPIC' 15897 lt_prog_compiler_static='-Bstatic' 15898 lt_prog_compiler_wl='-Wl,' 15899 ;; 15900 *Intel*\ [CF]*Compiler*) 15901 lt_prog_compiler_wl='-Wl,' 15902 lt_prog_compiler_pic='-fPIC' 15903 lt_prog_compiler_static='-static' 15904 ;; 15905 *Portland\ Group*) 15906 lt_prog_compiler_wl='-Wl,' 15907 lt_prog_compiler_pic='-fpic' 15908 lt_prog_compiler_static='-Bstatic' 15909 ;; 15910 esac 15911 ;; 15912 esac 15913 ;; 15914 15915 newsos6) 15916 lt_prog_compiler_pic='-KPIC' 15917 lt_prog_compiler_static='-Bstatic' 15918 ;; 15919 15920 *nto* | *qnx*) 15921 # QNX uses GNU C++, but need to define -shared option too, otherwise 15922 # it will coredump. 15923 lt_prog_compiler_pic='-fPIC -shared' 15924 ;; 15925 15926 osf3* | osf4* | osf5*) 15927 lt_prog_compiler_wl='-Wl,' 15928 # All OSF/1 code is PIC. 15929 lt_prog_compiler_static='-non_shared' 15930 ;; 15931 15932 rdos*) 15933 lt_prog_compiler_static='-non_shared' 15934 ;; 15935 15936 solaris*) 15937 lt_prog_compiler_pic='-KPIC' 15938 lt_prog_compiler_static='-Bstatic' 15939 case $cc_basename in 15940 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15941 lt_prog_compiler_wl='-Qoption ld ';; 15942 *) 15943 lt_prog_compiler_wl='-Wl,';; 15944 esac 15945 ;; 15946 15947 sunos4*) 15948 lt_prog_compiler_wl='-Qoption ld ' 15949 lt_prog_compiler_pic='-PIC' 15950 lt_prog_compiler_static='-Bstatic' 15951 ;; 15952 15953 sysv4 | sysv4.2uw2* | sysv4.3*) 15954 lt_prog_compiler_wl='-Wl,' 15955 lt_prog_compiler_pic='-KPIC' 15956 lt_prog_compiler_static='-Bstatic' 15957 ;; 15958 15959 sysv4*MP*) 15960 if test -d /usr/nec ;then 15961 lt_prog_compiler_pic='-Kconform_pic' 15962 lt_prog_compiler_static='-Bstatic' 15963 fi 15964 ;; 15965 15966 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15967 lt_prog_compiler_wl='-Wl,' 15968 lt_prog_compiler_pic='-KPIC' 15969 lt_prog_compiler_static='-Bstatic' 15970 ;; 15971 15972 unicos*) 15973 lt_prog_compiler_wl='-Wl,' 15974 lt_prog_compiler_can_build_shared=no 15975 ;; 15976 15977 uts4*) 15978 lt_prog_compiler_pic='-pic' 15979 lt_prog_compiler_static='-Bstatic' 15980 ;; 15981 15982 *) 15983 lt_prog_compiler_can_build_shared=no 15984 ;; 15985 esac 15986 fi 15987 15988case $host_os in 15989 # For platforms which do not support PIC, -DPIC is meaningless: 15990 *djgpp*) 15991 lt_prog_compiler_pic= 15992 ;; 15993 *) 15994 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15995 ;; 15996esac 15997 15998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15999$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16000if ${lt_cv_prog_compiler_pic+:} false; then : 16001 $as_echo_n "(cached) " >&6 16002else 16003 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 16004fi 16005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 16006$as_echo "$lt_cv_prog_compiler_pic" >&6; } 16007lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 16008 16009# 16010# Check to make sure the PIC flag actually works. 16011# 16012if test -n "$lt_prog_compiler_pic"; then 16013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 16014$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 16015if ${lt_cv_prog_compiler_pic_works+:} false; then : 16016 $as_echo_n "(cached) " >&6 16017else 16018 lt_cv_prog_compiler_pic_works=no 16019 ac_outfile=conftest.$ac_objext 16020 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16021 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 16022 # Insert the option either (1) after the last *FLAGS variable, or 16023 # (2) before a word containing "conftest.", or (3) at the end. 16024 # Note that $ac_compile itself does not contain backslashes and begins 16025 # with a dollar sign (not a hyphen), so the echo should work correctly. 16026 # The option is referenced via a variable to avoid confusing sed. 16027 lt_compile=`echo "$ac_compile" | $SED \ 16028 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16029 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16030 -e 's:$: $lt_compiler_flag:'` 16031 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16032 (eval "$lt_compile" 2>conftest.err) 16033 ac_status=$? 16034 cat conftest.err >&5 16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16036 if (exit $ac_status) && test -s "$ac_outfile"; then 16037 # The compiler can only warn and ignore the option if not recognized 16038 # So say no if there are warnings other than the usual output. 16039 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16040 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16041 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16042 lt_cv_prog_compiler_pic_works=yes 16043 fi 16044 fi 16045 $RM conftest* 16046 16047fi 16048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 16049$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 16050 16051if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 16052 case $lt_prog_compiler_pic in 16053 "" | " "*) ;; 16054 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 16055 esac 16056else 16057 lt_prog_compiler_pic= 16058 lt_prog_compiler_can_build_shared=no 16059fi 16060 16061fi 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073# 16074# Check to make sure the static flag actually works. 16075# 16076wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 16077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16078$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16079if ${lt_cv_prog_compiler_static_works+:} false; then : 16080 $as_echo_n "(cached) " >&6 16081else 16082 lt_cv_prog_compiler_static_works=no 16083 save_LDFLAGS="$LDFLAGS" 16084 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16085 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16086 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16087 # The linker can only warn and ignore the option if not recognized 16088 # So say no if there are warnings 16089 if test -s conftest.err; then 16090 # Append any errors to the config.log. 16091 cat conftest.err 1>&5 16092 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16093 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16094 if diff conftest.exp conftest.er2 >/dev/null; then 16095 lt_cv_prog_compiler_static_works=yes 16096 fi 16097 else 16098 lt_cv_prog_compiler_static_works=yes 16099 fi 16100 fi 16101 $RM -r conftest* 16102 LDFLAGS="$save_LDFLAGS" 16103 16104fi 16105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 16106$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 16107 16108if test x"$lt_cv_prog_compiler_static_works" = xyes; then 16109 : 16110else 16111 lt_prog_compiler_static= 16112fi 16113 16114 16115 16116 16117 16118 16119 16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16121$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16122if ${lt_cv_prog_compiler_c_o+:} false; then : 16123 $as_echo_n "(cached) " >&6 16124else 16125 lt_cv_prog_compiler_c_o=no 16126 $RM -r conftest 2>/dev/null 16127 mkdir conftest 16128 cd conftest 16129 mkdir out 16130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16131 16132 lt_compiler_flag="-o out/conftest2.$ac_objext" 16133 # Insert the option either (1) after the last *FLAGS variable, or 16134 # (2) before a word containing "conftest.", or (3) at the end. 16135 # Note that $ac_compile itself does not contain backslashes and begins 16136 # with a dollar sign (not a hyphen), so the echo should work correctly. 16137 lt_compile=`echo "$ac_compile" | $SED \ 16138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16140 -e 's:$: $lt_compiler_flag:'` 16141 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16142 (eval "$lt_compile" 2>out/conftest.err) 16143 ac_status=$? 16144 cat out/conftest.err >&5 16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16146 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16147 then 16148 # The compiler can only warn and ignore the option if not recognized 16149 # So say no if there are warnings 16150 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16151 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16152 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16153 lt_cv_prog_compiler_c_o=yes 16154 fi 16155 fi 16156 chmod u+w . 2>&5 16157 $RM conftest* 16158 # SGI C++ compiler will create directory out/ii_files/ for 16159 # template instantiation 16160 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16161 $RM out/* && rmdir out 16162 cd .. 16163 $RM -r conftest 16164 $RM conftest* 16165 16166fi 16167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16168$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 16169 16170 16171 16172 16173 16174 16175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16176$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16177if ${lt_cv_prog_compiler_c_o+:} false; then : 16178 $as_echo_n "(cached) " >&6 16179else 16180 lt_cv_prog_compiler_c_o=no 16181 $RM -r conftest 2>/dev/null 16182 mkdir conftest 16183 cd conftest 16184 mkdir out 16185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16186 16187 lt_compiler_flag="-o out/conftest2.$ac_objext" 16188 # Insert the option either (1) after the last *FLAGS variable, or 16189 # (2) before a word containing "conftest.", or (3) at the end. 16190 # Note that $ac_compile itself does not contain backslashes and begins 16191 # with a dollar sign (not a hyphen), so the echo should work correctly. 16192 lt_compile=`echo "$ac_compile" | $SED \ 16193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16195 -e 's:$: $lt_compiler_flag:'` 16196 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16197 (eval "$lt_compile" 2>out/conftest.err) 16198 ac_status=$? 16199 cat out/conftest.err >&5 16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16201 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16202 then 16203 # The compiler can only warn and ignore the option if not recognized 16204 # So say no if there are warnings 16205 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16206 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16207 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16208 lt_cv_prog_compiler_c_o=yes 16209 fi 16210 fi 16211 chmod u+w . 2>&5 16212 $RM conftest* 16213 # SGI C++ compiler will create directory out/ii_files/ for 16214 # template instantiation 16215 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16216 $RM out/* && rmdir out 16217 cd .. 16218 $RM -r conftest 16219 $RM conftest* 16220 16221fi 16222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16223$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 16224 16225 16226 16227 16228hard_links="nottested" 16229if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 16230 # do not overwrite the value of need_locks provided by the user 16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16232$as_echo_n "checking if we can lock with hard links... " >&6; } 16233 hard_links=yes 16234 $RM conftest* 16235 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16236 touch conftest.a 16237 ln conftest.a conftest.b 2>&5 || hard_links=no 16238 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16240$as_echo "$hard_links" >&6; } 16241 if test "$hard_links" = no; then 16242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16243$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16244 need_locks=warn 16245 fi 16246else 16247 need_locks=no 16248fi 16249 16250 16251 16252 16253 16254 16255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16256$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16257 16258 runpath_var= 16259 allow_undefined_flag= 16260 always_export_symbols=no 16261 archive_cmds= 16262 archive_expsym_cmds= 16263 compiler_needs_object=no 16264 enable_shared_with_static_runtimes=no 16265 export_dynamic_flag_spec= 16266 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16267 hardcode_automatic=no 16268 hardcode_direct=no 16269 hardcode_direct_absolute=no 16270 hardcode_libdir_flag_spec= 16271 hardcode_libdir_separator= 16272 hardcode_minus_L=no 16273 hardcode_shlibpath_var=unsupported 16274 inherit_rpath=no 16275 link_all_deplibs=unknown 16276 module_cmds= 16277 module_expsym_cmds= 16278 old_archive_from_new_cmds= 16279 old_archive_from_expsyms_cmds= 16280 thread_safe_flag_spec= 16281 whole_archive_flag_spec= 16282 # include_expsyms should be a list of space-separated symbols to be *always* 16283 # included in the symbol list 16284 include_expsyms= 16285 # exclude_expsyms can be an extended regexp of symbols to exclude 16286 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16287 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16288 # as well as any symbol that contains `d'. 16289 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16290 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16291 # platforms (ab)use it in PIC code, but their linkers get confused if 16292 # the symbol is explicitly referenced. Since portable code cannot 16293 # rely on this symbol name, it's probably fine to never include it in 16294 # preloaded symbol tables. 16295 # Exclude shared library initialization/finalization symbols. 16296 extract_expsyms_cmds= 16297 16298 case $host_os in 16299 cygwin* | mingw* | pw32* | cegcc*) 16300 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16301 # When not using gcc, we currently assume that we are using 16302 # Microsoft Visual C++. 16303 if test "$GCC" != yes; then 16304 with_gnu_ld=no 16305 fi 16306 ;; 16307 interix*) 16308 # we just hope/assume this is gcc and not c89 (= MSVC++) 16309 with_gnu_ld=yes 16310 ;; 16311 openbsd*) 16312 with_gnu_ld=no 16313 ;; 16314 linux* | k*bsd*-gnu | gnu*) 16315 link_all_deplibs=no 16316 ;; 16317 esac 16318 16319 ld_shlibs=yes 16320 16321 # On some targets, GNU ld is compatible enough with the native linker 16322 # that we're better off using the native interface for both. 16323 lt_use_gnu_ld_interface=no 16324 if test "$with_gnu_ld" = yes; then 16325 case $host_os in 16326 aix*) 16327 # The AIX port of GNU ld has always aspired to compatibility 16328 # with the native linker. However, as the warning in the GNU ld 16329 # block says, versions before 2.19.5* couldn't really create working 16330 # shared libraries, regardless of the interface used. 16331 case `$LD -v 2>&1` in 16332 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 16333 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 16334 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 16335 *) 16336 lt_use_gnu_ld_interface=yes 16337 ;; 16338 esac 16339 ;; 16340 *) 16341 lt_use_gnu_ld_interface=yes 16342 ;; 16343 esac 16344 fi 16345 16346 if test "$lt_use_gnu_ld_interface" = yes; then 16347 # If archive_cmds runs LD, not CC, wlarc should be empty 16348 wlarc='${wl}' 16349 16350 # Set some defaults for GNU ld with shared library support. These 16351 # are reset later if shared libraries are not supported. Putting them 16352 # here allows them to be overridden if necessary. 16353 runpath_var=LD_RUN_PATH 16354 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16355 export_dynamic_flag_spec='${wl}--export-dynamic' 16356 # ancient GNU ld didn't support --whole-archive et. al. 16357 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 16358 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16359 else 16360 whole_archive_flag_spec= 16361 fi 16362 supports_anon_versioning=no 16363 case `$LD -v 2>&1` in 16364 *GNU\ gold*) supports_anon_versioning=yes ;; 16365 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16366 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16367 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16368 *\ 2.11.*) ;; # other 2.11 versions 16369 *) supports_anon_versioning=yes ;; 16370 esac 16371 16372 # See if GNU ld supports shared libraries. 16373 case $host_os in 16374 aix[3-9]*) 16375 # On AIX/PPC, the GNU linker is very broken 16376 if test "$host_cpu" != ia64; then 16377 ld_shlibs=no 16378 cat <<_LT_EOF 1>&2 16379 16380*** Warning: the GNU linker, at least up to release 2.19, is reported 16381*** to be unable to reliably create shared libraries on AIX. 16382*** Therefore, libtool is disabling shared libraries support. If you 16383*** really care for shared libraries, you may want to install binutils 16384*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 16385*** You will then need to restart the configuration process. 16386 16387_LT_EOF 16388 fi 16389 ;; 16390 16391 amigaos*) 16392 case $host_cpu in 16393 powerpc) 16394 # see comment about AmigaOS4 .so support 16395 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16396 archive_expsym_cmds='' 16397 ;; 16398 m68k) 16399 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)' 16400 hardcode_libdir_flag_spec='-L$libdir' 16401 hardcode_minus_L=yes 16402 ;; 16403 esac 16404 ;; 16405 16406 beos*) 16407 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16408 allow_undefined_flag=unsupported 16409 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16410 # support --undefined. This deserves some investigation. FIXME 16411 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16412 else 16413 ld_shlibs=no 16414 fi 16415 ;; 16416 16417 cygwin* | mingw* | pw32* | cegcc*) 16418 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 16419 # as there is no search path for DLLs. 16420 hardcode_libdir_flag_spec='-L$libdir' 16421 export_dynamic_flag_spec='${wl}--export-all-symbols' 16422 allow_undefined_flag=unsupported 16423 always_export_symbols=no 16424 enable_shared_with_static_runtimes=yes 16425 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' 16426 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16427 16428 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16429 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16430 # If the export-symbols file already is a .def file (1st line 16431 # is EXPORTS), use it as is; otherwise, prepend... 16432 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16433 cp $export_symbols $output_objdir/$soname.def; 16434 else 16435 echo EXPORTS > $output_objdir/$soname.def; 16436 cat $export_symbols >> $output_objdir/$soname.def; 16437 fi~ 16438 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16439 else 16440 ld_shlibs=no 16441 fi 16442 ;; 16443 16444 haiku*) 16445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16446 link_all_deplibs=yes 16447 ;; 16448 16449 interix[3-9]*) 16450 hardcode_direct=no 16451 hardcode_shlibpath_var=no 16452 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 16453 export_dynamic_flag_spec='${wl}-E' 16454 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16455 # Instead, shared libraries are loaded at an image base (0x10000000 by 16456 # default) and relocated if they conflict, which is a slow very memory 16457 # consuming and fragmenting process. To avoid this, we pick a random, 16458 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16459 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16460 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16461 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' 16462 ;; 16463 16464 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 16465 tmp_diet=no 16466 if test "$host_os" = linux-dietlibc; then 16467 case $cc_basename in 16468 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16469 esac 16470 fi 16471 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16472 && test "$tmp_diet" = no 16473 then 16474 tmp_addflag=' $pic_flag' 16475 tmp_sharedflag='-shared' 16476 case $cc_basename,$host_cpu in 16477 pgcc*) # Portland Group C compiler 16478 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' 16479 tmp_addflag=' $pic_flag' 16480 ;; 16481 pgf77* | pgf90* | pgf95* | pgfortran*) 16482 # Portland Group f77 and f90 compilers 16483 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' 16484 tmp_addflag=' $pic_flag -Mnomain' ;; 16485 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16486 tmp_addflag=' -i_dynamic' ;; 16487 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16488 tmp_addflag=' -i_dynamic -nofor_main' ;; 16489 ifc* | ifort*) # Intel Fortran compiler 16490 tmp_addflag=' -nofor_main' ;; 16491 lf95*) # Lahey Fortran 8.1 16492 whole_archive_flag_spec= 16493 tmp_sharedflag='--shared' ;; 16494 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16495 tmp_sharedflag='-qmkshrobj' 16496 tmp_addflag= ;; 16497 nvcc*) # Cuda Compiler Driver 2.2 16498 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' 16499 compiler_needs_object=yes 16500 ;; 16501 esac 16502 case `$CC -V 2>&1 | sed 5q` in 16503 *Sun\ C*) # Sun C 5.9 16504 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' 16505 compiler_needs_object=yes 16506 tmp_sharedflag='-G' ;; 16507 *Sun\ F*) # Sun Fortran 8.3 16508 tmp_sharedflag='-G' ;; 16509 esac 16510 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16511 16512 if test "x$supports_anon_versioning" = xyes; then 16513 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16514 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16515 echo "local: *; };" >> $output_objdir/$libname.ver~ 16516 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16517 fi 16518 16519 case $cc_basename in 16520 xlf* | bgf* | bgxlf* | mpixlf*) 16521 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16522 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 16523 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16524 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 16525 if test "x$supports_anon_versioning" = xyes; then 16526 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16527 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16528 echo "local: *; };" >> $output_objdir/$libname.ver~ 16529 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16530 fi 16531 ;; 16532 esac 16533 else 16534 ld_shlibs=no 16535 fi 16536 ;; 16537 16538 netbsd* | netbsdelf*-gnu) 16539 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16540 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16541 wlarc= 16542 else 16543 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16544 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16545 fi 16546 ;; 16547 16548 solaris*) 16549 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16550 ld_shlibs=no 16551 cat <<_LT_EOF 1>&2 16552 16553*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16554*** create shared libraries on Solaris systems. Therefore, libtool 16555*** is disabling shared libraries support. We urge you to upgrade GNU 16556*** binutils to release 2.9.1 or newer. Another option is to modify 16557*** your PATH or compiler configuration so that the native linker is 16558*** used, and then restart. 16559 16560_LT_EOF 16561 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16562 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16563 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16564 else 16565 ld_shlibs=no 16566 fi 16567 ;; 16568 16569 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16570 case `$LD -v 2>&1` in 16571 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16572 ld_shlibs=no 16573 cat <<_LT_EOF 1>&2 16574 16575*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16576*** reliably create shared libraries on SCO systems. Therefore, libtool 16577*** is disabling shared libraries support. We urge you to upgrade GNU 16578*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16579*** your PATH or compiler configuration so that the native linker is 16580*** used, and then restart. 16581 16582_LT_EOF 16583 ;; 16584 *) 16585 # For security reasons, it is highly recommended that you always 16586 # use absolute paths for naming shared libraries, and exclude the 16587 # DT_RUNPATH tag from executables and libraries. But doing so 16588 # requires that you compile everything twice, which is a pain. 16589 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16590 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16591 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16592 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16593 else 16594 ld_shlibs=no 16595 fi 16596 ;; 16597 esac 16598 ;; 16599 16600 sunos4*) 16601 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16602 wlarc= 16603 hardcode_direct=yes 16604 hardcode_shlibpath_var=no 16605 ;; 16606 16607 *) 16608 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16609 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16610 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16611 else 16612 ld_shlibs=no 16613 fi 16614 ;; 16615 esac 16616 16617 if test "$ld_shlibs" = no; then 16618 runpath_var= 16619 hardcode_libdir_flag_spec= 16620 export_dynamic_flag_spec= 16621 whole_archive_flag_spec= 16622 fi 16623 else 16624 # PORTME fill in a description of your system's linker (not GNU ld) 16625 case $host_os in 16626 aix3*) 16627 allow_undefined_flag=unsupported 16628 always_export_symbols=yes 16629 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' 16630 # Note: this linker hardcodes the directories in LIBPATH if there 16631 # are no directories specified by -L. 16632 hardcode_minus_L=yes 16633 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16634 # Neither direct hardcoding nor static linking is supported with a 16635 # broken collect2. 16636 hardcode_direct=unsupported 16637 fi 16638 ;; 16639 16640 aix[4-9]*) 16641 if test "$host_cpu" = ia64; then 16642 # On IA64, the linker does run time linking by default, so we don't 16643 # have to do anything special. 16644 aix_use_runtimelinking=no 16645 exp_sym_flag='-Bexport' 16646 no_entry_flag="" 16647 else 16648 # If we're using GNU nm, then we don't want the "-C" option. 16649 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16650 # Also, AIX nm treats weak defined symbols like other global 16651 # defined symbols, whereas GNU nm marks them as "W". 16652 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16653 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' 16654 else 16655 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' 16656 fi 16657 aix_use_runtimelinking=no 16658 16659 # Test if we are trying to use run time linking or normal 16660 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16661 # need to do runtime linking. 16662 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16663 for ld_flag in $LDFLAGS; do 16664 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16665 aix_use_runtimelinking=yes 16666 break 16667 fi 16668 done 16669 ;; 16670 esac 16671 16672 exp_sym_flag='-bexport' 16673 no_entry_flag='-bnoentry' 16674 fi 16675 16676 # When large executables or shared objects are built, AIX ld can 16677 # have problems creating the table of contents. If linking a library 16678 # or program results in "error TOC overflow" add -mminimal-toc to 16679 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16680 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16681 16682 archive_cmds='' 16683 hardcode_direct=yes 16684 hardcode_direct_absolute=yes 16685 hardcode_libdir_separator=':' 16686 link_all_deplibs=yes 16687 file_list_spec='${wl}-f,' 16688 16689 if test "$GCC" = yes; then 16690 case $host_os in aix4.[012]|aix4.[012].*) 16691 # We only want to do this on AIX 4.2 and lower, the check 16692 # below for broken collect2 doesn't work under 4.3+ 16693 collect2name=`${CC} -print-prog-name=collect2` 16694 if test -f "$collect2name" && 16695 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16696 then 16697 # We have reworked collect2 16698 : 16699 else 16700 # We have old collect2 16701 hardcode_direct=unsupported 16702 # It fails to find uninstalled libraries when the uninstalled 16703 # path is not listed in the libpath. Setting hardcode_minus_L 16704 # to unsupported forces relinking 16705 hardcode_minus_L=yes 16706 hardcode_libdir_flag_spec='-L$libdir' 16707 hardcode_libdir_separator= 16708 fi 16709 ;; 16710 esac 16711 shared_flag='-shared' 16712 if test "$aix_use_runtimelinking" = yes; then 16713 shared_flag="$shared_flag "'${wl}-G' 16714 fi 16715 link_all_deplibs=no 16716 else 16717 # not using gcc 16718 if test "$host_cpu" = ia64; then 16719 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16720 # chokes on -Wl,-G. The following line is correct: 16721 shared_flag='-G' 16722 else 16723 if test "$aix_use_runtimelinking" = yes; then 16724 shared_flag='${wl}-G' 16725 else 16726 shared_flag='${wl}-bM:SRE' 16727 fi 16728 fi 16729 fi 16730 16731 export_dynamic_flag_spec='${wl}-bexpall' 16732 # It seems that -bexpall does not export symbols beginning with 16733 # underscore (_), so it is better to generate a list of symbols to export. 16734 always_export_symbols=yes 16735 if test "$aix_use_runtimelinking" = yes; then 16736 # Warning - without using the other runtime loading flags (-brtl), 16737 # -berok will link without error, but may produce a broken library. 16738 allow_undefined_flag='-berok' 16739 # Determine the default libpath from the value encoded in an 16740 # empty executable. 16741 if test "${lt_cv_aix_libpath+set}" = set; then 16742 aix_libpath=$lt_cv_aix_libpath 16743else 16744 if ${lt_cv_aix_libpath_+:} false; then : 16745 $as_echo_n "(cached) " >&6 16746else 16747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16748/* end confdefs.h. */ 16749 16750int 16751main () 16752{ 16753 16754 ; 16755 return 0; 16756} 16757_ACEOF 16758if ac_fn_c_try_link "$LINENO"; then : 16759 16760 lt_aix_libpath_sed=' 16761 /Import File Strings/,/^$/ { 16762 /^0/ { 16763 s/^0 *\([^ ]*\) *$/\1/ 16764 p 16765 } 16766 }' 16767 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16768 # Check for a 64-bit object if we didn't find anything. 16769 if test -z "$lt_cv_aix_libpath_"; then 16770 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16771 fi 16772fi 16773rm -f core conftest.err conftest.$ac_objext \ 16774 conftest$ac_exeext conftest.$ac_ext 16775 if test -z "$lt_cv_aix_libpath_"; then 16776 lt_cv_aix_libpath_="/usr/lib:/lib" 16777 fi 16778 16779fi 16780 16781 aix_libpath=$lt_cv_aix_libpath_ 16782fi 16783 16784 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 16785 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" 16786 else 16787 if test "$host_cpu" = ia64; then 16788 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 16789 allow_undefined_flag="-z nodefs" 16790 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" 16791 else 16792 # Determine the default libpath from the value encoded in an 16793 # empty executable. 16794 if test "${lt_cv_aix_libpath+set}" = set; then 16795 aix_libpath=$lt_cv_aix_libpath 16796else 16797 if ${lt_cv_aix_libpath_+:} false; then : 16798 $as_echo_n "(cached) " >&6 16799else 16800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16801/* end confdefs.h. */ 16802 16803int 16804main () 16805{ 16806 16807 ; 16808 return 0; 16809} 16810_ACEOF 16811if ac_fn_c_try_link "$LINENO"; then : 16812 16813 lt_aix_libpath_sed=' 16814 /Import File Strings/,/^$/ { 16815 /^0/ { 16816 s/^0 *\([^ ]*\) *$/\1/ 16817 p 16818 } 16819 }' 16820 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16821 # Check for a 64-bit object if we didn't find anything. 16822 if test -z "$lt_cv_aix_libpath_"; then 16823 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16824 fi 16825fi 16826rm -f core conftest.err conftest.$ac_objext \ 16827 conftest$ac_exeext conftest.$ac_ext 16828 if test -z "$lt_cv_aix_libpath_"; then 16829 lt_cv_aix_libpath_="/usr/lib:/lib" 16830 fi 16831 16832fi 16833 16834 aix_libpath=$lt_cv_aix_libpath_ 16835fi 16836 16837 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 16838 # Warning - without using the other run time loading flags, 16839 # -berok will link without error, but may produce a broken library. 16840 no_undefined_flag=' ${wl}-bernotok' 16841 allow_undefined_flag=' ${wl}-berok' 16842 if test "$with_gnu_ld" = yes; then 16843 # We only use this code for GNU lds that support --whole-archive. 16844 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 16845 else 16846 # Exported symbols can be pulled into shared objects from archives 16847 whole_archive_flag_spec='$convenience' 16848 fi 16849 archive_cmds_need_lc=yes 16850 # This is similar to how AIX traditionally builds its shared libraries. 16851 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' 16852 fi 16853 fi 16854 ;; 16855 16856 amigaos*) 16857 case $host_cpu in 16858 powerpc) 16859 # see comment about AmigaOS4 .so support 16860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16861 archive_expsym_cmds='' 16862 ;; 16863 m68k) 16864 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)' 16865 hardcode_libdir_flag_spec='-L$libdir' 16866 hardcode_minus_L=yes 16867 ;; 16868 esac 16869 ;; 16870 16871 bsdi[45]*) 16872 export_dynamic_flag_spec=-rdynamic 16873 ;; 16874 16875 cygwin* | mingw* | pw32* | cegcc*) 16876 # When not using gcc, we currently assume that we are using 16877 # Microsoft Visual C++. 16878 # hardcode_libdir_flag_spec is actually meaningless, as there is 16879 # no search path for DLLs. 16880 case $cc_basename in 16881 cl*) 16882 # Native MSVC 16883 hardcode_libdir_flag_spec=' ' 16884 allow_undefined_flag=unsupported 16885 always_export_symbols=yes 16886 file_list_spec='@' 16887 # Tell ltmain to make .lib files, not .a files. 16888 libext=lib 16889 # Tell ltmain to make .dll files, not .so files. 16890 shrext_cmds=".dll" 16891 # FIXME: Setting linknames here is a bad hack. 16892 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 16893 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16894 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 16895 else 16896 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 16897 fi~ 16898 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16899 linknames=' 16900 # The linker will not automatically build a static lib if we build a DLL. 16901 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16902 enable_shared_with_static_runtimes=yes 16903 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16904 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16905 # Don't use ranlib 16906 old_postinstall_cmds='chmod 644 $oldlib' 16907 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16908 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16909 case $lt_outputfile in 16910 *.exe|*.EXE) ;; 16911 *) 16912 lt_outputfile="$lt_outputfile.exe" 16913 lt_tool_outputfile="$lt_tool_outputfile.exe" 16914 ;; 16915 esac~ 16916 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 16917 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16918 $RM "$lt_outputfile.manifest"; 16919 fi' 16920 ;; 16921 *) 16922 # Assume MSVC wrapper 16923 hardcode_libdir_flag_spec=' ' 16924 allow_undefined_flag=unsupported 16925 # Tell ltmain to make .lib files, not .a files. 16926 libext=lib 16927 # Tell ltmain to make .dll files, not .so files. 16928 shrext_cmds=".dll" 16929 # FIXME: Setting linknames here is a bad hack. 16930 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16931 # The linker will automatically build a .lib file if we build a DLL. 16932 old_archive_from_new_cmds='true' 16933 # FIXME: Should let the user specify the lib program. 16934 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16935 enable_shared_with_static_runtimes=yes 16936 ;; 16937 esac 16938 ;; 16939 16940 darwin* | rhapsody*) 16941 16942 16943 archive_cmds_need_lc=no 16944 hardcode_direct=no 16945 hardcode_automatic=yes 16946 hardcode_shlibpath_var=unsupported 16947 if test "$lt_cv_ld_force_load" = "yes"; then 16948 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\"`' 16949 16950 else 16951 whole_archive_flag_spec='' 16952 fi 16953 link_all_deplibs=yes 16954 allow_undefined_flag="$_lt_dar_allow_undefined" 16955 case $cc_basename in 16956 ifort*) _lt_dar_can_shared=yes ;; 16957 *) _lt_dar_can_shared=$GCC ;; 16958 esac 16959 if test "$_lt_dar_can_shared" = "yes"; then 16960 output_verbose_link_cmd=func_echo_all 16961 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 16962 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 16963 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}" 16964 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}" 16965 16966 else 16967 ld_shlibs=no 16968 fi 16969 16970 ;; 16971 16972 dgux*) 16973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16974 hardcode_libdir_flag_spec='-L$libdir' 16975 hardcode_shlibpath_var=no 16976 ;; 16977 16978 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16979 # support. Future versions do this automatically, but an explicit c++rt0.o 16980 # does not break anything, and helps significantly (at the cost of a little 16981 # extra space). 16982 freebsd2.2*) 16983 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16984 hardcode_libdir_flag_spec='-R$libdir' 16985 hardcode_direct=yes 16986 hardcode_shlibpath_var=no 16987 ;; 16988 16989 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16990 freebsd2.*) 16991 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16992 hardcode_direct=yes 16993 hardcode_minus_L=yes 16994 hardcode_shlibpath_var=no 16995 ;; 16996 16997 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16998 freebsd* | dragonfly*) 16999 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17000 hardcode_libdir_flag_spec='-R$libdir' 17001 hardcode_direct=yes 17002 hardcode_shlibpath_var=no 17003 ;; 17004 17005 hpux9*) 17006 if test "$GCC" = yes; then 17007 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' 17008 else 17009 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' 17010 fi 17011 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 17012 hardcode_libdir_separator=: 17013 hardcode_direct=yes 17014 17015 # hardcode_minus_L: Not really in the search PATH, 17016 # but as the default location of the library. 17017 hardcode_minus_L=yes 17018 export_dynamic_flag_spec='${wl}-E' 17019 ;; 17020 17021 hpux10*) 17022 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 17023 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17024 else 17025 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17026 fi 17027 if test "$with_gnu_ld" = no; then 17028 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 17029 hardcode_libdir_separator=: 17030 hardcode_direct=yes 17031 hardcode_direct_absolute=yes 17032 export_dynamic_flag_spec='${wl}-E' 17033 # hardcode_minus_L: Not really in the search PATH, 17034 # but as the default location of the library. 17035 hardcode_minus_L=yes 17036 fi 17037 ;; 17038 17039 hpux11*) 17040 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 17041 case $host_cpu in 17042 hppa*64*) 17043 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17044 ;; 17045 ia64*) 17046 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17047 ;; 17048 *) 17049 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17050 ;; 17051 esac 17052 else 17053 case $host_cpu in 17054 hppa*64*) 17055 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17056 ;; 17057 ia64*) 17058 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17059 ;; 17060 *) 17061 17062 # Older versions of the 11.00 compiler do not understand -b yet 17063 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 17064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 17065$as_echo_n "checking if $CC understands -b... " >&6; } 17066if ${lt_cv_prog_compiler__b+:} false; then : 17067 $as_echo_n "(cached) " >&6 17068else 17069 lt_cv_prog_compiler__b=no 17070 save_LDFLAGS="$LDFLAGS" 17071 LDFLAGS="$LDFLAGS -b" 17072 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17073 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17074 # The linker can only warn and ignore the option if not recognized 17075 # So say no if there are warnings 17076 if test -s conftest.err; then 17077 # Append any errors to the config.log. 17078 cat conftest.err 1>&5 17079 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17081 if diff conftest.exp conftest.er2 >/dev/null; then 17082 lt_cv_prog_compiler__b=yes 17083 fi 17084 else 17085 lt_cv_prog_compiler__b=yes 17086 fi 17087 fi 17088 $RM -r conftest* 17089 LDFLAGS="$save_LDFLAGS" 17090 17091fi 17092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 17093$as_echo "$lt_cv_prog_compiler__b" >&6; } 17094 17095if test x"$lt_cv_prog_compiler__b" = xyes; then 17096 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17097else 17098 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17099fi 17100 17101 ;; 17102 esac 17103 fi 17104 if test "$with_gnu_ld" = no; then 17105 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 17106 hardcode_libdir_separator=: 17107 17108 case $host_cpu in 17109 hppa*64*|ia64*) 17110 hardcode_direct=no 17111 hardcode_shlibpath_var=no 17112 ;; 17113 *) 17114 hardcode_direct=yes 17115 hardcode_direct_absolute=yes 17116 export_dynamic_flag_spec='${wl}-E' 17117 17118 # hardcode_minus_L: Not really in the search PATH, 17119 # but as the default location of the library. 17120 hardcode_minus_L=yes 17121 ;; 17122 esac 17123 fi 17124 ;; 17125 17126 irix5* | irix6* | nonstopux*) 17127 if test "$GCC" = yes; then 17128 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' 17129 # Try to use the -exported_symbol ld option, if it does not 17130 # work, assume that -exports_file does not work either and 17131 # implicitly export all symbols. 17132 # This should be the same for all languages, so no per-tag cache variable. 17133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 17134$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 17135if ${lt_cv_irix_exported_symbol+:} false; then : 17136 $as_echo_n "(cached) " >&6 17137else 17138 save_LDFLAGS="$LDFLAGS" 17139 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 17140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17141/* end confdefs.h. */ 17142int foo (void) { return 0; } 17143_ACEOF 17144if ac_fn_c_try_link "$LINENO"; then : 17145 lt_cv_irix_exported_symbol=yes 17146else 17147 lt_cv_irix_exported_symbol=no 17148fi 17149rm -f core conftest.err conftest.$ac_objext \ 17150 conftest$ac_exeext conftest.$ac_ext 17151 LDFLAGS="$save_LDFLAGS" 17152fi 17153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 17154$as_echo "$lt_cv_irix_exported_symbol" >&6; } 17155 if test "$lt_cv_irix_exported_symbol" = yes; then 17156 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' 17157 fi 17158 else 17159 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' 17160 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' 17161 fi 17162 archive_cmds_need_lc='no' 17163 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 17164 hardcode_libdir_separator=: 17165 inherit_rpath=yes 17166 link_all_deplibs=yes 17167 ;; 17168 17169 netbsd* | netbsdelf*-gnu) 17170 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17171 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17172 else 17173 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17174 fi 17175 hardcode_libdir_flag_spec='-R$libdir' 17176 hardcode_direct=yes 17177 hardcode_shlibpath_var=no 17178 ;; 17179 17180 newsos6) 17181 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17182 hardcode_direct=yes 17183 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 17184 hardcode_libdir_separator=: 17185 hardcode_shlibpath_var=no 17186 ;; 17187 17188 *nto* | *qnx*) 17189 ;; 17190 17191 openbsd*) 17192 if test -f /usr/libexec/ld.so; then 17193 hardcode_direct=yes 17194 hardcode_shlibpath_var=no 17195 hardcode_direct_absolute=yes 17196 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17197 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17198 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17199 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 17200 export_dynamic_flag_spec='${wl}-E' 17201 else 17202 case $host_os in 17203 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17204 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17205 hardcode_libdir_flag_spec='-R$libdir' 17206 ;; 17207 *) 17208 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17209 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 17210 ;; 17211 esac 17212 fi 17213 else 17214 ld_shlibs=no 17215 fi 17216 ;; 17217 17218 os2*) 17219 hardcode_libdir_flag_spec='-L$libdir' 17220 hardcode_minus_L=yes 17221 allow_undefined_flag=unsupported 17222 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' 17223 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17224 ;; 17225 17226 osf3*) 17227 if test "$GCC" = yes; then 17228 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 17229 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' 17230 else 17231 allow_undefined_flag=' -expect_unresolved \*' 17232 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' 17233 fi 17234 archive_cmds_need_lc='no' 17235 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 17236 hardcode_libdir_separator=: 17237 ;; 17238 17239 osf4* | osf5*) # as osf3* with the addition of -msym flag 17240 if test "$GCC" = yes; then 17241 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 17242 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' 17243 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 17244 else 17245 allow_undefined_flag=' -expect_unresolved \*' 17246 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' 17247 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~ 17248 $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' 17249 17250 # Both c and cxx compiler support -rpath directly 17251 hardcode_libdir_flag_spec='-rpath $libdir' 17252 fi 17253 archive_cmds_need_lc='no' 17254 hardcode_libdir_separator=: 17255 ;; 17256 17257 solaris*) 17258 no_undefined_flag=' -z defs' 17259 if test "$GCC" = yes; then 17260 wlarc='${wl}' 17261 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17262 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17263 $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' 17264 else 17265 case `$CC -V 2>&1` in 17266 *"Compilers 5.0"*) 17267 wlarc='' 17268 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17269 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17270 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 17271 ;; 17272 *) 17273 wlarc='${wl}' 17274 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 17275 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17276 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17277 ;; 17278 esac 17279 fi 17280 hardcode_libdir_flag_spec='-R$libdir' 17281 hardcode_shlibpath_var=no 17282 case $host_os in 17283 solaris2.[0-5] | solaris2.[0-5].*) ;; 17284 *) 17285 # The compiler driver will combine and reorder linker options, 17286 # but understands `-z linker_flag'. GCC discards it without `$wl', 17287 # but is careful enough not to reorder. 17288 # Supported since Solaris 2.6 (maybe 2.5.1?) 17289 if test "$GCC" = yes; then 17290 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 17291 else 17292 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 17293 fi 17294 ;; 17295 esac 17296 link_all_deplibs=yes 17297 ;; 17298 17299 sunos4*) 17300 if test "x$host_vendor" = xsequent; then 17301 # Use $CC to link under sequent, because it throws in some extra .o 17302 # files that make .init and .fini sections work. 17303 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17304 else 17305 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17306 fi 17307 hardcode_libdir_flag_spec='-L$libdir' 17308 hardcode_direct=yes 17309 hardcode_minus_L=yes 17310 hardcode_shlibpath_var=no 17311 ;; 17312 17313 sysv4) 17314 case $host_vendor in 17315 sni) 17316 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17317 hardcode_direct=yes # is this really true??? 17318 ;; 17319 siemens) 17320 ## LD is ld it makes a PLAMLIB 17321 ## CC just makes a GrossModule. 17322 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17323 reload_cmds='$CC -r -o $output$reload_objs' 17324 hardcode_direct=no 17325 ;; 17326 motorola) 17327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17328 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 17329 ;; 17330 esac 17331 runpath_var='LD_RUN_PATH' 17332 hardcode_shlibpath_var=no 17333 ;; 17334 17335 sysv4.3*) 17336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17337 hardcode_shlibpath_var=no 17338 export_dynamic_flag_spec='-Bexport' 17339 ;; 17340 17341 sysv4*MP*) 17342 if test -d /usr/nec; then 17343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17344 hardcode_shlibpath_var=no 17345 runpath_var=LD_RUN_PATH 17346 hardcode_runpath_var=yes 17347 ld_shlibs=yes 17348 fi 17349 ;; 17350 17351 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17352 no_undefined_flag='${wl}-z,text' 17353 archive_cmds_need_lc=no 17354 hardcode_shlibpath_var=no 17355 runpath_var='LD_RUN_PATH' 17356 17357 if test "$GCC" = yes; then 17358 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17359 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17360 else 17361 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17362 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17363 fi 17364 ;; 17365 17366 sysv5* | sco3.2v5* | sco5v6*) 17367 # Note: We can NOT use -z defs as we might desire, because we do not 17368 # link with -lc, and that would cause any symbols used from libc to 17369 # always be unresolved, which means just about no library would 17370 # ever link correctly. If we're not using GNU ld we use -z text 17371 # though, which does catch some bad symbols but isn't as heavy-handed 17372 # as -z defs. 17373 no_undefined_flag='${wl}-z,text' 17374 allow_undefined_flag='${wl}-z,nodefs' 17375 archive_cmds_need_lc=no 17376 hardcode_shlibpath_var=no 17377 hardcode_libdir_flag_spec='${wl}-R,$libdir' 17378 hardcode_libdir_separator=':' 17379 link_all_deplibs=yes 17380 export_dynamic_flag_spec='${wl}-Bexport' 17381 runpath_var='LD_RUN_PATH' 17382 17383 if test "$GCC" = yes; then 17384 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17385 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17386 else 17387 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17388 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17389 fi 17390 ;; 17391 17392 uts4*) 17393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17394 hardcode_libdir_flag_spec='-L$libdir' 17395 hardcode_shlibpath_var=no 17396 ;; 17397 17398 *) 17399 ld_shlibs=no 17400 ;; 17401 esac 17402 17403 if test x$host_vendor = xsni; then 17404 case $host in 17405 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17406 export_dynamic_flag_spec='${wl}-Blargedynsym' 17407 ;; 17408 esac 17409 fi 17410 fi 17411 17412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 17413$as_echo "$ld_shlibs" >&6; } 17414test "$ld_shlibs" = no && can_build_shared=no 17415 17416with_gnu_ld=$with_gnu_ld 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432# 17433# Do we need to explicitly link libc? 17434# 17435case "x$archive_cmds_need_lc" in 17436x|xyes) 17437 # Assume -lc should be added 17438 archive_cmds_need_lc=yes 17439 17440 if test "$enable_shared" = yes && test "$GCC" = yes; then 17441 case $archive_cmds in 17442 *'~'*) 17443 # FIXME: we may have to deal with multi-command sequences. 17444 ;; 17445 '$CC '*) 17446 # Test whether the compiler implicitly links with -lc since on some 17447 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17448 # to ld, don't add -lc before -lgcc. 17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17450$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 17451if ${lt_cv_archive_cmds_need_lc+:} false; then : 17452 $as_echo_n "(cached) " >&6 17453else 17454 $RM conftest* 17455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17456 17457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17458 (eval $ac_compile) 2>&5 17459 ac_status=$? 17460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17461 test $ac_status = 0; } 2>conftest.err; then 17462 soname=conftest 17463 lib=conftest 17464 libobjs=conftest.$ac_objext 17465 deplibs= 17466 wl=$lt_prog_compiler_wl 17467 pic_flag=$lt_prog_compiler_pic 17468 compiler_flags=-v 17469 linker_flags=-v 17470 verstring= 17471 output_objdir=. 17472 libname=conftest 17473 lt_save_allow_undefined_flag=$allow_undefined_flag 17474 allow_undefined_flag= 17475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17476 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17477 ac_status=$? 17478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17479 test $ac_status = 0; } 17480 then 17481 lt_cv_archive_cmds_need_lc=no 17482 else 17483 lt_cv_archive_cmds_need_lc=yes 17484 fi 17485 allow_undefined_flag=$lt_save_allow_undefined_flag 17486 else 17487 cat conftest.err 1>&5 17488 fi 17489 $RM conftest* 17490 17491fi 17492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 17493$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 17494 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 17495 ;; 17496 esac 17497 fi 17498 ;; 17499esac 17500 17501 17502 17503 17504 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527 17528 17529 17530 17531 17532 17533 17534 17535 17536 17537 17538 17539 17540 17541 17542 17543 17544 17545 17546 17547 17548 17549 17550 17551 17552 17553 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563 17564 17565 17566 17567 17568 17569 17570 17571 17572 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592 17593 17594 17595 17596 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633 17634 17635 17636 17637 17638 17639 17640 17641 17642 17643 17644 17645 17646 17647 17648 17649 17650 17651 17652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17653$as_echo_n "checking dynamic linker characteristics... " >&6; } 17654 17655if test "$GCC" = yes; then 17656 case $host_os in 17657 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 17658 *) lt_awk_arg="/^libraries:/" ;; 17659 esac 17660 case $host_os in 17661 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 17662 *) lt_sed_strip_eq="s,=/,/,g" ;; 17663 esac 17664 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 17665 case $lt_search_path_spec in 17666 *\;*) 17667 # if the path contains ";" then we assume it to be the separator 17668 # otherwise default to the standard path separator (i.e. ":") - it is 17669 # assumed that no part of a normal pathname contains ";" but that should 17670 # okay in the real world where ";" in dirpaths is itself problematic. 17671 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 17672 ;; 17673 *) 17674 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 17675 ;; 17676 esac 17677 # Ok, now we have the path, separated by spaces, we can step through it 17678 # and add multilib dir if necessary. 17679 lt_tmp_lt_search_path_spec= 17680 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 17681 for lt_sys_path in $lt_search_path_spec; do 17682 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 17683 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 17684 else 17685 test -d "$lt_sys_path" && \ 17686 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 17687 fi 17688 done 17689 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 17690BEGIN {RS=" "; FS="/|\n";} { 17691 lt_foo=""; 17692 lt_count=0; 17693 for (lt_i = NF; lt_i > 0; lt_i--) { 17694 if ($lt_i != "" && $lt_i != ".") { 17695 if ($lt_i == "..") { 17696 lt_count++; 17697 } else { 17698 if (lt_count == 0) { 17699 lt_foo="/" $lt_i lt_foo; 17700 } else { 17701 lt_count--; 17702 } 17703 } 17704 } 17705 } 17706 if (lt_foo != "") { lt_freq[lt_foo]++; } 17707 if (lt_freq[lt_foo] == 1) { print lt_foo; } 17708}'` 17709 # AWK program above erroneously prepends '/' to C:/dos/paths 17710 # for these hosts. 17711 case $host_os in 17712 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 17713 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 17714 esac 17715 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 17716else 17717 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17718fi 17719library_names_spec= 17720libname_spec='lib$name' 17721soname_spec= 17722shrext_cmds=".so" 17723postinstall_cmds= 17724postuninstall_cmds= 17725finish_cmds= 17726finish_eval= 17727shlibpath_var= 17728shlibpath_overrides_runpath=unknown 17729version_type=none 17730dynamic_linker="$host_os ld.so" 17731sys_lib_dlsearch_path_spec="/lib /usr/lib" 17732need_lib_prefix=unknown 17733hardcode_into_libs=no 17734 17735# when you set need_version to no, make sure it does not cause -set_version 17736# flags to be left without arguments 17737need_version=unknown 17738 17739case $host_os in 17740aix3*) 17741 version_type=linux # correct to gnu/linux during the next big refactor 17742 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17743 shlibpath_var=LIBPATH 17744 17745 # AIX 3 has no versioning support, so we append a major version to the name. 17746 soname_spec='${libname}${release}${shared_ext}$major' 17747 ;; 17748 17749aix[4-9]*) 17750 version_type=linux # correct to gnu/linux during the next big refactor 17751 need_lib_prefix=no 17752 need_version=no 17753 hardcode_into_libs=yes 17754 if test "$host_cpu" = ia64; then 17755 # AIX 5 supports IA64 17756 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17757 shlibpath_var=LD_LIBRARY_PATH 17758 else 17759 # With GCC up to 2.95.x, collect2 would create an import file 17760 # for dependence libraries. The import file would start with 17761 # the line `#! .'. This would cause the generated library to 17762 # depend on `.', always an invalid library. This was fixed in 17763 # development snapshots of GCC prior to 3.0. 17764 case $host_os in 17765 aix4 | aix4.[01] | aix4.[01].*) 17766 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17767 echo ' yes ' 17768 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 17769 : 17770 else 17771 can_build_shared=no 17772 fi 17773 ;; 17774 esac 17775 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17776 # soname into executable. Probably we can add versioning support to 17777 # collect2, so additional links can be useful in future. 17778 if test "$aix_use_runtimelinking" = yes; then 17779 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17780 # instead of lib<name>.a to let people know that these are not 17781 # typical AIX shared libraries. 17782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17783 else 17784 # We preserve .a as extension for shared libraries through AIX4.2 17785 # and later when we are not doing run time linking. 17786 library_names_spec='${libname}${release}.a $libname.a' 17787 soname_spec='${libname}${release}${shared_ext}$major' 17788 fi 17789 shlibpath_var=LIBPATH 17790 fi 17791 ;; 17792 17793amigaos*) 17794 case $host_cpu in 17795 powerpc) 17796 # Since July 2007 AmigaOS4 officially supports .so libraries. 17797 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17799 ;; 17800 m68k) 17801 library_names_spec='$libname.ixlibrary $libname.a' 17802 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17803 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' 17804 ;; 17805 esac 17806 ;; 17807 17808beos*) 17809 library_names_spec='${libname}${shared_ext}' 17810 dynamic_linker="$host_os ld.so" 17811 shlibpath_var=LIBRARY_PATH 17812 ;; 17813 17814bsdi[45]*) 17815 version_type=linux # correct to gnu/linux during the next big refactor 17816 need_version=no 17817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17818 soname_spec='${libname}${release}${shared_ext}$major' 17819 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17820 shlibpath_var=LD_LIBRARY_PATH 17821 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17822 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17823 # the default ld.so.conf also contains /usr/contrib/lib and 17824 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17825 # libtool to hard-code these into programs 17826 ;; 17827 17828cygwin* | mingw* | pw32* | cegcc*) 17829 version_type=windows 17830 shrext_cmds=".dll" 17831 need_version=no 17832 need_lib_prefix=no 17833 17834 case $GCC,$cc_basename in 17835 yes,*) 17836 # gcc 17837 library_names_spec='$libname.dll.a' 17838 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17839 postinstall_cmds='base_file=`basename \${file}`~ 17840 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 17841 dldir=$destdir/`dirname \$dlpath`~ 17842 test -d \$dldir || mkdir -p \$dldir~ 17843 $install_prog $dir/$dlname \$dldir/$dlname~ 17844 chmod a+x \$dldir/$dlname~ 17845 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17846 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17847 fi' 17848 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17849 dlpath=$dir/\$dldll~ 17850 $RM \$dlpath' 17851 shlibpath_overrides_runpath=yes 17852 17853 case $host_os in 17854 cygwin*) 17855 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17856 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17857 17858 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17859 ;; 17860 mingw* | cegcc*) 17861 # MinGW DLLs use traditional 'lib' prefix 17862 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17863 ;; 17864 pw32*) 17865 # pw32 DLLs use 'pw' prefix rather than 'lib' 17866 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17867 ;; 17868 esac 17869 dynamic_linker='Win32 ld.exe' 17870 ;; 17871 17872 *,cl*) 17873 # Native MSVC 17874 libname_spec='$name' 17875 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17876 library_names_spec='${libname}.dll.lib' 17877 17878 case $build_os in 17879 mingw*) 17880 sys_lib_search_path_spec= 17881 lt_save_ifs=$IFS 17882 IFS=';' 17883 for lt_path in $LIB 17884 do 17885 IFS=$lt_save_ifs 17886 # Let DOS variable expansion print the short 8.3 style file name. 17887 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17888 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17889 done 17890 IFS=$lt_save_ifs 17891 # Convert to MSYS style. 17892 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17893 ;; 17894 cygwin*) 17895 # Convert to unix form, then to dos form, then back to unix form 17896 # but this time dos style (no spaces!) so that the unix form looks 17897 # like /cygdrive/c/PROGRA~1:/cygdr... 17898 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17899 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17900 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17901 ;; 17902 *) 17903 sys_lib_search_path_spec="$LIB" 17904 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17905 # It is most probably a Windows format PATH. 17906 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17907 else 17908 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17909 fi 17910 # FIXME: find the short name or the path components, as spaces are 17911 # common. (e.g. "Program Files" -> "PROGRA~1") 17912 ;; 17913 esac 17914 17915 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17916 postinstall_cmds='base_file=`basename \${file}`~ 17917 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 17918 dldir=$destdir/`dirname \$dlpath`~ 17919 test -d \$dldir || mkdir -p \$dldir~ 17920 $install_prog $dir/$dlname \$dldir/$dlname' 17921 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17922 dlpath=$dir/\$dldll~ 17923 $RM \$dlpath' 17924 shlibpath_overrides_runpath=yes 17925 dynamic_linker='Win32 link.exe' 17926 ;; 17927 17928 *) 17929 # Assume MSVC wrapper 17930 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17931 dynamic_linker='Win32 ld.exe' 17932 ;; 17933 esac 17934 # FIXME: first we should search . and the directory the executable is in 17935 shlibpath_var=PATH 17936 ;; 17937 17938darwin* | rhapsody*) 17939 dynamic_linker="$host_os dyld" 17940 version_type=darwin 17941 need_lib_prefix=no 17942 need_version=no 17943 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17944 soname_spec='${libname}${release}${major}$shared_ext' 17945 shlibpath_overrides_runpath=yes 17946 shlibpath_var=DYLD_LIBRARY_PATH 17947 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17948 17949 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 17950 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17951 ;; 17952 17953dgux*) 17954 version_type=linux # correct to gnu/linux during the next big refactor 17955 need_lib_prefix=no 17956 need_version=no 17957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17958 soname_spec='${libname}${release}${shared_ext}$major' 17959 shlibpath_var=LD_LIBRARY_PATH 17960 ;; 17961 17962freebsd* | dragonfly*) 17963 # DragonFly does not have aout. When/if they implement a new 17964 # versioning mechanism, adjust this. 17965 if test -x /usr/bin/objformat; then 17966 objformat=`/usr/bin/objformat` 17967 else 17968 case $host_os in 17969 freebsd[23].*) objformat=aout ;; 17970 *) objformat=elf ;; 17971 esac 17972 fi 17973 version_type=freebsd-$objformat 17974 case $version_type in 17975 freebsd-elf*) 17976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17977 need_version=no 17978 need_lib_prefix=no 17979 ;; 17980 freebsd-*) 17981 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17982 need_version=yes 17983 ;; 17984 esac 17985 shlibpath_var=LD_LIBRARY_PATH 17986 case $host_os in 17987 freebsd2.*) 17988 shlibpath_overrides_runpath=yes 17989 ;; 17990 freebsd3.[01]* | freebsdelf3.[01]*) 17991 shlibpath_overrides_runpath=yes 17992 hardcode_into_libs=yes 17993 ;; 17994 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17995 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17996 shlibpath_overrides_runpath=no 17997 hardcode_into_libs=yes 17998 ;; 17999 *) # from 4.6 on, and DragonFly 18000 shlibpath_overrides_runpath=yes 18001 hardcode_into_libs=yes 18002 ;; 18003 esac 18004 ;; 18005 18006haiku*) 18007 version_type=linux # correct to gnu/linux during the next big refactor 18008 need_lib_prefix=no 18009 need_version=no 18010 dynamic_linker="$host_os runtime_loader" 18011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18012 soname_spec='${libname}${release}${shared_ext}$major' 18013 shlibpath_var=LIBRARY_PATH 18014 shlibpath_overrides_runpath=yes 18015 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18016 hardcode_into_libs=yes 18017 ;; 18018 18019hpux9* | hpux10* | hpux11*) 18020 # Give a soname corresponding to the major version so that dld.sl refuses to 18021 # link against other versions. 18022 version_type=sunos 18023 need_lib_prefix=no 18024 need_version=no 18025 case $host_cpu in 18026 ia64*) 18027 shrext_cmds='.so' 18028 hardcode_into_libs=yes 18029 dynamic_linker="$host_os dld.so" 18030 shlibpath_var=LD_LIBRARY_PATH 18031 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18033 soname_spec='${libname}${release}${shared_ext}$major' 18034 if test "X$HPUX_IA64_MODE" = X32; then 18035 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18036 else 18037 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18038 fi 18039 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18040 ;; 18041 hppa*64*) 18042 shrext_cmds='.sl' 18043 hardcode_into_libs=yes 18044 dynamic_linker="$host_os dld.sl" 18045 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18046 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18048 soname_spec='${libname}${release}${shared_ext}$major' 18049 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18050 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18051 ;; 18052 *) 18053 shrext_cmds='.sl' 18054 dynamic_linker="$host_os dld.sl" 18055 shlibpath_var=SHLIB_PATH 18056 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18058 soname_spec='${libname}${release}${shared_ext}$major' 18059 ;; 18060 esac 18061 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18062 postinstall_cmds='chmod 555 $lib' 18063 # or fails outright, so override atomically: 18064 install_override_mode=555 18065 ;; 18066 18067interix[3-9]*) 18068 version_type=linux # correct to gnu/linux during the next big refactor 18069 need_lib_prefix=no 18070 need_version=no 18071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18072 soname_spec='${libname}${release}${shared_ext}$major' 18073 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18074 shlibpath_var=LD_LIBRARY_PATH 18075 shlibpath_overrides_runpath=no 18076 hardcode_into_libs=yes 18077 ;; 18078 18079irix5* | irix6* | nonstopux*) 18080 case $host_os in 18081 nonstopux*) version_type=nonstopux ;; 18082 *) 18083 if test "$lt_cv_prog_gnu_ld" = yes; then 18084 version_type=linux # correct to gnu/linux during the next big refactor 18085 else 18086 version_type=irix 18087 fi ;; 18088 esac 18089 need_lib_prefix=no 18090 need_version=no 18091 soname_spec='${libname}${release}${shared_ext}$major' 18092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18093 case $host_os in 18094 irix5* | nonstopux*) 18095 libsuff= shlibsuff= 18096 ;; 18097 *) 18098 case $LD in # libtool.m4 will add one of these switches to LD 18099 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18100 libsuff= shlibsuff= libmagic=32-bit;; 18101 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18102 libsuff=32 shlibsuff=N32 libmagic=N32;; 18103 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18104 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18105 *) libsuff= shlibsuff= libmagic=never-match;; 18106 esac 18107 ;; 18108 esac 18109 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18110 shlibpath_overrides_runpath=no 18111 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18112 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18113 hardcode_into_libs=yes 18114 ;; 18115 18116# No shared lib support for Linux oldld, aout, or coff. 18117linux*oldld* | linux*aout* | linux*coff*) 18118 dynamic_linker=no 18119 ;; 18120 18121# This must be glibc/ELF. 18122linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18123 version_type=linux # correct to gnu/linux during the next big refactor 18124 need_lib_prefix=no 18125 need_version=no 18126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18127 soname_spec='${libname}${release}${shared_ext}$major' 18128 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18129 shlibpath_var=LD_LIBRARY_PATH 18130 shlibpath_overrides_runpath=no 18131 18132 # Some binutils ld are patched to set DT_RUNPATH 18133 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 18134 $as_echo_n "(cached) " >&6 18135else 18136 lt_cv_shlibpath_overrides_runpath=no 18137 save_LDFLAGS=$LDFLAGS 18138 save_libdir=$libdir 18139 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 18140 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 18141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18142/* end confdefs.h. */ 18143 18144int 18145main () 18146{ 18147 18148 ; 18149 return 0; 18150} 18151_ACEOF 18152if ac_fn_c_try_link "$LINENO"; then : 18153 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 18154 lt_cv_shlibpath_overrides_runpath=yes 18155fi 18156fi 18157rm -f core conftest.err conftest.$ac_objext \ 18158 conftest$ac_exeext conftest.$ac_ext 18159 LDFLAGS=$save_LDFLAGS 18160 libdir=$save_libdir 18161 18162fi 18163 18164 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18165 18166 # This implies no fast_install, which is unacceptable. 18167 # Some rework will be needed to allow for fast_install 18168 # before this can be enabled. 18169 hardcode_into_libs=yes 18170 18171 # Append ld.so.conf contents to the search path 18172 if test -f /etc/ld.so.conf; then 18173 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' ' '` 18174 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18175 fi 18176 18177 # We used to test for /lib/ld.so.1 and disable shared libraries on 18178 # powerpc, because MkLinux only supported shared libraries with the 18179 # GNU dynamic linker. Since this was broken with cross compilers, 18180 # most powerpc-linux boxes support dynamic linking these days and 18181 # people can always --disable-shared, the test was removed, and we 18182 # assume the GNU/Linux dynamic linker is in use. 18183 dynamic_linker='GNU/Linux ld.so' 18184 ;; 18185 18186netbsdelf*-gnu) 18187 version_type=linux 18188 need_lib_prefix=no 18189 need_version=no 18190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18191 soname_spec='${libname}${release}${shared_ext}$major' 18192 shlibpath_var=LD_LIBRARY_PATH 18193 shlibpath_overrides_runpath=no 18194 hardcode_into_libs=yes 18195 dynamic_linker='NetBSD ld.elf_so' 18196 ;; 18197 18198netbsd*) 18199 version_type=sunos 18200 need_lib_prefix=no 18201 need_version=no 18202 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18205 dynamic_linker='NetBSD (a.out) ld.so' 18206 else 18207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18208 soname_spec='${libname}${release}${shared_ext}$major' 18209 dynamic_linker='NetBSD ld.elf_so' 18210 fi 18211 shlibpath_var=LD_LIBRARY_PATH 18212 shlibpath_overrides_runpath=yes 18213 hardcode_into_libs=yes 18214 ;; 18215 18216newsos6) 18217 version_type=linux # correct to gnu/linux during the next big refactor 18218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18219 shlibpath_var=LD_LIBRARY_PATH 18220 shlibpath_overrides_runpath=yes 18221 ;; 18222 18223*nto* | *qnx*) 18224 version_type=qnx 18225 need_lib_prefix=no 18226 need_version=no 18227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18228 soname_spec='${libname}${release}${shared_ext}$major' 18229 shlibpath_var=LD_LIBRARY_PATH 18230 shlibpath_overrides_runpath=no 18231 hardcode_into_libs=yes 18232 dynamic_linker='ldqnx.so' 18233 ;; 18234 18235openbsd*) 18236 version_type=sunos 18237 sys_lib_dlsearch_path_spec="/usr/lib" 18238 need_lib_prefix=no 18239 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18240 case $host_os in 18241 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18242 *) need_version=no ;; 18243 esac 18244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18245 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18246 shlibpath_var=LD_LIBRARY_PATH 18247 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18248 case $host_os in 18249 openbsd2.[89] | openbsd2.[89].*) 18250 shlibpath_overrides_runpath=no 18251 ;; 18252 *) 18253 shlibpath_overrides_runpath=yes 18254 ;; 18255 esac 18256 else 18257 shlibpath_overrides_runpath=yes 18258 fi 18259 ;; 18260 18261os2*) 18262 libname_spec='$name' 18263 shrext_cmds=".dll" 18264 need_lib_prefix=no 18265 library_names_spec='$libname${shared_ext} $libname.a' 18266 dynamic_linker='OS/2 ld.exe' 18267 shlibpath_var=LIBPATH 18268 ;; 18269 18270osf3* | osf4* | osf5*) 18271 version_type=osf 18272 need_lib_prefix=no 18273 need_version=no 18274 soname_spec='${libname}${release}${shared_ext}$major' 18275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18276 shlibpath_var=LD_LIBRARY_PATH 18277 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18278 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18279 ;; 18280 18281rdos*) 18282 dynamic_linker=no 18283 ;; 18284 18285solaris*) 18286 version_type=linux # correct to gnu/linux during the next big refactor 18287 need_lib_prefix=no 18288 need_version=no 18289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18290 soname_spec='${libname}${release}${shared_ext}$major' 18291 shlibpath_var=LD_LIBRARY_PATH 18292 shlibpath_overrides_runpath=yes 18293 hardcode_into_libs=yes 18294 # ldd complains unless libraries are executable 18295 postinstall_cmds='chmod +x $lib' 18296 ;; 18297 18298sunos4*) 18299 version_type=sunos 18300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18301 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18302 shlibpath_var=LD_LIBRARY_PATH 18303 shlibpath_overrides_runpath=yes 18304 if test "$with_gnu_ld" = yes; then 18305 need_lib_prefix=no 18306 fi 18307 need_version=yes 18308 ;; 18309 18310sysv4 | sysv4.3*) 18311 version_type=linux # correct to gnu/linux during the next big refactor 18312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18313 soname_spec='${libname}${release}${shared_ext}$major' 18314 shlibpath_var=LD_LIBRARY_PATH 18315 case $host_vendor in 18316 sni) 18317 shlibpath_overrides_runpath=no 18318 need_lib_prefix=no 18319 runpath_var=LD_RUN_PATH 18320 ;; 18321 siemens) 18322 need_lib_prefix=no 18323 ;; 18324 motorola) 18325 need_lib_prefix=no 18326 need_version=no 18327 shlibpath_overrides_runpath=no 18328 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18329 ;; 18330 esac 18331 ;; 18332 18333sysv4*MP*) 18334 if test -d /usr/nec ;then 18335 version_type=linux # correct to gnu/linux during the next big refactor 18336 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18337 soname_spec='$libname${shared_ext}.$major' 18338 shlibpath_var=LD_LIBRARY_PATH 18339 fi 18340 ;; 18341 18342sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18343 version_type=freebsd-elf 18344 need_lib_prefix=no 18345 need_version=no 18346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18347 soname_spec='${libname}${release}${shared_ext}$major' 18348 shlibpath_var=LD_LIBRARY_PATH 18349 shlibpath_overrides_runpath=yes 18350 hardcode_into_libs=yes 18351 if test "$with_gnu_ld" = yes; then 18352 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18353 else 18354 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18355 case $host_os in 18356 sco3.2v5*) 18357 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18358 ;; 18359 esac 18360 fi 18361 sys_lib_dlsearch_path_spec='/usr/lib' 18362 ;; 18363 18364tpf*) 18365 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18366 version_type=linux # correct to gnu/linux during the next big refactor 18367 need_lib_prefix=no 18368 need_version=no 18369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18370 shlibpath_var=LD_LIBRARY_PATH 18371 shlibpath_overrides_runpath=no 18372 hardcode_into_libs=yes 18373 ;; 18374 18375uts4*) 18376 version_type=linux # correct to gnu/linux during the next big refactor 18377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18378 soname_spec='${libname}${release}${shared_ext}$major' 18379 shlibpath_var=LD_LIBRARY_PATH 18380 ;; 18381 18382*) 18383 dynamic_linker=no 18384 ;; 18385esac 18386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18387$as_echo "$dynamic_linker" >&6; } 18388test "$dynamic_linker" = no && can_build_shared=no 18389 18390variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18391if test "$GCC" = yes; then 18392 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18393fi 18394 18395if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 18396 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 18397fi 18398if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 18399 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 18400fi 18401 18402 18403 18404 18405 18406 18407 18408 18409 18410 18411 18412 18413 18414 18415 18416 18417 18418 18419 18420 18421 18422 18423 18424 18425 18426 18427 18428 18429 18430 18431 18432 18433 18434 18435 18436 18437 18438 18439 18440 18441 18442 18443 18444 18445 18446 18447 18448 18449 18450 18451 18452 18453 18454 18455 18456 18457 18458 18459 18460 18461 18462 18463 18464 18465 18466 18467 18468 18469 18470 18471 18472 18473 18474 18475 18476 18477 18478 18479 18480 18481 18482 18483 18484 18485 18486 18487 18488 18489 18490 18491 18492 18493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18494$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18495hardcode_action= 18496if test -n "$hardcode_libdir_flag_spec" || 18497 test -n "$runpath_var" || 18498 test "X$hardcode_automatic" = "Xyes" ; then 18499 18500 # We can hardcode non-existent directories. 18501 if test "$hardcode_direct" != no && 18502 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18503 # have to relink, otherwise we might link with an installed library 18504 # when we should be linking with a yet-to-be-installed one 18505 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 18506 test "$hardcode_minus_L" != no; then 18507 # Linking always hardcodes the temporary library directory. 18508 hardcode_action=relink 18509 else 18510 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18511 hardcode_action=immediate 18512 fi 18513else 18514 # We cannot hardcode anything, or else we can only hardcode existing 18515 # directories. 18516 hardcode_action=unsupported 18517fi 18518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 18519$as_echo "$hardcode_action" >&6; } 18520 18521if test "$hardcode_action" = relink || 18522 test "$inherit_rpath" = yes; then 18523 # Fast installation is not supported 18524 enable_fast_install=no 18525elif test "$shlibpath_overrides_runpath" = yes || 18526 test "$enable_shared" = no; then 18527 # Fast installation is not necessary 18528 enable_fast_install=needless 18529fi 18530 18531 18532 18533 18534 18535 18536 if test "x$enable_dlopen" != xyes; then 18537 enable_dlopen=unknown 18538 enable_dlopen_self=unknown 18539 enable_dlopen_self_static=unknown 18540else 18541 lt_cv_dlopen=no 18542 lt_cv_dlopen_libs= 18543 18544 case $host_os in 18545 beos*) 18546 lt_cv_dlopen="load_add_on" 18547 lt_cv_dlopen_libs= 18548 lt_cv_dlopen_self=yes 18549 ;; 18550 18551 mingw* | pw32* | cegcc*) 18552 lt_cv_dlopen="LoadLibrary" 18553 lt_cv_dlopen_libs= 18554 ;; 18555 18556 cygwin*) 18557 lt_cv_dlopen="dlopen" 18558 lt_cv_dlopen_libs= 18559 ;; 18560 18561 darwin*) 18562 # if libdl is installed we need to link against it 18563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18564$as_echo_n "checking for dlopen in -ldl... " >&6; } 18565if ${ac_cv_lib_dl_dlopen+:} false; then : 18566 $as_echo_n "(cached) " >&6 18567else 18568 ac_check_lib_save_LIBS=$LIBS 18569LIBS="-ldl $LIBS" 18570cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18571/* end confdefs.h. */ 18572 18573/* Override any GCC internal prototype to avoid an error. 18574 Use char because int might match the return type of a GCC 18575 builtin and then its argument prototype would still apply. */ 18576#ifdef __cplusplus 18577extern "C" 18578#endif 18579char dlopen (); 18580int 18581main () 18582{ 18583return dlopen (); 18584 ; 18585 return 0; 18586} 18587_ACEOF 18588if ac_fn_c_try_link "$LINENO"; then : 18589 ac_cv_lib_dl_dlopen=yes 18590else 18591 ac_cv_lib_dl_dlopen=no 18592fi 18593rm -f core conftest.err conftest.$ac_objext \ 18594 conftest$ac_exeext conftest.$ac_ext 18595LIBS=$ac_check_lib_save_LIBS 18596fi 18597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18598$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18599if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18600 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18601else 18602 18603 lt_cv_dlopen="dyld" 18604 lt_cv_dlopen_libs= 18605 lt_cv_dlopen_self=yes 18606 18607fi 18608 18609 ;; 18610 18611 *) 18612 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 18613if test "x$ac_cv_func_shl_load" = xyes; then : 18614 lt_cv_dlopen="shl_load" 18615else 18616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 18617$as_echo_n "checking for shl_load in -ldld... " >&6; } 18618if ${ac_cv_lib_dld_shl_load+:} false; then : 18619 $as_echo_n "(cached) " >&6 18620else 18621 ac_check_lib_save_LIBS=$LIBS 18622LIBS="-ldld $LIBS" 18623cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18624/* end confdefs.h. */ 18625 18626/* Override any GCC internal prototype to avoid an error. 18627 Use char because int might match the return type of a GCC 18628 builtin and then its argument prototype would still apply. */ 18629#ifdef __cplusplus 18630extern "C" 18631#endif 18632char shl_load (); 18633int 18634main () 18635{ 18636return shl_load (); 18637 ; 18638 return 0; 18639} 18640_ACEOF 18641if ac_fn_c_try_link "$LINENO"; then : 18642 ac_cv_lib_dld_shl_load=yes 18643else 18644 ac_cv_lib_dld_shl_load=no 18645fi 18646rm -f core conftest.err conftest.$ac_objext \ 18647 conftest$ac_exeext conftest.$ac_ext 18648LIBS=$ac_check_lib_save_LIBS 18649fi 18650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 18651$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 18652if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 18653 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 18654else 18655 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 18656if test "x$ac_cv_func_dlopen" = xyes; then : 18657 lt_cv_dlopen="dlopen" 18658else 18659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18660$as_echo_n "checking for dlopen in -ldl... " >&6; } 18661if ${ac_cv_lib_dl_dlopen+:} false; then : 18662 $as_echo_n "(cached) " >&6 18663else 18664 ac_check_lib_save_LIBS=$LIBS 18665LIBS="-ldl $LIBS" 18666cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18667/* end confdefs.h. */ 18668 18669/* Override any GCC internal prototype to avoid an error. 18670 Use char because int might match the return type of a GCC 18671 builtin and then its argument prototype would still apply. */ 18672#ifdef __cplusplus 18673extern "C" 18674#endif 18675char dlopen (); 18676int 18677main () 18678{ 18679return dlopen (); 18680 ; 18681 return 0; 18682} 18683_ACEOF 18684if ac_fn_c_try_link "$LINENO"; then : 18685 ac_cv_lib_dl_dlopen=yes 18686else 18687 ac_cv_lib_dl_dlopen=no 18688fi 18689rm -f core conftest.err conftest.$ac_objext \ 18690 conftest$ac_exeext conftest.$ac_ext 18691LIBS=$ac_check_lib_save_LIBS 18692fi 18693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18694$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18695if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18696 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18697else 18698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18699$as_echo_n "checking for dlopen in -lsvld... " >&6; } 18700if ${ac_cv_lib_svld_dlopen+:} false; then : 18701 $as_echo_n "(cached) " >&6 18702else 18703 ac_check_lib_save_LIBS=$LIBS 18704LIBS="-lsvld $LIBS" 18705cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18706/* end confdefs.h. */ 18707 18708/* Override any GCC internal prototype to avoid an error. 18709 Use char because int might match the return type of a GCC 18710 builtin and then its argument prototype would still apply. */ 18711#ifdef __cplusplus 18712extern "C" 18713#endif 18714char dlopen (); 18715int 18716main () 18717{ 18718return dlopen (); 18719 ; 18720 return 0; 18721} 18722_ACEOF 18723if ac_fn_c_try_link "$LINENO"; then : 18724 ac_cv_lib_svld_dlopen=yes 18725else 18726 ac_cv_lib_svld_dlopen=no 18727fi 18728rm -f core conftest.err conftest.$ac_objext \ 18729 conftest$ac_exeext conftest.$ac_ext 18730LIBS=$ac_check_lib_save_LIBS 18731fi 18732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18733$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 18734if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 18735 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 18736else 18737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18738$as_echo_n "checking for dld_link in -ldld... " >&6; } 18739if ${ac_cv_lib_dld_dld_link+:} false; then : 18740 $as_echo_n "(cached) " >&6 18741else 18742 ac_check_lib_save_LIBS=$LIBS 18743LIBS="-ldld $LIBS" 18744cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18745/* end confdefs.h. */ 18746 18747/* Override any GCC internal prototype to avoid an error. 18748 Use char because int might match the return type of a GCC 18749 builtin and then its argument prototype would still apply. */ 18750#ifdef __cplusplus 18751extern "C" 18752#endif 18753char dld_link (); 18754int 18755main () 18756{ 18757return dld_link (); 18758 ; 18759 return 0; 18760} 18761_ACEOF 18762if ac_fn_c_try_link "$LINENO"; then : 18763 ac_cv_lib_dld_dld_link=yes 18764else 18765 ac_cv_lib_dld_dld_link=no 18766fi 18767rm -f core conftest.err conftest.$ac_objext \ 18768 conftest$ac_exeext conftest.$ac_ext 18769LIBS=$ac_check_lib_save_LIBS 18770fi 18771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18772$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 18773if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 18774 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 18775fi 18776 18777 18778fi 18779 18780 18781fi 18782 18783 18784fi 18785 18786 18787fi 18788 18789 18790fi 18791 18792 ;; 18793 esac 18794 18795 if test "x$lt_cv_dlopen" != xno; then 18796 enable_dlopen=yes 18797 else 18798 enable_dlopen=no 18799 fi 18800 18801 case $lt_cv_dlopen in 18802 dlopen) 18803 save_CPPFLAGS="$CPPFLAGS" 18804 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18805 18806 save_LDFLAGS="$LDFLAGS" 18807 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18808 18809 save_LIBS="$LIBS" 18810 LIBS="$lt_cv_dlopen_libs $LIBS" 18811 18812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18813$as_echo_n "checking whether a program can dlopen itself... " >&6; } 18814if ${lt_cv_dlopen_self+:} false; then : 18815 $as_echo_n "(cached) " >&6 18816else 18817 if test "$cross_compiling" = yes; then : 18818 lt_cv_dlopen_self=cross 18819else 18820 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18821 lt_status=$lt_dlunknown 18822 cat > conftest.$ac_ext <<_LT_EOF 18823#line $LINENO "configure" 18824#include "confdefs.h" 18825 18826#if HAVE_DLFCN_H 18827#include <dlfcn.h> 18828#endif 18829 18830#include <stdio.h> 18831 18832#ifdef RTLD_GLOBAL 18833# define LT_DLGLOBAL RTLD_GLOBAL 18834#else 18835# ifdef DL_GLOBAL 18836# define LT_DLGLOBAL DL_GLOBAL 18837# else 18838# define LT_DLGLOBAL 0 18839# endif 18840#endif 18841 18842/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18843 find out it does not work in some platform. */ 18844#ifndef LT_DLLAZY_OR_NOW 18845# ifdef RTLD_LAZY 18846# define LT_DLLAZY_OR_NOW RTLD_LAZY 18847# else 18848# ifdef DL_LAZY 18849# define LT_DLLAZY_OR_NOW DL_LAZY 18850# else 18851# ifdef RTLD_NOW 18852# define LT_DLLAZY_OR_NOW RTLD_NOW 18853# else 18854# ifdef DL_NOW 18855# define LT_DLLAZY_OR_NOW DL_NOW 18856# else 18857# define LT_DLLAZY_OR_NOW 0 18858# endif 18859# endif 18860# endif 18861# endif 18862#endif 18863 18864/* When -fvisbility=hidden is used, assume the code has been annotated 18865 correspondingly for the symbols needed. */ 18866#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18867int fnord () __attribute__((visibility("default"))); 18868#endif 18869 18870int fnord () { return 42; } 18871int main () 18872{ 18873 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18874 int status = $lt_dlunknown; 18875 18876 if (self) 18877 { 18878 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18879 else 18880 { 18881 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18882 else puts (dlerror ()); 18883 } 18884 /* dlclose (self); */ 18885 } 18886 else 18887 puts (dlerror ()); 18888 18889 return status; 18890} 18891_LT_EOF 18892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18893 (eval $ac_link) 2>&5 18894 ac_status=$? 18895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18896 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 18897 (./conftest; exit; ) >&5 2>/dev/null 18898 lt_status=$? 18899 case x$lt_status in 18900 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18901 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18902 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 18903 esac 18904 else : 18905 # compilation failed 18906 lt_cv_dlopen_self=no 18907 fi 18908fi 18909rm -fr conftest* 18910 18911 18912fi 18913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 18914$as_echo "$lt_cv_dlopen_self" >&6; } 18915 18916 if test "x$lt_cv_dlopen_self" = xyes; then 18917 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 18918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 18919$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 18920if ${lt_cv_dlopen_self_static+:} false; then : 18921 $as_echo_n "(cached) " >&6 18922else 18923 if test "$cross_compiling" = yes; then : 18924 lt_cv_dlopen_self_static=cross 18925else 18926 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18927 lt_status=$lt_dlunknown 18928 cat > conftest.$ac_ext <<_LT_EOF 18929#line $LINENO "configure" 18930#include "confdefs.h" 18931 18932#if HAVE_DLFCN_H 18933#include <dlfcn.h> 18934#endif 18935 18936#include <stdio.h> 18937 18938#ifdef RTLD_GLOBAL 18939# define LT_DLGLOBAL RTLD_GLOBAL 18940#else 18941# ifdef DL_GLOBAL 18942# define LT_DLGLOBAL DL_GLOBAL 18943# else 18944# define LT_DLGLOBAL 0 18945# endif 18946#endif 18947 18948/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18949 find out it does not work in some platform. */ 18950#ifndef LT_DLLAZY_OR_NOW 18951# ifdef RTLD_LAZY 18952# define LT_DLLAZY_OR_NOW RTLD_LAZY 18953# else 18954# ifdef DL_LAZY 18955# define LT_DLLAZY_OR_NOW DL_LAZY 18956# else 18957# ifdef RTLD_NOW 18958# define LT_DLLAZY_OR_NOW RTLD_NOW 18959# else 18960# ifdef DL_NOW 18961# define LT_DLLAZY_OR_NOW DL_NOW 18962# else 18963# define LT_DLLAZY_OR_NOW 0 18964# endif 18965# endif 18966# endif 18967# endif 18968#endif 18969 18970/* When -fvisbility=hidden is used, assume the code has been annotated 18971 correspondingly for the symbols needed. */ 18972#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18973int fnord () __attribute__((visibility("default"))); 18974#endif 18975 18976int fnord () { return 42; } 18977int main () 18978{ 18979 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18980 int status = $lt_dlunknown; 18981 18982 if (self) 18983 { 18984 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18985 else 18986 { 18987 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18988 else puts (dlerror ()); 18989 } 18990 /* dlclose (self); */ 18991 } 18992 else 18993 puts (dlerror ()); 18994 18995 return status; 18996} 18997_LT_EOF 18998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18999 (eval $ac_link) 2>&5 19000 ac_status=$? 19001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19002 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 19003 (./conftest; exit; ) >&5 2>/dev/null 19004 lt_status=$? 19005 case x$lt_status in 19006 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 19007 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 19008 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 19009 esac 19010 else : 19011 # compilation failed 19012 lt_cv_dlopen_self_static=no 19013 fi 19014fi 19015rm -fr conftest* 19016 19017 19018fi 19019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 19020$as_echo "$lt_cv_dlopen_self_static" >&6; } 19021 fi 19022 19023 CPPFLAGS="$save_CPPFLAGS" 19024 LDFLAGS="$save_LDFLAGS" 19025 LIBS="$save_LIBS" 19026 ;; 19027 esac 19028 19029 case $lt_cv_dlopen_self in 19030 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19031 *) enable_dlopen_self=unknown ;; 19032 esac 19033 19034 case $lt_cv_dlopen_self_static in 19035 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19036 *) enable_dlopen_self_static=unknown ;; 19037 esac 19038fi 19039 19040 19041 19042 19043 19044 19045 19046 19047 19048 19049 19050 19051 19052 19053 19054 19055 19056striplib= 19057old_striplib= 19058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 19059$as_echo_n "checking whether stripping libraries is possible... " >&6; } 19060if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 19061 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 19062 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 19063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19064$as_echo "yes" >&6; } 19065else 19066# FIXME - insert some real tests, host_os isn't really good enough 19067 case $host_os in 19068 darwin*) 19069 if test -n "$STRIP" ; then 19070 striplib="$STRIP -x" 19071 old_striplib="$STRIP -S" 19072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19073$as_echo "yes" >&6; } 19074 else 19075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19076$as_echo "no" >&6; } 19077 fi 19078 ;; 19079 *) 19080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19081$as_echo "no" >&6; } 19082 ;; 19083 esac 19084fi 19085 19086 19087 19088 19089 19090 19091 19092 19093 19094 19095 19096 19097 # Report which library types will actually be built 19098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 19099$as_echo_n "checking if libtool supports shared libraries... " >&6; } 19100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 19101$as_echo "$can_build_shared" >&6; } 19102 19103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 19104$as_echo_n "checking whether to build shared libraries... " >&6; } 19105 test "$can_build_shared" = "no" && enable_shared=no 19106 19107 # On AIX, shared libraries and static libraries use the same namespace, and 19108 # are all built from PIC. 19109 case $host_os in 19110 aix3*) 19111 test "$enable_shared" = yes && enable_static=no 19112 if test -n "$RANLIB"; then 19113 archive_cmds="$archive_cmds~\$RANLIB \$lib" 19114 postinstall_cmds='$RANLIB $lib' 19115 fi 19116 ;; 19117 19118 aix[4-9]*) 19119 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 19120 test "$enable_shared" = yes && enable_static=no 19121 fi 19122 ;; 19123 esac 19124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 19125$as_echo "$enable_shared" >&6; } 19126 19127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 19128$as_echo_n "checking whether to build static libraries... " >&6; } 19129 # Make sure either enable_shared or enable_static is yes. 19130 test "$enable_shared" = yes || enable_static=yes 19131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 19132$as_echo "$enable_static" >&6; } 19133 19134 19135 19136 19137fi 19138ac_ext=c 19139ac_cpp='$CPP $CPPFLAGS' 19140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19142ac_compiler_gnu=$ac_cv_c_compiler_gnu 19143 19144CC="$lt_save_CC" 19145 19146 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 19147 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 19148 (test "X$CXX" != "Xg++"))) ; then 19149 ac_ext=cpp 19150ac_cpp='$CXXCPP $CPPFLAGS' 19151ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19152ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19153ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 19155$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 19156if test -z "$CXXCPP"; then 19157 if ${ac_cv_prog_CXXCPP+:} false; then : 19158 $as_echo_n "(cached) " >&6 19159else 19160 # Double quotes because CXXCPP needs to be expanded 19161 for CXXCPP in "$CXX -E" "/lib/cpp" 19162 do 19163 ac_preproc_ok=false 19164for ac_cxx_preproc_warn_flag in '' yes 19165do 19166 # Use a header file that comes with gcc, so configuring glibc 19167 # with a fresh cross-compiler works. 19168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19169 # <limits.h> exists even on freestanding compilers. 19170 # On the NeXT, cc -E runs the code through the compiler's parser, 19171 # not just through cpp. "Syntax error" is here to catch this case. 19172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19173/* end confdefs.h. */ 19174#ifdef __STDC__ 19175# include <limits.h> 19176#else 19177# include <assert.h> 19178#endif 19179 Syntax error 19180_ACEOF 19181if ac_fn_cxx_try_cpp "$LINENO"; then : 19182 19183else 19184 # Broken: fails on valid input. 19185continue 19186fi 19187rm -f conftest.err conftest.i conftest.$ac_ext 19188 19189 # OK, works on sane cases. Now check whether nonexistent headers 19190 # can be detected and how. 19191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19192/* end confdefs.h. */ 19193#include <ac_nonexistent.h> 19194_ACEOF 19195if ac_fn_cxx_try_cpp "$LINENO"; then : 19196 # Broken: success on invalid input. 19197continue 19198else 19199 # Passes both tests. 19200ac_preproc_ok=: 19201break 19202fi 19203rm -f conftest.err conftest.i conftest.$ac_ext 19204 19205done 19206# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 19207rm -f conftest.i conftest.err conftest.$ac_ext 19208if $ac_preproc_ok; then : 19209 break 19210fi 19211 19212 done 19213 ac_cv_prog_CXXCPP=$CXXCPP 19214 19215fi 19216 CXXCPP=$ac_cv_prog_CXXCPP 19217else 19218 ac_cv_prog_CXXCPP=$CXXCPP 19219fi 19220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 19221$as_echo "$CXXCPP" >&6; } 19222ac_preproc_ok=false 19223for ac_cxx_preproc_warn_flag in '' yes 19224do 19225 # Use a header file that comes with gcc, so configuring glibc 19226 # with a fresh cross-compiler works. 19227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19228 # <limits.h> exists even on freestanding compilers. 19229 # On the NeXT, cc -E runs the code through the compiler's parser, 19230 # not just through cpp. "Syntax error" is here to catch this case. 19231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19232/* end confdefs.h. */ 19233#ifdef __STDC__ 19234# include <limits.h> 19235#else 19236# include <assert.h> 19237#endif 19238 Syntax error 19239_ACEOF 19240if ac_fn_cxx_try_cpp "$LINENO"; then : 19241 19242else 19243 # Broken: fails on valid input. 19244continue 19245fi 19246rm -f conftest.err conftest.i conftest.$ac_ext 19247 19248 # OK, works on sane cases. Now check whether nonexistent headers 19249 # can be detected and how. 19250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19251/* end confdefs.h. */ 19252#include <ac_nonexistent.h> 19253_ACEOF 19254if ac_fn_cxx_try_cpp "$LINENO"; then : 19255 # Broken: success on invalid input. 19256continue 19257else 19258 # Passes both tests. 19259ac_preproc_ok=: 19260break 19261fi 19262rm -f conftest.err conftest.i conftest.$ac_ext 19263 19264done 19265# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 19266rm -f conftest.i conftest.err conftest.$ac_ext 19267if $ac_preproc_ok; then : 19268 19269else 19270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19272as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 19273See \`config.log' for more details" "$LINENO" 5; } 19274fi 19275 19276ac_ext=c 19277ac_cpp='$CPP $CPPFLAGS' 19278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19280ac_compiler_gnu=$ac_cv_c_compiler_gnu 19281 19282else 19283 _lt_caught_CXX_error=yes 19284fi 19285 19286ac_ext=cpp 19287ac_cpp='$CXXCPP $CPPFLAGS' 19288ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19289ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19290ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19291 19292archive_cmds_need_lc_CXX=no 19293allow_undefined_flag_CXX= 19294always_export_symbols_CXX=no 19295archive_expsym_cmds_CXX= 19296compiler_needs_object_CXX=no 19297export_dynamic_flag_spec_CXX= 19298hardcode_direct_CXX=no 19299hardcode_direct_absolute_CXX=no 19300hardcode_libdir_flag_spec_CXX= 19301hardcode_libdir_separator_CXX= 19302hardcode_minus_L_CXX=no 19303hardcode_shlibpath_var_CXX=unsupported 19304hardcode_automatic_CXX=no 19305inherit_rpath_CXX=no 19306module_cmds_CXX= 19307module_expsym_cmds_CXX= 19308link_all_deplibs_CXX=unknown 19309old_archive_cmds_CXX=$old_archive_cmds 19310reload_flag_CXX=$reload_flag 19311reload_cmds_CXX=$reload_cmds 19312no_undefined_flag_CXX= 19313whole_archive_flag_spec_CXX= 19314enable_shared_with_static_runtimes_CXX=no 19315 19316# Source file extension for C++ test sources. 19317ac_ext=cpp 19318 19319# Object file extension for compiled C++ test sources. 19320objext=o 19321objext_CXX=$objext 19322 19323# No sense in running all these tests if we already determined that 19324# the CXX compiler isn't working. Some variables (like enable_shared) 19325# are currently assumed to apply to all compilers on this platform, 19326# and will be corrupted by setting them based on a non-working compiler. 19327if test "$_lt_caught_CXX_error" != yes; then 19328 # Code to be used in simple compile tests 19329 lt_simple_compile_test_code="int some_variable = 0;" 19330 19331 # Code to be used in simple link tests 19332 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 19333 19334 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 19335 19336 19337 19338 19339 19340 19341# If no C compiler was specified, use CC. 19342LTCC=${LTCC-"$CC"} 19343 19344# If no C compiler flags were specified, use CFLAGS. 19345LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19346 19347# Allow CC to be a program name with arguments. 19348compiler=$CC 19349 19350 19351 # save warnings/boilerplate of simple test code 19352 ac_outfile=conftest.$ac_objext 19353echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19354eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19355_lt_compiler_boilerplate=`cat conftest.err` 19356$RM conftest* 19357 19358 ac_outfile=conftest.$ac_objext 19359echo "$lt_simple_link_test_code" >conftest.$ac_ext 19360eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19361_lt_linker_boilerplate=`cat conftest.err` 19362$RM -r conftest* 19363 19364 19365 # Allow CC to be a program name with arguments. 19366 lt_save_CC=$CC 19367 lt_save_CFLAGS=$CFLAGS 19368 lt_save_LD=$LD 19369 lt_save_GCC=$GCC 19370 GCC=$GXX 19371 lt_save_with_gnu_ld=$with_gnu_ld 19372 lt_save_path_LD=$lt_cv_path_LD 19373 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 19374 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 19375 else 19376 $as_unset lt_cv_prog_gnu_ld 19377 fi 19378 if test -n "${lt_cv_path_LDCXX+set}"; then 19379 lt_cv_path_LD=$lt_cv_path_LDCXX 19380 else 19381 $as_unset lt_cv_path_LD 19382 fi 19383 test -z "${LDCXX+set}" || LD=$LDCXX 19384 CC=${CXX-"c++"} 19385 CFLAGS=$CXXFLAGS 19386 compiler=$CC 19387 compiler_CXX=$CC 19388 for cc_temp in $compiler""; do 19389 case $cc_temp in 19390 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19391 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19392 \-*) ;; 19393 *) break;; 19394 esac 19395done 19396cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 19397 19398 19399 if test -n "$compiler"; then 19400 # We don't want -fno-exception when compiling C++ code, so set the 19401 # no_builtin_flag separately 19402 if test "$GXX" = yes; then 19403 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 19404 else 19405 lt_prog_compiler_no_builtin_flag_CXX= 19406 fi 19407 19408 if test "$GXX" = yes; then 19409 # Set up default GNU C++ configuration 19410 19411 19412 19413# Check whether --with-gnu-ld was given. 19414if test "${with_gnu_ld+set}" = set; then : 19415 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 19416else 19417 with_gnu_ld=no 19418fi 19419 19420ac_prog=ld 19421if test "$GCC" = yes; then 19422 # Check if gcc -print-prog-name=ld gives a path. 19423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 19424$as_echo_n "checking for ld used by $CC... " >&6; } 19425 case $host in 19426 *-*-mingw*) 19427 # gcc leaves a trailing carriage return which upsets mingw 19428 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 19429 *) 19430 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 19431 esac 19432 case $ac_prog in 19433 # Accept absolute paths. 19434 [\\/]* | ?:[\\/]*) 19435 re_direlt='/[^/][^/]*/\.\./' 19436 # Canonicalize the pathname of ld 19437 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 19438 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 19439 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 19440 done 19441 test -z "$LD" && LD="$ac_prog" 19442 ;; 19443 "") 19444 # If it fails, then pretend we aren't using GCC. 19445 ac_prog=ld 19446 ;; 19447 *) 19448 # If it is relative, then search for the first ld in PATH. 19449 with_gnu_ld=unknown 19450 ;; 19451 esac 19452elif test "$with_gnu_ld" = yes; then 19453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 19454$as_echo_n "checking for GNU ld... " >&6; } 19455else 19456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 19457$as_echo_n "checking for non-GNU ld... " >&6; } 19458fi 19459if ${lt_cv_path_LD+:} false; then : 19460 $as_echo_n "(cached) " >&6 19461else 19462 if test -z "$LD"; then 19463 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 19464 for ac_dir in $PATH; do 19465 IFS="$lt_save_ifs" 19466 test -z "$ac_dir" && ac_dir=. 19467 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 19468 lt_cv_path_LD="$ac_dir/$ac_prog" 19469 # Check to see if the program is GNU ld. I'd rather use --version, 19470 # but apparently some variants of GNU ld only accept -v. 19471 # Break only if it was the GNU/non-GNU ld that we prefer. 19472 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 19473 *GNU* | *'with BFD'*) 19474 test "$with_gnu_ld" != no && break 19475 ;; 19476 *) 19477 test "$with_gnu_ld" != yes && break 19478 ;; 19479 esac 19480 fi 19481 done 19482 IFS="$lt_save_ifs" 19483else 19484 lt_cv_path_LD="$LD" # Let the user override the test with a path. 19485fi 19486fi 19487 19488LD="$lt_cv_path_LD" 19489if test -n "$LD"; then 19490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 19491$as_echo "$LD" >&6; } 19492else 19493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19494$as_echo "no" >&6; } 19495fi 19496test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 19497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 19498$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 19499if ${lt_cv_prog_gnu_ld+:} false; then : 19500 $as_echo_n "(cached) " >&6 19501else 19502 # I'd rather use --version here, but apparently some GNU lds only accept -v. 19503case `$LD -v 2>&1 </dev/null` in 19504*GNU* | *'with BFD'*) 19505 lt_cv_prog_gnu_ld=yes 19506 ;; 19507*) 19508 lt_cv_prog_gnu_ld=no 19509 ;; 19510esac 19511fi 19512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 19513$as_echo "$lt_cv_prog_gnu_ld" >&6; } 19514with_gnu_ld=$lt_cv_prog_gnu_ld 19515 19516 19517 19518 19519 19520 19521 19522 # Check if GNU C++ uses GNU ld as the underlying linker, since the 19523 # archiving commands below assume that GNU ld is being used. 19524 if test "$with_gnu_ld" = yes; then 19525 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 19526 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 19527 19528 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 19529 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 19530 19531 # If archive_cmds runs LD, not CC, wlarc should be empty 19532 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 19533 # investigate it a little bit more. (MM) 19534 wlarc='${wl}' 19535 19536 # ancient GNU ld didn't support --whole-archive et. al. 19537 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 19538 $GREP 'no-whole-archive' > /dev/null; then 19539 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 19540 else 19541 whole_archive_flag_spec_CXX= 19542 fi 19543 else 19544 with_gnu_ld=no 19545 wlarc= 19546 19547 # A generic and very simple default shared library creation 19548 # command for GNU C++ for the case where it uses the native 19549 # linker, instead of GNU ld. If possible, this setting should 19550 # overridden to take advantage of the native linker features on 19551 # the platform it is being used on. 19552 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 19553 fi 19554 19555 # Commands to make compiler produce verbose output that lists 19556 # what "hidden" libraries, object files and flags are used when 19557 # linking a shared library. 19558 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 19559 19560 else 19561 GXX=no 19562 with_gnu_ld=no 19563 wlarc= 19564 fi 19565 19566 # PORTME: fill in a description of your system's C++ link characteristics 19567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 19568$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 19569 ld_shlibs_CXX=yes 19570 case $host_os in 19571 aix3*) 19572 # FIXME: insert proper C++ library support 19573 ld_shlibs_CXX=no 19574 ;; 19575 aix[4-9]*) 19576 if test "$host_cpu" = ia64; then 19577 # On IA64, the linker does run time linking by default, so we don't 19578 # have to do anything special. 19579 aix_use_runtimelinking=no 19580 exp_sym_flag='-Bexport' 19581 no_entry_flag="" 19582 else 19583 aix_use_runtimelinking=no 19584 19585 # Test if we are trying to use run time linking or normal 19586 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 19587 # need to do runtime linking. 19588 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 19589 for ld_flag in $LDFLAGS; do 19590 case $ld_flag in 19591 *-brtl*) 19592 aix_use_runtimelinking=yes 19593 break 19594 ;; 19595 esac 19596 done 19597 ;; 19598 esac 19599 19600 exp_sym_flag='-bexport' 19601 no_entry_flag='-bnoentry' 19602 fi 19603 19604 # When large executables or shared objects are built, AIX ld can 19605 # have problems creating the table of contents. If linking a library 19606 # or program results in "error TOC overflow" add -mminimal-toc to 19607 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 19608 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 19609 19610 archive_cmds_CXX='' 19611 hardcode_direct_CXX=yes 19612 hardcode_direct_absolute_CXX=yes 19613 hardcode_libdir_separator_CXX=':' 19614 link_all_deplibs_CXX=yes 19615 file_list_spec_CXX='${wl}-f,' 19616 19617 if test "$GXX" = yes; then 19618 case $host_os in aix4.[012]|aix4.[012].*) 19619 # We only want to do this on AIX 4.2 and lower, the check 19620 # below for broken collect2 doesn't work under 4.3+ 19621 collect2name=`${CC} -print-prog-name=collect2` 19622 if test -f "$collect2name" && 19623 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 19624 then 19625 # We have reworked collect2 19626 : 19627 else 19628 # We have old collect2 19629 hardcode_direct_CXX=unsupported 19630 # It fails to find uninstalled libraries when the uninstalled 19631 # path is not listed in the libpath. Setting hardcode_minus_L 19632 # to unsupported forces relinking 19633 hardcode_minus_L_CXX=yes 19634 hardcode_libdir_flag_spec_CXX='-L$libdir' 19635 hardcode_libdir_separator_CXX= 19636 fi 19637 esac 19638 shared_flag='-shared' 19639 if test "$aix_use_runtimelinking" = yes; then 19640 shared_flag="$shared_flag "'${wl}-G' 19641 fi 19642 else 19643 # not using gcc 19644 if test "$host_cpu" = ia64; then 19645 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 19646 # chokes on -Wl,-G. The following line is correct: 19647 shared_flag='-G' 19648 else 19649 if test "$aix_use_runtimelinking" = yes; then 19650 shared_flag='${wl}-G' 19651 else 19652 shared_flag='${wl}-bM:SRE' 19653 fi 19654 fi 19655 fi 19656 19657 export_dynamic_flag_spec_CXX='${wl}-bexpall' 19658 # It seems that -bexpall does not export symbols beginning with 19659 # underscore (_), so it is better to generate a list of symbols to 19660 # export. 19661 always_export_symbols_CXX=yes 19662 if test "$aix_use_runtimelinking" = yes; then 19663 # Warning - without using the other runtime loading flags (-brtl), 19664 # -berok will link without error, but may produce a broken library. 19665 allow_undefined_flag_CXX='-berok' 19666 # Determine the default libpath from the value encoded in an empty 19667 # executable. 19668 if test "${lt_cv_aix_libpath+set}" = set; then 19669 aix_libpath=$lt_cv_aix_libpath 19670else 19671 if ${lt_cv_aix_libpath__CXX+:} false; then : 19672 $as_echo_n "(cached) " >&6 19673else 19674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19675/* end confdefs.h. */ 19676 19677int 19678main () 19679{ 19680 19681 ; 19682 return 0; 19683} 19684_ACEOF 19685if ac_fn_cxx_try_link "$LINENO"; then : 19686 19687 lt_aix_libpath_sed=' 19688 /Import File Strings/,/^$/ { 19689 /^0/ { 19690 s/^0 *\([^ ]*\) *$/\1/ 19691 p 19692 } 19693 }' 19694 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19695 # Check for a 64-bit object if we didn't find anything. 19696 if test -z "$lt_cv_aix_libpath__CXX"; then 19697 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19698 fi 19699fi 19700rm -f core conftest.err conftest.$ac_objext \ 19701 conftest$ac_exeext conftest.$ac_ext 19702 if test -z "$lt_cv_aix_libpath__CXX"; then 19703 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 19704 fi 19705 19706fi 19707 19708 aix_libpath=$lt_cv_aix_libpath__CXX 19709fi 19710 19711 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 19712 19713 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 19714 else 19715 if test "$host_cpu" = ia64; then 19716 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 19717 allow_undefined_flag_CXX="-z nodefs" 19718 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 19719 else 19720 # Determine the default libpath from the value encoded in an 19721 # empty executable. 19722 if test "${lt_cv_aix_libpath+set}" = set; then 19723 aix_libpath=$lt_cv_aix_libpath 19724else 19725 if ${lt_cv_aix_libpath__CXX+:} false; then : 19726 $as_echo_n "(cached) " >&6 19727else 19728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19729/* end confdefs.h. */ 19730 19731int 19732main () 19733{ 19734 19735 ; 19736 return 0; 19737} 19738_ACEOF 19739if ac_fn_cxx_try_link "$LINENO"; then : 19740 19741 lt_aix_libpath_sed=' 19742 /Import File Strings/,/^$/ { 19743 /^0/ { 19744 s/^0 *\([^ ]*\) *$/\1/ 19745 p 19746 } 19747 }' 19748 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19749 # Check for a 64-bit object if we didn't find anything. 19750 if test -z "$lt_cv_aix_libpath__CXX"; then 19751 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19752 fi 19753fi 19754rm -f core conftest.err conftest.$ac_objext \ 19755 conftest$ac_exeext conftest.$ac_ext 19756 if test -z "$lt_cv_aix_libpath__CXX"; then 19757 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 19758 fi 19759 19760fi 19761 19762 aix_libpath=$lt_cv_aix_libpath__CXX 19763fi 19764 19765 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 19766 # Warning - without using the other run time loading flags, 19767 # -berok will link without error, but may produce a broken library. 19768 no_undefined_flag_CXX=' ${wl}-bernotok' 19769 allow_undefined_flag_CXX=' ${wl}-berok' 19770 if test "$with_gnu_ld" = yes; then 19771 # We only use this code for GNU lds that support --whole-archive. 19772 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 19773 else 19774 # Exported symbols can be pulled into shared objects from archives 19775 whole_archive_flag_spec_CXX='$convenience' 19776 fi 19777 archive_cmds_need_lc_CXX=yes 19778 # This is similar to how AIX traditionally builds its shared 19779 # libraries. 19780 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 19781 fi 19782 fi 19783 ;; 19784 19785 beos*) 19786 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19787 allow_undefined_flag_CXX=unsupported 19788 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 19789 # support --undefined. This deserves some investigation. FIXME 19790 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19791 else 19792 ld_shlibs_CXX=no 19793 fi 19794 ;; 19795 19796 chorus*) 19797 case $cc_basename in 19798 *) 19799 # FIXME: insert proper C++ library support 19800 ld_shlibs_CXX=no 19801 ;; 19802 esac 19803 ;; 19804 19805 cygwin* | mingw* | pw32* | cegcc*) 19806 case $GXX,$cc_basename in 19807 ,cl* | no,cl*) 19808 # Native MSVC 19809 # hardcode_libdir_flag_spec is actually meaningless, as there is 19810 # no search path for DLLs. 19811 hardcode_libdir_flag_spec_CXX=' ' 19812 allow_undefined_flag_CXX=unsupported 19813 always_export_symbols_CXX=yes 19814 file_list_spec_CXX='@' 19815 # Tell ltmain to make .lib files, not .a files. 19816 libext=lib 19817 # Tell ltmain to make .dll files, not .so files. 19818 shrext_cmds=".dll" 19819 # FIXME: Setting linknames here is a bad hack. 19820 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 19821 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 19822 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 19823 else 19824 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 19825 fi~ 19826 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 19827 linknames=' 19828 # The linker will not automatically build a static lib if we build a DLL. 19829 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 19830 enable_shared_with_static_runtimes_CXX=yes 19831 # Don't use ranlib 19832 old_postinstall_cmds_CXX='chmod 644 $oldlib' 19833 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 19834 lt_tool_outputfile="@TOOL_OUTPUT@"~ 19835 case $lt_outputfile in 19836 *.exe|*.EXE) ;; 19837 *) 19838 lt_outputfile="$lt_outputfile.exe" 19839 lt_tool_outputfile="$lt_tool_outputfile.exe" 19840 ;; 19841 esac~ 19842 func_to_tool_file "$lt_outputfile"~ 19843 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 19844 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 19845 $RM "$lt_outputfile.manifest"; 19846 fi' 19847 ;; 19848 *) 19849 # g++ 19850 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 19851 # as there is no search path for DLLs. 19852 hardcode_libdir_flag_spec_CXX='-L$libdir' 19853 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 19854 allow_undefined_flag_CXX=unsupported 19855 always_export_symbols_CXX=no 19856 enable_shared_with_static_runtimes_CXX=yes 19857 19858 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 19859 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19860 # If the export-symbols file already is a .def file (1st line 19861 # is EXPORTS), use it as is; otherwise, prepend... 19862 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 19863 cp $export_symbols $output_objdir/$soname.def; 19864 else 19865 echo EXPORTS > $output_objdir/$soname.def; 19866 cat $export_symbols >> $output_objdir/$soname.def; 19867 fi~ 19868 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19869 else 19870 ld_shlibs_CXX=no 19871 fi 19872 ;; 19873 esac 19874 ;; 19875 darwin* | rhapsody*) 19876 19877 19878 archive_cmds_need_lc_CXX=no 19879 hardcode_direct_CXX=no 19880 hardcode_automatic_CXX=yes 19881 hardcode_shlibpath_var_CXX=unsupported 19882 if test "$lt_cv_ld_force_load" = "yes"; then 19883 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 19884 19885 else 19886 whole_archive_flag_spec_CXX='' 19887 fi 19888 link_all_deplibs_CXX=yes 19889 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 19890 case $cc_basename in 19891 ifort*) _lt_dar_can_shared=yes ;; 19892 *) _lt_dar_can_shared=$GCC ;; 19893 esac 19894 if test "$_lt_dar_can_shared" = "yes"; then 19895 output_verbose_link_cmd=func_echo_all 19896 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 19897 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 19898 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 19899 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 19900 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 19901 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 19902 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 19903 fi 19904 19905 else 19906 ld_shlibs_CXX=no 19907 fi 19908 19909 ;; 19910 19911 dgux*) 19912 case $cc_basename in 19913 ec++*) 19914 # FIXME: insert proper C++ library support 19915 ld_shlibs_CXX=no 19916 ;; 19917 ghcx*) 19918 # Green Hills C++ Compiler 19919 # FIXME: insert proper C++ library support 19920 ld_shlibs_CXX=no 19921 ;; 19922 *) 19923 # FIXME: insert proper C++ library support 19924 ld_shlibs_CXX=no 19925 ;; 19926 esac 19927 ;; 19928 19929 freebsd2.*) 19930 # C++ shared libraries reported to be fairly broken before 19931 # switch to ELF 19932 ld_shlibs_CXX=no 19933 ;; 19934 19935 freebsd-elf*) 19936 archive_cmds_need_lc_CXX=no 19937 ;; 19938 19939 freebsd* | dragonfly*) 19940 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 19941 # conventions 19942 ld_shlibs_CXX=yes 19943 ;; 19944 19945 haiku*) 19946 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19947 link_all_deplibs_CXX=yes 19948 ;; 19949 19950 hpux9*) 19951 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 19952 hardcode_libdir_separator_CXX=: 19953 export_dynamic_flag_spec_CXX='${wl}-E' 19954 hardcode_direct_CXX=yes 19955 hardcode_minus_L_CXX=yes # Not in the search PATH, 19956 # but as the default 19957 # location of the library. 19958 19959 case $cc_basename in 19960 CC*) 19961 # FIXME: insert proper C++ library support 19962 ld_shlibs_CXX=no 19963 ;; 19964 aCC*) 19965 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 19966 # Commands to make compiler produce verbose output that lists 19967 # what "hidden" libraries, object files and flags are used when 19968 # linking a shared library. 19969 # 19970 # There doesn't appear to be a way to prevent this compiler from 19971 # explicitly linking system object files so we need to strip them 19972 # from the output so that they don't get included in the library 19973 # dependencies. 19974 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 19975 ;; 19976 *) 19977 if test "$GXX" = yes; then 19978 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 19979 else 19980 # FIXME: insert proper C++ library support 19981 ld_shlibs_CXX=no 19982 fi 19983 ;; 19984 esac 19985 ;; 19986 19987 hpux10*|hpux11*) 19988 if test $with_gnu_ld = no; then 19989 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 19990 hardcode_libdir_separator_CXX=: 19991 19992 case $host_cpu in 19993 hppa*64*|ia64*) 19994 ;; 19995 *) 19996 export_dynamic_flag_spec_CXX='${wl}-E' 19997 ;; 19998 esac 19999 fi 20000 case $host_cpu in 20001 hppa*64*|ia64*) 20002 hardcode_direct_CXX=no 20003 hardcode_shlibpath_var_CXX=no 20004 ;; 20005 *) 20006 hardcode_direct_CXX=yes 20007 hardcode_direct_absolute_CXX=yes 20008 hardcode_minus_L_CXX=yes # Not in the search PATH, 20009 # but as the default 20010 # location of the library. 20011 ;; 20012 esac 20013 20014 case $cc_basename in 20015 CC*) 20016 # FIXME: insert proper C++ library support 20017 ld_shlibs_CXX=no 20018 ;; 20019 aCC*) 20020 case $host_cpu in 20021 hppa*64*) 20022 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20023 ;; 20024 ia64*) 20025 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20026 ;; 20027 *) 20028 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20029 ;; 20030 esac 20031 # Commands to make compiler produce verbose output that lists 20032 # what "hidden" libraries, object files and flags are used when 20033 # linking a shared library. 20034 # 20035 # There doesn't appear to be a way to prevent this compiler from 20036 # explicitly linking system object files so we need to strip them 20037 # from the output so that they don't get included in the library 20038 # dependencies. 20039 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 20040 ;; 20041 *) 20042 if test "$GXX" = yes; then 20043 if test $with_gnu_ld = no; then 20044 case $host_cpu in 20045 hppa*64*) 20046 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20047 ;; 20048 ia64*) 20049 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20050 ;; 20051 *) 20052 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20053 ;; 20054 esac 20055 fi 20056 else 20057 # FIXME: insert proper C++ library support 20058 ld_shlibs_CXX=no 20059 fi 20060 ;; 20061 esac 20062 ;; 20063 20064 interix[3-9]*) 20065 hardcode_direct_CXX=no 20066 hardcode_shlibpath_var_CXX=no 20067 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 20068 export_dynamic_flag_spec_CXX='${wl}-E' 20069 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 20070 # Instead, shared libraries are loaded at an image base (0x10000000 by 20071 # default) and relocated if they conflict, which is a slow very memory 20072 # consuming and fragmenting process. To avoid this, we pick a random, 20073 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 20074 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 20075 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 20076 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 20077 ;; 20078 irix5* | irix6*) 20079 case $cc_basename in 20080 CC*) 20081 # SGI C++ 20082 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 20083 20084 # Archives containing C++ object files must be created using 20085 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 20086 # necessary to make sure instantiated templates are included 20087 # in the archive. 20088 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 20089 ;; 20090 *) 20091 if test "$GXX" = yes; then 20092 if test "$with_gnu_ld" = no; then 20093 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 20094 else 20095 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 20096 fi 20097 fi 20098 link_all_deplibs_CXX=yes 20099 ;; 20100 esac 20101 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 20102 hardcode_libdir_separator_CXX=: 20103 inherit_rpath_CXX=yes 20104 ;; 20105 20106 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 20107 case $cc_basename in 20108 KCC*) 20109 # Kuck and Associates, Inc. (KAI) C++ Compiler 20110 20111 # KCC will only create a shared library if the output file 20112 # ends with ".so" (or ".sl" for HP-UX), so rename the library 20113 # to its proper name (with version) after linking. 20114 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 20115 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 20116 # Commands to make compiler produce verbose output that lists 20117 # what "hidden" libraries, object files and flags are used when 20118 # linking a shared library. 20119 # 20120 # There doesn't appear to be a way to prevent this compiler from 20121 # explicitly linking system object files so we need to strip them 20122 # from the output so that they don't get included in the library 20123 # dependencies. 20124 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 20125 20126 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 20127 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 20128 20129 # Archives containing C++ object files must be created using 20130 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 20131 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 20132 ;; 20133 icpc* | ecpc* ) 20134 # Intel C++ 20135 with_gnu_ld=yes 20136 # version 8.0 and above of icpc choke on multiply defined symbols 20137 # if we add $predep_objects and $postdep_objects, however 7.1 and 20138 # earlier do not add the objects themselves. 20139 case `$CC -V 2>&1` in 20140 *"Version 7."*) 20141 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 20142 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 20143 ;; 20144 *) # Version 8.0 or newer 20145 tmp_idyn= 20146 case $host_cpu in 20147 ia64*) tmp_idyn=' -i_dynamic';; 20148 esac 20149 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 20150 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 20151 ;; 20152 esac 20153 archive_cmds_need_lc_CXX=no 20154 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 20155 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 20156 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 20157 ;; 20158 pgCC* | pgcpp*) 20159 # Portland Group C++ compiler 20160 case `$CC -V` in 20161 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 20162 prelink_cmds_CXX='tpldir=Template.dir~ 20163 rm -rf $tpldir~ 20164 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 20165 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 20166 old_archive_cmds_CXX='tpldir=Template.dir~ 20167 rm -rf $tpldir~ 20168 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 20169 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 20170 $RANLIB $oldlib' 20171 archive_cmds_CXX='tpldir=Template.dir~ 20172 rm -rf $tpldir~ 20173 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 20174 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 20175 archive_expsym_cmds_CXX='tpldir=Template.dir~ 20176 rm -rf $tpldir~ 20177 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 20178 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 20179 ;; 20180 *) # Version 6 and above use weak symbols 20181 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 20182 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 20183 ;; 20184 esac 20185 20186 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 20187 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 20188 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 20189 ;; 20190 cxx*) 20191 # Compaq C++ 20192 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 20193 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 20194 20195 runpath_var=LD_RUN_PATH 20196 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 20197 hardcode_libdir_separator_CXX=: 20198 20199 # Commands to make compiler produce verbose output that lists 20200 # what "hidden" libraries, object files and flags are used when 20201 # linking a shared library. 20202 # 20203 # There doesn't appear to be a way to prevent this compiler from 20204 # explicitly linking system object files so we need to strip them 20205 # from the output so that they don't get included in the library 20206 # dependencies. 20207 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 20208 ;; 20209 xl* | mpixl* | bgxl*) 20210 # IBM XL 8.0 on PPC, with GNU ld 20211 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 20212 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 20213 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 20214 if test "x$supports_anon_versioning" = xyes; then 20215 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 20216 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 20217 echo "local: *; };" >> $output_objdir/$libname.ver~ 20218 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 20219 fi 20220 ;; 20221 *) 20222 case `$CC -V 2>&1 | sed 5q` in 20223 *Sun\ C*) 20224 # Sun C++ 5.9 20225 no_undefined_flag_CXX=' -zdefs' 20226 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20227 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 20228 hardcode_libdir_flag_spec_CXX='-R$libdir' 20229 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 20230 compiler_needs_object_CXX=yes 20231 20232 # Not sure whether something based on 20233 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 20234 # would be better. 20235 output_verbose_link_cmd='func_echo_all' 20236 20237 # Archives containing C++ object files must be created using 20238 # "CC -xar", where "CC" is the Sun C++ compiler. This is 20239 # necessary to make sure instantiated templates are included 20240 # in the archive. 20241 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 20242 ;; 20243 esac 20244 ;; 20245 esac 20246 ;; 20247 20248 lynxos*) 20249 # FIXME: insert proper C++ library support 20250 ld_shlibs_CXX=no 20251 ;; 20252 20253 m88k*) 20254 # FIXME: insert proper C++ library support 20255 ld_shlibs_CXX=no 20256 ;; 20257 20258 mvs*) 20259 case $cc_basename in 20260 cxx*) 20261 # FIXME: insert proper C++ library support 20262 ld_shlibs_CXX=no 20263 ;; 20264 *) 20265 # FIXME: insert proper C++ library support 20266 ld_shlibs_CXX=no 20267 ;; 20268 esac 20269 ;; 20270 20271 netbsd*) 20272 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 20273 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 20274 wlarc= 20275 hardcode_libdir_flag_spec_CXX='-R$libdir' 20276 hardcode_direct_CXX=yes 20277 hardcode_shlibpath_var_CXX=no 20278 fi 20279 # Workaround some broken pre-1.5 toolchains 20280 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 20281 ;; 20282 20283 *nto* | *qnx*) 20284 ld_shlibs_CXX=yes 20285 ;; 20286 20287 openbsd2*) 20288 # C++ shared libraries are fairly broken 20289 ld_shlibs_CXX=no 20290 ;; 20291 20292 openbsd*) 20293 if test -f /usr/libexec/ld.so; then 20294 hardcode_direct_CXX=yes 20295 hardcode_shlibpath_var_CXX=no 20296 hardcode_direct_absolute_CXX=yes 20297 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 20298 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 20299 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 20300 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 20301 export_dynamic_flag_spec_CXX='${wl}-E' 20302 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 20303 fi 20304 output_verbose_link_cmd=func_echo_all 20305 else 20306 ld_shlibs_CXX=no 20307 fi 20308 ;; 20309 20310 osf3* | osf4* | osf5*) 20311 case $cc_basename in 20312 KCC*) 20313 # Kuck and Associates, Inc. (KAI) C++ Compiler 20314 20315 # KCC will only create a shared library if the output file 20316 # ends with ".so" (or ".sl" for HP-UX), so rename the library 20317 # to its proper name (with version) after linking. 20318 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 20319 20320 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 20321 hardcode_libdir_separator_CXX=: 20322 20323 # Archives containing C++ object files must be created using 20324 # the KAI C++ compiler. 20325 case $host in 20326 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 20327 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 20328 esac 20329 ;; 20330 RCC*) 20331 # Rational C++ 2.4.1 20332 # FIXME: insert proper C++ library support 20333 ld_shlibs_CXX=no 20334 ;; 20335 cxx*) 20336 case $host in 20337 osf3*) 20338 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 20339 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 20340 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 20341 ;; 20342 *) 20343 allow_undefined_flag_CXX=' -expect_unresolved \*' 20344 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 20345 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 20346 echo "-hidden">> $lib.exp~ 20347 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ 20348 $RM $lib.exp' 20349 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 20350 ;; 20351 esac 20352 20353 hardcode_libdir_separator_CXX=: 20354 20355 # Commands to make compiler produce verbose output that lists 20356 # what "hidden" libraries, object files and flags are used when 20357 # linking a shared library. 20358 # 20359 # There doesn't appear to be a way to prevent this compiler from 20360 # explicitly linking system object files so we need to strip them 20361 # from the output so that they don't get included in the library 20362 # dependencies. 20363 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 20364 ;; 20365 *) 20366 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 20367 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 20368 case $host in 20369 osf3*) 20370 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 20371 ;; 20372 *) 20373 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 20374 ;; 20375 esac 20376 20377 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 20378 hardcode_libdir_separator_CXX=: 20379 20380 # Commands to make compiler produce verbose output that lists 20381 # what "hidden" libraries, object files and flags are used when 20382 # linking a shared library. 20383 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 20384 20385 else 20386 # FIXME: insert proper C++ library support 20387 ld_shlibs_CXX=no 20388 fi 20389 ;; 20390 esac 20391 ;; 20392 20393 psos*) 20394 # FIXME: insert proper C++ library support 20395 ld_shlibs_CXX=no 20396 ;; 20397 20398 sunos4*) 20399 case $cc_basename in 20400 CC*) 20401 # Sun C++ 4.x 20402 # FIXME: insert proper C++ library support 20403 ld_shlibs_CXX=no 20404 ;; 20405 lcc*) 20406 # Lucid 20407 # FIXME: insert proper C++ library support 20408 ld_shlibs_CXX=no 20409 ;; 20410 *) 20411 # FIXME: insert proper C++ library support 20412 ld_shlibs_CXX=no 20413 ;; 20414 esac 20415 ;; 20416 20417 solaris*) 20418 case $cc_basename in 20419 CC* | sunCC*) 20420 # Sun C++ 4.2, 5.x and Centerline C++ 20421 archive_cmds_need_lc_CXX=yes 20422 no_undefined_flag_CXX=' -zdefs' 20423 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20424 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20425 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 20426 20427 hardcode_libdir_flag_spec_CXX='-R$libdir' 20428 hardcode_shlibpath_var_CXX=no 20429 case $host_os in 20430 solaris2.[0-5] | solaris2.[0-5].*) ;; 20431 *) 20432 # The compiler driver will combine and reorder linker options, 20433 # but understands `-z linker_flag'. 20434 # Supported since Solaris 2.6 (maybe 2.5.1?) 20435 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 20436 ;; 20437 esac 20438 link_all_deplibs_CXX=yes 20439 20440 output_verbose_link_cmd='func_echo_all' 20441 20442 # Archives containing C++ object files must be created using 20443 # "CC -xar", where "CC" is the Sun C++ compiler. This is 20444 # necessary to make sure instantiated templates are included 20445 # in the archive. 20446 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 20447 ;; 20448 gcx*) 20449 # Green Hills C++ Compiler 20450 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 20451 20452 # The C++ compiler must be used to create the archive. 20453 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 20454 ;; 20455 *) 20456 # GNU C++ compiler with Solaris linker 20457 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 20458 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 20459 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 20460 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 20461 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20462 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 20463 20464 # Commands to make compiler produce verbose output that lists 20465 # what "hidden" libraries, object files and flags are used when 20466 # linking a shared library. 20467 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 20468 else 20469 # g++ 2.7 appears to require `-G' NOT `-shared' on this 20470 # platform. 20471 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 20472 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20473 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 20474 20475 # Commands to make compiler produce verbose output that lists 20476 # what "hidden" libraries, object files and flags are used when 20477 # linking a shared library. 20478 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 20479 fi 20480 20481 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 20482 case $host_os in 20483 solaris2.[0-5] | solaris2.[0-5].*) ;; 20484 *) 20485 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 20486 ;; 20487 esac 20488 fi 20489 ;; 20490 esac 20491 ;; 20492 20493 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 20494 no_undefined_flag_CXX='${wl}-z,text' 20495 archive_cmds_need_lc_CXX=no 20496 hardcode_shlibpath_var_CXX=no 20497 runpath_var='LD_RUN_PATH' 20498 20499 case $cc_basename in 20500 CC*) 20501 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20502 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20503 ;; 20504 *) 20505 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20506 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20507 ;; 20508 esac 20509 ;; 20510 20511 sysv5* | sco3.2v5* | sco5v6*) 20512 # Note: We can NOT use -z defs as we might desire, because we do not 20513 # link with -lc, and that would cause any symbols used from libc to 20514 # always be unresolved, which means just about no library would 20515 # ever link correctly. If we're not using GNU ld we use -z text 20516 # though, which does catch some bad symbols but isn't as heavy-handed 20517 # as -z defs. 20518 no_undefined_flag_CXX='${wl}-z,text' 20519 allow_undefined_flag_CXX='${wl}-z,nodefs' 20520 archive_cmds_need_lc_CXX=no 20521 hardcode_shlibpath_var_CXX=no 20522 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 20523 hardcode_libdir_separator_CXX=':' 20524 link_all_deplibs_CXX=yes 20525 export_dynamic_flag_spec_CXX='${wl}-Bexport' 20526 runpath_var='LD_RUN_PATH' 20527 20528 case $cc_basename in 20529 CC*) 20530 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20531 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20532 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 20533 '"$old_archive_cmds_CXX" 20534 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 20535 '"$reload_cmds_CXX" 20536 ;; 20537 *) 20538 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20539 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20540 ;; 20541 esac 20542 ;; 20543 20544 tandem*) 20545 case $cc_basename in 20546 NCC*) 20547 # NonStop-UX NCC 3.20 20548 # FIXME: insert proper C++ library support 20549 ld_shlibs_CXX=no 20550 ;; 20551 *) 20552 # FIXME: insert proper C++ library support 20553 ld_shlibs_CXX=no 20554 ;; 20555 esac 20556 ;; 20557 20558 vxworks*) 20559 # FIXME: insert proper C++ library support 20560 ld_shlibs_CXX=no 20561 ;; 20562 20563 *) 20564 # FIXME: insert proper C++ library support 20565 ld_shlibs_CXX=no 20566 ;; 20567 esac 20568 20569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 20570$as_echo "$ld_shlibs_CXX" >&6; } 20571 test "$ld_shlibs_CXX" = no && can_build_shared=no 20572 20573 GCC_CXX="$GXX" 20574 LD_CXX="$LD" 20575 20576 ## CAVEAT EMPTOR: 20577 ## There is no encapsulation within the following macros, do not change 20578 ## the running order or otherwise move them around unless you know exactly 20579 ## what you are doing... 20580 # Dependencies to place before and after the object being linked: 20581predep_objects_CXX= 20582postdep_objects_CXX= 20583predeps_CXX= 20584postdeps_CXX= 20585compiler_lib_search_path_CXX= 20586 20587cat > conftest.$ac_ext <<_LT_EOF 20588class Foo 20589{ 20590public: 20591 Foo (void) { a = 0; } 20592private: 20593 int a; 20594}; 20595_LT_EOF 20596 20597 20598_lt_libdeps_save_CFLAGS=$CFLAGS 20599case "$CC $CFLAGS " in #( 20600*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 20601*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 20602*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 20603esac 20604 20605if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 20606 (eval $ac_compile) 2>&5 20607 ac_status=$? 20608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20609 test $ac_status = 0; }; then 20610 # Parse the compiler output and extract the necessary 20611 # objects, libraries and library flags. 20612 20613 # Sentinel used to keep track of whether or not we are before 20614 # the conftest object file. 20615 pre_test_object_deps_done=no 20616 20617 for p in `eval "$output_verbose_link_cmd"`; do 20618 case ${prev}${p} in 20619 20620 -L* | -R* | -l*) 20621 # Some compilers place space between "-{L,R}" and the path. 20622 # Remove the space. 20623 if test $p = "-L" || 20624 test $p = "-R"; then 20625 prev=$p 20626 continue 20627 fi 20628 20629 # Expand the sysroot to ease extracting the directories later. 20630 if test -z "$prev"; then 20631 case $p in 20632 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 20633 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 20634 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 20635 esac 20636 fi 20637 case $p in 20638 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 20639 esac 20640 if test "$pre_test_object_deps_done" = no; then 20641 case ${prev} in 20642 -L | -R) 20643 # Internal compiler library paths should come after those 20644 # provided the user. The postdeps already come after the 20645 # user supplied libs so there is no need to process them. 20646 if test -z "$compiler_lib_search_path_CXX"; then 20647 compiler_lib_search_path_CXX="${prev}${p}" 20648 else 20649 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 20650 fi 20651 ;; 20652 # The "-l" case would never come before the object being 20653 # linked, so don't bother handling this case. 20654 esac 20655 else 20656 if test -z "$postdeps_CXX"; then 20657 postdeps_CXX="${prev}${p}" 20658 else 20659 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 20660 fi 20661 fi 20662 prev= 20663 ;; 20664 20665 *.lto.$objext) ;; # Ignore GCC LTO objects 20666 *.$objext) 20667 # This assumes that the test object file only shows up 20668 # once in the compiler output. 20669 if test "$p" = "conftest.$objext"; then 20670 pre_test_object_deps_done=yes 20671 continue 20672 fi 20673 20674 if test "$pre_test_object_deps_done" = no; then 20675 if test -z "$predep_objects_CXX"; then 20676 predep_objects_CXX="$p" 20677 else 20678 predep_objects_CXX="$predep_objects_CXX $p" 20679 fi 20680 else 20681 if test -z "$postdep_objects_CXX"; then 20682 postdep_objects_CXX="$p" 20683 else 20684 postdep_objects_CXX="$postdep_objects_CXX $p" 20685 fi 20686 fi 20687 ;; 20688 20689 *) ;; # Ignore the rest. 20690 20691 esac 20692 done 20693 20694 # Clean up. 20695 rm -f a.out a.exe 20696else 20697 echo "libtool.m4: error: problem compiling CXX test program" 20698fi 20699 20700$RM -f confest.$objext 20701CFLAGS=$_lt_libdeps_save_CFLAGS 20702 20703# PORTME: override above test on systems where it is broken 20704case $host_os in 20705interix[3-9]*) 20706 # Interix 3.5 installs completely hosed .la files for C++, so rather than 20707 # hack all around it, let's just trust "g++" to DTRT. 20708 predep_objects_CXX= 20709 postdep_objects_CXX= 20710 postdeps_CXX= 20711 ;; 20712 20713linux*) 20714 case `$CC -V 2>&1 | sed 5q` in 20715 *Sun\ C*) 20716 # Sun C++ 5.9 20717 20718 # The more standards-conforming stlport4 library is 20719 # incompatible with the Cstd library. Avoid specifying 20720 # it if it's in CXXFLAGS. Ignore libCrun as 20721 # -library=stlport4 depends on it. 20722 case " $CXX $CXXFLAGS " in 20723 *" -library=stlport4 "*) 20724 solaris_use_stlport4=yes 20725 ;; 20726 esac 20727 20728 if test "$solaris_use_stlport4" != yes; then 20729 postdeps_CXX='-library=Cstd -library=Crun' 20730 fi 20731 ;; 20732 esac 20733 ;; 20734 20735solaris*) 20736 case $cc_basename in 20737 CC* | sunCC*) 20738 # The more standards-conforming stlport4 library is 20739 # incompatible with the Cstd library. Avoid specifying 20740 # it if it's in CXXFLAGS. Ignore libCrun as 20741 # -library=stlport4 depends on it. 20742 case " $CXX $CXXFLAGS " in 20743 *" -library=stlport4 "*) 20744 solaris_use_stlport4=yes 20745 ;; 20746 esac 20747 20748 # Adding this requires a known-good setup of shared libraries for 20749 # Sun compiler versions before 5.6, else PIC objects from an old 20750 # archive will be linked into the output, leading to subtle bugs. 20751 if test "$solaris_use_stlport4" != yes; then 20752 postdeps_CXX='-library=Cstd -library=Crun' 20753 fi 20754 ;; 20755 esac 20756 ;; 20757esac 20758 20759 20760case " $postdeps_CXX " in 20761*" -lc "*) archive_cmds_need_lc_CXX=no ;; 20762esac 20763 compiler_lib_search_dirs_CXX= 20764if test -n "${compiler_lib_search_path_CXX}"; then 20765 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 20766fi 20767 20768 20769 20770 20771 20772 20773 20774 20775 20776 20777 20778 20779 20780 20781 20782 20783 20784 20785 20786 20787 20788 20789 20790 20791 20792 20793 20794 20795 20796 20797 20798 lt_prog_compiler_wl_CXX= 20799lt_prog_compiler_pic_CXX= 20800lt_prog_compiler_static_CXX= 20801 20802 20803 # C++ specific cases for pic, static, wl, etc. 20804 if test "$GXX" = yes; then 20805 lt_prog_compiler_wl_CXX='-Wl,' 20806 lt_prog_compiler_static_CXX='-static' 20807 20808 case $host_os in 20809 aix*) 20810 # All AIX code is PIC. 20811 if test "$host_cpu" = ia64; then 20812 # AIX 5 now supports IA64 processor 20813 lt_prog_compiler_static_CXX='-Bstatic' 20814 fi 20815 ;; 20816 20817 amigaos*) 20818 case $host_cpu in 20819 powerpc) 20820 # see comment about AmigaOS4 .so support 20821 lt_prog_compiler_pic_CXX='-fPIC' 20822 ;; 20823 m68k) 20824 # FIXME: we need at least 68020 code to build shared libraries, but 20825 # adding the `-m68020' flag to GCC prevents building anything better, 20826 # like `-m68040'. 20827 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 20828 ;; 20829 esac 20830 ;; 20831 20832 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 20833 # PIC is the default for these OSes. 20834 ;; 20835 mingw* | cygwin* | os2* | pw32* | cegcc*) 20836 # This hack is so that the source file can tell whether it is being 20837 # built for inclusion in a dll (and should export symbols for example). 20838 # Although the cygwin gcc ignores -fPIC, still need this for old-style 20839 # (--disable-auto-import) libraries 20840 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 20841 ;; 20842 darwin* | rhapsody*) 20843 # PIC is the default on this platform 20844 # Common symbols not allowed in MH_DYLIB files 20845 lt_prog_compiler_pic_CXX='-fno-common' 20846 ;; 20847 *djgpp*) 20848 # DJGPP does not support shared libraries at all 20849 lt_prog_compiler_pic_CXX= 20850 ;; 20851 haiku*) 20852 # PIC is the default for Haiku. 20853 # The "-static" flag exists, but is broken. 20854 lt_prog_compiler_static_CXX= 20855 ;; 20856 interix[3-9]*) 20857 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 20858 # Instead, we relocate shared libraries at runtime. 20859 ;; 20860 sysv4*MP*) 20861 if test -d /usr/nec; then 20862 lt_prog_compiler_pic_CXX=-Kconform_pic 20863 fi 20864 ;; 20865 hpux*) 20866 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 20867 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 20868 # sets the default TLS model and affects inlining. 20869 case $host_cpu in 20870 hppa*64*) 20871 ;; 20872 *) 20873 lt_prog_compiler_pic_CXX='-fPIC' 20874 ;; 20875 esac 20876 ;; 20877 *qnx* | *nto*) 20878 # QNX uses GNU C++, but need to define -shared option too, otherwise 20879 # it will coredump. 20880 lt_prog_compiler_pic_CXX='-fPIC -shared' 20881 ;; 20882 *) 20883 lt_prog_compiler_pic_CXX='-fPIC' 20884 ;; 20885 esac 20886 else 20887 case $host_os in 20888 aix[4-9]*) 20889 # All AIX code is PIC. 20890 if test "$host_cpu" = ia64; then 20891 # AIX 5 now supports IA64 processor 20892 lt_prog_compiler_static_CXX='-Bstatic' 20893 else 20894 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 20895 fi 20896 ;; 20897 chorus*) 20898 case $cc_basename in 20899 cxch68*) 20900 # Green Hills C++ Compiler 20901 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 20902 ;; 20903 esac 20904 ;; 20905 mingw* | cygwin* | os2* | pw32* | cegcc*) 20906 # This hack is so that the source file can tell whether it is being 20907 # built for inclusion in a dll (and should export symbols for example). 20908 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 20909 ;; 20910 dgux*) 20911 case $cc_basename in 20912 ec++*) 20913 lt_prog_compiler_pic_CXX='-KPIC' 20914 ;; 20915 ghcx*) 20916 # Green Hills C++ Compiler 20917 lt_prog_compiler_pic_CXX='-pic' 20918 ;; 20919 *) 20920 ;; 20921 esac 20922 ;; 20923 freebsd* | dragonfly*) 20924 # FreeBSD uses GNU C++ 20925 ;; 20926 hpux9* | hpux10* | hpux11*) 20927 case $cc_basename in 20928 CC*) 20929 lt_prog_compiler_wl_CXX='-Wl,' 20930 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 20931 if test "$host_cpu" != ia64; then 20932 lt_prog_compiler_pic_CXX='+Z' 20933 fi 20934 ;; 20935 aCC*) 20936 lt_prog_compiler_wl_CXX='-Wl,' 20937 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 20938 case $host_cpu in 20939 hppa*64*|ia64*) 20940 # +Z the default 20941 ;; 20942 *) 20943 lt_prog_compiler_pic_CXX='+Z' 20944 ;; 20945 esac 20946 ;; 20947 *) 20948 ;; 20949 esac 20950 ;; 20951 interix*) 20952 # This is c89, which is MS Visual C++ (no shared libs) 20953 # Anyone wants to do a port? 20954 ;; 20955 irix5* | irix6* | nonstopux*) 20956 case $cc_basename in 20957 CC*) 20958 lt_prog_compiler_wl_CXX='-Wl,' 20959 lt_prog_compiler_static_CXX='-non_shared' 20960 # CC pic flag -KPIC is the default. 20961 ;; 20962 *) 20963 ;; 20964 esac 20965 ;; 20966 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 20967 case $cc_basename in 20968 KCC*) 20969 # KAI C++ Compiler 20970 lt_prog_compiler_wl_CXX='--backend -Wl,' 20971 lt_prog_compiler_pic_CXX='-fPIC' 20972 ;; 20973 ecpc* ) 20974 # old Intel C++ for x86_64 which still supported -KPIC. 20975 lt_prog_compiler_wl_CXX='-Wl,' 20976 lt_prog_compiler_pic_CXX='-KPIC' 20977 lt_prog_compiler_static_CXX='-static' 20978 ;; 20979 icpc* ) 20980 # Intel C++, used to be incompatible with GCC. 20981 # ICC 10 doesn't accept -KPIC any more. 20982 lt_prog_compiler_wl_CXX='-Wl,' 20983 lt_prog_compiler_pic_CXX='-fPIC' 20984 lt_prog_compiler_static_CXX='-static' 20985 ;; 20986 pgCC* | pgcpp*) 20987 # Portland Group C++ compiler 20988 lt_prog_compiler_wl_CXX='-Wl,' 20989 lt_prog_compiler_pic_CXX='-fpic' 20990 lt_prog_compiler_static_CXX='-Bstatic' 20991 ;; 20992 cxx*) 20993 # Compaq C++ 20994 # Make sure the PIC flag is empty. It appears that all Alpha 20995 # Linux and Compaq Tru64 Unix objects are PIC. 20996 lt_prog_compiler_pic_CXX= 20997 lt_prog_compiler_static_CXX='-non_shared' 20998 ;; 20999 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 21000 # IBM XL 8.0, 9.0 on PPC and BlueGene 21001 lt_prog_compiler_wl_CXX='-Wl,' 21002 lt_prog_compiler_pic_CXX='-qpic' 21003 lt_prog_compiler_static_CXX='-qstaticlink' 21004 ;; 21005 *) 21006 case `$CC -V 2>&1 | sed 5q` in 21007 *Sun\ C*) 21008 # Sun C++ 5.9 21009 lt_prog_compiler_pic_CXX='-KPIC' 21010 lt_prog_compiler_static_CXX='-Bstatic' 21011 lt_prog_compiler_wl_CXX='-Qoption ld ' 21012 ;; 21013 esac 21014 ;; 21015 esac 21016 ;; 21017 lynxos*) 21018 ;; 21019 m88k*) 21020 ;; 21021 mvs*) 21022 case $cc_basename in 21023 cxx*) 21024 lt_prog_compiler_pic_CXX='-W c,exportall' 21025 ;; 21026 *) 21027 ;; 21028 esac 21029 ;; 21030 netbsd* | netbsdelf*-gnu) 21031 ;; 21032 *qnx* | *nto*) 21033 # QNX uses GNU C++, but need to define -shared option too, otherwise 21034 # it will coredump. 21035 lt_prog_compiler_pic_CXX='-fPIC -shared' 21036 ;; 21037 osf3* | osf4* | osf5*) 21038 case $cc_basename in 21039 KCC*) 21040 lt_prog_compiler_wl_CXX='--backend -Wl,' 21041 ;; 21042 RCC*) 21043 # Rational C++ 2.4.1 21044 lt_prog_compiler_pic_CXX='-pic' 21045 ;; 21046 cxx*) 21047 # Digital/Compaq C++ 21048 lt_prog_compiler_wl_CXX='-Wl,' 21049 # Make sure the PIC flag is empty. It appears that all Alpha 21050 # Linux and Compaq Tru64 Unix objects are PIC. 21051 lt_prog_compiler_pic_CXX= 21052 lt_prog_compiler_static_CXX='-non_shared' 21053 ;; 21054 *) 21055 ;; 21056 esac 21057 ;; 21058 psos*) 21059 ;; 21060 solaris*) 21061 case $cc_basename in 21062 CC* | sunCC*) 21063 # Sun C++ 4.2, 5.x and Centerline C++ 21064 lt_prog_compiler_pic_CXX='-KPIC' 21065 lt_prog_compiler_static_CXX='-Bstatic' 21066 lt_prog_compiler_wl_CXX='-Qoption ld ' 21067 ;; 21068 gcx*) 21069 # Green Hills C++ Compiler 21070 lt_prog_compiler_pic_CXX='-PIC' 21071 ;; 21072 *) 21073 ;; 21074 esac 21075 ;; 21076 sunos4*) 21077 case $cc_basename in 21078 CC*) 21079 # Sun C++ 4.x 21080 lt_prog_compiler_pic_CXX='-pic' 21081 lt_prog_compiler_static_CXX='-Bstatic' 21082 ;; 21083 lcc*) 21084 # Lucid 21085 lt_prog_compiler_pic_CXX='-pic' 21086 ;; 21087 *) 21088 ;; 21089 esac 21090 ;; 21091 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 21092 case $cc_basename in 21093 CC*) 21094 lt_prog_compiler_wl_CXX='-Wl,' 21095 lt_prog_compiler_pic_CXX='-KPIC' 21096 lt_prog_compiler_static_CXX='-Bstatic' 21097 ;; 21098 esac 21099 ;; 21100 tandem*) 21101 case $cc_basename in 21102 NCC*) 21103 # NonStop-UX NCC 3.20 21104 lt_prog_compiler_pic_CXX='-KPIC' 21105 ;; 21106 *) 21107 ;; 21108 esac 21109 ;; 21110 vxworks*) 21111 ;; 21112 *) 21113 lt_prog_compiler_can_build_shared_CXX=no 21114 ;; 21115 esac 21116 fi 21117 21118case $host_os in 21119 # For platforms which do not support PIC, -DPIC is meaningless: 21120 *djgpp*) 21121 lt_prog_compiler_pic_CXX= 21122 ;; 21123 *) 21124 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 21125 ;; 21126esac 21127 21128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 21129$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 21130if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 21131 $as_echo_n "(cached) " >&6 21132else 21133 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 21134fi 21135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 21136$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 21137lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 21138 21139# 21140# Check to make sure the PIC flag actually works. 21141# 21142if test -n "$lt_prog_compiler_pic_CXX"; then 21143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 21144$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 21145if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 21146 $as_echo_n "(cached) " >&6 21147else 21148 lt_cv_prog_compiler_pic_works_CXX=no 21149 ac_outfile=conftest.$ac_objext 21150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21151 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 21152 # Insert the option either (1) after the last *FLAGS variable, or 21153 # (2) before a word containing "conftest.", or (3) at the end. 21154 # Note that $ac_compile itself does not contain backslashes and begins 21155 # with a dollar sign (not a hyphen), so the echo should work correctly. 21156 # The option is referenced via a variable to avoid confusing sed. 21157 lt_compile=`echo "$ac_compile" | $SED \ 21158 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 21159 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 21160 -e 's:$: $lt_compiler_flag:'` 21161 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 21162 (eval "$lt_compile" 2>conftest.err) 21163 ac_status=$? 21164 cat conftest.err >&5 21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21166 if (exit $ac_status) && test -s "$ac_outfile"; then 21167 # The compiler can only warn and ignore the option if not recognized 21168 # So say no if there are warnings other than the usual output. 21169 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 21170 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 21171 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 21172 lt_cv_prog_compiler_pic_works_CXX=yes 21173 fi 21174 fi 21175 $RM conftest* 21176 21177fi 21178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 21179$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 21180 21181if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 21182 case $lt_prog_compiler_pic_CXX in 21183 "" | " "*) ;; 21184 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 21185 esac 21186else 21187 lt_prog_compiler_pic_CXX= 21188 lt_prog_compiler_can_build_shared_CXX=no 21189fi 21190 21191fi 21192 21193 21194 21195 21196 21197# 21198# Check to make sure the static flag actually works. 21199# 21200wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 21201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 21202$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 21203if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 21204 $as_echo_n "(cached) " >&6 21205else 21206 lt_cv_prog_compiler_static_works_CXX=no 21207 save_LDFLAGS="$LDFLAGS" 21208 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 21209 echo "$lt_simple_link_test_code" > conftest.$ac_ext 21210 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 21211 # The linker can only warn and ignore the option if not recognized 21212 # So say no if there are warnings 21213 if test -s conftest.err; then 21214 # Append any errors to the config.log. 21215 cat conftest.err 1>&5 21216 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 21217 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 21218 if diff conftest.exp conftest.er2 >/dev/null; then 21219 lt_cv_prog_compiler_static_works_CXX=yes 21220 fi 21221 else 21222 lt_cv_prog_compiler_static_works_CXX=yes 21223 fi 21224 fi 21225 $RM -r conftest* 21226 LDFLAGS="$save_LDFLAGS" 21227 21228fi 21229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 21230$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 21231 21232if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 21233 : 21234else 21235 lt_prog_compiler_static_CXX= 21236fi 21237 21238 21239 21240 21241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 21242$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 21243if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 21244 $as_echo_n "(cached) " >&6 21245else 21246 lt_cv_prog_compiler_c_o_CXX=no 21247 $RM -r conftest 2>/dev/null 21248 mkdir conftest 21249 cd conftest 21250 mkdir out 21251 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21252 21253 lt_compiler_flag="-o out/conftest2.$ac_objext" 21254 # Insert the option either (1) after the last *FLAGS variable, or 21255 # (2) before a word containing "conftest.", or (3) at the end. 21256 # Note that $ac_compile itself does not contain backslashes and begins 21257 # with a dollar sign (not a hyphen), so the echo should work correctly. 21258 lt_compile=`echo "$ac_compile" | $SED \ 21259 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 21260 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 21261 -e 's:$: $lt_compiler_flag:'` 21262 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 21263 (eval "$lt_compile" 2>out/conftest.err) 21264 ac_status=$? 21265 cat out/conftest.err >&5 21266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21267 if (exit $ac_status) && test -s out/conftest2.$ac_objext 21268 then 21269 # The compiler can only warn and ignore the option if not recognized 21270 # So say no if there are warnings 21271 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 21272 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 21273 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 21274 lt_cv_prog_compiler_c_o_CXX=yes 21275 fi 21276 fi 21277 chmod u+w . 2>&5 21278 $RM conftest* 21279 # SGI C++ compiler will create directory out/ii_files/ for 21280 # template instantiation 21281 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 21282 $RM out/* && rmdir out 21283 cd .. 21284 $RM -r conftest 21285 $RM conftest* 21286 21287fi 21288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 21289$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 21290 21291 21292 21293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 21294$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 21295if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 21296 $as_echo_n "(cached) " >&6 21297else 21298 lt_cv_prog_compiler_c_o_CXX=no 21299 $RM -r conftest 2>/dev/null 21300 mkdir conftest 21301 cd conftest 21302 mkdir out 21303 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21304 21305 lt_compiler_flag="-o out/conftest2.$ac_objext" 21306 # Insert the option either (1) after the last *FLAGS variable, or 21307 # (2) before a word containing "conftest.", or (3) at the end. 21308 # Note that $ac_compile itself does not contain backslashes and begins 21309 # with a dollar sign (not a hyphen), so the echo should work correctly. 21310 lt_compile=`echo "$ac_compile" | $SED \ 21311 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 21312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 21313 -e 's:$: $lt_compiler_flag:'` 21314 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 21315 (eval "$lt_compile" 2>out/conftest.err) 21316 ac_status=$? 21317 cat out/conftest.err >&5 21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21319 if (exit $ac_status) && test -s out/conftest2.$ac_objext 21320 then 21321 # The compiler can only warn and ignore the option if not recognized 21322 # So say no if there are warnings 21323 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 21324 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 21325 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 21326 lt_cv_prog_compiler_c_o_CXX=yes 21327 fi 21328 fi 21329 chmod u+w . 2>&5 21330 $RM conftest* 21331 # SGI C++ compiler will create directory out/ii_files/ for 21332 # template instantiation 21333 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 21334 $RM out/* && rmdir out 21335 cd .. 21336 $RM -r conftest 21337 $RM conftest* 21338 21339fi 21340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 21341$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 21342 21343 21344 21345 21346hard_links="nottested" 21347if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 21348 # do not overwrite the value of need_locks provided by the user 21349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 21350$as_echo_n "checking if we can lock with hard links... " >&6; } 21351 hard_links=yes 21352 $RM conftest* 21353 ln conftest.a conftest.b 2>/dev/null && hard_links=no 21354 touch conftest.a 21355 ln conftest.a conftest.b 2>&5 || hard_links=no 21356 ln conftest.a conftest.b 2>/dev/null && hard_links=no 21357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 21358$as_echo "$hard_links" >&6; } 21359 if test "$hard_links" = no; then 21360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 21361$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 21362 need_locks=warn 21363 fi 21364else 21365 need_locks=no 21366fi 21367 21368 21369 21370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 21371$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 21372 21373 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 21374 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 21375 case $host_os in 21376 aix[4-9]*) 21377 # If we're using GNU nm, then we don't want the "-C" option. 21378 # -C means demangle to AIX nm, but means don't demangle with GNU nm 21379 # Also, AIX nm treats weak defined symbols like other global defined 21380 # symbols, whereas GNU nm marks them as "W". 21381 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 21382 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 21383 else 21384 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 21385 fi 21386 ;; 21387 pw32*) 21388 export_symbols_cmds_CXX="$ltdll_cmds" 21389 ;; 21390 cygwin* | mingw* | cegcc*) 21391 case $cc_basename in 21392 cl*) 21393 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 21394 ;; 21395 *) 21396 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 21397 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 21398 ;; 21399 esac 21400 ;; 21401 linux* | k*bsd*-gnu | gnu*) 21402 link_all_deplibs_CXX=no 21403 ;; 21404 *) 21405 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 21406 ;; 21407 esac 21408 21409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 21410$as_echo "$ld_shlibs_CXX" >&6; } 21411test "$ld_shlibs_CXX" = no && can_build_shared=no 21412 21413with_gnu_ld_CXX=$with_gnu_ld 21414 21415 21416 21417 21418 21419 21420# 21421# Do we need to explicitly link libc? 21422# 21423case "x$archive_cmds_need_lc_CXX" in 21424x|xyes) 21425 # Assume -lc should be added 21426 archive_cmds_need_lc_CXX=yes 21427 21428 if test "$enable_shared" = yes && test "$GCC" = yes; then 21429 case $archive_cmds_CXX in 21430 *'~'*) 21431 # FIXME: we may have to deal with multi-command sequences. 21432 ;; 21433 '$CC '*) 21434 # Test whether the compiler implicitly links with -lc since on some 21435 # systems, -lgcc has to come before -lc. If gcc already passes -lc 21436 # to ld, don't add -lc before -lgcc. 21437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 21438$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 21439if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 21440 $as_echo_n "(cached) " >&6 21441else 21442 $RM conftest* 21443 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21444 21445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 21446 (eval $ac_compile) 2>&5 21447 ac_status=$? 21448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21449 test $ac_status = 0; } 2>conftest.err; then 21450 soname=conftest 21451 lib=conftest 21452 libobjs=conftest.$ac_objext 21453 deplibs= 21454 wl=$lt_prog_compiler_wl_CXX 21455 pic_flag=$lt_prog_compiler_pic_CXX 21456 compiler_flags=-v 21457 linker_flags=-v 21458 verstring= 21459 output_objdir=. 21460 libname=conftest 21461 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 21462 allow_undefined_flag_CXX= 21463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 21464 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 21465 ac_status=$? 21466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21467 test $ac_status = 0; } 21468 then 21469 lt_cv_archive_cmds_need_lc_CXX=no 21470 else 21471 lt_cv_archive_cmds_need_lc_CXX=yes 21472 fi 21473 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 21474 else 21475 cat conftest.err 1>&5 21476 fi 21477 $RM conftest* 21478 21479fi 21480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 21481$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 21482 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 21483 ;; 21484 esac 21485 fi 21486 ;; 21487esac 21488 21489 21490 21491 21492 21493 21494 21495 21496 21497 21498 21499 21500 21501 21502 21503 21504 21505 21506 21507 21508 21509 21510 21511 21512 21513 21514 21515 21516 21517 21518 21519 21520 21521 21522 21523 21524 21525 21526 21527 21528 21529 21530 21531 21532 21533 21534 21535 21536 21537 21538 21539 21540 21541 21542 21543 21544 21545 21546 21547 21548 21549 21550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 21551$as_echo_n "checking dynamic linker characteristics... " >&6; } 21552 21553library_names_spec= 21554libname_spec='lib$name' 21555soname_spec= 21556shrext_cmds=".so" 21557postinstall_cmds= 21558postuninstall_cmds= 21559finish_cmds= 21560finish_eval= 21561shlibpath_var= 21562shlibpath_overrides_runpath=unknown 21563version_type=none 21564dynamic_linker="$host_os ld.so" 21565sys_lib_dlsearch_path_spec="/lib /usr/lib" 21566need_lib_prefix=unknown 21567hardcode_into_libs=no 21568 21569# when you set need_version to no, make sure it does not cause -set_version 21570# flags to be left without arguments 21571need_version=unknown 21572 21573case $host_os in 21574aix3*) 21575 version_type=linux # correct to gnu/linux during the next big refactor 21576 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 21577 shlibpath_var=LIBPATH 21578 21579 # AIX 3 has no versioning support, so we append a major version to the name. 21580 soname_spec='${libname}${release}${shared_ext}$major' 21581 ;; 21582 21583aix[4-9]*) 21584 version_type=linux # correct to gnu/linux during the next big refactor 21585 need_lib_prefix=no 21586 need_version=no 21587 hardcode_into_libs=yes 21588 if test "$host_cpu" = ia64; then 21589 # AIX 5 supports IA64 21590 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 21591 shlibpath_var=LD_LIBRARY_PATH 21592 else 21593 # With GCC up to 2.95.x, collect2 would create an import file 21594 # for dependence libraries. The import file would start with 21595 # the line `#! .'. This would cause the generated library to 21596 # depend on `.', always an invalid library. This was fixed in 21597 # development snapshots of GCC prior to 3.0. 21598 case $host_os in 21599 aix4 | aix4.[01] | aix4.[01].*) 21600 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 21601 echo ' yes ' 21602 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 21603 : 21604 else 21605 can_build_shared=no 21606 fi 21607 ;; 21608 esac 21609 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 21610 # soname into executable. Probably we can add versioning support to 21611 # collect2, so additional links can be useful in future. 21612 if test "$aix_use_runtimelinking" = yes; then 21613 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 21614 # instead of lib<name>.a to let people know that these are not 21615 # typical AIX shared libraries. 21616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21617 else 21618 # We preserve .a as extension for shared libraries through AIX4.2 21619 # and later when we are not doing run time linking. 21620 library_names_spec='${libname}${release}.a $libname.a' 21621 soname_spec='${libname}${release}${shared_ext}$major' 21622 fi 21623 shlibpath_var=LIBPATH 21624 fi 21625 ;; 21626 21627amigaos*) 21628 case $host_cpu in 21629 powerpc) 21630 # Since July 2007 AmigaOS4 officially supports .so libraries. 21631 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 21632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21633 ;; 21634 m68k) 21635 library_names_spec='$libname.ixlibrary $libname.a' 21636 # Create ${libname}_ixlibrary.a entries in /sys/libs. 21637 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' 21638 ;; 21639 esac 21640 ;; 21641 21642beos*) 21643 library_names_spec='${libname}${shared_ext}' 21644 dynamic_linker="$host_os ld.so" 21645 shlibpath_var=LIBRARY_PATH 21646 ;; 21647 21648bsdi[45]*) 21649 version_type=linux # correct to gnu/linux during the next big refactor 21650 need_version=no 21651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21652 soname_spec='${libname}${release}${shared_ext}$major' 21653 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 21654 shlibpath_var=LD_LIBRARY_PATH 21655 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 21656 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 21657 # the default ld.so.conf also contains /usr/contrib/lib and 21658 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 21659 # libtool to hard-code these into programs 21660 ;; 21661 21662cygwin* | mingw* | pw32* | cegcc*) 21663 version_type=windows 21664 shrext_cmds=".dll" 21665 need_version=no 21666 need_lib_prefix=no 21667 21668 case $GCC,$cc_basename in 21669 yes,*) 21670 # gcc 21671 library_names_spec='$libname.dll.a' 21672 # DLL is installed to $(libdir)/../bin by postinstall_cmds 21673 postinstall_cmds='base_file=`basename \${file}`~ 21674 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 21675 dldir=$destdir/`dirname \$dlpath`~ 21676 test -d \$dldir || mkdir -p \$dldir~ 21677 $install_prog $dir/$dlname \$dldir/$dlname~ 21678 chmod a+x \$dldir/$dlname~ 21679 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 21680 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 21681 fi' 21682 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 21683 dlpath=$dir/\$dldll~ 21684 $RM \$dlpath' 21685 shlibpath_overrides_runpath=yes 21686 21687 case $host_os in 21688 cygwin*) 21689 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 21690 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 21691 21692 ;; 21693 mingw* | cegcc*) 21694 # MinGW DLLs use traditional 'lib' prefix 21695 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 21696 ;; 21697 pw32*) 21698 # pw32 DLLs use 'pw' prefix rather than 'lib' 21699 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 21700 ;; 21701 esac 21702 dynamic_linker='Win32 ld.exe' 21703 ;; 21704 21705 *,cl*) 21706 # Native MSVC 21707 libname_spec='$name' 21708 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 21709 library_names_spec='${libname}.dll.lib' 21710 21711 case $build_os in 21712 mingw*) 21713 sys_lib_search_path_spec= 21714 lt_save_ifs=$IFS 21715 IFS=';' 21716 for lt_path in $LIB 21717 do 21718 IFS=$lt_save_ifs 21719 # Let DOS variable expansion print the short 8.3 style file name. 21720 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 21721 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 21722 done 21723 IFS=$lt_save_ifs 21724 # Convert to MSYS style. 21725 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 21726 ;; 21727 cygwin*) 21728 # Convert to unix form, then to dos form, then back to unix form 21729 # but this time dos style (no spaces!) so that the unix form looks 21730 # like /cygdrive/c/PROGRA~1:/cygdr... 21731 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 21732 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 21733 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 21734 ;; 21735 *) 21736 sys_lib_search_path_spec="$LIB" 21737 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 21738 # It is most probably a Windows format PATH. 21739 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 21740 else 21741 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 21742 fi 21743 # FIXME: find the short name or the path components, as spaces are 21744 # common. (e.g. "Program Files" -> "PROGRA~1") 21745 ;; 21746 esac 21747 21748 # DLL is installed to $(libdir)/../bin by postinstall_cmds 21749 postinstall_cmds='base_file=`basename \${file}`~ 21750 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 21751 dldir=$destdir/`dirname \$dlpath`~ 21752 test -d \$dldir || mkdir -p \$dldir~ 21753 $install_prog $dir/$dlname \$dldir/$dlname' 21754 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 21755 dlpath=$dir/\$dldll~ 21756 $RM \$dlpath' 21757 shlibpath_overrides_runpath=yes 21758 dynamic_linker='Win32 link.exe' 21759 ;; 21760 21761 *) 21762 # Assume MSVC wrapper 21763 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 21764 dynamic_linker='Win32 ld.exe' 21765 ;; 21766 esac 21767 # FIXME: first we should search . and the directory the executable is in 21768 shlibpath_var=PATH 21769 ;; 21770 21771darwin* | rhapsody*) 21772 dynamic_linker="$host_os dyld" 21773 version_type=darwin 21774 need_lib_prefix=no 21775 need_version=no 21776 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 21777 soname_spec='${libname}${release}${major}$shared_ext' 21778 shlibpath_overrides_runpath=yes 21779 shlibpath_var=DYLD_LIBRARY_PATH 21780 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 21781 21782 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 21783 ;; 21784 21785dgux*) 21786 version_type=linux # correct to gnu/linux during the next big refactor 21787 need_lib_prefix=no 21788 need_version=no 21789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 21790 soname_spec='${libname}${release}${shared_ext}$major' 21791 shlibpath_var=LD_LIBRARY_PATH 21792 ;; 21793 21794freebsd* | dragonfly*) 21795 # DragonFly does not have aout. When/if they implement a new 21796 # versioning mechanism, adjust this. 21797 if test -x /usr/bin/objformat; then 21798 objformat=`/usr/bin/objformat` 21799 else 21800 case $host_os in 21801 freebsd[23].*) objformat=aout ;; 21802 *) objformat=elf ;; 21803 esac 21804 fi 21805 version_type=freebsd-$objformat 21806 case $version_type in 21807 freebsd-elf*) 21808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 21809 need_version=no 21810 need_lib_prefix=no 21811 ;; 21812 freebsd-*) 21813 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 21814 need_version=yes 21815 ;; 21816 esac 21817 shlibpath_var=LD_LIBRARY_PATH 21818 case $host_os in 21819 freebsd2.*) 21820 shlibpath_overrides_runpath=yes 21821 ;; 21822 freebsd3.[01]* | freebsdelf3.[01]*) 21823 shlibpath_overrides_runpath=yes 21824 hardcode_into_libs=yes 21825 ;; 21826 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 21827 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 21828 shlibpath_overrides_runpath=no 21829 hardcode_into_libs=yes 21830 ;; 21831 *) # from 4.6 on, and DragonFly 21832 shlibpath_overrides_runpath=yes 21833 hardcode_into_libs=yes 21834 ;; 21835 esac 21836 ;; 21837 21838haiku*) 21839 version_type=linux # correct to gnu/linux during the next big refactor 21840 need_lib_prefix=no 21841 need_version=no 21842 dynamic_linker="$host_os runtime_loader" 21843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 21844 soname_spec='${libname}${release}${shared_ext}$major' 21845 shlibpath_var=LIBRARY_PATH 21846 shlibpath_overrides_runpath=yes 21847 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 21848 hardcode_into_libs=yes 21849 ;; 21850 21851hpux9* | hpux10* | hpux11*) 21852 # Give a soname corresponding to the major version so that dld.sl refuses to 21853 # link against other versions. 21854 version_type=sunos 21855 need_lib_prefix=no 21856 need_version=no 21857 case $host_cpu in 21858 ia64*) 21859 shrext_cmds='.so' 21860 hardcode_into_libs=yes 21861 dynamic_linker="$host_os dld.so" 21862 shlibpath_var=LD_LIBRARY_PATH 21863 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 21864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21865 soname_spec='${libname}${release}${shared_ext}$major' 21866 if test "X$HPUX_IA64_MODE" = X32; then 21867 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 21868 else 21869 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 21870 fi 21871 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21872 ;; 21873 hppa*64*) 21874 shrext_cmds='.sl' 21875 hardcode_into_libs=yes 21876 dynamic_linker="$host_os dld.sl" 21877 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 21878 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 21879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21880 soname_spec='${libname}${release}${shared_ext}$major' 21881 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 21882 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21883 ;; 21884 *) 21885 shrext_cmds='.sl' 21886 dynamic_linker="$host_os dld.sl" 21887 shlibpath_var=SHLIB_PATH 21888 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 21889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21890 soname_spec='${libname}${release}${shared_ext}$major' 21891 ;; 21892 esac 21893 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 21894 postinstall_cmds='chmod 555 $lib' 21895 # or fails outright, so override atomically: 21896 install_override_mode=555 21897 ;; 21898 21899interix[3-9]*) 21900 version_type=linux # correct to gnu/linux during the next big refactor 21901 need_lib_prefix=no 21902 need_version=no 21903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 21904 soname_spec='${libname}${release}${shared_ext}$major' 21905 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 21906 shlibpath_var=LD_LIBRARY_PATH 21907 shlibpath_overrides_runpath=no 21908 hardcode_into_libs=yes 21909 ;; 21910 21911irix5* | irix6* | nonstopux*) 21912 case $host_os in 21913 nonstopux*) version_type=nonstopux ;; 21914 *) 21915 if test "$lt_cv_prog_gnu_ld" = yes; then 21916 version_type=linux # correct to gnu/linux during the next big refactor 21917 else 21918 version_type=irix 21919 fi ;; 21920 esac 21921 need_lib_prefix=no 21922 need_version=no 21923 soname_spec='${libname}${release}${shared_ext}$major' 21924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 21925 case $host_os in 21926 irix5* | nonstopux*) 21927 libsuff= shlibsuff= 21928 ;; 21929 *) 21930 case $LD in # libtool.m4 will add one of these switches to LD 21931 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 21932 libsuff= shlibsuff= libmagic=32-bit;; 21933 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 21934 libsuff=32 shlibsuff=N32 libmagic=N32;; 21935 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 21936 libsuff=64 shlibsuff=64 libmagic=64-bit;; 21937 *) libsuff= shlibsuff= libmagic=never-match;; 21938 esac 21939 ;; 21940 esac 21941 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 21942 shlibpath_overrides_runpath=no 21943 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 21944 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 21945 hardcode_into_libs=yes 21946 ;; 21947 21948# No shared lib support for Linux oldld, aout, or coff. 21949linux*oldld* | linux*aout* | linux*coff*) 21950 dynamic_linker=no 21951 ;; 21952 21953# This must be glibc/ELF. 21954linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 21955 version_type=linux # correct to gnu/linux during the next big refactor 21956 need_lib_prefix=no 21957 need_version=no 21958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21959 soname_spec='${libname}${release}${shared_ext}$major' 21960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 21961 shlibpath_var=LD_LIBRARY_PATH 21962 shlibpath_overrides_runpath=no 21963 21964 # Some binutils ld are patched to set DT_RUNPATH 21965 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 21966 $as_echo_n "(cached) " >&6 21967else 21968 lt_cv_shlibpath_overrides_runpath=no 21969 save_LDFLAGS=$LDFLAGS 21970 save_libdir=$libdir 21971 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 21972 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 21973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21974/* end confdefs.h. */ 21975 21976int 21977main () 21978{ 21979 21980 ; 21981 return 0; 21982} 21983_ACEOF 21984if ac_fn_cxx_try_link "$LINENO"; then : 21985 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 21986 lt_cv_shlibpath_overrides_runpath=yes 21987fi 21988fi 21989rm -f core conftest.err conftest.$ac_objext \ 21990 conftest$ac_exeext conftest.$ac_ext 21991 LDFLAGS=$save_LDFLAGS 21992 libdir=$save_libdir 21993 21994fi 21995 21996 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 21997 21998 # This implies no fast_install, which is unacceptable. 21999 # Some rework will be needed to allow for fast_install 22000 # before this can be enabled. 22001 hardcode_into_libs=yes 22002 22003 # Append ld.so.conf contents to the search path 22004 if test -f /etc/ld.so.conf; then 22005 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' ' '` 22006 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 22007 fi 22008 22009 # We used to test for /lib/ld.so.1 and disable shared libraries on 22010 # powerpc, because MkLinux only supported shared libraries with the 22011 # GNU dynamic linker. Since this was broken with cross compilers, 22012 # most powerpc-linux boxes support dynamic linking these days and 22013 # people can always --disable-shared, the test was removed, and we 22014 # assume the GNU/Linux dynamic linker is in use. 22015 dynamic_linker='GNU/Linux ld.so' 22016 ;; 22017 22018netbsdelf*-gnu) 22019 version_type=linux 22020 need_lib_prefix=no 22021 need_version=no 22022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 22023 soname_spec='${libname}${release}${shared_ext}$major' 22024 shlibpath_var=LD_LIBRARY_PATH 22025 shlibpath_overrides_runpath=no 22026 hardcode_into_libs=yes 22027 dynamic_linker='NetBSD ld.elf_so' 22028 ;; 22029 22030netbsd*) 22031 version_type=sunos 22032 need_lib_prefix=no 22033 need_version=no 22034 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 22035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 22036 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 22037 dynamic_linker='NetBSD (a.out) ld.so' 22038 else 22039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 22040 soname_spec='${libname}${release}${shared_ext}$major' 22041 dynamic_linker='NetBSD ld.elf_so' 22042 fi 22043 shlibpath_var=LD_LIBRARY_PATH 22044 shlibpath_overrides_runpath=yes 22045 hardcode_into_libs=yes 22046 ;; 22047 22048newsos6) 22049 version_type=linux # correct to gnu/linux during the next big refactor 22050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22051 shlibpath_var=LD_LIBRARY_PATH 22052 shlibpath_overrides_runpath=yes 22053 ;; 22054 22055*nto* | *qnx*) 22056 version_type=qnx 22057 need_lib_prefix=no 22058 need_version=no 22059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22060 soname_spec='${libname}${release}${shared_ext}$major' 22061 shlibpath_var=LD_LIBRARY_PATH 22062 shlibpath_overrides_runpath=no 22063 hardcode_into_libs=yes 22064 dynamic_linker='ldqnx.so' 22065 ;; 22066 22067openbsd*) 22068 version_type=sunos 22069 sys_lib_dlsearch_path_spec="/usr/lib" 22070 need_lib_prefix=no 22071 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 22072 case $host_os in 22073 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 22074 *) need_version=no ;; 22075 esac 22076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 22077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 22078 shlibpath_var=LD_LIBRARY_PATH 22079 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 22080 case $host_os in 22081 openbsd2.[89] | openbsd2.[89].*) 22082 shlibpath_overrides_runpath=no 22083 ;; 22084 *) 22085 shlibpath_overrides_runpath=yes 22086 ;; 22087 esac 22088 else 22089 shlibpath_overrides_runpath=yes 22090 fi 22091 ;; 22092 22093os2*) 22094 libname_spec='$name' 22095 shrext_cmds=".dll" 22096 need_lib_prefix=no 22097 library_names_spec='$libname${shared_ext} $libname.a' 22098 dynamic_linker='OS/2 ld.exe' 22099 shlibpath_var=LIBPATH 22100 ;; 22101 22102osf3* | osf4* | osf5*) 22103 version_type=osf 22104 need_lib_prefix=no 22105 need_version=no 22106 soname_spec='${libname}${release}${shared_ext}$major' 22107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22108 shlibpath_var=LD_LIBRARY_PATH 22109 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 22110 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 22111 ;; 22112 22113rdos*) 22114 dynamic_linker=no 22115 ;; 22116 22117solaris*) 22118 version_type=linux # correct to gnu/linux during the next big refactor 22119 need_lib_prefix=no 22120 need_version=no 22121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22122 soname_spec='${libname}${release}${shared_ext}$major' 22123 shlibpath_var=LD_LIBRARY_PATH 22124 shlibpath_overrides_runpath=yes 22125 hardcode_into_libs=yes 22126 # ldd complains unless libraries are executable 22127 postinstall_cmds='chmod +x $lib' 22128 ;; 22129 22130sunos4*) 22131 version_type=sunos 22132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 22133 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 22134 shlibpath_var=LD_LIBRARY_PATH 22135 shlibpath_overrides_runpath=yes 22136 if test "$with_gnu_ld" = yes; then 22137 need_lib_prefix=no 22138 fi 22139 need_version=yes 22140 ;; 22141 22142sysv4 | sysv4.3*) 22143 version_type=linux # correct to gnu/linux during the next big refactor 22144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22145 soname_spec='${libname}${release}${shared_ext}$major' 22146 shlibpath_var=LD_LIBRARY_PATH 22147 case $host_vendor in 22148 sni) 22149 shlibpath_overrides_runpath=no 22150 need_lib_prefix=no 22151 runpath_var=LD_RUN_PATH 22152 ;; 22153 siemens) 22154 need_lib_prefix=no 22155 ;; 22156 motorola) 22157 need_lib_prefix=no 22158 need_version=no 22159 shlibpath_overrides_runpath=no 22160 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 22161 ;; 22162 esac 22163 ;; 22164 22165sysv4*MP*) 22166 if test -d /usr/nec ;then 22167 version_type=linux # correct to gnu/linux during the next big refactor 22168 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 22169 soname_spec='$libname${shared_ext}.$major' 22170 shlibpath_var=LD_LIBRARY_PATH 22171 fi 22172 ;; 22173 22174sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 22175 version_type=freebsd-elf 22176 need_lib_prefix=no 22177 need_version=no 22178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 22179 soname_spec='${libname}${release}${shared_ext}$major' 22180 shlibpath_var=LD_LIBRARY_PATH 22181 shlibpath_overrides_runpath=yes 22182 hardcode_into_libs=yes 22183 if test "$with_gnu_ld" = yes; then 22184 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 22185 else 22186 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 22187 case $host_os in 22188 sco3.2v5*) 22189 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 22190 ;; 22191 esac 22192 fi 22193 sys_lib_dlsearch_path_spec='/usr/lib' 22194 ;; 22195 22196tpf*) 22197 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 22198 version_type=linux # correct to gnu/linux during the next big refactor 22199 need_lib_prefix=no 22200 need_version=no 22201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22202 shlibpath_var=LD_LIBRARY_PATH 22203 shlibpath_overrides_runpath=no 22204 hardcode_into_libs=yes 22205 ;; 22206 22207uts4*) 22208 version_type=linux # correct to gnu/linux during the next big refactor 22209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22210 soname_spec='${libname}${release}${shared_ext}$major' 22211 shlibpath_var=LD_LIBRARY_PATH 22212 ;; 22213 22214*) 22215 dynamic_linker=no 22216 ;; 22217esac 22218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 22219$as_echo "$dynamic_linker" >&6; } 22220test "$dynamic_linker" = no && can_build_shared=no 22221 22222variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 22223if test "$GCC" = yes; then 22224 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 22225fi 22226 22227if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 22228 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 22229fi 22230if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 22231 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 22232fi 22233 22234 22235 22236 22237 22238 22239 22240 22241 22242 22243 22244 22245 22246 22247 22248 22249 22250 22251 22252 22253 22254 22255 22256 22257 22258 22259 22260 22261 22262 22263 22264 22265 22266 22267 22268 22269 22270 22271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 22272$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 22273hardcode_action_CXX= 22274if test -n "$hardcode_libdir_flag_spec_CXX" || 22275 test -n "$runpath_var_CXX" || 22276 test "X$hardcode_automatic_CXX" = "Xyes" ; then 22277 22278 # We can hardcode non-existent directories. 22279 if test "$hardcode_direct_CXX" != no && 22280 # If the only mechanism to avoid hardcoding is shlibpath_var, we 22281 # have to relink, otherwise we might link with an installed library 22282 # when we should be linking with a yet-to-be-installed one 22283 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 22284 test "$hardcode_minus_L_CXX" != no; then 22285 # Linking always hardcodes the temporary library directory. 22286 hardcode_action_CXX=relink 22287 else 22288 # We can link without hardcoding, and we can hardcode nonexisting dirs. 22289 hardcode_action_CXX=immediate 22290 fi 22291else 22292 # We cannot hardcode anything, or else we can only hardcode existing 22293 # directories. 22294 hardcode_action_CXX=unsupported 22295fi 22296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 22297$as_echo "$hardcode_action_CXX" >&6; } 22298 22299if test "$hardcode_action_CXX" = relink || 22300 test "$inherit_rpath_CXX" = yes; then 22301 # Fast installation is not supported 22302 enable_fast_install=no 22303elif test "$shlibpath_overrides_runpath" = yes || 22304 test "$enable_shared" = no; then 22305 # Fast installation is not necessary 22306 enable_fast_install=needless 22307fi 22308 22309 22310 22311 22312 22313 22314 22315 fi # test -n "$compiler" 22316 22317 CC=$lt_save_CC 22318 CFLAGS=$lt_save_CFLAGS 22319 LDCXX=$LD 22320 LD=$lt_save_LD 22321 GCC=$lt_save_GCC 22322 with_gnu_ld=$lt_save_with_gnu_ld 22323 lt_cv_path_LDCXX=$lt_cv_path_LD 22324 lt_cv_path_LD=$lt_save_path_LD 22325 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 22326 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 22327fi # test "$_lt_caught_CXX_error" != yes 22328 22329ac_ext=c 22330ac_cpp='$CPP $CPPFLAGS' 22331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22333ac_compiler_gnu=$ac_cv_c_compiler_gnu 22334 22335 22336 22337 22338 22339 22340 22341 22342 22343 22344 22345 22346 22347 22348 22349 ac_config_commands="$ac_config_commands libtool" 22350 22351 22352 22353 22354# Only expand once: 22355 22356 22357 22358if test "${nut_with_dev}" != "no"; then 22359 nut_with_dev="yes" 22360else 22361 # Check whether --enable-static was given. 22362if test "${enable_static+set}" = set; then : 22363 enableval=$enable_static; p=${PACKAGE-default} 22364 case $enableval in 22365 yes) enable_static=yes ;; 22366 no) enable_static=no ;; 22367 *) 22368 enable_static=no 22369 # Look at the argument we got. We use all the common list separators. 22370 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 22371 for pkg in $enableval; do 22372 IFS="$lt_save_ifs" 22373 if test "X$pkg" = "X$p"; then 22374 enable_static=yes 22375 fi 22376 done 22377 IFS="$lt_save_ifs" 22378 ;; 22379 esac 22380else 22381 enable_static=no 22382fi 22383 22384 22385 22386 22387 22388 22389fi 22390 if test "${nut_with_dev}" = "yes"; then 22391 WITH_DEV_TRUE= 22392 WITH_DEV_FALSE='#' 22393else 22394 WITH_DEV_TRUE='#' 22395 WITH_DEV_FALSE= 22396fi 22397 22398 22399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build and install the development files" >&5 22400$as_echo_n "checking whether to build and install the development files... " >&6; } 22401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${nut_with_dev} " >&5 22402$as_echo "${nut_with_dev} " >&6; } 22403 if test -z "${nut_report_feature_flag}"; then 22404 nut_report_feature_flag="1" 22405 ac_clean_files="${ac_clean_files} conf_nut_report_feature" 22406 echo > conf_nut_report_feature 22407 echo "Configuration summary:" >> conf_nut_report_feature 22408 echo "======================" >> conf_nut_report_feature 22409 fi 22410 echo "build and install the development files: ${nut_with_dev} " >> conf_nut_report_feature 22411 22412 22413 if test "${nut_with_dev}" = "yes"; then 22414 WITH_DEV_TRUE= 22415 WITH_DEV_FALSE='#' 22416else 22417 WITH_DEV_TRUE='#' 22418 WITH_DEV_FALSE= 22419fi 22420 22421 if test "${nut_with_dev}" = "yes"; then 22422 22423cat >>confdefs.h <<_ACEOF 22424#define WITH_DEV 1 22425_ACEOF 22426 22427 fi 22428 22429 22430 22431 22432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking state path" >&5 22433$as_echo_n "checking state path... " >&6; } 22434 22435# Check whether --with-statepath was given. 22436if test "${with_statepath+set}" = set; then : 22437 withval=$with_statepath; 22438 case "${withval}" in 22439 yes|no) 22440 as_fn_error $? "invalid option --with(out)-statepath - see docs/configure.txt" "$LINENO" 5 22441 ;; 22442 *) 22443 STATEPATH="${withval}" 22444 ;; 22445 esac 22446 22447fi 22448 22449 22450cat >>confdefs.h <<_ACEOF 22451#define STATEPATH "${STATEPATH}" 22452_ACEOF 22453 22454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${STATEPATH}" >&5 22455$as_echo "${STATEPATH}" >&6; } 22456 22457 22458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alt pid path" >&5 22459$as_echo_n "checking alt pid path... " >&6; } 22460 22461# Check whether --with-altpidpath was given. 22462if test "${with_altpidpath+set}" = set; then : 22463 withval=$with_altpidpath; 22464 case "${withval}" in 22465 yes|no) 22466 as_fn_error $? "invalid option --with(out)-altpidpath - see docs/configure.txt" "$LINENO" 5 22467 ;; 22468 *) 22469 ALTPIDPATH="${withval}" 22470 ;; 22471 esac 22472 22473else 22474 22475 ALTPIDPATH="${STATEPATH}" 22476 22477fi 22478 22479 22480cat >>confdefs.h <<_ACEOF 22481#define ALTPIDPATH "${ALTPIDPATH}" 22482_ACEOF 22483 22484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ALTPIDPATH}" >&5 22485$as_echo "${ALTPIDPATH}" >&6; } 22486 22487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking driver path" >&5 22488$as_echo_n "checking driver path... " >&6; } 22489 22490# Check whether --with-drvpath was given. 22491if test "${with_drvpath+set}" = set; then : 22492 withval=$with_drvpath; 22493 case "${withval}" in 22494 yes|no) 22495 as_fn_error $? "invalid option --with(out)-drvpath - see docs/configure.txt" "$LINENO" 5 22496 ;; 22497 *) 22498 driverexecdir="${withval}" 22499 ;; 22500 esac 22501 22502fi 22503 22504conftemp="${driverexecdir}" 22505eval conftemp=\"${conftemp}\" 22506eval conftemp=\"${conftemp}\" 22507 22508cat >>confdefs.h <<_ACEOF 22509#define DRVPATH "${conftemp}" 22510_ACEOF 22511 22512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${driverexecdir}" >&5 22513$as_echo "${driverexecdir}" >&6; } 22514 22515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking cgi path" >&5 22516$as_echo_n "checking cgi path... " >&6; } 22517 22518# Check whether --with-cgipath was given. 22519if test "${with_cgipath+set}" = set; then : 22520 withval=$with_cgipath; 22521 case "${withval}" in 22522 yes|no) 22523 as_fn_error $? "invalid option --with(out)-cgipath - see docs/configure.txt" "$LINENO" 5 22524 ;; 22525 *) 22526 cgiexecdir="${withval}" 22527 ;; 22528 esac 22529 22530fi 22531 22532conftemp="${cgiexecdir}" 22533eval conftemp=\"${conftemp}\" 22534eval conftemp=\"${conftemp}\" 22535 22536cat >>confdefs.h <<_ACEOF 22537#define CGIPATH "${conftemp}" 22538_ACEOF 22539 22540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${cgiexecdir}" >&5 22541$as_echo "${cgiexecdir}" >&6; } 22542 22543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking html path" >&5 22544$as_echo_n "checking html path... " >&6; } 22545 22546# Check whether --with-htmlpath was given. 22547if test "${with_htmlpath+set}" = set; then : 22548 withval=$with_htmlpath; 22549 case "${withval}" in 22550 yes|no) 22551 as_fn_error $? "invalid option --with(out)-htmlpath - see docs/configure.txt" "$LINENO" 5 22552 ;; 22553 *) 22554 htmldir="${withval}" 22555 ;; 22556 esac 22557 22558fi 22559 22560conftemp="${htmldir}" 22561eval conftemp=\"${conftemp}\" 22562eval conftemp=\"${conftemp}\" 22563 22564cat >>confdefs.h <<_ACEOF 22565#define HTMLPATH "${conftemp}" 22566_ACEOF 22567 22568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${htmldir}" >&5 22569$as_echo "${htmldir}" >&6; } 22570 22571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pidpath" >&5 22572$as_echo_n "checking pidpath... " >&6; } 22573 22574# Check whether --with-pidpath was given. 22575if test "${with_pidpath+set}" = set; then : 22576 withval=$with_pidpath; 22577 case "${withval}" in 22578 yes|no) 22579 as_fn_error $? "invalid option --with(out)-pidpath - see docs/configure.txt" "$LINENO" 5 22580 ;; 22581 *) 22582 PIDPATH="${withval}" 22583 ;; 22584 esac 22585 22586fi 22587 22588 22589cat >>confdefs.h <<_ACEOF 22590#define PIDPATH "${PIDPATH}" 22591_ACEOF 22592 22593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PIDPATH}" >&5 22594$as_echo "${PIDPATH}" >&6; } 22595 22596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking network port number" >&5 22597$as_echo_n "checking network port number... " >&6; } 22598 22599# Check whether --with-port was given. 22600if test "${with_port+set}" = set; then : 22601 withval=$with_port; 22602 case "${withval}" in 22603 yes|no) 22604 as_fn_error $? "invalid option --with(out)-port - see docs/configure.txt" "$LINENO" 5 22605 ;; 22606 *) 22607 PORT="${withval}" 22608 ;; 22609 esac 22610 22611else 22612 22613 PORT="3493" 22614 22615fi 22616 22617 22618cat >>confdefs.h <<_ACEOF 22619#define PORT ${PORT} 22620_ACEOF 22621 22622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PORT}" >&5 22623$as_echo "${PORT}" >&6; } 22624 22625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking user to run as" >&5 22626$as_echo_n "checking user to run as... " >&6; } 22627 22628# Check whether --with-user was given. 22629if test "${with_user+set}" = set; then : 22630 withval=$with_user; 22631 case "${withval}" in 22632 yes|no) 22633 as_fn_error $? "invalid option --with(out)-user - see docs/configure.txt" "$LINENO" 5 22634 ;; 22635 *) 22636 RUN_AS_USER="${withval}" 22637 nut_user_given=yes 22638 ;; 22639 esac 22640 22641else 22642 22643 nut_user_given=no 22644 22645fi 22646 22647 22648cat >>confdefs.h <<_ACEOF 22649#define RUN_AS_USER "${RUN_AS_USER}" 22650_ACEOF 22651 22652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${RUN_AS_USER}" >&5 22653$as_echo "${RUN_AS_USER}" >&6; } 22654 22655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking group membership of user to run as" >&5 22656$as_echo_n "checking group membership of user to run as... " >&6; } 22657 22658# Check whether --with-group was given. 22659if test "${with_group+set}" = set; then : 22660 withval=$with_group; 22661 case "${withval}" in 22662 yes|no) 22663 as_fn_error $? "invalid option --with(out)-group - see docs/configure.txt" "$LINENO" 5 22664 ;; 22665 *) 22666 RUN_AS_GROUP="${withval}" 22667 nut_group_given=yes 22668 ;; 22669 esac 22670 22671else 22672 22673 nut_group_given=no 22674 22675fi 22676 22677 22678cat >>confdefs.h <<_ACEOF 22679#define RUN_AS_GROUP "${RUN_AS_GROUP}" 22680_ACEOF 22681 22682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${RUN_AS_GROUP}" >&5 22683$as_echo "${RUN_AS_GROUP}" >&6; } 22684 22685if test "${nut_user_given}" = "yes" -a "${nut_group_given}" = "no"; then 22686 as_fn_error $? "\"If you specify --with-user, you also must specify --with-group\"" "$LINENO" 5 22687elif test "${nut_user_given}" = "no" -a "${nut_group_given}" = "yes"; then 22688 as_fn_error $? "\"If you specify --with-group, you also must specify --with-user\"" "$LINENO" 5 22689fi 22690 22691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking facility for syslog" >&5 22692$as_echo_n "checking facility for syslog... " >&6; } 22693 22694# Check whether --with-logfacility was given. 22695if test "${with_logfacility+set}" = set; then : 22696 withval=$with_logfacility; 22697 case "${withval}" in 22698 yes|no) 22699 as_fn_error $? "invalid option --with(out)-logfacility - see docs/configure.txt" "$LINENO" 5 22700 ;; 22701 *) 22702 LOGFACILITY="${withval}" 22703 ;; 22704 esac 22705 22706else 22707 22708 LOGFACILITY="LOG_DAEMON" 22709 22710fi 22711 22712 22713cat >>confdefs.h <<_ACEOF 22714#define LOG_FACILITY ${LOGFACILITY} 22715_ACEOF 22716 22717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LOGFACILITY}" >&5 22718$as_echo "${LOGFACILITY}" >&6; } 22719 22720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which drivers to build" >&5 22721$as_echo_n "checking which drivers to build... " >&6; } 22722 22723# Check whether --with-drivers was given. 22724if test "${with_drivers+set}" = set; then : 22725 withval=$with_drivers; 22726 case "${withval}" in 22727 yes|no) 22728 as_fn_error $? "invalid option --with(out)-drivers - see docs/configure.txt" "$LINENO" 5 22729 ;; 22730 *) 22731 DRIVER_BUILD_LIST=`echo ${withval} | sed "s/,/ /g"` 22732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${DRIVER_BUILD_LIST}" >&5 22733$as_echo "${DRIVER_BUILD_LIST}" >&6; } 22734 ;; 22735 esac 22736 22737else 22738 22739 DRIVER_BUILD_LIST="all" 22740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: all available" >&5 22741$as_echo "all available" >&6; } 22742 22743fi 22744 22745 if test "${DRIVER_BUILD_LIST}" != "all"; then 22746 SOME_DRIVERS_TRUE= 22747 SOME_DRIVERS_FALSE='#' 22748else 22749 SOME_DRIVERS_TRUE='#' 22750 SOME_DRIVERS_FALSE= 22751fi 22752 22753 22754if test "${DRIVER_BUILD_LIST}" != "all"; then 22755 if test -z "${nut_report_feature_flag}"; then 22756 nut_report_feature_flag="1" 22757 ac_clean_files="${ac_clean_files} conf_nut_report_feature" 22758 echo > conf_nut_report_feature 22759 echo "Configuration summary:" >> conf_nut_report_feature 22760 echo "======================" >> conf_nut_report_feature 22761 fi 22762 echo "only build specific drivers: ${DRIVER_BUILD_LIST}" >> conf_nut_report_feature 22763 22764fi 22765 22766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which driver man pages to install" >&5 22767$as_echo_n "checking which driver man pages to install... " >&6; } 22768if test "${DRIVER_BUILD_LIST}" = "all"; then 22769 DRIVER_MAN_LIST=all 22770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: all available" >&5 22771$as_echo "all available" >&6; } 22772else 22773 DRIVER_MAN_LIST="" 22774 for i in ${DRIVER_BUILD_LIST}; do 22775 if test -f ${srcdir}/docs/man/$i.8; then 22776 DRIVER_MAN_LIST="${DRIVER_MAN_LIST} $i.8" 22777 fi 22778 done 22779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${DRIVER_MAN_LIST}" >&5 22780$as_echo "${DRIVER_MAN_LIST}" >&6; } 22781fi 22782 22783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to strip debug symbols" >&5 22784$as_echo_n "checking whether to strip debug symbols... " >&6; } 22785# Check whether --enable-strip was given. 22786if test "${enable_strip+set}" = set; then : 22787 enableval=$enable_strip; 22788 case "${withval}" in 22789 no) 22790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22791$as_echo "no" >&6; } 22792 ;; 22793 *) 22794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22795$as_echo "yes" >&6; } 22796 CFLAGS="${CFLAGS} -s" 22797 ;; 22798 esac 22799 22800else 22801 22802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22803$as_echo "no" >&6; } 22804 22805fi 22806 22807 22808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install pkg-config *.pc files" >&5 22809$as_echo_n "checking whether to install pkg-config *.pc files... " >&6; } 22810 22811# Check whether --with-pkgconfig-dir was given. 22812if test "${with_pkgconfig_dir+set}" = set; then : 22813 withval=$with_pkgconfig_dir; 22814 case "${withval}" in 22815 yes|auto) 22816 ;; 22817 no) 22818 pkgconfigdir="" 22819 ;; 22820 *) 22821 pkgconfigdir="${withval}" 22822 ;; 22823 esac 22824 22825fi 22826 22827if test -n "${pkgconfigdir}"; then 22828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${pkgconfigdir}" >&5 22829$as_echo "using ${pkgconfigdir}" >&6; } 22830else 22831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22832$as_echo "no" >&6; } 22833fi 22834 if test -n "${pkgconfigdir}"; then 22835 WITH_PKG_CONFIG_TRUE= 22836 WITH_PKG_CONFIG_FALSE='#' 22837else 22838 WITH_PKG_CONFIG_TRUE='#' 22839 WITH_PKG_CONFIG_FALSE= 22840fi 22841 22842 22843 22844 22845 22846 22847 22848 22849 22850if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 22851 if test -n "$ac_tool_prefix"; then 22852 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 22853set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 22854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22855$as_echo_n "checking for $ac_word... " >&6; } 22856if ${ac_cv_path_PKG_CONFIG+:} false; then : 22857 $as_echo_n "(cached) " >&6 22858else 22859 case $PKG_CONFIG in 22860 [\\/]* | ?:[\\/]*) 22861 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 22862 ;; 22863 *) 22864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22865for as_dir in $PATH 22866do 22867 IFS=$as_save_IFS 22868 test -z "$as_dir" && as_dir=. 22869 for ac_exec_ext in '' $ac_executable_extensions; do 22870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22871 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 22872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22873 break 2 22874 fi 22875done 22876 done 22877IFS=$as_save_IFS 22878 22879 ;; 22880esac 22881fi 22882PKG_CONFIG=$ac_cv_path_PKG_CONFIG 22883if test -n "$PKG_CONFIG"; then 22884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 22885$as_echo "$PKG_CONFIG" >&6; } 22886else 22887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22888$as_echo "no" >&6; } 22889fi 22890 22891 22892fi 22893if test -z "$ac_cv_path_PKG_CONFIG"; then 22894 ac_pt_PKG_CONFIG=$PKG_CONFIG 22895 # Extract the first word of "pkg-config", so it can be a program name with args. 22896set dummy pkg-config; ac_word=$2 22897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22898$as_echo_n "checking for $ac_word... " >&6; } 22899if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 22900 $as_echo_n "(cached) " >&6 22901else 22902 case $ac_pt_PKG_CONFIG in 22903 [\\/]* | ?:[\\/]*) 22904 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 22905 ;; 22906 *) 22907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22908for as_dir in $PATH 22909do 22910 IFS=$as_save_IFS 22911 test -z "$as_dir" && as_dir=. 22912 for ac_exec_ext in '' $ac_executable_extensions; do 22913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22914 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 22915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22916 break 2 22917 fi 22918done 22919 done 22920IFS=$as_save_IFS 22921 22922 ;; 22923esac 22924fi 22925ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 22926if test -n "$ac_pt_PKG_CONFIG"; then 22927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 22928$as_echo "$ac_pt_PKG_CONFIG" >&6; } 22929else 22930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22931$as_echo "no" >&6; } 22932fi 22933 22934 if test "x$ac_pt_PKG_CONFIG" = x; then 22935 PKG_CONFIG="" 22936 else 22937 case $cross_compiling:$ac_tool_warned in 22938yes:) 22939{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 22940$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 22941ac_tool_warned=yes ;; 22942esac 22943 PKG_CONFIG=$ac_pt_PKG_CONFIG 22944 fi 22945else 22946 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 22947fi 22948 22949fi 22950if test -n "$PKG_CONFIG"; then 22951 _pkg_min_version=0.9.0 22952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 22953$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 22954 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 22955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22956$as_echo "yes" >&6; } 22957 else 22958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22959$as_echo "no" >&6; } 22960 PKG_CONFIG="" 22961 fi 22962fi 22963systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd` 22964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install systemd files" >&5 22965$as_echo_n "checking whether to install systemd files... " >&6; } 22966 22967# Check whether --with-systemdsystemunitdir was given. 22968if test "${with_systemdsystemunitdir+set}" = set; then : 22969 withval=$with_systemdsystemunitdir; 22970 case "${withval}" in 22971 yes|auto) 22972 ;; 22973 no) 22974 systemdsystemunitdir="" 22975 ;; 22976 *) 22977 systemdsystemunitdir="${withval}" 22978 ;; 22979 esac 22980 22981fi 22982 22983if test -n "${systemdsystemunitdir}"; then 22984 systemdsystemshutdowndir="${libdir}/systemd/system-shutdown" 22985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${systemdsystemunitdir}" >&5 22986$as_echo "using ${systemdsystemunitdir}" >&6; } 22987else 22988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22989$as_echo "no" >&6; } 22990fi 22991 if test "$systemdsystemunitdir" != ""; then 22992 HAVE_SYSTEMD_TRUE= 22993 HAVE_SYSTEMD_FALSE='#' 22994else 22995 HAVE_SYSTEMD_TRUE='#' 22996 HAVE_SYSTEMD_FALSE= 22997fi 22998 22999 23000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install hotplug rules" >&5 23001$as_echo_n "checking whether to install hotplug rules... " >&6; } 23002 23003# Check whether --with-hotplug-dir was given. 23004if test "${with_hotplug_dir+set}" = set; then : 23005 withval=$with_hotplug_dir; 23006 case "${withval}" in 23007 yes) 23008 if test -z "${hotplugdir}"; then 23009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23010$as_echo "no" >&6; } 23011 as_fn_error $? "\"hotplug directory requested but not found\"" "$LINENO" 5 23012 fi 23013 ;; 23014 auto) 23015 ;; 23016 no) 23017 hotplugdir="" 23018 ;; 23019 *) 23020 hotplugdir="${withval}" 23021 ;; 23022 esac 23023 23024fi 23025 23026if test -n "${hotplugdir}"; then 23027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${hotplugdir}" >&5 23028$as_echo "using ${hotplugdir}" >&6; } 23029else 23030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23031$as_echo "no" >&6; } 23032fi 23033 if test -n "${hotplugdir}"; then 23034 WITH_HOTPLUG_TRUE= 23035 WITH_HOTPLUG_FALSE='#' 23036else 23037 WITH_HOTPLUG_TRUE='#' 23038 WITH_HOTPLUG_FALSE= 23039fi 23040 23041 23042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install udev rules" >&5 23043$as_echo_n "checking whether to install udev rules... " >&6; } 23044 23045# Check whether --with-udev-dir was given. 23046if test "${with_udev_dir+set}" = set; then : 23047 withval=$with_udev_dir; 23048 case "${withval}" in 23049 yes) 23050 if test -z "${udevdir}"; then 23051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23052$as_echo "no" >&6; } 23053 as_fn_error $? "\"udev directory requested but not found\"" "$LINENO" 5 23054 fi 23055 ;; 23056 auto) 23057 ;; 23058 no) 23059 udevdir="" 23060 ;; 23061 *) 23062 udevdir="${withval}" 23063 ;; 23064 esac 23065 23066fi 23067 23068if test -n "${udevdir}"; then 23069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${udevdir}" >&5 23070$as_echo "using ${udevdir}" >&6; } 23071else 23072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23073$as_echo "no" >&6; } 23074fi 23075 if test -n "${udevdir}"; then 23076 WITH_UDEV_TRUE= 23077 WITH_UDEV_FALSE='#' 23078else 23079 WITH_UDEV_TRUE='#' 23080 WITH_UDEV_FALSE= 23081fi 23082 23083 23084 23085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install FreeBSD devd.conf file" >&5 23086$as_echo_n "checking whether to install FreeBSD devd.conf file... " >&6; } 23087 23088# Check whether --with-devd-dir was given. 23089if test "${with_devd_dir+set}" = set; then : 23090 withval=$with_devd_dir; 23091 case "${withval}" in 23092 yes) 23093 if test -z "${devddir}"; then 23094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23095$as_echo "no" >&6; } 23096 as_fn_error $? "\"devd directory requested but not found\"" "$LINENO" 5 23097 fi 23098 ;; 23099 auto) 23100 ;; 23101 no) 23102 devddir="" 23103 ;; 23104 *) 23105 devddir="${withval}" 23106 ;; 23107 esac 23108 23109fi 23110 23111if test -n "${devddir}"; then 23112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${devddir}" >&5 23113$as_echo "using ${devddir}" >&6; } 23114else 23115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23116$as_echo "no" >&6; } 23117fi 23118 if test -n "${devddir}"; then 23119 WITH_DEVD_TRUE= 23120 WITH_DEVD_FALSE='#' 23121else 23122 WITH_DEVD_TRUE='#' 23123 WITH_DEVD_FALSE= 23124fi 23125 23126 23127 23128for ac_prog in asciidoc 23129do 23130 # Extract the first word of "$ac_prog", so it can be a program name with args. 23131set dummy $ac_prog; ac_word=$2 23132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23133$as_echo_n "checking for $ac_word... " >&6; } 23134if ${ac_cv_path_ASCIIDOC+:} false; then : 23135 $as_echo_n "(cached) " >&6 23136else 23137 case $ASCIIDOC in 23138 [\\/]* | ?:[\\/]*) 23139 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path. 23140 ;; 23141 *) 23142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23143for as_dir in $PATH 23144do 23145 IFS=$as_save_IFS 23146 test -z "$as_dir" && as_dir=. 23147 for ac_exec_ext in '' $ac_executable_extensions; do 23148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23149 ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext" 23150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23151 break 2 23152 fi 23153done 23154 done 23155IFS=$as_save_IFS 23156 23157 ;; 23158esac 23159fi 23160ASCIIDOC=$ac_cv_path_ASCIIDOC 23161if test -n "$ASCIIDOC"; then 23162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5 23163$as_echo "$ASCIIDOC" >&6; } 23164else 23165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23166$as_echo "no" >&6; } 23167fi 23168 23169 23170 test -n "$ASCIIDOC" && break 23171done 23172test -n "$ASCIIDOC" || ASCIIDOC="none" 23173 23174 if test "x$ASCIIDOC" != "xnone"; then 23175 MANUALUPDATE_TRUE= 23176 MANUALUPDATE_FALSE='#' 23177else 23178 MANUALUPDATE_TRUE='#' 23179 MANUALUPDATE_FALSE= 23180fi 23181 23182for ac_prog in a2x 23183do 23184 # Extract the first word of "$ac_prog", so it can be a program name with args. 23185set dummy $ac_prog; ac_word=$2 23186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23187$as_echo_n "checking for $ac_word... " >&6; } 23188if ${ac_cv_path_A2X+:} false; then : 23189 $as_echo_n "(cached) " >&6 23190else 23191 case $A2X in 23192 [\\/]* | ?:[\\/]*) 23193 ac_cv_path_A2X="$A2X" # Let the user override the test with a path. 23194 ;; 23195 *) 23196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23197for as_dir in $PATH 23198do 23199 IFS=$as_save_IFS 23200 test -z "$as_dir" && as_dir=. 23201 for ac_exec_ext in '' $ac_executable_extensions; do 23202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23203 ac_cv_path_A2X="$as_dir/$ac_word$ac_exec_ext" 23204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23205 break 2 23206 fi 23207done 23208 done 23209IFS=$as_save_IFS 23210 23211 ;; 23212esac 23213fi 23214A2X=$ac_cv_path_A2X 23215if test -n "$A2X"; then 23216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $A2X" >&5 23217$as_echo "$A2X" >&6; } 23218else 23219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23220$as_echo "no" >&6; } 23221fi 23222 23223 23224 test -n "$A2X" && break 23225done 23226test -n "$A2X" || A2X="none" 23227 23228 23229for ac_prog in aspell 23230do 23231 # Extract the first word of "$ac_prog", so it can be a program name with args. 23232set dummy $ac_prog; ac_word=$2 23233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23234$as_echo_n "checking for $ac_word... " >&6; } 23235if ${ac_cv_path_ASPELL+:} false; then : 23236 $as_echo_n "(cached) " >&6 23237else 23238 case $ASPELL in 23239 [\\/]* | ?:[\\/]*) 23240 ac_cv_path_ASPELL="$ASPELL" # Let the user override the test with a path. 23241 ;; 23242 *) 23243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23244for as_dir in $PATH 23245do 23246 IFS=$as_save_IFS 23247 test -z "$as_dir" && as_dir=. 23248 for ac_exec_ext in '' $ac_executable_extensions; do 23249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23250 ac_cv_path_ASPELL="$as_dir/$ac_word$ac_exec_ext" 23251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23252 break 2 23253 fi 23254done 23255 done 23256IFS=$as_save_IFS 23257 23258 ;; 23259esac 23260fi 23261ASPELL=$ac_cv_path_ASPELL 23262if test -n "$ASPELL"; then 23263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASPELL" >&5 23264$as_echo "$ASPELL" >&6; } 23265else 23266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23267$as_echo "no" >&6; } 23268fi 23269 23270 23271 test -n "$ASPELL" && break 23272done 23273test -n "$ASPELL" || ASPELL="none" 23274 23275 if test "x$ASPELL" != "xnone"; then 23276 HAVE_ASPELL_TRUE= 23277 HAVE_ASPELL_FALSE='#' 23278else 23279 HAVE_ASPELL_TRUE='#' 23280 HAVE_ASPELL_FALSE= 23281fi 23282 23283 23284 if test "xAIX" = "x`uname -s 2>/dev/null`"; then 23285 SYSTEM_AIX_TRUE= 23286 SYSTEM_AIX_FALSE='#' 23287else 23288 SYSTEM_AIX_TRUE='#' 23289 SYSTEM_AIX_FALSE= 23290fi 23291 23292 23293 23294cat >>confdefs.h <<_ACEOF 23295#define CPU_TYPE $target_cpu 23296_ACEOF 23297 23298 23299conftemp="${sysconfdir}" 23300eval conftemp=\"${conftemp}\" 23301eval conftemp=\"${conftemp}\" 23302CONFPATH=${conftemp} 23303 23304cat >>confdefs.h <<_ACEOF 23305#define CONFPATH "${conftemp}" 23306_ACEOF 23307 23308 23309conftemp="${datadir}" 23310eval conftemp=\"${conftemp}\" 23311eval conftemp=\"${conftemp}\" 23312DATADIR=${conftemp} 23313 23314cat >>confdefs.h <<_ACEOF 23315#define DATADIR "${conftemp}" 23316_ACEOF 23317 23318 23319conftemp="${bindir}" 23320eval conftemp=\"${conftemp}\" 23321eval conftemp=\"${conftemp}\" 23322BINDIR=${conftemp} 23323 23324cat >>confdefs.h <<_ACEOF 23325#define BINDIR "${conftemp}" 23326_ACEOF 23327 23328 23329conftemp="${sbindir}" 23330eval conftemp=\"${conftemp}\" 23331eval conftemp=\"${conftemp}\" 23332SBINDIR=${conftemp} 23333 23334cat >>confdefs.h <<_ACEOF 23335#define SBINDIR "${conftemp}" 23336_ACEOF 23337 23338 23339conftemp="${libdir}" 23340eval conftemp=\"${conftemp}\" 23341eval conftemp=\"${conftemp}\" 23342LIBDIR=${conftemp} 23343 23344cat >>confdefs.h <<_ACEOF 23345#define LIBDIR "${conftemp}" 23346_ACEOF 23347 23348 23349now=`TZ=UTC date +%Y-%m-%d` 23350 23351 23352 23353 23354 23355 23356 23357 23358 23359 23360 23361 23362 23363 23364 23365 23366 23367 23368 23369 23370 23371 23372 23373 23374 23375 23376 23377 23378 23379 23380 23381 23382 23383 23384 23385 23386 23387 23388 23389 23390 23391 23392 23393 23394 23395 23396 23397 23398 23399 23400 23401 23402 23403ac_config_files="$ac_config_files clients/Makefile common/Makefile conf/Makefile conf/upsmon.conf.sample conf/upssched.conf.sample data/html/header.html data/html/Makefile data/Makefile data/driver.list docs/Makefile docs/docinfo.xml docs/man/Makefile drivers/Makefile include/Makefile lib/libupsclient-config lib/libupsclient.pc lib/libnutclient.pc lib/libnutscan.pc lib/Makefile scripts/Aix/nut-aix.spec scripts/augeas/Makefile scripts/augeas/nutnutconf.aug scripts/augeas/nutupsconf.aug scripts/augeas/nutupsdconf.aug scripts/augeas/nutupsdusers.aug scripts/augeas/nutupsmonconf.aug scripts/augeas/nutupsschedconf.aug scripts/augeas/nuthostsconf.aug scripts/augeas/nutupssetconf.aug scripts/avahi/nut.service scripts/devd/Makefile scripts/devd/nut-usb.conf scripts/hotplug/Makefile scripts/hotplug/libhidups scripts/HP-UX/nut.psf scripts/HP-UX/postinstall scripts/python/Makefile scripts/systemd/Makefile scripts/systemd/nut-driver.service scripts/systemd/nut-monitor.service scripts/systemd/nut-server.service scripts/systemd/nutshutdown scripts/Solaris/Makefile scripts/Solaris/pkginfo scripts/Solaris/postinstall scripts/Solaris/preremove scripts/Solaris/nut scripts/udev/Makefile scripts/udev/nut-ipmipsu.rules scripts/udev/nut-usbups.rules scripts/ufw/nut.ufw.profile scripts/Makefile server/Makefile tools/Makefile tools/nut-scanner/Makefile tests/Makefile Makefile" 23404 23405cat >confcache <<\_ACEOF 23406# This file is a shell script that caches the results of configure 23407# tests run on this system so they can be shared between configure 23408# scripts and configure runs, see configure's option --config-cache. 23409# It is not useful on other systems. If it contains results you don't 23410# want to keep, you may remove or edit it. 23411# 23412# config.status only pays attention to the cache file if you give it 23413# the --recheck option to rerun configure. 23414# 23415# `ac_cv_env_foo' variables (set or unset) will be overridden when 23416# loading this file, other *unset* `ac_cv_foo' will be assigned the 23417# following values. 23418 23419_ACEOF 23420 23421# The following way of writing the cache mishandles newlines in values, 23422# but we know of no workaround that is simple, portable, and efficient. 23423# So, we kill variables containing newlines. 23424# Ultrix sh set writes to stderr and can't be redirected directly, 23425# and sets the high bit in the cache file unless we assign to the vars. 23426( 23427 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 23428 eval ac_val=\$$ac_var 23429 case $ac_val in #( 23430 *${as_nl}*) 23431 case $ac_var in #( 23432 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 23433$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 23434 esac 23435 case $ac_var in #( 23436 _ | IFS | as_nl) ;; #( 23437 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 23438 *) { eval $ac_var=; unset $ac_var;} ;; 23439 esac ;; 23440 esac 23441 done 23442 23443 (set) 2>&1 | 23444 case $as_nl`(ac_space=' '; set) 2>&1` in #( 23445 *${as_nl}ac_space=\ *) 23446 # `set' does not quote correctly, so add quotes: double-quote 23447 # substitution turns \\\\ into \\, and sed turns \\ into \. 23448 sed -n \ 23449 "s/'/'\\\\''/g; 23450 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 23451 ;; #( 23452 *) 23453 # `set' quotes correctly as required by POSIX, so do not add quotes. 23454 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 23455 ;; 23456 esac | 23457 sort 23458) | 23459 sed ' 23460 /^ac_cv_env_/b end 23461 t clear 23462 :clear 23463 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 23464 t end 23465 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 23466 :end' >>confcache 23467if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 23468 if test -w "$cache_file"; then 23469 if test "x$cache_file" != "x/dev/null"; then 23470 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 23471$as_echo "$as_me: updating cache $cache_file" >&6;} 23472 if test ! -f "$cache_file" || test -h "$cache_file"; then 23473 cat confcache >"$cache_file" 23474 else 23475 case $cache_file in #( 23476 */* | ?:*) 23477 mv -f confcache "$cache_file"$$ && 23478 mv -f "$cache_file"$$ "$cache_file" ;; #( 23479 *) 23480 mv -f confcache "$cache_file" ;; 23481 esac 23482 fi 23483 fi 23484 else 23485 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 23486$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 23487 fi 23488fi 23489rm -f confcache 23490 23491test "x$prefix" = xNONE && prefix=$ac_default_prefix 23492# Let make expand exec_prefix. 23493test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 23494 23495DEFS=-DHAVE_CONFIG_H 23496 23497ac_libobjs= 23498ac_ltlibobjs= 23499U= 23500for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 23501 # 1. Remove the extension, and $U if already installed. 23502 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 23503 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 23504 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 23505 # will be set to the directory where LIBOBJS objects are built. 23506 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 23507 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 23508done 23509LIBOBJS=$ac_libobjs 23510 23511LTLIBOBJS=$ac_ltlibobjs 23512 23513 23514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 23515$as_echo_n "checking that generated files are newer than configure... " >&6; } 23516 if test -n "$am_sleep_pid"; then 23517 # Hide warnings about reused PIDs. 23518 wait $am_sleep_pid 2>/dev/null 23519 fi 23520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 23521$as_echo "done" >&6; } 23522 if test -n "$EXEEXT"; then 23523 am__EXEEXT_TRUE= 23524 am__EXEEXT_FALSE='#' 23525else 23526 am__EXEEXT_TRUE='#' 23527 am__EXEEXT_FALSE= 23528fi 23529 23530if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 23531 as_fn_error $? "conditional \"AMDEP\" was never defined. 23532Usually this means the macro was only invoked conditionally." "$LINENO" 5 23533fi 23534if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 23535 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 23536Usually this means the macro was only invoked conditionally." "$LINENO" 5 23537fi 23538if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 23539 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 23540Usually this means the macro was only invoked conditionally." "$LINENO" 5 23541fi 23542if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 23543 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 23544Usually this means the macro was only invoked conditionally." "$LINENO" 5 23545fi 23546if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 23547 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 23548Usually this means the macro was only invoked conditionally." "$LINENO" 5 23549fi 23550 23551if test -z "${HAVE_CPPUNIT_TRUE}" && test -z "${HAVE_CPPUNIT_FALSE}"; then 23552 as_fn_error $? "conditional \"HAVE_CPPUNIT\" was never defined. 23553Usually this means the macro was only invoked conditionally." "$LINENO" 5 23554fi 23555if test -z "${WITH_SERIAL_TRUE}" && test -z "${WITH_SERIAL_FALSE}"; then 23556 as_fn_error $? "conditional \"WITH_SERIAL\" was never defined. 23557Usually this means the macro was only invoked conditionally." "$LINENO" 5 23558fi 23559if test -z "${WITH_USB_TRUE}" && test -z "${WITH_USB_FALSE}"; then 23560 as_fn_error $? "conditional \"WITH_USB\" was never defined. 23561Usually this means the macro was only invoked conditionally." "$LINENO" 5 23562fi 23563if test -z "${WITH_SNMP_TRUE}" && test -z "${WITH_SNMP_FALSE}"; then 23564 as_fn_error $? "conditional \"WITH_SNMP\" was never defined. 23565Usually this means the macro was only invoked conditionally." "$LINENO" 5 23566fi 23567if test -z "${WITH_NEON_TRUE}" && test -z "${WITH_NEON_FALSE}"; then 23568 as_fn_error $? "conditional \"WITH_NEON\" was never defined. 23569Usually this means the macro was only invoked conditionally." "$LINENO" 5 23570fi 23571if test -z "${WITH_AVAHI_TRUE}" && test -z "${WITH_AVAHI_FALSE}"; then 23572 as_fn_error $? "conditional \"WITH_AVAHI\" was never defined. 23573Usually this means the macro was only invoked conditionally." "$LINENO" 5 23574fi 23575if test -z "${WITH_LIBPOWERMAN_TRUE}" && test -z "${WITH_LIBPOWERMAN_FALSE}"; then 23576 as_fn_error $? "conditional \"WITH_LIBPOWERMAN\" was never defined. 23577Usually this means the macro was only invoked conditionally." "$LINENO" 5 23578fi 23579if test -z "${WITH_IPMI_TRUE}" && test -z "${WITH_IPMI_FALSE}"; then 23580 as_fn_error $? "conditional \"WITH_IPMI\" was never defined. 23581Usually this means the macro was only invoked conditionally." "$LINENO" 5 23582fi 23583if test -z "${WITH_FREEIPMI_TRUE}" && test -z "${WITH_FREEIPMI_FALSE}"; then 23584 as_fn_error $? "conditional \"WITH_FREEIPMI\" was never defined. 23585Usually this means the macro was only invoked conditionally." "$LINENO" 5 23586fi 23587if test -z "${WITH_MACOSX_TRUE}" && test -z "${WITH_MACOSX_FALSE}"; then 23588 as_fn_error $? "conditional \"WITH_MACOSX\" was never defined. 23589Usually this means the macro was only invoked conditionally." "$LINENO" 5 23590fi 23591if test -z "${WITH_LINUX_I2C_TRUE}" && test -z "${WITH_LINUX_I2C_FALSE}"; then 23592 as_fn_error $? "conditional \"WITH_LINUX_I2C\" was never defined. 23593Usually this means the macro was only invoked conditionally." "$LINENO" 5 23594fi 23595if test -z "${WITH_NSS_TRUE}" && test -z "${WITH_NSS_FALSE}"; then 23596 as_fn_error $? "conditional \"WITH_NSS\" was never defined. 23597Usually this means the macro was only invoked conditionally." "$LINENO" 5 23598fi 23599if test -z "${WITH_OPENSSL_TRUE}" && test -z "${WITH_OPENSSL_FALSE}"; then 23600 as_fn_error $? "conditional \"WITH_OPENSSL\" was never defined. 23601Usually this means the macro was only invoked conditionally." "$LINENO" 5 23602fi 23603if test -z "${WITH_SSL_TRUE}" && test -z "${WITH_SSL_FALSE}"; then 23604 as_fn_error $? "conditional \"WITH_SSL\" was never defined. 23605Usually this means the macro was only invoked conditionally." "$LINENO" 5 23606fi 23607if test -z "${WITH_WRAP_TRUE}" && test -z "${WITH_WRAP_FALSE}"; then 23608 as_fn_error $? "conditional \"WITH_WRAP\" was never defined. 23609Usually this means the macro was only invoked conditionally." "$LINENO" 5 23610fi 23611if test -z "${WITH_LIBLTDL_TRUE}" && test -z "${WITH_LIBLTDL_FALSE}"; then 23612 as_fn_error $? "conditional \"WITH_LIBLTDL\" was never defined. 23613Usually this means the macro was only invoked conditionally." "$LINENO" 5 23614fi 23615if test -z "${WITH_CGI_TRUE}" && test -z "${WITH_CGI_FALSE}"; then 23616 as_fn_error $? "conditional \"WITH_CGI\" was never defined. 23617Usually this means the macro was only invoked conditionally." "$LINENO" 5 23618fi 23619if test -z "${WITH_ASCIIDOC_TRUE}" && test -z "${WITH_ASCIIDOC_FALSE}"; then 23620 as_fn_error $? "conditional \"WITH_ASCIIDOC\" was never defined. 23621Usually this means the macro was only invoked conditionally." "$LINENO" 5 23622fi 23623if test -z "${HAVE_ASCIIDOC_TRUE}" && test -z "${HAVE_ASCIIDOC_FALSE}"; then 23624 as_fn_error $? "conditional \"HAVE_ASCIIDOC\" was never defined. 23625Usually this means the macro was only invoked conditionally." "$LINENO" 5 23626fi 23627if test -z "${WITH_DEV_TRUE}" && test -z "${WITH_DEV_FALSE}"; then 23628 as_fn_error $? "conditional \"WITH_DEV\" was never defined. 23629Usually this means the macro was only invoked conditionally." "$LINENO" 5 23630fi 23631if test -z "${WITH_DEV_TRUE}" && test -z "${WITH_DEV_FALSE}"; then 23632 as_fn_error $? "conditional \"WITH_DEV\" was never defined. 23633Usually this means the macro was only invoked conditionally." "$LINENO" 5 23634fi 23635if test -z "${SOME_DRIVERS_TRUE}" && test -z "${SOME_DRIVERS_FALSE}"; then 23636 as_fn_error $? "conditional \"SOME_DRIVERS\" was never defined. 23637Usually this means the macro was only invoked conditionally." "$LINENO" 5 23638fi 23639if test -z "${WITH_PKG_CONFIG_TRUE}" && test -z "${WITH_PKG_CONFIG_FALSE}"; then 23640 as_fn_error $? "conditional \"WITH_PKG_CONFIG\" was never defined. 23641Usually this means the macro was only invoked conditionally." "$LINENO" 5 23642fi 23643if test -z "${HAVE_SYSTEMD_TRUE}" && test -z "${HAVE_SYSTEMD_FALSE}"; then 23644 as_fn_error $? "conditional \"HAVE_SYSTEMD\" was never defined. 23645Usually this means the macro was only invoked conditionally." "$LINENO" 5 23646fi 23647if test -z "${WITH_HOTPLUG_TRUE}" && test -z "${WITH_HOTPLUG_FALSE}"; then 23648 as_fn_error $? "conditional \"WITH_HOTPLUG\" was never defined. 23649Usually this means the macro was only invoked conditionally." "$LINENO" 5 23650fi 23651if test -z "${WITH_UDEV_TRUE}" && test -z "${WITH_UDEV_FALSE}"; then 23652 as_fn_error $? "conditional \"WITH_UDEV\" was never defined. 23653Usually this means the macro was only invoked conditionally." "$LINENO" 5 23654fi 23655if test -z "${WITH_DEVD_TRUE}" && test -z "${WITH_DEVD_FALSE}"; then 23656 as_fn_error $? "conditional \"WITH_DEVD\" was never defined. 23657Usually this means the macro was only invoked conditionally." "$LINENO" 5 23658fi 23659if test -z "${MANUALUPDATE_TRUE}" && test -z "${MANUALUPDATE_FALSE}"; then 23660 as_fn_error $? "conditional \"MANUALUPDATE\" was never defined. 23661Usually this means the macro was only invoked conditionally." "$LINENO" 5 23662fi 23663if test -z "${HAVE_ASPELL_TRUE}" && test -z "${HAVE_ASPELL_FALSE}"; then 23664 as_fn_error $? "conditional \"HAVE_ASPELL\" was never defined. 23665Usually this means the macro was only invoked conditionally." "$LINENO" 5 23666fi 23667if test -z "${SYSTEM_AIX_TRUE}" && test -z "${SYSTEM_AIX_FALSE}"; then 23668 as_fn_error $? "conditional \"SYSTEM_AIX\" was never defined. 23669Usually this means the macro was only invoked conditionally." "$LINENO" 5 23670fi 23671 23672: "${CONFIG_STATUS=./config.status}" 23673ac_write_fail=0 23674ac_clean_files_save=$ac_clean_files 23675ac_clean_files="$ac_clean_files $CONFIG_STATUS" 23676{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 23677$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 23678as_write_fail=0 23679cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 23680#! $SHELL 23681# Generated by $as_me. 23682# Run this file to recreate the current configuration. 23683# Compiler output produced by configure, useful for debugging 23684# configure, is in config.log if it exists. 23685 23686debug=false 23687ac_cs_recheck=false 23688ac_cs_silent=false 23689 23690SHELL=\${CONFIG_SHELL-$SHELL} 23691export SHELL 23692_ASEOF 23693cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 23694## -------------------- ## 23695## M4sh Initialization. ## 23696## -------------------- ## 23697 23698# Be more Bourne compatible 23699DUALCASE=1; export DUALCASE # for MKS sh 23700if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 23701 emulate sh 23702 NULLCMD=: 23703 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23704 # is contrary to our usage. Disable this feature. 23705 alias -g '${1+"$@"}'='"$@"' 23706 setopt NO_GLOB_SUBST 23707else 23708 case `(set -o) 2>/dev/null` in #( 23709 *posix*) : 23710 set -o posix ;; #( 23711 *) : 23712 ;; 23713esac 23714fi 23715 23716 23717as_nl=' 23718' 23719export as_nl 23720# Printing a long string crashes Solaris 7 /usr/bin/printf. 23721as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 23722as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 23723as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 23724# Prefer a ksh shell builtin over an external printf program on Solaris, 23725# but without wasting forks for bash or zsh. 23726if test -z "$BASH_VERSION$ZSH_VERSION" \ 23727 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 23728 as_echo='print -r --' 23729 as_echo_n='print -rn --' 23730elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 23731 as_echo='printf %s\n' 23732 as_echo_n='printf %s' 23733else 23734 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 23735 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 23736 as_echo_n='/usr/ucb/echo -n' 23737 else 23738 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 23739 as_echo_n_body='eval 23740 arg=$1; 23741 case $arg in #( 23742 *"$as_nl"*) 23743 expr "X$arg" : "X\\(.*\\)$as_nl"; 23744 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 23745 esac; 23746 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 23747 ' 23748 export as_echo_n_body 23749 as_echo_n='sh -c $as_echo_n_body as_echo' 23750 fi 23751 export as_echo_body 23752 as_echo='sh -c $as_echo_body as_echo' 23753fi 23754 23755# The user is always right. 23756if test "${PATH_SEPARATOR+set}" != set; then 23757 PATH_SEPARATOR=: 23758 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 23759 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 23760 PATH_SEPARATOR=';' 23761 } 23762fi 23763 23764 23765# IFS 23766# We need space, tab and new line, in precisely that order. Quoting is 23767# there to prevent editors from complaining about space-tab. 23768# (If _AS_PATH_WALK were called with IFS unset, it would disable word 23769# splitting by setting IFS to empty value.) 23770IFS=" "" $as_nl" 23771 23772# Find who we are. Look in the path if we contain no directory separator. 23773as_myself= 23774case $0 in #(( 23775 *[\\/]* ) as_myself=$0 ;; 23776 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23777for as_dir in $PATH 23778do 23779 IFS=$as_save_IFS 23780 test -z "$as_dir" && as_dir=. 23781 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 23782 done 23783IFS=$as_save_IFS 23784 23785 ;; 23786esac 23787# We did not find ourselves, most probably we were run as `sh COMMAND' 23788# in which case we are not to be found in the path. 23789if test "x$as_myself" = x; then 23790 as_myself=$0 23791fi 23792if test ! -f "$as_myself"; then 23793 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 23794 exit 1 23795fi 23796 23797# Unset variables that we do not need and which cause bugs (e.g. in 23798# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 23799# suppresses any "Segmentation fault" message there. '((' could 23800# trigger a bug in pdksh 5.2.14. 23801for as_var in BASH_ENV ENV MAIL MAILPATH 23802do eval test x\${$as_var+set} = xset \ 23803 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 23804done 23805PS1='$ ' 23806PS2='> ' 23807PS4='+ ' 23808 23809# NLS nuisances. 23810LC_ALL=C 23811export LC_ALL 23812LANGUAGE=C 23813export LANGUAGE 23814 23815# CDPATH. 23816(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 23817 23818 23819# as_fn_error STATUS ERROR [LINENO LOG_FD] 23820# ---------------------------------------- 23821# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 23822# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 23823# script with STATUS, using 1 if that was 0. 23824as_fn_error () 23825{ 23826 as_status=$1; test $as_status -eq 0 && as_status=1 23827 if test "$4"; then 23828 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 23829 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 23830 fi 23831 $as_echo "$as_me: error: $2" >&2 23832 as_fn_exit $as_status 23833} # as_fn_error 23834 23835 23836# as_fn_set_status STATUS 23837# ----------------------- 23838# Set $? to STATUS, without forking. 23839as_fn_set_status () 23840{ 23841 return $1 23842} # as_fn_set_status 23843 23844# as_fn_exit STATUS 23845# ----------------- 23846# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 23847as_fn_exit () 23848{ 23849 set +e 23850 as_fn_set_status $1 23851 exit $1 23852} # as_fn_exit 23853 23854# as_fn_unset VAR 23855# --------------- 23856# Portably unset VAR. 23857as_fn_unset () 23858{ 23859 { eval $1=; unset $1;} 23860} 23861as_unset=as_fn_unset 23862# as_fn_append VAR VALUE 23863# ---------------------- 23864# Append the text in VALUE to the end of the definition contained in VAR. Take 23865# advantage of any shell optimizations that allow amortized linear growth over 23866# repeated appends, instead of the typical quadratic growth present in naive 23867# implementations. 23868if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 23869 eval 'as_fn_append () 23870 { 23871 eval $1+=\$2 23872 }' 23873else 23874 as_fn_append () 23875 { 23876 eval $1=\$$1\$2 23877 } 23878fi # as_fn_append 23879 23880# as_fn_arith ARG... 23881# ------------------ 23882# Perform arithmetic evaluation on the ARGs, and store the result in the 23883# global $as_val. Take advantage of shells that can avoid forks. The arguments 23884# must be portable across $(()) and expr. 23885if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 23886 eval 'as_fn_arith () 23887 { 23888 as_val=$(( $* )) 23889 }' 23890else 23891 as_fn_arith () 23892 { 23893 as_val=`expr "$@" || test $? -eq 1` 23894 } 23895fi # as_fn_arith 23896 23897 23898if expr a : '\(a\)' >/dev/null 2>&1 && 23899 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23900 as_expr=expr 23901else 23902 as_expr=false 23903fi 23904 23905if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 23906 as_basename=basename 23907else 23908 as_basename=false 23909fi 23910 23911if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 23912 as_dirname=dirname 23913else 23914 as_dirname=false 23915fi 23916 23917as_me=`$as_basename -- "$0" || 23918$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 23919 X"$0" : 'X\(//\)$' \| \ 23920 X"$0" : 'X\(/\)' \| . 2>/dev/null || 23921$as_echo X/"$0" | 23922 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23923 s//\1/ 23924 q 23925 } 23926 /^X\/\(\/\/\)$/{ 23927 s//\1/ 23928 q 23929 } 23930 /^X\/\(\/\).*/{ 23931 s//\1/ 23932 q 23933 } 23934 s/.*/./; q'` 23935 23936# Avoid depending upon Character Ranges. 23937as_cr_letters='abcdefghijklmnopqrstuvwxyz' 23938as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 23939as_cr_Letters=$as_cr_letters$as_cr_LETTERS 23940as_cr_digits='0123456789' 23941as_cr_alnum=$as_cr_Letters$as_cr_digits 23942 23943ECHO_C= ECHO_N= ECHO_T= 23944case `echo -n x` in #((((( 23945-n*) 23946 case `echo 'xy\c'` in 23947 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 23948 xy) ECHO_C='\c';; 23949 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 23950 ECHO_T=' ';; 23951 esac;; 23952*) 23953 ECHO_N='-n';; 23954esac 23955 23956rm -f conf$$ conf$$.exe conf$$.file 23957if test -d conf$$.dir; then 23958 rm -f conf$$.dir/conf$$.file 23959else 23960 rm -f conf$$.dir 23961 mkdir conf$$.dir 2>/dev/null 23962fi 23963if (echo >conf$$.file) 2>/dev/null; then 23964 if ln -s conf$$.file conf$$ 2>/dev/null; then 23965 as_ln_s='ln -s' 23966 # ... but there are two gotchas: 23967 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 23968 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 23969 # In both cases, we have to default to `cp -pR'. 23970 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 23971 as_ln_s='cp -pR' 23972 elif ln conf$$.file conf$$ 2>/dev/null; then 23973 as_ln_s=ln 23974 else 23975 as_ln_s='cp -pR' 23976 fi 23977else 23978 as_ln_s='cp -pR' 23979fi 23980rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 23981rmdir conf$$.dir 2>/dev/null 23982 23983 23984# as_fn_mkdir_p 23985# ------------- 23986# Create "$as_dir" as a directory, including parents if necessary. 23987as_fn_mkdir_p () 23988{ 23989 23990 case $as_dir in #( 23991 -*) as_dir=./$as_dir;; 23992 esac 23993 test -d "$as_dir" || eval $as_mkdir_p || { 23994 as_dirs= 23995 while :; do 23996 case $as_dir in #( 23997 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23998 *) as_qdir=$as_dir;; 23999 esac 24000 as_dirs="'$as_qdir' $as_dirs" 24001 as_dir=`$as_dirname -- "$as_dir" || 24002$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24003 X"$as_dir" : 'X\(//\)[^/]' \| \ 24004 X"$as_dir" : 'X\(//\)$' \| \ 24005 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 24006$as_echo X"$as_dir" | 24007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24008 s//\1/ 24009 q 24010 } 24011 /^X\(\/\/\)[^/].*/{ 24012 s//\1/ 24013 q 24014 } 24015 /^X\(\/\/\)$/{ 24016 s//\1/ 24017 q 24018 } 24019 /^X\(\/\).*/{ 24020 s//\1/ 24021 q 24022 } 24023 s/.*/./; q'` 24024 test -d "$as_dir" && break 24025 done 24026 test -z "$as_dirs" || eval "mkdir $as_dirs" 24027 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 24028 24029 24030} # as_fn_mkdir_p 24031if mkdir -p . 2>/dev/null; then 24032 as_mkdir_p='mkdir -p "$as_dir"' 24033else 24034 test -d ./-p && rmdir ./-p 24035 as_mkdir_p=false 24036fi 24037 24038 24039# as_fn_executable_p FILE 24040# ----------------------- 24041# Test if FILE is an executable regular file. 24042as_fn_executable_p () 24043{ 24044 test -f "$1" && test -x "$1" 24045} # as_fn_executable_p 24046as_test_x='test -x' 24047as_executable_p=as_fn_executable_p 24048 24049# Sed expression to map a string onto a valid CPP name. 24050as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 24051 24052# Sed expression to map a string onto a valid variable name. 24053as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 24054 24055 24056exec 6>&1 24057## ----------------------------------- ## 24058## Main body of $CONFIG_STATUS script. ## 24059## ----------------------------------- ## 24060_ASEOF 24061test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 24062 24063cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24064# Save the log message, to keep $0 and so on meaningful, and to 24065# report actual input values of CONFIG_FILES etc. instead of their 24066# values after options handling. 24067ac_log=" 24068This file was extended by nut $as_me 2.7.4, which was 24069generated by GNU Autoconf 2.69. Invocation command line was 24070 24071 CONFIG_FILES = $CONFIG_FILES 24072 CONFIG_HEADERS = $CONFIG_HEADERS 24073 CONFIG_LINKS = $CONFIG_LINKS 24074 CONFIG_COMMANDS = $CONFIG_COMMANDS 24075 $ $0 $@ 24076 24077on `(hostname || uname -n) 2>/dev/null | sed 1q` 24078" 24079 24080_ACEOF 24081 24082case $ac_config_files in *" 24083"*) set x $ac_config_files; shift; ac_config_files=$*;; 24084esac 24085 24086case $ac_config_headers in *" 24087"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 24088esac 24089 24090 24091cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24092# Files that config.status was made for. 24093config_files="$ac_config_files" 24094config_headers="$ac_config_headers" 24095config_commands="$ac_config_commands" 24096 24097_ACEOF 24098 24099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24100ac_cs_usage="\ 24101\`$as_me' instantiates files and other configuration actions 24102from templates according to the current configuration. Unless the files 24103and actions are specified as TAGs, all are instantiated by default. 24104 24105Usage: $0 [OPTION]... [TAG]... 24106 24107 -h, --help print this help, then exit 24108 -V, --version print version number and configuration settings, then exit 24109 --config print configuration, then exit 24110 -q, --quiet, --silent 24111 do not print progress messages 24112 -d, --debug don't remove temporary files 24113 --recheck update $as_me by reconfiguring in the same conditions 24114 --file=FILE[:TEMPLATE] 24115 instantiate the configuration file FILE 24116 --header=FILE[:TEMPLATE] 24117 instantiate the configuration header FILE 24118 24119Configuration files: 24120$config_files 24121 24122Configuration headers: 24123$config_headers 24124 24125Configuration commands: 24126$config_commands 24127 24128Report bugs to <https://github.com/networkupstools/nut/issues>." 24129 24130_ACEOF 24131cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24132ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 24133ac_cs_version="\\ 24134nut config.status 2.7.4 24135configured by $0, generated by GNU Autoconf 2.69, 24136 with options \\"\$ac_cs_config\\" 24137 24138Copyright (C) 2012 Free Software Foundation, Inc. 24139This config.status script is free software; the Free Software Foundation 24140gives unlimited permission to copy, distribute and modify it." 24141 24142ac_pwd='$ac_pwd' 24143srcdir='$srcdir' 24144INSTALL='$INSTALL' 24145MKDIR_P='$MKDIR_P' 24146AWK='$AWK' 24147test -n "\$AWK" || AWK=awk 24148_ACEOF 24149 24150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24151# The default lists apply if the user does not specify any file. 24152ac_need_defaults=: 24153while test $# != 0 24154do 24155 case $1 in 24156 --*=?*) 24157 ac_option=`expr "X$1" : 'X\([^=]*\)='` 24158 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 24159 ac_shift=: 24160 ;; 24161 --*=) 24162 ac_option=`expr "X$1" : 'X\([^=]*\)='` 24163 ac_optarg= 24164 ac_shift=: 24165 ;; 24166 *) 24167 ac_option=$1 24168 ac_optarg=$2 24169 ac_shift=shift 24170 ;; 24171 esac 24172 24173 case $ac_option in 24174 # Handling of the options. 24175 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 24176 ac_cs_recheck=: ;; 24177 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 24178 $as_echo "$ac_cs_version"; exit ;; 24179 --config | --confi | --conf | --con | --co | --c ) 24180 $as_echo "$ac_cs_config"; exit ;; 24181 --debug | --debu | --deb | --de | --d | -d ) 24182 debug=: ;; 24183 --file | --fil | --fi | --f ) 24184 $ac_shift 24185 case $ac_optarg in 24186 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 24187 '') as_fn_error $? "missing file argument" ;; 24188 esac 24189 as_fn_append CONFIG_FILES " '$ac_optarg'" 24190 ac_need_defaults=false;; 24191 --header | --heade | --head | --hea ) 24192 $ac_shift 24193 case $ac_optarg in 24194 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 24195 esac 24196 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 24197 ac_need_defaults=false;; 24198 --he | --h) 24199 # Conflict between --help and --header 24200 as_fn_error $? "ambiguous option: \`$1' 24201Try \`$0 --help' for more information.";; 24202 --help | --hel | -h ) 24203 $as_echo "$ac_cs_usage"; exit ;; 24204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 24205 | -silent | --silent | --silen | --sile | --sil | --si | --s) 24206 ac_cs_silent=: ;; 24207 24208 # This is an error. 24209 -*) as_fn_error $? "unrecognized option: \`$1' 24210Try \`$0 --help' for more information." ;; 24211 24212 *) as_fn_append ac_config_targets " $1" 24213 ac_need_defaults=false ;; 24214 24215 esac 24216 shift 24217done 24218 24219ac_configure_extra_args= 24220 24221if $ac_cs_silent; then 24222 exec 6>/dev/null 24223 ac_configure_extra_args="$ac_configure_extra_args --silent" 24224fi 24225 24226_ACEOF 24227cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24228if \$ac_cs_recheck; then 24229 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 24230 shift 24231 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 24232 CONFIG_SHELL='$SHELL' 24233 export CONFIG_SHELL 24234 exec "\$@" 24235fi 24236 24237_ACEOF 24238cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24239exec 5>>config.log 24240{ 24241 echo 24242 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 24243## Running $as_me. ## 24244_ASBOX 24245 $as_echo "$ac_log" 24246} >&5 24247 24248_ACEOF 24249cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24250# 24251# INIT-COMMANDS 24252# 24253AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 24254 24255 24256# The HP-UX ksh and POSIX shell print the target directory to stdout 24257# if CDPATH is set. 24258(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 24259 24260sed_quote_subst='$sed_quote_subst' 24261double_quote_subst='$double_quote_subst' 24262delay_variable_subst='$delay_variable_subst' 24263macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 24264macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 24265enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 24266enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 24267pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 24268enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 24269SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 24270ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 24271PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 24272host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 24273host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 24274host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 24275build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 24276build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 24277build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 24278SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 24279Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 24280GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 24281EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 24282FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 24283LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 24284NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 24285LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 24286max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 24287ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 24288exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 24289lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 24290lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 24291lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 24292lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 24293lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 24294reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 24295reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 24296OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 24297deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 24298file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 24299file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 24300want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 24301DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 24302sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 24303AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 24304AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 24305archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 24306STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 24307RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 24308old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 24309old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 24310old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 24311lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 24312CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 24313CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 24314compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 24315GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 24316lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 24317lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 24318lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 24319lt_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"`' 24320nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 24321lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 24322objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 24323MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 24324lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 24325lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 24326lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 24327lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 24328lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 24329need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 24330MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 24331DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 24332NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 24333LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 24334OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 24335OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 24336libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 24337shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 24338extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 24339archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 24340enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 24341export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 24342whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 24343compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 24344old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 24345old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 24346archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 24347archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 24348module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 24349module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 24350with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 24351allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 24352no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 24353hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 24354hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 24355hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 24356hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 24357hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 24358hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 24359hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 24360inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 24361link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 24362always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 24363export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 24364exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 24365include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 24366prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 24367postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 24368file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 24369variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 24370need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 24371need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 24372version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 24373runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 24374shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 24375shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 24376libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 24377library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 24378soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 24379install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 24380postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 24381postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 24382finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 24383finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 24384hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 24385sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 24386sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 24387hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 24388enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 24389enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 24390enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 24391old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 24392striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 24393compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 24394predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 24395postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 24396predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 24397postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 24398compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 24399LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 24400reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 24401reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24402old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24403compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 24404GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 24405lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 24406lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 24407lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 24408lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 24409lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 24410archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 24411enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 24412export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 24413whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 24414compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 24415old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24416old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24417archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24418archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24419module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24420module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24421with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 24422allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 24423no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 24424hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 24425hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 24426hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 24427hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 24428hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 24429hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 24430hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 24431inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 24432link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 24433always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 24434export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24435exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 24436include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 24437prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24438postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 24439file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 24440hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 24441compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 24442predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 24443postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 24444predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 24445postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 24446compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 24447 24448LTCC='$LTCC' 24449LTCFLAGS='$LTCFLAGS' 24450compiler='$compiler_DEFAULT' 24451 24452# A function that is used when there is no print builtin or printf. 24453func_fallback_echo () 24454{ 24455 eval 'cat <<_LTECHO_EOF 24456\$1 24457_LTECHO_EOF' 24458} 24459 24460# Quote evaled strings. 24461for var in SHELL \ 24462ECHO \ 24463PATH_SEPARATOR \ 24464SED \ 24465GREP \ 24466EGREP \ 24467FGREP \ 24468LD \ 24469NM \ 24470LN_S \ 24471lt_SP2NL \ 24472lt_NL2SP \ 24473reload_flag \ 24474OBJDUMP \ 24475deplibs_check_method \ 24476file_magic_cmd \ 24477file_magic_glob \ 24478want_nocaseglob \ 24479DLLTOOL \ 24480sharedlib_from_linklib_cmd \ 24481AR \ 24482AR_FLAGS \ 24483archiver_list_spec \ 24484STRIP \ 24485RANLIB \ 24486CC \ 24487CFLAGS \ 24488compiler \ 24489lt_cv_sys_global_symbol_pipe \ 24490lt_cv_sys_global_symbol_to_cdecl \ 24491lt_cv_sys_global_symbol_to_c_name_address \ 24492lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 24493nm_file_list_spec \ 24494lt_prog_compiler_no_builtin_flag \ 24495lt_prog_compiler_pic \ 24496lt_prog_compiler_wl \ 24497lt_prog_compiler_static \ 24498lt_cv_prog_compiler_c_o \ 24499need_locks \ 24500MANIFEST_TOOL \ 24501DSYMUTIL \ 24502NMEDIT \ 24503LIPO \ 24504OTOOL \ 24505OTOOL64 \ 24506shrext_cmds \ 24507export_dynamic_flag_spec \ 24508whole_archive_flag_spec \ 24509compiler_needs_object \ 24510with_gnu_ld \ 24511allow_undefined_flag \ 24512no_undefined_flag \ 24513hardcode_libdir_flag_spec \ 24514hardcode_libdir_separator \ 24515exclude_expsyms \ 24516include_expsyms \ 24517file_list_spec \ 24518variables_saved_for_relink \ 24519libname_spec \ 24520library_names_spec \ 24521soname_spec \ 24522install_override_mode \ 24523finish_eval \ 24524old_striplib \ 24525striplib \ 24526compiler_lib_search_dirs \ 24527predep_objects \ 24528postdep_objects \ 24529predeps \ 24530postdeps \ 24531compiler_lib_search_path \ 24532LD_CXX \ 24533reload_flag_CXX \ 24534compiler_CXX \ 24535lt_prog_compiler_no_builtin_flag_CXX \ 24536lt_prog_compiler_pic_CXX \ 24537lt_prog_compiler_wl_CXX \ 24538lt_prog_compiler_static_CXX \ 24539lt_cv_prog_compiler_c_o_CXX \ 24540export_dynamic_flag_spec_CXX \ 24541whole_archive_flag_spec_CXX \ 24542compiler_needs_object_CXX \ 24543with_gnu_ld_CXX \ 24544allow_undefined_flag_CXX \ 24545no_undefined_flag_CXX \ 24546hardcode_libdir_flag_spec_CXX \ 24547hardcode_libdir_separator_CXX \ 24548exclude_expsyms_CXX \ 24549include_expsyms_CXX \ 24550file_list_spec_CXX \ 24551compiler_lib_search_dirs_CXX \ 24552predep_objects_CXX \ 24553postdep_objects_CXX \ 24554predeps_CXX \ 24555postdeps_CXX \ 24556compiler_lib_search_path_CXX; do 24557 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 24558 *[\\\\\\\`\\"\\\$]*) 24559 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 24560 ;; 24561 *) 24562 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 24563 ;; 24564 esac 24565done 24566 24567# Double-quote double-evaled strings. 24568for var in reload_cmds \ 24569old_postinstall_cmds \ 24570old_postuninstall_cmds \ 24571old_archive_cmds \ 24572extract_expsyms_cmds \ 24573old_archive_from_new_cmds \ 24574old_archive_from_expsyms_cmds \ 24575archive_cmds \ 24576archive_expsym_cmds \ 24577module_cmds \ 24578module_expsym_cmds \ 24579export_symbols_cmds \ 24580prelink_cmds \ 24581postlink_cmds \ 24582postinstall_cmds \ 24583postuninstall_cmds \ 24584finish_cmds \ 24585sys_lib_search_path_spec \ 24586sys_lib_dlsearch_path_spec \ 24587reload_cmds_CXX \ 24588old_archive_cmds_CXX \ 24589old_archive_from_new_cmds_CXX \ 24590old_archive_from_expsyms_cmds_CXX \ 24591archive_cmds_CXX \ 24592archive_expsym_cmds_CXX \ 24593module_cmds_CXX \ 24594module_expsym_cmds_CXX \ 24595export_symbols_cmds_CXX \ 24596prelink_cmds_CXX \ 24597postlink_cmds_CXX; do 24598 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 24599 *[\\\\\\\`\\"\\\$]*) 24600 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 24601 ;; 24602 *) 24603 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 24604 ;; 24605 esac 24606done 24607 24608ac_aux_dir='$ac_aux_dir' 24609xsi_shell='$xsi_shell' 24610lt_shell_append='$lt_shell_append' 24611 24612# See if we are running on zsh, and set the options which allow our 24613# commands through without removal of \ escapes INIT. 24614if test -n "\${ZSH_VERSION+set}" ; then 24615 setopt NO_GLOB_SUBST 24616fi 24617 24618 24619 PACKAGE='$PACKAGE' 24620 VERSION='$VERSION' 24621 TIMESTAMP='$TIMESTAMP' 24622 RM='$RM' 24623 ofile='$ofile' 24624 24625 24626 24627 24628 24629 24630_ACEOF 24631 24632cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24633 24634# Handling of arguments. 24635for ac_config_target in $ac_config_targets 24636do 24637 case $ac_config_target in 24638 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; 24639 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 24640 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 24641 "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile" ;; 24642 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; 24643 "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;; 24644 "conf/upsmon.conf.sample") CONFIG_FILES="$CONFIG_FILES conf/upsmon.conf.sample" ;; 24645 "conf/upssched.conf.sample") CONFIG_FILES="$CONFIG_FILES conf/upssched.conf.sample" ;; 24646 "data/html/header.html") CONFIG_FILES="$CONFIG_FILES data/html/header.html" ;; 24647 "data/html/Makefile") CONFIG_FILES="$CONFIG_FILES data/html/Makefile" ;; 24648 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; 24649 "data/driver.list") CONFIG_FILES="$CONFIG_FILES data/driver.list" ;; 24650 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; 24651 "docs/docinfo.xml") CONFIG_FILES="$CONFIG_FILES docs/docinfo.xml" ;; 24652 "docs/man/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;; 24653 "drivers/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/Makefile" ;; 24654 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 24655 "lib/libupsclient-config") CONFIG_FILES="$CONFIG_FILES lib/libupsclient-config" ;; 24656 "lib/libupsclient.pc") CONFIG_FILES="$CONFIG_FILES lib/libupsclient.pc" ;; 24657 "lib/libnutclient.pc") CONFIG_FILES="$CONFIG_FILES lib/libnutclient.pc" ;; 24658 "lib/libnutscan.pc") CONFIG_FILES="$CONFIG_FILES lib/libnutscan.pc" ;; 24659 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 24660 "scripts/Aix/nut-aix.spec") CONFIG_FILES="$CONFIG_FILES scripts/Aix/nut-aix.spec" ;; 24661 "scripts/augeas/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/augeas/Makefile" ;; 24662 "scripts/augeas/nutnutconf.aug") CONFIG_FILES="$CONFIG_FILES scripts/augeas/nutnutconf.aug" ;; 24663 "scripts/augeas/nutupsconf.aug") CONFIG_FILES="$CONFIG_FILES scripts/augeas/nutupsconf.aug" ;; 24664 "scripts/augeas/nutupsdconf.aug") CONFIG_FILES="$CONFIG_FILES scripts/augeas/nutupsdconf.aug" ;; 24665 "scripts/augeas/nutupsdusers.aug") CONFIG_FILES="$CONFIG_FILES scripts/augeas/nutupsdusers.aug" ;; 24666 "scripts/augeas/nutupsmonconf.aug") CONFIG_FILES="$CONFIG_FILES scripts/augeas/nutupsmonconf.aug" ;; 24667 "scripts/augeas/nutupsschedconf.aug") CONFIG_FILES="$CONFIG_FILES scripts/augeas/nutupsschedconf.aug" ;; 24668 "scripts/augeas/nuthostsconf.aug") CONFIG_FILES="$CONFIG_FILES scripts/augeas/nuthostsconf.aug" ;; 24669 "scripts/augeas/nutupssetconf.aug") CONFIG_FILES="$CONFIG_FILES scripts/augeas/nutupssetconf.aug" ;; 24670 "scripts/avahi/nut.service") CONFIG_FILES="$CONFIG_FILES scripts/avahi/nut.service" ;; 24671 "scripts/devd/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/devd/Makefile" ;; 24672 "scripts/devd/nut-usb.conf") CONFIG_FILES="$CONFIG_FILES scripts/devd/nut-usb.conf" ;; 24673 "scripts/hotplug/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/hotplug/Makefile" ;; 24674 "scripts/hotplug/libhidups") CONFIG_FILES="$CONFIG_FILES scripts/hotplug/libhidups" ;; 24675 "scripts/HP-UX/nut.psf") CONFIG_FILES="$CONFIG_FILES scripts/HP-UX/nut.psf" ;; 24676 "scripts/HP-UX/postinstall") CONFIG_FILES="$CONFIG_FILES scripts/HP-UX/postinstall" ;; 24677 "scripts/python/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/python/Makefile" ;; 24678 "scripts/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/systemd/Makefile" ;; 24679 "scripts/systemd/nut-driver.service") CONFIG_FILES="$CONFIG_FILES scripts/systemd/nut-driver.service" ;; 24680 "scripts/systemd/nut-monitor.service") CONFIG_FILES="$CONFIG_FILES scripts/systemd/nut-monitor.service" ;; 24681 "scripts/systemd/nut-server.service") CONFIG_FILES="$CONFIG_FILES scripts/systemd/nut-server.service" ;; 24682 "scripts/systemd/nutshutdown") CONFIG_FILES="$CONFIG_FILES scripts/systemd/nutshutdown" ;; 24683 "scripts/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Solaris/Makefile" ;; 24684 "scripts/Solaris/pkginfo") CONFIG_FILES="$CONFIG_FILES scripts/Solaris/pkginfo" ;; 24685 "scripts/Solaris/postinstall") CONFIG_FILES="$CONFIG_FILES scripts/Solaris/postinstall" ;; 24686 "scripts/Solaris/preremove") CONFIG_FILES="$CONFIG_FILES scripts/Solaris/preremove" ;; 24687 "scripts/Solaris/nut") CONFIG_FILES="$CONFIG_FILES scripts/Solaris/nut" ;; 24688 "scripts/udev/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/udev/Makefile" ;; 24689 "scripts/udev/nut-ipmipsu.rules") CONFIG_FILES="$CONFIG_FILES scripts/udev/nut-ipmipsu.rules" ;; 24690 "scripts/udev/nut-usbups.rules") CONFIG_FILES="$CONFIG_FILES scripts/udev/nut-usbups.rules" ;; 24691 "scripts/ufw/nut.ufw.profile") CONFIG_FILES="$CONFIG_FILES scripts/ufw/nut.ufw.profile" ;; 24692 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; 24693 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;; 24694 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 24695 "tools/nut-scanner/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nut-scanner/Makefile" ;; 24696 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 24697 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 24698 24699 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 24700 esac 24701done 24702 24703 24704# If the user did not use the arguments to specify the items to instantiate, 24705# then the envvar interface is used. Set only those that are not. 24706# We use the long form for the default assignment because of an extremely 24707# bizarre bug on SunOS 4.1.3. 24708if $ac_need_defaults; then 24709 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 24710 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 24711 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 24712fi 24713 24714# Have a temporary directory for convenience. Make it in the build tree 24715# simply because there is no reason against having it here, and in addition, 24716# creating and moving files from /tmp can sometimes cause problems. 24717# Hook for its removal unless debugging. 24718# Note that there is a small window in which the directory will not be cleaned: 24719# after its creation but before its name has been assigned to `$tmp'. 24720$debug || 24721{ 24722 tmp= ac_tmp= 24723 trap 'exit_status=$? 24724 : "${ac_tmp:=$tmp}" 24725 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 24726' 0 24727 trap 'as_fn_exit 1' 1 2 13 15 24728} 24729# Create a (secure) tmp directory for tmp files. 24730 24731{ 24732 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 24733 test -d "$tmp" 24734} || 24735{ 24736 tmp=./conf$$-$RANDOM 24737 (umask 077 && mkdir "$tmp") 24738} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 24739ac_tmp=$tmp 24740 24741# Set up the scripts for CONFIG_FILES section. 24742# No need to generate them if there are no CONFIG_FILES. 24743# This happens for instance with `./config.status config.h'. 24744if test -n "$CONFIG_FILES"; then 24745 24746 24747ac_cr=`echo X | tr X '\015'` 24748# On cygwin, bash can eat \r inside `` if the user requested igncr. 24749# But we know of no other shell where ac_cr would be empty at this 24750# point, so we can use a bashism as a fallback. 24751if test "x$ac_cr" = x; then 24752 eval ac_cr=\$\'\\r\' 24753fi 24754ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 24755if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 24756 ac_cs_awk_cr='\\r' 24757else 24758 ac_cs_awk_cr=$ac_cr 24759fi 24760 24761echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 24762_ACEOF 24763 24764 24765{ 24766 echo "cat >conf$$subs.awk <<_ACEOF" && 24767 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 24768 echo "_ACEOF" 24769} >conf$$subs.sh || 24770 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 24771ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 24772ac_delim='%!_!# ' 24773for ac_last_try in false false false false false :; do 24774 . ./conf$$subs.sh || 24775 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 24776 24777 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 24778 if test $ac_delim_n = $ac_delim_num; then 24779 break 24780 elif $ac_last_try; then 24781 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 24782 else 24783 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24784 fi 24785done 24786rm -f conf$$subs.sh 24787 24788cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24789cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 24790_ACEOF 24791sed -n ' 24792h 24793s/^/S["/; s/!.*/"]=/ 24794p 24795g 24796s/^[^!]*!// 24797:repl 24798t repl 24799s/'"$ac_delim"'$// 24800t delim 24801:nl 24802h 24803s/\(.\{148\}\)..*/\1/ 24804t more1 24805s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 24806p 24807n 24808b repl 24809:more1 24810s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 24811p 24812g 24813s/.\{148\}// 24814t nl 24815:delim 24816h 24817s/\(.\{148\}\)..*/\1/ 24818t more2 24819s/["\\]/\\&/g; s/^/"/; s/$/"/ 24820p 24821b 24822:more2 24823s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 24824p 24825g 24826s/.\{148\}// 24827t delim 24828' <conf$$subs.awk | sed ' 24829/^[^""]/{ 24830 N 24831 s/\n// 24832} 24833' >>$CONFIG_STATUS || ac_write_fail=1 24834rm -f conf$$subs.awk 24835cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24836_ACAWK 24837cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 24838 for (key in S) S_is_set[key] = 1 24839 FS = "" 24840 24841} 24842{ 24843 line = $ 0 24844 nfields = split(line, field, "@") 24845 substed = 0 24846 len = length(field[1]) 24847 for (i = 2; i < nfields; i++) { 24848 key = field[i] 24849 keylen = length(key) 24850 if (S_is_set[key]) { 24851 value = S[key] 24852 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 24853 len += length(value) + length(field[++i]) 24854 substed = 1 24855 } else 24856 len += 1 + keylen 24857 } 24858 24859 print line 24860} 24861 24862_ACAWK 24863_ACEOF 24864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24865if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 24866 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 24867else 24868 cat 24869fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 24870 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 24871_ACEOF 24872 24873# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 24874# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 24875# trailing colons and then remove the whole line if VPATH becomes empty 24876# (actually we leave an empty line to preserve line numbers). 24877if test "x$srcdir" = x.; then 24878 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 24879h 24880s/// 24881s/^/:/ 24882s/[ ]*$/:/ 24883s/:\$(srcdir):/:/g 24884s/:\${srcdir}:/:/g 24885s/:@srcdir@:/:/g 24886s/^:*// 24887s/:*$// 24888x 24889s/\(=[ ]*\).*/\1/ 24890G 24891s/\n// 24892s/^[^=]*=[ ]*$// 24893}' 24894fi 24895 24896cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24897fi # test -n "$CONFIG_FILES" 24898 24899# Set up the scripts for CONFIG_HEADERS section. 24900# No need to generate them if there are no CONFIG_HEADERS. 24901# This happens for instance with `./config.status Makefile'. 24902if test -n "$CONFIG_HEADERS"; then 24903cat >"$ac_tmp/defines.awk" <<\_ACAWK || 24904BEGIN { 24905_ACEOF 24906 24907# Transform confdefs.h into an awk script `defines.awk', embedded as 24908# here-document in config.status, that substitutes the proper values into 24909# config.h.in to produce config.h. 24910 24911# Create a delimiter string that does not exist in confdefs.h, to ease 24912# handling of long lines. 24913ac_delim='%!_!# ' 24914for ac_last_try in false false :; do 24915 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 24916 if test -z "$ac_tt"; then 24917 break 24918 elif $ac_last_try; then 24919 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 24920 else 24921 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24922 fi 24923done 24924 24925# For the awk script, D is an array of macro values keyed by name, 24926# likewise P contains macro parameters if any. Preserve backslash 24927# newline sequences. 24928 24929ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 24930sed -n ' 24931s/.\{148\}/&'"$ac_delim"'/g 24932t rset 24933:rset 24934s/^[ ]*#[ ]*define[ ][ ]*/ / 24935t def 24936d 24937:def 24938s/\\$// 24939t bsnl 24940s/["\\]/\\&/g 24941s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 24942D["\1"]=" \3"/p 24943s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 24944d 24945:bsnl 24946s/["\\]/\\&/g 24947s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 24948D["\1"]=" \3\\\\\\n"\\/p 24949t cont 24950s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 24951t cont 24952d 24953:cont 24954n 24955s/.\{148\}/&'"$ac_delim"'/g 24956t clear 24957:clear 24958s/\\$// 24959t bsnlc 24960s/["\\]/\\&/g; s/^/"/; s/$/"/p 24961d 24962:bsnlc 24963s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 24964b cont 24965' <confdefs.h | sed ' 24966s/'"$ac_delim"'/"\\\ 24967"/g' >>$CONFIG_STATUS || ac_write_fail=1 24968 24969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24970 for (key in D) D_is_set[key] = 1 24971 FS = "" 24972} 24973/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 24974 line = \$ 0 24975 split(line, arg, " ") 24976 if (arg[1] == "#") { 24977 defundef = arg[2] 24978 mac1 = arg[3] 24979 } else { 24980 defundef = substr(arg[1], 2) 24981 mac1 = arg[2] 24982 } 24983 split(mac1, mac2, "(") #) 24984 macro = mac2[1] 24985 prefix = substr(line, 1, index(line, defundef) - 1) 24986 if (D_is_set[macro]) { 24987 # Preserve the white space surrounding the "#". 24988 print prefix "define", macro P[macro] D[macro] 24989 next 24990 } else { 24991 # Replace #undef with comments. This is necessary, for example, 24992 # in the case of _POSIX_SOURCE, which is predefined and required 24993 # on some systems where configure will not decide to define it. 24994 if (defundef == "undef") { 24995 print "/*", prefix defundef, macro, "*/" 24996 next 24997 } 24998 } 24999} 25000{ print } 25001_ACAWK 25002_ACEOF 25003cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25004 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 25005fi # test -n "$CONFIG_HEADERS" 25006 25007 25008eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 25009shift 25010for ac_tag 25011do 25012 case $ac_tag in 25013 :[FHLC]) ac_mode=$ac_tag; continue;; 25014 esac 25015 case $ac_mode$ac_tag in 25016 :[FHL]*:*);; 25017 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 25018 :[FH]-) ac_tag=-:-;; 25019 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 25020 esac 25021 ac_save_IFS=$IFS 25022 IFS=: 25023 set x $ac_tag 25024 IFS=$ac_save_IFS 25025 shift 25026 ac_file=$1 25027 shift 25028 25029 case $ac_mode in 25030 :L) ac_source=$1;; 25031 :[FH]) 25032 ac_file_inputs= 25033 for ac_f 25034 do 25035 case $ac_f in 25036 -) ac_f="$ac_tmp/stdin";; 25037 *) # Look for the file first in the build tree, then in the source tree 25038 # (if the path is not absolute). The absolute path cannot be DOS-style, 25039 # because $ac_f cannot contain `:'. 25040 test -f "$ac_f" || 25041 case $ac_f in 25042 [\\/$]*) false;; 25043 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 25044 esac || 25045 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 25046 esac 25047 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 25048 as_fn_append ac_file_inputs " '$ac_f'" 25049 done 25050 25051 # Let's still pretend it is `configure' which instantiates (i.e., don't 25052 # use $as_me), people would be surprised to read: 25053 # /* config.h. Generated by config.status. */ 25054 configure_input='Generated from '` 25055 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 25056 `' by configure.' 25057 if test x"$ac_file" != x-; then 25058 configure_input="$ac_file. $configure_input" 25059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 25060$as_echo "$as_me: creating $ac_file" >&6;} 25061 fi 25062 # Neutralize special characters interpreted by sed in replacement strings. 25063 case $configure_input in #( 25064 *\&* | *\|* | *\\* ) 25065 ac_sed_conf_input=`$as_echo "$configure_input" | 25066 sed 's/[\\\\&|]/\\\\&/g'`;; #( 25067 *) ac_sed_conf_input=$configure_input;; 25068 esac 25069 25070 case $ac_tag in 25071 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 25072 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 25073 esac 25074 ;; 25075 esac 25076 25077 ac_dir=`$as_dirname -- "$ac_file" || 25078$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25079 X"$ac_file" : 'X\(//\)[^/]' \| \ 25080 X"$ac_file" : 'X\(//\)$' \| \ 25081 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 25082$as_echo X"$ac_file" | 25083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25084 s//\1/ 25085 q 25086 } 25087 /^X\(\/\/\)[^/].*/{ 25088 s//\1/ 25089 q 25090 } 25091 /^X\(\/\/\)$/{ 25092 s//\1/ 25093 q 25094 } 25095 /^X\(\/\).*/{ 25096 s//\1/ 25097 q 25098 } 25099 s/.*/./; q'` 25100 as_dir="$ac_dir"; as_fn_mkdir_p 25101 ac_builddir=. 25102 25103case "$ac_dir" in 25104.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 25105*) 25106 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 25107 # A ".." for each directory in $ac_dir_suffix. 25108 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 25109 case $ac_top_builddir_sub in 25110 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 25111 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 25112 esac ;; 25113esac 25114ac_abs_top_builddir=$ac_pwd 25115ac_abs_builddir=$ac_pwd$ac_dir_suffix 25116# for backward compatibility: 25117ac_top_builddir=$ac_top_build_prefix 25118 25119case $srcdir in 25120 .) # We are building in place. 25121 ac_srcdir=. 25122 ac_top_srcdir=$ac_top_builddir_sub 25123 ac_abs_top_srcdir=$ac_pwd ;; 25124 [\\/]* | ?:[\\/]* ) # Absolute name. 25125 ac_srcdir=$srcdir$ac_dir_suffix; 25126 ac_top_srcdir=$srcdir 25127 ac_abs_top_srcdir=$srcdir ;; 25128 *) # Relative name. 25129 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 25130 ac_top_srcdir=$ac_top_build_prefix$srcdir 25131 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 25132esac 25133ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 25134 25135 25136 case $ac_mode in 25137 :F) 25138 # 25139 # CONFIG_FILE 25140 # 25141 25142 case $INSTALL in 25143 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 25144 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 25145 esac 25146 ac_MKDIR_P=$MKDIR_P 25147 case $MKDIR_P in 25148 [\\/$]* | ?:[\\/]* ) ;; 25149 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 25150 esac 25151_ACEOF 25152 25153cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25154# If the template does not know about datarootdir, expand it. 25155# FIXME: This hack should be removed a few years after 2.60. 25156ac_datarootdir_hack=; ac_datarootdir_seen= 25157ac_sed_dataroot=' 25158/datarootdir/ { 25159 p 25160 q 25161} 25162/@datadir@/p 25163/@docdir@/p 25164/@infodir@/p 25165/@localedir@/p 25166/@mandir@/p' 25167case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 25168*datarootdir*) ac_datarootdir_seen=yes;; 25169*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 25170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 25171$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 25172_ACEOF 25173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25174 ac_datarootdir_hack=' 25175 s&@datadir@&$datadir&g 25176 s&@docdir@&$docdir&g 25177 s&@infodir@&$infodir&g 25178 s&@localedir@&$localedir&g 25179 s&@mandir@&$mandir&g 25180 s&\\\${datarootdir}&$datarootdir&g' ;; 25181esac 25182_ACEOF 25183 25184# Neutralize VPATH when `$srcdir' = `.'. 25185# Shell code in configure.ac might set extrasub. 25186# FIXME: do we really want to maintain this feature? 25187cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25188ac_sed_extra="$ac_vpsub 25189$extrasub 25190_ACEOF 25191cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25192:t 25193/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 25194s|@configure_input@|$ac_sed_conf_input|;t t 25195s&@top_builddir@&$ac_top_builddir_sub&;t t 25196s&@top_build_prefix@&$ac_top_build_prefix&;t t 25197s&@srcdir@&$ac_srcdir&;t t 25198s&@abs_srcdir@&$ac_abs_srcdir&;t t 25199s&@top_srcdir@&$ac_top_srcdir&;t t 25200s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 25201s&@builddir@&$ac_builddir&;t t 25202s&@abs_builddir@&$ac_abs_builddir&;t t 25203s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 25204s&@INSTALL@&$ac_INSTALL&;t t 25205s&@MKDIR_P@&$ac_MKDIR_P&;t t 25206$ac_datarootdir_hack 25207" 25208eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 25209 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25210 25211test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 25212 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 25213 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 25214 "$ac_tmp/out"`; test -z "$ac_out"; } && 25215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 25216which seems to be undefined. Please make sure it is defined" >&5 25217$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 25218which seems to be undefined. Please make sure it is defined" >&2;} 25219 25220 rm -f "$ac_tmp/stdin" 25221 case $ac_file in 25222 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 25223 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 25224 esac \ 25225 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25226 ;; 25227 :H) 25228 # 25229 # CONFIG_HEADER 25230 # 25231 if test x"$ac_file" != x-; then 25232 { 25233 $as_echo "/* $configure_input */" \ 25234 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 25235 } >"$ac_tmp/config.h" \ 25236 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25237 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 25238 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 25239$as_echo "$as_me: $ac_file is unchanged" >&6;} 25240 else 25241 rm -f "$ac_file" 25242 mv "$ac_tmp/config.h" "$ac_file" \ 25243 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25244 fi 25245 else 25246 $as_echo "/* $configure_input */" \ 25247 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 25248 || as_fn_error $? "could not create -" "$LINENO" 5 25249 fi 25250# Compute "$ac_file"'s index in $config_headers. 25251_am_arg="$ac_file" 25252_am_stamp_count=1 25253for _am_header in $config_headers :; do 25254 case $_am_header in 25255 $_am_arg | $_am_arg:* ) 25256 break ;; 25257 * ) 25258 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 25259 esac 25260done 25261echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 25262$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25263 X"$_am_arg" : 'X\(//\)[^/]' \| \ 25264 X"$_am_arg" : 'X\(//\)$' \| \ 25265 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 25266$as_echo X"$_am_arg" | 25267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25268 s//\1/ 25269 q 25270 } 25271 /^X\(\/\/\)[^/].*/{ 25272 s//\1/ 25273 q 25274 } 25275 /^X\(\/\/\)$/{ 25276 s//\1/ 25277 q 25278 } 25279 /^X\(\/\).*/{ 25280 s//\1/ 25281 q 25282 } 25283 s/.*/./; q'`/stamp-h$_am_stamp_count 25284 ;; 25285 25286 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 25287$as_echo "$as_me: executing $ac_file commands" >&6;} 25288 ;; 25289 esac 25290 25291 25292 case $ac_file$ac_mode in 25293 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 25294 # Older Autoconf quotes --file arguments for eval, but not when files 25295 # are listed without --file. Let's play safe and only enable the eval 25296 # if we detect the quoting. 25297 case $CONFIG_FILES in 25298 *\'*) eval set x "$CONFIG_FILES" ;; 25299 *) set x $CONFIG_FILES ;; 25300 esac 25301 shift 25302 for mf 25303 do 25304 # Strip MF so we end up with the name of the file. 25305 mf=`echo "$mf" | sed -e 's/:.*$//'` 25306 # Check whether this is an Automake generated Makefile or not. 25307 # We used to match only the files named 'Makefile.in', but 25308 # some people rename them; so instead we look at the file content. 25309 # Grep'ing the first line is not enough: some people post-process 25310 # each Makefile.in and add a new line on top of each file to say so. 25311 # Grep'ing the whole file is not good either: AIX grep has a line 25312 # limit of 2048, but all sed's we know have understand at least 4000. 25313 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 25314 dirpart=`$as_dirname -- "$mf" || 25315$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25316 X"$mf" : 'X\(//\)[^/]' \| \ 25317 X"$mf" : 'X\(//\)$' \| \ 25318 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 25319$as_echo X"$mf" | 25320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25321 s//\1/ 25322 q 25323 } 25324 /^X\(\/\/\)[^/].*/{ 25325 s//\1/ 25326 q 25327 } 25328 /^X\(\/\/\)$/{ 25329 s//\1/ 25330 q 25331 } 25332 /^X\(\/\).*/{ 25333 s//\1/ 25334 q 25335 } 25336 s/.*/./; q'` 25337 else 25338 continue 25339 fi 25340 # Extract the definition of DEPDIR, am__include, and am__quote 25341 # from the Makefile without running 'make'. 25342 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 25343 test -z "$DEPDIR" && continue 25344 am__include=`sed -n 's/^am__include = //p' < "$mf"` 25345 test -z "$am__include" && continue 25346 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 25347 # Find all dependency output files, they are included files with 25348 # $(DEPDIR) in their names. We invoke sed twice because it is the 25349 # simplest approach to changing $(DEPDIR) to its actual value in the 25350 # expansion. 25351 for file in `sed -n " 25352 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 25353 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 25354 # Make sure the directory exists. 25355 test -f "$dirpart/$file" && continue 25356 fdir=`$as_dirname -- "$file" || 25357$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25358 X"$file" : 'X\(//\)[^/]' \| \ 25359 X"$file" : 'X\(//\)$' \| \ 25360 X"$file" : 'X\(/\)' \| . 2>/dev/null || 25361$as_echo X"$file" | 25362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25363 s//\1/ 25364 q 25365 } 25366 /^X\(\/\/\)[^/].*/{ 25367 s//\1/ 25368 q 25369 } 25370 /^X\(\/\/\)$/{ 25371 s//\1/ 25372 q 25373 } 25374 /^X\(\/\).*/{ 25375 s//\1/ 25376 q 25377 } 25378 s/.*/./; q'` 25379 as_dir=$dirpart/$fdir; as_fn_mkdir_p 25380 # echo "creating $dirpart/$file" 25381 echo '# dummy' > "$dirpart/$file" 25382 done 25383 done 25384} 25385 ;; 25386 "libtool":C) 25387 25388 # See if we are running on zsh, and set the options which allow our 25389 # commands through without removal of \ escapes. 25390 if test -n "${ZSH_VERSION+set}" ; then 25391 setopt NO_GLOB_SUBST 25392 fi 25393 25394 cfgfile="${ofile}T" 25395 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 25396 $RM "$cfgfile" 25397 25398 cat <<_LT_EOF >> "$cfgfile" 25399#! $SHELL 25400 25401# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 25402# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 25403# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 25404# NOTE: Changes made to this file will be lost: look at ltmain.sh. 25405# 25406# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 25407# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 25408# Foundation, Inc. 25409# Written by Gordon Matzigkeit, 1996 25410# 25411# This file is part of GNU Libtool. 25412# 25413# GNU Libtool is free software; you can redistribute it and/or 25414# modify it under the terms of the GNU General Public License as 25415# published by the Free Software Foundation; either version 2 of 25416# the License, or (at your option) any later version. 25417# 25418# As a special exception to the GNU General Public License, 25419# if you distribute this file as part of a program or library that 25420# is built using GNU Libtool, you may include this file under the 25421# same distribution terms that you use for the rest of that program. 25422# 25423# GNU Libtool is distributed in the hope that it will be useful, 25424# but WITHOUT ANY WARRANTY; without even the implied warranty of 25425# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25426# GNU General Public License for more details. 25427# 25428# You should have received a copy of the GNU General Public License 25429# along with GNU Libtool; see the file COPYING. If not, a copy 25430# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 25431# obtained by writing to the Free Software Foundation, Inc., 25432# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 25433 25434 25435# The names of the tagged configurations supported by this script. 25436available_tags="CXX " 25437 25438# ### BEGIN LIBTOOL CONFIG 25439 25440# Which release of libtool.m4 was used? 25441macro_version=$macro_version 25442macro_revision=$macro_revision 25443 25444# Whether or not to build shared libraries. 25445build_libtool_libs=$enable_shared 25446 25447# Whether or not to build static libraries. 25448build_old_libs=$enable_static 25449 25450# What type of objects to build. 25451pic_mode=$pic_mode 25452 25453# Whether or not to optimize for fast installation. 25454fast_install=$enable_fast_install 25455 25456# Shell to use when invoking shell scripts. 25457SHELL=$lt_SHELL 25458 25459# An echo program that protects backslashes. 25460ECHO=$lt_ECHO 25461 25462# The PATH separator for the build system. 25463PATH_SEPARATOR=$lt_PATH_SEPARATOR 25464 25465# The host system. 25466host_alias=$host_alias 25467host=$host 25468host_os=$host_os 25469 25470# The build system. 25471build_alias=$build_alias 25472build=$build 25473build_os=$build_os 25474 25475# A sed program that does not truncate output. 25476SED=$lt_SED 25477 25478# Sed that helps us avoid accidentally triggering echo(1) options like -n. 25479Xsed="\$SED -e 1s/^X//" 25480 25481# A grep program that handles long lines. 25482GREP=$lt_GREP 25483 25484# An ERE matcher. 25485EGREP=$lt_EGREP 25486 25487# A literal string matcher. 25488FGREP=$lt_FGREP 25489 25490# A BSD- or MS-compatible name lister. 25491NM=$lt_NM 25492 25493# Whether we need soft or hard links. 25494LN_S=$lt_LN_S 25495 25496# What is the maximum length of a command? 25497max_cmd_len=$max_cmd_len 25498 25499# Object file suffix (normally "o"). 25500objext=$ac_objext 25501 25502# Executable file suffix (normally ""). 25503exeext=$exeext 25504 25505# whether the shell understands "unset". 25506lt_unset=$lt_unset 25507 25508# turn spaces into newlines. 25509SP2NL=$lt_lt_SP2NL 25510 25511# turn newlines into spaces. 25512NL2SP=$lt_lt_NL2SP 25513 25514# convert \$build file names to \$host format. 25515to_host_file_cmd=$lt_cv_to_host_file_cmd 25516 25517# convert \$build files to toolchain format. 25518to_tool_file_cmd=$lt_cv_to_tool_file_cmd 25519 25520# An object symbol dumper. 25521OBJDUMP=$lt_OBJDUMP 25522 25523# Method to check whether dependent libraries are shared objects. 25524deplibs_check_method=$lt_deplibs_check_method 25525 25526# Command to use when deplibs_check_method = "file_magic". 25527file_magic_cmd=$lt_file_magic_cmd 25528 25529# How to find potential files when deplibs_check_method = "file_magic". 25530file_magic_glob=$lt_file_magic_glob 25531 25532# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 25533want_nocaseglob=$lt_want_nocaseglob 25534 25535# DLL creation program. 25536DLLTOOL=$lt_DLLTOOL 25537 25538# Command to associate shared and link libraries. 25539sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 25540 25541# The archiver. 25542AR=$lt_AR 25543 25544# Flags to create an archive. 25545AR_FLAGS=$lt_AR_FLAGS 25546 25547# How to feed a file listing to the archiver. 25548archiver_list_spec=$lt_archiver_list_spec 25549 25550# A symbol stripping program. 25551STRIP=$lt_STRIP 25552 25553# Commands used to install an old-style archive. 25554RANLIB=$lt_RANLIB 25555old_postinstall_cmds=$lt_old_postinstall_cmds 25556old_postuninstall_cmds=$lt_old_postuninstall_cmds 25557 25558# Whether to use a lock for old archive extraction. 25559lock_old_archive_extraction=$lock_old_archive_extraction 25560 25561# A C compiler. 25562LTCC=$lt_CC 25563 25564# LTCC compiler flags. 25565LTCFLAGS=$lt_CFLAGS 25566 25567# Take the output of nm and produce a listing of raw symbols and C names. 25568global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 25569 25570# Transform the output of nm in a proper C declaration. 25571global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 25572 25573# Transform the output of nm in a C name address pair. 25574global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 25575 25576# Transform the output of nm in a C name address pair when lib prefix is needed. 25577global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 25578 25579# Specify filename containing input files for \$NM. 25580nm_file_list_spec=$lt_nm_file_list_spec 25581 25582# The root where to search for dependent libraries,and in which our libraries should be installed. 25583lt_sysroot=$lt_sysroot 25584 25585# The name of the directory that contains temporary libtool files. 25586objdir=$objdir 25587 25588# Used to examine libraries when file_magic_cmd begins with "file". 25589MAGIC_CMD=$MAGIC_CMD 25590 25591# Must we lock files when doing compilation? 25592need_locks=$lt_need_locks 25593 25594# Manifest tool. 25595MANIFEST_TOOL=$lt_MANIFEST_TOOL 25596 25597# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 25598DSYMUTIL=$lt_DSYMUTIL 25599 25600# Tool to change global to local symbols on Mac OS X. 25601NMEDIT=$lt_NMEDIT 25602 25603# Tool to manipulate fat objects and archives on Mac OS X. 25604LIPO=$lt_LIPO 25605 25606# ldd/readelf like tool for Mach-O binaries on Mac OS X. 25607OTOOL=$lt_OTOOL 25608 25609# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 25610OTOOL64=$lt_OTOOL64 25611 25612# Old archive suffix (normally "a"). 25613libext=$libext 25614 25615# Shared library suffix (normally ".so"). 25616shrext_cmds=$lt_shrext_cmds 25617 25618# The commands to extract the exported symbol list from a shared archive. 25619extract_expsyms_cmds=$lt_extract_expsyms_cmds 25620 25621# Variables whose values should be saved in libtool wrapper scripts and 25622# restored at link time. 25623variables_saved_for_relink=$lt_variables_saved_for_relink 25624 25625# Do we need the "lib" prefix for modules? 25626need_lib_prefix=$need_lib_prefix 25627 25628# Do we need a version for libraries? 25629need_version=$need_version 25630 25631# Library versioning type. 25632version_type=$version_type 25633 25634# Shared library runtime path variable. 25635runpath_var=$runpath_var 25636 25637# Shared library path variable. 25638shlibpath_var=$shlibpath_var 25639 25640# Is shlibpath searched before the hard-coded library search path? 25641shlibpath_overrides_runpath=$shlibpath_overrides_runpath 25642 25643# Format of library name prefix. 25644libname_spec=$lt_libname_spec 25645 25646# List of archive names. First name is the real one, the rest are links. 25647# The last name is the one that the linker finds with -lNAME 25648library_names_spec=$lt_library_names_spec 25649 25650# The coded name of the library, if different from the real name. 25651soname_spec=$lt_soname_spec 25652 25653# Permission mode override for installation of shared libraries. 25654install_override_mode=$lt_install_override_mode 25655 25656# Command to use after installation of a shared archive. 25657postinstall_cmds=$lt_postinstall_cmds 25658 25659# Command to use after uninstallation of a shared archive. 25660postuninstall_cmds=$lt_postuninstall_cmds 25661 25662# Commands used to finish a libtool library installation in a directory. 25663finish_cmds=$lt_finish_cmds 25664 25665# As "finish_cmds", except a single script fragment to be evaled but 25666# not shown. 25667finish_eval=$lt_finish_eval 25668 25669# Whether we should hardcode library paths into libraries. 25670hardcode_into_libs=$hardcode_into_libs 25671 25672# Compile-time system search path for libraries. 25673sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 25674 25675# Run-time system search path for libraries. 25676sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 25677 25678# Whether dlopen is supported. 25679dlopen_support=$enable_dlopen 25680 25681# Whether dlopen of programs is supported. 25682dlopen_self=$enable_dlopen_self 25683 25684# Whether dlopen of statically linked programs is supported. 25685dlopen_self_static=$enable_dlopen_self_static 25686 25687# Commands to strip libraries. 25688old_striplib=$lt_old_striplib 25689striplib=$lt_striplib 25690 25691 25692# The linker used to build libraries. 25693LD=$lt_LD 25694 25695# How to create reloadable object files. 25696reload_flag=$lt_reload_flag 25697reload_cmds=$lt_reload_cmds 25698 25699# Commands used to build an old-style archive. 25700old_archive_cmds=$lt_old_archive_cmds 25701 25702# A language specific compiler. 25703CC=$lt_compiler 25704 25705# Is the compiler the GNU compiler? 25706with_gcc=$GCC 25707 25708# Compiler flag to turn off builtin functions. 25709no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 25710 25711# Additional compiler flags for building library objects. 25712pic_flag=$lt_lt_prog_compiler_pic 25713 25714# How to pass a linker flag through the compiler. 25715wl=$lt_lt_prog_compiler_wl 25716 25717# Compiler flag to prevent dynamic linking. 25718link_static_flag=$lt_lt_prog_compiler_static 25719 25720# Does compiler simultaneously support -c and -o options? 25721compiler_c_o=$lt_lt_cv_prog_compiler_c_o 25722 25723# Whether or not to add -lc for building shared libraries. 25724build_libtool_need_lc=$archive_cmds_need_lc 25725 25726# Whether or not to disallow shared libs when runtime libs are static. 25727allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 25728 25729# Compiler flag to allow reflexive dlopens. 25730export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 25731 25732# Compiler flag to generate shared objects directly from archives. 25733whole_archive_flag_spec=$lt_whole_archive_flag_spec 25734 25735# Whether the compiler copes with passing no objects directly. 25736compiler_needs_object=$lt_compiler_needs_object 25737 25738# Create an old-style archive from a shared archive. 25739old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 25740 25741# Create a temporary old-style archive to link instead of a shared archive. 25742old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 25743 25744# Commands used to build a shared archive. 25745archive_cmds=$lt_archive_cmds 25746archive_expsym_cmds=$lt_archive_expsym_cmds 25747 25748# Commands used to build a loadable module if different from building 25749# a shared archive. 25750module_cmds=$lt_module_cmds 25751module_expsym_cmds=$lt_module_expsym_cmds 25752 25753# Whether we are building with GNU ld or not. 25754with_gnu_ld=$lt_with_gnu_ld 25755 25756# Flag that allows shared libraries with undefined symbols to be built. 25757allow_undefined_flag=$lt_allow_undefined_flag 25758 25759# Flag that enforces no undefined symbols. 25760no_undefined_flag=$lt_no_undefined_flag 25761 25762# Flag to hardcode \$libdir into a binary during linking. 25763# This must work even if \$libdir does not exist 25764hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 25765 25766# Whether we need a single "-rpath" flag with a separated argument. 25767hardcode_libdir_separator=$lt_hardcode_libdir_separator 25768 25769# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 25770# DIR into the resulting binary. 25771hardcode_direct=$hardcode_direct 25772 25773# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 25774# DIR into the resulting binary and the resulting library dependency is 25775# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 25776# library is relocated. 25777hardcode_direct_absolute=$hardcode_direct_absolute 25778 25779# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 25780# into the resulting binary. 25781hardcode_minus_L=$hardcode_minus_L 25782 25783# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 25784# into the resulting binary. 25785hardcode_shlibpath_var=$hardcode_shlibpath_var 25786 25787# Set to "yes" if building a shared library automatically hardcodes DIR 25788# into the library and all subsequent libraries and executables linked 25789# against it. 25790hardcode_automatic=$hardcode_automatic 25791 25792# Set to yes if linker adds runtime paths of dependent libraries 25793# to runtime path list. 25794inherit_rpath=$inherit_rpath 25795 25796# Whether libtool must link a program against all its dependency libraries. 25797link_all_deplibs=$link_all_deplibs 25798 25799# Set to "yes" if exported symbols are required. 25800always_export_symbols=$always_export_symbols 25801 25802# The commands to list exported symbols. 25803export_symbols_cmds=$lt_export_symbols_cmds 25804 25805# Symbols that should not be listed in the preloaded symbols. 25806exclude_expsyms=$lt_exclude_expsyms 25807 25808# Symbols that must always be exported. 25809include_expsyms=$lt_include_expsyms 25810 25811# Commands necessary for linking programs (against libraries) with templates. 25812prelink_cmds=$lt_prelink_cmds 25813 25814# Commands necessary for finishing linking programs. 25815postlink_cmds=$lt_postlink_cmds 25816 25817# Specify filename containing input files. 25818file_list_spec=$lt_file_list_spec 25819 25820# How to hardcode a shared library path into an executable. 25821hardcode_action=$hardcode_action 25822 25823# The directories searched by this compiler when creating a shared library. 25824compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 25825 25826# Dependencies to place before and after the objects being linked to 25827# create a shared library. 25828predep_objects=$lt_predep_objects 25829postdep_objects=$lt_postdep_objects 25830predeps=$lt_predeps 25831postdeps=$lt_postdeps 25832 25833# The library search path used internally by the compiler when linking 25834# a shared library. 25835compiler_lib_search_path=$lt_compiler_lib_search_path 25836 25837# ### END LIBTOOL CONFIG 25838 25839_LT_EOF 25840 25841 case $host_os in 25842 aix3*) 25843 cat <<\_LT_EOF >> "$cfgfile" 25844# AIX sometimes has problems with the GCC collect2 program. For some 25845# reason, if we set the COLLECT_NAMES environment variable, the problems 25846# vanish in a puff of smoke. 25847if test "X${COLLECT_NAMES+set}" != Xset; then 25848 COLLECT_NAMES= 25849 export COLLECT_NAMES 25850fi 25851_LT_EOF 25852 ;; 25853 esac 25854 25855 25856ltmain="$ac_aux_dir/ltmain.sh" 25857 25858 25859 # We use sed instead of cat because bash on DJGPP gets confused if 25860 # if finds mixed CR/LF and LF-only lines. Since sed operates in 25861 # text mode, it properly converts lines to CR/LF. This bash problem 25862 # is reportedly fixed, but why not run on old versions too? 25863 sed '$q' "$ltmain" >> "$cfgfile" \ 25864 || (rm -f "$cfgfile"; exit 1) 25865 25866 if test x"$xsi_shell" = xyes; then 25867 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 25868func_dirname ()\ 25869{\ 25870\ case ${1} in\ 25871\ */*) func_dirname_result="${1%/*}${2}" ;;\ 25872\ * ) func_dirname_result="${3}" ;;\ 25873\ esac\ 25874} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 25875 && mv -f "$cfgfile.tmp" "$cfgfile" \ 25876 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 25877test 0 -eq $? || _lt_function_replace_fail=: 25878 25879 25880 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 25881func_basename ()\ 25882{\ 25883\ func_basename_result="${1##*/}"\ 25884} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 25885 && mv -f "$cfgfile.tmp" "$cfgfile" \ 25886 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 25887test 0 -eq $? || _lt_function_replace_fail=: 25888 25889 25890 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 25891func_dirname_and_basename ()\ 25892{\ 25893\ case ${1} in\ 25894\ */*) func_dirname_result="${1%/*}${2}" ;;\ 25895\ * ) func_dirname_result="${3}" ;;\ 25896\ esac\ 25897\ func_basename_result="${1##*/}"\ 25898} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 25899 && mv -f "$cfgfile.tmp" "$cfgfile" \ 25900 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 25901test 0 -eq $? || _lt_function_replace_fail=: 25902 25903 25904 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 25905func_stripname ()\ 25906{\ 25907\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 25908\ # positional parameters, so assign one to ordinary parameter first.\ 25909\ func_stripname_result=${3}\ 25910\ func_stripname_result=${func_stripname_result#"${1}"}\ 25911\ func_stripname_result=${func_stripname_result%"${2}"}\ 25912} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 25913 && mv -f "$cfgfile.tmp" "$cfgfile" \ 25914 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 25915test 0 -eq $? || _lt_function_replace_fail=: 25916 25917 25918 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 25919func_split_long_opt ()\ 25920{\ 25921\ func_split_long_opt_name=${1%%=*}\ 25922\ func_split_long_opt_arg=${1#*=}\ 25923} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 25924 && mv -f "$cfgfile.tmp" "$cfgfile" \ 25925 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 25926test 0 -eq $? || _lt_function_replace_fail=: 25927 25928 25929 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 25930func_split_short_opt ()\ 25931{\ 25932\ func_split_short_opt_arg=${1#??}\ 25933\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 25934} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 25935 && mv -f "$cfgfile.tmp" "$cfgfile" \ 25936 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 25937test 0 -eq $? || _lt_function_replace_fail=: 25938 25939 25940 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 25941func_lo2o ()\ 25942{\ 25943\ case ${1} in\ 25944\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 25945\ *) func_lo2o_result=${1} ;;\ 25946\ esac\ 25947} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 25948 && mv -f "$cfgfile.tmp" "$cfgfile" \ 25949 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 25950test 0 -eq $? || _lt_function_replace_fail=: 25951 25952 25953 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 25954func_xform ()\ 25955{\ 25956 func_xform_result=${1%.*}.lo\ 25957} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 25958 && mv -f "$cfgfile.tmp" "$cfgfile" \ 25959 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 25960test 0 -eq $? || _lt_function_replace_fail=: 25961 25962 25963 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 25964func_arith ()\ 25965{\ 25966 func_arith_result=$(( $* ))\ 25967} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 25968 && mv -f "$cfgfile.tmp" "$cfgfile" \ 25969 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 25970test 0 -eq $? || _lt_function_replace_fail=: 25971 25972 25973 sed -e '/^func_len ()$/,/^} # func_len /c\ 25974func_len ()\ 25975{\ 25976 func_len_result=${#1}\ 25977} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 25978 && mv -f "$cfgfile.tmp" "$cfgfile" \ 25979 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 25980test 0 -eq $? || _lt_function_replace_fail=: 25981 25982fi 25983 25984if test x"$lt_shell_append" = xyes; then 25985 sed -e '/^func_append ()$/,/^} # func_append /c\ 25986func_append ()\ 25987{\ 25988 eval "${1}+=\\${2}"\ 25989} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 25990 && mv -f "$cfgfile.tmp" "$cfgfile" \ 25991 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 25992test 0 -eq $? || _lt_function_replace_fail=: 25993 25994 25995 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 25996func_append_quoted ()\ 25997{\ 25998\ func_quote_for_eval "${2}"\ 25999\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 26000} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 26001 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26002 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26003test 0 -eq $? || _lt_function_replace_fail=: 26004 26005 26006 # Save a `func_append' function call where possible by direct use of '+=' 26007 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 26008 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26009 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26010 test 0 -eq $? || _lt_function_replace_fail=: 26011else 26012 # Save a `func_append' function call even when '+=' is not available 26013 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 26014 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26015 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26016 test 0 -eq $? || _lt_function_replace_fail=: 26017fi 26018 26019if test x"$_lt_function_replace_fail" = x":"; then 26020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 26021$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 26022fi 26023 26024 26025 mv -f "$cfgfile" "$ofile" || 26026 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 26027 chmod +x "$ofile" 26028 26029 26030 cat <<_LT_EOF >> "$ofile" 26031 26032# ### BEGIN LIBTOOL TAG CONFIG: CXX 26033 26034# The linker used to build libraries. 26035LD=$lt_LD_CXX 26036 26037# How to create reloadable object files. 26038reload_flag=$lt_reload_flag_CXX 26039reload_cmds=$lt_reload_cmds_CXX 26040 26041# Commands used to build an old-style archive. 26042old_archive_cmds=$lt_old_archive_cmds_CXX 26043 26044# A language specific compiler. 26045CC=$lt_compiler_CXX 26046 26047# Is the compiler the GNU compiler? 26048with_gcc=$GCC_CXX 26049 26050# Compiler flag to turn off builtin functions. 26051no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 26052 26053# Additional compiler flags for building library objects. 26054pic_flag=$lt_lt_prog_compiler_pic_CXX 26055 26056# How to pass a linker flag through the compiler. 26057wl=$lt_lt_prog_compiler_wl_CXX 26058 26059# Compiler flag to prevent dynamic linking. 26060link_static_flag=$lt_lt_prog_compiler_static_CXX 26061 26062# Does compiler simultaneously support -c and -o options? 26063compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 26064 26065# Whether or not to add -lc for building shared libraries. 26066build_libtool_need_lc=$archive_cmds_need_lc_CXX 26067 26068# Whether or not to disallow shared libs when runtime libs are static. 26069allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 26070 26071# Compiler flag to allow reflexive dlopens. 26072export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 26073 26074# Compiler flag to generate shared objects directly from archives. 26075whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 26076 26077# Whether the compiler copes with passing no objects directly. 26078compiler_needs_object=$lt_compiler_needs_object_CXX 26079 26080# Create an old-style archive from a shared archive. 26081old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 26082 26083# Create a temporary old-style archive to link instead of a shared archive. 26084old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 26085 26086# Commands used to build a shared archive. 26087archive_cmds=$lt_archive_cmds_CXX 26088archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 26089 26090# Commands used to build a loadable module if different from building 26091# a shared archive. 26092module_cmds=$lt_module_cmds_CXX 26093module_expsym_cmds=$lt_module_expsym_cmds_CXX 26094 26095# Whether we are building with GNU ld or not. 26096with_gnu_ld=$lt_with_gnu_ld_CXX 26097 26098# Flag that allows shared libraries with undefined symbols to be built. 26099allow_undefined_flag=$lt_allow_undefined_flag_CXX 26100 26101# Flag that enforces no undefined symbols. 26102no_undefined_flag=$lt_no_undefined_flag_CXX 26103 26104# Flag to hardcode \$libdir into a binary during linking. 26105# This must work even if \$libdir does not exist 26106hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 26107 26108# Whether we need a single "-rpath" flag with a separated argument. 26109hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 26110 26111# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 26112# DIR into the resulting binary. 26113hardcode_direct=$hardcode_direct_CXX 26114 26115# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 26116# DIR into the resulting binary and the resulting library dependency is 26117# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 26118# library is relocated. 26119hardcode_direct_absolute=$hardcode_direct_absolute_CXX 26120 26121# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 26122# into the resulting binary. 26123hardcode_minus_L=$hardcode_minus_L_CXX 26124 26125# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 26126# into the resulting binary. 26127hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 26128 26129# Set to "yes" if building a shared library automatically hardcodes DIR 26130# into the library and all subsequent libraries and executables linked 26131# against it. 26132hardcode_automatic=$hardcode_automatic_CXX 26133 26134# Set to yes if linker adds runtime paths of dependent libraries 26135# to runtime path list. 26136inherit_rpath=$inherit_rpath_CXX 26137 26138# Whether libtool must link a program against all its dependency libraries. 26139link_all_deplibs=$link_all_deplibs_CXX 26140 26141# Set to "yes" if exported symbols are required. 26142always_export_symbols=$always_export_symbols_CXX 26143 26144# The commands to list exported symbols. 26145export_symbols_cmds=$lt_export_symbols_cmds_CXX 26146 26147# Symbols that should not be listed in the preloaded symbols. 26148exclude_expsyms=$lt_exclude_expsyms_CXX 26149 26150# Symbols that must always be exported. 26151include_expsyms=$lt_include_expsyms_CXX 26152 26153# Commands necessary for linking programs (against libraries) with templates. 26154prelink_cmds=$lt_prelink_cmds_CXX 26155 26156# Commands necessary for finishing linking programs. 26157postlink_cmds=$lt_postlink_cmds_CXX 26158 26159# Specify filename containing input files. 26160file_list_spec=$lt_file_list_spec_CXX 26161 26162# How to hardcode a shared library path into an executable. 26163hardcode_action=$hardcode_action_CXX 26164 26165# The directories searched by this compiler when creating a shared library. 26166compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 26167 26168# Dependencies to place before and after the objects being linked to 26169# create a shared library. 26170predep_objects=$lt_predep_objects_CXX 26171postdep_objects=$lt_postdep_objects_CXX 26172predeps=$lt_predeps_CXX 26173postdeps=$lt_postdeps_CXX 26174 26175# The library search path used internally by the compiler when linking 26176# a shared library. 26177compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 26178 26179# ### END LIBTOOL TAG CONFIG: CXX 26180_LT_EOF 26181 26182 ;; 26183 26184 esac 26185done # for ac_tag 26186 26187 26188as_fn_exit 0 26189_ACEOF 26190ac_clean_files=$ac_clean_files_save 26191 26192test $ac_write_fail = 0 || 26193 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 26194 26195 26196# configure is writing to config.log, and then calls config.status. 26197# config.status does its own redirection, appending to config.log. 26198# Unfortunately, on DOS this fails, as config.log is still kept open 26199# by configure, so config.status won't be able to write to it; its 26200# output is simply discarded. So we exec the FD to /dev/null, 26201# effectively closing config.log, so it can be properly (re)opened and 26202# appended to by config.status. When coming back to configure, we 26203# need to make the FD available again. 26204if test "$no_create" != yes; then 26205 ac_cs_success=: 26206 ac_config_status_args= 26207 test "$silent" = yes && 26208 ac_config_status_args="$ac_config_status_args --quiet" 26209 exec 5>/dev/null 26210 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 26211 exec 5>>config.log 26212 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 26213 # would make configure fail if this is the last instruction. 26214 $ac_cs_success || as_fn_exit 1 26215fi 26216if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 26217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 26218$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 26219fi 26220 26221 26222 26223 cat conf_nut_report_feature 26224 26225