1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for OpenNTPD 6.8p1. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 PATH=/empty FPATH=/empty; export PATH FPATH 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 207test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='OpenNTPD' 589PACKAGE_TARNAME='openntpd' 590PACKAGE_VERSION='6.8p1' 591PACKAGE_STRING='OpenNTPD 6.8p1' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595# Factoring default headers for most tests. 596ac_includes_default="\ 597#include <stdio.h> 598#ifdef HAVE_SYS_TYPES_H 599# include <sys/types.h> 600#endif 601#ifdef HAVE_SYS_STAT_H 602# include <sys/stat.h> 603#endif 604#ifdef STDC_HEADERS 605# include <stdlib.h> 606# include <stddef.h> 607#else 608# ifdef HAVE_STDLIB_H 609# include <stdlib.h> 610# endif 611#endif 612#ifdef HAVE_STRING_H 613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 614# include <memory.h> 615# endif 616# include <string.h> 617#endif 618#ifdef HAVE_STRINGS_H 619# include <strings.h> 620#endif 621#ifdef HAVE_INTTYPES_H 622# include <inttypes.h> 623#endif 624#ifdef HAVE_STDINT_H 625# include <stdint.h> 626#endif 627#ifdef HAVE_UNISTD_H 628# include <unistd.h> 629#endif" 630 631ac_subst_vars='am__EXEEXT_FALSE 632am__EXEEXT_TRUE 633LTLIBOBJS 634LIBOBJS 635PRIVSEP_USER 636HAVE_SENSORS_FALSE 637HAVE_SENSORS_TRUE 638HAVE_SYSCONF_FALSE 639HAVE_SYSCONF_TRUE 640HAVE_STRTONUM_FALSE 641HAVE_STRTONUM_TRUE 642HAVE_STRLCPY_FALSE 643HAVE_STRLCPY_TRUE 644HAVE_STRLCAT_FALSE 645HAVE_STRLCAT_TRUE 646HAVE_SETPROCTITLE_FALSE 647HAVE_SETPROCTITLE_TRUE 648HAVE_SETRESUID_FALSE 649HAVE_SETRESUID_TRUE 650HAVE_SETRESGID_FALSE 651HAVE_SETRESGID_TRUE 652HAVE_SETGROUPS_FALSE 653HAVE_SETGROUPS_TRUE 654HAVE_RECALLOCARRAY_FALSE 655HAVE_RECALLOCARRAY_TRUE 656HAVE_REALLOCARRAY_FALSE 657HAVE_REALLOCARRAY_TRUE 658HAVE_POLL_FALSE 659HAVE_POLL_TRUE 660HAVE_MEMMEM_FALSE 661HAVE_MEMMEM_TRUE 662HAVE_IMSG_FALSE 663HAVE_IMSG_TRUE 664HAVE_IFADDRS_H_FALSE 665HAVE_IFADDRS_H_TRUE 666HAVE_FREEZERO_FALSE 667HAVE_FREEZERO_TRUE 668HAVE_DAEMON_FALSE 669HAVE_DAEMON_TRUE 670HAVE_CLOSEFROM_FALSE 671HAVE_CLOSEFROM_TRUE 672HAVE_ASPRINTF_FALSE 673HAVE_ASPRINTF_TRUE 674HAVE_LIBTLS_FALSE 675HAVE_LIBTLS_TRUE 676HAVE_CLOCK_GETTIME_FALSE 677HAVE_CLOCK_GETTIME_TRUE 678HAVE_CLOCK_GETRES_FALSE 679HAVE_CLOCK_GETRES_TRUE 680HAVE_ADJFREQ_FALSE 681HAVE_ADJFREQ_TRUE 682HAVE_TIMINGSAFE_MEMCMP_FALSE 683HAVE_TIMINGSAFE_MEMCMP_TRUE 684HAVE_TIMINGSAFE_BCMP_FALSE 685HAVE_TIMINGSAFE_BCMP_TRUE 686HAVE_GETENTROPY_FALSE 687HAVE_GETENTROPY_TRUE 688HAVE_EXPLICIT_BZERO_FALSE 689HAVE_EXPLICIT_BZERO_TRUE 690HAVE_ARC4RANDOM_UNIFORM_FALSE 691HAVE_ARC4RANDOM_UNIFORM_TRUE 692HAVE_ARC4RANDOM_BUF_FALSE 693HAVE_ARC4RANDOM_BUF_TRUE 694HAVE_ARC4RANDOM_FALSE 695HAVE_ARC4RANDOM_TRUE 696HOST_SOLARIS_FALSE 697HOST_SOLARIS_TRUE 698HOST_OPENBSD_FALSE 699HOST_OPENBSD_TRUE 700HOST_NETBSD_FALSE 701HOST_NETBSD_TRUE 702HOST_LINUX_FALSE 703HOST_LINUX_TRUE 704HOST_HPUX_FALSE 705HOST_HPUX_TRUE 706HOST_FREEBSD_FALSE 707HOST_FREEBSD_TRUE 708HOST_DARWIN_FALSE 709HOST_DARWIN_TRUE 710HOST_CYGWIN_FALSE 711HOST_CYGWIN_TRUE 712HOST_AIX_FALSE 713HOST_AIX_TRUE 714PROG_LDADD 715PLATFORM_LDADD 716YFLAGS 717YACC 718CPP 719OTOOL64 720OTOOL 721LIPO 722NMEDIT 723DSYMUTIL 724MANIFEST_TOOL 725RANLIB 726ac_ct_AR 727AR 728DLLTOOL 729OBJDUMP 730LN_S 731NM 732ac_ct_DUMPBIN 733DUMPBIN 734LD 735FGREP 736EGREP 737GREP 738SED 739LIBTOOL 740am__fastdepCC_FALSE 741am__fastdepCC_TRUE 742CCDEPMODE 743am__nodep 744AMDEPBACKSLASH 745AMDEP_FALSE 746AMDEP_TRUE 747am__include 748DEPDIR 749OBJEXT 750EXEEXT 751ac_ct_CC 752CPPFLAGS 753LDFLAGS 754CFLAGS 755CC 756AM_BACKSLASH 757AM_DEFAULT_VERBOSITY 758AM_DEFAULT_V 759AM_V 760am__untar 761am__tar 762AMTAR 763am__leading_dot 764SET_MAKE 765AWK 766mkdir_p 767MKDIR_P 768INSTALL_STRIP_PROGRAM 769STRIP 770install_sh 771MAKEINFO 772AUTOHEADER 773AUTOMAKE 774AUTOCONF 775ACLOCAL 776VERSION 777PACKAGE 778CYGPATH_W 779am__isrc 780INSTALL_DATA 781INSTALL_SCRIPT 782INSTALL_PROGRAM 783host_os 784host_vendor 785host_cpu 786host 787build_os 788build_vendor 789build_cpu 790build 791target_alias 792host_alias 793build_alias 794LIBS 795ECHO_T 796ECHO_N 797ECHO_C 798DEFS 799mandir 800localedir 801libdir 802psdir 803pdfdir 804dvidir 805htmldir 806infodir 807docdir 808oldincludedir 809includedir 810runstatedir 811localstatedir 812sharedstatedir 813sysconfdir 814datadir 815datarootdir 816libexecdir 817sbindir 818bindir 819program_transform_name 820prefix 821exec_prefix 822PACKAGE_URL 823PACKAGE_BUGREPORT 824PACKAGE_STRING 825PACKAGE_VERSION 826PACKAGE_TARNAME 827PACKAGE_NAME 828PATH_SEPARATOR 829SHELL 830am__quote' 831ac_subst_files='' 832ac_user_opts=' 833enable_option_checking 834enable_silent_rules 835enable_dependency_tracking 836enable_shared 837enable_static 838with_pic 839enable_fast_install 840with_gnu_ld 841with_sysroot 842enable_libtool_lock 843enable_https_constraint 844with_privsep_user 845with_cacert 846' 847 ac_precious_vars='build_alias 848host_alias 849target_alias 850CC 851CFLAGS 852LDFLAGS 853LIBS 854CPPFLAGS 855CPP 856YACC 857YFLAGS' 858 859 860# Initialize some variables set by options. 861ac_init_help= 862ac_init_version=false 863ac_unrecognized_opts= 864ac_unrecognized_sep= 865# The variables have the same names as the options, with 866# dashes changed to underlines. 867cache_file=/dev/null 868exec_prefix=NONE 869no_create= 870no_recursion= 871prefix=NONE 872program_prefix=NONE 873program_suffix=NONE 874program_transform_name=s,x,x, 875silent= 876site= 877srcdir= 878verbose= 879x_includes=NONE 880x_libraries=NONE 881 882# Installation directory options. 883# These are left unexpanded so users can "make install exec_prefix=/foo" 884# and all the variables that are supposed to be based on exec_prefix 885# by default will actually change. 886# Use braces instead of parens because sh, perl, etc. also accept them. 887# (The list follows the same order as the GNU Coding Standards.) 888bindir='${exec_prefix}/bin' 889sbindir='${exec_prefix}/sbin' 890libexecdir='${exec_prefix}/libexec' 891datarootdir='${prefix}/share' 892datadir='${datarootdir}' 893sysconfdir='${prefix}/etc' 894sharedstatedir='${prefix}/com' 895localstatedir='${prefix}/var' 896runstatedir='${localstatedir}/run' 897includedir='${prefix}/include' 898oldincludedir='/usr/include' 899docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 900infodir='${datarootdir}/info' 901htmldir='${docdir}' 902dvidir='${docdir}' 903pdfdir='${docdir}' 904psdir='${docdir}' 905libdir='${exec_prefix}/lib' 906localedir='${datarootdir}/locale' 907mandir='${datarootdir}/man' 908 909ac_prev= 910ac_dashdash= 911for ac_option 912do 913 # If the previous option needs an argument, assign it. 914 if test -n "$ac_prev"; then 915 eval $ac_prev=\$ac_option 916 ac_prev= 917 continue 918 fi 919 920 case $ac_option in 921 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 922 *=) ac_optarg= ;; 923 *) ac_optarg=yes ;; 924 esac 925 926 # Accept the important Cygnus configure options, so we can diagnose typos. 927 928 case $ac_dashdash$ac_option in 929 --) 930 ac_dashdash=yes ;; 931 932 -bindir | --bindir | --bindi | --bind | --bin | --bi) 933 ac_prev=bindir ;; 934 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 935 bindir=$ac_optarg ;; 936 937 -build | --build | --buil | --bui | --bu) 938 ac_prev=build_alias ;; 939 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 940 build_alias=$ac_optarg ;; 941 942 -cache-file | --cache-file | --cache-fil | --cache-fi \ 943 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 944 ac_prev=cache_file ;; 945 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 946 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 947 cache_file=$ac_optarg ;; 948 949 --config-cache | -C) 950 cache_file=config.cache ;; 951 952 -datadir | --datadir | --datadi | --datad) 953 ac_prev=datadir ;; 954 -datadir=* | --datadir=* | --datadi=* | --datad=*) 955 datadir=$ac_optarg ;; 956 957 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 958 | --dataroo | --dataro | --datar) 959 ac_prev=datarootdir ;; 960 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 961 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 962 datarootdir=$ac_optarg ;; 963 964 -disable-* | --disable-*) 965 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 966 # Reject names that are not valid shell variable names. 967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 968 as_fn_error $? "invalid feature name: $ac_useropt" 969 ac_useropt_orig=$ac_useropt 970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 971 case $ac_user_opts in 972 *" 973"enable_$ac_useropt" 974"*) ;; 975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 976 ac_unrecognized_sep=', ';; 977 esac 978 eval enable_$ac_useropt=no ;; 979 980 -docdir | --docdir | --docdi | --doc | --do) 981 ac_prev=docdir ;; 982 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 983 docdir=$ac_optarg ;; 984 985 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 986 ac_prev=dvidir ;; 987 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 988 dvidir=$ac_optarg ;; 989 990 -enable-* | --enable-*) 991 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 992 # Reject names that are not valid shell variable names. 993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 994 as_fn_error $? "invalid feature name: $ac_useropt" 995 ac_useropt_orig=$ac_useropt 996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 997 case $ac_user_opts in 998 *" 999"enable_$ac_useropt" 1000"*) ;; 1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1002 ac_unrecognized_sep=', ';; 1003 esac 1004 eval enable_$ac_useropt=\$ac_optarg ;; 1005 1006 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1007 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1008 | --exec | --exe | --ex) 1009 ac_prev=exec_prefix ;; 1010 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1011 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1012 | --exec=* | --exe=* | --ex=*) 1013 exec_prefix=$ac_optarg ;; 1014 1015 -gas | --gas | --ga | --g) 1016 # Obsolete; use --with-gas. 1017 with_gas=yes ;; 1018 1019 -help | --help | --hel | --he | -h) 1020 ac_init_help=long ;; 1021 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1022 ac_init_help=recursive ;; 1023 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1024 ac_init_help=short ;; 1025 1026 -host | --host | --hos | --ho) 1027 ac_prev=host_alias ;; 1028 -host=* | --host=* | --hos=* | --ho=*) 1029 host_alias=$ac_optarg ;; 1030 1031 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1032 ac_prev=htmldir ;; 1033 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1034 | --ht=*) 1035 htmldir=$ac_optarg ;; 1036 1037 -includedir | --includedir | --includedi | --included | --include \ 1038 | --includ | --inclu | --incl | --inc) 1039 ac_prev=includedir ;; 1040 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1041 | --includ=* | --inclu=* | --incl=* | --inc=*) 1042 includedir=$ac_optarg ;; 1043 1044 -infodir | --infodir | --infodi | --infod | --info | --inf) 1045 ac_prev=infodir ;; 1046 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1047 infodir=$ac_optarg ;; 1048 1049 -libdir | --libdir | --libdi | --libd) 1050 ac_prev=libdir ;; 1051 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1052 libdir=$ac_optarg ;; 1053 1054 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1055 | --libexe | --libex | --libe) 1056 ac_prev=libexecdir ;; 1057 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1058 | --libexe=* | --libex=* | --libe=*) 1059 libexecdir=$ac_optarg ;; 1060 1061 -localedir | --localedir | --localedi | --localed | --locale) 1062 ac_prev=localedir ;; 1063 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1064 localedir=$ac_optarg ;; 1065 1066 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1067 | --localstate | --localstat | --localsta | --localst | --locals) 1068 ac_prev=localstatedir ;; 1069 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1070 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1071 localstatedir=$ac_optarg ;; 1072 1073 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1074 ac_prev=mandir ;; 1075 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1076 mandir=$ac_optarg ;; 1077 1078 -nfp | --nfp | --nf) 1079 # Obsolete; use --without-fp. 1080 with_fp=no ;; 1081 1082 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1083 | --no-cr | --no-c | -n) 1084 no_create=yes ;; 1085 1086 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1087 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1088 no_recursion=yes ;; 1089 1090 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1091 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1092 | --oldin | --oldi | --old | --ol | --o) 1093 ac_prev=oldincludedir ;; 1094 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1095 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1096 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1097 oldincludedir=$ac_optarg ;; 1098 1099 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1100 ac_prev=prefix ;; 1101 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1102 prefix=$ac_optarg ;; 1103 1104 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1105 | --program-pre | --program-pr | --program-p) 1106 ac_prev=program_prefix ;; 1107 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1108 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1109 program_prefix=$ac_optarg ;; 1110 1111 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1112 | --program-suf | --program-su | --program-s) 1113 ac_prev=program_suffix ;; 1114 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1115 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1116 program_suffix=$ac_optarg ;; 1117 1118 -program-transform-name | --program-transform-name \ 1119 | --program-transform-nam | --program-transform-na \ 1120 | --program-transform-n | --program-transform- \ 1121 | --program-transform | --program-transfor \ 1122 | --program-transfo | --program-transf \ 1123 | --program-trans | --program-tran \ 1124 | --progr-tra | --program-tr | --program-t) 1125 ac_prev=program_transform_name ;; 1126 -program-transform-name=* | --program-transform-name=* \ 1127 | --program-transform-nam=* | --program-transform-na=* \ 1128 | --program-transform-n=* | --program-transform-=* \ 1129 | --program-transform=* | --program-transfor=* \ 1130 | --program-transfo=* | --program-transf=* \ 1131 | --program-trans=* | --program-tran=* \ 1132 | --progr-tra=* | --program-tr=* | --program-t=*) 1133 program_transform_name=$ac_optarg ;; 1134 1135 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1136 ac_prev=pdfdir ;; 1137 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1138 pdfdir=$ac_optarg ;; 1139 1140 -psdir | --psdir | --psdi | --psd | --ps) 1141 ac_prev=psdir ;; 1142 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1143 psdir=$ac_optarg ;; 1144 1145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1146 | -silent | --silent | --silen | --sile | --sil) 1147 silent=yes ;; 1148 1149 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1150 | --runstate | --runstat | --runsta | --runst | --runs \ 1151 | --run | --ru | --r) 1152 ac_prev=runstatedir ;; 1153 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1154 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1155 | --run=* | --ru=* | --r=*) 1156 runstatedir=$ac_optarg ;; 1157 1158 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1159 ac_prev=sbindir ;; 1160 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1161 | --sbi=* | --sb=*) 1162 sbindir=$ac_optarg ;; 1163 1164 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1165 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1166 | --sharedst | --shareds | --shared | --share | --shar \ 1167 | --sha | --sh) 1168 ac_prev=sharedstatedir ;; 1169 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1170 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1171 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1172 | --sha=* | --sh=*) 1173 sharedstatedir=$ac_optarg ;; 1174 1175 -site | --site | --sit) 1176 ac_prev=site ;; 1177 -site=* | --site=* | --sit=*) 1178 site=$ac_optarg ;; 1179 1180 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1181 ac_prev=srcdir ;; 1182 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1183 srcdir=$ac_optarg ;; 1184 1185 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1186 | --syscon | --sysco | --sysc | --sys | --sy) 1187 ac_prev=sysconfdir ;; 1188 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1189 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1190 sysconfdir=$ac_optarg ;; 1191 1192 -target | --target | --targe | --targ | --tar | --ta | --t) 1193 ac_prev=target_alias ;; 1194 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1195 target_alias=$ac_optarg ;; 1196 1197 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1198 verbose=yes ;; 1199 1200 -version | --version | --versio | --versi | --vers | -V) 1201 ac_init_version=: ;; 1202 1203 -with-* | --with-*) 1204 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1205 # Reject names that are not valid shell variable names. 1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1207 as_fn_error $? "invalid package name: $ac_useropt" 1208 ac_useropt_orig=$ac_useropt 1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1210 case $ac_user_opts in 1211 *" 1212"with_$ac_useropt" 1213"*) ;; 1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1215 ac_unrecognized_sep=', ';; 1216 esac 1217 eval with_$ac_useropt=\$ac_optarg ;; 1218 1219 -without-* | --without-*) 1220 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1221 # Reject names that are not valid shell variable names. 1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1223 as_fn_error $? "invalid package name: $ac_useropt" 1224 ac_useropt_orig=$ac_useropt 1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1226 case $ac_user_opts in 1227 *" 1228"with_$ac_useropt" 1229"*) ;; 1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1231 ac_unrecognized_sep=', ';; 1232 esac 1233 eval with_$ac_useropt=no ;; 1234 1235 --x) 1236 # Obsolete; use --with-x. 1237 with_x=yes ;; 1238 1239 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1240 | --x-incl | --x-inc | --x-in | --x-i) 1241 ac_prev=x_includes ;; 1242 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1243 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1244 x_includes=$ac_optarg ;; 1245 1246 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1247 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1248 ac_prev=x_libraries ;; 1249 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1250 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1251 x_libraries=$ac_optarg ;; 1252 1253 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1254Try \`$0 --help' for more information" 1255 ;; 1256 1257 *=*) 1258 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1259 # Reject names that are not valid shell variable names. 1260 case $ac_envvar in #( 1261 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1262 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1263 esac 1264 eval $ac_envvar=\$ac_optarg 1265 export $ac_envvar ;; 1266 1267 *) 1268 # FIXME: should be removed in autoconf 3.0. 1269 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1271 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1272 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1273 ;; 1274 1275 esac 1276done 1277 1278if test -n "$ac_prev"; then 1279 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1280 as_fn_error $? "missing argument to $ac_option" 1281fi 1282 1283if test -n "$ac_unrecognized_opts"; then 1284 case $enable_option_checking in 1285 no) ;; 1286 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1287 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1288 esac 1289fi 1290 1291# Check all directory arguments for consistency. 1292for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1293 datadir sysconfdir sharedstatedir localstatedir includedir \ 1294 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1295 libdir localedir mandir runstatedir 1296do 1297 eval ac_val=\$$ac_var 1298 # Remove trailing slashes. 1299 case $ac_val in 1300 */ ) 1301 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1302 eval $ac_var=\$ac_val;; 1303 esac 1304 # Be sure to have absolute directory names. 1305 case $ac_val in 1306 [\\/$]* | ?:[\\/]* ) continue;; 1307 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1308 esac 1309 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1310done 1311 1312# There might be people who depend on the old broken behavior: `$host' 1313# used to hold the argument of --host etc. 1314# FIXME: To remove some day. 1315build=$build_alias 1316host=$host_alias 1317target=$target_alias 1318 1319# FIXME: To remove some day. 1320if test "x$host_alias" != x; then 1321 if test "x$build_alias" = x; then 1322 cross_compiling=maybe 1323 elif test "x$build_alias" != "x$host_alias"; then 1324 cross_compiling=yes 1325 fi 1326fi 1327 1328ac_tool_prefix= 1329test -n "$host_alias" && ac_tool_prefix=$host_alias- 1330 1331test "$silent" = yes && exec 6>/dev/null 1332 1333 1334ac_pwd=`pwd` && test -n "$ac_pwd" && 1335ac_ls_di=`ls -di .` && 1336ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1337 as_fn_error $? "working directory cannot be determined" 1338test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1339 as_fn_error $? "pwd does not report name of working directory" 1340 1341 1342# Find the source files, if location was not specified. 1343if test -z "$srcdir"; then 1344 ac_srcdir_defaulted=yes 1345 # Try the directory containing this script, then the parent directory. 1346 ac_confdir=`$as_dirname -- "$as_myself" || 1347$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1348 X"$as_myself" : 'X\(//\)[^/]' \| \ 1349 X"$as_myself" : 'X\(//\)$' \| \ 1350 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1351$as_echo X"$as_myself" | 1352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1353 s//\1/ 1354 q 1355 } 1356 /^X\(\/\/\)[^/].*/{ 1357 s//\1/ 1358 q 1359 } 1360 /^X\(\/\/\)$/{ 1361 s//\1/ 1362 q 1363 } 1364 /^X\(\/\).*/{ 1365 s//\1/ 1366 q 1367 } 1368 s/.*/./; q'` 1369 srcdir=$ac_confdir 1370 if test ! -r "$srcdir/$ac_unique_file"; then 1371 srcdir=.. 1372 fi 1373else 1374 ac_srcdir_defaulted=no 1375fi 1376if test ! -r "$srcdir/$ac_unique_file"; then 1377 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1378 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1379fi 1380ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1381ac_abs_confdir=`( 1382 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1383 pwd)` 1384# When building in place, set srcdir=. 1385if test "$ac_abs_confdir" = "$ac_pwd"; then 1386 srcdir=. 1387fi 1388# Remove unnecessary trailing slashes from srcdir. 1389# Double slashes in file names in object file debugging info 1390# mess up M-x gdb in Emacs. 1391case $srcdir in 1392*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1393esac 1394for ac_var in $ac_precious_vars; do 1395 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1396 eval ac_env_${ac_var}_value=\$${ac_var} 1397 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1398 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1399done 1400 1401# 1402# Report the --help message. 1403# 1404if test "$ac_init_help" = "long"; then 1405 # Omit some internal or obsolete options to make the list less imposing. 1406 # This message is too long to be a string in the A/UX 3.1 sh. 1407 cat <<_ACEOF 1408\`configure' configures OpenNTPD 6.8p1 to adapt to many kinds of systems. 1409 1410Usage: $0 [OPTION]... [VAR=VALUE]... 1411 1412To assign environment variables (e.g., CC, CFLAGS...), specify them as 1413VAR=VALUE. See below for descriptions of some of the useful variables. 1414 1415Defaults for the options are specified in brackets. 1416 1417Configuration: 1418 -h, --help display this help and exit 1419 --help=short display options specific to this package 1420 --help=recursive display the short help of all the included packages 1421 -V, --version display version information and exit 1422 -q, --quiet, --silent do not print \`checking ...' messages 1423 --cache-file=FILE cache test results in FILE [disabled] 1424 -C, --config-cache alias for \`--cache-file=config.cache' 1425 -n, --no-create do not create output files 1426 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1427 1428Installation directories: 1429 --prefix=PREFIX install architecture-independent files in PREFIX 1430 [$ac_default_prefix] 1431 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1432 [PREFIX] 1433 1434By default, \`make install' will install all the files in 1435\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1436an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1437for instance \`--prefix=\$HOME'. 1438 1439For better control, use the options below. 1440 1441Fine tuning of the installation directories: 1442 --bindir=DIR user executables [EPREFIX/bin] 1443 --sbindir=DIR system admin executables [EPREFIX/sbin] 1444 --libexecdir=DIR program executables [EPREFIX/libexec] 1445 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1446 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1447 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1448 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1449 --libdir=DIR object code libraries [EPREFIX/lib] 1450 --includedir=DIR C header files [PREFIX/include] 1451 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1452 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1453 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1454 --infodir=DIR info documentation [DATAROOTDIR/info] 1455 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1456 --mandir=DIR man documentation [DATAROOTDIR/man] 1457 --docdir=DIR documentation root [DATAROOTDIR/doc/openntpd] 1458 --htmldir=DIR html documentation [DOCDIR] 1459 --dvidir=DIR dvi documentation [DOCDIR] 1460 --pdfdir=DIR pdf documentation [DOCDIR] 1461 --psdir=DIR ps documentation [DOCDIR] 1462_ACEOF 1463 1464 cat <<\_ACEOF 1465 1466Program names: 1467 --program-prefix=PREFIX prepend PREFIX to installed program names 1468 --program-suffix=SUFFIX append SUFFIX to installed program names 1469 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1470 1471System types: 1472 --build=BUILD configure for building on BUILD [guessed] 1473 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1474_ACEOF 1475fi 1476 1477if test -n "$ac_init_help"; then 1478 case $ac_init_help in 1479 short | recursive ) echo "Configuration of OpenNTPD 6.8p1:";; 1480 esac 1481 cat <<\_ACEOF 1482 1483Optional Features: 1484 --disable-option-checking ignore unrecognized --enable/--with options 1485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1487 --enable-silent-rules less verbose build output (undo: "make V=1") 1488 --disable-silent-rules verbose build output (undo: "make V=0") 1489 --enable-dependency-tracking 1490 do not reject slow dependency extractors 1491 --disable-dependency-tracking 1492 speeds up one-time build 1493 --enable-shared[=PKGS] build shared libraries [default=yes] 1494 --enable-static[=PKGS] build static libraries [default=yes] 1495 --enable-fast-install[=PKGS] 1496 optimize for fast installation [default=yes] 1497 --disable-libtool-lock avoid locking (might break parallel builds) 1498 --disable-https-constraint 1499 Disable HTTPS Constraint Functionality 1500 1501Optional Packages: 1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1504 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1505 both] 1506 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1507 --with-sysroot=DIR Search for dependent libraries within DIR 1508 (or the compiler's sysroot if not specified). 1509 --with-privsep-user=user 1510 Privilege separation user for ntpd to use 1511 --with-cacert=path CA certificate location for HTTPS constraint 1512 validation 1513 1514Some influential environment variables: 1515 CC C compiler command 1516 CFLAGS C compiler flags 1517 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1518 nonstandard directory <lib dir> 1519 LIBS libraries to pass to the linker, e.g. -l<library> 1520 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1521 you have headers in a nonstandard directory <include dir> 1522 CPP C preprocessor 1523 YACC The `Yet Another Compiler Compiler' implementation to use. 1524 Defaults to the first program found out of: `bison -y', `byacc', 1525 `yacc'. 1526 YFLAGS The list of arguments that will be passed by default to $YACC. 1527 This script will default YFLAGS to the empty string to avoid a 1528 default value of `-d' given by some make applications. 1529 1530Use these variables to override the choices made by `configure' or to help 1531it to find libraries and programs with nonstandard names/locations. 1532 1533Report bugs to the package provider. 1534_ACEOF 1535ac_status=$? 1536fi 1537 1538if test "$ac_init_help" = "recursive"; then 1539 # If there are subdirs, report their specific --help. 1540 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1541 test -d "$ac_dir" || 1542 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1543 continue 1544 ac_builddir=. 1545 1546case "$ac_dir" in 1547.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1548*) 1549 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1550 # A ".." for each directory in $ac_dir_suffix. 1551 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1552 case $ac_top_builddir_sub in 1553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1555 esac ;; 1556esac 1557ac_abs_top_builddir=$ac_pwd 1558ac_abs_builddir=$ac_pwd$ac_dir_suffix 1559# for backward compatibility: 1560ac_top_builddir=$ac_top_build_prefix 1561 1562case $srcdir in 1563 .) # We are building in place. 1564 ac_srcdir=. 1565 ac_top_srcdir=$ac_top_builddir_sub 1566 ac_abs_top_srcdir=$ac_pwd ;; 1567 [\\/]* | ?:[\\/]* ) # Absolute name. 1568 ac_srcdir=$srcdir$ac_dir_suffix; 1569 ac_top_srcdir=$srcdir 1570 ac_abs_top_srcdir=$srcdir ;; 1571 *) # Relative name. 1572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1573 ac_top_srcdir=$ac_top_build_prefix$srcdir 1574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1575esac 1576ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1577 1578 cd "$ac_dir" || { ac_status=$?; continue; } 1579 # Check for guested configure. 1580 if test -f "$ac_srcdir/configure.gnu"; then 1581 echo && 1582 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1583 elif test -f "$ac_srcdir/configure"; then 1584 echo && 1585 $SHELL "$ac_srcdir/configure" --help=recursive 1586 else 1587 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1588 fi || ac_status=$? 1589 cd "$ac_pwd" || { ac_status=$?; break; } 1590 done 1591fi 1592 1593test -n "$ac_init_help" && exit $ac_status 1594if $ac_init_version; then 1595 cat <<\_ACEOF 1596OpenNTPD configure 6.8p1 1597generated by GNU Autoconf 2.69 1598 1599Copyright (C) 2012 Free Software Foundation, Inc. 1600This configure script is free software; the Free Software Foundation 1601gives unlimited permission to copy, distribute and modify it. 1602_ACEOF 1603 exit 1604fi 1605 1606## ------------------------ ## 1607## Autoconf initialization. ## 1608## ------------------------ ## 1609 1610# ac_fn_c_try_compile LINENO 1611# -------------------------- 1612# Try to compile conftest.$ac_ext, and return whether this succeeded. 1613ac_fn_c_try_compile () 1614{ 1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1616 rm -f conftest.$ac_objext 1617 if { { ac_try="$ac_compile" 1618case "(($ac_try" in 1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1620 *) ac_try_echo=$ac_try;; 1621esac 1622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1623$as_echo "$ac_try_echo"; } >&5 1624 (eval "$ac_compile") 2>conftest.err 1625 ac_status=$? 1626 if test -s conftest.err; then 1627 grep -v '^ *+' conftest.err >conftest.er1 1628 cat conftest.er1 >&5 1629 mv -f conftest.er1 conftest.err 1630 fi 1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1632 test $ac_status = 0; } && { 1633 test -z "$ac_c_werror_flag" || 1634 test ! -s conftest.err 1635 } && test -s conftest.$ac_objext; then : 1636 ac_retval=0 1637else 1638 $as_echo "$as_me: failed program was:" >&5 1639sed 's/^/| /' conftest.$ac_ext >&5 1640 1641 ac_retval=1 1642fi 1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1644 as_fn_set_status $ac_retval 1645 1646} # ac_fn_c_try_compile 1647 1648# ac_fn_c_try_link LINENO 1649# ----------------------- 1650# Try to link conftest.$ac_ext, and return whether this succeeded. 1651ac_fn_c_try_link () 1652{ 1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1654 rm -f conftest.$ac_objext conftest$ac_exeext 1655 if { { ac_try="$ac_link" 1656case "(($ac_try" in 1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1658 *) ac_try_echo=$ac_try;; 1659esac 1660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1661$as_echo "$ac_try_echo"; } >&5 1662 (eval "$ac_link") 2>conftest.err 1663 ac_status=$? 1664 if test -s conftest.err; then 1665 grep -v '^ *+' conftest.err >conftest.er1 1666 cat conftest.er1 >&5 1667 mv -f conftest.er1 conftest.err 1668 fi 1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1670 test $ac_status = 0; } && { 1671 test -z "$ac_c_werror_flag" || 1672 test ! -s conftest.err 1673 } && test -s conftest$ac_exeext && { 1674 test "$cross_compiling" = yes || 1675 test -x conftest$ac_exeext 1676 }; then : 1677 ac_retval=0 1678else 1679 $as_echo "$as_me: failed program was:" >&5 1680sed 's/^/| /' conftest.$ac_ext >&5 1681 1682 ac_retval=1 1683fi 1684 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1685 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1686 # interfere with the next link command; also delete a directory that is 1687 # left behind by Apple's compiler. We do this before executing the actions. 1688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1690 as_fn_set_status $ac_retval 1691 1692} # ac_fn_c_try_link 1693 1694# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1695# ------------------------------------------------------- 1696# Tests whether HEADER exists and can be compiled using the include files in 1697# INCLUDES, setting the cache variable VAR accordingly. 1698ac_fn_c_check_header_compile () 1699{ 1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1702$as_echo_n "checking for $2... " >&6; } 1703if eval \${$3+:} false; then : 1704 $as_echo_n "(cached) " >&6 1705else 1706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1707/* end confdefs.h. */ 1708$4 1709#include <$2> 1710_ACEOF 1711if ac_fn_c_try_compile "$LINENO"; then : 1712 eval "$3=yes" 1713else 1714 eval "$3=no" 1715fi 1716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1717fi 1718eval ac_res=\$$3 1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1720$as_echo "$ac_res" >&6; } 1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1722 1723} # ac_fn_c_check_header_compile 1724 1725# ac_fn_c_try_cpp LINENO 1726# ---------------------- 1727# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1728ac_fn_c_try_cpp () 1729{ 1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1731 if { { ac_try="$ac_cpp conftest.$ac_ext" 1732case "(($ac_try" in 1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1734 *) ac_try_echo=$ac_try;; 1735esac 1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1737$as_echo "$ac_try_echo"; } >&5 1738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1739 ac_status=$? 1740 if test -s conftest.err; then 1741 grep -v '^ *+' conftest.err >conftest.er1 1742 cat conftest.er1 >&5 1743 mv -f conftest.er1 conftest.err 1744 fi 1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1746 test $ac_status = 0; } > conftest.i && { 1747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1748 test ! -s conftest.err 1749 }; then : 1750 ac_retval=0 1751else 1752 $as_echo "$as_me: failed program was:" >&5 1753sed 's/^/| /' conftest.$ac_ext >&5 1754 1755 ac_retval=1 1756fi 1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1758 as_fn_set_status $ac_retval 1759 1760} # ac_fn_c_try_cpp 1761 1762# ac_fn_c_try_run LINENO 1763# ---------------------- 1764# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1765# that executables *can* be run. 1766ac_fn_c_try_run () 1767{ 1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1769 if { { ac_try="$ac_link" 1770case "(($ac_try" in 1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1772 *) ac_try_echo=$ac_try;; 1773esac 1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1775$as_echo "$ac_try_echo"; } >&5 1776 (eval "$ac_link") 2>&5 1777 ac_status=$? 1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1779 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1780 { { case "(($ac_try" in 1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1782 *) ac_try_echo=$ac_try;; 1783esac 1784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1785$as_echo "$ac_try_echo"; } >&5 1786 (eval "$ac_try") 2>&5 1787 ac_status=$? 1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1789 test $ac_status = 0; }; }; then : 1790 ac_retval=0 1791else 1792 $as_echo "$as_me: program exited with status $ac_status" >&5 1793 $as_echo "$as_me: failed program was:" >&5 1794sed 's/^/| /' conftest.$ac_ext >&5 1795 1796 ac_retval=$ac_status 1797fi 1798 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1800 as_fn_set_status $ac_retval 1801 1802} # ac_fn_c_try_run 1803 1804# ac_fn_c_check_func LINENO FUNC VAR 1805# ---------------------------------- 1806# Tests whether FUNC exists, setting the cache variable VAR accordingly 1807ac_fn_c_check_func () 1808{ 1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1811$as_echo_n "checking for $2... " >&6; } 1812if eval \${$3+:} false; then : 1813 $as_echo_n "(cached) " >&6 1814else 1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1816/* end confdefs.h. */ 1817/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1818 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1819#define $2 innocuous_$2 1820 1821/* System header to define __stub macros and hopefully few prototypes, 1822 which can conflict with char $2 (); below. 1823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1824 <limits.h> exists even on freestanding compilers. */ 1825 1826#ifdef __STDC__ 1827# include <limits.h> 1828#else 1829# include <assert.h> 1830#endif 1831 1832#undef $2 1833 1834/* Override any GCC internal prototype to avoid an error. 1835 Use char because int might match the return type of a GCC 1836 builtin and then its argument prototype would still apply. */ 1837#ifdef __cplusplus 1838extern "C" 1839#endif 1840char $2 (); 1841/* The GNU C library defines this for functions which it implements 1842 to always fail with ENOSYS. Some functions are actually named 1843 something starting with __ and the normal name is an alias. */ 1844#if defined __stub_$2 || defined __stub___$2 1845choke me 1846#endif 1847 1848int 1849main () 1850{ 1851return $2 (); 1852 ; 1853 return 0; 1854} 1855_ACEOF 1856if ac_fn_c_try_link "$LINENO"; then : 1857 eval "$3=yes" 1858else 1859 eval "$3=no" 1860fi 1861rm -f core conftest.err conftest.$ac_objext \ 1862 conftest$ac_exeext conftest.$ac_ext 1863fi 1864eval ac_res=\$$3 1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1866$as_echo "$ac_res" >&6; } 1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1868 1869} # ac_fn_c_check_func 1870 1871# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1872# ------------------------------------------------------- 1873# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1874# the include files in INCLUDES and setting the cache variable VAR 1875# accordingly. 1876ac_fn_c_check_header_mongrel () 1877{ 1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1879 if eval \${$3+:} false; then : 1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1881$as_echo_n "checking for $2... " >&6; } 1882if eval \${$3+:} false; then : 1883 $as_echo_n "(cached) " >&6 1884fi 1885eval ac_res=\$$3 1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1887$as_echo "$ac_res" >&6; } 1888else 1889 # Is the header compilable? 1890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1891$as_echo_n "checking $2 usability... " >&6; } 1892cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1893/* end confdefs.h. */ 1894$4 1895#include <$2> 1896_ACEOF 1897if ac_fn_c_try_compile "$LINENO"; then : 1898 ac_header_compiler=yes 1899else 1900 ac_header_compiler=no 1901fi 1902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1904$as_echo "$ac_header_compiler" >&6; } 1905 1906# Is the header present? 1907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1908$as_echo_n "checking $2 presence... " >&6; } 1909cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1910/* end confdefs.h. */ 1911#include <$2> 1912_ACEOF 1913if ac_fn_c_try_cpp "$LINENO"; then : 1914 ac_header_preproc=yes 1915else 1916 ac_header_preproc=no 1917fi 1918rm -f conftest.err conftest.i conftest.$ac_ext 1919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1920$as_echo "$ac_header_preproc" >&6; } 1921 1922# So? What about this header? 1923case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1924 yes:no: ) 1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1926$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1928$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1929 ;; 1930 no:yes:* ) 1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1932$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1934$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1936$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1938$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1940$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1941 ;; 1942esac 1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1944$as_echo_n "checking for $2... " >&6; } 1945if eval \${$3+:} false; then : 1946 $as_echo_n "(cached) " >&6 1947else 1948 eval "$3=\$ac_header_compiler" 1949fi 1950eval ac_res=\$$3 1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1952$as_echo "$ac_res" >&6; } 1953fi 1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1955 1956} # ac_fn_c_check_header_mongrel 1957 1958# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1959# ---------------------------------------------------- 1960# Tries to find if the field MEMBER exists in type AGGR, after including 1961# INCLUDES, setting cache variable VAR accordingly. 1962ac_fn_c_check_member () 1963{ 1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1966$as_echo_n "checking for $2.$3... " >&6; } 1967if eval \${$4+:} false; then : 1968 $as_echo_n "(cached) " >&6 1969else 1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1971/* end confdefs.h. */ 1972$5 1973int 1974main () 1975{ 1976static $2 ac_aggr; 1977if (ac_aggr.$3) 1978return 0; 1979 ; 1980 return 0; 1981} 1982_ACEOF 1983if ac_fn_c_try_compile "$LINENO"; then : 1984 eval "$4=yes" 1985else 1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1987/* end confdefs.h. */ 1988$5 1989int 1990main () 1991{ 1992static $2 ac_aggr; 1993if (sizeof ac_aggr.$3) 1994return 0; 1995 ; 1996 return 0; 1997} 1998_ACEOF 1999if ac_fn_c_try_compile "$LINENO"; then : 2000 eval "$4=yes" 2001else 2002 eval "$4=no" 2003fi 2004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2005fi 2006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2007fi 2008eval ac_res=\$$4 2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2010$as_echo "$ac_res" >&6; } 2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2012 2013} # ac_fn_c_check_member 2014cat >config.log <<_ACEOF 2015This file contains any messages produced by compilers while 2016running configure, to aid debugging if configure makes a mistake. 2017 2018It was created by OpenNTPD $as_me 6.8p1, which was 2019generated by GNU Autoconf 2.69. Invocation command line was 2020 2021 $ $0 $@ 2022 2023_ACEOF 2024exec 5>>config.log 2025{ 2026cat <<_ASUNAME 2027## --------- ## 2028## Platform. ## 2029## --------- ## 2030 2031hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2032uname -m = `(uname -m) 2>/dev/null || echo unknown` 2033uname -r = `(uname -r) 2>/dev/null || echo unknown` 2034uname -s = `(uname -s) 2>/dev/null || echo unknown` 2035uname -v = `(uname -v) 2>/dev/null || echo unknown` 2036 2037/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2038/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2039 2040/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2041/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2042/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2043/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2044/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2045/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2046/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2047 2048_ASUNAME 2049 2050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2051for as_dir in $PATH 2052do 2053 IFS=$as_save_IFS 2054 test -z "$as_dir" && as_dir=. 2055 $as_echo "PATH: $as_dir" 2056 done 2057IFS=$as_save_IFS 2058 2059} >&5 2060 2061cat >&5 <<_ACEOF 2062 2063 2064## ----------- ## 2065## Core tests. ## 2066## ----------- ## 2067 2068_ACEOF 2069 2070 2071# Keep a trace of the command line. 2072# Strip out --no-create and --no-recursion so they do not pile up. 2073# Strip out --silent because we don't want to record it for future runs. 2074# Also quote any args containing shell meta-characters. 2075# Make two passes to allow for proper duplicate-argument suppression. 2076ac_configure_args= 2077ac_configure_args0= 2078ac_configure_args1= 2079ac_must_keep_next=false 2080for ac_pass in 1 2 2081do 2082 for ac_arg 2083 do 2084 case $ac_arg in 2085 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2087 | -silent | --silent | --silen | --sile | --sil) 2088 continue ;; 2089 *\'*) 2090 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2091 esac 2092 case $ac_pass in 2093 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2094 2) 2095 as_fn_append ac_configure_args1 " '$ac_arg'" 2096 if test $ac_must_keep_next = true; then 2097 ac_must_keep_next=false # Got value, back to normal. 2098 else 2099 case $ac_arg in 2100 *=* | --config-cache | -C | -disable-* | --disable-* \ 2101 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2102 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2103 | -with-* | --with-* | -without-* | --without-* | --x) 2104 case "$ac_configure_args0 " in 2105 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2106 esac 2107 ;; 2108 -* ) ac_must_keep_next=true ;; 2109 esac 2110 fi 2111 as_fn_append ac_configure_args " '$ac_arg'" 2112 ;; 2113 esac 2114 done 2115done 2116{ ac_configure_args0=; unset ac_configure_args0;} 2117{ ac_configure_args1=; unset ac_configure_args1;} 2118 2119# When interrupted or exit'd, cleanup temporary files, and complete 2120# config.log. We remove comments because anyway the quotes in there 2121# would cause problems or look ugly. 2122# WARNING: Use '\'' to represent an apostrophe within the trap. 2123# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2124trap 'exit_status=$? 2125 # Save into config.log some information that might help in debugging. 2126 { 2127 echo 2128 2129 $as_echo "## ---------------- ## 2130## Cache variables. ## 2131## ---------------- ##" 2132 echo 2133 # The following way of writing the cache mishandles newlines in values, 2134( 2135 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2136 eval ac_val=\$$ac_var 2137 case $ac_val in #( 2138 *${as_nl}*) 2139 case $ac_var in #( 2140 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2141$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2142 esac 2143 case $ac_var in #( 2144 _ | IFS | as_nl) ;; #( 2145 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2146 *) { eval $ac_var=; unset $ac_var;} ;; 2147 esac ;; 2148 esac 2149 done 2150 (set) 2>&1 | 2151 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2152 *${as_nl}ac_space=\ *) 2153 sed -n \ 2154 "s/'\''/'\''\\\\'\'''\''/g; 2155 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2156 ;; #( 2157 *) 2158 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2159 ;; 2160 esac | 2161 sort 2162) 2163 echo 2164 2165 $as_echo "## ----------------- ## 2166## Output variables. ## 2167## ----------------- ##" 2168 echo 2169 for ac_var in $ac_subst_vars 2170 do 2171 eval ac_val=\$$ac_var 2172 case $ac_val in 2173 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2174 esac 2175 $as_echo "$ac_var='\''$ac_val'\''" 2176 done | sort 2177 echo 2178 2179 if test -n "$ac_subst_files"; then 2180 $as_echo "## ------------------- ## 2181## File substitutions. ## 2182## ------------------- ##" 2183 echo 2184 for ac_var in $ac_subst_files 2185 do 2186 eval ac_val=\$$ac_var 2187 case $ac_val in 2188 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2189 esac 2190 $as_echo "$ac_var='\''$ac_val'\''" 2191 done | sort 2192 echo 2193 fi 2194 2195 if test -s confdefs.h; then 2196 $as_echo "## ----------- ## 2197## confdefs.h. ## 2198## ----------- ##" 2199 echo 2200 cat confdefs.h 2201 echo 2202 fi 2203 test "$ac_signal" != 0 && 2204 $as_echo "$as_me: caught signal $ac_signal" 2205 $as_echo "$as_me: exit $exit_status" 2206 } >&5 2207 rm -f core *.core core.conftest.* && 2208 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2209 exit $exit_status 2210' 0 2211for ac_signal in 1 2 13 15; do 2212 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2213done 2214ac_signal=0 2215 2216# confdefs.h avoids OS command line length limits that DEFS can exceed. 2217rm -f -r conftest* confdefs.h 2218 2219$as_echo "/* confdefs.h */" > confdefs.h 2220 2221# Predefined preprocessor variables. 2222 2223cat >>confdefs.h <<_ACEOF 2224#define PACKAGE_NAME "$PACKAGE_NAME" 2225_ACEOF 2226 2227cat >>confdefs.h <<_ACEOF 2228#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2229_ACEOF 2230 2231cat >>confdefs.h <<_ACEOF 2232#define PACKAGE_VERSION "$PACKAGE_VERSION" 2233_ACEOF 2234 2235cat >>confdefs.h <<_ACEOF 2236#define PACKAGE_STRING "$PACKAGE_STRING" 2237_ACEOF 2238 2239cat >>confdefs.h <<_ACEOF 2240#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2241_ACEOF 2242 2243cat >>confdefs.h <<_ACEOF 2244#define PACKAGE_URL "$PACKAGE_URL" 2245_ACEOF 2246 2247 2248# Let the site file select an alternate cache file if it wants to. 2249# Prefer an explicitly selected file to automatically selected ones. 2250ac_site_file1=NONE 2251ac_site_file2=NONE 2252if test -n "$CONFIG_SITE"; then 2253 # We do not want a PATH search for config.site. 2254 case $CONFIG_SITE in #(( 2255 -*) ac_site_file1=./$CONFIG_SITE;; 2256 */*) ac_site_file1=$CONFIG_SITE;; 2257 *) ac_site_file1=./$CONFIG_SITE;; 2258 esac 2259elif test "x$prefix" != xNONE; then 2260 ac_site_file1=$prefix/share/config.site 2261 ac_site_file2=$prefix/etc/config.site 2262else 2263 ac_site_file1=$ac_default_prefix/share/config.site 2264 ac_site_file2=$ac_default_prefix/etc/config.site 2265fi 2266for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2267do 2268 test "x$ac_site_file" = xNONE && continue 2269 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2270 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2271$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2272 sed 's/^/| /' "$ac_site_file" >&5 2273 . "$ac_site_file" \ 2274 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2276as_fn_error $? "failed to load site script $ac_site_file 2277See \`config.log' for more details" "$LINENO" 5; } 2278 fi 2279done 2280 2281if test -r "$cache_file"; then 2282 # Some versions of bash will fail to source /dev/null (special files 2283 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2284 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2285 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2286$as_echo "$as_me: loading cache $cache_file" >&6;} 2287 case $cache_file in 2288 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2289 *) . "./$cache_file";; 2290 esac 2291 fi 2292else 2293 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2294$as_echo "$as_me: creating cache $cache_file" >&6;} 2295 >$cache_file 2296fi 2297 2298# Check that the precious variables saved in the cache have kept the same 2299# value. 2300ac_cache_corrupted=false 2301for ac_var in $ac_precious_vars; do 2302 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2303 eval ac_new_set=\$ac_env_${ac_var}_set 2304 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2305 eval ac_new_val=\$ac_env_${ac_var}_value 2306 case $ac_old_set,$ac_new_set in 2307 set,) 2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2309$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2310 ac_cache_corrupted=: ;; 2311 ,set) 2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2313$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2314 ac_cache_corrupted=: ;; 2315 ,);; 2316 *) 2317 if test "x$ac_old_val" != "x$ac_new_val"; then 2318 # differences in whitespace do not lead to failure. 2319 ac_old_val_w=`echo x $ac_old_val` 2320 ac_new_val_w=`echo x $ac_new_val` 2321 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2322 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2323$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2324 ac_cache_corrupted=: 2325 else 2326 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2327$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2328 eval $ac_var=\$ac_old_val 2329 fi 2330 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2331$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2332 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2333$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2334 fi;; 2335 esac 2336 # Pass precious variables to config.status. 2337 if test "$ac_new_set" = set; then 2338 case $ac_new_val in 2339 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2340 *) ac_arg=$ac_var=$ac_new_val ;; 2341 esac 2342 case " $ac_configure_args " in 2343 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2344 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2345 esac 2346 fi 2347done 2348if $ac_cache_corrupted; then 2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2351 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2352$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2353 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2354fi 2355## -------------------- ## 2356## Main body of script. ## 2357## -------------------- ## 2358 2359ac_ext=c 2360ac_cpp='$CPP $CPPFLAGS' 2361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2363ac_compiler_gnu=$ac_cv_c_compiler_gnu 2364 2365 2366 2367ac_aux_dir= 2368for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2369 if test -f "$ac_dir/install-sh"; then 2370 ac_aux_dir=$ac_dir 2371 ac_install_sh="$ac_aux_dir/install-sh -c" 2372 break 2373 elif test -f "$ac_dir/install.sh"; then 2374 ac_aux_dir=$ac_dir 2375 ac_install_sh="$ac_aux_dir/install.sh -c" 2376 break 2377 elif test -f "$ac_dir/shtool"; then 2378 ac_aux_dir=$ac_dir 2379 ac_install_sh="$ac_aux_dir/shtool install -c" 2380 break 2381 fi 2382done 2383if test -z "$ac_aux_dir"; then 2384 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2385fi 2386 2387# These three variables are undocumented and unsupported, 2388# and are intended to be withdrawn in a future Autoconf release. 2389# They can cause serious problems if a builder's source tree is in a directory 2390# whose full name contains unusual characters. 2391ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2392ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2393ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2394 2395 2396# Make sure we can run config.sub. 2397$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2398 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2399 2400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2401$as_echo_n "checking build system type... " >&6; } 2402if ${ac_cv_build+:} false; then : 2403 $as_echo_n "(cached) " >&6 2404else 2405 ac_build_alias=$build_alias 2406test "x$ac_build_alias" = x && 2407 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2408test "x$ac_build_alias" = x && 2409 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2410ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2411 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2412 2413fi 2414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2415$as_echo "$ac_cv_build" >&6; } 2416case $ac_cv_build in 2417*-*-*) ;; 2418*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2419esac 2420build=$ac_cv_build 2421ac_save_IFS=$IFS; IFS='-' 2422set x $ac_cv_build 2423shift 2424build_cpu=$1 2425build_vendor=$2 2426shift; shift 2427# Remember, the first character of IFS is used to create $*, 2428# except with old shells: 2429build_os=$* 2430IFS=$ac_save_IFS 2431case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2432 2433 2434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2435$as_echo_n "checking host system type... " >&6; } 2436if ${ac_cv_host+:} false; then : 2437 $as_echo_n "(cached) " >&6 2438else 2439 if test "x$host_alias" = x; then 2440 ac_cv_host=$ac_cv_build 2441else 2442 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2443 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2444fi 2445 2446fi 2447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2448$as_echo "$ac_cv_host" >&6; } 2449case $ac_cv_host in 2450*-*-*) ;; 2451*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2452esac 2453host=$ac_cv_host 2454ac_save_IFS=$IFS; IFS='-' 2455set x $ac_cv_host 2456shift 2457host_cpu=$1 2458host_vendor=$2 2459shift; shift 2460# Remember, the first character of IFS is used to create $*, 2461# except with old shells: 2462host_os=$* 2463IFS=$ac_save_IFS 2464case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2465 2466 2467am__api_version='1.16' 2468 2469# Find a good install program. We prefer a C program (faster), 2470# so one script is as good as another. But avoid the broken or 2471# incompatible versions: 2472# SysV /etc/install, /usr/sbin/install 2473# SunOS /usr/etc/install 2474# IRIX /sbin/install 2475# AIX /bin/install 2476# AmigaOS /C/install, which installs bootblocks on floppy discs 2477# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2478# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2479# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2480# OS/2's system install, which has a completely different semantic 2481# ./install, which can be erroneously created by make from ./install.sh. 2482# Reject install programs that cannot install multiple files. 2483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2484$as_echo_n "checking for a BSD-compatible install... " >&6; } 2485if test -z "$INSTALL"; then 2486if ${ac_cv_path_install+:} false; then : 2487 $as_echo_n "(cached) " >&6 2488else 2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2490for as_dir in $PATH 2491do 2492 IFS=$as_save_IFS 2493 test -z "$as_dir" && as_dir=. 2494 # Account for people who put trailing slashes in PATH elements. 2495case $as_dir/ in #(( 2496 ./ | .// | /[cC]/* | \ 2497 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2498 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2499 /usr/ucb/* ) ;; 2500 *) 2501 # OSF1 and SCO ODT 3.0 have their own names for install. 2502 # Don't use installbsd from OSF since it installs stuff as root 2503 # by default. 2504 for ac_prog in ginstall scoinst install; do 2505 for ac_exec_ext in '' $ac_executable_extensions; do 2506 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2507 if test $ac_prog = install && 2508 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2509 # AIX install. It has an incompatible calling convention. 2510 : 2511 elif test $ac_prog = install && 2512 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2513 # program-specific install script used by HP pwplus--don't use. 2514 : 2515 else 2516 rm -rf conftest.one conftest.two conftest.dir 2517 echo one > conftest.one 2518 echo two > conftest.two 2519 mkdir conftest.dir 2520 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2521 test -s conftest.one && test -s conftest.two && 2522 test -s conftest.dir/conftest.one && 2523 test -s conftest.dir/conftest.two 2524 then 2525 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2526 break 3 2527 fi 2528 fi 2529 fi 2530 done 2531 done 2532 ;; 2533esac 2534 2535 done 2536IFS=$as_save_IFS 2537 2538rm -rf conftest.one conftest.two conftest.dir 2539 2540fi 2541 if test "${ac_cv_path_install+set}" = set; then 2542 INSTALL=$ac_cv_path_install 2543 else 2544 # As a last resort, use the slow shell script. Don't cache a 2545 # value for INSTALL within a source directory, because that will 2546 # break other packages using the cache if that directory is 2547 # removed, or if the value is a relative name. 2548 INSTALL=$ac_install_sh 2549 fi 2550fi 2551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2552$as_echo "$INSTALL" >&6; } 2553 2554# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2555# It thinks the first close brace ends the variable substitution. 2556test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2557 2558test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2559 2560test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2561 2562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2563$as_echo_n "checking whether build environment is sane... " >&6; } 2564# Reject unsafe characters in $srcdir or the absolute working directory 2565# name. Accept space and tab only in the latter. 2566am_lf=' 2567' 2568case `pwd` in 2569 *[\\\"\#\$\&\'\`$am_lf]*) 2570 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2571esac 2572case $srcdir in 2573 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2574 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2575esac 2576 2577# Do 'set' in a subshell so we don't clobber the current shell's 2578# arguments. Must try -L first in case configure is actually a 2579# symlink; some systems play weird games with the mod time of symlinks 2580# (eg FreeBSD returns the mod time of the symlink's containing 2581# directory). 2582if ( 2583 am_has_slept=no 2584 for am_try in 1 2; do 2585 echo "timestamp, slept: $am_has_slept" > conftest.file 2586 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2587 if test "$*" = "X"; then 2588 # -L didn't work. 2589 set X `ls -t "$srcdir/configure" conftest.file` 2590 fi 2591 if test "$*" != "X $srcdir/configure conftest.file" \ 2592 && test "$*" != "X conftest.file $srcdir/configure"; then 2593 2594 # If neither matched, then we have a broken ls. This can happen 2595 # if, for instance, CONFIG_SHELL is bash and it inherits a 2596 # broken ls alias from the environment. This has actually 2597 # happened. Such a system could not be considered "sane". 2598 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2599 alias in your environment" "$LINENO" 5 2600 fi 2601 if test "$2" = conftest.file || test $am_try -eq 2; then 2602 break 2603 fi 2604 # Just in case. 2605 sleep 1 2606 am_has_slept=yes 2607 done 2608 test "$2" = conftest.file 2609 ) 2610then 2611 # Ok. 2612 : 2613else 2614 as_fn_error $? "newly created file is older than distributed files! 2615Check your system clock" "$LINENO" 5 2616fi 2617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2618$as_echo "yes" >&6; } 2619# If we didn't sleep, we still need to ensure time stamps of config.status and 2620# generated files are strictly newer. 2621am_sleep_pid= 2622if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2623 ( sleep 1 ) & 2624 am_sleep_pid=$! 2625fi 2626 2627rm -f conftest.file 2628 2629test "$program_prefix" != NONE && 2630 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2631# Use a double $ so make ignores it. 2632test "$program_suffix" != NONE && 2633 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2634# Double any \ or $. 2635# By default was `s,x,x', remove it if useless. 2636ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2637program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2638 2639# Expand $ac_aux_dir to an absolute path. 2640am_aux_dir=`cd "$ac_aux_dir" && pwd` 2641 2642if test x"${MISSING+set}" != xset; then 2643 case $am_aux_dir in 2644 *\ * | *\ *) 2645 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2646 *) 2647 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2648 esac 2649fi 2650# Use eval to expand $SHELL 2651if eval "$MISSING --is-lightweight"; then 2652 am_missing_run="$MISSING " 2653else 2654 am_missing_run= 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2656$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2657fi 2658 2659if test x"${install_sh+set}" != xset; then 2660 case $am_aux_dir in 2661 *\ * | *\ *) 2662 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2663 *) 2664 install_sh="\${SHELL} $am_aux_dir/install-sh" 2665 esac 2666fi 2667 2668# Installed binaries are usually stripped using 'strip' when the user 2669# run "make install-strip". However 'strip' might not be the right 2670# tool to use in cross-compilation environments, therefore Automake 2671# will honor the 'STRIP' environment variable to overrule this program. 2672if test "$cross_compiling" != no; then 2673 if test -n "$ac_tool_prefix"; then 2674 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2675set dummy ${ac_tool_prefix}strip; ac_word=$2 2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2677$as_echo_n "checking for $ac_word... " >&6; } 2678if ${ac_cv_prog_STRIP+:} false; then : 2679 $as_echo_n "(cached) " >&6 2680else 2681 if test -n "$STRIP"; then 2682 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2683else 2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2685for as_dir in $PATH 2686do 2687 IFS=$as_save_IFS 2688 test -z "$as_dir" && as_dir=. 2689 for ac_exec_ext in '' $ac_executable_extensions; do 2690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2691 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2693 break 2 2694 fi 2695done 2696 done 2697IFS=$as_save_IFS 2698 2699fi 2700fi 2701STRIP=$ac_cv_prog_STRIP 2702if test -n "$STRIP"; then 2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2704$as_echo "$STRIP" >&6; } 2705else 2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2707$as_echo "no" >&6; } 2708fi 2709 2710 2711fi 2712if test -z "$ac_cv_prog_STRIP"; then 2713 ac_ct_STRIP=$STRIP 2714 # Extract the first word of "strip", so it can be a program name with args. 2715set dummy strip; ac_word=$2 2716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2717$as_echo_n "checking for $ac_word... " >&6; } 2718if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2719 $as_echo_n "(cached) " >&6 2720else 2721 if test -n "$ac_ct_STRIP"; then 2722 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2723else 2724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2725for as_dir in $PATH 2726do 2727 IFS=$as_save_IFS 2728 test -z "$as_dir" && as_dir=. 2729 for ac_exec_ext in '' $ac_executable_extensions; do 2730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2731 ac_cv_prog_ac_ct_STRIP="strip" 2732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2733 break 2 2734 fi 2735done 2736 done 2737IFS=$as_save_IFS 2738 2739fi 2740fi 2741ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2742if test -n "$ac_ct_STRIP"; then 2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2744$as_echo "$ac_ct_STRIP" >&6; } 2745else 2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2747$as_echo "no" >&6; } 2748fi 2749 2750 if test "x$ac_ct_STRIP" = x; then 2751 STRIP=":" 2752 else 2753 case $cross_compiling:$ac_tool_warned in 2754yes:) 2755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2757ac_tool_warned=yes ;; 2758esac 2759 STRIP=$ac_ct_STRIP 2760 fi 2761else 2762 STRIP="$ac_cv_prog_STRIP" 2763fi 2764 2765fi 2766INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2767 2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2769$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2770if test -z "$MKDIR_P"; then 2771 if ${ac_cv_path_mkdir+:} false; then : 2772 $as_echo_n "(cached) " >&6 2773else 2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2775for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2776do 2777 IFS=$as_save_IFS 2778 test -z "$as_dir" && as_dir=. 2779 for ac_prog in mkdir gmkdir; do 2780 for ac_exec_ext in '' $ac_executable_extensions; do 2781 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2782 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2783 'mkdir (GNU coreutils) '* | \ 2784 'mkdir (coreutils) '* | \ 2785 'mkdir (fileutils) '4.1*) 2786 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2787 break 3;; 2788 esac 2789 done 2790 done 2791 done 2792IFS=$as_save_IFS 2793 2794fi 2795 2796 test -d ./--version && rmdir ./--version 2797 if test "${ac_cv_path_mkdir+set}" = set; then 2798 MKDIR_P="$ac_cv_path_mkdir -p" 2799 else 2800 # As a last resort, use the slow shell script. Don't cache a 2801 # value for MKDIR_P within a source directory, because that will 2802 # break other packages using the cache if that directory is 2803 # removed, or if the value is a relative name. 2804 MKDIR_P="$ac_install_sh -d" 2805 fi 2806fi 2807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2808$as_echo "$MKDIR_P" >&6; } 2809 2810for ac_prog in gawk mawk nawk awk 2811do 2812 # Extract the first word of "$ac_prog", so it can be a program name with args. 2813set dummy $ac_prog; ac_word=$2 2814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2815$as_echo_n "checking for $ac_word... " >&6; } 2816if ${ac_cv_prog_AWK+:} false; then : 2817 $as_echo_n "(cached) " >&6 2818else 2819 if test -n "$AWK"; then 2820 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2821else 2822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2823for as_dir in $PATH 2824do 2825 IFS=$as_save_IFS 2826 test -z "$as_dir" && as_dir=. 2827 for ac_exec_ext in '' $ac_executable_extensions; do 2828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2829 ac_cv_prog_AWK="$ac_prog" 2830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2831 break 2 2832 fi 2833done 2834 done 2835IFS=$as_save_IFS 2836 2837fi 2838fi 2839AWK=$ac_cv_prog_AWK 2840if test -n "$AWK"; then 2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2842$as_echo "$AWK" >&6; } 2843else 2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2845$as_echo "no" >&6; } 2846fi 2847 2848 2849 test -n "$AWK" && break 2850done 2851 2852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2853$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2854set x ${MAKE-make} 2855ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2856if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2857 $as_echo_n "(cached) " >&6 2858else 2859 cat >conftest.make <<\_ACEOF 2860SHELL = /bin/sh 2861all: 2862 @echo '@@@%%%=$(MAKE)=@@@%%%' 2863_ACEOF 2864# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2865case `${MAKE-make} -f conftest.make 2>/dev/null` in 2866 *@@@%%%=?*=@@@%%%*) 2867 eval ac_cv_prog_make_${ac_make}_set=yes;; 2868 *) 2869 eval ac_cv_prog_make_${ac_make}_set=no;; 2870esac 2871rm -f conftest.make 2872fi 2873if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2875$as_echo "yes" >&6; } 2876 SET_MAKE= 2877else 2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2879$as_echo "no" >&6; } 2880 SET_MAKE="MAKE=${MAKE-make}" 2881fi 2882 2883rm -rf .tst 2>/dev/null 2884mkdir .tst 2>/dev/null 2885if test -d .tst; then 2886 am__leading_dot=. 2887else 2888 am__leading_dot=_ 2889fi 2890rmdir .tst 2>/dev/null 2891 2892# Check whether --enable-silent-rules was given. 2893if test "${enable_silent_rules+set}" = set; then : 2894 enableval=$enable_silent_rules; 2895fi 2896 2897case $enable_silent_rules in # ((( 2898 yes) AM_DEFAULT_VERBOSITY=0;; 2899 no) AM_DEFAULT_VERBOSITY=1;; 2900 *) AM_DEFAULT_VERBOSITY=1;; 2901esac 2902am_make=${MAKE-make} 2903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2904$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2905if ${am_cv_make_support_nested_variables+:} false; then : 2906 $as_echo_n "(cached) " >&6 2907else 2908 if $as_echo 'TRUE=$(BAR$(V)) 2909BAR0=false 2910BAR1=true 2911V=1 2912am__doit: 2913 @$(TRUE) 2914.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2915 am_cv_make_support_nested_variables=yes 2916else 2917 am_cv_make_support_nested_variables=no 2918fi 2919fi 2920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2921$as_echo "$am_cv_make_support_nested_variables" >&6; } 2922if test $am_cv_make_support_nested_variables = yes; then 2923 AM_V='$(V)' 2924 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2925else 2926 AM_V=$AM_DEFAULT_VERBOSITY 2927 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2928fi 2929AM_BACKSLASH='\' 2930 2931if test "`cd $srcdir && pwd`" != "`pwd`"; then 2932 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2933 # is not polluted with repeated "-I." 2934 am__isrc=' -I$(srcdir)' 2935 # test to see if srcdir already configured 2936 if test -f $srcdir/config.status; then 2937 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2938 fi 2939fi 2940 2941# test whether we have cygpath 2942if test -z "$CYGPATH_W"; then 2943 if (cygpath --version) >/dev/null 2>/dev/null; then 2944 CYGPATH_W='cygpath -w' 2945 else 2946 CYGPATH_W=echo 2947 fi 2948fi 2949 2950 2951# Define the identity of the package. 2952 PACKAGE='openntpd' 2953 VERSION='6.8p1' 2954 2955 2956cat >>confdefs.h <<_ACEOF 2957#define PACKAGE "$PACKAGE" 2958_ACEOF 2959 2960 2961cat >>confdefs.h <<_ACEOF 2962#define VERSION "$VERSION" 2963_ACEOF 2964 2965# Some tools Automake needs. 2966 2967ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2968 2969 2970AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2971 2972 2973AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2974 2975 2976AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2977 2978 2979MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2980 2981# For better backward compatibility. To be removed once Automake 1.9.x 2982# dies out for good. For more background, see: 2983# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2984# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2985mkdir_p='$(MKDIR_P)' 2986 2987# We need awk for the "check" target (and possibly the TAP driver). The 2988# system "awk" is bad on some platforms. 2989# Always define AMTAR for backward compatibility. Yes, it's still used 2990# in the wild :-( We should find a proper way to deprecate it ... 2991AMTAR='$${TAR-tar}' 2992 2993 2994# We'll loop over all known methods to create a tar archive until one works. 2995_am_tools='gnutar pax cpio none' 2996 2997am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2998 2999 3000 3001 3002 3003 3004# POSIX will say in a future version that running "rm -f" with no argument 3005# is OK; and we want to be able to make that assumption in our Makefile 3006# recipes. So use an aggressive probe to check that the usage we want is 3007# actually supported "in the wild" to an acceptable degree. 3008# See automake bug#10828. 3009# To make any issue more visible, cause the running configure to be aborted 3010# by default if the 'rm' program in use doesn't match our expectations; the 3011# user can still override this though. 3012if rm -f && rm -fr && rm -rf; then : OK; else 3013 cat >&2 <<'END' 3014Oops! 3015 3016Your 'rm' program seems unable to run without file operands specified 3017on the command line, even when the '-f' option is present. This is contrary 3018to the behaviour of most rm programs out there, and not conforming with 3019the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3020 3021Please tell bug-automake@gnu.org about your system, including the value 3022of your $PATH and any error possibly output before this message. This 3023can help us improve future automake versions. 3024 3025END 3026 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3027 echo 'Configuration will proceed anyway, since you have set the' >&2 3028 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3029 echo >&2 3030 else 3031 cat >&2 <<'END' 3032Aborting the configuration process, to ensure you take notice of the issue. 3033 3034You can download and install GNU coreutils to get an 'rm' implementation 3035that behaves properly: <https://www.gnu.org/software/coreutils/>. 3036 3037If you want to complete the configuration process using your problematic 3038'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3039to "yes", and re-run configure. 3040 3041END 3042 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3043 fi 3044fi 3045 3046 3047 3048# Check whether --enable-silent-rules was given. 3049if test "${enable_silent_rules+set}" = set; then : 3050 enableval=$enable_silent_rules; 3051fi 3052 3053case $enable_silent_rules in # ((( 3054 yes) AM_DEFAULT_VERBOSITY=0;; 3055 no) AM_DEFAULT_VERBOSITY=1;; 3056 *) AM_DEFAULT_VERBOSITY=0;; 3057esac 3058am_make=${MAKE-make} 3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3060$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3061if ${am_cv_make_support_nested_variables+:} false; then : 3062 $as_echo_n "(cached) " >&6 3063else 3064 if $as_echo 'TRUE=$(BAR$(V)) 3065BAR0=false 3066BAR1=true 3067V=1 3068am__doit: 3069 @$(TRUE) 3070.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3071 am_cv_make_support_nested_variables=yes 3072else 3073 am_cv_make_support_nested_variables=no 3074fi 3075fi 3076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3077$as_echo "$am_cv_make_support_nested_variables" >&6; } 3078if test $am_cv_make_support_nested_variables = yes; then 3079 AM_V='$(V)' 3080 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3081else 3082 AM_V=$AM_DEFAULT_VERBOSITY 3083 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3084fi 3085AM_BACKSLASH='\' 3086 3087 3088ac_ext=c 3089ac_cpp='$CPP $CPPFLAGS' 3090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3092ac_compiler_gnu=$ac_cv_c_compiler_gnu 3093if test -n "$ac_tool_prefix"; then 3094 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3095set dummy ${ac_tool_prefix}gcc; ac_word=$2 3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3097$as_echo_n "checking for $ac_word... " >&6; } 3098if ${ac_cv_prog_CC+:} false; then : 3099 $as_echo_n "(cached) " >&6 3100else 3101 if test -n "$CC"; then 3102 ac_cv_prog_CC="$CC" # Let the user override the test. 3103else 3104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3105for as_dir in $PATH 3106do 3107 IFS=$as_save_IFS 3108 test -z "$as_dir" && as_dir=. 3109 for ac_exec_ext in '' $ac_executable_extensions; do 3110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3111 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3113 break 2 3114 fi 3115done 3116 done 3117IFS=$as_save_IFS 3118 3119fi 3120fi 3121CC=$ac_cv_prog_CC 3122if test -n "$CC"; then 3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3124$as_echo "$CC" >&6; } 3125else 3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3127$as_echo "no" >&6; } 3128fi 3129 3130 3131fi 3132if test -z "$ac_cv_prog_CC"; then 3133 ac_ct_CC=$CC 3134 # Extract the first word of "gcc", so it can be a program name with args. 3135set dummy gcc; ac_word=$2 3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3137$as_echo_n "checking for $ac_word... " >&6; } 3138if ${ac_cv_prog_ac_ct_CC+:} false; then : 3139 $as_echo_n "(cached) " >&6 3140else 3141 if test -n "$ac_ct_CC"; then 3142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3143else 3144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3145for as_dir in $PATH 3146do 3147 IFS=$as_save_IFS 3148 test -z "$as_dir" && as_dir=. 3149 for ac_exec_ext in '' $ac_executable_extensions; do 3150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3151 ac_cv_prog_ac_ct_CC="gcc" 3152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3153 break 2 3154 fi 3155done 3156 done 3157IFS=$as_save_IFS 3158 3159fi 3160fi 3161ac_ct_CC=$ac_cv_prog_ac_ct_CC 3162if test -n "$ac_ct_CC"; then 3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3164$as_echo "$ac_ct_CC" >&6; } 3165else 3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3167$as_echo "no" >&6; } 3168fi 3169 3170 if test "x$ac_ct_CC" = x; then 3171 CC="" 3172 else 3173 case $cross_compiling:$ac_tool_warned in 3174yes:) 3175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3177ac_tool_warned=yes ;; 3178esac 3179 CC=$ac_ct_CC 3180 fi 3181else 3182 CC="$ac_cv_prog_CC" 3183fi 3184 3185if test -z "$CC"; then 3186 if test -n "$ac_tool_prefix"; then 3187 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3188set dummy ${ac_tool_prefix}cc; ac_word=$2 3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3190$as_echo_n "checking for $ac_word... " >&6; } 3191if ${ac_cv_prog_CC+:} false; then : 3192 $as_echo_n "(cached) " >&6 3193else 3194 if test -n "$CC"; then 3195 ac_cv_prog_CC="$CC" # Let the user override the test. 3196else 3197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3198for as_dir in $PATH 3199do 3200 IFS=$as_save_IFS 3201 test -z "$as_dir" && as_dir=. 3202 for ac_exec_ext in '' $ac_executable_extensions; do 3203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3204 ac_cv_prog_CC="${ac_tool_prefix}cc" 3205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3206 break 2 3207 fi 3208done 3209 done 3210IFS=$as_save_IFS 3211 3212fi 3213fi 3214CC=$ac_cv_prog_CC 3215if test -n "$CC"; then 3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3217$as_echo "$CC" >&6; } 3218else 3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3220$as_echo "no" >&6; } 3221fi 3222 3223 3224 fi 3225fi 3226if test -z "$CC"; then 3227 # Extract the first word of "cc", so it can be a program name with args. 3228set dummy cc; ac_word=$2 3229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3230$as_echo_n "checking for $ac_word... " >&6; } 3231if ${ac_cv_prog_CC+:} false; then : 3232 $as_echo_n "(cached) " >&6 3233else 3234 if test -n "$CC"; then 3235 ac_cv_prog_CC="$CC" # Let the user override the test. 3236else 3237 ac_prog_rejected=no 3238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3239for as_dir in $PATH 3240do 3241 IFS=$as_save_IFS 3242 test -z "$as_dir" && as_dir=. 3243 for ac_exec_ext in '' $ac_executable_extensions; do 3244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3245 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3246 ac_prog_rejected=yes 3247 continue 3248 fi 3249 ac_cv_prog_CC="cc" 3250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3251 break 2 3252 fi 3253done 3254 done 3255IFS=$as_save_IFS 3256 3257if test $ac_prog_rejected = yes; then 3258 # We found a bogon in the path, so make sure we never use it. 3259 set dummy $ac_cv_prog_CC 3260 shift 3261 if test $# != 0; then 3262 # We chose a different compiler from the bogus one. 3263 # However, it has the same basename, so the bogon will be chosen 3264 # first if we set CC to just the basename; use the full file name. 3265 shift 3266 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3267 fi 3268fi 3269fi 3270fi 3271CC=$ac_cv_prog_CC 3272if test -n "$CC"; then 3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3274$as_echo "$CC" >&6; } 3275else 3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3277$as_echo "no" >&6; } 3278fi 3279 3280 3281fi 3282if test -z "$CC"; then 3283 if test -n "$ac_tool_prefix"; then 3284 for ac_prog in cl.exe 3285 do 3286 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3287set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3289$as_echo_n "checking for $ac_word... " >&6; } 3290if ${ac_cv_prog_CC+:} false; then : 3291 $as_echo_n "(cached) " >&6 3292else 3293 if test -n "$CC"; then 3294 ac_cv_prog_CC="$CC" # Let the user override the test. 3295else 3296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3297for as_dir in $PATH 3298do 3299 IFS=$as_save_IFS 3300 test -z "$as_dir" && as_dir=. 3301 for ac_exec_ext in '' $ac_executable_extensions; do 3302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3303 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3305 break 2 3306 fi 3307done 3308 done 3309IFS=$as_save_IFS 3310 3311fi 3312fi 3313CC=$ac_cv_prog_CC 3314if test -n "$CC"; then 3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3316$as_echo "$CC" >&6; } 3317else 3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3319$as_echo "no" >&6; } 3320fi 3321 3322 3323 test -n "$CC" && break 3324 done 3325fi 3326if test -z "$CC"; then 3327 ac_ct_CC=$CC 3328 for ac_prog in cl.exe 3329do 3330 # Extract the first word of "$ac_prog", so it can be a program name with args. 3331set dummy $ac_prog; ac_word=$2 3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3333$as_echo_n "checking for $ac_word... " >&6; } 3334if ${ac_cv_prog_ac_ct_CC+:} false; then : 3335 $as_echo_n "(cached) " >&6 3336else 3337 if test -n "$ac_ct_CC"; then 3338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3339else 3340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3341for as_dir in $PATH 3342do 3343 IFS=$as_save_IFS 3344 test -z "$as_dir" && as_dir=. 3345 for ac_exec_ext in '' $ac_executable_extensions; do 3346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3347 ac_cv_prog_ac_ct_CC="$ac_prog" 3348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3349 break 2 3350 fi 3351done 3352 done 3353IFS=$as_save_IFS 3354 3355fi 3356fi 3357ac_ct_CC=$ac_cv_prog_ac_ct_CC 3358if test -n "$ac_ct_CC"; then 3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3360$as_echo "$ac_ct_CC" >&6; } 3361else 3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3363$as_echo "no" >&6; } 3364fi 3365 3366 3367 test -n "$ac_ct_CC" && break 3368done 3369 3370 if test "x$ac_ct_CC" = x; then 3371 CC="" 3372 else 3373 case $cross_compiling:$ac_tool_warned in 3374yes:) 3375{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3376$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3377ac_tool_warned=yes ;; 3378esac 3379 CC=$ac_ct_CC 3380 fi 3381fi 3382 3383fi 3384 3385 3386test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3388as_fn_error $? "no acceptable C compiler found in \$PATH 3389See \`config.log' for more details" "$LINENO" 5; } 3390 3391# Provide some information about the compiler. 3392$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3393set X $ac_compile 3394ac_compiler=$2 3395for ac_option in --version -v -V -qversion; do 3396 { { ac_try="$ac_compiler $ac_option >&5" 3397case "(($ac_try" in 3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3399 *) ac_try_echo=$ac_try;; 3400esac 3401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3402$as_echo "$ac_try_echo"; } >&5 3403 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3404 ac_status=$? 3405 if test -s conftest.err; then 3406 sed '10a\ 3407... rest of stderr output deleted ... 3408 10q' conftest.err >conftest.er1 3409 cat conftest.er1 >&5 3410 fi 3411 rm -f conftest.er1 conftest.err 3412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3413 test $ac_status = 0; } 3414done 3415 3416cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3417/* end confdefs.h. */ 3418 3419int 3420main () 3421{ 3422 3423 ; 3424 return 0; 3425} 3426_ACEOF 3427ac_clean_files_save=$ac_clean_files 3428ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3429# Try to create an executable without -o first, disregard a.out. 3430# It will help us diagnose broken compilers, and finding out an intuition 3431# of exeext. 3432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3433$as_echo_n "checking whether the C compiler works... " >&6; } 3434ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3435 3436# The possible output files: 3437ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3438 3439ac_rmfiles= 3440for ac_file in $ac_files 3441do 3442 case $ac_file in 3443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3444 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3445 esac 3446done 3447rm -f $ac_rmfiles 3448 3449if { { ac_try="$ac_link_default" 3450case "(($ac_try" in 3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3452 *) ac_try_echo=$ac_try;; 3453esac 3454eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3455$as_echo "$ac_try_echo"; } >&5 3456 (eval "$ac_link_default") 2>&5 3457 ac_status=$? 3458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3459 test $ac_status = 0; }; then : 3460 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3461# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3462# in a Makefile. We should not override ac_cv_exeext if it was cached, 3463# so that the user can short-circuit this test for compilers unknown to 3464# Autoconf. 3465for ac_file in $ac_files '' 3466do 3467 test -f "$ac_file" || continue 3468 case $ac_file in 3469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3470 ;; 3471 [ab].out ) 3472 # We found the default executable, but exeext='' is most 3473 # certainly right. 3474 break;; 3475 *.* ) 3476 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3477 then :; else 3478 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3479 fi 3480 # We set ac_cv_exeext here because the later test for it is not 3481 # safe: cross compilers may not add the suffix if given an `-o' 3482 # argument, so we may need to know it at that point already. 3483 # Even if this section looks crufty: it has the advantage of 3484 # actually working. 3485 break;; 3486 * ) 3487 break;; 3488 esac 3489done 3490test "$ac_cv_exeext" = no && ac_cv_exeext= 3491 3492else 3493 ac_file='' 3494fi 3495if test -z "$ac_file"; then : 3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3497$as_echo "no" >&6; } 3498$as_echo "$as_me: failed program was:" >&5 3499sed 's/^/| /' conftest.$ac_ext >&5 3500 3501{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3502$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3503as_fn_error 77 "C compiler cannot create executables 3504See \`config.log' for more details" "$LINENO" 5; } 3505else 3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3507$as_echo "yes" >&6; } 3508fi 3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3510$as_echo_n "checking for C compiler default output file name... " >&6; } 3511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3512$as_echo "$ac_file" >&6; } 3513ac_exeext=$ac_cv_exeext 3514 3515rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3516ac_clean_files=$ac_clean_files_save 3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3518$as_echo_n "checking for suffix of executables... " >&6; } 3519if { { ac_try="$ac_link" 3520case "(($ac_try" in 3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3522 *) ac_try_echo=$ac_try;; 3523esac 3524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3525$as_echo "$ac_try_echo"; } >&5 3526 (eval "$ac_link") 2>&5 3527 ac_status=$? 3528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3529 test $ac_status = 0; }; then : 3530 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3531# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3532# work properly (i.e., refer to `conftest.exe'), while it won't with 3533# `rm'. 3534for ac_file in conftest.exe conftest conftest.*; do 3535 test -f "$ac_file" || continue 3536 case $ac_file in 3537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3538 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3539 break;; 3540 * ) break;; 3541 esac 3542done 3543else 3544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3546as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3547See \`config.log' for more details" "$LINENO" 5; } 3548fi 3549rm -f conftest conftest$ac_cv_exeext 3550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3551$as_echo "$ac_cv_exeext" >&6; } 3552 3553rm -f conftest.$ac_ext 3554EXEEXT=$ac_cv_exeext 3555ac_exeext=$EXEEXT 3556cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3557/* end confdefs.h. */ 3558#include <stdio.h> 3559int 3560main () 3561{ 3562FILE *f = fopen ("conftest.out", "w"); 3563 return ferror (f) || fclose (f) != 0; 3564 3565 ; 3566 return 0; 3567} 3568_ACEOF 3569ac_clean_files="$ac_clean_files conftest.out" 3570# Check that the compiler produces executables we can run. If not, either 3571# the compiler is broken, or we cross compile. 3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3573$as_echo_n "checking whether we are cross compiling... " >&6; } 3574if test "$cross_compiling" != yes; then 3575 { { ac_try="$ac_link" 3576case "(($ac_try" in 3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3578 *) ac_try_echo=$ac_try;; 3579esac 3580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3581$as_echo "$ac_try_echo"; } >&5 3582 (eval "$ac_link") 2>&5 3583 ac_status=$? 3584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3585 test $ac_status = 0; } 3586 if { ac_try='./conftest$ac_cv_exeext' 3587 { { case "(($ac_try" in 3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3589 *) ac_try_echo=$ac_try;; 3590esac 3591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3592$as_echo "$ac_try_echo"; } >&5 3593 (eval "$ac_try") 2>&5 3594 ac_status=$? 3595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3596 test $ac_status = 0; }; }; then 3597 cross_compiling=no 3598 else 3599 if test "$cross_compiling" = maybe; then 3600 cross_compiling=yes 3601 else 3602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3604as_fn_error $? "cannot run C compiled programs. 3605If you meant to cross compile, use \`--host'. 3606See \`config.log' for more details" "$LINENO" 5; } 3607 fi 3608 fi 3609fi 3610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3611$as_echo "$cross_compiling" >&6; } 3612 3613rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3614ac_clean_files=$ac_clean_files_save 3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3616$as_echo_n "checking for suffix of object files... " >&6; } 3617if ${ac_cv_objext+:} false; then : 3618 $as_echo_n "(cached) " >&6 3619else 3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3621/* end confdefs.h. */ 3622 3623int 3624main () 3625{ 3626 3627 ; 3628 return 0; 3629} 3630_ACEOF 3631rm -f conftest.o conftest.obj 3632if { { ac_try="$ac_compile" 3633case "(($ac_try" in 3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3635 *) ac_try_echo=$ac_try;; 3636esac 3637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3638$as_echo "$ac_try_echo"; } >&5 3639 (eval "$ac_compile") 2>&5 3640 ac_status=$? 3641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3642 test $ac_status = 0; }; then : 3643 for ac_file in conftest.o conftest.obj conftest.*; do 3644 test -f "$ac_file" || continue; 3645 case $ac_file in 3646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3647 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3648 break;; 3649 esac 3650done 3651else 3652 $as_echo "$as_me: failed program was:" >&5 3653sed 's/^/| /' conftest.$ac_ext >&5 3654 3655{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3656$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3657as_fn_error $? "cannot compute suffix of object files: cannot compile 3658See \`config.log' for more details" "$LINENO" 5; } 3659fi 3660rm -f conftest.$ac_cv_objext conftest.$ac_ext 3661fi 3662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3663$as_echo "$ac_cv_objext" >&6; } 3664OBJEXT=$ac_cv_objext 3665ac_objext=$OBJEXT 3666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3667$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3668if ${ac_cv_c_compiler_gnu+:} false; then : 3669 $as_echo_n "(cached) " >&6 3670else 3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3672/* end confdefs.h. */ 3673 3674int 3675main () 3676{ 3677#ifndef __GNUC__ 3678 choke me 3679#endif 3680 3681 ; 3682 return 0; 3683} 3684_ACEOF 3685if ac_fn_c_try_compile "$LINENO"; then : 3686 ac_compiler_gnu=yes 3687else 3688 ac_compiler_gnu=no 3689fi 3690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3691ac_cv_c_compiler_gnu=$ac_compiler_gnu 3692 3693fi 3694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3695$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3696if test $ac_compiler_gnu = yes; then 3697 GCC=yes 3698else 3699 GCC= 3700fi 3701ac_test_CFLAGS=${CFLAGS+set} 3702ac_save_CFLAGS=$CFLAGS 3703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3704$as_echo_n "checking whether $CC accepts -g... " >&6; } 3705if ${ac_cv_prog_cc_g+:} false; then : 3706 $as_echo_n "(cached) " >&6 3707else 3708 ac_save_c_werror_flag=$ac_c_werror_flag 3709 ac_c_werror_flag=yes 3710 ac_cv_prog_cc_g=no 3711 CFLAGS="-g" 3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3713/* end confdefs.h. */ 3714 3715int 3716main () 3717{ 3718 3719 ; 3720 return 0; 3721} 3722_ACEOF 3723if ac_fn_c_try_compile "$LINENO"; then : 3724 ac_cv_prog_cc_g=yes 3725else 3726 CFLAGS="" 3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3728/* end confdefs.h. */ 3729 3730int 3731main () 3732{ 3733 3734 ; 3735 return 0; 3736} 3737_ACEOF 3738if ac_fn_c_try_compile "$LINENO"; then : 3739 3740else 3741 ac_c_werror_flag=$ac_save_c_werror_flag 3742 CFLAGS="-g" 3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3744/* end confdefs.h. */ 3745 3746int 3747main () 3748{ 3749 3750 ; 3751 return 0; 3752} 3753_ACEOF 3754if ac_fn_c_try_compile "$LINENO"; then : 3755 ac_cv_prog_cc_g=yes 3756fi 3757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3758fi 3759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3760fi 3761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3762 ac_c_werror_flag=$ac_save_c_werror_flag 3763fi 3764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3765$as_echo "$ac_cv_prog_cc_g" >&6; } 3766if test "$ac_test_CFLAGS" = set; then 3767 CFLAGS=$ac_save_CFLAGS 3768elif test $ac_cv_prog_cc_g = yes; then 3769 if test "$GCC" = yes; then 3770 CFLAGS="-g -O2" 3771 else 3772 CFLAGS="-g" 3773 fi 3774else 3775 if test "$GCC" = yes; then 3776 CFLAGS="-O2" 3777 else 3778 CFLAGS= 3779 fi 3780fi 3781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3782$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3783if ${ac_cv_prog_cc_c89+:} false; then : 3784 $as_echo_n "(cached) " >&6 3785else 3786 ac_cv_prog_cc_c89=no 3787ac_save_CC=$CC 3788cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3789/* end confdefs.h. */ 3790#include <stdarg.h> 3791#include <stdio.h> 3792struct stat; 3793/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3794struct buf { int x; }; 3795FILE * (*rcsopen) (struct buf *, struct stat *, int); 3796static char *e (p, i) 3797 char **p; 3798 int i; 3799{ 3800 return p[i]; 3801} 3802static char *f (char * (*g) (char **, int), char **p, ...) 3803{ 3804 char *s; 3805 va_list v; 3806 va_start (v,p); 3807 s = g (p, va_arg (v,int)); 3808 va_end (v); 3809 return s; 3810} 3811 3812/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3813 function prototypes and stuff, but not '\xHH' hex character constants. 3814 These don't provoke an error unfortunately, instead are silently treated 3815 as 'x'. The following induces an error, until -std is added to get 3816 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3817 array size at least. It's necessary to write '\x00'==0 to get something 3818 that's true only with -std. */ 3819int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3820 3821/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3822 inside strings and character constants. */ 3823#define FOO(x) 'x' 3824int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3825 3826int test (int i, double x); 3827struct s1 {int (*f) (int a);}; 3828struct s2 {int (*f) (double a);}; 3829int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3830int argc; 3831char **argv; 3832int 3833main () 3834{ 3835return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3836 ; 3837 return 0; 3838} 3839_ACEOF 3840for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3841 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3842do 3843 CC="$ac_save_CC $ac_arg" 3844 if ac_fn_c_try_compile "$LINENO"; then : 3845 ac_cv_prog_cc_c89=$ac_arg 3846fi 3847rm -f core conftest.err conftest.$ac_objext 3848 test "x$ac_cv_prog_cc_c89" != "xno" && break 3849done 3850rm -f conftest.$ac_ext 3851CC=$ac_save_CC 3852 3853fi 3854# AC_CACHE_VAL 3855case "x$ac_cv_prog_cc_c89" in 3856 x) 3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3858$as_echo "none needed" >&6; } ;; 3859 xno) 3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3861$as_echo "unsupported" >&6; } ;; 3862 *) 3863 CC="$CC $ac_cv_prog_cc_c89" 3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3865$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3866esac 3867if test "x$ac_cv_prog_cc_c89" != xno; then : 3868 3869fi 3870 3871ac_ext=c 3872ac_cpp='$CPP $CPPFLAGS' 3873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3875ac_compiler_gnu=$ac_cv_c_compiler_gnu 3876 3877ac_ext=c 3878ac_cpp='$CPP $CPPFLAGS' 3879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3881ac_compiler_gnu=$ac_cv_c_compiler_gnu 3882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3883$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3884if ${am_cv_prog_cc_c_o+:} false; then : 3885 $as_echo_n "(cached) " >&6 3886else 3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3888/* end confdefs.h. */ 3889 3890int 3891main () 3892{ 3893 3894 ; 3895 return 0; 3896} 3897_ACEOF 3898 # Make sure it works both with $CC and with simple cc. 3899 # Following AC_PROG_CC_C_O, we do the test twice because some 3900 # compilers refuse to overwrite an existing .o file with -o, 3901 # though they will create one. 3902 am_cv_prog_cc_c_o=yes 3903 for am_i in 1 2; do 3904 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3905 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3906 ac_status=$? 3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3908 (exit $ac_status); } \ 3909 && test -f conftest2.$ac_objext; then 3910 : OK 3911 else 3912 am_cv_prog_cc_c_o=no 3913 break 3914 fi 3915 done 3916 rm -f core conftest* 3917 unset am_i 3918fi 3919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3920$as_echo "$am_cv_prog_cc_c_o" >&6; } 3921if test "$am_cv_prog_cc_c_o" != yes; then 3922 # Losing compiler, so override with the script. 3923 # FIXME: It is wrong to rewrite CC. 3924 # But if we don't then we get into trouble of one sort or another. 3925 # A longer-term fix would be to have automake use am__CC in this case, 3926 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3927 CC="$am_aux_dir/compile $CC" 3928fi 3929ac_ext=c 3930ac_cpp='$CPP $CPPFLAGS' 3931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3933ac_compiler_gnu=$ac_cv_c_compiler_gnu 3934 3935DEPDIR="${am__leading_dot}deps" 3936 3937ac_config_commands="$ac_config_commands depfiles" 3938 3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3940$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3941cat > confinc.mk << 'END' 3942am__doit: 3943 @echo this is the am__doit target >confinc.out 3944.PHONY: am__doit 3945END 3946am__include="#" 3947am__quote= 3948# BSD make does it like this. 3949echo '.include "confinc.mk" # ignored' > confmf.BSD 3950# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3951echo 'include confinc.mk # ignored' > confmf.GNU 3952_am_result=no 3953for s in GNU BSD; do 3954 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3955 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3956 ac_status=$? 3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3958 (exit $ac_status); } 3959 case $?:`cat confinc.out 2>/dev/null` in #( 3960 '0:this is the am__doit target') : 3961 case $s in #( 3962 BSD) : 3963 am__include='.include' am__quote='"' ;; #( 3964 *) : 3965 am__include='include' am__quote='' ;; 3966esac ;; #( 3967 *) : 3968 ;; 3969esac 3970 if test "$am__include" != "#"; then 3971 _am_result="yes ($s style)" 3972 break 3973 fi 3974done 3975rm -f confinc.* confmf.* 3976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3977$as_echo "${_am_result}" >&6; } 3978 3979# Check whether --enable-dependency-tracking was given. 3980if test "${enable_dependency_tracking+set}" = set; then : 3981 enableval=$enable_dependency_tracking; 3982fi 3983 3984if test "x$enable_dependency_tracking" != xno; then 3985 am_depcomp="$ac_aux_dir/depcomp" 3986 AMDEPBACKSLASH='\' 3987 am__nodep='_no' 3988fi 3989 if test "x$enable_dependency_tracking" != xno; then 3990 AMDEP_TRUE= 3991 AMDEP_FALSE='#' 3992else 3993 AMDEP_TRUE='#' 3994 AMDEP_FALSE= 3995fi 3996 3997 3998 3999depcc="$CC" am_compiler_list= 4000 4001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4002$as_echo_n "checking dependency style of $depcc... " >&6; } 4003if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4004 $as_echo_n "(cached) " >&6 4005else 4006 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4007 # We make a subdir and do the tests there. Otherwise we can end up 4008 # making bogus files that we don't know about and never remove. For 4009 # instance it was reported that on HP-UX the gcc test will end up 4010 # making a dummy file named 'D' -- because '-MD' means "put the output 4011 # in D". 4012 rm -rf conftest.dir 4013 mkdir conftest.dir 4014 # Copy depcomp to subdir because otherwise we won't find it if we're 4015 # using a relative directory. 4016 cp "$am_depcomp" conftest.dir 4017 cd conftest.dir 4018 # We will build objects and dependencies in a subdirectory because 4019 # it helps to detect inapplicable dependency modes. For instance 4020 # both Tru64's cc and ICC support -MD to output dependencies as a 4021 # side effect of compilation, but ICC will put the dependencies in 4022 # the current directory while Tru64 will put them in the object 4023 # directory. 4024 mkdir sub 4025 4026 am_cv_CC_dependencies_compiler_type=none 4027 if test "$am_compiler_list" = ""; then 4028 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4029 fi 4030 am__universal=false 4031 case " $depcc " in #( 4032 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4033 esac 4034 4035 for depmode in $am_compiler_list; do 4036 # Setup a source with many dependencies, because some compilers 4037 # like to wrap large dependency lists on column 80 (with \), and 4038 # we should not choose a depcomp mode which is confused by this. 4039 # 4040 # We need to recreate these files for each test, as the compiler may 4041 # overwrite some of them when testing with obscure command lines. 4042 # This happens at least with the AIX C compiler. 4043 : > sub/conftest.c 4044 for i in 1 2 3 4 5 6; do 4045 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4046 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4047 # Solaris 10 /bin/sh. 4048 echo '/* dummy */' > sub/conftst$i.h 4049 done 4050 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4051 4052 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4053 # mode. It turns out that the SunPro C++ compiler does not properly 4054 # handle '-M -o', and we need to detect this. Also, some Intel 4055 # versions had trouble with output in subdirs. 4056 am__obj=sub/conftest.${OBJEXT-o} 4057 am__minus_obj="-o $am__obj" 4058 case $depmode in 4059 gcc) 4060 # This depmode causes a compiler race in universal mode. 4061 test "$am__universal" = false || continue 4062 ;; 4063 nosideeffect) 4064 # After this tag, mechanisms are not by side-effect, so they'll 4065 # only be used when explicitly requested. 4066 if test "x$enable_dependency_tracking" = xyes; then 4067 continue 4068 else 4069 break 4070 fi 4071 ;; 4072 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4073 # This compiler won't grok '-c -o', but also, the minuso test has 4074 # not run yet. These depmodes are late enough in the game, and 4075 # so weak that their functioning should not be impacted. 4076 am__obj=conftest.${OBJEXT-o} 4077 am__minus_obj= 4078 ;; 4079 none) break ;; 4080 esac 4081 if depmode=$depmode \ 4082 source=sub/conftest.c object=$am__obj \ 4083 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4084 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4085 >/dev/null 2>conftest.err && 4086 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4087 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4088 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4089 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4090 # icc doesn't choke on unknown options, it will just issue warnings 4091 # or remarks (even with -Werror). So we grep stderr for any message 4092 # that says an option was ignored or not supported. 4093 # When given -MP, icc 7.0 and 7.1 complain thusly: 4094 # icc: Command line warning: ignoring option '-M'; no argument required 4095 # The diagnosis changed in icc 8.0: 4096 # icc: Command line remark: option '-MP' not supported 4097 if (grep 'ignoring option' conftest.err || 4098 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4099 am_cv_CC_dependencies_compiler_type=$depmode 4100 break 4101 fi 4102 fi 4103 done 4104 4105 cd .. 4106 rm -rf conftest.dir 4107else 4108 am_cv_CC_dependencies_compiler_type=none 4109fi 4110 4111fi 4112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4113$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4114CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4115 4116 if 4117 test "x$enable_dependency_tracking" != xno \ 4118 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4119 am__fastdepCC_TRUE= 4120 am__fastdepCC_FALSE='#' 4121else 4122 am__fastdepCC_TRUE='#' 4123 am__fastdepCC_FALSE= 4124fi 4125 4126 4127 case $ac_cv_prog_cc_stdc in #( 4128 no) : 4129 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 4130 *) : 4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4132$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4133if ${ac_cv_prog_cc_c99+:} false; then : 4134 $as_echo_n "(cached) " >&6 4135else 4136 ac_cv_prog_cc_c99=no 4137ac_save_CC=$CC 4138cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4139/* end confdefs.h. */ 4140#include <stdarg.h> 4141#include <stdbool.h> 4142#include <stdlib.h> 4143#include <wchar.h> 4144#include <stdio.h> 4145 4146// Check varargs macros. These examples are taken from C99 6.10.3.5. 4147#define debug(...) fprintf (stderr, __VA_ARGS__) 4148#define showlist(...) puts (#__VA_ARGS__) 4149#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4150static void 4151test_varargs_macros (void) 4152{ 4153 int x = 1234; 4154 int y = 5678; 4155 debug ("Flag"); 4156 debug ("X = %d\n", x); 4157 showlist (The first, second, and third items.); 4158 report (x>y, "x is %d but y is %d", x, y); 4159} 4160 4161// Check long long types. 4162#define BIG64 18446744073709551615ull 4163#define BIG32 4294967295ul 4164#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4165#if !BIG_OK 4166 your preprocessor is broken; 4167#endif 4168#if BIG_OK 4169#else 4170 your preprocessor is broken; 4171#endif 4172static long long int bignum = -9223372036854775807LL; 4173static unsigned long long int ubignum = BIG64; 4174 4175struct incomplete_array 4176{ 4177 int datasize; 4178 double data[]; 4179}; 4180 4181struct named_init { 4182 int number; 4183 const wchar_t *name; 4184 double average; 4185}; 4186 4187typedef const char *ccp; 4188 4189static inline int 4190test_restrict (ccp restrict text) 4191{ 4192 // See if C++-style comments work. 4193 // Iterate through items via the restricted pointer. 4194 // Also check for declarations in for loops. 4195 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4196 continue; 4197 return 0; 4198} 4199 4200// Check varargs and va_copy. 4201static void 4202test_varargs (const char *format, ...) 4203{ 4204 va_list args; 4205 va_start (args, format); 4206 va_list args_copy; 4207 va_copy (args_copy, args); 4208 4209 const char *str; 4210 int number; 4211 float fnumber; 4212 4213 while (*format) 4214 { 4215 switch (*format++) 4216 { 4217 case 's': // string 4218 str = va_arg (args_copy, const char *); 4219 break; 4220 case 'd': // int 4221 number = va_arg (args_copy, int); 4222 break; 4223 case 'f': // float 4224 fnumber = va_arg (args_copy, double); 4225 break; 4226 default: 4227 break; 4228 } 4229 } 4230 va_end (args_copy); 4231 va_end (args); 4232} 4233 4234int 4235main () 4236{ 4237 4238 // Check bool. 4239 _Bool success = false; 4240 4241 // Check restrict. 4242 if (test_restrict ("String literal") == 0) 4243 success = true; 4244 char *restrict newvar = "Another string"; 4245 4246 // Check varargs. 4247 test_varargs ("s, d' f .", "string", 65, 34.234); 4248 test_varargs_macros (); 4249 4250 // Check flexible array members. 4251 struct incomplete_array *ia = 4252 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4253 ia->datasize = 10; 4254 for (int i = 0; i < ia->datasize; ++i) 4255 ia->data[i] = i * 1.234; 4256 4257 // Check named initializers. 4258 struct named_init ni = { 4259 .number = 34, 4260 .name = L"Test wide string", 4261 .average = 543.34343, 4262 }; 4263 4264 ni.number = 58; 4265 4266 int dynamic_array[ni.number]; 4267 dynamic_array[ni.number - 1] = 543; 4268 4269 // work around unused variable warnings 4270 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4271 || dynamic_array[ni.number - 1] != 543); 4272 4273 ; 4274 return 0; 4275} 4276_ACEOF 4277for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4278do 4279 CC="$ac_save_CC $ac_arg" 4280 if ac_fn_c_try_compile "$LINENO"; then : 4281 ac_cv_prog_cc_c99=$ac_arg 4282fi 4283rm -f core conftest.err conftest.$ac_objext 4284 test "x$ac_cv_prog_cc_c99" != "xno" && break 4285done 4286rm -f conftest.$ac_ext 4287CC=$ac_save_CC 4288 4289fi 4290# AC_CACHE_VAL 4291case "x$ac_cv_prog_cc_c99" in 4292 x) 4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4294$as_echo "none needed" >&6; } ;; 4295 xno) 4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4297$as_echo "unsupported" >&6; } ;; 4298 *) 4299 CC="$CC $ac_cv_prog_cc_c99" 4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4301$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4302esac 4303if test "x$ac_cv_prog_cc_c99" != xno; then : 4304 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4305else 4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4307$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4308if ${ac_cv_prog_cc_c89+:} false; then : 4309 $as_echo_n "(cached) " >&6 4310else 4311 ac_cv_prog_cc_c89=no 4312ac_save_CC=$CC 4313cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4314/* end confdefs.h. */ 4315#include <stdarg.h> 4316#include <stdio.h> 4317struct stat; 4318/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4319struct buf { int x; }; 4320FILE * (*rcsopen) (struct buf *, struct stat *, int); 4321static char *e (p, i) 4322 char **p; 4323 int i; 4324{ 4325 return p[i]; 4326} 4327static char *f (char * (*g) (char **, int), char **p, ...) 4328{ 4329 char *s; 4330 va_list v; 4331 va_start (v,p); 4332 s = g (p, va_arg (v,int)); 4333 va_end (v); 4334 return s; 4335} 4336 4337/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4338 function prototypes and stuff, but not '\xHH' hex character constants. 4339 These don't provoke an error unfortunately, instead are silently treated 4340 as 'x'. The following induces an error, until -std is added to get 4341 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4342 array size at least. It's necessary to write '\x00'==0 to get something 4343 that's true only with -std. */ 4344int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4345 4346/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4347 inside strings and character constants. */ 4348#define FOO(x) 'x' 4349int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4350 4351int test (int i, double x); 4352struct s1 {int (*f) (int a);}; 4353struct s2 {int (*f) (double a);}; 4354int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4355int argc; 4356char **argv; 4357int 4358main () 4359{ 4360return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4361 ; 4362 return 0; 4363} 4364_ACEOF 4365for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4366 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4367do 4368 CC="$ac_save_CC $ac_arg" 4369 if ac_fn_c_try_compile "$LINENO"; then : 4370 ac_cv_prog_cc_c89=$ac_arg 4371fi 4372rm -f core conftest.err conftest.$ac_objext 4373 test "x$ac_cv_prog_cc_c89" != "xno" && break 4374done 4375rm -f conftest.$ac_ext 4376CC=$ac_save_CC 4377 4378fi 4379# AC_CACHE_VAL 4380case "x$ac_cv_prog_cc_c89" in 4381 x) 4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4383$as_echo "none needed" >&6; } ;; 4384 xno) 4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4386$as_echo "unsupported" >&6; } ;; 4387 *) 4388 CC="$CC $ac_cv_prog_cc_c89" 4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4390$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4391esac 4392if test "x$ac_cv_prog_cc_c89" != xno; then : 4393 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4394else 4395 ac_cv_prog_cc_stdc=no 4396fi 4397 4398fi 4399 ;; 4400esac 4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 4402$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 4403 if ${ac_cv_prog_cc_stdc+:} false; then : 4404 $as_echo_n "(cached) " >&6 4405fi 4406 4407 case $ac_cv_prog_cc_stdc in #( 4408 no) : 4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4410$as_echo "unsupported" >&6; } ;; #( 4411 '') : 4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4413$as_echo "none needed" >&6; } ;; #( 4414 *) : 4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 4416$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 4417esac 4418 4419 4420case `pwd` in 4421 *\ * | *\ *) 4422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4423$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4424esac 4425 4426 4427 4428macro_version='2.4.2' 4429macro_revision='1.3337' 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443ltmain="$ac_aux_dir/ltmain.sh" 4444 4445# Backslashify metacharacters that are still active within 4446# double-quoted strings. 4447sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4448 4449# Same as above, but do not quote variable references. 4450double_quote_subst='s/\(["`\\]\)/\\\1/g' 4451 4452# Sed substitution to delay expansion of an escaped shell variable in a 4453# double_quote_subst'ed string. 4454delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4455 4456# Sed substitution to delay expansion of an escaped single quote. 4457delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4458 4459# Sed substitution to avoid accidental globbing in evaled expressions 4460no_glob_subst='s/\*/\\\*/g' 4461 4462ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4463ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4464ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4465 4466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4467$as_echo_n "checking how to print strings... " >&6; } 4468# Test print first, because it will be a builtin if present. 4469if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4470 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4471 ECHO='print -r --' 4472elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4473 ECHO='printf %s\n' 4474else 4475 # Use this function as a fallback that always works. 4476 func_fallback_echo () 4477 { 4478 eval 'cat <<_LTECHO_EOF 4479$1 4480_LTECHO_EOF' 4481 } 4482 ECHO='func_fallback_echo' 4483fi 4484 4485# func_echo_all arg... 4486# Invoke $ECHO with all args, space-separated. 4487func_echo_all () 4488{ 4489 $ECHO "" 4490} 4491 4492case "$ECHO" in 4493 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4494$as_echo "printf" >&6; } ;; 4495 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4496$as_echo "print -r" >&6; } ;; 4497 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4498$as_echo "cat" >&6; } ;; 4499esac 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4515$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4516if ${ac_cv_path_SED+:} false; then : 4517 $as_echo_n "(cached) " >&6 4518else 4519 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4520 for ac_i in 1 2 3 4 5 6 7; do 4521 ac_script="$ac_script$as_nl$ac_script" 4522 done 4523 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4524 { ac_script=; unset ac_script;} 4525 if test -z "$SED"; then 4526 ac_path_SED_found=false 4527 # Loop through the user's path and test for each of PROGNAME-LIST 4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4529for as_dir in $PATH 4530do 4531 IFS=$as_save_IFS 4532 test -z "$as_dir" && as_dir=. 4533 for ac_prog in sed gsed; do 4534 for ac_exec_ext in '' $ac_executable_extensions; do 4535 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4536 as_fn_executable_p "$ac_path_SED" || continue 4537# Check for GNU ac_path_SED and select it if it is found. 4538 # Check for GNU $ac_path_SED 4539case `"$ac_path_SED" --version 2>&1` in 4540*GNU*) 4541 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4542*) 4543 ac_count=0 4544 $as_echo_n 0123456789 >"conftest.in" 4545 while : 4546 do 4547 cat "conftest.in" "conftest.in" >"conftest.tmp" 4548 mv "conftest.tmp" "conftest.in" 4549 cp "conftest.in" "conftest.nl" 4550 $as_echo '' >> "conftest.nl" 4551 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4552 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4553 as_fn_arith $ac_count + 1 && ac_count=$as_val 4554 if test $ac_count -gt ${ac_path_SED_max-0}; then 4555 # Best one so far, save it but keep looking for a better one 4556 ac_cv_path_SED="$ac_path_SED" 4557 ac_path_SED_max=$ac_count 4558 fi 4559 # 10*(2^10) chars as input seems more than enough 4560 test $ac_count -gt 10 && break 4561 done 4562 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4563esac 4564 4565 $ac_path_SED_found && break 3 4566 done 4567 done 4568 done 4569IFS=$as_save_IFS 4570 if test -z "$ac_cv_path_SED"; then 4571 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4572 fi 4573else 4574 ac_cv_path_SED=$SED 4575fi 4576 4577fi 4578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4579$as_echo "$ac_cv_path_SED" >&6; } 4580 SED="$ac_cv_path_SED" 4581 rm -f conftest.sed 4582 4583test -z "$SED" && SED=sed 4584Xsed="$SED -e 1s/^X//" 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4597$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4598if ${ac_cv_path_GREP+:} false; then : 4599 $as_echo_n "(cached) " >&6 4600else 4601 if test -z "$GREP"; then 4602 ac_path_GREP_found=false 4603 # Loop through the user's path and test for each of PROGNAME-LIST 4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4605for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4606do 4607 IFS=$as_save_IFS 4608 test -z "$as_dir" && as_dir=. 4609 for ac_prog in grep ggrep; do 4610 for ac_exec_ext in '' $ac_executable_extensions; do 4611 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4612 as_fn_executable_p "$ac_path_GREP" || continue 4613# Check for GNU ac_path_GREP and select it if it is found. 4614 # Check for GNU $ac_path_GREP 4615case `"$ac_path_GREP" --version 2>&1` in 4616*GNU*) 4617 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4618*) 4619 ac_count=0 4620 $as_echo_n 0123456789 >"conftest.in" 4621 while : 4622 do 4623 cat "conftest.in" "conftest.in" >"conftest.tmp" 4624 mv "conftest.tmp" "conftest.in" 4625 cp "conftest.in" "conftest.nl" 4626 $as_echo 'GREP' >> "conftest.nl" 4627 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4628 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4629 as_fn_arith $ac_count + 1 && ac_count=$as_val 4630 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4631 # Best one so far, save it but keep looking for a better one 4632 ac_cv_path_GREP="$ac_path_GREP" 4633 ac_path_GREP_max=$ac_count 4634 fi 4635 # 10*(2^10) chars as input seems more than enough 4636 test $ac_count -gt 10 && break 4637 done 4638 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4639esac 4640 4641 $ac_path_GREP_found && break 3 4642 done 4643 done 4644 done 4645IFS=$as_save_IFS 4646 if test -z "$ac_cv_path_GREP"; then 4647 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4648 fi 4649else 4650 ac_cv_path_GREP=$GREP 4651fi 4652 4653fi 4654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4655$as_echo "$ac_cv_path_GREP" >&6; } 4656 GREP="$ac_cv_path_GREP" 4657 4658 4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4660$as_echo_n "checking for egrep... " >&6; } 4661if ${ac_cv_path_EGREP+:} false; then : 4662 $as_echo_n "(cached) " >&6 4663else 4664 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4665 then ac_cv_path_EGREP="$GREP -E" 4666 else 4667 if test -z "$EGREP"; then 4668 ac_path_EGREP_found=false 4669 # Loop through the user's path and test for each of PROGNAME-LIST 4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4671for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4672do 4673 IFS=$as_save_IFS 4674 test -z "$as_dir" && as_dir=. 4675 for ac_prog in egrep; do 4676 for ac_exec_ext in '' $ac_executable_extensions; do 4677 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4678 as_fn_executable_p "$ac_path_EGREP" || continue 4679# Check for GNU ac_path_EGREP and select it if it is found. 4680 # Check for GNU $ac_path_EGREP 4681case `"$ac_path_EGREP" --version 2>&1` in 4682*GNU*) 4683 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4684*) 4685 ac_count=0 4686 $as_echo_n 0123456789 >"conftest.in" 4687 while : 4688 do 4689 cat "conftest.in" "conftest.in" >"conftest.tmp" 4690 mv "conftest.tmp" "conftest.in" 4691 cp "conftest.in" "conftest.nl" 4692 $as_echo 'EGREP' >> "conftest.nl" 4693 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4694 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4695 as_fn_arith $ac_count + 1 && ac_count=$as_val 4696 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4697 # Best one so far, save it but keep looking for a better one 4698 ac_cv_path_EGREP="$ac_path_EGREP" 4699 ac_path_EGREP_max=$ac_count 4700 fi 4701 # 10*(2^10) chars as input seems more than enough 4702 test $ac_count -gt 10 && break 4703 done 4704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4705esac 4706 4707 $ac_path_EGREP_found && break 3 4708 done 4709 done 4710 done 4711IFS=$as_save_IFS 4712 if test -z "$ac_cv_path_EGREP"; then 4713 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4714 fi 4715else 4716 ac_cv_path_EGREP=$EGREP 4717fi 4718 4719 fi 4720fi 4721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4722$as_echo "$ac_cv_path_EGREP" >&6; } 4723 EGREP="$ac_cv_path_EGREP" 4724 4725 4726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4727$as_echo_n "checking for fgrep... " >&6; } 4728if ${ac_cv_path_FGREP+:} false; then : 4729 $as_echo_n "(cached) " >&6 4730else 4731 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4732 then ac_cv_path_FGREP="$GREP -F" 4733 else 4734 if test -z "$FGREP"; then 4735 ac_path_FGREP_found=false 4736 # Loop through the user's path and test for each of PROGNAME-LIST 4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4738for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4739do 4740 IFS=$as_save_IFS 4741 test -z "$as_dir" && as_dir=. 4742 for ac_prog in fgrep; do 4743 for ac_exec_ext in '' $ac_executable_extensions; do 4744 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4745 as_fn_executable_p "$ac_path_FGREP" || continue 4746# Check for GNU ac_path_FGREP and select it if it is found. 4747 # Check for GNU $ac_path_FGREP 4748case `"$ac_path_FGREP" --version 2>&1` in 4749*GNU*) 4750 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4751*) 4752 ac_count=0 4753 $as_echo_n 0123456789 >"conftest.in" 4754 while : 4755 do 4756 cat "conftest.in" "conftest.in" >"conftest.tmp" 4757 mv "conftest.tmp" "conftest.in" 4758 cp "conftest.in" "conftest.nl" 4759 $as_echo 'FGREP' >> "conftest.nl" 4760 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4761 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4762 as_fn_arith $ac_count + 1 && ac_count=$as_val 4763 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4764 # Best one so far, save it but keep looking for a better one 4765 ac_cv_path_FGREP="$ac_path_FGREP" 4766 ac_path_FGREP_max=$ac_count 4767 fi 4768 # 10*(2^10) chars as input seems more than enough 4769 test $ac_count -gt 10 && break 4770 done 4771 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4772esac 4773 4774 $ac_path_FGREP_found && break 3 4775 done 4776 done 4777 done 4778IFS=$as_save_IFS 4779 if test -z "$ac_cv_path_FGREP"; then 4780 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4781 fi 4782else 4783 ac_cv_path_FGREP=$FGREP 4784fi 4785 4786 fi 4787fi 4788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4789$as_echo "$ac_cv_path_FGREP" >&6; } 4790 FGREP="$ac_cv_path_FGREP" 4791 4792 4793test -z "$GREP" && GREP=grep 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813# Check whether --with-gnu-ld was given. 4814if test "${with_gnu_ld+set}" = set; then : 4815 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4816else 4817 with_gnu_ld=no 4818fi 4819 4820ac_prog=ld 4821if test "$GCC" = yes; then 4822 # Check if gcc -print-prog-name=ld gives a path. 4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4824$as_echo_n "checking for ld used by $CC... " >&6; } 4825 case $host in 4826 *-*-mingw*) 4827 # gcc leaves a trailing carriage return which upsets mingw 4828 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4829 *) 4830 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4831 esac 4832 case $ac_prog in 4833 # Accept absolute paths. 4834 [\\/]* | ?:[\\/]*) 4835 re_direlt='/[^/][^/]*/\.\./' 4836 # Canonicalize the pathname of ld 4837 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4838 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4839 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4840 done 4841 test -z "$LD" && LD="$ac_prog" 4842 ;; 4843 "") 4844 # If it fails, then pretend we aren't using GCC. 4845 ac_prog=ld 4846 ;; 4847 *) 4848 # If it is relative, then search for the first ld in PATH. 4849 with_gnu_ld=unknown 4850 ;; 4851 esac 4852elif test "$with_gnu_ld" = yes; then 4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4854$as_echo_n "checking for GNU ld... " >&6; } 4855else 4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4857$as_echo_n "checking for non-GNU ld... " >&6; } 4858fi 4859if ${lt_cv_path_LD+:} false; then : 4860 $as_echo_n "(cached) " >&6 4861else 4862 if test -z "$LD"; then 4863 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4864 for ac_dir in $PATH; do 4865 IFS="$lt_save_ifs" 4866 test -z "$ac_dir" && ac_dir=. 4867 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4868 lt_cv_path_LD="$ac_dir/$ac_prog" 4869 # Check to see if the program is GNU ld. I'd rather use --version, 4870 # but apparently some variants of GNU ld only accept -v. 4871 # Break only if it was the GNU/non-GNU ld that we prefer. 4872 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4873 *GNU* | *'with BFD'*) 4874 test "$with_gnu_ld" != no && break 4875 ;; 4876 *) 4877 test "$with_gnu_ld" != yes && break 4878 ;; 4879 esac 4880 fi 4881 done 4882 IFS="$lt_save_ifs" 4883else 4884 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4885fi 4886fi 4887 4888LD="$lt_cv_path_LD" 4889if test -n "$LD"; then 4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4891$as_echo "$LD" >&6; } 4892else 4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4894$as_echo "no" >&6; } 4895fi 4896test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4898$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4899if ${lt_cv_prog_gnu_ld+:} false; then : 4900 $as_echo_n "(cached) " >&6 4901else 4902 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4903case `$LD -v 2>&1 </dev/null` in 4904*GNU* | *'with BFD'*) 4905 lt_cv_prog_gnu_ld=yes 4906 ;; 4907*) 4908 lt_cv_prog_gnu_ld=no 4909 ;; 4910esac 4911fi 4912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4913$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4914with_gnu_ld=$lt_cv_prog_gnu_ld 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4925$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4926if ${lt_cv_path_NM+:} false; then : 4927 $as_echo_n "(cached) " >&6 4928else 4929 if test -n "$NM"; then 4930 # Let the user override the test. 4931 lt_cv_path_NM="$NM" 4932else 4933 lt_nm_to_check="${ac_tool_prefix}nm" 4934 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4935 lt_nm_to_check="$lt_nm_to_check nm" 4936 fi 4937 for lt_tmp_nm in $lt_nm_to_check; do 4938 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4939 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4940 IFS="$lt_save_ifs" 4941 test -z "$ac_dir" && ac_dir=. 4942 tmp_nm="$ac_dir/$lt_tmp_nm" 4943 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4944 # Check to see if the nm accepts a BSD-compat flag. 4945 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4946 # nm: unknown option "B" ignored 4947 # Tru64's nm complains that /dev/null is an invalid object file 4948 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4949 */dev/null* | *'Invalid file or object type'*) 4950 lt_cv_path_NM="$tmp_nm -B" 4951 break 4952 ;; 4953 *) 4954 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4955 */dev/null*) 4956 lt_cv_path_NM="$tmp_nm -p" 4957 break 4958 ;; 4959 *) 4960 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4961 continue # so that we can try to find one that supports BSD flags 4962 ;; 4963 esac 4964 ;; 4965 esac 4966 fi 4967 done 4968 IFS="$lt_save_ifs" 4969 done 4970 : ${lt_cv_path_NM=no} 4971fi 4972fi 4973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4974$as_echo "$lt_cv_path_NM" >&6; } 4975if test "$lt_cv_path_NM" != "no"; then 4976 NM="$lt_cv_path_NM" 4977else 4978 # Didn't find any BSD compatible name lister, look for dumpbin. 4979 if test -n "$DUMPBIN"; then : 4980 # Let the user override the test. 4981 else 4982 if test -n "$ac_tool_prefix"; then 4983 for ac_prog in dumpbin "link -dump" 4984 do 4985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4986set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4988$as_echo_n "checking for $ac_word... " >&6; } 4989if ${ac_cv_prog_DUMPBIN+:} false; then : 4990 $as_echo_n "(cached) " >&6 4991else 4992 if test -n "$DUMPBIN"; then 4993 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4994else 4995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4996for as_dir in $PATH 4997do 4998 IFS=$as_save_IFS 4999 test -z "$as_dir" && as_dir=. 5000 for ac_exec_ext in '' $ac_executable_extensions; do 5001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5002 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5004 break 2 5005 fi 5006done 5007 done 5008IFS=$as_save_IFS 5009 5010fi 5011fi 5012DUMPBIN=$ac_cv_prog_DUMPBIN 5013if test -n "$DUMPBIN"; then 5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5015$as_echo "$DUMPBIN" >&6; } 5016else 5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5018$as_echo "no" >&6; } 5019fi 5020 5021 5022 test -n "$DUMPBIN" && break 5023 done 5024fi 5025if test -z "$DUMPBIN"; then 5026 ac_ct_DUMPBIN=$DUMPBIN 5027 for ac_prog in dumpbin "link -dump" 5028do 5029 # Extract the first word of "$ac_prog", so it can be a program name with args. 5030set dummy $ac_prog; ac_word=$2 5031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5032$as_echo_n "checking for $ac_word... " >&6; } 5033if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5034 $as_echo_n "(cached) " >&6 5035else 5036 if test -n "$ac_ct_DUMPBIN"; then 5037 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5038else 5039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5040for as_dir in $PATH 5041do 5042 IFS=$as_save_IFS 5043 test -z "$as_dir" && as_dir=. 5044 for ac_exec_ext in '' $ac_executable_extensions; do 5045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5046 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5048 break 2 5049 fi 5050done 5051 done 5052IFS=$as_save_IFS 5053 5054fi 5055fi 5056ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5057if test -n "$ac_ct_DUMPBIN"; then 5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5059$as_echo "$ac_ct_DUMPBIN" >&6; } 5060else 5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5062$as_echo "no" >&6; } 5063fi 5064 5065 5066 test -n "$ac_ct_DUMPBIN" && break 5067done 5068 5069 if test "x$ac_ct_DUMPBIN" = x; then 5070 DUMPBIN=":" 5071 else 5072 case $cross_compiling:$ac_tool_warned in 5073yes:) 5074{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5076ac_tool_warned=yes ;; 5077esac 5078 DUMPBIN=$ac_ct_DUMPBIN 5079 fi 5080fi 5081 5082 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5083 *COFF*) 5084 DUMPBIN="$DUMPBIN -symbols" 5085 ;; 5086 *) 5087 DUMPBIN=: 5088 ;; 5089 esac 5090 fi 5091 5092 if test "$DUMPBIN" != ":"; then 5093 NM="$DUMPBIN" 5094 fi 5095fi 5096test -z "$NM" && NM=nm 5097 5098 5099 5100 5101 5102 5103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5104$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5105if ${lt_cv_nm_interface+:} false; then : 5106 $as_echo_n "(cached) " >&6 5107else 5108 lt_cv_nm_interface="BSD nm" 5109 echo "int some_variable = 0;" > conftest.$ac_ext 5110 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5111 (eval "$ac_compile" 2>conftest.err) 5112 cat conftest.err >&5 5113 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5114 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5115 cat conftest.err >&5 5116 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5117 cat conftest.out >&5 5118 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5119 lt_cv_nm_interface="MS dumpbin" 5120 fi 5121 rm -f conftest* 5122fi 5123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5124$as_echo "$lt_cv_nm_interface" >&6; } 5125 5126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5127$as_echo_n "checking whether ln -s works... " >&6; } 5128LN_S=$as_ln_s 5129if test "$LN_S" = "ln -s"; then 5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5131$as_echo "yes" >&6; } 5132else 5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5134$as_echo "no, using $LN_S" >&6; } 5135fi 5136 5137# find the maximum length of command line arguments 5138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5139$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5140if ${lt_cv_sys_max_cmd_len+:} false; then : 5141 $as_echo_n "(cached) " >&6 5142else 5143 i=0 5144 teststring="ABCD" 5145 5146 case $build_os in 5147 msdosdjgpp*) 5148 # On DJGPP, this test can blow up pretty badly due to problems in libc 5149 # (any single argument exceeding 2000 bytes causes a buffer overrun 5150 # during glob expansion). Even if it were fixed, the result of this 5151 # check would be larger than it should be. 5152 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5153 ;; 5154 5155 gnu*) 5156 # Under GNU Hurd, this test is not required because there is 5157 # no limit to the length of command line arguments. 5158 # Libtool will interpret -1 as no limit whatsoever 5159 lt_cv_sys_max_cmd_len=-1; 5160 ;; 5161 5162 cygwin* | mingw* | cegcc*) 5163 # On Win9x/ME, this test blows up -- it succeeds, but takes 5164 # about 5 minutes as the teststring grows exponentially. 5165 # Worse, since 9x/ME are not pre-emptively multitasking, 5166 # you end up with a "frozen" computer, even though with patience 5167 # the test eventually succeeds (with a max line length of 256k). 5168 # Instead, let's just punt: use the minimum linelength reported by 5169 # all of the supported platforms: 8192 (on NT/2K/XP). 5170 lt_cv_sys_max_cmd_len=8192; 5171 ;; 5172 5173 mint*) 5174 # On MiNT this can take a long time and run out of memory. 5175 lt_cv_sys_max_cmd_len=8192; 5176 ;; 5177 5178 amigaos*) 5179 # On AmigaOS with pdksh, this test takes hours, literally. 5180 # So we just punt and use a minimum line length of 8192. 5181 lt_cv_sys_max_cmd_len=8192; 5182 ;; 5183 5184 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5185 # This has been around since 386BSD, at least. Likely further. 5186 if test -x /sbin/sysctl; then 5187 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5188 elif test -x /usr/sbin/sysctl; then 5189 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5190 else 5191 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5192 fi 5193 # And add a safety zone 5194 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5195 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5196 ;; 5197 5198 interix*) 5199 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5200 lt_cv_sys_max_cmd_len=196608 5201 ;; 5202 5203 os2*) 5204 # The test takes a long time on OS/2. 5205 lt_cv_sys_max_cmd_len=8192 5206 ;; 5207 5208 osf*) 5209 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5210 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5211 # nice to cause kernel panics so lets avoid the loop below. 5212 # First set a reasonable default. 5213 lt_cv_sys_max_cmd_len=16384 5214 # 5215 if test -x /sbin/sysconfig; then 5216 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5217 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5218 esac 5219 fi 5220 ;; 5221 sco3.2v5*) 5222 lt_cv_sys_max_cmd_len=102400 5223 ;; 5224 sysv5* | sco5v6* | sysv4.2uw2*) 5225 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5226 if test -n "$kargmax"; then 5227 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5228 else 5229 lt_cv_sys_max_cmd_len=32768 5230 fi 5231 ;; 5232 *) 5233 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5234 if test -n "$lt_cv_sys_max_cmd_len"; then 5235 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5236 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5237 else 5238 # Make teststring a little bigger before we do anything with it. 5239 # a 1K string should be a reasonable start. 5240 for i in 1 2 3 4 5 6 7 8 ; do 5241 teststring=$teststring$teststring 5242 done 5243 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5244 # If test is not a shell built-in, we'll probably end up computing a 5245 # maximum length that is only half of the actual maximum length, but 5246 # we can't tell. 5247 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5248 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5249 test $i != 17 # 1/2 MB should be enough 5250 do 5251 i=`expr $i + 1` 5252 teststring=$teststring$teststring 5253 done 5254 # Only check the string length outside the loop. 5255 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5256 teststring= 5257 # Add a significant safety factor because C++ compilers can tack on 5258 # massive amounts of additional arguments before passing them to the 5259 # linker. It appears as though 1/2 is a usable value. 5260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5261 fi 5262 ;; 5263 esac 5264 5265fi 5266 5267if test -n $lt_cv_sys_max_cmd_len ; then 5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5269$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5270else 5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5272$as_echo "none" >&6; } 5273fi 5274max_cmd_len=$lt_cv_sys_max_cmd_len 5275 5276 5277 5278 5279 5280 5281: ${CP="cp -f"} 5282: ${MV="mv -f"} 5283: ${RM="rm -f"} 5284 5285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5286$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5287# Try some XSI features 5288xsi_shell=no 5289( _lt_dummy="a/b/c" 5290 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5291 = c,a/b,b/c, \ 5292 && eval 'test $(( 1 + 1 )) -eq 2 \ 5293 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5294 && xsi_shell=yes 5295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5296$as_echo "$xsi_shell" >&6; } 5297 5298 5299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5300$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5301lt_shell_append=no 5302( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5303 >/dev/null 2>&1 \ 5304 && lt_shell_append=yes 5305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5306$as_echo "$lt_shell_append" >&6; } 5307 5308 5309if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5310 lt_unset=unset 5311else 5312 lt_unset=false 5313fi 5314 5315 5316 5317 5318 5319# test EBCDIC or ASCII 5320case `echo X|tr X '\101'` in 5321 A) # ASCII based system 5322 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5323 lt_SP2NL='tr \040 \012' 5324 lt_NL2SP='tr \015\012 \040\040' 5325 ;; 5326 *) # EBCDIC based system 5327 lt_SP2NL='tr \100 \n' 5328 lt_NL2SP='tr \r\n \100\100' 5329 ;; 5330esac 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5341$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5342if ${lt_cv_to_host_file_cmd+:} false; then : 5343 $as_echo_n "(cached) " >&6 5344else 5345 case $host in 5346 *-*-mingw* ) 5347 case $build in 5348 *-*-mingw* ) # actually msys 5349 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5350 ;; 5351 *-*-cygwin* ) 5352 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5353 ;; 5354 * ) # otherwise, assume *nix 5355 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5356 ;; 5357 esac 5358 ;; 5359 *-*-cygwin* ) 5360 case $build in 5361 *-*-mingw* ) # actually msys 5362 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5363 ;; 5364 *-*-cygwin* ) 5365 lt_cv_to_host_file_cmd=func_convert_file_noop 5366 ;; 5367 * ) # otherwise, assume *nix 5368 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5369 ;; 5370 esac 5371 ;; 5372 * ) # unhandled hosts (and "normal" native builds) 5373 lt_cv_to_host_file_cmd=func_convert_file_noop 5374 ;; 5375esac 5376 5377fi 5378 5379to_host_file_cmd=$lt_cv_to_host_file_cmd 5380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5381$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5382 5383 5384 5385 5386 5387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5388$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5389if ${lt_cv_to_tool_file_cmd+:} false; then : 5390 $as_echo_n "(cached) " >&6 5391else 5392 #assume ordinary cross tools, or native build. 5393lt_cv_to_tool_file_cmd=func_convert_file_noop 5394case $host in 5395 *-*-mingw* ) 5396 case $build in 5397 *-*-mingw* ) # actually msys 5398 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5399 ;; 5400 esac 5401 ;; 5402esac 5403 5404fi 5405 5406to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5408$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5409 5410 5411 5412 5413 5414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5415$as_echo_n "checking for $LD option to reload object files... " >&6; } 5416if ${lt_cv_ld_reload_flag+:} false; then : 5417 $as_echo_n "(cached) " >&6 5418else 5419 lt_cv_ld_reload_flag='-r' 5420fi 5421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5422$as_echo "$lt_cv_ld_reload_flag" >&6; } 5423reload_flag=$lt_cv_ld_reload_flag 5424case $reload_flag in 5425"" | " "*) ;; 5426*) reload_flag=" $reload_flag" ;; 5427esac 5428reload_cmds='$LD$reload_flag -o $output$reload_objs' 5429case $host_os in 5430 cygwin* | mingw* | pw32* | cegcc*) 5431 if test "$GCC" != yes; then 5432 reload_cmds=false 5433 fi 5434 ;; 5435 darwin*) 5436 if test "$GCC" = yes; then 5437 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5438 else 5439 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5440 fi 5441 ;; 5442esac 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452if test -n "$ac_tool_prefix"; then 5453 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5454set dummy ${ac_tool_prefix}objdump; ac_word=$2 5455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5456$as_echo_n "checking for $ac_word... " >&6; } 5457if ${ac_cv_prog_OBJDUMP+:} false; then : 5458 $as_echo_n "(cached) " >&6 5459else 5460 if test -n "$OBJDUMP"; then 5461 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5462else 5463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5464for as_dir in $PATH 5465do 5466 IFS=$as_save_IFS 5467 test -z "$as_dir" && as_dir=. 5468 for ac_exec_ext in '' $ac_executable_extensions; do 5469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5470 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5472 break 2 5473 fi 5474done 5475 done 5476IFS=$as_save_IFS 5477 5478fi 5479fi 5480OBJDUMP=$ac_cv_prog_OBJDUMP 5481if test -n "$OBJDUMP"; then 5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5483$as_echo "$OBJDUMP" >&6; } 5484else 5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5486$as_echo "no" >&6; } 5487fi 5488 5489 5490fi 5491if test -z "$ac_cv_prog_OBJDUMP"; then 5492 ac_ct_OBJDUMP=$OBJDUMP 5493 # Extract the first word of "objdump", so it can be a program name with args. 5494set dummy objdump; ac_word=$2 5495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5496$as_echo_n "checking for $ac_word... " >&6; } 5497if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5498 $as_echo_n "(cached) " >&6 5499else 5500 if test -n "$ac_ct_OBJDUMP"; then 5501 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5502else 5503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5504for as_dir in $PATH 5505do 5506 IFS=$as_save_IFS 5507 test -z "$as_dir" && as_dir=. 5508 for ac_exec_ext in '' $ac_executable_extensions; do 5509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5510 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5512 break 2 5513 fi 5514done 5515 done 5516IFS=$as_save_IFS 5517 5518fi 5519fi 5520ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5521if test -n "$ac_ct_OBJDUMP"; then 5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5523$as_echo "$ac_ct_OBJDUMP" >&6; } 5524else 5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5526$as_echo "no" >&6; } 5527fi 5528 5529 if test "x$ac_ct_OBJDUMP" = x; then 5530 OBJDUMP="false" 5531 else 5532 case $cross_compiling:$ac_tool_warned in 5533yes:) 5534{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5535$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5536ac_tool_warned=yes ;; 5537esac 5538 OBJDUMP=$ac_ct_OBJDUMP 5539 fi 5540else 5541 OBJDUMP="$ac_cv_prog_OBJDUMP" 5542fi 5543 5544test -z "$OBJDUMP" && OBJDUMP=objdump 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5555$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5556if ${lt_cv_deplibs_check_method+:} false; then : 5557 $as_echo_n "(cached) " >&6 5558else 5559 lt_cv_file_magic_cmd='$MAGIC_CMD' 5560lt_cv_file_magic_test_file= 5561lt_cv_deplibs_check_method='unknown' 5562# Need to set the preceding variable on all platforms that support 5563# interlibrary dependencies. 5564# 'none' -- dependencies not supported. 5565# `unknown' -- same as none, but documents that we really don't know. 5566# 'pass_all' -- all dependencies passed with no checks. 5567# 'test_compile' -- check by making test program. 5568# 'file_magic [[regex]]' -- check by looking for files in library path 5569# which responds to the $file_magic_cmd with a given extended regex. 5570# If you have `file' or equivalent on your system and you're not sure 5571# whether `pass_all' will *always* work, you probably want this one. 5572 5573case $host_os in 5574aix[4-9]*) 5575 lt_cv_deplibs_check_method=pass_all 5576 ;; 5577 5578beos*) 5579 lt_cv_deplibs_check_method=pass_all 5580 ;; 5581 5582bsdi[45]*) 5583 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5584 lt_cv_file_magic_cmd='/usr/bin/file -L' 5585 lt_cv_file_magic_test_file=/shlib/libc.so 5586 ;; 5587 5588cygwin*) 5589 # func_win32_libid is a shell function defined in ltmain.sh 5590 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5591 lt_cv_file_magic_cmd='func_win32_libid' 5592 ;; 5593 5594mingw* | pw32*) 5595 # Base MSYS/MinGW do not provide the 'file' command needed by 5596 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5597 # unless we find 'file', for example because we are cross-compiling. 5598 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5599 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5600 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5601 lt_cv_file_magic_cmd='func_win32_libid' 5602 else 5603 # Keep this pattern in sync with the one in func_win32_libid. 5604 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5605 lt_cv_file_magic_cmd='$OBJDUMP -f' 5606 fi 5607 ;; 5608 5609cegcc*) 5610 # use the weaker test based on 'objdump'. See mingw*. 5611 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5612 lt_cv_file_magic_cmd='$OBJDUMP -f' 5613 ;; 5614 5615darwin* | rhapsody*) 5616 lt_cv_deplibs_check_method=pass_all 5617 ;; 5618 5619freebsd* | dragonfly*) 5620 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5621 case $host_cpu in 5622 i*86 ) 5623 # Not sure whether the presence of OpenBSD here was a mistake. 5624 # Let's accept both of them until this is cleared up. 5625 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5626 lt_cv_file_magic_cmd=/usr/bin/file 5627 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5628 ;; 5629 esac 5630 else 5631 lt_cv_deplibs_check_method=pass_all 5632 fi 5633 ;; 5634 5635gnu*) 5636 lt_cv_deplibs_check_method=pass_all 5637 ;; 5638 5639haiku*) 5640 lt_cv_deplibs_check_method=pass_all 5641 ;; 5642 5643hpux10.20* | hpux11*) 5644 lt_cv_file_magic_cmd=/usr/bin/file 5645 case $host_cpu in 5646 ia64*) 5647 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5648 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5649 ;; 5650 hppa*64*) 5651 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]' 5652 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5653 ;; 5654 *) 5655 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5656 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5657 ;; 5658 esac 5659 ;; 5660 5661interix[3-9]*) 5662 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5663 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5664 ;; 5665 5666irix5* | irix6* | nonstopux*) 5667 case $LD in 5668 *-32|*"-32 ") libmagic=32-bit;; 5669 *-n32|*"-n32 ") libmagic=N32;; 5670 *-64|*"-64 ") libmagic=64-bit;; 5671 *) libmagic=never-match;; 5672 esac 5673 lt_cv_deplibs_check_method=pass_all 5674 ;; 5675 5676# This must be glibc/ELF. 5677linux* | k*bsd*-gnu | kopensolaris*-gnu) 5678 lt_cv_deplibs_check_method=pass_all 5679 ;; 5680 5681netbsd*) 5682 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5683 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5684 else 5685 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5686 fi 5687 ;; 5688 5689newos6*) 5690 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5691 lt_cv_file_magic_cmd=/usr/bin/file 5692 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5693 ;; 5694 5695*nto* | *qnx*) 5696 lt_cv_deplibs_check_method=pass_all 5697 ;; 5698 5699openbsd*) 5700 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5701 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5702 else 5703 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5704 fi 5705 ;; 5706 5707osf3* | osf4* | osf5*) 5708 lt_cv_deplibs_check_method=pass_all 5709 ;; 5710 5711rdos*) 5712 lt_cv_deplibs_check_method=pass_all 5713 ;; 5714 5715solaris*) 5716 lt_cv_deplibs_check_method=pass_all 5717 ;; 5718 5719sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5720 lt_cv_deplibs_check_method=pass_all 5721 ;; 5722 5723sysv4 | sysv4.3*) 5724 case $host_vendor in 5725 motorola) 5726 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]' 5727 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5728 ;; 5729 ncr) 5730 lt_cv_deplibs_check_method=pass_all 5731 ;; 5732 sequent) 5733 lt_cv_file_magic_cmd='/bin/file' 5734 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5735 ;; 5736 sni) 5737 lt_cv_file_magic_cmd='/bin/file' 5738 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5739 lt_cv_file_magic_test_file=/lib/libc.so 5740 ;; 5741 siemens) 5742 lt_cv_deplibs_check_method=pass_all 5743 ;; 5744 pc) 5745 lt_cv_deplibs_check_method=pass_all 5746 ;; 5747 esac 5748 ;; 5749 5750tpf*) 5751 lt_cv_deplibs_check_method=pass_all 5752 ;; 5753esac 5754 5755fi 5756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5757$as_echo "$lt_cv_deplibs_check_method" >&6; } 5758 5759file_magic_glob= 5760want_nocaseglob=no 5761if test "$build" = "$host"; then 5762 case $host_os in 5763 mingw* | pw32*) 5764 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5765 want_nocaseglob=yes 5766 else 5767 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5768 fi 5769 ;; 5770 esac 5771fi 5772 5773file_magic_cmd=$lt_cv_file_magic_cmd 5774deplibs_check_method=$lt_cv_deplibs_check_method 5775test -z "$deplibs_check_method" && deplibs_check_method=unknown 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798if test -n "$ac_tool_prefix"; then 5799 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5800set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5802$as_echo_n "checking for $ac_word... " >&6; } 5803if ${ac_cv_prog_DLLTOOL+:} false; then : 5804 $as_echo_n "(cached) " >&6 5805else 5806 if test -n "$DLLTOOL"; then 5807 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5808else 5809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5810for as_dir in $PATH 5811do 5812 IFS=$as_save_IFS 5813 test -z "$as_dir" && as_dir=. 5814 for ac_exec_ext in '' $ac_executable_extensions; do 5815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5816 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5818 break 2 5819 fi 5820done 5821 done 5822IFS=$as_save_IFS 5823 5824fi 5825fi 5826DLLTOOL=$ac_cv_prog_DLLTOOL 5827if test -n "$DLLTOOL"; then 5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5829$as_echo "$DLLTOOL" >&6; } 5830else 5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5832$as_echo "no" >&6; } 5833fi 5834 5835 5836fi 5837if test -z "$ac_cv_prog_DLLTOOL"; then 5838 ac_ct_DLLTOOL=$DLLTOOL 5839 # Extract the first word of "dlltool", so it can be a program name with args. 5840set dummy dlltool; ac_word=$2 5841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5842$as_echo_n "checking for $ac_word... " >&6; } 5843if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5844 $as_echo_n "(cached) " >&6 5845else 5846 if test -n "$ac_ct_DLLTOOL"; then 5847 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5848else 5849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5850for as_dir in $PATH 5851do 5852 IFS=$as_save_IFS 5853 test -z "$as_dir" && as_dir=. 5854 for ac_exec_ext in '' $ac_executable_extensions; do 5855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5856 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5858 break 2 5859 fi 5860done 5861 done 5862IFS=$as_save_IFS 5863 5864fi 5865fi 5866ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5867if test -n "$ac_ct_DLLTOOL"; then 5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5869$as_echo "$ac_ct_DLLTOOL" >&6; } 5870else 5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5872$as_echo "no" >&6; } 5873fi 5874 5875 if test "x$ac_ct_DLLTOOL" = x; then 5876 DLLTOOL="false" 5877 else 5878 case $cross_compiling:$ac_tool_warned in 5879yes:) 5880{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5881$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5882ac_tool_warned=yes ;; 5883esac 5884 DLLTOOL=$ac_ct_DLLTOOL 5885 fi 5886else 5887 DLLTOOL="$ac_cv_prog_DLLTOOL" 5888fi 5889 5890test -z "$DLLTOOL" && DLLTOOL=dlltool 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5902$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5903if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5904 $as_echo_n "(cached) " >&6 5905else 5906 lt_cv_sharedlib_from_linklib_cmd='unknown' 5907 5908case $host_os in 5909cygwin* | mingw* | pw32* | cegcc*) 5910 # two different shell functions defined in ltmain.sh 5911 # decide which to use based on capabilities of $DLLTOOL 5912 case `$DLLTOOL --help 2>&1` in 5913 *--identify-strict*) 5914 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5915 ;; 5916 *) 5917 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5918 ;; 5919 esac 5920 ;; 5921*) 5922 # fallback: assume linklib IS sharedlib 5923 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5924 ;; 5925esac 5926 5927fi 5928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5929$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5930sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5931test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5932 5933 5934 5935 5936 5937 5938 5939 5940if test -n "$ac_tool_prefix"; then 5941 for ac_prog in ar 5942 do 5943 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5944set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5946$as_echo_n "checking for $ac_word... " >&6; } 5947if ${ac_cv_prog_AR+:} false; then : 5948 $as_echo_n "(cached) " >&6 5949else 5950 if test -n "$AR"; then 5951 ac_cv_prog_AR="$AR" # Let the user override the test. 5952else 5953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5954for as_dir in $PATH 5955do 5956 IFS=$as_save_IFS 5957 test -z "$as_dir" && as_dir=. 5958 for ac_exec_ext in '' $ac_executable_extensions; do 5959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5960 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5962 break 2 5963 fi 5964done 5965 done 5966IFS=$as_save_IFS 5967 5968fi 5969fi 5970AR=$ac_cv_prog_AR 5971if test -n "$AR"; then 5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5973$as_echo "$AR" >&6; } 5974else 5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5976$as_echo "no" >&6; } 5977fi 5978 5979 5980 test -n "$AR" && break 5981 done 5982fi 5983if test -z "$AR"; then 5984 ac_ct_AR=$AR 5985 for ac_prog in ar 5986do 5987 # Extract the first word of "$ac_prog", so it can be a program name with args. 5988set dummy $ac_prog; ac_word=$2 5989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5990$as_echo_n "checking for $ac_word... " >&6; } 5991if ${ac_cv_prog_ac_ct_AR+:} false; then : 5992 $as_echo_n "(cached) " >&6 5993else 5994 if test -n "$ac_ct_AR"; then 5995 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5996else 5997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5998for as_dir in $PATH 5999do 6000 IFS=$as_save_IFS 6001 test -z "$as_dir" && as_dir=. 6002 for ac_exec_ext in '' $ac_executable_extensions; do 6003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6004 ac_cv_prog_ac_ct_AR="$ac_prog" 6005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6006 break 2 6007 fi 6008done 6009 done 6010IFS=$as_save_IFS 6011 6012fi 6013fi 6014ac_ct_AR=$ac_cv_prog_ac_ct_AR 6015if test -n "$ac_ct_AR"; then 6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6017$as_echo "$ac_ct_AR" >&6; } 6018else 6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6020$as_echo "no" >&6; } 6021fi 6022 6023 6024 test -n "$ac_ct_AR" && break 6025done 6026 6027 if test "x$ac_ct_AR" = x; then 6028 AR="false" 6029 else 6030 case $cross_compiling:$ac_tool_warned in 6031yes:) 6032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6034ac_tool_warned=yes ;; 6035esac 6036 AR=$ac_ct_AR 6037 fi 6038fi 6039 6040: ${AR=ar} 6041: ${AR_FLAGS=cru} 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6054$as_echo_n "checking for archiver @FILE support... " >&6; } 6055if ${lt_cv_ar_at_file+:} false; then : 6056 $as_echo_n "(cached) " >&6 6057else 6058 lt_cv_ar_at_file=no 6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6060/* end confdefs.h. */ 6061 6062int 6063main () 6064{ 6065 6066 ; 6067 return 0; 6068} 6069_ACEOF 6070if ac_fn_c_try_compile "$LINENO"; then : 6071 echo conftest.$ac_objext > conftest.lst 6072 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6074 (eval $lt_ar_try) 2>&5 6075 ac_status=$? 6076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6077 test $ac_status = 0; } 6078 if test "$ac_status" -eq 0; then 6079 # Ensure the archiver fails upon bogus file names. 6080 rm -f conftest.$ac_objext libconftest.a 6081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6082 (eval $lt_ar_try) 2>&5 6083 ac_status=$? 6084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6085 test $ac_status = 0; } 6086 if test "$ac_status" -ne 0; then 6087 lt_cv_ar_at_file=@ 6088 fi 6089 fi 6090 rm -f conftest.* libconftest.a 6091 6092fi 6093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6094 6095fi 6096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6097$as_echo "$lt_cv_ar_at_file" >&6; } 6098 6099if test "x$lt_cv_ar_at_file" = xno; then 6100 archiver_list_spec= 6101else 6102 archiver_list_spec=$lt_cv_ar_at_file 6103fi 6104 6105 6106 6107 6108 6109 6110 6111if test -n "$ac_tool_prefix"; then 6112 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6113set dummy ${ac_tool_prefix}strip; ac_word=$2 6114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6115$as_echo_n "checking for $ac_word... " >&6; } 6116if ${ac_cv_prog_STRIP+:} false; then : 6117 $as_echo_n "(cached) " >&6 6118else 6119 if test -n "$STRIP"; then 6120 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6121else 6122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6123for as_dir in $PATH 6124do 6125 IFS=$as_save_IFS 6126 test -z "$as_dir" && as_dir=. 6127 for ac_exec_ext in '' $ac_executable_extensions; do 6128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6129 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6131 break 2 6132 fi 6133done 6134 done 6135IFS=$as_save_IFS 6136 6137fi 6138fi 6139STRIP=$ac_cv_prog_STRIP 6140if test -n "$STRIP"; then 6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6142$as_echo "$STRIP" >&6; } 6143else 6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6145$as_echo "no" >&6; } 6146fi 6147 6148 6149fi 6150if test -z "$ac_cv_prog_STRIP"; then 6151 ac_ct_STRIP=$STRIP 6152 # Extract the first word of "strip", so it can be a program name with args. 6153set dummy strip; ac_word=$2 6154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6155$as_echo_n "checking for $ac_word... " >&6; } 6156if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6157 $as_echo_n "(cached) " >&6 6158else 6159 if test -n "$ac_ct_STRIP"; then 6160 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6161else 6162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6163for as_dir in $PATH 6164do 6165 IFS=$as_save_IFS 6166 test -z "$as_dir" && as_dir=. 6167 for ac_exec_ext in '' $ac_executable_extensions; do 6168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6169 ac_cv_prog_ac_ct_STRIP="strip" 6170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6171 break 2 6172 fi 6173done 6174 done 6175IFS=$as_save_IFS 6176 6177fi 6178fi 6179ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6180if test -n "$ac_ct_STRIP"; then 6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6182$as_echo "$ac_ct_STRIP" >&6; } 6183else 6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6185$as_echo "no" >&6; } 6186fi 6187 6188 if test "x$ac_ct_STRIP" = x; then 6189 STRIP=":" 6190 else 6191 case $cross_compiling:$ac_tool_warned in 6192yes:) 6193{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6194$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6195ac_tool_warned=yes ;; 6196esac 6197 STRIP=$ac_ct_STRIP 6198 fi 6199else 6200 STRIP="$ac_cv_prog_STRIP" 6201fi 6202 6203test -z "$STRIP" && STRIP=: 6204 6205 6206 6207 6208 6209 6210if test -n "$ac_tool_prefix"; then 6211 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6212set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6214$as_echo_n "checking for $ac_word... " >&6; } 6215if ${ac_cv_prog_RANLIB+:} false; then : 6216 $as_echo_n "(cached) " >&6 6217else 6218 if test -n "$RANLIB"; then 6219 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6220else 6221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6222for as_dir in $PATH 6223do 6224 IFS=$as_save_IFS 6225 test -z "$as_dir" && as_dir=. 6226 for ac_exec_ext in '' $ac_executable_extensions; do 6227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6228 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6230 break 2 6231 fi 6232done 6233 done 6234IFS=$as_save_IFS 6235 6236fi 6237fi 6238RANLIB=$ac_cv_prog_RANLIB 6239if test -n "$RANLIB"; then 6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6241$as_echo "$RANLIB" >&6; } 6242else 6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6244$as_echo "no" >&6; } 6245fi 6246 6247 6248fi 6249if test -z "$ac_cv_prog_RANLIB"; then 6250 ac_ct_RANLIB=$RANLIB 6251 # Extract the first word of "ranlib", so it can be a program name with args. 6252set dummy ranlib; ac_word=$2 6253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6254$as_echo_n "checking for $ac_word... " >&6; } 6255if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6256 $as_echo_n "(cached) " >&6 6257else 6258 if test -n "$ac_ct_RANLIB"; then 6259 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6260else 6261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6262for as_dir in $PATH 6263do 6264 IFS=$as_save_IFS 6265 test -z "$as_dir" && as_dir=. 6266 for ac_exec_ext in '' $ac_executable_extensions; do 6267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6268 ac_cv_prog_ac_ct_RANLIB="ranlib" 6269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6270 break 2 6271 fi 6272done 6273 done 6274IFS=$as_save_IFS 6275 6276fi 6277fi 6278ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6279if test -n "$ac_ct_RANLIB"; then 6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6281$as_echo "$ac_ct_RANLIB" >&6; } 6282else 6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6284$as_echo "no" >&6; } 6285fi 6286 6287 if test "x$ac_ct_RANLIB" = x; then 6288 RANLIB=":" 6289 else 6290 case $cross_compiling:$ac_tool_warned in 6291yes:) 6292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6294ac_tool_warned=yes ;; 6295esac 6296 RANLIB=$ac_ct_RANLIB 6297 fi 6298else 6299 RANLIB="$ac_cv_prog_RANLIB" 6300fi 6301 6302test -z "$RANLIB" && RANLIB=: 6303 6304 6305 6306 6307 6308 6309# Determine commands to create old-style static archives. 6310old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6311old_postinstall_cmds='chmod 644 $oldlib' 6312old_postuninstall_cmds= 6313 6314if test -n "$RANLIB"; then 6315 case $host_os in 6316 openbsd*) 6317 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6318 ;; 6319 *) 6320 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6321 ;; 6322 esac 6323 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6324fi 6325 6326case $host_os in 6327 darwin*) 6328 lock_old_archive_extraction=yes ;; 6329 *) 6330 lock_old_archive_extraction=no ;; 6331esac 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371# If no C compiler was specified, use CC. 6372LTCC=${LTCC-"$CC"} 6373 6374# If no C compiler flags were specified, use CFLAGS. 6375LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6376 6377# Allow CC to be a program name with arguments. 6378compiler=$CC 6379 6380 6381# Check for command to grab the raw symbol name followed by C symbol from nm. 6382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6383$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6384if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6385 $as_echo_n "(cached) " >&6 6386else 6387 6388# These are sane defaults that work on at least a few old systems. 6389# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6390 6391# Character class describing NM global symbol codes. 6392symcode='[BCDEGRST]' 6393 6394# Regexp to match symbols that can be accessed directly from C. 6395sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6396 6397# Define system-specific variables. 6398case $host_os in 6399aix*) 6400 symcode='[BCDT]' 6401 ;; 6402cygwin* | mingw* | pw32* | cegcc*) 6403 symcode='[ABCDGISTW]' 6404 ;; 6405hpux*) 6406 if test "$host_cpu" = ia64; then 6407 symcode='[ABCDEGRST]' 6408 fi 6409 ;; 6410irix* | nonstopux*) 6411 symcode='[BCDEGRST]' 6412 ;; 6413osf*) 6414 symcode='[BCDEGQRST]' 6415 ;; 6416solaris*) 6417 symcode='[BDRT]' 6418 ;; 6419sco3.2v5*) 6420 symcode='[DT]' 6421 ;; 6422sysv4.2uw2*) 6423 symcode='[DT]' 6424 ;; 6425sysv5* | sco5v6* | unixware* | OpenUNIX*) 6426 symcode='[ABDT]' 6427 ;; 6428sysv4) 6429 symcode='[DFNSTU]' 6430 ;; 6431esac 6432 6433# If we're using GNU nm, then use its standard symbol codes. 6434case `$NM -V 2>&1` in 6435*GNU* | *'with BFD'*) 6436 symcode='[ABCDGIRSTW]' ;; 6437esac 6438 6439# Transform an extracted symbol line into a proper C declaration. 6440# Some systems (esp. on ia64) link data and code symbols differently, 6441# so use this general approach. 6442lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6443 6444# Transform an extracted symbol line into symbol name and symbol address 6445lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6446lt_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'" 6447 6448# Handle CRLF in mingw tool chain 6449opt_cr= 6450case $build_os in 6451mingw*) 6452 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6453 ;; 6454esac 6455 6456# Try without a prefix underscore, then with it. 6457for ac_symprfx in "" "_"; do 6458 6459 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6460 symxfrm="\\1 $ac_symprfx\\2 \\2" 6461 6462 # Write the raw and C identifiers. 6463 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6464 # Fake it for dumpbin and say T for any non-static function 6465 # and D for any global variable. 6466 # Also find C++ and __fastcall symbols from MSVC++, 6467 # which start with @ or ?. 6468 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6469" {last_section=section; section=\$ 3};"\ 6470" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6471" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6472" \$ 0!~/External *\|/{next};"\ 6473" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6474" {if(hide[section]) next};"\ 6475" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6476" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6477" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6478" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6479" ' prfx=^$ac_symprfx" 6480 else 6481 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6482 fi 6483 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6484 6485 # Check to see that the pipe works correctly. 6486 pipe_works=no 6487 6488 rm -f conftest* 6489 cat > conftest.$ac_ext <<_LT_EOF 6490#ifdef __cplusplus 6491extern "C" { 6492#endif 6493char nm_test_var; 6494void nm_test_func(void); 6495void nm_test_func(void){} 6496#ifdef __cplusplus 6497} 6498#endif 6499int main(){nm_test_var='a';nm_test_func();return(0);} 6500_LT_EOF 6501 6502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6503 (eval $ac_compile) 2>&5 6504 ac_status=$? 6505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6506 test $ac_status = 0; }; then 6507 # Now try to grab the symbols. 6508 nlist=conftest.nm 6509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6510 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6511 ac_status=$? 6512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6513 test $ac_status = 0; } && test -s "$nlist"; then 6514 # Try sorting and uniquifying the output. 6515 if sort "$nlist" | uniq > "$nlist"T; then 6516 mv -f "$nlist"T "$nlist" 6517 else 6518 rm -f "$nlist"T 6519 fi 6520 6521 # Make sure that we snagged all the symbols we need. 6522 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6523 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6524 cat <<_LT_EOF > conftest.$ac_ext 6525/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6526#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6527/* DATA imports from DLLs on WIN32 con't be const, because runtime 6528 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6529# define LT_DLSYM_CONST 6530#elif defined(__osf__) 6531/* This system does not cope well with relocations in const data. */ 6532# define LT_DLSYM_CONST 6533#else 6534# define LT_DLSYM_CONST const 6535#endif 6536 6537#ifdef __cplusplus 6538extern "C" { 6539#endif 6540 6541_LT_EOF 6542 # Now generate the symbol file. 6543 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6544 6545 cat <<_LT_EOF >> conftest.$ac_ext 6546 6547/* The mapping between symbol names and symbols. */ 6548LT_DLSYM_CONST struct { 6549 const char *name; 6550 void *address; 6551} 6552lt__PROGRAM__LTX_preloaded_symbols[] = 6553{ 6554 { "@PROGRAM@", (void *) 0 }, 6555_LT_EOF 6556 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6557 cat <<\_LT_EOF >> conftest.$ac_ext 6558 {0, (void *) 0} 6559}; 6560 6561/* This works around a problem in FreeBSD linker */ 6562#ifdef FREEBSD_WORKAROUND 6563static const void *lt_preloaded_setup() { 6564 return lt__PROGRAM__LTX_preloaded_symbols; 6565} 6566#endif 6567 6568#ifdef __cplusplus 6569} 6570#endif 6571_LT_EOF 6572 # Now try linking the two files. 6573 mv conftest.$ac_objext conftstm.$ac_objext 6574 lt_globsym_save_LIBS=$LIBS 6575 lt_globsym_save_CFLAGS=$CFLAGS 6576 LIBS="conftstm.$ac_objext" 6577 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6579 (eval $ac_link) 2>&5 6580 ac_status=$? 6581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6582 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6583 pipe_works=yes 6584 fi 6585 LIBS=$lt_globsym_save_LIBS 6586 CFLAGS=$lt_globsym_save_CFLAGS 6587 else 6588 echo "cannot find nm_test_func in $nlist" >&5 6589 fi 6590 else 6591 echo "cannot find nm_test_var in $nlist" >&5 6592 fi 6593 else 6594 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6595 fi 6596 else 6597 echo "$progname: failed program was:" >&5 6598 cat conftest.$ac_ext >&5 6599 fi 6600 rm -rf conftest* conftst* 6601 6602 # Do not use the global_symbol_pipe unless it works. 6603 if test "$pipe_works" = yes; then 6604 break 6605 else 6606 lt_cv_sys_global_symbol_pipe= 6607 fi 6608done 6609 6610fi 6611 6612if test -z "$lt_cv_sys_global_symbol_pipe"; then 6613 lt_cv_sys_global_symbol_to_cdecl= 6614fi 6615if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6617$as_echo "failed" >&6; } 6618else 6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6620$as_echo "ok" >&6; } 6621fi 6622 6623# Response file support. 6624if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6625 nm_file_list_spec='@' 6626elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6627 nm_file_list_spec='@' 6628fi 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6657$as_echo_n "checking for sysroot... " >&6; } 6658 6659# Check whether --with-sysroot was given. 6660if test "${with_sysroot+set}" = set; then : 6661 withval=$with_sysroot; 6662else 6663 with_sysroot=no 6664fi 6665 6666 6667lt_sysroot= 6668case ${with_sysroot} in #( 6669 yes) 6670 if test "$GCC" = yes; then 6671 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6672 fi 6673 ;; #( 6674 /*) 6675 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6676 ;; #( 6677 no|'') 6678 ;; #( 6679 *) 6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6681$as_echo "${with_sysroot}" >&6; } 6682 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6683 ;; 6684esac 6685 6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6687$as_echo "${lt_sysroot:-no}" >&6; } 6688 6689 6690 6691 6692 6693# Check whether --enable-libtool-lock was given. 6694if test "${enable_libtool_lock+set}" = set; then : 6695 enableval=$enable_libtool_lock; 6696fi 6697 6698test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6699 6700# Some flags need to be propagated to the compiler or linker for good 6701# libtool support. 6702case $host in 6703ia64-*-hpux*) 6704 # Find out which ABI we are using. 6705 echo 'int i;' > conftest.$ac_ext 6706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6707 (eval $ac_compile) 2>&5 6708 ac_status=$? 6709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6710 test $ac_status = 0; }; then 6711 case `/usr/bin/file conftest.$ac_objext` in 6712 *ELF-32*) 6713 HPUX_IA64_MODE="32" 6714 ;; 6715 *ELF-64*) 6716 HPUX_IA64_MODE="64" 6717 ;; 6718 esac 6719 fi 6720 rm -rf conftest* 6721 ;; 6722*-*-irix6*) 6723 # Find out which ABI we are using. 6724 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6726 (eval $ac_compile) 2>&5 6727 ac_status=$? 6728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6729 test $ac_status = 0; }; then 6730 if test "$lt_cv_prog_gnu_ld" = yes; then 6731 case `/usr/bin/file conftest.$ac_objext` in 6732 *32-bit*) 6733 LD="${LD-ld} -melf32bsmip" 6734 ;; 6735 *N32*) 6736 LD="${LD-ld} -melf32bmipn32" 6737 ;; 6738 *64-bit*) 6739 LD="${LD-ld} -melf64bmip" 6740 ;; 6741 esac 6742 else 6743 case `/usr/bin/file conftest.$ac_objext` in 6744 *32-bit*) 6745 LD="${LD-ld} -32" 6746 ;; 6747 *N32*) 6748 LD="${LD-ld} -n32" 6749 ;; 6750 *64-bit*) 6751 LD="${LD-ld} -64" 6752 ;; 6753 esac 6754 fi 6755 fi 6756 rm -rf conftest* 6757 ;; 6758 6759x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6760s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6761 # Find out which ABI we are using. 6762 echo 'int i;' > conftest.$ac_ext 6763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6764 (eval $ac_compile) 2>&5 6765 ac_status=$? 6766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6767 test $ac_status = 0; }; then 6768 case `/usr/bin/file conftest.o` in 6769 *32-bit*) 6770 case $host in 6771 x86_64-*kfreebsd*-gnu) 6772 LD="${LD-ld} -m elf_i386_fbsd" 6773 ;; 6774 x86_64-*linux*) 6775 LD="${LD-ld} -m elf_i386" 6776 ;; 6777 ppc64-*linux*|powerpc64-*linux*) 6778 LD="${LD-ld} -m elf32ppclinux" 6779 ;; 6780 s390x-*linux*) 6781 LD="${LD-ld} -m elf_s390" 6782 ;; 6783 sparc64-*linux*) 6784 LD="${LD-ld} -m elf32_sparc" 6785 ;; 6786 esac 6787 ;; 6788 *64-bit*) 6789 case $host in 6790 x86_64-*kfreebsd*-gnu) 6791 LD="${LD-ld} -m elf_x86_64_fbsd" 6792 ;; 6793 x86_64-*linux*) 6794 LD="${LD-ld} -m elf_x86_64" 6795 ;; 6796 ppc*-*linux*|powerpc*-*linux*) 6797 LD="${LD-ld} -m elf64ppc" 6798 ;; 6799 s390*-*linux*|s390*-*tpf*) 6800 LD="${LD-ld} -m elf64_s390" 6801 ;; 6802 sparc*-*linux*) 6803 LD="${LD-ld} -m elf64_sparc" 6804 ;; 6805 esac 6806 ;; 6807 esac 6808 fi 6809 rm -rf conftest* 6810 ;; 6811 6812*-*-sco3.2v5*) 6813 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6814 SAVE_CFLAGS="$CFLAGS" 6815 CFLAGS="$CFLAGS -belf" 6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6817$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6818if ${lt_cv_cc_needs_belf+:} false; then : 6819 $as_echo_n "(cached) " >&6 6820else 6821 ac_ext=c 6822ac_cpp='$CPP $CPPFLAGS' 6823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6825ac_compiler_gnu=$ac_cv_c_compiler_gnu 6826 6827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6828/* end confdefs.h. */ 6829 6830int 6831main () 6832{ 6833 6834 ; 6835 return 0; 6836} 6837_ACEOF 6838if ac_fn_c_try_link "$LINENO"; then : 6839 lt_cv_cc_needs_belf=yes 6840else 6841 lt_cv_cc_needs_belf=no 6842fi 6843rm -f core conftest.err conftest.$ac_objext \ 6844 conftest$ac_exeext conftest.$ac_ext 6845 ac_ext=c 6846ac_cpp='$CPP $CPPFLAGS' 6847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6849ac_compiler_gnu=$ac_cv_c_compiler_gnu 6850 6851fi 6852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6853$as_echo "$lt_cv_cc_needs_belf" >&6; } 6854 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6855 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6856 CFLAGS="$SAVE_CFLAGS" 6857 fi 6858 ;; 6859*-*solaris*) 6860 # Find out which ABI we are using. 6861 echo 'int i;' > conftest.$ac_ext 6862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6863 (eval $ac_compile) 2>&5 6864 ac_status=$? 6865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6866 test $ac_status = 0; }; then 6867 case `/usr/bin/file conftest.o` in 6868 *64-bit*) 6869 case $lt_cv_prog_gnu_ld in 6870 yes*) 6871 case $host in 6872 i?86-*-solaris*) 6873 LD="${LD-ld} -m elf_x86_64" 6874 ;; 6875 sparc*-*-solaris*) 6876 LD="${LD-ld} -m elf64_sparc" 6877 ;; 6878 esac 6879 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6880 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6881 LD="${LD-ld}_sol2" 6882 fi 6883 ;; 6884 *) 6885 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6886 LD="${LD-ld} -64" 6887 fi 6888 ;; 6889 esac 6890 ;; 6891 esac 6892 fi 6893 rm -rf conftest* 6894 ;; 6895esac 6896 6897need_locks="$enable_libtool_lock" 6898 6899if test -n "$ac_tool_prefix"; then 6900 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6901set dummy ${ac_tool_prefix}mt; ac_word=$2 6902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6903$as_echo_n "checking for $ac_word... " >&6; } 6904if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6905 $as_echo_n "(cached) " >&6 6906else 6907 if test -n "$MANIFEST_TOOL"; then 6908 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6909else 6910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6911for as_dir in $PATH 6912do 6913 IFS=$as_save_IFS 6914 test -z "$as_dir" && as_dir=. 6915 for ac_exec_ext in '' $ac_executable_extensions; do 6916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6917 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6919 break 2 6920 fi 6921done 6922 done 6923IFS=$as_save_IFS 6924 6925fi 6926fi 6927MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6928if test -n "$MANIFEST_TOOL"; then 6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6930$as_echo "$MANIFEST_TOOL" >&6; } 6931else 6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6933$as_echo "no" >&6; } 6934fi 6935 6936 6937fi 6938if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6939 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6940 # Extract the first word of "mt", so it can be a program name with args. 6941set dummy mt; ac_word=$2 6942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6943$as_echo_n "checking for $ac_word... " >&6; } 6944if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6945 $as_echo_n "(cached) " >&6 6946else 6947 if test -n "$ac_ct_MANIFEST_TOOL"; then 6948 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6949else 6950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6951for as_dir in $PATH 6952do 6953 IFS=$as_save_IFS 6954 test -z "$as_dir" && as_dir=. 6955 for ac_exec_ext in '' $ac_executable_extensions; do 6956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6957 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6959 break 2 6960 fi 6961done 6962 done 6963IFS=$as_save_IFS 6964 6965fi 6966fi 6967ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6968if test -n "$ac_ct_MANIFEST_TOOL"; then 6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6970$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6971else 6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6973$as_echo "no" >&6; } 6974fi 6975 6976 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6977 MANIFEST_TOOL=":" 6978 else 6979 case $cross_compiling:$ac_tool_warned in 6980yes:) 6981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6983ac_tool_warned=yes ;; 6984esac 6985 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6986 fi 6987else 6988 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6989fi 6990 6991test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6993$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6994if ${lt_cv_path_mainfest_tool+:} false; then : 6995 $as_echo_n "(cached) " >&6 6996else 6997 lt_cv_path_mainfest_tool=no 6998 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6999 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7000 cat conftest.err >&5 7001 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7002 lt_cv_path_mainfest_tool=yes 7003 fi 7004 rm -f conftest* 7005fi 7006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7007$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7008if test "x$lt_cv_path_mainfest_tool" != xyes; then 7009 MANIFEST_TOOL=: 7010fi 7011 7012 7013 7014 7015 7016 7017 case $host_os in 7018 rhapsody* | darwin*) 7019 if test -n "$ac_tool_prefix"; then 7020 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7021set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7023$as_echo_n "checking for $ac_word... " >&6; } 7024if ${ac_cv_prog_DSYMUTIL+:} false; then : 7025 $as_echo_n "(cached) " >&6 7026else 7027 if test -n "$DSYMUTIL"; then 7028 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7029else 7030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7031for as_dir in $PATH 7032do 7033 IFS=$as_save_IFS 7034 test -z "$as_dir" && as_dir=. 7035 for ac_exec_ext in '' $ac_executable_extensions; do 7036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7037 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7039 break 2 7040 fi 7041done 7042 done 7043IFS=$as_save_IFS 7044 7045fi 7046fi 7047DSYMUTIL=$ac_cv_prog_DSYMUTIL 7048if test -n "$DSYMUTIL"; then 7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7050$as_echo "$DSYMUTIL" >&6; } 7051else 7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7053$as_echo "no" >&6; } 7054fi 7055 7056 7057fi 7058if test -z "$ac_cv_prog_DSYMUTIL"; then 7059 ac_ct_DSYMUTIL=$DSYMUTIL 7060 # Extract the first word of "dsymutil", so it can be a program name with args. 7061set dummy dsymutil; ac_word=$2 7062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7063$as_echo_n "checking for $ac_word... " >&6; } 7064if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7065 $as_echo_n "(cached) " >&6 7066else 7067 if test -n "$ac_ct_DSYMUTIL"; then 7068 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7069else 7070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7071for as_dir in $PATH 7072do 7073 IFS=$as_save_IFS 7074 test -z "$as_dir" && as_dir=. 7075 for ac_exec_ext in '' $ac_executable_extensions; do 7076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7077 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7079 break 2 7080 fi 7081done 7082 done 7083IFS=$as_save_IFS 7084 7085fi 7086fi 7087ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7088if test -n "$ac_ct_DSYMUTIL"; then 7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7090$as_echo "$ac_ct_DSYMUTIL" >&6; } 7091else 7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7093$as_echo "no" >&6; } 7094fi 7095 7096 if test "x$ac_ct_DSYMUTIL" = x; then 7097 DSYMUTIL=":" 7098 else 7099 case $cross_compiling:$ac_tool_warned in 7100yes:) 7101{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7102$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7103ac_tool_warned=yes ;; 7104esac 7105 DSYMUTIL=$ac_ct_DSYMUTIL 7106 fi 7107else 7108 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7109fi 7110 7111 if test -n "$ac_tool_prefix"; then 7112 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7113set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7115$as_echo_n "checking for $ac_word... " >&6; } 7116if ${ac_cv_prog_NMEDIT+:} false; then : 7117 $as_echo_n "(cached) " >&6 7118else 7119 if test -n "$NMEDIT"; then 7120 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7121else 7122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7123for as_dir in $PATH 7124do 7125 IFS=$as_save_IFS 7126 test -z "$as_dir" && as_dir=. 7127 for ac_exec_ext in '' $ac_executable_extensions; do 7128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7129 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7131 break 2 7132 fi 7133done 7134 done 7135IFS=$as_save_IFS 7136 7137fi 7138fi 7139NMEDIT=$ac_cv_prog_NMEDIT 7140if test -n "$NMEDIT"; then 7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7142$as_echo "$NMEDIT" >&6; } 7143else 7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7145$as_echo "no" >&6; } 7146fi 7147 7148 7149fi 7150if test -z "$ac_cv_prog_NMEDIT"; then 7151 ac_ct_NMEDIT=$NMEDIT 7152 # Extract the first word of "nmedit", so it can be a program name with args. 7153set dummy nmedit; ac_word=$2 7154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7155$as_echo_n "checking for $ac_word... " >&6; } 7156if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7157 $as_echo_n "(cached) " >&6 7158else 7159 if test -n "$ac_ct_NMEDIT"; then 7160 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7161else 7162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7163for as_dir in $PATH 7164do 7165 IFS=$as_save_IFS 7166 test -z "$as_dir" && as_dir=. 7167 for ac_exec_ext in '' $ac_executable_extensions; do 7168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7169 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7171 break 2 7172 fi 7173done 7174 done 7175IFS=$as_save_IFS 7176 7177fi 7178fi 7179ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7180if test -n "$ac_ct_NMEDIT"; then 7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7182$as_echo "$ac_ct_NMEDIT" >&6; } 7183else 7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7185$as_echo "no" >&6; } 7186fi 7187 7188 if test "x$ac_ct_NMEDIT" = x; then 7189 NMEDIT=":" 7190 else 7191 case $cross_compiling:$ac_tool_warned in 7192yes:) 7193{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7194$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7195ac_tool_warned=yes ;; 7196esac 7197 NMEDIT=$ac_ct_NMEDIT 7198 fi 7199else 7200 NMEDIT="$ac_cv_prog_NMEDIT" 7201fi 7202 7203 if test -n "$ac_tool_prefix"; then 7204 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7205set dummy ${ac_tool_prefix}lipo; ac_word=$2 7206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7207$as_echo_n "checking for $ac_word... " >&6; } 7208if ${ac_cv_prog_LIPO+:} false; then : 7209 $as_echo_n "(cached) " >&6 7210else 7211 if test -n "$LIPO"; then 7212 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7213else 7214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7215for as_dir in $PATH 7216do 7217 IFS=$as_save_IFS 7218 test -z "$as_dir" && as_dir=. 7219 for ac_exec_ext in '' $ac_executable_extensions; do 7220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7221 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7223 break 2 7224 fi 7225done 7226 done 7227IFS=$as_save_IFS 7228 7229fi 7230fi 7231LIPO=$ac_cv_prog_LIPO 7232if test -n "$LIPO"; then 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7234$as_echo "$LIPO" >&6; } 7235else 7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7237$as_echo "no" >&6; } 7238fi 7239 7240 7241fi 7242if test -z "$ac_cv_prog_LIPO"; then 7243 ac_ct_LIPO=$LIPO 7244 # Extract the first word of "lipo", so it can be a program name with args. 7245set dummy lipo; ac_word=$2 7246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7247$as_echo_n "checking for $ac_word... " >&6; } 7248if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7249 $as_echo_n "(cached) " >&6 7250else 7251 if test -n "$ac_ct_LIPO"; then 7252 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7253else 7254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7255for as_dir in $PATH 7256do 7257 IFS=$as_save_IFS 7258 test -z "$as_dir" && as_dir=. 7259 for ac_exec_ext in '' $ac_executable_extensions; do 7260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7261 ac_cv_prog_ac_ct_LIPO="lipo" 7262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7263 break 2 7264 fi 7265done 7266 done 7267IFS=$as_save_IFS 7268 7269fi 7270fi 7271ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7272if test -n "$ac_ct_LIPO"; then 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7274$as_echo "$ac_ct_LIPO" >&6; } 7275else 7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7277$as_echo "no" >&6; } 7278fi 7279 7280 if test "x$ac_ct_LIPO" = x; then 7281 LIPO=":" 7282 else 7283 case $cross_compiling:$ac_tool_warned in 7284yes:) 7285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7287ac_tool_warned=yes ;; 7288esac 7289 LIPO=$ac_ct_LIPO 7290 fi 7291else 7292 LIPO="$ac_cv_prog_LIPO" 7293fi 7294 7295 if test -n "$ac_tool_prefix"; then 7296 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7297set dummy ${ac_tool_prefix}otool; ac_word=$2 7298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7299$as_echo_n "checking for $ac_word... " >&6; } 7300if ${ac_cv_prog_OTOOL+:} false; then : 7301 $as_echo_n "(cached) " >&6 7302else 7303 if test -n "$OTOOL"; then 7304 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7305else 7306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7307for as_dir in $PATH 7308do 7309 IFS=$as_save_IFS 7310 test -z "$as_dir" && as_dir=. 7311 for ac_exec_ext in '' $ac_executable_extensions; do 7312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7313 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7315 break 2 7316 fi 7317done 7318 done 7319IFS=$as_save_IFS 7320 7321fi 7322fi 7323OTOOL=$ac_cv_prog_OTOOL 7324if test -n "$OTOOL"; then 7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7326$as_echo "$OTOOL" >&6; } 7327else 7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7329$as_echo "no" >&6; } 7330fi 7331 7332 7333fi 7334if test -z "$ac_cv_prog_OTOOL"; then 7335 ac_ct_OTOOL=$OTOOL 7336 # Extract the first word of "otool", so it can be a program name with args. 7337set dummy otool; ac_word=$2 7338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7339$as_echo_n "checking for $ac_word... " >&6; } 7340if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7341 $as_echo_n "(cached) " >&6 7342else 7343 if test -n "$ac_ct_OTOOL"; then 7344 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7345else 7346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7347for as_dir in $PATH 7348do 7349 IFS=$as_save_IFS 7350 test -z "$as_dir" && as_dir=. 7351 for ac_exec_ext in '' $ac_executable_extensions; do 7352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7353 ac_cv_prog_ac_ct_OTOOL="otool" 7354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7355 break 2 7356 fi 7357done 7358 done 7359IFS=$as_save_IFS 7360 7361fi 7362fi 7363ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7364if test -n "$ac_ct_OTOOL"; then 7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7366$as_echo "$ac_ct_OTOOL" >&6; } 7367else 7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7369$as_echo "no" >&6; } 7370fi 7371 7372 if test "x$ac_ct_OTOOL" = x; then 7373 OTOOL=":" 7374 else 7375 case $cross_compiling:$ac_tool_warned in 7376yes:) 7377{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7379ac_tool_warned=yes ;; 7380esac 7381 OTOOL=$ac_ct_OTOOL 7382 fi 7383else 7384 OTOOL="$ac_cv_prog_OTOOL" 7385fi 7386 7387 if test -n "$ac_tool_prefix"; then 7388 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7389set dummy ${ac_tool_prefix}otool64; ac_word=$2 7390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7391$as_echo_n "checking for $ac_word... " >&6; } 7392if ${ac_cv_prog_OTOOL64+:} false; then : 7393 $as_echo_n "(cached) " >&6 7394else 7395 if test -n "$OTOOL64"; then 7396 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7397else 7398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7399for as_dir in $PATH 7400do 7401 IFS=$as_save_IFS 7402 test -z "$as_dir" && as_dir=. 7403 for ac_exec_ext in '' $ac_executable_extensions; do 7404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7405 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7407 break 2 7408 fi 7409done 7410 done 7411IFS=$as_save_IFS 7412 7413fi 7414fi 7415OTOOL64=$ac_cv_prog_OTOOL64 7416if test -n "$OTOOL64"; then 7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7418$as_echo "$OTOOL64" >&6; } 7419else 7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7421$as_echo "no" >&6; } 7422fi 7423 7424 7425fi 7426if test -z "$ac_cv_prog_OTOOL64"; then 7427 ac_ct_OTOOL64=$OTOOL64 7428 # Extract the first word of "otool64", so it can be a program name with args. 7429set dummy otool64; ac_word=$2 7430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7431$as_echo_n "checking for $ac_word... " >&6; } 7432if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7433 $as_echo_n "(cached) " >&6 7434else 7435 if test -n "$ac_ct_OTOOL64"; then 7436 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7437else 7438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7439for as_dir in $PATH 7440do 7441 IFS=$as_save_IFS 7442 test -z "$as_dir" && as_dir=. 7443 for ac_exec_ext in '' $ac_executable_extensions; do 7444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7445 ac_cv_prog_ac_ct_OTOOL64="otool64" 7446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7447 break 2 7448 fi 7449done 7450 done 7451IFS=$as_save_IFS 7452 7453fi 7454fi 7455ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7456if test -n "$ac_ct_OTOOL64"; then 7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7458$as_echo "$ac_ct_OTOOL64" >&6; } 7459else 7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7461$as_echo "no" >&6; } 7462fi 7463 7464 if test "x$ac_ct_OTOOL64" = x; then 7465 OTOOL64=":" 7466 else 7467 case $cross_compiling:$ac_tool_warned in 7468yes:) 7469{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7470$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7471ac_tool_warned=yes ;; 7472esac 7473 OTOOL64=$ac_ct_OTOOL64 7474 fi 7475else 7476 OTOOL64="$ac_cv_prog_OTOOL64" 7477fi 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7506$as_echo_n "checking for -single_module linker flag... " >&6; } 7507if ${lt_cv_apple_cc_single_mod+:} false; then : 7508 $as_echo_n "(cached) " >&6 7509else 7510 lt_cv_apple_cc_single_mod=no 7511 if test -z "${LT_MULTI_MODULE}"; then 7512 # By default we will add the -single_module flag. You can override 7513 # by either setting the environment variable LT_MULTI_MODULE 7514 # non-empty at configure time, or by adding -multi_module to the 7515 # link flags. 7516 rm -rf libconftest.dylib* 7517 echo "int foo(void){return 1;}" > conftest.c 7518 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7519-dynamiclib -Wl,-single_module conftest.c" >&5 7520 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7521 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7522 _lt_result=$? 7523 # If there is a non-empty error log, and "single_module" 7524 # appears in it, assume the flag caused a linker warning 7525 if test -s conftest.err && $GREP single_module conftest.err; then 7526 cat conftest.err >&5 7527 # Otherwise, if the output was created with a 0 exit code from 7528 # the compiler, it worked. 7529 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7530 lt_cv_apple_cc_single_mod=yes 7531 else 7532 cat conftest.err >&5 7533 fi 7534 rm -rf libconftest.dylib* 7535 rm -f conftest.* 7536 fi 7537fi 7538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7539$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7540 7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7542$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7543if ${lt_cv_ld_exported_symbols_list+:} false; then : 7544 $as_echo_n "(cached) " >&6 7545else 7546 lt_cv_ld_exported_symbols_list=no 7547 save_LDFLAGS=$LDFLAGS 7548 echo "_main" > conftest.sym 7549 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7551/* end confdefs.h. */ 7552 7553int 7554main () 7555{ 7556 7557 ; 7558 return 0; 7559} 7560_ACEOF 7561if ac_fn_c_try_link "$LINENO"; then : 7562 lt_cv_ld_exported_symbols_list=yes 7563else 7564 lt_cv_ld_exported_symbols_list=no 7565fi 7566rm -f core conftest.err conftest.$ac_objext \ 7567 conftest$ac_exeext conftest.$ac_ext 7568 LDFLAGS="$save_LDFLAGS" 7569 7570fi 7571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7572$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7573 7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7575$as_echo_n "checking for -force_load linker flag... " >&6; } 7576if ${lt_cv_ld_force_load+:} false; then : 7577 $as_echo_n "(cached) " >&6 7578else 7579 lt_cv_ld_force_load=no 7580 cat > conftest.c << _LT_EOF 7581int forced_loaded() { return 2;} 7582_LT_EOF 7583 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7584 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7585 echo "$AR cru libconftest.a conftest.o" >&5 7586 $AR cru libconftest.a conftest.o 2>&5 7587 echo "$RANLIB libconftest.a" >&5 7588 $RANLIB libconftest.a 2>&5 7589 cat > conftest.c << _LT_EOF 7590int main() { return 0;} 7591_LT_EOF 7592 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7593 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7594 _lt_result=$? 7595 if test -s conftest.err && $GREP force_load conftest.err; then 7596 cat conftest.err >&5 7597 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7598 lt_cv_ld_force_load=yes 7599 else 7600 cat conftest.err >&5 7601 fi 7602 rm -f conftest.err libconftest.a conftest conftest.c 7603 rm -rf conftest.dSYM 7604 7605fi 7606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7607$as_echo "$lt_cv_ld_force_load" >&6; } 7608 case $host_os in 7609 rhapsody* | darwin1.[012]) 7610 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7611 darwin1.*) 7612 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7613 darwin*) # darwin 5.x on 7614 # if running on 10.5 or later, the deployment target defaults 7615 # to the OS version, if on x86, and 10.4, the deployment 7616 # target defaults to 10.4. Don't you love it? 7617 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7618 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7619 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7620 10.[012]*) 7621 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7622 10.*) 7623 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7624 esac 7625 ;; 7626 esac 7627 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7628 _lt_dar_single_mod='$single_module' 7629 fi 7630 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7631 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7632 else 7633 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7634 fi 7635 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7636 _lt_dsymutil='~$DSYMUTIL $lib || :' 7637 else 7638 _lt_dsymutil= 7639 fi 7640 ;; 7641 esac 7642 7643ac_ext=c 7644ac_cpp='$CPP $CPPFLAGS' 7645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7647ac_compiler_gnu=$ac_cv_c_compiler_gnu 7648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7649$as_echo_n "checking how to run the C preprocessor... " >&6; } 7650# On Suns, sometimes $CPP names a directory. 7651if test -n "$CPP" && test -d "$CPP"; then 7652 CPP= 7653fi 7654if test -z "$CPP"; then 7655 if ${ac_cv_prog_CPP+:} false; then : 7656 $as_echo_n "(cached) " >&6 7657else 7658 # Double quotes because CPP needs to be expanded 7659 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7660 do 7661 ac_preproc_ok=false 7662for ac_c_preproc_warn_flag in '' yes 7663do 7664 # Use a header file that comes with gcc, so configuring glibc 7665 # with a fresh cross-compiler works. 7666 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7667 # <limits.h> exists even on freestanding compilers. 7668 # On the NeXT, cc -E runs the code through the compiler's parser, 7669 # not just through cpp. "Syntax error" is here to catch this case. 7670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7671/* end confdefs.h. */ 7672#ifdef __STDC__ 7673# include <limits.h> 7674#else 7675# include <assert.h> 7676#endif 7677 Syntax error 7678_ACEOF 7679if ac_fn_c_try_cpp "$LINENO"; then : 7680 7681else 7682 # Broken: fails on valid input. 7683continue 7684fi 7685rm -f conftest.err conftest.i conftest.$ac_ext 7686 7687 # OK, works on sane cases. Now check whether nonexistent headers 7688 # can be detected and how. 7689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7690/* end confdefs.h. */ 7691#include <ac_nonexistent.h> 7692_ACEOF 7693if ac_fn_c_try_cpp "$LINENO"; then : 7694 # Broken: success on invalid input. 7695continue 7696else 7697 # Passes both tests. 7698ac_preproc_ok=: 7699break 7700fi 7701rm -f conftest.err conftest.i conftest.$ac_ext 7702 7703done 7704# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7705rm -f conftest.i conftest.err conftest.$ac_ext 7706if $ac_preproc_ok; then : 7707 break 7708fi 7709 7710 done 7711 ac_cv_prog_CPP=$CPP 7712 7713fi 7714 CPP=$ac_cv_prog_CPP 7715else 7716 ac_cv_prog_CPP=$CPP 7717fi 7718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7719$as_echo "$CPP" >&6; } 7720ac_preproc_ok=false 7721for ac_c_preproc_warn_flag in '' yes 7722do 7723 # Use a header file that comes with gcc, so configuring glibc 7724 # with a fresh cross-compiler works. 7725 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7726 # <limits.h> exists even on freestanding compilers. 7727 # On the NeXT, cc -E runs the code through the compiler's parser, 7728 # not just through cpp. "Syntax error" is here to catch this case. 7729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7730/* end confdefs.h. */ 7731#ifdef __STDC__ 7732# include <limits.h> 7733#else 7734# include <assert.h> 7735#endif 7736 Syntax error 7737_ACEOF 7738if ac_fn_c_try_cpp "$LINENO"; then : 7739 7740else 7741 # Broken: fails on valid input. 7742continue 7743fi 7744rm -f conftest.err conftest.i conftest.$ac_ext 7745 7746 # OK, works on sane cases. Now check whether nonexistent headers 7747 # can be detected and how. 7748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7749/* end confdefs.h. */ 7750#include <ac_nonexistent.h> 7751_ACEOF 7752if ac_fn_c_try_cpp "$LINENO"; then : 7753 # Broken: success on invalid input. 7754continue 7755else 7756 # Passes both tests. 7757ac_preproc_ok=: 7758break 7759fi 7760rm -f conftest.err conftest.i conftest.$ac_ext 7761 7762done 7763# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7764rm -f conftest.i conftest.err conftest.$ac_ext 7765if $ac_preproc_ok; then : 7766 7767else 7768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7769$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7770as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7771See \`config.log' for more details" "$LINENO" 5; } 7772fi 7773 7774ac_ext=c 7775ac_cpp='$CPP $CPPFLAGS' 7776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7778ac_compiler_gnu=$ac_cv_c_compiler_gnu 7779 7780 7781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7782$as_echo_n "checking for ANSI C header files... " >&6; } 7783if ${ac_cv_header_stdc+:} false; then : 7784 $as_echo_n "(cached) " >&6 7785else 7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7787/* end confdefs.h. */ 7788#include <stdlib.h> 7789#include <stdarg.h> 7790#include <string.h> 7791#include <float.h> 7792 7793int 7794main () 7795{ 7796 7797 ; 7798 return 0; 7799} 7800_ACEOF 7801if ac_fn_c_try_compile "$LINENO"; then : 7802 ac_cv_header_stdc=yes 7803else 7804 ac_cv_header_stdc=no 7805fi 7806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7807 7808if test $ac_cv_header_stdc = yes; then 7809 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7811/* end confdefs.h. */ 7812#include <string.h> 7813 7814_ACEOF 7815if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7816 $EGREP "memchr" >/dev/null 2>&1; then : 7817 7818else 7819 ac_cv_header_stdc=no 7820fi 7821rm -f conftest* 7822 7823fi 7824 7825if test $ac_cv_header_stdc = yes; then 7826 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7828/* end confdefs.h. */ 7829#include <stdlib.h> 7830 7831_ACEOF 7832if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7833 $EGREP "free" >/dev/null 2>&1; then : 7834 7835else 7836 ac_cv_header_stdc=no 7837fi 7838rm -f conftest* 7839 7840fi 7841 7842if test $ac_cv_header_stdc = yes; then 7843 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7844 if test "$cross_compiling" = yes; then : 7845 : 7846else 7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7848/* end confdefs.h. */ 7849#include <ctype.h> 7850#include <stdlib.h> 7851#if ((' ' & 0x0FF) == 0x020) 7852# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7853# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7854#else 7855# define ISLOWER(c) \ 7856 (('a' <= (c) && (c) <= 'i') \ 7857 || ('j' <= (c) && (c) <= 'r') \ 7858 || ('s' <= (c) && (c) <= 'z')) 7859# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7860#endif 7861 7862#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7863int 7864main () 7865{ 7866 int i; 7867 for (i = 0; i < 256; i++) 7868 if (XOR (islower (i), ISLOWER (i)) 7869 || toupper (i) != TOUPPER (i)) 7870 return 2; 7871 return 0; 7872} 7873_ACEOF 7874if ac_fn_c_try_run "$LINENO"; then : 7875 7876else 7877 ac_cv_header_stdc=no 7878fi 7879rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7880 conftest.$ac_objext conftest.beam conftest.$ac_ext 7881fi 7882 7883fi 7884fi 7885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7886$as_echo "$ac_cv_header_stdc" >&6; } 7887if test $ac_cv_header_stdc = yes; then 7888 7889$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7890 7891fi 7892 7893# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7894for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7895 inttypes.h stdint.h unistd.h 7896do : 7897 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7898ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7899" 7900if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7901 cat >>confdefs.h <<_ACEOF 7902#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7903_ACEOF 7904 7905fi 7906 7907done 7908 7909 7910for ac_header in dlfcn.h 7911do : 7912 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7913" 7914if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7915 cat >>confdefs.h <<_ACEOF 7916#define HAVE_DLFCN_H 1 7917_ACEOF 7918 7919fi 7920 7921done 7922 7923 7924 7925 7926 7927# Set options 7928 7929 7930 7931 enable_dlopen=no 7932 7933 7934 enable_win32_dll=no 7935 7936 7937 # Check whether --enable-shared was given. 7938if test "${enable_shared+set}" = set; then : 7939 enableval=$enable_shared; p=${PACKAGE-default} 7940 case $enableval in 7941 yes) enable_shared=yes ;; 7942 no) enable_shared=no ;; 7943 *) 7944 enable_shared=no 7945 # Look at the argument we got. We use all the common list separators. 7946 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7947 for pkg in $enableval; do 7948 IFS="$lt_save_ifs" 7949 if test "X$pkg" = "X$p"; then 7950 enable_shared=yes 7951 fi 7952 done 7953 IFS="$lt_save_ifs" 7954 ;; 7955 esac 7956else 7957 enable_shared=yes 7958fi 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 # Check whether --enable-static was given. 7969if test "${enable_static+set}" = set; then : 7970 enableval=$enable_static; p=${PACKAGE-default} 7971 case $enableval in 7972 yes) enable_static=yes ;; 7973 no) enable_static=no ;; 7974 *) 7975 enable_static=no 7976 # Look at the argument we got. We use all the common list separators. 7977 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7978 for pkg in $enableval; do 7979 IFS="$lt_save_ifs" 7980 if test "X$pkg" = "X$p"; then 7981 enable_static=yes 7982 fi 7983 done 7984 IFS="$lt_save_ifs" 7985 ;; 7986 esac 7987else 7988 enable_static=yes 7989fi 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000# Check whether --with-pic was given. 8001if test "${with_pic+set}" = set; then : 8002 withval=$with_pic; lt_p=${PACKAGE-default} 8003 case $withval in 8004 yes|no) pic_mode=$withval ;; 8005 *) 8006 pic_mode=default 8007 # Look at the argument we got. We use all the common list separators. 8008 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8009 for lt_pkg in $withval; do 8010 IFS="$lt_save_ifs" 8011 if test "X$lt_pkg" = "X$lt_p"; then 8012 pic_mode=yes 8013 fi 8014 done 8015 IFS="$lt_save_ifs" 8016 ;; 8017 esac 8018else 8019 pic_mode=default 8020fi 8021 8022 8023test -z "$pic_mode" && pic_mode=default 8024 8025 8026 8027 8028 8029 8030 8031 # Check whether --enable-fast-install was given. 8032if test "${enable_fast_install+set}" = set; then : 8033 enableval=$enable_fast_install; p=${PACKAGE-default} 8034 case $enableval in 8035 yes) enable_fast_install=yes ;; 8036 no) enable_fast_install=no ;; 8037 *) 8038 enable_fast_install=no 8039 # Look at the argument we got. We use all the common list separators. 8040 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8041 for pkg in $enableval; do 8042 IFS="$lt_save_ifs" 8043 if test "X$pkg" = "X$p"; then 8044 enable_fast_install=yes 8045 fi 8046 done 8047 IFS="$lt_save_ifs" 8048 ;; 8049 esac 8050else 8051 enable_fast_install=yes 8052fi 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064# This can be used to rebuild libtool when needed 8065LIBTOOL_DEPS="$ltmain" 8066 8067# Always use our own libtool. 8068LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099test -z "$LN_S" && LN_S="ln -s" 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114if test -n "${ZSH_VERSION+set}" ; then 8115 setopt NO_GLOB_SUBST 8116fi 8117 8118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8119$as_echo_n "checking for objdir... " >&6; } 8120if ${lt_cv_objdir+:} false; then : 8121 $as_echo_n "(cached) " >&6 8122else 8123 rm -f .libs 2>/dev/null 8124mkdir .libs 2>/dev/null 8125if test -d .libs; then 8126 lt_cv_objdir=.libs 8127else 8128 # MS-DOS does not allow filenames that begin with a dot. 8129 lt_cv_objdir=_libs 8130fi 8131rmdir .libs 2>/dev/null 8132fi 8133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8134$as_echo "$lt_cv_objdir" >&6; } 8135objdir=$lt_cv_objdir 8136 8137 8138 8139 8140 8141cat >>confdefs.h <<_ACEOF 8142#define LT_OBJDIR "$lt_cv_objdir/" 8143_ACEOF 8144 8145 8146 8147 8148case $host_os in 8149aix3*) 8150 # AIX sometimes has problems with the GCC collect2 program. For some 8151 # reason, if we set the COLLECT_NAMES environment variable, the problems 8152 # vanish in a puff of smoke. 8153 if test "X${COLLECT_NAMES+set}" != Xset; then 8154 COLLECT_NAMES= 8155 export COLLECT_NAMES 8156 fi 8157 ;; 8158esac 8159 8160# Global variables: 8161ofile=libtool 8162can_build_shared=yes 8163 8164# All known linkers require a `.a' archive for static linking (except MSVC, 8165# which needs '.lib'). 8166libext=a 8167 8168with_gnu_ld="$lt_cv_prog_gnu_ld" 8169 8170old_CC="$CC" 8171old_CFLAGS="$CFLAGS" 8172 8173# Set sane defaults for various variables 8174test -z "$CC" && CC=cc 8175test -z "$LTCC" && LTCC=$CC 8176test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8177test -z "$LD" && LD=ld 8178test -z "$ac_objext" && ac_objext=o 8179 8180for cc_temp in $compiler""; do 8181 case $cc_temp in 8182 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8183 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8184 \-*) ;; 8185 *) break;; 8186 esac 8187done 8188cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8189 8190 8191# Only perform the check for file, if the check method requires it 8192test -z "$MAGIC_CMD" && MAGIC_CMD=file 8193case $deplibs_check_method in 8194file_magic*) 8195 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8197$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8198if ${lt_cv_path_MAGIC_CMD+:} false; then : 8199 $as_echo_n "(cached) " >&6 8200else 8201 case $MAGIC_CMD in 8202[\\/*] | ?:[\\/]*) 8203 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8204 ;; 8205*) 8206 lt_save_MAGIC_CMD="$MAGIC_CMD" 8207 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8208 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8209 for ac_dir in $ac_dummy; do 8210 IFS="$lt_save_ifs" 8211 test -z "$ac_dir" && ac_dir=. 8212 if test -f $ac_dir/${ac_tool_prefix}file; then 8213 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8214 if test -n "$file_magic_test_file"; then 8215 case $deplibs_check_method in 8216 "file_magic "*) 8217 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8218 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8219 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8220 $EGREP "$file_magic_regex" > /dev/null; then 8221 : 8222 else 8223 cat <<_LT_EOF 1>&2 8224 8225*** Warning: the command libtool uses to detect shared libraries, 8226*** $file_magic_cmd, produces output that libtool cannot recognize. 8227*** The result is that libtool may fail to recognize shared libraries 8228*** as such. This will affect the creation of libtool libraries that 8229*** depend on shared libraries, but programs linked with such libtool 8230*** libraries will work regardless of this problem. Nevertheless, you 8231*** may want to report the problem to your system manager and/or to 8232*** bug-libtool@gnu.org 8233 8234_LT_EOF 8235 fi ;; 8236 esac 8237 fi 8238 break 8239 fi 8240 done 8241 IFS="$lt_save_ifs" 8242 MAGIC_CMD="$lt_save_MAGIC_CMD" 8243 ;; 8244esac 8245fi 8246 8247MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8248if test -n "$MAGIC_CMD"; then 8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8250$as_echo "$MAGIC_CMD" >&6; } 8251else 8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8253$as_echo "no" >&6; } 8254fi 8255 8256 8257 8258 8259 8260if test -z "$lt_cv_path_MAGIC_CMD"; then 8261 if test -n "$ac_tool_prefix"; then 8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8263$as_echo_n "checking for file... " >&6; } 8264if ${lt_cv_path_MAGIC_CMD+:} false; then : 8265 $as_echo_n "(cached) " >&6 8266else 8267 case $MAGIC_CMD in 8268[\\/*] | ?:[\\/]*) 8269 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8270 ;; 8271*) 8272 lt_save_MAGIC_CMD="$MAGIC_CMD" 8273 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8274 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8275 for ac_dir in $ac_dummy; do 8276 IFS="$lt_save_ifs" 8277 test -z "$ac_dir" && ac_dir=. 8278 if test -f $ac_dir/file; then 8279 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8280 if test -n "$file_magic_test_file"; then 8281 case $deplibs_check_method in 8282 "file_magic "*) 8283 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8284 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8285 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8286 $EGREP "$file_magic_regex" > /dev/null; then 8287 : 8288 else 8289 cat <<_LT_EOF 1>&2 8290 8291*** Warning: the command libtool uses to detect shared libraries, 8292*** $file_magic_cmd, produces output that libtool cannot recognize. 8293*** The result is that libtool may fail to recognize shared libraries 8294*** as such. This will affect the creation of libtool libraries that 8295*** depend on shared libraries, but programs linked with such libtool 8296*** libraries will work regardless of this problem. Nevertheless, you 8297*** may want to report the problem to your system manager and/or to 8298*** bug-libtool@gnu.org 8299 8300_LT_EOF 8301 fi ;; 8302 esac 8303 fi 8304 break 8305 fi 8306 done 8307 IFS="$lt_save_ifs" 8308 MAGIC_CMD="$lt_save_MAGIC_CMD" 8309 ;; 8310esac 8311fi 8312 8313MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8314if test -n "$MAGIC_CMD"; then 8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8316$as_echo "$MAGIC_CMD" >&6; } 8317else 8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8319$as_echo "no" >&6; } 8320fi 8321 8322 8323 else 8324 MAGIC_CMD=: 8325 fi 8326fi 8327 8328 fi 8329 ;; 8330esac 8331 8332# Use C for the default configuration in the libtool script 8333 8334lt_save_CC="$CC" 8335ac_ext=c 8336ac_cpp='$CPP $CPPFLAGS' 8337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8339ac_compiler_gnu=$ac_cv_c_compiler_gnu 8340 8341 8342# Source file extension for C test sources. 8343ac_ext=c 8344 8345# Object file extension for compiled C test sources. 8346objext=o 8347objext=$objext 8348 8349# Code to be used in simple compile tests 8350lt_simple_compile_test_code="int some_variable = 0;" 8351 8352# Code to be used in simple link tests 8353lt_simple_link_test_code='int main(){return(0);}' 8354 8355 8356 8357 8358 8359 8360 8361# If no C compiler was specified, use CC. 8362LTCC=${LTCC-"$CC"} 8363 8364# If no C compiler flags were specified, use CFLAGS. 8365LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8366 8367# Allow CC to be a program name with arguments. 8368compiler=$CC 8369 8370# Save the default compiler, since it gets overwritten when the other 8371# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8372compiler_DEFAULT=$CC 8373 8374# save warnings/boilerplate of simple test code 8375ac_outfile=conftest.$ac_objext 8376echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8377eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8378_lt_compiler_boilerplate=`cat conftest.err` 8379$RM conftest* 8380 8381ac_outfile=conftest.$ac_objext 8382echo "$lt_simple_link_test_code" >conftest.$ac_ext 8383eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8384_lt_linker_boilerplate=`cat conftest.err` 8385$RM -r conftest* 8386 8387 8388## CAVEAT EMPTOR: 8389## There is no encapsulation within the following macros, do not change 8390## the running order or otherwise move them around unless you know exactly 8391## what you are doing... 8392if test -n "$compiler"; then 8393 8394lt_prog_compiler_no_builtin_flag= 8395 8396if test "$GCC" = yes; then 8397 case $cc_basename in 8398 nvcc*) 8399 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8400 *) 8401 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8402 esac 8403 8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8405$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8406if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8407 $as_echo_n "(cached) " >&6 8408else 8409 lt_cv_prog_compiler_rtti_exceptions=no 8410 ac_outfile=conftest.$ac_objext 8411 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8412 lt_compiler_flag="-fno-rtti -fno-exceptions" 8413 # Insert the option either (1) after the last *FLAGS variable, or 8414 # (2) before a word containing "conftest.", or (3) at the end. 8415 # Note that $ac_compile itself does not contain backslashes and begins 8416 # with a dollar sign (not a hyphen), so the echo should work correctly. 8417 # The option is referenced via a variable to avoid confusing sed. 8418 lt_compile=`echo "$ac_compile" | $SED \ 8419 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8420 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8421 -e 's:$: $lt_compiler_flag:'` 8422 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8423 (eval "$lt_compile" 2>conftest.err) 8424 ac_status=$? 8425 cat conftest.err >&5 8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8427 if (exit $ac_status) && test -s "$ac_outfile"; then 8428 # The compiler can only warn and ignore the option if not recognized 8429 # So say no if there are warnings other than the usual output. 8430 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8431 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8432 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8433 lt_cv_prog_compiler_rtti_exceptions=yes 8434 fi 8435 fi 8436 $RM conftest* 8437 8438fi 8439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8440$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8441 8442if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8443 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8444else 8445 : 8446fi 8447 8448fi 8449 8450 8451 8452 8453 8454 8455 lt_prog_compiler_wl= 8456lt_prog_compiler_pic= 8457lt_prog_compiler_static= 8458 8459 8460 if test "$GCC" = yes; then 8461 lt_prog_compiler_wl='-Wl,' 8462 lt_prog_compiler_static='-static' 8463 8464 case $host_os in 8465 aix*) 8466 # All AIX code is PIC. 8467 if test "$host_cpu" = ia64; then 8468 # AIX 5 now supports IA64 processor 8469 lt_prog_compiler_static='-Bstatic' 8470 fi 8471 ;; 8472 8473 amigaos*) 8474 case $host_cpu in 8475 powerpc) 8476 # see comment about AmigaOS4 .so support 8477 lt_prog_compiler_pic='-fPIC' 8478 ;; 8479 m68k) 8480 # FIXME: we need at least 68020 code to build shared libraries, but 8481 # adding the `-m68020' flag to GCC prevents building anything better, 8482 # like `-m68040'. 8483 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8484 ;; 8485 esac 8486 ;; 8487 8488 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8489 # PIC is the default for these OSes. 8490 ;; 8491 8492 mingw* | cygwin* | pw32* | os2* | cegcc*) 8493 # This hack is so that the source file can tell whether it is being 8494 # built for inclusion in a dll (and should export symbols for example). 8495 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8496 # (--disable-auto-import) libraries 8497 lt_prog_compiler_pic='-DDLL_EXPORT' 8498 ;; 8499 8500 darwin* | rhapsody*) 8501 # PIC is the default on this platform 8502 # Common symbols not allowed in MH_DYLIB files 8503 lt_prog_compiler_pic='-fno-common' 8504 ;; 8505 8506 haiku*) 8507 # PIC is the default for Haiku. 8508 # The "-static" flag exists, but is broken. 8509 lt_prog_compiler_static= 8510 ;; 8511 8512 hpux*) 8513 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8514 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8515 # sets the default TLS model and affects inlining. 8516 case $host_cpu in 8517 hppa*64*) 8518 # +Z the default 8519 ;; 8520 *) 8521 lt_prog_compiler_pic='-fPIC' 8522 ;; 8523 esac 8524 ;; 8525 8526 interix[3-9]*) 8527 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8528 # Instead, we relocate shared libraries at runtime. 8529 ;; 8530 8531 msdosdjgpp*) 8532 # Just because we use GCC doesn't mean we suddenly get shared libraries 8533 # on systems that don't support them. 8534 lt_prog_compiler_can_build_shared=no 8535 enable_shared=no 8536 ;; 8537 8538 *nto* | *qnx*) 8539 # QNX uses GNU C++, but need to define -shared option too, otherwise 8540 # it will coredump. 8541 lt_prog_compiler_pic='-fPIC -shared' 8542 ;; 8543 8544 sysv4*MP*) 8545 if test -d /usr/nec; then 8546 lt_prog_compiler_pic=-Kconform_pic 8547 fi 8548 ;; 8549 8550 *) 8551 lt_prog_compiler_pic='-fPIC' 8552 ;; 8553 esac 8554 8555 case $cc_basename in 8556 nvcc*) # Cuda Compiler Driver 2.2 8557 lt_prog_compiler_wl='-Xlinker ' 8558 if test -n "$lt_prog_compiler_pic"; then 8559 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8560 fi 8561 ;; 8562 esac 8563 else 8564 # PORTME Check for flag to pass linker flags through the system compiler. 8565 case $host_os in 8566 aix*) 8567 lt_prog_compiler_wl='-Wl,' 8568 if test "$host_cpu" = ia64; then 8569 # AIX 5 now supports IA64 processor 8570 lt_prog_compiler_static='-Bstatic' 8571 else 8572 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8573 fi 8574 ;; 8575 8576 mingw* | cygwin* | pw32* | os2* | cegcc*) 8577 # This hack is so that the source file can tell whether it is being 8578 # built for inclusion in a dll (and should export symbols for example). 8579 lt_prog_compiler_pic='-DDLL_EXPORT' 8580 ;; 8581 8582 hpux9* | hpux10* | hpux11*) 8583 lt_prog_compiler_wl='-Wl,' 8584 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8585 # not for PA HP-UX. 8586 case $host_cpu in 8587 hppa*64*|ia64*) 8588 # +Z the default 8589 ;; 8590 *) 8591 lt_prog_compiler_pic='+Z' 8592 ;; 8593 esac 8594 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8595 lt_prog_compiler_static='${wl}-a ${wl}archive' 8596 ;; 8597 8598 irix5* | irix6* | nonstopux*) 8599 lt_prog_compiler_wl='-Wl,' 8600 # PIC (with -KPIC) is the default. 8601 lt_prog_compiler_static='-non_shared' 8602 ;; 8603 8604 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8605 case $cc_basename in 8606 # old Intel for x86_64 which still supported -KPIC. 8607 ecc*) 8608 lt_prog_compiler_wl='-Wl,' 8609 lt_prog_compiler_pic='-KPIC' 8610 lt_prog_compiler_static='-static' 8611 ;; 8612 # icc used to be incompatible with GCC. 8613 # ICC 10 doesn't accept -KPIC any more. 8614 icc* | ifort*) 8615 lt_prog_compiler_wl='-Wl,' 8616 lt_prog_compiler_pic='-fPIC' 8617 lt_prog_compiler_static='-static' 8618 ;; 8619 # Lahey Fortran 8.1. 8620 lf95*) 8621 lt_prog_compiler_wl='-Wl,' 8622 lt_prog_compiler_pic='--shared' 8623 lt_prog_compiler_static='--static' 8624 ;; 8625 nagfor*) 8626 # NAG Fortran compiler 8627 lt_prog_compiler_wl='-Wl,-Wl,,' 8628 lt_prog_compiler_pic='-PIC' 8629 lt_prog_compiler_static='-Bstatic' 8630 ;; 8631 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8632 # Portland Group compilers (*not* the Pentium gcc compiler, 8633 # which looks to be a dead project) 8634 lt_prog_compiler_wl='-Wl,' 8635 lt_prog_compiler_pic='-fpic' 8636 lt_prog_compiler_static='-Bstatic' 8637 ;; 8638 ccc*) 8639 lt_prog_compiler_wl='-Wl,' 8640 # All Alpha code is PIC. 8641 lt_prog_compiler_static='-non_shared' 8642 ;; 8643 xl* | bgxl* | bgf* | mpixl*) 8644 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8645 lt_prog_compiler_wl='-Wl,' 8646 lt_prog_compiler_pic='-qpic' 8647 lt_prog_compiler_static='-qstaticlink' 8648 ;; 8649 *) 8650 case `$CC -V 2>&1 | sed 5q` in 8651 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8652 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8653 lt_prog_compiler_pic='-KPIC' 8654 lt_prog_compiler_static='-Bstatic' 8655 lt_prog_compiler_wl='' 8656 ;; 8657 *Sun\ F* | *Sun*Fortran*) 8658 lt_prog_compiler_pic='-KPIC' 8659 lt_prog_compiler_static='-Bstatic' 8660 lt_prog_compiler_wl='-Qoption ld ' 8661 ;; 8662 *Sun\ C*) 8663 # Sun C 5.9 8664 lt_prog_compiler_pic='-KPIC' 8665 lt_prog_compiler_static='-Bstatic' 8666 lt_prog_compiler_wl='-Wl,' 8667 ;; 8668 *Intel*\ [CF]*Compiler*) 8669 lt_prog_compiler_wl='-Wl,' 8670 lt_prog_compiler_pic='-fPIC' 8671 lt_prog_compiler_static='-static' 8672 ;; 8673 *Portland\ Group*) 8674 lt_prog_compiler_wl='-Wl,' 8675 lt_prog_compiler_pic='-fpic' 8676 lt_prog_compiler_static='-Bstatic' 8677 ;; 8678 esac 8679 ;; 8680 esac 8681 ;; 8682 8683 newsos6) 8684 lt_prog_compiler_pic='-KPIC' 8685 lt_prog_compiler_static='-Bstatic' 8686 ;; 8687 8688 *nto* | *qnx*) 8689 # QNX uses GNU C++, but need to define -shared option too, otherwise 8690 # it will coredump. 8691 lt_prog_compiler_pic='-fPIC -shared' 8692 ;; 8693 8694 osf3* | osf4* | osf5*) 8695 lt_prog_compiler_wl='-Wl,' 8696 # All OSF/1 code is PIC. 8697 lt_prog_compiler_static='-non_shared' 8698 ;; 8699 8700 rdos*) 8701 lt_prog_compiler_static='-non_shared' 8702 ;; 8703 8704 solaris*) 8705 lt_prog_compiler_pic='-KPIC' 8706 lt_prog_compiler_static='-Bstatic' 8707 case $cc_basename in 8708 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8709 lt_prog_compiler_wl='-Qoption ld ';; 8710 *) 8711 lt_prog_compiler_wl='-Wl,';; 8712 esac 8713 ;; 8714 8715 sunos4*) 8716 lt_prog_compiler_wl='-Qoption ld ' 8717 lt_prog_compiler_pic='-PIC' 8718 lt_prog_compiler_static='-Bstatic' 8719 ;; 8720 8721 sysv4 | sysv4.2uw2* | sysv4.3*) 8722 lt_prog_compiler_wl='-Wl,' 8723 lt_prog_compiler_pic='-KPIC' 8724 lt_prog_compiler_static='-Bstatic' 8725 ;; 8726 8727 sysv4*MP*) 8728 if test -d /usr/nec ;then 8729 lt_prog_compiler_pic='-Kconform_pic' 8730 lt_prog_compiler_static='-Bstatic' 8731 fi 8732 ;; 8733 8734 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8735 lt_prog_compiler_wl='-Wl,' 8736 lt_prog_compiler_pic='-KPIC' 8737 lt_prog_compiler_static='-Bstatic' 8738 ;; 8739 8740 unicos*) 8741 lt_prog_compiler_wl='-Wl,' 8742 lt_prog_compiler_can_build_shared=no 8743 ;; 8744 8745 uts4*) 8746 lt_prog_compiler_pic='-pic' 8747 lt_prog_compiler_static='-Bstatic' 8748 ;; 8749 8750 *) 8751 lt_prog_compiler_can_build_shared=no 8752 ;; 8753 esac 8754 fi 8755 8756case $host_os in 8757 # For platforms which do not support PIC, -DPIC is meaningless: 8758 *djgpp*) 8759 lt_prog_compiler_pic= 8760 ;; 8761 *) 8762 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8763 ;; 8764esac 8765 8766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8767$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8768if ${lt_cv_prog_compiler_pic+:} false; then : 8769 $as_echo_n "(cached) " >&6 8770else 8771 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8772fi 8773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8774$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8775lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8776 8777# 8778# Check to make sure the PIC flag actually works. 8779# 8780if test -n "$lt_prog_compiler_pic"; then 8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8782$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8783if ${lt_cv_prog_compiler_pic_works+:} false; then : 8784 $as_echo_n "(cached) " >&6 8785else 8786 lt_cv_prog_compiler_pic_works=no 8787 ac_outfile=conftest.$ac_objext 8788 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8789 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8790 # Insert the option either (1) after the last *FLAGS variable, or 8791 # (2) before a word containing "conftest.", or (3) at the end. 8792 # Note that $ac_compile itself does not contain backslashes and begins 8793 # with a dollar sign (not a hyphen), so the echo should work correctly. 8794 # The option is referenced via a variable to avoid confusing sed. 8795 lt_compile=`echo "$ac_compile" | $SED \ 8796 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8798 -e 's:$: $lt_compiler_flag:'` 8799 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8800 (eval "$lt_compile" 2>conftest.err) 8801 ac_status=$? 8802 cat conftest.err >&5 8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8804 if (exit $ac_status) && test -s "$ac_outfile"; then 8805 # The compiler can only warn and ignore the option if not recognized 8806 # So say no if there are warnings other than the usual output. 8807 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8808 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8809 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8810 lt_cv_prog_compiler_pic_works=yes 8811 fi 8812 fi 8813 $RM conftest* 8814 8815fi 8816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8817$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8818 8819if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8820 case $lt_prog_compiler_pic in 8821 "" | " "*) ;; 8822 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8823 esac 8824else 8825 lt_prog_compiler_pic= 8826 lt_prog_compiler_can_build_shared=no 8827fi 8828 8829fi 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841# 8842# Check to make sure the static flag actually works. 8843# 8844wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8846$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8847if ${lt_cv_prog_compiler_static_works+:} false; then : 8848 $as_echo_n "(cached) " >&6 8849else 8850 lt_cv_prog_compiler_static_works=no 8851 save_LDFLAGS="$LDFLAGS" 8852 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8853 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8854 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8855 # The linker can only warn and ignore the option if not recognized 8856 # So say no if there are warnings 8857 if test -s conftest.err; then 8858 # Append any errors to the config.log. 8859 cat conftest.err 1>&5 8860 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8861 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8862 if diff conftest.exp conftest.er2 >/dev/null; then 8863 lt_cv_prog_compiler_static_works=yes 8864 fi 8865 else 8866 lt_cv_prog_compiler_static_works=yes 8867 fi 8868 fi 8869 $RM -r conftest* 8870 LDFLAGS="$save_LDFLAGS" 8871 8872fi 8873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8874$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8875 8876if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8877 : 8878else 8879 lt_prog_compiler_static= 8880fi 8881 8882 8883 8884 8885 8886 8887 8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8889$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8890if ${lt_cv_prog_compiler_c_o+:} false; then : 8891 $as_echo_n "(cached) " >&6 8892else 8893 lt_cv_prog_compiler_c_o=no 8894 $RM -r conftest 2>/dev/null 8895 mkdir conftest 8896 cd conftest 8897 mkdir out 8898 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8899 8900 lt_compiler_flag="-o out/conftest2.$ac_objext" 8901 # Insert the option either (1) after the last *FLAGS variable, or 8902 # (2) before a word containing "conftest.", or (3) at the end. 8903 # Note that $ac_compile itself does not contain backslashes and begins 8904 # with a dollar sign (not a hyphen), so the echo should work correctly. 8905 lt_compile=`echo "$ac_compile" | $SED \ 8906 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8907 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8908 -e 's:$: $lt_compiler_flag:'` 8909 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8910 (eval "$lt_compile" 2>out/conftest.err) 8911 ac_status=$? 8912 cat out/conftest.err >&5 8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8914 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8915 then 8916 # The compiler can only warn and ignore the option if not recognized 8917 # So say no if there are warnings 8918 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8919 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8920 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8921 lt_cv_prog_compiler_c_o=yes 8922 fi 8923 fi 8924 chmod u+w . 2>&5 8925 $RM conftest* 8926 # SGI C++ compiler will create directory out/ii_files/ for 8927 # template instantiation 8928 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8929 $RM out/* && rmdir out 8930 cd .. 8931 $RM -r conftest 8932 $RM conftest* 8933 8934fi 8935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8936$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8937 8938 8939 8940 8941 8942 8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8944$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8945if ${lt_cv_prog_compiler_c_o+:} false; then : 8946 $as_echo_n "(cached) " >&6 8947else 8948 lt_cv_prog_compiler_c_o=no 8949 $RM -r conftest 2>/dev/null 8950 mkdir conftest 8951 cd conftest 8952 mkdir out 8953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8954 8955 lt_compiler_flag="-o out/conftest2.$ac_objext" 8956 # Insert the option either (1) after the last *FLAGS variable, or 8957 # (2) before a word containing "conftest.", or (3) at the end. 8958 # Note that $ac_compile itself does not contain backslashes and begins 8959 # with a dollar sign (not a hyphen), so the echo should work correctly. 8960 lt_compile=`echo "$ac_compile" | $SED \ 8961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8963 -e 's:$: $lt_compiler_flag:'` 8964 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8965 (eval "$lt_compile" 2>out/conftest.err) 8966 ac_status=$? 8967 cat out/conftest.err >&5 8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8969 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8970 then 8971 # The compiler can only warn and ignore the option if not recognized 8972 # So say no if there are warnings 8973 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8974 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8975 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8976 lt_cv_prog_compiler_c_o=yes 8977 fi 8978 fi 8979 chmod u+w . 2>&5 8980 $RM conftest* 8981 # SGI C++ compiler will create directory out/ii_files/ for 8982 # template instantiation 8983 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8984 $RM out/* && rmdir out 8985 cd .. 8986 $RM -r conftest 8987 $RM conftest* 8988 8989fi 8990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8991$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8992 8993 8994 8995 8996hard_links="nottested" 8997if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8998 # do not overwrite the value of need_locks provided by the user 8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9000$as_echo_n "checking if we can lock with hard links... " >&6; } 9001 hard_links=yes 9002 $RM conftest* 9003 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9004 touch conftest.a 9005 ln conftest.a conftest.b 2>&5 || hard_links=no 9006 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9008$as_echo "$hard_links" >&6; } 9009 if test "$hard_links" = no; then 9010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9011$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9012 need_locks=warn 9013 fi 9014else 9015 need_locks=no 9016fi 9017 9018 9019 9020 9021 9022 9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9024$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9025 9026 runpath_var= 9027 allow_undefined_flag= 9028 always_export_symbols=no 9029 archive_cmds= 9030 archive_expsym_cmds= 9031 compiler_needs_object=no 9032 enable_shared_with_static_runtimes=no 9033 export_dynamic_flag_spec= 9034 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9035 hardcode_automatic=no 9036 hardcode_direct=no 9037 hardcode_direct_absolute=no 9038 hardcode_libdir_flag_spec= 9039 hardcode_libdir_separator= 9040 hardcode_minus_L=no 9041 hardcode_shlibpath_var=unsupported 9042 inherit_rpath=no 9043 link_all_deplibs=unknown 9044 module_cmds= 9045 module_expsym_cmds= 9046 old_archive_from_new_cmds= 9047 old_archive_from_expsyms_cmds= 9048 thread_safe_flag_spec= 9049 whole_archive_flag_spec= 9050 # include_expsyms should be a list of space-separated symbols to be *always* 9051 # included in the symbol list 9052 include_expsyms= 9053 # exclude_expsyms can be an extended regexp of symbols to exclude 9054 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9055 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9056 # as well as any symbol that contains `d'. 9057 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9058 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9059 # platforms (ab)use it in PIC code, but their linkers get confused if 9060 # the symbol is explicitly referenced. Since portable code cannot 9061 # rely on this symbol name, it's probably fine to never include it in 9062 # preloaded symbol tables. 9063 # Exclude shared library initialization/finalization symbols. 9064 extract_expsyms_cmds= 9065 9066 case $host_os in 9067 cygwin* | mingw* | pw32* | cegcc*) 9068 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9069 # When not using gcc, we currently assume that we are using 9070 # Microsoft Visual C++. 9071 if test "$GCC" != yes; then 9072 with_gnu_ld=no 9073 fi 9074 ;; 9075 interix*) 9076 # we just hope/assume this is gcc and not c89 (= MSVC++) 9077 with_gnu_ld=yes 9078 ;; 9079 openbsd*) 9080 with_gnu_ld=no 9081 ;; 9082 esac 9083 9084 ld_shlibs=yes 9085 9086 # On some targets, GNU ld is compatible enough with the native linker 9087 # that we're better off using the native interface for both. 9088 lt_use_gnu_ld_interface=no 9089 if test "$with_gnu_ld" = yes; then 9090 case $host_os in 9091 aix*) 9092 # The AIX port of GNU ld has always aspired to compatibility 9093 # with the native linker. However, as the warning in the GNU ld 9094 # block says, versions before 2.19.5* couldn't really create working 9095 # shared libraries, regardless of the interface used. 9096 case `$LD -v 2>&1` in 9097 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9098 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9099 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9100 *) 9101 lt_use_gnu_ld_interface=yes 9102 ;; 9103 esac 9104 ;; 9105 *) 9106 lt_use_gnu_ld_interface=yes 9107 ;; 9108 esac 9109 fi 9110 9111 if test "$lt_use_gnu_ld_interface" = yes; then 9112 # If archive_cmds runs LD, not CC, wlarc should be empty 9113 wlarc='${wl}' 9114 9115 # Set some defaults for GNU ld with shared library support. These 9116 # are reset later if shared libraries are not supported. Putting them 9117 # here allows them to be overridden if necessary. 9118 runpath_var=LD_RUN_PATH 9119 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9120 export_dynamic_flag_spec='${wl}--export-dynamic' 9121 # ancient GNU ld didn't support --whole-archive et. al. 9122 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9123 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9124 else 9125 whole_archive_flag_spec= 9126 fi 9127 supports_anon_versioning=no 9128 case `$LD -v 2>&1` in 9129 *GNU\ gold*) supports_anon_versioning=yes ;; 9130 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9131 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9132 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9133 *\ 2.11.*) ;; # other 2.11 versions 9134 *) supports_anon_versioning=yes ;; 9135 esac 9136 9137 # See if GNU ld supports shared libraries. 9138 case $host_os in 9139 aix[3-9]*) 9140 # On AIX/PPC, the GNU linker is very broken 9141 if test "$host_cpu" != ia64; then 9142 ld_shlibs=no 9143 cat <<_LT_EOF 1>&2 9144 9145*** Warning: the GNU linker, at least up to release 2.19, is reported 9146*** to be unable to reliably create shared libraries on AIX. 9147*** Therefore, libtool is disabling shared libraries support. If you 9148*** really care for shared libraries, you may want to install binutils 9149*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9150*** You will then need to restart the configuration process. 9151 9152_LT_EOF 9153 fi 9154 ;; 9155 9156 amigaos*) 9157 case $host_cpu in 9158 powerpc) 9159 # see comment about AmigaOS4 .so support 9160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9161 archive_expsym_cmds='' 9162 ;; 9163 m68k) 9164 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)' 9165 hardcode_libdir_flag_spec='-L$libdir' 9166 hardcode_minus_L=yes 9167 ;; 9168 esac 9169 ;; 9170 9171 beos*) 9172 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9173 allow_undefined_flag=unsupported 9174 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9175 # support --undefined. This deserves some investigation. FIXME 9176 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9177 else 9178 ld_shlibs=no 9179 fi 9180 ;; 9181 9182 cygwin* | mingw* | pw32* | cegcc*) 9183 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9184 # as there is no search path for DLLs. 9185 hardcode_libdir_flag_spec='-L$libdir' 9186 export_dynamic_flag_spec='${wl}--export-all-symbols' 9187 allow_undefined_flag=unsupported 9188 always_export_symbols=no 9189 enable_shared_with_static_runtimes=yes 9190 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' 9191 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9192 9193 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9195 # If the export-symbols file already is a .def file (1st line 9196 # is EXPORTS), use it as is; otherwise, prepend... 9197 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9198 cp $export_symbols $output_objdir/$soname.def; 9199 else 9200 echo EXPORTS > $output_objdir/$soname.def; 9201 cat $export_symbols >> $output_objdir/$soname.def; 9202 fi~ 9203 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9204 else 9205 ld_shlibs=no 9206 fi 9207 ;; 9208 9209 haiku*) 9210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9211 link_all_deplibs=yes 9212 ;; 9213 9214 interix[3-9]*) 9215 hardcode_direct=no 9216 hardcode_shlibpath_var=no 9217 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9218 export_dynamic_flag_spec='${wl}-E' 9219 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9220 # Instead, shared libraries are loaded at an image base (0x10000000 by 9221 # default) and relocated if they conflict, which is a slow very memory 9222 # consuming and fragmenting process. To avoid this, we pick a random, 9223 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9224 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9225 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9226 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' 9227 ;; 9228 9229 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9230 tmp_diet=no 9231 if test "$host_os" = linux-dietlibc; then 9232 case $cc_basename in 9233 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9234 esac 9235 fi 9236 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9237 && test "$tmp_diet" = no 9238 then 9239 tmp_addflag=' $pic_flag' 9240 tmp_sharedflag='-shared' 9241 case $cc_basename,$host_cpu in 9242 pgcc*) # Portland Group C compiler 9243 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' 9244 tmp_addflag=' $pic_flag' 9245 ;; 9246 pgf77* | pgf90* | pgf95* | pgfortran*) 9247 # Portland Group f77 and f90 compilers 9248 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' 9249 tmp_addflag=' $pic_flag -Mnomain' ;; 9250 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9251 tmp_addflag=' -i_dynamic' ;; 9252 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9253 tmp_addflag=' -i_dynamic -nofor_main' ;; 9254 ifc* | ifort*) # Intel Fortran compiler 9255 tmp_addflag=' -nofor_main' ;; 9256 lf95*) # Lahey Fortran 8.1 9257 whole_archive_flag_spec= 9258 tmp_sharedflag='--shared' ;; 9259 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9260 tmp_sharedflag='-qmkshrobj' 9261 tmp_addflag= ;; 9262 nvcc*) # Cuda Compiler Driver 2.2 9263 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' 9264 compiler_needs_object=yes 9265 ;; 9266 esac 9267 case `$CC -V 2>&1 | sed 5q` in 9268 *Sun\ C*) # Sun C 5.9 9269 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' 9270 compiler_needs_object=yes 9271 tmp_sharedflag='-G' ;; 9272 *Sun\ F*) # Sun Fortran 8.3 9273 tmp_sharedflag='-G' ;; 9274 esac 9275 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9276 9277 if test "x$supports_anon_versioning" = xyes; then 9278 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9279 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9280 echo "local: *; };" >> $output_objdir/$libname.ver~ 9281 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9282 fi 9283 9284 case $cc_basename in 9285 xlf* | bgf* | bgxlf* | mpixlf*) 9286 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9287 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9288 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9289 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9290 if test "x$supports_anon_versioning" = xyes; then 9291 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9292 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9293 echo "local: *; };" >> $output_objdir/$libname.ver~ 9294 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9295 fi 9296 ;; 9297 esac 9298 else 9299 ld_shlibs=no 9300 fi 9301 ;; 9302 9303 netbsd*) 9304 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9305 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9306 wlarc= 9307 else 9308 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9309 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9310 fi 9311 ;; 9312 9313 solaris*) 9314 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9315 ld_shlibs=no 9316 cat <<_LT_EOF 1>&2 9317 9318*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9319*** create shared libraries on Solaris systems. Therefore, libtool 9320*** is disabling shared libraries support. We urge you to upgrade GNU 9321*** binutils to release 2.9.1 or newer. Another option is to modify 9322*** your PATH or compiler configuration so that the native linker is 9323*** used, and then restart. 9324 9325_LT_EOF 9326 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9327 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9328 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9329 else 9330 ld_shlibs=no 9331 fi 9332 ;; 9333 9334 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9335 case `$LD -v 2>&1` in 9336 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9337 ld_shlibs=no 9338 cat <<_LT_EOF 1>&2 9339 9340*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9341*** reliably create shared libraries on SCO systems. Therefore, libtool 9342*** is disabling shared libraries support. We urge you to upgrade GNU 9343*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9344*** your PATH or compiler configuration so that the native linker is 9345*** used, and then restart. 9346 9347_LT_EOF 9348 ;; 9349 *) 9350 # For security reasons, it is highly recommended that you always 9351 # use absolute paths for naming shared libraries, and exclude the 9352 # DT_RUNPATH tag from executables and libraries. But doing so 9353 # requires that you compile everything twice, which is a pain. 9354 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9355 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9356 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9357 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9358 else 9359 ld_shlibs=no 9360 fi 9361 ;; 9362 esac 9363 ;; 9364 9365 sunos4*) 9366 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9367 wlarc= 9368 hardcode_direct=yes 9369 hardcode_shlibpath_var=no 9370 ;; 9371 9372 *) 9373 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9374 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9375 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9376 else 9377 ld_shlibs=no 9378 fi 9379 ;; 9380 esac 9381 9382 if test "$ld_shlibs" = no; then 9383 runpath_var= 9384 hardcode_libdir_flag_spec= 9385 export_dynamic_flag_spec= 9386 whole_archive_flag_spec= 9387 fi 9388 else 9389 # PORTME fill in a description of your system's linker (not GNU ld) 9390 case $host_os in 9391 aix3*) 9392 allow_undefined_flag=unsupported 9393 always_export_symbols=yes 9394 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' 9395 # Note: this linker hardcodes the directories in LIBPATH if there 9396 # are no directories specified by -L. 9397 hardcode_minus_L=yes 9398 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9399 # Neither direct hardcoding nor static linking is supported with a 9400 # broken collect2. 9401 hardcode_direct=unsupported 9402 fi 9403 ;; 9404 9405 aix[4-9]*) 9406 if test "$host_cpu" = ia64; then 9407 # On IA64, the linker does run time linking by default, so we don't 9408 # have to do anything special. 9409 aix_use_runtimelinking=no 9410 exp_sym_flag='-Bexport' 9411 no_entry_flag="" 9412 else 9413 # If we're using GNU nm, then we don't want the "-C" option. 9414 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9415 # Also, AIX nm treats weak defined symbols like other global 9416 # defined symbols, whereas GNU nm marks them as "W". 9417 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9418 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' 9419 else 9420 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' 9421 fi 9422 aix_use_runtimelinking=no 9423 9424 # Test if we are trying to use run time linking or normal 9425 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9426 # need to do runtime linking. 9427 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9428 for ld_flag in $LDFLAGS; do 9429 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9430 aix_use_runtimelinking=yes 9431 break 9432 fi 9433 done 9434 ;; 9435 esac 9436 9437 exp_sym_flag='-bexport' 9438 no_entry_flag='-bnoentry' 9439 fi 9440 9441 # When large executables or shared objects are built, AIX ld can 9442 # have problems creating the table of contents. If linking a library 9443 # or program results in "error TOC overflow" add -mminimal-toc to 9444 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9445 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9446 9447 archive_cmds='' 9448 hardcode_direct=yes 9449 hardcode_direct_absolute=yes 9450 hardcode_libdir_separator=':' 9451 link_all_deplibs=yes 9452 file_list_spec='${wl}-f,' 9453 9454 if test "$GCC" = yes; then 9455 case $host_os in aix4.[012]|aix4.[012].*) 9456 # We only want to do this on AIX 4.2 and lower, the check 9457 # below for broken collect2 doesn't work under 4.3+ 9458 collect2name=`${CC} -print-prog-name=collect2` 9459 if test -f "$collect2name" && 9460 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9461 then 9462 # We have reworked collect2 9463 : 9464 else 9465 # We have old collect2 9466 hardcode_direct=unsupported 9467 # It fails to find uninstalled libraries when the uninstalled 9468 # path is not listed in the libpath. Setting hardcode_minus_L 9469 # to unsupported forces relinking 9470 hardcode_minus_L=yes 9471 hardcode_libdir_flag_spec='-L$libdir' 9472 hardcode_libdir_separator= 9473 fi 9474 ;; 9475 esac 9476 shared_flag='-shared' 9477 if test "$aix_use_runtimelinking" = yes; then 9478 shared_flag="$shared_flag "'${wl}-G' 9479 fi 9480 else 9481 # not using gcc 9482 if test "$host_cpu" = ia64; then 9483 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9484 # chokes on -Wl,-G. The following line is correct: 9485 shared_flag='-G' 9486 else 9487 if test "$aix_use_runtimelinking" = yes; then 9488 shared_flag='${wl}-G' 9489 else 9490 shared_flag='${wl}-bM:SRE' 9491 fi 9492 fi 9493 fi 9494 9495 export_dynamic_flag_spec='${wl}-bexpall' 9496 # It seems that -bexpall does not export symbols beginning with 9497 # underscore (_), so it is better to generate a list of symbols to export. 9498 always_export_symbols=yes 9499 if test "$aix_use_runtimelinking" = yes; then 9500 # Warning - without using the other runtime loading flags (-brtl), 9501 # -berok will link without error, but may produce a broken library. 9502 allow_undefined_flag='-berok' 9503 # Determine the default libpath from the value encoded in an 9504 # empty executable. 9505 if test "${lt_cv_aix_libpath+set}" = set; then 9506 aix_libpath=$lt_cv_aix_libpath 9507else 9508 if ${lt_cv_aix_libpath_+:} false; then : 9509 $as_echo_n "(cached) " >&6 9510else 9511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9512/* end confdefs.h. */ 9513 9514int 9515main () 9516{ 9517 9518 ; 9519 return 0; 9520} 9521_ACEOF 9522if ac_fn_c_try_link "$LINENO"; then : 9523 9524 lt_aix_libpath_sed=' 9525 /Import File Strings/,/^$/ { 9526 /^0/ { 9527 s/^0 *\([^ ]*\) *$/\1/ 9528 p 9529 } 9530 }' 9531 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9532 # Check for a 64-bit object if we didn't find anything. 9533 if test -z "$lt_cv_aix_libpath_"; then 9534 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9535 fi 9536fi 9537rm -f core conftest.err conftest.$ac_objext \ 9538 conftest$ac_exeext conftest.$ac_ext 9539 if test -z "$lt_cv_aix_libpath_"; then 9540 lt_cv_aix_libpath_="/usr/lib:/lib" 9541 fi 9542 9543fi 9544 9545 aix_libpath=$lt_cv_aix_libpath_ 9546fi 9547 9548 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9549 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" 9550 else 9551 if test "$host_cpu" = ia64; then 9552 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9553 allow_undefined_flag="-z nodefs" 9554 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" 9555 else 9556 # Determine the default libpath from the value encoded in an 9557 # empty executable. 9558 if test "${lt_cv_aix_libpath+set}" = set; then 9559 aix_libpath=$lt_cv_aix_libpath 9560else 9561 if ${lt_cv_aix_libpath_+:} false; then : 9562 $as_echo_n "(cached) " >&6 9563else 9564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9565/* end confdefs.h. */ 9566 9567int 9568main () 9569{ 9570 9571 ; 9572 return 0; 9573} 9574_ACEOF 9575if ac_fn_c_try_link "$LINENO"; then : 9576 9577 lt_aix_libpath_sed=' 9578 /Import File Strings/,/^$/ { 9579 /^0/ { 9580 s/^0 *\([^ ]*\) *$/\1/ 9581 p 9582 } 9583 }' 9584 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9585 # Check for a 64-bit object if we didn't find anything. 9586 if test -z "$lt_cv_aix_libpath_"; then 9587 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9588 fi 9589fi 9590rm -f core conftest.err conftest.$ac_objext \ 9591 conftest$ac_exeext conftest.$ac_ext 9592 if test -z "$lt_cv_aix_libpath_"; then 9593 lt_cv_aix_libpath_="/usr/lib:/lib" 9594 fi 9595 9596fi 9597 9598 aix_libpath=$lt_cv_aix_libpath_ 9599fi 9600 9601 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9602 # Warning - without using the other run time loading flags, 9603 # -berok will link without error, but may produce a broken library. 9604 no_undefined_flag=' ${wl}-bernotok' 9605 allow_undefined_flag=' ${wl}-berok' 9606 if test "$with_gnu_ld" = yes; then 9607 # We only use this code for GNU lds that support --whole-archive. 9608 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9609 else 9610 # Exported symbols can be pulled into shared objects from archives 9611 whole_archive_flag_spec='$convenience' 9612 fi 9613 archive_cmds_need_lc=yes 9614 # This is similar to how AIX traditionally builds its shared libraries. 9615 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' 9616 fi 9617 fi 9618 ;; 9619 9620 amigaos*) 9621 case $host_cpu in 9622 powerpc) 9623 # see comment about AmigaOS4 .so support 9624 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9625 archive_expsym_cmds='' 9626 ;; 9627 m68k) 9628 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)' 9629 hardcode_libdir_flag_spec='-L$libdir' 9630 hardcode_minus_L=yes 9631 ;; 9632 esac 9633 ;; 9634 9635 bsdi[45]*) 9636 export_dynamic_flag_spec=-rdynamic 9637 ;; 9638 9639 cygwin* | mingw* | pw32* | cegcc*) 9640 # When not using gcc, we currently assume that we are using 9641 # Microsoft Visual C++. 9642 # hardcode_libdir_flag_spec is actually meaningless, as there is 9643 # no search path for DLLs. 9644 case $cc_basename in 9645 cl*) 9646 # Native MSVC 9647 hardcode_libdir_flag_spec=' ' 9648 allow_undefined_flag=unsupported 9649 always_export_symbols=yes 9650 file_list_spec='@' 9651 # Tell ltmain to make .lib files, not .a files. 9652 libext=lib 9653 # Tell ltmain to make .dll files, not .so files. 9654 shrext_cmds=".dll" 9655 # FIXME: Setting linknames here is a bad hack. 9656 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9657 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9658 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9659 else 9660 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9661 fi~ 9662 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9663 linknames=' 9664 # The linker will not automatically build a static lib if we build a DLL. 9665 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9666 enable_shared_with_static_runtimes=yes 9667 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9668 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9669 # Don't use ranlib 9670 old_postinstall_cmds='chmod 644 $oldlib' 9671 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9672 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9673 case $lt_outputfile in 9674 *.exe|*.EXE) ;; 9675 *) 9676 lt_outputfile="$lt_outputfile.exe" 9677 lt_tool_outputfile="$lt_tool_outputfile.exe" 9678 ;; 9679 esac~ 9680 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9681 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9682 $RM "$lt_outputfile.manifest"; 9683 fi' 9684 ;; 9685 *) 9686 # Assume MSVC wrapper 9687 hardcode_libdir_flag_spec=' ' 9688 allow_undefined_flag=unsupported 9689 # Tell ltmain to make .lib files, not .a files. 9690 libext=lib 9691 # Tell ltmain to make .dll files, not .so files. 9692 shrext_cmds=".dll" 9693 # FIXME: Setting linknames here is a bad hack. 9694 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9695 # The linker will automatically build a .lib file if we build a DLL. 9696 old_archive_from_new_cmds='true' 9697 # FIXME: Should let the user specify the lib program. 9698 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9699 enable_shared_with_static_runtimes=yes 9700 ;; 9701 esac 9702 ;; 9703 9704 darwin* | rhapsody*) 9705 9706 9707 archive_cmds_need_lc=no 9708 hardcode_direct=no 9709 hardcode_automatic=yes 9710 hardcode_shlibpath_var=unsupported 9711 if test "$lt_cv_ld_force_load" = "yes"; then 9712 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\"`' 9713 9714 else 9715 whole_archive_flag_spec='' 9716 fi 9717 link_all_deplibs=yes 9718 allow_undefined_flag="$_lt_dar_allow_undefined" 9719 case $cc_basename in 9720 ifort*) _lt_dar_can_shared=yes ;; 9721 *) _lt_dar_can_shared=$GCC ;; 9722 esac 9723 if test "$_lt_dar_can_shared" = "yes"; then 9724 output_verbose_link_cmd=func_echo_all 9725 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9726 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9727 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}" 9728 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}" 9729 9730 else 9731 ld_shlibs=no 9732 fi 9733 9734 ;; 9735 9736 dgux*) 9737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9738 hardcode_libdir_flag_spec='-L$libdir' 9739 hardcode_shlibpath_var=no 9740 ;; 9741 9742 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9743 # support. Future versions do this automatically, but an explicit c++rt0.o 9744 # does not break anything, and helps significantly (at the cost of a little 9745 # extra space). 9746 freebsd2.2*) 9747 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9748 hardcode_libdir_flag_spec='-R$libdir' 9749 hardcode_direct=yes 9750 hardcode_shlibpath_var=no 9751 ;; 9752 9753 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9754 freebsd2.*) 9755 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9756 hardcode_direct=yes 9757 hardcode_minus_L=yes 9758 hardcode_shlibpath_var=no 9759 ;; 9760 9761 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9762 freebsd* | dragonfly*) 9763 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9764 hardcode_libdir_flag_spec='-R$libdir' 9765 hardcode_direct=yes 9766 hardcode_shlibpath_var=no 9767 ;; 9768 9769 hpux9*) 9770 if test "$GCC" = yes; then 9771 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' 9772 else 9773 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' 9774 fi 9775 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9776 hardcode_libdir_separator=: 9777 hardcode_direct=yes 9778 9779 # hardcode_minus_L: Not really in the search PATH, 9780 # but as the default location of the library. 9781 hardcode_minus_L=yes 9782 export_dynamic_flag_spec='${wl}-E' 9783 ;; 9784 9785 hpux10*) 9786 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9787 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9788 else 9789 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9790 fi 9791 if test "$with_gnu_ld" = no; then 9792 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9793 hardcode_libdir_separator=: 9794 hardcode_direct=yes 9795 hardcode_direct_absolute=yes 9796 export_dynamic_flag_spec='${wl}-E' 9797 # hardcode_minus_L: Not really in the search PATH, 9798 # but as the default location of the library. 9799 hardcode_minus_L=yes 9800 fi 9801 ;; 9802 9803 hpux11*) 9804 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9805 case $host_cpu in 9806 hppa*64*) 9807 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9808 ;; 9809 ia64*) 9810 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9811 ;; 9812 *) 9813 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9814 ;; 9815 esac 9816 else 9817 case $host_cpu in 9818 hppa*64*) 9819 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9820 ;; 9821 ia64*) 9822 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9823 ;; 9824 *) 9825 9826 # Older versions of the 11.00 compiler do not understand -b yet 9827 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9829$as_echo_n "checking if $CC understands -b... " >&6; } 9830if ${lt_cv_prog_compiler__b+:} false; then : 9831 $as_echo_n "(cached) " >&6 9832else 9833 lt_cv_prog_compiler__b=no 9834 save_LDFLAGS="$LDFLAGS" 9835 LDFLAGS="$LDFLAGS -b" 9836 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9837 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9838 # The linker can only warn and ignore the option if not recognized 9839 # So say no if there are warnings 9840 if test -s conftest.err; then 9841 # Append any errors to the config.log. 9842 cat conftest.err 1>&5 9843 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9844 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9845 if diff conftest.exp conftest.er2 >/dev/null; then 9846 lt_cv_prog_compiler__b=yes 9847 fi 9848 else 9849 lt_cv_prog_compiler__b=yes 9850 fi 9851 fi 9852 $RM -r conftest* 9853 LDFLAGS="$save_LDFLAGS" 9854 9855fi 9856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9857$as_echo "$lt_cv_prog_compiler__b" >&6; } 9858 9859if test x"$lt_cv_prog_compiler__b" = xyes; then 9860 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9861else 9862 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9863fi 9864 9865 ;; 9866 esac 9867 fi 9868 if test "$with_gnu_ld" = no; then 9869 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9870 hardcode_libdir_separator=: 9871 9872 case $host_cpu in 9873 hppa*64*|ia64*) 9874 hardcode_direct=no 9875 hardcode_shlibpath_var=no 9876 ;; 9877 *) 9878 hardcode_direct=yes 9879 hardcode_direct_absolute=yes 9880 export_dynamic_flag_spec='${wl}-E' 9881 9882 # hardcode_minus_L: Not really in the search PATH, 9883 # but as the default location of the library. 9884 hardcode_minus_L=yes 9885 ;; 9886 esac 9887 fi 9888 ;; 9889 9890 irix5* | irix6* | nonstopux*) 9891 if test "$GCC" = yes; then 9892 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' 9893 # Try to use the -exported_symbol ld option, if it does not 9894 # work, assume that -exports_file does not work either and 9895 # implicitly export all symbols. 9896 # This should be the same for all languages, so no per-tag cache variable. 9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9898$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9899if ${lt_cv_irix_exported_symbol+:} false; then : 9900 $as_echo_n "(cached) " >&6 9901else 9902 save_LDFLAGS="$LDFLAGS" 9903 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9905/* end confdefs.h. */ 9906int foo (void) { return 0; } 9907_ACEOF 9908if ac_fn_c_try_link "$LINENO"; then : 9909 lt_cv_irix_exported_symbol=yes 9910else 9911 lt_cv_irix_exported_symbol=no 9912fi 9913rm -f core conftest.err conftest.$ac_objext \ 9914 conftest$ac_exeext conftest.$ac_ext 9915 LDFLAGS="$save_LDFLAGS" 9916fi 9917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9918$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9919 if test "$lt_cv_irix_exported_symbol" = yes; then 9920 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' 9921 fi 9922 else 9923 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' 9924 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' 9925 fi 9926 archive_cmds_need_lc='no' 9927 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9928 hardcode_libdir_separator=: 9929 inherit_rpath=yes 9930 link_all_deplibs=yes 9931 ;; 9932 9933 netbsd*) 9934 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9935 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9936 else 9937 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9938 fi 9939 hardcode_libdir_flag_spec='-R$libdir' 9940 hardcode_direct=yes 9941 hardcode_shlibpath_var=no 9942 ;; 9943 9944 newsos6) 9945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9946 hardcode_direct=yes 9947 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9948 hardcode_libdir_separator=: 9949 hardcode_shlibpath_var=no 9950 ;; 9951 9952 *nto* | *qnx*) 9953 ;; 9954 9955 openbsd*) 9956 if test -f /usr/libexec/ld.so; then 9957 hardcode_direct=yes 9958 hardcode_shlibpath_var=no 9959 hardcode_direct_absolute=yes 9960 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9961 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9962 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9963 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9964 export_dynamic_flag_spec='${wl}-E' 9965 else 9966 case $host_os in 9967 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9968 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9969 hardcode_libdir_flag_spec='-R$libdir' 9970 ;; 9971 *) 9972 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9973 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9974 ;; 9975 esac 9976 fi 9977 else 9978 ld_shlibs=no 9979 fi 9980 ;; 9981 9982 os2*) 9983 hardcode_libdir_flag_spec='-L$libdir' 9984 hardcode_minus_L=yes 9985 allow_undefined_flag=unsupported 9986 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' 9987 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9988 ;; 9989 9990 osf3*) 9991 if test "$GCC" = yes; then 9992 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9993 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' 9994 else 9995 allow_undefined_flag=' -expect_unresolved \*' 9996 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' 9997 fi 9998 archive_cmds_need_lc='no' 9999 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10000 hardcode_libdir_separator=: 10001 ;; 10002 10003 osf4* | osf5*) # as osf3* with the addition of -msym flag 10004 if test "$GCC" = yes; then 10005 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10006 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' 10007 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10008 else 10009 allow_undefined_flag=' -expect_unresolved \*' 10010 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' 10011 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~ 10012 $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' 10013 10014 # Both c and cxx compiler support -rpath directly 10015 hardcode_libdir_flag_spec='-rpath $libdir' 10016 fi 10017 archive_cmds_need_lc='no' 10018 hardcode_libdir_separator=: 10019 ;; 10020 10021 solaris*) 10022 no_undefined_flag=' -z defs' 10023 if test "$GCC" = yes; then 10024 wlarc='${wl}' 10025 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10026 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10027 $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' 10028 else 10029 case `$CC -V 2>&1` in 10030 *"Compilers 5.0"*) 10031 wlarc='' 10032 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10033 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10034 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10035 ;; 10036 *) 10037 wlarc='${wl}' 10038 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10039 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10040 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10041 ;; 10042 esac 10043 fi 10044 hardcode_libdir_flag_spec='-R$libdir' 10045 hardcode_shlibpath_var=no 10046 case $host_os in 10047 solaris2.[0-5] | solaris2.[0-5].*) ;; 10048 *) 10049 # The compiler driver will combine and reorder linker options, 10050 # but understands `-z linker_flag'. GCC discards it without `$wl', 10051 # but is careful enough not to reorder. 10052 # Supported since Solaris 2.6 (maybe 2.5.1?) 10053 if test "$GCC" = yes; then 10054 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10055 else 10056 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10057 fi 10058 ;; 10059 esac 10060 link_all_deplibs=yes 10061 ;; 10062 10063 sunos4*) 10064 if test "x$host_vendor" = xsequent; then 10065 # Use $CC to link under sequent, because it throws in some extra .o 10066 # files that make .init and .fini sections work. 10067 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10068 else 10069 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10070 fi 10071 hardcode_libdir_flag_spec='-L$libdir' 10072 hardcode_direct=yes 10073 hardcode_minus_L=yes 10074 hardcode_shlibpath_var=no 10075 ;; 10076 10077 sysv4) 10078 case $host_vendor in 10079 sni) 10080 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10081 hardcode_direct=yes # is this really true??? 10082 ;; 10083 siemens) 10084 ## LD is ld it makes a PLAMLIB 10085 ## CC just makes a GrossModule. 10086 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10087 reload_cmds='$CC -r -o $output$reload_objs' 10088 hardcode_direct=no 10089 ;; 10090 motorola) 10091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10092 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10093 ;; 10094 esac 10095 runpath_var='LD_RUN_PATH' 10096 hardcode_shlibpath_var=no 10097 ;; 10098 10099 sysv4.3*) 10100 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10101 hardcode_shlibpath_var=no 10102 export_dynamic_flag_spec='-Bexport' 10103 ;; 10104 10105 sysv4*MP*) 10106 if test -d /usr/nec; then 10107 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10108 hardcode_shlibpath_var=no 10109 runpath_var=LD_RUN_PATH 10110 hardcode_runpath_var=yes 10111 ld_shlibs=yes 10112 fi 10113 ;; 10114 10115 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10116 no_undefined_flag='${wl}-z,text' 10117 archive_cmds_need_lc=no 10118 hardcode_shlibpath_var=no 10119 runpath_var='LD_RUN_PATH' 10120 10121 if test "$GCC" = yes; then 10122 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10123 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10124 else 10125 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10126 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10127 fi 10128 ;; 10129 10130 sysv5* | sco3.2v5* | sco5v6*) 10131 # Note: We can NOT use -z defs as we might desire, because we do not 10132 # link with -lc, and that would cause any symbols used from libc to 10133 # always be unresolved, which means just about no library would 10134 # ever link correctly. If we're not using GNU ld we use -z text 10135 # though, which does catch some bad symbols but isn't as heavy-handed 10136 # as -z defs. 10137 no_undefined_flag='${wl}-z,text' 10138 allow_undefined_flag='${wl}-z,nodefs' 10139 archive_cmds_need_lc=no 10140 hardcode_shlibpath_var=no 10141 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10142 hardcode_libdir_separator=':' 10143 link_all_deplibs=yes 10144 export_dynamic_flag_spec='${wl}-Bexport' 10145 runpath_var='LD_RUN_PATH' 10146 10147 if test "$GCC" = yes; then 10148 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10149 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10150 else 10151 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10152 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10153 fi 10154 ;; 10155 10156 uts4*) 10157 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10158 hardcode_libdir_flag_spec='-L$libdir' 10159 hardcode_shlibpath_var=no 10160 ;; 10161 10162 *) 10163 ld_shlibs=no 10164 ;; 10165 esac 10166 10167 if test x$host_vendor = xsni; then 10168 case $host in 10169 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10170 export_dynamic_flag_spec='${wl}-Blargedynsym' 10171 ;; 10172 esac 10173 fi 10174 fi 10175 10176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10177$as_echo "$ld_shlibs" >&6; } 10178test "$ld_shlibs" = no && can_build_shared=no 10179 10180with_gnu_ld=$with_gnu_ld 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196# 10197# Do we need to explicitly link libc? 10198# 10199case "x$archive_cmds_need_lc" in 10200x|xyes) 10201 # Assume -lc should be added 10202 archive_cmds_need_lc=yes 10203 10204 if test "$enable_shared" = yes && test "$GCC" = yes; then 10205 case $archive_cmds in 10206 *'~'*) 10207 # FIXME: we may have to deal with multi-command sequences. 10208 ;; 10209 '$CC '*) 10210 # Test whether the compiler implicitly links with -lc since on some 10211 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10212 # to ld, don't add -lc before -lgcc. 10213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10214$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10215if ${lt_cv_archive_cmds_need_lc+:} false; then : 10216 $as_echo_n "(cached) " >&6 10217else 10218 $RM conftest* 10219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10220 10221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10222 (eval $ac_compile) 2>&5 10223 ac_status=$? 10224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10225 test $ac_status = 0; } 2>conftest.err; then 10226 soname=conftest 10227 lib=conftest 10228 libobjs=conftest.$ac_objext 10229 deplibs= 10230 wl=$lt_prog_compiler_wl 10231 pic_flag=$lt_prog_compiler_pic 10232 compiler_flags=-v 10233 linker_flags=-v 10234 verstring= 10235 output_objdir=. 10236 libname=conftest 10237 lt_save_allow_undefined_flag=$allow_undefined_flag 10238 allow_undefined_flag= 10239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10240 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10241 ac_status=$? 10242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10243 test $ac_status = 0; } 10244 then 10245 lt_cv_archive_cmds_need_lc=no 10246 else 10247 lt_cv_archive_cmds_need_lc=yes 10248 fi 10249 allow_undefined_flag=$lt_save_allow_undefined_flag 10250 else 10251 cat conftest.err 1>&5 10252 fi 10253 $RM conftest* 10254 10255fi 10256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10257$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10258 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10259 ;; 10260 esac 10261 fi 10262 ;; 10263esac 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10417$as_echo_n "checking dynamic linker characteristics... " >&6; } 10418 10419if test "$GCC" = yes; then 10420 case $host_os in 10421 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10422 *) lt_awk_arg="/^libraries:/" ;; 10423 esac 10424 case $host_os in 10425 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10426 *) lt_sed_strip_eq="s,=/,/,g" ;; 10427 esac 10428 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10429 case $lt_search_path_spec in 10430 *\;*) 10431 # if the path contains ";" then we assume it to be the separator 10432 # otherwise default to the standard path separator (i.e. ":") - it is 10433 # assumed that no part of a normal pathname contains ";" but that should 10434 # okay in the real world where ";" in dirpaths is itself problematic. 10435 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10436 ;; 10437 *) 10438 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10439 ;; 10440 esac 10441 # Ok, now we have the path, separated by spaces, we can step through it 10442 # and add multilib dir if necessary. 10443 lt_tmp_lt_search_path_spec= 10444 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10445 for lt_sys_path in $lt_search_path_spec; do 10446 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10447 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10448 else 10449 test -d "$lt_sys_path" && \ 10450 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10451 fi 10452 done 10453 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10454BEGIN {RS=" "; FS="/|\n";} { 10455 lt_foo=""; 10456 lt_count=0; 10457 for (lt_i = NF; lt_i > 0; lt_i--) { 10458 if ($lt_i != "" && $lt_i != ".") { 10459 if ($lt_i == "..") { 10460 lt_count++; 10461 } else { 10462 if (lt_count == 0) { 10463 lt_foo="/" $lt_i lt_foo; 10464 } else { 10465 lt_count--; 10466 } 10467 } 10468 } 10469 } 10470 if (lt_foo != "") { lt_freq[lt_foo]++; } 10471 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10472}'` 10473 # AWK program above erroneously prepends '/' to C:/dos/paths 10474 # for these hosts. 10475 case $host_os in 10476 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10477 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10478 esac 10479 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10480else 10481 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10482fi 10483library_names_spec= 10484libname_spec='lib$name' 10485soname_spec= 10486shrext_cmds=".so" 10487postinstall_cmds= 10488postuninstall_cmds= 10489finish_cmds= 10490finish_eval= 10491shlibpath_var= 10492shlibpath_overrides_runpath=unknown 10493version_type=none 10494dynamic_linker="$host_os ld.so" 10495sys_lib_dlsearch_path_spec="/lib /usr/lib" 10496need_lib_prefix=unknown 10497hardcode_into_libs=no 10498 10499# when you set need_version to no, make sure it does not cause -set_version 10500# flags to be left without arguments 10501need_version=unknown 10502 10503case $host_os in 10504aix3*) 10505 version_type=linux # correct to gnu/linux during the next big refactor 10506 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10507 shlibpath_var=LIBPATH 10508 10509 # AIX 3 has no versioning support, so we append a major version to the name. 10510 soname_spec='${libname}${release}${shared_ext}$major' 10511 ;; 10512 10513aix[4-9]*) 10514 version_type=linux # correct to gnu/linux during the next big refactor 10515 need_lib_prefix=no 10516 need_version=no 10517 hardcode_into_libs=yes 10518 if test "$host_cpu" = ia64; then 10519 # AIX 5 supports IA64 10520 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10521 shlibpath_var=LD_LIBRARY_PATH 10522 else 10523 # With GCC up to 2.95.x, collect2 would create an import file 10524 # for dependence libraries. The import file would start with 10525 # the line `#! .'. This would cause the generated library to 10526 # depend on `.', always an invalid library. This was fixed in 10527 # development snapshots of GCC prior to 3.0. 10528 case $host_os in 10529 aix4 | aix4.[01] | aix4.[01].*) 10530 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10531 echo ' yes ' 10532 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10533 : 10534 else 10535 can_build_shared=no 10536 fi 10537 ;; 10538 esac 10539 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10540 # soname into executable. Probably we can add versioning support to 10541 # collect2, so additional links can be useful in future. 10542 if test "$aix_use_runtimelinking" = yes; then 10543 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10544 # instead of lib<name>.a to let people know that these are not 10545 # typical AIX shared libraries. 10546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10547 else 10548 # We preserve .a as extension for shared libraries through AIX4.2 10549 # and later when we are not doing run time linking. 10550 library_names_spec='${libname}${release}.a $libname.a' 10551 soname_spec='${libname}${release}${shared_ext}$major' 10552 fi 10553 shlibpath_var=LIBPATH 10554 fi 10555 ;; 10556 10557amigaos*) 10558 case $host_cpu in 10559 powerpc) 10560 # Since July 2007 AmigaOS4 officially supports .so libraries. 10561 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10563 ;; 10564 m68k) 10565 library_names_spec='$libname.ixlibrary $libname.a' 10566 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10567 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' 10568 ;; 10569 esac 10570 ;; 10571 10572beos*) 10573 library_names_spec='${libname}${shared_ext}' 10574 dynamic_linker="$host_os ld.so" 10575 shlibpath_var=LIBRARY_PATH 10576 ;; 10577 10578bsdi[45]*) 10579 version_type=linux # correct to gnu/linux during the next big refactor 10580 need_version=no 10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10582 soname_spec='${libname}${release}${shared_ext}$major' 10583 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10584 shlibpath_var=LD_LIBRARY_PATH 10585 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10586 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10587 # the default ld.so.conf also contains /usr/contrib/lib and 10588 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10589 # libtool to hard-code these into programs 10590 ;; 10591 10592cygwin* | mingw* | pw32* | cegcc*) 10593 version_type=windows 10594 shrext_cmds=".dll" 10595 need_version=no 10596 need_lib_prefix=no 10597 10598 case $GCC,$cc_basename in 10599 yes,*) 10600 # gcc 10601 library_names_spec='$libname.dll.a' 10602 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10603 postinstall_cmds='base_file=`basename \${file}`~ 10604 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10605 dldir=$destdir/`dirname \$dlpath`~ 10606 test -d \$dldir || mkdir -p \$dldir~ 10607 $install_prog $dir/$dlname \$dldir/$dlname~ 10608 chmod a+x \$dldir/$dlname~ 10609 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10610 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10611 fi' 10612 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10613 dlpath=$dir/\$dldll~ 10614 $RM \$dlpath' 10615 shlibpath_overrides_runpath=yes 10616 10617 case $host_os in 10618 cygwin*) 10619 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10620 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10621 10622 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10623 ;; 10624 mingw* | cegcc*) 10625 # MinGW DLLs use traditional 'lib' prefix 10626 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10627 ;; 10628 pw32*) 10629 # pw32 DLLs use 'pw' prefix rather than 'lib' 10630 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10631 ;; 10632 esac 10633 dynamic_linker='Win32 ld.exe' 10634 ;; 10635 10636 *,cl*) 10637 # Native MSVC 10638 libname_spec='$name' 10639 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10640 library_names_spec='${libname}.dll.lib' 10641 10642 case $build_os in 10643 mingw*) 10644 sys_lib_search_path_spec= 10645 lt_save_ifs=$IFS 10646 IFS=';' 10647 for lt_path in $LIB 10648 do 10649 IFS=$lt_save_ifs 10650 # Let DOS variable expansion print the short 8.3 style file name. 10651 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10652 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10653 done 10654 IFS=$lt_save_ifs 10655 # Convert to MSYS style. 10656 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10657 ;; 10658 cygwin*) 10659 # Convert to unix form, then to dos form, then back to unix form 10660 # but this time dos style (no spaces!) so that the unix form looks 10661 # like /cygdrive/c/PROGRA~1:/cygdr... 10662 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10663 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10664 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10665 ;; 10666 *) 10667 sys_lib_search_path_spec="$LIB" 10668 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10669 # It is most probably a Windows format PATH. 10670 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10671 else 10672 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10673 fi 10674 # FIXME: find the short name or the path components, as spaces are 10675 # common. (e.g. "Program Files" -> "PROGRA~1") 10676 ;; 10677 esac 10678 10679 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10680 postinstall_cmds='base_file=`basename \${file}`~ 10681 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10682 dldir=$destdir/`dirname \$dlpath`~ 10683 test -d \$dldir || mkdir -p \$dldir~ 10684 $install_prog $dir/$dlname \$dldir/$dlname' 10685 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10686 dlpath=$dir/\$dldll~ 10687 $RM \$dlpath' 10688 shlibpath_overrides_runpath=yes 10689 dynamic_linker='Win32 link.exe' 10690 ;; 10691 10692 *) 10693 # Assume MSVC wrapper 10694 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10695 dynamic_linker='Win32 ld.exe' 10696 ;; 10697 esac 10698 # FIXME: first we should search . and the directory the executable is in 10699 shlibpath_var=PATH 10700 ;; 10701 10702darwin* | rhapsody*) 10703 dynamic_linker="$host_os dyld" 10704 version_type=darwin 10705 need_lib_prefix=no 10706 need_version=no 10707 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10708 soname_spec='${libname}${release}${major}$shared_ext' 10709 shlibpath_overrides_runpath=yes 10710 shlibpath_var=DYLD_LIBRARY_PATH 10711 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10712 10713 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10714 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10715 ;; 10716 10717dgux*) 10718 version_type=linux # correct to gnu/linux during the next big refactor 10719 need_lib_prefix=no 10720 need_version=no 10721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10722 soname_spec='${libname}${release}${shared_ext}$major' 10723 shlibpath_var=LD_LIBRARY_PATH 10724 ;; 10725 10726freebsd* | dragonfly*) 10727 # DragonFly does not have aout. When/if they implement a new 10728 # versioning mechanism, adjust this. 10729 if test -x /usr/bin/objformat; then 10730 objformat=`/usr/bin/objformat` 10731 else 10732 case $host_os in 10733 freebsd[23].*) objformat=aout ;; 10734 *) objformat=elf ;; 10735 esac 10736 fi 10737 version_type=freebsd-$objformat 10738 case $version_type in 10739 freebsd-elf*) 10740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10741 need_version=no 10742 need_lib_prefix=no 10743 ;; 10744 freebsd-*) 10745 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10746 need_version=yes 10747 ;; 10748 esac 10749 shlibpath_var=LD_LIBRARY_PATH 10750 case $host_os in 10751 freebsd2.*) 10752 shlibpath_overrides_runpath=yes 10753 ;; 10754 freebsd3.[01]* | freebsdelf3.[01]*) 10755 shlibpath_overrides_runpath=yes 10756 hardcode_into_libs=yes 10757 ;; 10758 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10759 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10760 shlibpath_overrides_runpath=no 10761 hardcode_into_libs=yes 10762 ;; 10763 *) # from 4.6 on, and DragonFly 10764 shlibpath_overrides_runpath=yes 10765 hardcode_into_libs=yes 10766 ;; 10767 esac 10768 ;; 10769 10770gnu*) 10771 version_type=linux # correct to gnu/linux during the next big refactor 10772 need_lib_prefix=no 10773 need_version=no 10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10775 soname_spec='${libname}${release}${shared_ext}$major' 10776 shlibpath_var=LD_LIBRARY_PATH 10777 shlibpath_overrides_runpath=no 10778 hardcode_into_libs=yes 10779 ;; 10780 10781haiku*) 10782 version_type=linux # correct to gnu/linux during the next big refactor 10783 need_lib_prefix=no 10784 need_version=no 10785 dynamic_linker="$host_os runtime_loader" 10786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10787 soname_spec='${libname}${release}${shared_ext}$major' 10788 shlibpath_var=LIBRARY_PATH 10789 shlibpath_overrides_runpath=yes 10790 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10791 hardcode_into_libs=yes 10792 ;; 10793 10794hpux9* | hpux10* | hpux11*) 10795 # Give a soname corresponding to the major version so that dld.sl refuses to 10796 # link against other versions. 10797 version_type=sunos 10798 need_lib_prefix=no 10799 need_version=no 10800 case $host_cpu in 10801 ia64*) 10802 shrext_cmds='.so' 10803 hardcode_into_libs=yes 10804 dynamic_linker="$host_os dld.so" 10805 shlibpath_var=LD_LIBRARY_PATH 10806 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10808 soname_spec='${libname}${release}${shared_ext}$major' 10809 if test "X$HPUX_IA64_MODE" = X32; then 10810 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10811 else 10812 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10813 fi 10814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10815 ;; 10816 hppa*64*) 10817 shrext_cmds='.sl' 10818 hardcode_into_libs=yes 10819 dynamic_linker="$host_os dld.sl" 10820 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10821 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10823 soname_spec='${libname}${release}${shared_ext}$major' 10824 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10825 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10826 ;; 10827 *) 10828 shrext_cmds='.sl' 10829 dynamic_linker="$host_os dld.sl" 10830 shlibpath_var=SHLIB_PATH 10831 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10833 soname_spec='${libname}${release}${shared_ext}$major' 10834 ;; 10835 esac 10836 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10837 postinstall_cmds='chmod 555 $lib' 10838 # or fails outright, so override atomically: 10839 install_override_mode=555 10840 ;; 10841 10842interix[3-9]*) 10843 version_type=linux # correct to gnu/linux during the next big refactor 10844 need_lib_prefix=no 10845 need_version=no 10846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10847 soname_spec='${libname}${release}${shared_ext}$major' 10848 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10849 shlibpath_var=LD_LIBRARY_PATH 10850 shlibpath_overrides_runpath=no 10851 hardcode_into_libs=yes 10852 ;; 10853 10854irix5* | irix6* | nonstopux*) 10855 case $host_os in 10856 nonstopux*) version_type=nonstopux ;; 10857 *) 10858 if test "$lt_cv_prog_gnu_ld" = yes; then 10859 version_type=linux # correct to gnu/linux during the next big refactor 10860 else 10861 version_type=irix 10862 fi ;; 10863 esac 10864 need_lib_prefix=no 10865 need_version=no 10866 soname_spec='${libname}${release}${shared_ext}$major' 10867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10868 case $host_os in 10869 irix5* | nonstopux*) 10870 libsuff= shlibsuff= 10871 ;; 10872 *) 10873 case $LD in # libtool.m4 will add one of these switches to LD 10874 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10875 libsuff= shlibsuff= libmagic=32-bit;; 10876 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10877 libsuff=32 shlibsuff=N32 libmagic=N32;; 10878 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10879 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10880 *) libsuff= shlibsuff= libmagic=never-match;; 10881 esac 10882 ;; 10883 esac 10884 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10885 shlibpath_overrides_runpath=no 10886 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10887 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10888 hardcode_into_libs=yes 10889 ;; 10890 10891# No shared lib support for Linux oldld, aout, or coff. 10892linux*oldld* | linux*aout* | linux*coff*) 10893 dynamic_linker=no 10894 ;; 10895 10896# This must be glibc/ELF. 10897linux* | k*bsd*-gnu | kopensolaris*-gnu) 10898 version_type=linux # correct to gnu/linux during the next big refactor 10899 need_lib_prefix=no 10900 need_version=no 10901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10902 soname_spec='${libname}${release}${shared_ext}$major' 10903 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10904 shlibpath_var=LD_LIBRARY_PATH 10905 shlibpath_overrides_runpath=no 10906 10907 # Some binutils ld are patched to set DT_RUNPATH 10908 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10909 $as_echo_n "(cached) " >&6 10910else 10911 lt_cv_shlibpath_overrides_runpath=no 10912 save_LDFLAGS=$LDFLAGS 10913 save_libdir=$libdir 10914 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10915 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10917/* end confdefs.h. */ 10918 10919int 10920main () 10921{ 10922 10923 ; 10924 return 0; 10925} 10926_ACEOF 10927if ac_fn_c_try_link "$LINENO"; then : 10928 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10929 lt_cv_shlibpath_overrides_runpath=yes 10930fi 10931fi 10932rm -f core conftest.err conftest.$ac_objext \ 10933 conftest$ac_exeext conftest.$ac_ext 10934 LDFLAGS=$save_LDFLAGS 10935 libdir=$save_libdir 10936 10937fi 10938 10939 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10940 10941 # This implies no fast_install, which is unacceptable. 10942 # Some rework will be needed to allow for fast_install 10943 # before this can be enabled. 10944 hardcode_into_libs=yes 10945 10946 # Append ld.so.conf contents to the search path 10947 if test -f /etc/ld.so.conf; then 10948 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' ' '` 10949 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10950 fi 10951 10952 # We used to test for /lib/ld.so.1 and disable shared libraries on 10953 # powerpc, because MkLinux only supported shared libraries with the 10954 # GNU dynamic linker. Since this was broken with cross compilers, 10955 # most powerpc-linux boxes support dynamic linking these days and 10956 # people can always --disable-shared, the test was removed, and we 10957 # assume the GNU/Linux dynamic linker is in use. 10958 dynamic_linker='GNU/Linux ld.so' 10959 ;; 10960 10961netbsd*) 10962 version_type=sunos 10963 need_lib_prefix=no 10964 need_version=no 10965 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10968 dynamic_linker='NetBSD (a.out) ld.so' 10969 else 10970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10971 soname_spec='${libname}${release}${shared_ext}$major' 10972 dynamic_linker='NetBSD ld.elf_so' 10973 fi 10974 shlibpath_var=LD_LIBRARY_PATH 10975 shlibpath_overrides_runpath=yes 10976 hardcode_into_libs=yes 10977 ;; 10978 10979newsos6) 10980 version_type=linux # correct to gnu/linux during the next big refactor 10981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10982 shlibpath_var=LD_LIBRARY_PATH 10983 shlibpath_overrides_runpath=yes 10984 ;; 10985 10986*nto* | *qnx*) 10987 version_type=qnx 10988 need_lib_prefix=no 10989 need_version=no 10990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10991 soname_spec='${libname}${release}${shared_ext}$major' 10992 shlibpath_var=LD_LIBRARY_PATH 10993 shlibpath_overrides_runpath=no 10994 hardcode_into_libs=yes 10995 dynamic_linker='ldqnx.so' 10996 ;; 10997 10998openbsd*) 10999 version_type=sunos 11000 sys_lib_dlsearch_path_spec="/usr/lib" 11001 need_lib_prefix=no 11002 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11003 case $host_os in 11004 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11005 *) need_version=no ;; 11006 esac 11007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11009 shlibpath_var=LD_LIBRARY_PATH 11010 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11011 case $host_os in 11012 openbsd2.[89] | openbsd2.[89].*) 11013 shlibpath_overrides_runpath=no 11014 ;; 11015 *) 11016 shlibpath_overrides_runpath=yes 11017 ;; 11018 esac 11019 else 11020 shlibpath_overrides_runpath=yes 11021 fi 11022 ;; 11023 11024os2*) 11025 libname_spec='$name' 11026 shrext_cmds=".dll" 11027 need_lib_prefix=no 11028 library_names_spec='$libname${shared_ext} $libname.a' 11029 dynamic_linker='OS/2 ld.exe' 11030 shlibpath_var=LIBPATH 11031 ;; 11032 11033osf3* | osf4* | osf5*) 11034 version_type=osf 11035 need_lib_prefix=no 11036 need_version=no 11037 soname_spec='${libname}${release}${shared_ext}$major' 11038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11039 shlibpath_var=LD_LIBRARY_PATH 11040 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11041 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11042 ;; 11043 11044rdos*) 11045 dynamic_linker=no 11046 ;; 11047 11048solaris*) 11049 version_type=linux # correct to gnu/linux during the next big refactor 11050 need_lib_prefix=no 11051 need_version=no 11052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11053 soname_spec='${libname}${release}${shared_ext}$major' 11054 shlibpath_var=LD_LIBRARY_PATH 11055 shlibpath_overrides_runpath=yes 11056 hardcode_into_libs=yes 11057 # ldd complains unless libraries are executable 11058 postinstall_cmds='chmod +x $lib' 11059 ;; 11060 11061sunos4*) 11062 version_type=sunos 11063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11064 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11065 shlibpath_var=LD_LIBRARY_PATH 11066 shlibpath_overrides_runpath=yes 11067 if test "$with_gnu_ld" = yes; then 11068 need_lib_prefix=no 11069 fi 11070 need_version=yes 11071 ;; 11072 11073sysv4 | sysv4.3*) 11074 version_type=linux # correct to gnu/linux during the next big refactor 11075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11076 soname_spec='${libname}${release}${shared_ext}$major' 11077 shlibpath_var=LD_LIBRARY_PATH 11078 case $host_vendor in 11079 sni) 11080 shlibpath_overrides_runpath=no 11081 need_lib_prefix=no 11082 runpath_var=LD_RUN_PATH 11083 ;; 11084 siemens) 11085 need_lib_prefix=no 11086 ;; 11087 motorola) 11088 need_lib_prefix=no 11089 need_version=no 11090 shlibpath_overrides_runpath=no 11091 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11092 ;; 11093 esac 11094 ;; 11095 11096sysv4*MP*) 11097 if test -d /usr/nec ;then 11098 version_type=linux # correct to gnu/linux during the next big refactor 11099 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11100 soname_spec='$libname${shared_ext}.$major' 11101 shlibpath_var=LD_LIBRARY_PATH 11102 fi 11103 ;; 11104 11105sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11106 version_type=freebsd-elf 11107 need_lib_prefix=no 11108 need_version=no 11109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11110 soname_spec='${libname}${release}${shared_ext}$major' 11111 shlibpath_var=LD_LIBRARY_PATH 11112 shlibpath_overrides_runpath=yes 11113 hardcode_into_libs=yes 11114 if test "$with_gnu_ld" = yes; then 11115 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11116 else 11117 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11118 case $host_os in 11119 sco3.2v5*) 11120 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11121 ;; 11122 esac 11123 fi 11124 sys_lib_dlsearch_path_spec='/usr/lib' 11125 ;; 11126 11127tpf*) 11128 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11129 version_type=linux # correct to gnu/linux during the next big refactor 11130 need_lib_prefix=no 11131 need_version=no 11132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11133 shlibpath_var=LD_LIBRARY_PATH 11134 shlibpath_overrides_runpath=no 11135 hardcode_into_libs=yes 11136 ;; 11137 11138uts4*) 11139 version_type=linux # correct to gnu/linux during the next big refactor 11140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11141 soname_spec='${libname}${release}${shared_ext}$major' 11142 shlibpath_var=LD_LIBRARY_PATH 11143 ;; 11144 11145*) 11146 dynamic_linker=no 11147 ;; 11148esac 11149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11150$as_echo "$dynamic_linker" >&6; } 11151test "$dynamic_linker" = no && can_build_shared=no 11152 11153variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11154if test "$GCC" = yes; then 11155 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11156fi 11157 11158if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11159 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11160fi 11161if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11162 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11163fi 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11257$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11258hardcode_action= 11259if test -n "$hardcode_libdir_flag_spec" || 11260 test -n "$runpath_var" || 11261 test "X$hardcode_automatic" = "Xyes" ; then 11262 11263 # We can hardcode non-existent directories. 11264 if test "$hardcode_direct" != no && 11265 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11266 # have to relink, otherwise we might link with an installed library 11267 # when we should be linking with a yet-to-be-installed one 11268 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11269 test "$hardcode_minus_L" != no; then 11270 # Linking always hardcodes the temporary library directory. 11271 hardcode_action=relink 11272 else 11273 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11274 hardcode_action=immediate 11275 fi 11276else 11277 # We cannot hardcode anything, or else we can only hardcode existing 11278 # directories. 11279 hardcode_action=unsupported 11280fi 11281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11282$as_echo "$hardcode_action" >&6; } 11283 11284if test "$hardcode_action" = relink || 11285 test "$inherit_rpath" = yes; then 11286 # Fast installation is not supported 11287 enable_fast_install=no 11288elif test "$shlibpath_overrides_runpath" = yes || 11289 test "$enable_shared" = no; then 11290 # Fast installation is not necessary 11291 enable_fast_install=needless 11292fi 11293 11294 11295 11296 11297 11298 11299 if test "x$enable_dlopen" != xyes; then 11300 enable_dlopen=unknown 11301 enable_dlopen_self=unknown 11302 enable_dlopen_self_static=unknown 11303else 11304 lt_cv_dlopen=no 11305 lt_cv_dlopen_libs= 11306 11307 case $host_os in 11308 beos*) 11309 lt_cv_dlopen="load_add_on" 11310 lt_cv_dlopen_libs= 11311 lt_cv_dlopen_self=yes 11312 ;; 11313 11314 mingw* | pw32* | cegcc*) 11315 lt_cv_dlopen="LoadLibrary" 11316 lt_cv_dlopen_libs= 11317 ;; 11318 11319 cygwin*) 11320 lt_cv_dlopen="dlopen" 11321 lt_cv_dlopen_libs= 11322 ;; 11323 11324 darwin*) 11325 # if libdl is installed we need to link against it 11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11327$as_echo_n "checking for dlopen in -ldl... " >&6; } 11328if ${ac_cv_lib_dl_dlopen+:} false; then : 11329 $as_echo_n "(cached) " >&6 11330else 11331 ac_check_lib_save_LIBS=$LIBS 11332LIBS="-ldl $LIBS" 11333cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11334/* end confdefs.h. */ 11335 11336/* Override any GCC internal prototype to avoid an error. 11337 Use char because int might match the return type of a GCC 11338 builtin and then its argument prototype would still apply. */ 11339#ifdef __cplusplus 11340extern "C" 11341#endif 11342char dlopen (); 11343int 11344main () 11345{ 11346return dlopen (); 11347 ; 11348 return 0; 11349} 11350_ACEOF 11351if ac_fn_c_try_link "$LINENO"; then : 11352 ac_cv_lib_dl_dlopen=yes 11353else 11354 ac_cv_lib_dl_dlopen=no 11355fi 11356rm -f core conftest.err conftest.$ac_objext \ 11357 conftest$ac_exeext conftest.$ac_ext 11358LIBS=$ac_check_lib_save_LIBS 11359fi 11360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11361$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11362if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11363 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11364else 11365 11366 lt_cv_dlopen="dyld" 11367 lt_cv_dlopen_libs= 11368 lt_cv_dlopen_self=yes 11369 11370fi 11371 11372 ;; 11373 11374 *) 11375 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11376if test "x$ac_cv_func_shl_load" = xyes; then : 11377 lt_cv_dlopen="shl_load" 11378else 11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11380$as_echo_n "checking for shl_load in -ldld... " >&6; } 11381if ${ac_cv_lib_dld_shl_load+:} false; then : 11382 $as_echo_n "(cached) " >&6 11383else 11384 ac_check_lib_save_LIBS=$LIBS 11385LIBS="-ldld $LIBS" 11386cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11387/* end confdefs.h. */ 11388 11389/* Override any GCC internal prototype to avoid an error. 11390 Use char because int might match the return type of a GCC 11391 builtin and then its argument prototype would still apply. */ 11392#ifdef __cplusplus 11393extern "C" 11394#endif 11395char shl_load (); 11396int 11397main () 11398{ 11399return shl_load (); 11400 ; 11401 return 0; 11402} 11403_ACEOF 11404if ac_fn_c_try_link "$LINENO"; then : 11405 ac_cv_lib_dld_shl_load=yes 11406else 11407 ac_cv_lib_dld_shl_load=no 11408fi 11409rm -f core conftest.err conftest.$ac_objext \ 11410 conftest$ac_exeext conftest.$ac_ext 11411LIBS=$ac_check_lib_save_LIBS 11412fi 11413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11414$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11415if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11416 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11417else 11418 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11419if test "x$ac_cv_func_dlopen" = xyes; then : 11420 lt_cv_dlopen="dlopen" 11421else 11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11423$as_echo_n "checking for dlopen in -ldl... " >&6; } 11424if ${ac_cv_lib_dl_dlopen+:} false; then : 11425 $as_echo_n "(cached) " >&6 11426else 11427 ac_check_lib_save_LIBS=$LIBS 11428LIBS="-ldl $LIBS" 11429cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11430/* end confdefs.h. */ 11431 11432/* Override any GCC internal prototype to avoid an error. 11433 Use char because int might match the return type of a GCC 11434 builtin and then its argument prototype would still apply. */ 11435#ifdef __cplusplus 11436extern "C" 11437#endif 11438char dlopen (); 11439int 11440main () 11441{ 11442return dlopen (); 11443 ; 11444 return 0; 11445} 11446_ACEOF 11447if ac_fn_c_try_link "$LINENO"; then : 11448 ac_cv_lib_dl_dlopen=yes 11449else 11450 ac_cv_lib_dl_dlopen=no 11451fi 11452rm -f core conftest.err conftest.$ac_objext \ 11453 conftest$ac_exeext conftest.$ac_ext 11454LIBS=$ac_check_lib_save_LIBS 11455fi 11456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11457$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11458if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11459 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11460else 11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11462$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11463if ${ac_cv_lib_svld_dlopen+:} false; then : 11464 $as_echo_n "(cached) " >&6 11465else 11466 ac_check_lib_save_LIBS=$LIBS 11467LIBS="-lsvld $LIBS" 11468cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11469/* end confdefs.h. */ 11470 11471/* Override any GCC internal prototype to avoid an error. 11472 Use char because int might match the return type of a GCC 11473 builtin and then its argument prototype would still apply. */ 11474#ifdef __cplusplus 11475extern "C" 11476#endif 11477char dlopen (); 11478int 11479main () 11480{ 11481return dlopen (); 11482 ; 11483 return 0; 11484} 11485_ACEOF 11486if ac_fn_c_try_link "$LINENO"; then : 11487 ac_cv_lib_svld_dlopen=yes 11488else 11489 ac_cv_lib_svld_dlopen=no 11490fi 11491rm -f core conftest.err conftest.$ac_objext \ 11492 conftest$ac_exeext conftest.$ac_ext 11493LIBS=$ac_check_lib_save_LIBS 11494fi 11495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11496$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11497if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11498 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11499else 11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11501$as_echo_n "checking for dld_link in -ldld... " >&6; } 11502if ${ac_cv_lib_dld_dld_link+:} false; then : 11503 $as_echo_n "(cached) " >&6 11504else 11505 ac_check_lib_save_LIBS=$LIBS 11506LIBS="-ldld $LIBS" 11507cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11508/* end confdefs.h. */ 11509 11510/* Override any GCC internal prototype to avoid an error. 11511 Use char because int might match the return type of a GCC 11512 builtin and then its argument prototype would still apply. */ 11513#ifdef __cplusplus 11514extern "C" 11515#endif 11516char dld_link (); 11517int 11518main () 11519{ 11520return dld_link (); 11521 ; 11522 return 0; 11523} 11524_ACEOF 11525if ac_fn_c_try_link "$LINENO"; then : 11526 ac_cv_lib_dld_dld_link=yes 11527else 11528 ac_cv_lib_dld_dld_link=no 11529fi 11530rm -f core conftest.err conftest.$ac_objext \ 11531 conftest$ac_exeext conftest.$ac_ext 11532LIBS=$ac_check_lib_save_LIBS 11533fi 11534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11535$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11536if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11537 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11538fi 11539 11540 11541fi 11542 11543 11544fi 11545 11546 11547fi 11548 11549 11550fi 11551 11552 11553fi 11554 11555 ;; 11556 esac 11557 11558 if test "x$lt_cv_dlopen" != xno; then 11559 enable_dlopen=yes 11560 else 11561 enable_dlopen=no 11562 fi 11563 11564 case $lt_cv_dlopen in 11565 dlopen) 11566 save_CPPFLAGS="$CPPFLAGS" 11567 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11568 11569 save_LDFLAGS="$LDFLAGS" 11570 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11571 11572 save_LIBS="$LIBS" 11573 LIBS="$lt_cv_dlopen_libs $LIBS" 11574 11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11576$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11577if ${lt_cv_dlopen_self+:} false; then : 11578 $as_echo_n "(cached) " >&6 11579else 11580 if test "$cross_compiling" = yes; then : 11581 lt_cv_dlopen_self=cross 11582else 11583 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11584 lt_status=$lt_dlunknown 11585 cat > conftest.$ac_ext <<_LT_EOF 11586#line $LINENO "configure" 11587#include "confdefs.h" 11588 11589#if HAVE_DLFCN_H 11590#include <dlfcn.h> 11591#endif 11592 11593#include <stdio.h> 11594 11595#ifdef RTLD_GLOBAL 11596# define LT_DLGLOBAL RTLD_GLOBAL 11597#else 11598# ifdef DL_GLOBAL 11599# define LT_DLGLOBAL DL_GLOBAL 11600# else 11601# define LT_DLGLOBAL 0 11602# endif 11603#endif 11604 11605/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11606 find out it does not work in some platform. */ 11607#ifndef LT_DLLAZY_OR_NOW 11608# ifdef RTLD_LAZY 11609# define LT_DLLAZY_OR_NOW RTLD_LAZY 11610# else 11611# ifdef DL_LAZY 11612# define LT_DLLAZY_OR_NOW DL_LAZY 11613# else 11614# ifdef RTLD_NOW 11615# define LT_DLLAZY_OR_NOW RTLD_NOW 11616# else 11617# ifdef DL_NOW 11618# define LT_DLLAZY_OR_NOW DL_NOW 11619# else 11620# define LT_DLLAZY_OR_NOW 0 11621# endif 11622# endif 11623# endif 11624# endif 11625#endif 11626 11627/* When -fvisbility=hidden is used, assume the code has been annotated 11628 correspondingly for the symbols needed. */ 11629#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11630int fnord () __attribute__((visibility("default"))); 11631#endif 11632 11633int fnord () { return 42; } 11634int main () 11635{ 11636 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11637 int status = $lt_dlunknown; 11638 11639 if (self) 11640 { 11641 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11642 else 11643 { 11644 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11645 else puts (dlerror ()); 11646 } 11647 /* dlclose (self); */ 11648 } 11649 else 11650 puts (dlerror ()); 11651 11652 return status; 11653} 11654_LT_EOF 11655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11656 (eval $ac_link) 2>&5 11657 ac_status=$? 11658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11659 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11660 (./conftest; exit; ) >&5 2>/dev/null 11661 lt_status=$? 11662 case x$lt_status in 11663 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11664 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11665 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11666 esac 11667 else : 11668 # compilation failed 11669 lt_cv_dlopen_self=no 11670 fi 11671fi 11672rm -fr conftest* 11673 11674 11675fi 11676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11677$as_echo "$lt_cv_dlopen_self" >&6; } 11678 11679 if test "x$lt_cv_dlopen_self" = xyes; then 11680 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11682$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11683if ${lt_cv_dlopen_self_static+:} false; then : 11684 $as_echo_n "(cached) " >&6 11685else 11686 if test "$cross_compiling" = yes; then : 11687 lt_cv_dlopen_self_static=cross 11688else 11689 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11690 lt_status=$lt_dlunknown 11691 cat > conftest.$ac_ext <<_LT_EOF 11692#line $LINENO "configure" 11693#include "confdefs.h" 11694 11695#if HAVE_DLFCN_H 11696#include <dlfcn.h> 11697#endif 11698 11699#include <stdio.h> 11700 11701#ifdef RTLD_GLOBAL 11702# define LT_DLGLOBAL RTLD_GLOBAL 11703#else 11704# ifdef DL_GLOBAL 11705# define LT_DLGLOBAL DL_GLOBAL 11706# else 11707# define LT_DLGLOBAL 0 11708# endif 11709#endif 11710 11711/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11712 find out it does not work in some platform. */ 11713#ifndef LT_DLLAZY_OR_NOW 11714# ifdef RTLD_LAZY 11715# define LT_DLLAZY_OR_NOW RTLD_LAZY 11716# else 11717# ifdef DL_LAZY 11718# define LT_DLLAZY_OR_NOW DL_LAZY 11719# else 11720# ifdef RTLD_NOW 11721# define LT_DLLAZY_OR_NOW RTLD_NOW 11722# else 11723# ifdef DL_NOW 11724# define LT_DLLAZY_OR_NOW DL_NOW 11725# else 11726# define LT_DLLAZY_OR_NOW 0 11727# endif 11728# endif 11729# endif 11730# endif 11731#endif 11732 11733/* When -fvisbility=hidden is used, assume the code has been annotated 11734 correspondingly for the symbols needed. */ 11735#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11736int fnord () __attribute__((visibility("default"))); 11737#endif 11738 11739int fnord () { return 42; } 11740int main () 11741{ 11742 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11743 int status = $lt_dlunknown; 11744 11745 if (self) 11746 { 11747 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11748 else 11749 { 11750 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11751 else puts (dlerror ()); 11752 } 11753 /* dlclose (self); */ 11754 } 11755 else 11756 puts (dlerror ()); 11757 11758 return status; 11759} 11760_LT_EOF 11761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11762 (eval $ac_link) 2>&5 11763 ac_status=$? 11764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11765 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11766 (./conftest; exit; ) >&5 2>/dev/null 11767 lt_status=$? 11768 case x$lt_status in 11769 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11770 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11771 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11772 esac 11773 else : 11774 # compilation failed 11775 lt_cv_dlopen_self_static=no 11776 fi 11777fi 11778rm -fr conftest* 11779 11780 11781fi 11782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11783$as_echo "$lt_cv_dlopen_self_static" >&6; } 11784 fi 11785 11786 CPPFLAGS="$save_CPPFLAGS" 11787 LDFLAGS="$save_LDFLAGS" 11788 LIBS="$save_LIBS" 11789 ;; 11790 esac 11791 11792 case $lt_cv_dlopen_self in 11793 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11794 *) enable_dlopen_self=unknown ;; 11795 esac 11796 11797 case $lt_cv_dlopen_self_static in 11798 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11799 *) enable_dlopen_self_static=unknown ;; 11800 esac 11801fi 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819striplib= 11820old_striplib= 11821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11822$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11823if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11824 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11825 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11827$as_echo "yes" >&6; } 11828else 11829# FIXME - insert some real tests, host_os isn't really good enough 11830 case $host_os in 11831 darwin*) 11832 if test -n "$STRIP" ; then 11833 striplib="$STRIP -x" 11834 old_striplib="$STRIP -S" 11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11836$as_echo "yes" >&6; } 11837 else 11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11839$as_echo "no" >&6; } 11840 fi 11841 ;; 11842 *) 11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11844$as_echo "no" >&6; } 11845 ;; 11846 esac 11847fi 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 # Report which library types will actually be built 11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11862$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11864$as_echo "$can_build_shared" >&6; } 11865 11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11867$as_echo_n "checking whether to build shared libraries... " >&6; } 11868 test "$can_build_shared" = "no" && enable_shared=no 11869 11870 # On AIX, shared libraries and static libraries use the same namespace, and 11871 # are all built from PIC. 11872 case $host_os in 11873 aix3*) 11874 test "$enable_shared" = yes && enable_static=no 11875 if test -n "$RANLIB"; then 11876 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11877 postinstall_cmds='$RANLIB $lib' 11878 fi 11879 ;; 11880 11881 aix[4-9]*) 11882 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11883 test "$enable_shared" = yes && enable_static=no 11884 fi 11885 ;; 11886 esac 11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11888$as_echo "$enable_shared" >&6; } 11889 11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11891$as_echo_n "checking whether to build static libraries... " >&6; } 11892 # Make sure either enable_shared or enable_static is yes. 11893 test "$enable_shared" = yes || enable_static=yes 11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11895$as_echo "$enable_static" >&6; } 11896 11897 11898 11899 11900fi 11901ac_ext=c 11902ac_cpp='$CPP $CPPFLAGS' 11903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11905ac_compiler_gnu=$ac_cv_c_compiler_gnu 11906 11907CC="$lt_save_CC" 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 ac_config_commands="$ac_config_commands libtool" 11924 11925 11926 11927 11928# Only expand once: 11929 11930 11931 11932for ac_prog in 'bison -y' byacc 11933do 11934 # Extract the first word of "$ac_prog", so it can be a program name with args. 11935set dummy $ac_prog; ac_word=$2 11936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11937$as_echo_n "checking for $ac_word... " >&6; } 11938if ${ac_cv_prog_YACC+:} false; then : 11939 $as_echo_n "(cached) " >&6 11940else 11941 if test -n "$YACC"; then 11942 ac_cv_prog_YACC="$YACC" # Let the user override the test. 11943else 11944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11945for as_dir in $PATH 11946do 11947 IFS=$as_save_IFS 11948 test -z "$as_dir" && as_dir=. 11949 for ac_exec_ext in '' $ac_executable_extensions; do 11950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11951 ac_cv_prog_YACC="$ac_prog" 11952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11953 break 2 11954 fi 11955done 11956 done 11957IFS=$as_save_IFS 11958 11959fi 11960fi 11961YACC=$ac_cv_prog_YACC 11962if test -n "$YACC"; then 11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 11964$as_echo "$YACC" >&6; } 11965else 11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11967$as_echo "no" >&6; } 11968fi 11969 11970 11971 test -n "$YACC" && break 11972done 11973test -n "$YACC" || YACC="yacc" 11974 11975 11976 11977# Clang throws a lot of warnings when it does not understand a flag. Disable 11978# this warning for now so other warnings are visible. 11979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiling with clang" >&5 11980$as_echo_n "checking if compiling with clang... " >&6; } 11981cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11982/* end confdefs.h. */ 11983 11984int 11985main () 11986{ 11987 11988#ifndef __clang__ 11989 not clang 11990#endif 11991 11992 ; 11993 return 0; 11994} 11995_ACEOF 11996if ac_fn_c_try_compile "$LINENO"; then : 11997 CLANG=yes 11998else 11999 CLANG=no 12000 12001fi 12002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5 12004$as_echo "$CLANG" >&6; } 12005if test "x$CLANG" = "xyes"; then : 12006 CLANG_FLAGS=-Qunused-arguments 12007fi 12008CFLAGS="$CFLAGS $CLANG_FLAGS" 12009LDFLAGS="$LDFLAGS $CLANG_FLAGS" 12010 12011# Removing the dependency on -Wno-pointer-sign should be a goal. These are 12012# largely unsigned char */char* mismatches in asn1 functions. 12013save_cflags="$CFLAGS" 12014CFLAGS=-Wno-pointer-sign 12015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -Wno-pointer-sign" >&5 12016$as_echo_n "checking whether CC supports -Wno-pointer-sign... " >&6; } 12017cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12018/* end confdefs.h. */ 12019 12020int 12021main () 12022{ 12023 12024 ; 12025 return 0; 12026} 12027_ACEOF 12028if ac_fn_c_try_compile "$LINENO"; then : 12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12030$as_echo "yes" >&6; } 12031 AM_CFLAGS=-Wno-pointer-sign 12032else 12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12034$as_echo "no" >&6; } 12035 12036fi 12037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12038CFLAGS="$save_cflags $AM_CFLAGS" 12039 12040 12041 12042 12043CFLAGS="$CFLAGS -Wall -std=gnu99 -fno-strict-aliasing" 12044 12045case $host_os in 12046 *aix*) 12047 HOST_OS=aix 12048 if test "`echo $CC | cut -d ' ' -f 1`" != "gcc" ; then 12049 CFLAGS="-qnoansialias $USER_CFLAGS" 12050 fi 12051 PLATFORM_LDADD='-lperfstat -lpthread' 12052 12053 ;; 12054 *cygwin*) 12055 HOST_OS=cygwin 12056 ;; 12057 *darwin*) 12058 HOST_OS=darwin 12059 HOST_ABI=macosx 12060 # weak seed on failure to open /dev/random, based on latest 12061 # public source: 12062 # http://www.opensource.apple.com/source/Libc/Libc-997.90.3/gen/FreeBSD/arc4random.c 12063 USE_BUILTIN_ARC4RANDOM=yes 12064 12065$as_echo "#define SETEUID_BREAKS_SETUID /**/" >>confdefs.h 12066 12067 12068$as_echo "#define BROKEN_SETREUID /**/" >>confdefs.h 12069 12070 12071$as_echo "#define BROKEN_SETREGID /**/" >>confdefs.h 12072 12073 12074$as_echo "#define YYSTYPE_IS_DECLARED /**/" >>confdefs.h 12075 12076 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h 12077 12078 PROG_LDADD='-lresolv' 12079 12080 ;; 12081 *dragonfly*) 12082 HOST_OS=freebsd 12083 HOST_ABI=elf 12084 12085 ;; 12086 *freebsd*) 12087 HOST_OS=freebsd 12088 HOST_ABI=elf 12089 # fork detection missing, weak seed on failure 12090 # https://svnweb.freebsd.org/base/head/lib/libc/gen/arc4random.c?revision=268642&view=markup 12091 USE_BUILTIN_ARC4RANDOM=yes 12092 PROG_LDADD='-lthr' 12093 12094 ;; 12095 *hpux*) 12096 HOST_OS=hpux; 12097 if test "`echo $CC | cut -d ' ' -f 1`" = "gcc" ; then 12098 CFLAGS="$CFLAGS -mlp64" 12099 else 12100 CFLAGS="-g -O2 +DD64 +Otype_safety=off $USER_CFLAGS" 12101 fi 12102 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600 -D__STRICT_ALIGNMENT" 12103 PLATFORM_LDADD='-lpthread' 12104 12105 ;; 12106 *linux*) 12107 HOST_OS=linux 12108 HOST_ABI=elf 12109 CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -D_GNU_SOURCE" 12110 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h 12111 12112 PROG_LDADD='-lresolv' 12113 12114 ;; 12115 *netbsd*) 12116 HOST_OS=netbsd 12117 HOST_ABI=elf 12118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12119/* end confdefs.h. */ 12120 12121#include <sys/param.h> 12122#if __NetBSD_Version__ < 700000001 12123 undefined 12124#endif 12125 12126int 12127main () 12128{ 12129 12130 ; 12131 return 0; 12132} 12133_ACEOF 12134if ac_fn_c_try_compile "$LINENO"; then : 12135 USE_BUILTIN_ARC4RANDOM=no 12136else 12137 USE_BUILTIN_ARC4RANDOM=yes 12138 12139fi 12140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12141 CPPFLAGS="$CPPFLAGS -D_OPENBSD_SOURCE" 12142 ;; 12143 *openbsd* | *bitrig*) 12144 HOST_OS=openbsd 12145 HOST_ABI=elf 12146 12147$as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h 12148 12149 12150$as_echo "#define HAVE_ATTRIBUTE__DEAD 1" >>confdefs.h 12151 12152 12153$as_echo "#define HAVE_ATTRIBUTE__PACKED 1" >>confdefs.h 12154 12155 ;; 12156 *solaris*) 12157 HOST_OS=solaris 12158 HOST_ABI=elf 12159 CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__ -D_XOPEN_SOURCE=600 -DBSD_COMP" 12160 PLATFORM_LDADD='-lresolv -lsocket -lnsl' 12161 12162 ;; 12163 *) ;; 12164esac 12165 12166 if test x$HOST_OS = xaix; then 12167 HOST_AIX_TRUE= 12168 HOST_AIX_FALSE='#' 12169else 12170 HOST_AIX_TRUE='#' 12171 HOST_AIX_FALSE= 12172fi 12173 12174 if test x$HOST_OS = xcygwin; then 12175 HOST_CYGWIN_TRUE= 12176 HOST_CYGWIN_FALSE='#' 12177else 12178 HOST_CYGWIN_TRUE='#' 12179 HOST_CYGWIN_FALSE= 12180fi 12181 12182 if test x$HOST_OS = xdarwin; then 12183 HOST_DARWIN_TRUE= 12184 HOST_DARWIN_FALSE='#' 12185else 12186 HOST_DARWIN_TRUE='#' 12187 HOST_DARWIN_FALSE= 12188fi 12189 12190 if test x$HOST_OS = xfreebsd; then 12191 HOST_FREEBSD_TRUE= 12192 HOST_FREEBSD_FALSE='#' 12193else 12194 HOST_FREEBSD_TRUE='#' 12195 HOST_FREEBSD_FALSE= 12196fi 12197 12198 if test x$HOST_OS = xhpux; then 12199 HOST_HPUX_TRUE= 12200 HOST_HPUX_FALSE='#' 12201else 12202 HOST_HPUX_TRUE='#' 12203 HOST_HPUX_FALSE= 12204fi 12205 12206 if test x$HOST_OS = xlinux; then 12207 HOST_LINUX_TRUE= 12208 HOST_LINUX_FALSE='#' 12209else 12210 HOST_LINUX_TRUE='#' 12211 HOST_LINUX_FALSE= 12212fi 12213 12214 if test x$HOST_OS = xnetbsd; then 12215 HOST_NETBSD_TRUE= 12216 HOST_NETBSD_FALSE='#' 12217else 12218 HOST_NETBSD_TRUE='#' 12219 HOST_NETBSD_FALSE= 12220fi 12221 12222 if test x$HOST_OS = xopenbsd; then 12223 HOST_OPENBSD_TRUE= 12224 HOST_OPENBSD_FALSE='#' 12225else 12226 HOST_OPENBSD_TRUE='#' 12227 HOST_OPENBSD_FALSE= 12228fi 12229 12230 if test x$HOST_OS = xsolaris; then 12231 HOST_SOLARIS_TRUE= 12232 HOST_SOLARIS_FALSE='#' 12233else 12234 HOST_SOLARIS_TRUE='#' 12235 HOST_SOLARIS_FALSE= 12236fi 12237 12238 12239 12240 12241# Check crypto-related libc functions and syscalls 12242for ac_func in arc4random arc4random_buf arc4random_uniform 12243do : 12244 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12245ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12246if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12247 cat >>confdefs.h <<_ACEOF 12248#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12249_ACEOF 12250 12251fi 12252done 12253 12254for ac_func in explicit_bzero getauxval 12255do : 12256 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12257ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12258if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12259 cat >>confdefs.h <<_ACEOF 12260#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12261_ACEOF 12262 12263fi 12264done 12265 12266 12267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getentropy" >&5 12268$as_echo_n "checking for getentropy... " >&6; } 12269if ${ac_cv_func_getentropy+:} false; then : 12270 $as_echo_n "(cached) " >&6 12271else 12272 12273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12274/* end confdefs.h. */ 12275 12276#include <sys/types.h> 12277#include <unistd.h> 12278 12279/* 12280 * Explanation: 12281 * 12282 * - iOS <= 10.1 fails because of missing sys/random.h 12283 * 12284 * - in macOS 10.12 getentropy is not tagged as introduced in 12285 * 10.12 so we cannot use it for target < 10.12 12286 */ 12287#ifdef __APPLE__ 12288# include <AvailabilityMacros.h> 12289# include <TargetConditionals.h> 12290 12291# if (TARGET_OS_IPHONE || TARGET_OS_SIMULATOR) 12292# include <sys/random.h> /* Not available as of iOS <= 10.1 */ 12293# else 12294 12295# include <sys/random.h> /* Pre 10.12 systems should die here */ 12296 12297/* Based on: https://gitweb.torproject.org/tor.git/commit/?id=16fcbd21 */ 12298# ifndef MAC_OS_X_VERSION_10_12 12299# define MAC_OS_X_VERSION_10_12 101200 /* Robustness */ 12300# endif 12301# if defined(MAC_OS_X_VERSION_MIN_REQUIRED) 12302# if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12 12303# error "Targeting on Mac OSX 10.11 or earlier" 12304# endif 12305# endif 12306 12307# endif 12308#endif /* __APPLE__ */ 12309 12310int 12311main () 12312{ 12313 12314 char buffer; 12315 (void)getentropy(&buffer, sizeof (buffer)); 12316 12317 ; 12318 return 0; 12319} 12320_ACEOF 12321if ac_fn_c_try_link "$LINENO"; then : 12322 ac_cv_func_getentropy="yes" 12323else 12324 ac_cv_func_getentropy="no" 12325 12326fi 12327rm -f core conftest.err conftest.$ac_objext \ 12328 conftest$ac_exeext conftest.$ac_ext 12329 12330fi 12331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getentropy" >&5 12332$as_echo "$ac_cv_func_getentropy" >&6; } 12333 12334for ac_func in timingsafe_bcmp timingsafe_memcmp 12335do : 12336 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12337ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12338if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12339 cat >>confdefs.h <<_ACEOF 12340#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12341_ACEOF 12342 12343fi 12344done 12345 12346 if test "x$ac_cv_func_arc4random" = xyes; then 12347 HAVE_ARC4RANDOM_TRUE= 12348 HAVE_ARC4RANDOM_FALSE='#' 12349else 12350 HAVE_ARC4RANDOM_TRUE='#' 12351 HAVE_ARC4RANDOM_FALSE= 12352fi 12353 12354 if test "x$ac_cv_func_arc4random_buf" = xyes; then 12355 HAVE_ARC4RANDOM_BUF_TRUE= 12356 HAVE_ARC4RANDOM_BUF_FALSE='#' 12357else 12358 HAVE_ARC4RANDOM_BUF_TRUE='#' 12359 HAVE_ARC4RANDOM_BUF_FALSE= 12360fi 12361 12362 if test "x$ac_cv_func_arc4random_uniform" = xyes; then 12363 HAVE_ARC4RANDOM_UNIFORM_TRUE= 12364 HAVE_ARC4RANDOM_UNIFORM_FALSE='#' 12365else 12366 HAVE_ARC4RANDOM_UNIFORM_TRUE='#' 12367 HAVE_ARC4RANDOM_UNIFORM_FALSE= 12368fi 12369 12370 if test "x$ac_cv_func_explicit_bzero" = xyes; then 12371 HAVE_EXPLICIT_BZERO_TRUE= 12372 HAVE_EXPLICIT_BZERO_FALSE='#' 12373else 12374 HAVE_EXPLICIT_BZERO_TRUE='#' 12375 HAVE_EXPLICIT_BZERO_FALSE= 12376fi 12377 12378 if test "x$ac_cv_func_getentropy" = xyes; then 12379 HAVE_GETENTROPY_TRUE= 12380 HAVE_GETENTROPY_FALSE='#' 12381else 12382 HAVE_GETENTROPY_TRUE='#' 12383 HAVE_GETENTROPY_FALSE= 12384fi 12385 12386 if test "x$ac_cv_func_timingsafe_bcmp" = xyes; then 12387 HAVE_TIMINGSAFE_BCMP_TRUE= 12388 HAVE_TIMINGSAFE_BCMP_FALSE='#' 12389else 12390 HAVE_TIMINGSAFE_BCMP_TRUE='#' 12391 HAVE_TIMINGSAFE_BCMP_FALSE= 12392fi 12393 12394 if test "x$ac_cv_func_timingsafe_memcmp" = xyes; then 12395 HAVE_TIMINGSAFE_MEMCMP_TRUE= 12396 HAVE_TIMINGSAFE_MEMCMP_FALSE='#' 12397else 12398 HAVE_TIMINGSAFE_MEMCMP_TRUE='#' 12399 HAVE_TIMINGSAFE_MEMCMP_FALSE= 12400fi 12401 12402 12403# Override arc4random_buf implementations with known issues 12404 if test "x$USE_BUILTIN_ARC4RANDOM" != xyes \ 12405 -a "x$ac_cv_func_arc4random_buf" = xyes; then 12406 HAVE_ARC4RANDOM_BUF_TRUE= 12407 HAVE_ARC4RANDOM_BUF_FALSE='#' 12408else 12409 HAVE_ARC4RANDOM_BUF_TRUE='#' 12410 HAVE_ARC4RANDOM_BUF_FALSE= 12411fi 12412 12413 12414# Check for getentropy fallback dependencies 12415ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval" 12416if test "x$ac_cv_func_getauxval" = xyes; then : 12417 12418fi 12419 12420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 12421$as_echo_n "checking for library containing clock_gettime... " >&6; } 12422if ${ac_cv_search_clock_gettime+:} false; then : 12423 $as_echo_n "(cached) " >&6 12424else 12425 ac_func_search_save_LIBS=$LIBS 12426cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12427/* end confdefs.h. */ 12428 12429/* Override any GCC internal prototype to avoid an error. 12430 Use char because int might match the return type of a GCC 12431 builtin and then its argument prototype would still apply. */ 12432#ifdef __cplusplus 12433extern "C" 12434#endif 12435char clock_gettime (); 12436int 12437main () 12438{ 12439return clock_gettime (); 12440 ; 12441 return 0; 12442} 12443_ACEOF 12444for ac_lib in '' rt posix4; do 12445 if test -z "$ac_lib"; then 12446 ac_res="none required" 12447 else 12448 ac_res=-l$ac_lib 12449 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12450 fi 12451 if ac_fn_c_try_link "$LINENO"; then : 12452 ac_cv_search_clock_gettime=$ac_res 12453fi 12454rm -f core conftest.err conftest.$ac_objext \ 12455 conftest$ac_exeext 12456 if ${ac_cv_search_clock_gettime+:} false; then : 12457 break 12458fi 12459done 12460if ${ac_cv_search_clock_gettime+:} false; then : 12461 12462else 12463 ac_cv_search_clock_gettime=no 12464fi 12465rm conftest.$ac_ext 12466LIBS=$ac_func_search_save_LIBS 12467fi 12468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 12469$as_echo "$ac_cv_search_clock_gettime" >&6; } 12470ac_res=$ac_cv_search_clock_gettime 12471if test "$ac_res" != no; then : 12472 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12473 12474fi 12475 12476ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 12477if test "x$ac_cv_func_clock_gettime" = xyes; then : 12478 12479fi 12480 12481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dl_iterate_phdr" >&5 12482$as_echo_n "checking for library containing dl_iterate_phdr... " >&6; } 12483if ${ac_cv_search_dl_iterate_phdr+:} false; then : 12484 $as_echo_n "(cached) " >&6 12485else 12486 ac_func_search_save_LIBS=$LIBS 12487cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12488/* end confdefs.h. */ 12489 12490/* Override any GCC internal prototype to avoid an error. 12491 Use char because int might match the return type of a GCC 12492 builtin and then its argument prototype would still apply. */ 12493#ifdef __cplusplus 12494extern "C" 12495#endif 12496char dl_iterate_phdr (); 12497int 12498main () 12499{ 12500return dl_iterate_phdr (); 12501 ; 12502 return 0; 12503} 12504_ACEOF 12505for ac_lib in '' dl; do 12506 if test -z "$ac_lib"; then 12507 ac_res="none required" 12508 else 12509 ac_res=-l$ac_lib 12510 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12511 fi 12512 if ac_fn_c_try_link "$LINENO"; then : 12513 ac_cv_search_dl_iterate_phdr=$ac_res 12514fi 12515rm -f core conftest.err conftest.$ac_objext \ 12516 conftest$ac_exeext 12517 if ${ac_cv_search_dl_iterate_phdr+:} false; then : 12518 break 12519fi 12520done 12521if ${ac_cv_search_dl_iterate_phdr+:} false; then : 12522 12523else 12524 ac_cv_search_dl_iterate_phdr=no 12525fi 12526rm conftest.$ac_ext 12527LIBS=$ac_func_search_save_LIBS 12528fi 12529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dl_iterate_phdr" >&5 12530$as_echo "$ac_cv_search_dl_iterate_phdr" >&6; } 12531ac_res=$ac_cv_search_dl_iterate_phdr 12532if test "$ac_res" != no; then : 12533 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12534 12535fi 12536 12537ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr" 12538if test "x$ac_cv_func_dl_iterate_phdr" = xyes; then : 12539 12540fi 12541 12542 12543 12544# check functions that are expected to be in libc 12545for ac_func in asprintf closefrom daemon freezero memmem poll reallocarray recallocarray 12546do : 12547 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12548ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12549if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12550 cat >>confdefs.h <<_ACEOF 12551#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12552_ACEOF 12553 12554fi 12555done 12556 12557for ac_func in setproctitle setgroups 12558do : 12559 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12560ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12561if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12562 cat >>confdefs.h <<_ACEOF 12563#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12564_ACEOF 12565 12566fi 12567done 12568 12569for ac_func in setregid setresgid setreuid setresuid 12570do : 12571 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12572ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12573if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12574 cat >>confdefs.h <<_ACEOF 12575#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12576_ACEOF 12577 12578fi 12579done 12580 12581for ac_func in strlcat strlcpy strtonum sysconf 12582do : 12583 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12584ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12585if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12586 cat >>confdefs.h <<_ACEOF 12587#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12588_ACEOF 12589 12590fi 12591done 12592 12593 12594# check auxiliary libraries that might contain other functions 12595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing arc4random" >&5 12596$as_echo_n "checking for library containing arc4random... " >&6; } 12597if ${ac_cv_search_arc4random+:} false; then : 12598 $as_echo_n "(cached) " >&6 12599else 12600 ac_func_search_save_LIBS=$LIBS 12601cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12602/* end confdefs.h. */ 12603 12604/* Override any GCC internal prototype to avoid an error. 12605 Use char because int might match the return type of a GCC 12606 builtin and then its argument prototype would still apply. */ 12607#ifdef __cplusplus 12608extern "C" 12609#endif 12610char arc4random (); 12611int 12612main () 12613{ 12614return arc4random (); 12615 ; 12616 return 0; 12617} 12618_ACEOF 12619for ac_lib in '' crypto; do 12620 if test -z "$ac_lib"; then 12621 ac_res="none required" 12622 else 12623 ac_res=-l$ac_lib 12624 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12625 fi 12626 if ac_fn_c_try_link "$LINENO"; then : 12627 ac_cv_search_arc4random=$ac_res 12628fi 12629rm -f core conftest.err conftest.$ac_objext \ 12630 conftest$ac_exeext 12631 if ${ac_cv_search_arc4random+:} false; then : 12632 break 12633fi 12634done 12635if ${ac_cv_search_arc4random+:} false; then : 12636 12637else 12638 ac_cv_search_arc4random=no 12639fi 12640rm conftest.$ac_ext 12641LIBS=$ac_func_search_save_LIBS 12642fi 12643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_arc4random" >&5 12644$as_echo "$ac_cv_search_arc4random" >&6; } 12645ac_res=$ac_cv_search_arc4random 12646if test "$ac_res" != no; then : 12647 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12648 12649fi 12650 12651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ibuf_open" >&5 12652$as_echo_n "checking for library containing ibuf_open... " >&6; } 12653if ${ac_cv_search_ibuf_open+:} false; then : 12654 $as_echo_n "(cached) " >&6 12655else 12656 ac_func_search_save_LIBS=$LIBS 12657cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12658/* end confdefs.h. */ 12659 12660/* Override any GCC internal prototype to avoid an error. 12661 Use char because int might match the return type of a GCC 12662 builtin and then its argument prototype would still apply. */ 12663#ifdef __cplusplus 12664extern "C" 12665#endif 12666char ibuf_open (); 12667int 12668main () 12669{ 12670return ibuf_open (); 12671 ; 12672 return 0; 12673} 12674_ACEOF 12675for ac_lib in '' util; do 12676 if test -z "$ac_lib"; then 12677 ac_res="none required" 12678 else 12679 ac_res=-l$ac_lib 12680 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12681 fi 12682 if ac_fn_c_try_link "$LINENO"; then : 12683 ac_cv_search_ibuf_open=$ac_res 12684fi 12685rm -f core conftest.err conftest.$ac_objext \ 12686 conftest$ac_exeext 12687 if ${ac_cv_search_ibuf_open+:} false; then : 12688 break 12689fi 12690done 12691if ${ac_cv_search_ibuf_open+:} false; then : 12692 12693else 12694 ac_cv_search_ibuf_open=no 12695fi 12696rm conftest.$ac_ext 12697LIBS=$ac_func_search_save_LIBS 12698fi 12699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibuf_open" >&5 12700$as_echo "$ac_cv_search_ibuf_open" >&6; } 12701ac_res=$ac_cv_search_ibuf_open 12702if test "$ac_res" != no; then : 12703 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12704 12705fi 12706 12707 12708for ac_func in ibuf_open 12709do : 12710 ac_fn_c_check_func "$LINENO" "ibuf_open" "ac_cv_func_ibuf_open" 12711if test "x$ac_cv_func_ibuf_open" = xyes; then : 12712 cat >>confdefs.h <<_ACEOF 12713#define HAVE_IBUF_OPEN 1 12714_ACEOF 12715 12716fi 12717done 12718 12719 12720# time-specific system functions 12721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_getres" >&5 12722$as_echo_n "checking for library containing clock_getres... " >&6; } 12723if ${ac_cv_search_clock_getres+:} false; then : 12724 $as_echo_n "(cached) " >&6 12725else 12726 ac_func_search_save_LIBS=$LIBS 12727cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12728/* end confdefs.h. */ 12729 12730/* Override any GCC internal prototype to avoid an error. 12731 Use char because int might match the return type of a GCC 12732 builtin and then its argument prototype would still apply. */ 12733#ifdef __cplusplus 12734extern "C" 12735#endif 12736char clock_getres (); 12737int 12738main () 12739{ 12740return clock_getres (); 12741 ; 12742 return 0; 12743} 12744_ACEOF 12745for ac_lib in '' rt posix4; do 12746 if test -z "$ac_lib"; then 12747 ac_res="none required" 12748 else 12749 ac_res=-l$ac_lib 12750 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12751 fi 12752 if ac_fn_c_try_link "$LINENO"; then : 12753 ac_cv_search_clock_getres=$ac_res 12754fi 12755rm -f core conftest.err conftest.$ac_objext \ 12756 conftest$ac_exeext 12757 if ${ac_cv_search_clock_getres+:} false; then : 12758 break 12759fi 12760done 12761if ${ac_cv_search_clock_getres+:} false; then : 12762 12763else 12764 ac_cv_search_clock_getres=no 12765fi 12766rm conftest.$ac_ext 12767LIBS=$ac_func_search_save_LIBS 12768fi 12769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_getres" >&5 12770$as_echo "$ac_cv_search_clock_getres" >&6; } 12771ac_res=$ac_cv_search_clock_getres 12772if test "$ac_res" != no; then : 12773 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12774 12775fi 12776 12777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 12778$as_echo_n "checking for library containing clock_gettime... " >&6; } 12779if ${ac_cv_search_clock_gettime+:} false; then : 12780 $as_echo_n "(cached) " >&6 12781else 12782 ac_func_search_save_LIBS=$LIBS 12783cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12784/* end confdefs.h. */ 12785 12786/* Override any GCC internal prototype to avoid an error. 12787 Use char because int might match the return type of a GCC 12788 builtin and then its argument prototype would still apply. */ 12789#ifdef __cplusplus 12790extern "C" 12791#endif 12792char clock_gettime (); 12793int 12794main () 12795{ 12796return clock_gettime (); 12797 ; 12798 return 0; 12799} 12800_ACEOF 12801for ac_lib in '' rt posix4; do 12802 if test -z "$ac_lib"; then 12803 ac_res="none required" 12804 else 12805 ac_res=-l$ac_lib 12806 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12807 fi 12808 if ac_fn_c_try_link "$LINENO"; then : 12809 ac_cv_search_clock_gettime=$ac_res 12810fi 12811rm -f core conftest.err conftest.$ac_objext \ 12812 conftest$ac_exeext 12813 if ${ac_cv_search_clock_gettime+:} false; then : 12814 break 12815fi 12816done 12817if ${ac_cv_search_clock_gettime+:} false; then : 12818 12819else 12820 ac_cv_search_clock_gettime=no 12821fi 12822rm conftest.$ac_ext 12823LIBS=$ac_func_search_save_LIBS 12824fi 12825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 12826$as_echo "$ac_cv_search_clock_gettime" >&6; } 12827ac_res=$ac_cv_search_clock_gettime 12828if test "$ac_res" != no; then : 12829 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12830 12831fi 12832 12833for ac_func in adjfreq ntp_adjtime adjtimex 12834do : 12835 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12836ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12837if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12838 cat >>confdefs.h <<_ACEOF 12839#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12840_ACEOF 12841 12842fi 12843done 12844 12845for ac_func in clock_gettime clock_getres 12846do : 12847 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12848ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12849if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12850 cat >>confdefs.h <<_ACEOF 12851#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12852_ACEOF 12853 12854fi 12855done 12856 12857 if test "x$ac_cv_func_adjfreq" = xyes; then 12858 HAVE_ADJFREQ_TRUE= 12859 HAVE_ADJFREQ_FALSE='#' 12860else 12861 HAVE_ADJFREQ_TRUE='#' 12862 HAVE_ADJFREQ_FALSE= 12863fi 12864 12865 if test "x$ac_cv_func_clock_getres" = xyes; then 12866 HAVE_CLOCK_GETRES_TRUE= 12867 HAVE_CLOCK_GETRES_FALSE='#' 12868else 12869 HAVE_CLOCK_GETRES_TRUE='#' 12870 HAVE_CLOCK_GETRES_FALSE= 12871fi 12872 12873 if test "x$ac_cv_func_clock_gettime" = xyes; then 12874 HAVE_CLOCK_GETTIME_TRUE= 12875 HAVE_CLOCK_GETTIME_FALSE='#' 12876else 12877 HAVE_CLOCK_GETTIME_TRUE='#' 12878 HAVE_CLOCK_GETTIME_FALSE= 12879fi 12880 12881 12882# check for libtls 12883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tls_config_set_ca_mem" >&5 12884$as_echo_n "checking for library containing tls_config_set_ca_mem... " >&6; } 12885if ${ac_cv_search_tls_config_set_ca_mem+:} false; then : 12886 $as_echo_n "(cached) " >&6 12887else 12888 ac_func_search_save_LIBS=$LIBS 12889cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12890/* end confdefs.h. */ 12891 12892/* Override any GCC internal prototype to avoid an error. 12893 Use char because int might match the return type of a GCC 12894 builtin and then its argument prototype would still apply. */ 12895#ifdef __cplusplus 12896extern "C" 12897#endif 12898char tls_config_set_ca_mem (); 12899int 12900main () 12901{ 12902return tls_config_set_ca_mem (); 12903 ; 12904 return 0; 12905} 12906_ACEOF 12907for ac_lib in '' tls; do 12908 if test -z "$ac_lib"; then 12909 ac_res="none required" 12910 else 12911 ac_res=-l$ac_lib 12912 LIBS="-l$ac_lib -lssl -lcrypto $ac_func_search_save_LIBS" 12913 fi 12914 if ac_fn_c_try_link "$LINENO"; then : 12915 ac_cv_search_tls_config_set_ca_mem=$ac_res 12916fi 12917rm -f core conftest.err conftest.$ac_objext \ 12918 conftest$ac_exeext 12919 if ${ac_cv_search_tls_config_set_ca_mem+:} false; then : 12920 break 12921fi 12922done 12923if ${ac_cv_search_tls_config_set_ca_mem+:} false; then : 12924 12925else 12926 ac_cv_search_tls_config_set_ca_mem=no 12927fi 12928rm conftest.$ac_ext 12929LIBS=$ac_func_search_save_LIBS 12930fi 12931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tls_config_set_ca_mem" >&5 12932$as_echo "$ac_cv_search_tls_config_set_ca_mem" >&6; } 12933ac_res=$ac_cv_search_tls_config_set_ca_mem 12934if test "$ac_res" != no; then : 12935 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12936 LIBS="$LIBS -ltls -lssl -lcrypto" 12937fi 12938 12939for ac_func in tls_config_set_ca_mem 12940do : 12941 ac_fn_c_check_func "$LINENO" "tls_config_set_ca_mem" "ac_cv_func_tls_config_set_ca_mem" 12942if test "x$ac_cv_func_tls_config_set_ca_mem" = xyes; then : 12943 cat >>confdefs.h <<_ACEOF 12944#define HAVE_TLS_CONFIG_SET_CA_MEM 1 12945_ACEOF 12946 12947fi 12948done 12949 12950 12951# check if libtls uses 3-argument tls_write 12952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if tls_write takes 3 arguments" >&5 12953$as_echo_n "checking if tls_write takes 3 arguments... " >&6; } 12954if ${ac_cv_have_tls_write_3_arg+:} false; then : 12955 $as_echo_n "(cached) " >&6 12956else 12957 12958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12959/* end confdefs.h. */ 12960 12961#include <tls.h> 12962size_t outlen; 12963 12964int 12965main () 12966{ 12967 tls_write(NULL, NULL, 0); 12968 ; 12969 return 0; 12970} 12971_ACEOF 12972if ac_fn_c_try_link "$LINENO"; then : 12973 ac_cv_have_tls_write_3_arg="yes" 12974else 12975 ac_cv_have_tls_write_3_arg="no" 12976 12977fi 12978rm -f core conftest.err conftest.$ac_objext \ 12979 conftest$ac_exeext conftest.$ac_ext 12980 12981fi 12982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_tls_write_3_arg" >&5 12983$as_echo "$ac_cv_have_tls_write_3_arg" >&6; } 12984 12985# Check whether --enable-https-constraint was given. 12986if test "${enable_https_constraint+set}" = set; then : 12987 enableval=$enable_https_constraint; 12988fi 12989 12990 12991 if test "x$ac_cv_func_tls_config_set_ca_mem" = xyes \ 12992 -a "x$ac_cv_have_tls_write_3_arg" = xyes \ 12993 -a "x$enable_https_constraint" != xno; then 12994 HAVE_LIBTLS_TRUE= 12995 HAVE_LIBTLS_FALSE='#' 12996else 12997 HAVE_LIBTLS_TRUE='#' 12998 HAVE_LIBTLS_FALSE= 12999fi 13000 13001 13002if test "x$ac_cv_func_tls_config_set_ca_mem" = xyes \ 13003 -a "x$ac_cv_have_tls_write_3_arg" = xyes \ 13004 -a "x$enable_https_constraint" != xno; then 13005 $as_echo "#define HAVE_LIBTLS yes" >>confdefs.h 13006 13007fi 13008 13009# Share test results with automake 13010 if test "x$ac_cv_func_asprintf" = xyes; then 13011 HAVE_ASPRINTF_TRUE= 13012 HAVE_ASPRINTF_FALSE='#' 13013else 13014 HAVE_ASPRINTF_TRUE='#' 13015 HAVE_ASPRINTF_FALSE= 13016fi 13017 13018 if test "x$ac_cv_func_closefrom" = xyes; then 13019 HAVE_CLOSEFROM_TRUE= 13020 HAVE_CLOSEFROM_FALSE='#' 13021else 13022 HAVE_CLOSEFROM_TRUE='#' 13023 HAVE_CLOSEFROM_FALSE= 13024fi 13025 13026 if test "x$ac_cv_func_daemon" = xyes; then 13027 HAVE_DAEMON_TRUE= 13028 HAVE_DAEMON_FALSE='#' 13029else 13030 HAVE_DAEMON_TRUE='#' 13031 HAVE_DAEMON_FALSE= 13032fi 13033 13034 if test "x$ac_cv_func_explicit_bzero" = xyes; then 13035 HAVE_EXPLICIT_BZERO_TRUE= 13036 HAVE_EXPLICIT_BZERO_FALSE='#' 13037else 13038 HAVE_EXPLICIT_BZERO_TRUE='#' 13039 HAVE_EXPLICIT_BZERO_FALSE= 13040fi 13041 13042 if test "x$ac_cv_func_freezero" = xyes; then 13043 HAVE_FREEZERO_TRUE= 13044 HAVE_FREEZERO_FALSE='#' 13045else 13046 HAVE_FREEZERO_TRUE='#' 13047 HAVE_FREEZERO_FALSE= 13048fi 13049 13050 if test "x$ac_cv_header_ifaddrs_h" = xyes; then 13051 HAVE_IFADDRS_H_TRUE= 13052 HAVE_IFADDRS_H_FALSE='#' 13053else 13054 HAVE_IFADDRS_H_TRUE='#' 13055 HAVE_IFADDRS_H_FALSE= 13056fi 13057 13058 if test "x$ac_cv_func_ibuf_open" = xyes; then 13059 HAVE_IMSG_TRUE= 13060 HAVE_IMSG_FALSE='#' 13061else 13062 HAVE_IMSG_TRUE='#' 13063 HAVE_IMSG_FALSE= 13064fi 13065 13066 if test "x$ac_cv_func_memmem" = xyes; then 13067 HAVE_MEMMEM_TRUE= 13068 HAVE_MEMMEM_FALSE='#' 13069else 13070 HAVE_MEMMEM_TRUE='#' 13071 HAVE_MEMMEM_FALSE= 13072fi 13073 13074 if test "x$ac_cv_func_poll" = xyes; then 13075 HAVE_POLL_TRUE= 13076 HAVE_POLL_FALSE='#' 13077else 13078 HAVE_POLL_TRUE='#' 13079 HAVE_POLL_FALSE= 13080fi 13081 13082 if test "x$ac_cv_func_reallocarray" = xyes; then 13083 HAVE_REALLOCARRAY_TRUE= 13084 HAVE_REALLOCARRAY_FALSE='#' 13085else 13086 HAVE_REALLOCARRAY_TRUE='#' 13087 HAVE_REALLOCARRAY_FALSE= 13088fi 13089 13090 if test "x$ac_cv_func_recallocarray" = xyes; then 13091 HAVE_RECALLOCARRAY_TRUE= 13092 HAVE_RECALLOCARRAY_FALSE='#' 13093else 13094 HAVE_RECALLOCARRAY_TRUE='#' 13095 HAVE_RECALLOCARRAY_FALSE= 13096fi 13097 13098 if test "x$ac_cv_func_setgroups" = xyes; then 13099 HAVE_SETGROUPS_TRUE= 13100 HAVE_SETGROUPS_FALSE='#' 13101else 13102 HAVE_SETGROUPS_TRUE='#' 13103 HAVE_SETGROUPS_FALSE= 13104fi 13105 13106 if test "x$ac_cv_func_setresgid" = xyes; then 13107 HAVE_SETRESGID_TRUE= 13108 HAVE_SETRESGID_FALSE='#' 13109else 13110 HAVE_SETRESGID_TRUE='#' 13111 HAVE_SETRESGID_FALSE= 13112fi 13113 13114 if test "x$ac_cv_func_setresuid" = xyes; then 13115 HAVE_SETRESUID_TRUE= 13116 HAVE_SETRESUID_FALSE='#' 13117else 13118 HAVE_SETRESUID_TRUE='#' 13119 HAVE_SETRESUID_FALSE= 13120fi 13121 13122 if test "x$ac_cv_func_setproctitle" = xyes; then 13123 HAVE_SETPROCTITLE_TRUE= 13124 HAVE_SETPROCTITLE_FALSE='#' 13125else 13126 HAVE_SETPROCTITLE_TRUE='#' 13127 HAVE_SETPROCTITLE_FALSE= 13128fi 13129 13130 if test "x$ac_cv_func_strlcat" = xyes; then 13131 HAVE_STRLCAT_TRUE= 13132 HAVE_STRLCAT_FALSE='#' 13133else 13134 HAVE_STRLCAT_TRUE='#' 13135 HAVE_STRLCAT_FALSE= 13136fi 13137 13138 if test "x$ac_cv_func_strlcpy" = xyes; then 13139 HAVE_STRLCPY_TRUE= 13140 HAVE_STRLCPY_FALSE='#' 13141else 13142 HAVE_STRLCPY_TRUE='#' 13143 HAVE_STRLCPY_FALSE= 13144fi 13145 13146 if test "x$ac_cv_func_strtonum" = xyes; then 13147 HAVE_STRTONUM_TRUE= 13148 HAVE_STRTONUM_FALSE='#' 13149else 13150 HAVE_STRTONUM_TRUE='#' 13151 HAVE_STRTONUM_FALSE= 13152fi 13153 13154 if test "x$ac_cv_func_sysconf" = xyes; then 13155 HAVE_SYSCONF_TRUE= 13156 HAVE_SYSCONF_FALSE='#' 13157else 13158 HAVE_SYSCONF_TRUE='#' 13159 HAVE_SYSCONF_FALSE= 13160fi 13161 13162 13163 13164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5 13165$as_echo_n "checking if libc defines __progname... " >&6; } 13166if ${ac_cv_libc_defines___progname+:} false; then : 13167 $as_echo_n "(cached) " >&6 13168else 13169 13170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13171/* end confdefs.h. */ 13172 13173int 13174main () 13175{ 13176 extern char *__progname; printf("%s", __progname); 13177 ; 13178 return 0; 13179} 13180_ACEOF 13181if ac_fn_c_try_link "$LINENO"; then : 13182 ac_cv_libc_defines___progname="yes" 13183else 13184 ac_cv_libc_defines___progname="no" 13185 13186fi 13187rm -f core conftest.err conftest.$ac_objext \ 13188 conftest$ac_exeext conftest.$ac_ext 13189 13190fi 13191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5 13192$as_echo "$ac_cv_libc_defines___progname" >&6; } 13193if test "x$ac_cv_libc_defines___progname" = "xyes" ; then 13194 13195$as_echo "#define HAVE___PROGNAME 1" >>confdefs.h 13196 13197fi 13198 13199 13200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5 13201$as_echo_n "checking whether va_copy exists... " >&6; } 13202if ${ac_cv_have_va_copy+:} false; then : 13203 $as_echo_n "(cached) " >&6 13204else 13205 13206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13207/* end confdefs.h. */ 13208 13209#include <stdarg.h> 13210va_list x,y; 13211 13212int 13213main () 13214{ 13215 va_copy(x,y); 13216 ; 13217 return 0; 13218} 13219_ACEOF 13220if ac_fn_c_try_link "$LINENO"; then : 13221 ac_cv_have_va_copy="yes" 13222else 13223 ac_cv_have_va_copy="no" 13224 13225fi 13226rm -f core conftest.err conftest.$ac_objext \ 13227 conftest$ac_exeext conftest.$ac_ext 13228 13229fi 13230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5 13231$as_echo "$ac_cv_have_va_copy" >&6; } 13232if test "x$ac_cv_have_va_copy" = "xyes" ; then 13233 13234$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h 13235 13236fi 13237 13238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5 13239$as_echo_n "checking whether __va_copy exists... " >&6; } 13240if ${ac_cv_have___va_copy+:} false; then : 13241 $as_echo_n "(cached) " >&6 13242else 13243 13244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13245/* end confdefs.h. */ 13246 13247#include <stdarg.h> 13248va_list x,y; 13249 13250int 13251main () 13252{ 13253 __va_copy(x,y); 13254 ; 13255 return 0; 13256} 13257_ACEOF 13258if ac_fn_c_try_link "$LINENO"; then : 13259 ac_cv_have___va_copy="yes" 13260else 13261 ac_cv_have___va_copy="no" 13262 13263fi 13264rm -f core conftest.err conftest.$ac_objext \ 13265 conftest$ac_exeext conftest.$ac_ext 13266 13267fi 13268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5 13269$as_echo "$ac_cv_have___va_copy" >&6; } 13270if test "x$ac_cv_have___va_copy" = "xyes" ; then 13271 13272$as_echo "#define HAVE___VA_COPY 1" >>confdefs.h 13273 13274fi 13275 13276 13277for ac_header in sys/sysctl.h err.h ifaddrs.h paths.h 13278do : 13279 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13280ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13281if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13282 cat >>confdefs.h <<_ACEOF 13283#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13284_ACEOF 13285 13286fi 13287 13288done 13289 13290 13291for ac_header in sys/sensors.h 13292do : 13293 ac_fn_c_check_header_mongrel "$LINENO" "sys/sensors.h" "ac_cv_header_sys_sensors_h" "$ac_includes_default" 13294if test "x$ac_cv_header_sys_sensors_h" = xyes; then : 13295 cat >>confdefs.h <<_ACEOF 13296#define HAVE_SYS_SENSORS_H 1 13297_ACEOF 13298 if true; then 13299 HAVE_SENSORS_TRUE= 13300 HAVE_SENSORS_FALSE='#' 13301else 13302 HAVE_SENSORS_TRUE='#' 13303 HAVE_SENSORS_FALSE= 13304fi 13305 13306else 13307 if false; then 13308 HAVE_SENSORS_TRUE= 13309 HAVE_SENSORS_FALSE='#' 13310else 13311 HAVE_SENSORS_TRUE='#' 13312 HAVE_SENSORS_FALSE= 13313fi 13314 13315 13316fi 13317 13318done 13319 13320 13321ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " #include <netdb.h> 13322 #include <netinet/in.h> 13323 #include <sys/socket.h> 13324 13325" 13326if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 13327 13328cat >>confdefs.h <<_ACEOF 13329#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1 13330_ACEOF 13331 13332 13333fi 13334 13335 13336 13337# Check whether --with-privsep-user was given. 13338if test "${with_privsep_user+set}" = set; then : 13339 withval=$with_privsep_user; PRIVSEP_USER="$withval" 13340else 13341 PRIVSEP_USER="_ntp" 13342 13343fi 13344 13345 13346cat >>confdefs.h <<_ACEOF 13347#define NTPD_USER "$PRIVSEP_USER" 13348_ACEOF 13349 13350 13351 13352 13353# Check whether --with-cacert was given. 13354if test "${with_cacert+set}" = set; then : 13355 withval=$with_cacert; CONSTRAINT_CA="$withval" 13356else 13357 CONSTRAINT_CA="/etc/ssl/cert.pem" 13358 13359fi 13360 13361 13362cat >>confdefs.h <<_ACEOF 13363#define CONSTRAINT_CA "$CONSTRAINT_CA" 13364_ACEOF 13365 13366 13367ac_config_files="$ac_config_files Makefile include/Makefile compat/Makefile src/Makefile" 13368 13369 13370cat >confcache <<\_ACEOF 13371# This file is a shell script that caches the results of configure 13372# tests run on this system so they can be shared between configure 13373# scripts and configure runs, see configure's option --config-cache. 13374# It is not useful on other systems. If it contains results you don't 13375# want to keep, you may remove or edit it. 13376# 13377# config.status only pays attention to the cache file if you give it 13378# the --recheck option to rerun configure. 13379# 13380# `ac_cv_env_foo' variables (set or unset) will be overridden when 13381# loading this file, other *unset* `ac_cv_foo' will be assigned the 13382# following values. 13383 13384_ACEOF 13385 13386# The following way of writing the cache mishandles newlines in values, 13387# but we know of no workaround that is simple, portable, and efficient. 13388# So, we kill variables containing newlines. 13389# Ultrix sh set writes to stderr and can't be redirected directly, 13390# and sets the high bit in the cache file unless we assign to the vars. 13391( 13392 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13393 eval ac_val=\$$ac_var 13394 case $ac_val in #( 13395 *${as_nl}*) 13396 case $ac_var in #( 13397 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13398$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13399 esac 13400 case $ac_var in #( 13401 _ | IFS | as_nl) ;; #( 13402 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13403 *) { eval $ac_var=; unset $ac_var;} ;; 13404 esac ;; 13405 esac 13406 done 13407 13408 (set) 2>&1 | 13409 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13410 *${as_nl}ac_space=\ *) 13411 # `set' does not quote correctly, so add quotes: double-quote 13412 # substitution turns \\\\ into \\, and sed turns \\ into \. 13413 sed -n \ 13414 "s/'/'\\\\''/g; 13415 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13416 ;; #( 13417 *) 13418 # `set' quotes correctly as required by POSIX, so do not add quotes. 13419 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13420 ;; 13421 esac | 13422 sort 13423) | 13424 sed ' 13425 /^ac_cv_env_/b end 13426 t clear 13427 :clear 13428 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13429 t end 13430 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13431 :end' >>confcache 13432if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13433 if test -w "$cache_file"; then 13434 if test "x$cache_file" != "x/dev/null"; then 13435 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13436$as_echo "$as_me: updating cache $cache_file" >&6;} 13437 if test ! -f "$cache_file" || test -h "$cache_file"; then 13438 cat confcache >"$cache_file" 13439 else 13440 case $cache_file in #( 13441 */* | ?:*) 13442 mv -f confcache "$cache_file"$$ && 13443 mv -f "$cache_file"$$ "$cache_file" ;; #( 13444 *) 13445 mv -f confcache "$cache_file" ;; 13446 esac 13447 fi 13448 fi 13449 else 13450 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13451$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13452 fi 13453fi 13454rm -f confcache 13455 13456test "x$prefix" = xNONE && prefix=$ac_default_prefix 13457# Let make expand exec_prefix. 13458test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13459 13460# Transform confdefs.h into DEFS. 13461# Protect against shell expansion while executing Makefile rules. 13462# Protect against Makefile macro expansion. 13463# 13464# If the first sed substitution is executed (which looks for macros that 13465# take arguments), then branch to the quote section. Otherwise, 13466# look for a macro that doesn't take arguments. 13467ac_script=' 13468:mline 13469/\\$/{ 13470 N 13471 s,\\\n,, 13472 b mline 13473} 13474t clear 13475:clear 13476s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 13477t quote 13478s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 13479t quote 13480b any 13481:quote 13482s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 13483s/\[/\\&/g 13484s/\]/\\&/g 13485s/\$/$$/g 13486H 13487:any 13488${ 13489 g 13490 s/^\n// 13491 s/\n/ /g 13492 p 13493} 13494' 13495DEFS=`sed -n "$ac_script" confdefs.h` 13496 13497 13498ac_libobjs= 13499ac_ltlibobjs= 13500U= 13501for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13502 # 1. Remove the extension, and $U if already installed. 13503 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13504 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13505 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13506 # will be set to the directory where LIBOBJS objects are built. 13507 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13508 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13509done 13510LIBOBJS=$ac_libobjs 13511 13512LTLIBOBJS=$ac_ltlibobjs 13513 13514 13515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13516$as_echo_n "checking that generated files are newer than configure... " >&6; } 13517 if test -n "$am_sleep_pid"; then 13518 # Hide warnings about reused PIDs. 13519 wait $am_sleep_pid 2>/dev/null 13520 fi 13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13522$as_echo "done" >&6; } 13523 if test -n "$EXEEXT"; then 13524 am__EXEEXT_TRUE= 13525 am__EXEEXT_FALSE='#' 13526else 13527 am__EXEEXT_TRUE='#' 13528 am__EXEEXT_FALSE= 13529fi 13530 13531if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13532 as_fn_error $? "conditional \"AMDEP\" was never defined. 13533Usually this means the macro was only invoked conditionally." "$LINENO" 5 13534fi 13535if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13536 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13537Usually this means the macro was only invoked conditionally." "$LINENO" 5 13538fi 13539if test -z "${HOST_AIX_TRUE}" && test -z "${HOST_AIX_FALSE}"; then 13540 as_fn_error $? "conditional \"HOST_AIX\" was never defined. 13541Usually this means the macro was only invoked conditionally." "$LINENO" 5 13542fi 13543if test -z "${HOST_CYGWIN_TRUE}" && test -z "${HOST_CYGWIN_FALSE}"; then 13544 as_fn_error $? "conditional \"HOST_CYGWIN\" was never defined. 13545Usually this means the macro was only invoked conditionally." "$LINENO" 5 13546fi 13547if test -z "${HOST_DARWIN_TRUE}" && test -z "${HOST_DARWIN_FALSE}"; then 13548 as_fn_error $? "conditional \"HOST_DARWIN\" was never defined. 13549Usually this means the macro was only invoked conditionally." "$LINENO" 5 13550fi 13551if test -z "${HOST_FREEBSD_TRUE}" && test -z "${HOST_FREEBSD_FALSE}"; then 13552 as_fn_error $? "conditional \"HOST_FREEBSD\" was never defined. 13553Usually this means the macro was only invoked conditionally." "$LINENO" 5 13554fi 13555if test -z "${HOST_HPUX_TRUE}" && test -z "${HOST_HPUX_FALSE}"; then 13556 as_fn_error $? "conditional \"HOST_HPUX\" was never defined. 13557Usually this means the macro was only invoked conditionally." "$LINENO" 5 13558fi 13559if test -z "${HOST_LINUX_TRUE}" && test -z "${HOST_LINUX_FALSE}"; then 13560 as_fn_error $? "conditional \"HOST_LINUX\" was never defined. 13561Usually this means the macro was only invoked conditionally." "$LINENO" 5 13562fi 13563if test -z "${HOST_NETBSD_TRUE}" && test -z "${HOST_NETBSD_FALSE}"; then 13564 as_fn_error $? "conditional \"HOST_NETBSD\" was never defined. 13565Usually this means the macro was only invoked conditionally." "$LINENO" 5 13566fi 13567if test -z "${HOST_OPENBSD_TRUE}" && test -z "${HOST_OPENBSD_FALSE}"; then 13568 as_fn_error $? "conditional \"HOST_OPENBSD\" was never defined. 13569Usually this means the macro was only invoked conditionally." "$LINENO" 5 13570fi 13571if test -z "${HOST_SOLARIS_TRUE}" && test -z "${HOST_SOLARIS_FALSE}"; then 13572 as_fn_error $? "conditional \"HOST_SOLARIS\" was never defined. 13573Usually this means the macro was only invoked conditionally." "$LINENO" 5 13574fi 13575if test -z "${HAVE_ARC4RANDOM_TRUE}" && test -z "${HAVE_ARC4RANDOM_FALSE}"; then 13576 as_fn_error $? "conditional \"HAVE_ARC4RANDOM\" was never defined. 13577Usually this means the macro was only invoked conditionally." "$LINENO" 5 13578fi 13579if test -z "${HAVE_ARC4RANDOM_BUF_TRUE}" && test -z "${HAVE_ARC4RANDOM_BUF_FALSE}"; then 13580 as_fn_error $? "conditional \"HAVE_ARC4RANDOM_BUF\" was never defined. 13581Usually this means the macro was only invoked conditionally." "$LINENO" 5 13582fi 13583if test -z "${HAVE_ARC4RANDOM_UNIFORM_TRUE}" && test -z "${HAVE_ARC4RANDOM_UNIFORM_FALSE}"; then 13584 as_fn_error $? "conditional \"HAVE_ARC4RANDOM_UNIFORM\" was never defined. 13585Usually this means the macro was only invoked conditionally." "$LINENO" 5 13586fi 13587if test -z "${HAVE_EXPLICIT_BZERO_TRUE}" && test -z "${HAVE_EXPLICIT_BZERO_FALSE}"; then 13588 as_fn_error $? "conditional \"HAVE_EXPLICIT_BZERO\" was never defined. 13589Usually this means the macro was only invoked conditionally." "$LINENO" 5 13590fi 13591if test -z "${HAVE_GETENTROPY_TRUE}" && test -z "${HAVE_GETENTROPY_FALSE}"; then 13592 as_fn_error $? "conditional \"HAVE_GETENTROPY\" was never defined. 13593Usually this means the macro was only invoked conditionally." "$LINENO" 5 13594fi 13595if test -z "${HAVE_TIMINGSAFE_BCMP_TRUE}" && test -z "${HAVE_TIMINGSAFE_BCMP_FALSE}"; then 13596 as_fn_error $? "conditional \"HAVE_TIMINGSAFE_BCMP\" was never defined. 13597Usually this means the macro was only invoked conditionally." "$LINENO" 5 13598fi 13599if test -z "${HAVE_TIMINGSAFE_MEMCMP_TRUE}" && test -z "${HAVE_TIMINGSAFE_MEMCMP_FALSE}"; then 13600 as_fn_error $? "conditional \"HAVE_TIMINGSAFE_MEMCMP\" was never defined. 13601Usually this means the macro was only invoked conditionally." "$LINENO" 5 13602fi 13603if test -z "${HAVE_ARC4RANDOM_BUF_TRUE}" && test -z "${HAVE_ARC4RANDOM_BUF_FALSE}"; then 13604 as_fn_error $? "conditional \"HAVE_ARC4RANDOM_BUF\" was never defined. 13605Usually this means the macro was only invoked conditionally." "$LINENO" 5 13606fi 13607if test -z "${HAVE_ADJFREQ_TRUE}" && test -z "${HAVE_ADJFREQ_FALSE}"; then 13608 as_fn_error $? "conditional \"HAVE_ADJFREQ\" was never defined. 13609Usually this means the macro was only invoked conditionally." "$LINENO" 5 13610fi 13611if test -z "${HAVE_CLOCK_GETRES_TRUE}" && test -z "${HAVE_CLOCK_GETRES_FALSE}"; then 13612 as_fn_error $? "conditional \"HAVE_CLOCK_GETRES\" was never defined. 13613Usually this means the macro was only invoked conditionally." "$LINENO" 5 13614fi 13615if test -z "${HAVE_CLOCK_GETTIME_TRUE}" && test -z "${HAVE_CLOCK_GETTIME_FALSE}"; then 13616 as_fn_error $? "conditional \"HAVE_CLOCK_GETTIME\" was never defined. 13617Usually this means the macro was only invoked conditionally." "$LINENO" 5 13618fi 13619if test -z "${HAVE_LIBTLS_TRUE}" && test -z "${HAVE_LIBTLS_FALSE}"; then 13620 as_fn_error $? "conditional \"HAVE_LIBTLS\" was never defined. 13621Usually this means the macro was only invoked conditionally." "$LINENO" 5 13622fi 13623if test -z "${HAVE_ASPRINTF_TRUE}" && test -z "${HAVE_ASPRINTF_FALSE}"; then 13624 as_fn_error $? "conditional \"HAVE_ASPRINTF\" was never defined. 13625Usually this means the macro was only invoked conditionally." "$LINENO" 5 13626fi 13627if test -z "${HAVE_CLOSEFROM_TRUE}" && test -z "${HAVE_CLOSEFROM_FALSE}"; then 13628 as_fn_error $? "conditional \"HAVE_CLOSEFROM\" was never defined. 13629Usually this means the macro was only invoked conditionally." "$LINENO" 5 13630fi 13631if test -z "${HAVE_DAEMON_TRUE}" && test -z "${HAVE_DAEMON_FALSE}"; then 13632 as_fn_error $? "conditional \"HAVE_DAEMON\" was never defined. 13633Usually this means the macro was only invoked conditionally." "$LINENO" 5 13634fi 13635if test -z "${HAVE_EXPLICIT_BZERO_TRUE}" && test -z "${HAVE_EXPLICIT_BZERO_FALSE}"; then 13636 as_fn_error $? "conditional \"HAVE_EXPLICIT_BZERO\" was never defined. 13637Usually this means the macro was only invoked conditionally." "$LINENO" 5 13638fi 13639if test -z "${HAVE_FREEZERO_TRUE}" && test -z "${HAVE_FREEZERO_FALSE}"; then 13640 as_fn_error $? "conditional \"HAVE_FREEZERO\" was never defined. 13641Usually this means the macro was only invoked conditionally." "$LINENO" 5 13642fi 13643if test -z "${HAVE_IFADDRS_H_TRUE}" && test -z "${HAVE_IFADDRS_H_FALSE}"; then 13644 as_fn_error $? "conditional \"HAVE_IFADDRS_H\" was never defined. 13645Usually this means the macro was only invoked conditionally." "$LINENO" 5 13646fi 13647if test -z "${HAVE_IMSG_TRUE}" && test -z "${HAVE_IMSG_FALSE}"; then 13648 as_fn_error $? "conditional \"HAVE_IMSG\" was never defined. 13649Usually this means the macro was only invoked conditionally." "$LINENO" 5 13650fi 13651if test -z "${HAVE_MEMMEM_TRUE}" && test -z "${HAVE_MEMMEM_FALSE}"; then 13652 as_fn_error $? "conditional \"HAVE_MEMMEM\" was never defined. 13653Usually this means the macro was only invoked conditionally." "$LINENO" 5 13654fi 13655if test -z "${HAVE_POLL_TRUE}" && test -z "${HAVE_POLL_FALSE}"; then 13656 as_fn_error $? "conditional \"HAVE_POLL\" was never defined. 13657Usually this means the macro was only invoked conditionally." "$LINENO" 5 13658fi 13659if test -z "${HAVE_REALLOCARRAY_TRUE}" && test -z "${HAVE_REALLOCARRAY_FALSE}"; then 13660 as_fn_error $? "conditional \"HAVE_REALLOCARRAY\" was never defined. 13661Usually this means the macro was only invoked conditionally." "$LINENO" 5 13662fi 13663if test -z "${HAVE_RECALLOCARRAY_TRUE}" && test -z "${HAVE_RECALLOCARRAY_FALSE}"; then 13664 as_fn_error $? "conditional \"HAVE_RECALLOCARRAY\" was never defined. 13665Usually this means the macro was only invoked conditionally." "$LINENO" 5 13666fi 13667if test -z "${HAVE_SETGROUPS_TRUE}" && test -z "${HAVE_SETGROUPS_FALSE}"; then 13668 as_fn_error $? "conditional \"HAVE_SETGROUPS\" was never defined. 13669Usually this means the macro was only invoked conditionally." "$LINENO" 5 13670fi 13671if test -z "${HAVE_SETRESGID_TRUE}" && test -z "${HAVE_SETRESGID_FALSE}"; then 13672 as_fn_error $? "conditional \"HAVE_SETRESGID\" was never defined. 13673Usually this means the macro was only invoked conditionally." "$LINENO" 5 13674fi 13675if test -z "${HAVE_SETRESUID_TRUE}" && test -z "${HAVE_SETRESUID_FALSE}"; then 13676 as_fn_error $? "conditional \"HAVE_SETRESUID\" was never defined. 13677Usually this means the macro was only invoked conditionally." "$LINENO" 5 13678fi 13679if test -z "${HAVE_SETPROCTITLE_TRUE}" && test -z "${HAVE_SETPROCTITLE_FALSE}"; then 13680 as_fn_error $? "conditional \"HAVE_SETPROCTITLE\" was never defined. 13681Usually this means the macro was only invoked conditionally." "$LINENO" 5 13682fi 13683if test -z "${HAVE_STRLCAT_TRUE}" && test -z "${HAVE_STRLCAT_FALSE}"; then 13684 as_fn_error $? "conditional \"HAVE_STRLCAT\" was never defined. 13685Usually this means the macro was only invoked conditionally." "$LINENO" 5 13686fi 13687if test -z "${HAVE_STRLCPY_TRUE}" && test -z "${HAVE_STRLCPY_FALSE}"; then 13688 as_fn_error $? "conditional \"HAVE_STRLCPY\" was never defined. 13689Usually this means the macro was only invoked conditionally." "$LINENO" 5 13690fi 13691if test -z "${HAVE_STRTONUM_TRUE}" && test -z "${HAVE_STRTONUM_FALSE}"; then 13692 as_fn_error $? "conditional \"HAVE_STRTONUM\" was never defined. 13693Usually this means the macro was only invoked conditionally." "$LINENO" 5 13694fi 13695if test -z "${HAVE_SYSCONF_TRUE}" && test -z "${HAVE_SYSCONF_FALSE}"; then 13696 as_fn_error $? "conditional \"HAVE_SYSCONF\" was never defined. 13697Usually this means the macro was only invoked conditionally." "$LINENO" 5 13698fi 13699if test -z "${HAVE_SENSORS_TRUE}" && test -z "${HAVE_SENSORS_FALSE}"; then 13700 as_fn_error $? "conditional \"HAVE_SENSORS\" was never defined. 13701Usually this means the macro was only invoked conditionally." "$LINENO" 5 13702fi 13703if test -z "${HAVE_SENSORS_TRUE}" && test -z "${HAVE_SENSORS_FALSE}"; then 13704 as_fn_error $? "conditional \"HAVE_SENSORS\" was never defined. 13705Usually this means the macro was only invoked conditionally." "$LINENO" 5 13706fi 13707 13708: "${CONFIG_STATUS=./config.status}" 13709ac_write_fail=0 13710ac_clean_files_save=$ac_clean_files 13711ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13712{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13713$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13714as_write_fail=0 13715cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13716#! $SHELL 13717# Generated by $as_me. 13718# Run this file to recreate the current configuration. 13719# Compiler output produced by configure, useful for debugging 13720# configure, is in config.log if it exists. 13721 13722debug=false 13723ac_cs_recheck=false 13724ac_cs_silent=false 13725 13726SHELL=\${CONFIG_SHELL-$SHELL} 13727export SHELL 13728_ASEOF 13729cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13730## -------------------- ## 13731## M4sh Initialization. ## 13732## -------------------- ## 13733 13734# Be more Bourne compatible 13735DUALCASE=1; export DUALCASE # for MKS sh 13736if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13737 emulate sh 13738 NULLCMD=: 13739 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13740 # is contrary to our usage. Disable this feature. 13741 alias -g '${1+"$@"}'='"$@"' 13742 setopt NO_GLOB_SUBST 13743else 13744 case `(set -o) 2>/dev/null` in #( 13745 *posix*) : 13746 set -o posix ;; #( 13747 *) : 13748 ;; 13749esac 13750fi 13751 13752 13753as_nl=' 13754' 13755export as_nl 13756# Printing a long string crashes Solaris 7 /usr/bin/printf. 13757as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13758as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13759as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13760# Prefer a ksh shell builtin over an external printf program on Solaris, 13761# but without wasting forks for bash or zsh. 13762if test -z "$BASH_VERSION$ZSH_VERSION" \ 13763 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13764 as_echo='print -r --' 13765 as_echo_n='print -rn --' 13766elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13767 as_echo='printf %s\n' 13768 as_echo_n='printf %s' 13769else 13770 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13771 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13772 as_echo_n='/usr/ucb/echo -n' 13773 else 13774 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13775 as_echo_n_body='eval 13776 arg=$1; 13777 case $arg in #( 13778 *"$as_nl"*) 13779 expr "X$arg" : "X\\(.*\\)$as_nl"; 13780 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13781 esac; 13782 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13783 ' 13784 export as_echo_n_body 13785 as_echo_n='sh -c $as_echo_n_body as_echo' 13786 fi 13787 export as_echo_body 13788 as_echo='sh -c $as_echo_body as_echo' 13789fi 13790 13791# The user is always right. 13792if test "${PATH_SEPARATOR+set}" != set; then 13793 PATH_SEPARATOR=: 13794 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13795 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13796 PATH_SEPARATOR=';' 13797 } 13798fi 13799 13800 13801# IFS 13802# We need space, tab and new line, in precisely that order. Quoting is 13803# there to prevent editors from complaining about space-tab. 13804# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13805# splitting by setting IFS to empty value.) 13806IFS=" "" $as_nl" 13807 13808# Find who we are. Look in the path if we contain no directory separator. 13809as_myself= 13810case $0 in #(( 13811 *[\\/]* ) as_myself=$0 ;; 13812 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13813for as_dir in $PATH 13814do 13815 IFS=$as_save_IFS 13816 test -z "$as_dir" && as_dir=. 13817 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13818 done 13819IFS=$as_save_IFS 13820 13821 ;; 13822esac 13823# We did not find ourselves, most probably we were run as `sh COMMAND' 13824# in which case we are not to be found in the path. 13825if test "x$as_myself" = x; then 13826 as_myself=$0 13827fi 13828if test ! -f "$as_myself"; then 13829 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13830 exit 1 13831fi 13832 13833# Unset variables that we do not need and which cause bugs (e.g. in 13834# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13835# suppresses any "Segmentation fault" message there. '((' could 13836# trigger a bug in pdksh 5.2.14. 13837for as_var in BASH_ENV ENV MAIL MAILPATH 13838do eval test x\${$as_var+set} = xset \ 13839 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13840done 13841PS1='$ ' 13842PS2='> ' 13843PS4='+ ' 13844 13845# NLS nuisances. 13846LC_ALL=C 13847export LC_ALL 13848LANGUAGE=C 13849export LANGUAGE 13850 13851# CDPATH. 13852(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13853 13854 13855# as_fn_error STATUS ERROR [LINENO LOG_FD] 13856# ---------------------------------------- 13857# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13858# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13859# script with STATUS, using 1 if that was 0. 13860as_fn_error () 13861{ 13862 as_status=$1; test $as_status -eq 0 && as_status=1 13863 if test "$4"; then 13864 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13865 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13866 fi 13867 $as_echo "$as_me: error: $2" >&2 13868 as_fn_exit $as_status 13869} # as_fn_error 13870 13871 13872# as_fn_set_status STATUS 13873# ----------------------- 13874# Set $? to STATUS, without forking. 13875as_fn_set_status () 13876{ 13877 return $1 13878} # as_fn_set_status 13879 13880# as_fn_exit STATUS 13881# ----------------- 13882# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13883as_fn_exit () 13884{ 13885 set +e 13886 as_fn_set_status $1 13887 exit $1 13888} # as_fn_exit 13889 13890# as_fn_unset VAR 13891# --------------- 13892# Portably unset VAR. 13893as_fn_unset () 13894{ 13895 { eval $1=; unset $1;} 13896} 13897as_unset=as_fn_unset 13898# as_fn_append VAR VALUE 13899# ---------------------- 13900# Append the text in VALUE to the end of the definition contained in VAR. Take 13901# advantage of any shell optimizations that allow amortized linear growth over 13902# repeated appends, instead of the typical quadratic growth present in naive 13903# implementations. 13904if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13905 eval 'as_fn_append () 13906 { 13907 eval $1+=\$2 13908 }' 13909else 13910 as_fn_append () 13911 { 13912 eval $1=\$$1\$2 13913 } 13914fi # as_fn_append 13915 13916# as_fn_arith ARG... 13917# ------------------ 13918# Perform arithmetic evaluation on the ARGs, and store the result in the 13919# global $as_val. Take advantage of shells that can avoid forks. The arguments 13920# must be portable across $(()) and expr. 13921if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13922 eval 'as_fn_arith () 13923 { 13924 as_val=$(( $* )) 13925 }' 13926else 13927 as_fn_arith () 13928 { 13929 as_val=`expr "$@" || test $? -eq 1` 13930 } 13931fi # as_fn_arith 13932 13933 13934if expr a : '\(a\)' >/dev/null 2>&1 && 13935 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13936 as_expr=expr 13937else 13938 as_expr=false 13939fi 13940 13941if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13942 as_basename=basename 13943else 13944 as_basename=false 13945fi 13946 13947if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13948 as_dirname=dirname 13949else 13950 as_dirname=false 13951fi 13952 13953as_me=`$as_basename -- "$0" || 13954$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13955 X"$0" : 'X\(//\)$' \| \ 13956 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13957$as_echo X/"$0" | 13958 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13959 s//\1/ 13960 q 13961 } 13962 /^X\/\(\/\/\)$/{ 13963 s//\1/ 13964 q 13965 } 13966 /^X\/\(\/\).*/{ 13967 s//\1/ 13968 q 13969 } 13970 s/.*/./; q'` 13971 13972# Avoid depending upon Character Ranges. 13973as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13974as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13975as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13976as_cr_digits='0123456789' 13977as_cr_alnum=$as_cr_Letters$as_cr_digits 13978 13979ECHO_C= ECHO_N= ECHO_T= 13980case `echo -n x` in #((((( 13981-n*) 13982 case `echo 'xy\c'` in 13983 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13984 xy) ECHO_C='\c';; 13985 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13986 ECHO_T=' ';; 13987 esac;; 13988*) 13989 ECHO_N='-n';; 13990esac 13991 13992rm -f conf$$ conf$$.exe conf$$.file 13993if test -d conf$$.dir; then 13994 rm -f conf$$.dir/conf$$.file 13995else 13996 rm -f conf$$.dir 13997 mkdir conf$$.dir 2>/dev/null 13998fi 13999if (echo >conf$$.file) 2>/dev/null; then 14000 if ln -s conf$$.file conf$$ 2>/dev/null; then 14001 as_ln_s='ln -s' 14002 # ... but there are two gotchas: 14003 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14004 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14005 # In both cases, we have to default to `cp -pR'. 14006 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14007 as_ln_s='cp -pR' 14008 elif ln conf$$.file conf$$ 2>/dev/null; then 14009 as_ln_s=ln 14010 else 14011 as_ln_s='cp -pR' 14012 fi 14013else 14014 as_ln_s='cp -pR' 14015fi 14016rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14017rmdir conf$$.dir 2>/dev/null 14018 14019 14020# as_fn_mkdir_p 14021# ------------- 14022# Create "$as_dir" as a directory, including parents if necessary. 14023as_fn_mkdir_p () 14024{ 14025 14026 case $as_dir in #( 14027 -*) as_dir=./$as_dir;; 14028 esac 14029 test -d "$as_dir" || eval $as_mkdir_p || { 14030 as_dirs= 14031 while :; do 14032 case $as_dir in #( 14033 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14034 *) as_qdir=$as_dir;; 14035 esac 14036 as_dirs="'$as_qdir' $as_dirs" 14037 as_dir=`$as_dirname -- "$as_dir" || 14038$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14039 X"$as_dir" : 'X\(//\)[^/]' \| \ 14040 X"$as_dir" : 'X\(//\)$' \| \ 14041 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14042$as_echo X"$as_dir" | 14043 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14044 s//\1/ 14045 q 14046 } 14047 /^X\(\/\/\)[^/].*/{ 14048 s//\1/ 14049 q 14050 } 14051 /^X\(\/\/\)$/{ 14052 s//\1/ 14053 q 14054 } 14055 /^X\(\/\).*/{ 14056 s//\1/ 14057 q 14058 } 14059 s/.*/./; q'` 14060 test -d "$as_dir" && break 14061 done 14062 test -z "$as_dirs" || eval "mkdir $as_dirs" 14063 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14064 14065 14066} # as_fn_mkdir_p 14067if mkdir -p . 2>/dev/null; then 14068 as_mkdir_p='mkdir -p "$as_dir"' 14069else 14070 test -d ./-p && rmdir ./-p 14071 as_mkdir_p=false 14072fi 14073 14074 14075# as_fn_executable_p FILE 14076# ----------------------- 14077# Test if FILE is an executable regular file. 14078as_fn_executable_p () 14079{ 14080 test -f "$1" && test -x "$1" 14081} # as_fn_executable_p 14082as_test_x='test -x' 14083as_executable_p=as_fn_executable_p 14084 14085# Sed expression to map a string onto a valid CPP name. 14086as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14087 14088# Sed expression to map a string onto a valid variable name. 14089as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14090 14091 14092exec 6>&1 14093## ----------------------------------- ## 14094## Main body of $CONFIG_STATUS script. ## 14095## ----------------------------------- ## 14096_ASEOF 14097test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14098 14099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14100# Save the log message, to keep $0 and so on meaningful, and to 14101# report actual input values of CONFIG_FILES etc. instead of their 14102# values after options handling. 14103ac_log=" 14104This file was extended by OpenNTPD $as_me 6.8p1, which was 14105generated by GNU Autoconf 2.69. Invocation command line was 14106 14107 CONFIG_FILES = $CONFIG_FILES 14108 CONFIG_HEADERS = $CONFIG_HEADERS 14109 CONFIG_LINKS = $CONFIG_LINKS 14110 CONFIG_COMMANDS = $CONFIG_COMMANDS 14111 $ $0 $@ 14112 14113on `(hostname || uname -n) 2>/dev/null | sed 1q` 14114" 14115 14116_ACEOF 14117 14118case $ac_config_files in *" 14119"*) set x $ac_config_files; shift; ac_config_files=$*;; 14120esac 14121 14122 14123 14124cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14125# Files that config.status was made for. 14126config_files="$ac_config_files" 14127config_commands="$ac_config_commands" 14128 14129_ACEOF 14130 14131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14132ac_cs_usage="\ 14133\`$as_me' instantiates files and other configuration actions 14134from templates according to the current configuration. Unless the files 14135and actions are specified as TAGs, all are instantiated by default. 14136 14137Usage: $0 [OPTION]... [TAG]... 14138 14139 -h, --help print this help, then exit 14140 -V, --version print version number and configuration settings, then exit 14141 --config print configuration, then exit 14142 -q, --quiet, --silent 14143 do not print progress messages 14144 -d, --debug don't remove temporary files 14145 --recheck update $as_me by reconfiguring in the same conditions 14146 --file=FILE[:TEMPLATE] 14147 instantiate the configuration file FILE 14148 14149Configuration files: 14150$config_files 14151 14152Configuration commands: 14153$config_commands 14154 14155Report bugs to the package provider." 14156 14157_ACEOF 14158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14159ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14160ac_cs_version="\\ 14161OpenNTPD config.status 6.8p1 14162configured by $0, generated by GNU Autoconf 2.69, 14163 with options \\"\$ac_cs_config\\" 14164 14165Copyright (C) 2012 Free Software Foundation, Inc. 14166This config.status script is free software; the Free Software Foundation 14167gives unlimited permission to copy, distribute and modify it." 14168 14169ac_pwd='$ac_pwd' 14170srcdir='$srcdir' 14171INSTALL='$INSTALL' 14172MKDIR_P='$MKDIR_P' 14173AWK='$AWK' 14174test -n "\$AWK" || AWK=awk 14175_ACEOF 14176 14177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14178# The default lists apply if the user does not specify any file. 14179ac_need_defaults=: 14180while test $# != 0 14181do 14182 case $1 in 14183 --*=?*) 14184 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14185 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14186 ac_shift=: 14187 ;; 14188 --*=) 14189 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14190 ac_optarg= 14191 ac_shift=: 14192 ;; 14193 *) 14194 ac_option=$1 14195 ac_optarg=$2 14196 ac_shift=shift 14197 ;; 14198 esac 14199 14200 case $ac_option in 14201 # Handling of the options. 14202 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14203 ac_cs_recheck=: ;; 14204 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14205 $as_echo "$ac_cs_version"; exit ;; 14206 --config | --confi | --conf | --con | --co | --c ) 14207 $as_echo "$ac_cs_config"; exit ;; 14208 --debug | --debu | --deb | --de | --d | -d ) 14209 debug=: ;; 14210 --file | --fil | --fi | --f ) 14211 $ac_shift 14212 case $ac_optarg in 14213 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14214 '') as_fn_error $? "missing file argument" ;; 14215 esac 14216 as_fn_append CONFIG_FILES " '$ac_optarg'" 14217 ac_need_defaults=false;; 14218 --he | --h | --help | --hel | -h ) 14219 $as_echo "$ac_cs_usage"; exit ;; 14220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14221 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14222 ac_cs_silent=: ;; 14223 14224 # This is an error. 14225 -*) as_fn_error $? "unrecognized option: \`$1' 14226Try \`$0 --help' for more information." ;; 14227 14228 *) as_fn_append ac_config_targets " $1" 14229 ac_need_defaults=false ;; 14230 14231 esac 14232 shift 14233done 14234 14235ac_configure_extra_args= 14236 14237if $ac_cs_silent; then 14238 exec 6>/dev/null 14239 ac_configure_extra_args="$ac_configure_extra_args --silent" 14240fi 14241 14242_ACEOF 14243cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14244if \$ac_cs_recheck; then 14245 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14246 shift 14247 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14248 CONFIG_SHELL='$SHELL' 14249 export CONFIG_SHELL 14250 exec "\$@" 14251fi 14252 14253_ACEOF 14254cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14255exec 5>>config.log 14256{ 14257 echo 14258 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14259## Running $as_me. ## 14260_ASBOX 14261 $as_echo "$ac_log" 14262} >&5 14263 14264_ACEOF 14265cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14266# 14267# INIT-COMMANDS 14268# 14269AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 14270 14271 14272# The HP-UX ksh and POSIX shell print the target directory to stdout 14273# if CDPATH is set. 14274(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14275 14276sed_quote_subst='$sed_quote_subst' 14277double_quote_subst='$double_quote_subst' 14278delay_variable_subst='$delay_variable_subst' 14279macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14280macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14281enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14282enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14283pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14284enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14285SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14286ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14287PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 14288host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14289host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14290host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14291build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14292build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14293build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14294SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14295Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14296GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14297EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14298FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14299LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14300NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14301LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14302max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14303ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14304exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14305lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14306lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14307lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14308lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 14309lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 14310reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14311reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14312OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14313deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14314file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14315file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 14316want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 14317DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 14318sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 14319AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14320AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14321archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 14322STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14323RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14324old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14325old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14326old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14327lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14328CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14329CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14330compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14331GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14332lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14333lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14334lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14335lt_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"`' 14336nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14337lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14338objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14339MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14340lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14341lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14342lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14343lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14344lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14345need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14346MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14347DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14348NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14349LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14350OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14351OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14352libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14353shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14354extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14355archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14356enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14357export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14358whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14359compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14360old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14361old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14362archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14363archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14364module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14365module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14366with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14367allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14368no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14369hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14370hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14371hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14372hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14373hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14374hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14375hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14376inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14377link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14378always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14379export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14380exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14381include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14382prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14383postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14384file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14385variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14386need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14387need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14388version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14389runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14390shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14391shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14392libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14393library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14394soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14395install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14396postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14397postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14398finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14399finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14400hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14401sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14402sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 14403hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14404enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14405enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14406enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14407old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14408striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14409 14410LTCC='$LTCC' 14411LTCFLAGS='$LTCFLAGS' 14412compiler='$compiler_DEFAULT' 14413 14414# A function that is used when there is no print builtin or printf. 14415func_fallback_echo () 14416{ 14417 eval 'cat <<_LTECHO_EOF 14418\$1 14419_LTECHO_EOF' 14420} 14421 14422# Quote evaled strings. 14423for var in SHELL \ 14424ECHO \ 14425PATH_SEPARATOR \ 14426SED \ 14427GREP \ 14428EGREP \ 14429FGREP \ 14430LD \ 14431NM \ 14432LN_S \ 14433lt_SP2NL \ 14434lt_NL2SP \ 14435reload_flag \ 14436OBJDUMP \ 14437deplibs_check_method \ 14438file_magic_cmd \ 14439file_magic_glob \ 14440want_nocaseglob \ 14441DLLTOOL \ 14442sharedlib_from_linklib_cmd \ 14443AR \ 14444AR_FLAGS \ 14445archiver_list_spec \ 14446STRIP \ 14447RANLIB \ 14448CC \ 14449CFLAGS \ 14450compiler \ 14451lt_cv_sys_global_symbol_pipe \ 14452lt_cv_sys_global_symbol_to_cdecl \ 14453lt_cv_sys_global_symbol_to_c_name_address \ 14454lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14455nm_file_list_spec \ 14456lt_prog_compiler_no_builtin_flag \ 14457lt_prog_compiler_pic \ 14458lt_prog_compiler_wl \ 14459lt_prog_compiler_static \ 14460lt_cv_prog_compiler_c_o \ 14461need_locks \ 14462MANIFEST_TOOL \ 14463DSYMUTIL \ 14464NMEDIT \ 14465LIPO \ 14466OTOOL \ 14467OTOOL64 \ 14468shrext_cmds \ 14469export_dynamic_flag_spec \ 14470whole_archive_flag_spec \ 14471compiler_needs_object \ 14472with_gnu_ld \ 14473allow_undefined_flag \ 14474no_undefined_flag \ 14475hardcode_libdir_flag_spec \ 14476hardcode_libdir_separator \ 14477exclude_expsyms \ 14478include_expsyms \ 14479file_list_spec \ 14480variables_saved_for_relink \ 14481libname_spec \ 14482library_names_spec \ 14483soname_spec \ 14484install_override_mode \ 14485finish_eval \ 14486old_striplib \ 14487striplib; do 14488 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14489 *[\\\\\\\`\\"\\\$]*) 14490 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14491 ;; 14492 *) 14493 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14494 ;; 14495 esac 14496done 14497 14498# Double-quote double-evaled strings. 14499for var in reload_cmds \ 14500old_postinstall_cmds \ 14501old_postuninstall_cmds \ 14502old_archive_cmds \ 14503extract_expsyms_cmds \ 14504old_archive_from_new_cmds \ 14505old_archive_from_expsyms_cmds \ 14506archive_cmds \ 14507archive_expsym_cmds \ 14508module_cmds \ 14509module_expsym_cmds \ 14510export_symbols_cmds \ 14511prelink_cmds \ 14512postlink_cmds \ 14513postinstall_cmds \ 14514postuninstall_cmds \ 14515finish_cmds \ 14516sys_lib_search_path_spec \ 14517sys_lib_dlsearch_path_spec; do 14518 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14519 *[\\\\\\\`\\"\\\$]*) 14520 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14521 ;; 14522 *) 14523 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14524 ;; 14525 esac 14526done 14527 14528ac_aux_dir='$ac_aux_dir' 14529xsi_shell='$xsi_shell' 14530lt_shell_append='$lt_shell_append' 14531 14532# See if we are running on zsh, and set the options which allow our 14533# commands through without removal of \ escapes INIT. 14534if test -n "\${ZSH_VERSION+set}" ; then 14535 setopt NO_GLOB_SUBST 14536fi 14537 14538 14539 PACKAGE='$PACKAGE' 14540 VERSION='$VERSION' 14541 TIMESTAMP='$TIMESTAMP' 14542 RM='$RM' 14543 ofile='$ofile' 14544 14545 14546 14547 14548_ACEOF 14549 14550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14551 14552# Handling of arguments. 14553for ac_config_target in $ac_config_targets 14554do 14555 case $ac_config_target in 14556 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14557 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14558 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14559 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 14560 "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;; 14561 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14562 14563 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14564 esac 14565done 14566 14567 14568# If the user did not use the arguments to specify the items to instantiate, 14569# then the envvar interface is used. Set only those that are not. 14570# We use the long form for the default assignment because of an extremely 14571# bizarre bug on SunOS 4.1.3. 14572if $ac_need_defaults; then 14573 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14574 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14575fi 14576 14577# Have a temporary directory for convenience. Make it in the build tree 14578# simply because there is no reason against having it here, and in addition, 14579# creating and moving files from /tmp can sometimes cause problems. 14580# Hook for its removal unless debugging. 14581# Note that there is a small window in which the directory will not be cleaned: 14582# after its creation but before its name has been assigned to `$tmp'. 14583$debug || 14584{ 14585 tmp= ac_tmp= 14586 trap 'exit_status=$? 14587 : "${ac_tmp:=$tmp}" 14588 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14589' 0 14590 trap 'as_fn_exit 1' 1 2 13 15 14591} 14592# Create a (secure) tmp directory for tmp files. 14593 14594{ 14595 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14596 test -d "$tmp" 14597} || 14598{ 14599 tmp=./conf$$-$RANDOM 14600 (umask 077 && mkdir "$tmp") 14601} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14602ac_tmp=$tmp 14603 14604# Set up the scripts for CONFIG_FILES section. 14605# No need to generate them if there are no CONFIG_FILES. 14606# This happens for instance with `./config.status config.h'. 14607if test -n "$CONFIG_FILES"; then 14608 14609 14610ac_cr=`echo X | tr X '\015'` 14611# On cygwin, bash can eat \r inside `` if the user requested igncr. 14612# But we know of no other shell where ac_cr would be empty at this 14613# point, so we can use a bashism as a fallback. 14614if test "x$ac_cr" = x; then 14615 eval ac_cr=\$\'\\r\' 14616fi 14617ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14618if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14619 ac_cs_awk_cr='\\r' 14620else 14621 ac_cs_awk_cr=$ac_cr 14622fi 14623 14624echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14625_ACEOF 14626 14627 14628{ 14629 echo "cat >conf$$subs.awk <<_ACEOF" && 14630 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14631 echo "_ACEOF" 14632} >conf$$subs.sh || 14633 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14634ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14635ac_delim='%!_!# ' 14636for ac_last_try in false false false false false :; do 14637 . ./conf$$subs.sh || 14638 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14639 14640 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14641 if test $ac_delim_n = $ac_delim_num; then 14642 break 14643 elif $ac_last_try; then 14644 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14645 else 14646 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14647 fi 14648done 14649rm -f conf$$subs.sh 14650 14651cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14652cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14653_ACEOF 14654sed -n ' 14655h 14656s/^/S["/; s/!.*/"]=/ 14657p 14658g 14659s/^[^!]*!// 14660:repl 14661t repl 14662s/'"$ac_delim"'$// 14663t delim 14664:nl 14665h 14666s/\(.\{148\}\)..*/\1/ 14667t more1 14668s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14669p 14670n 14671b repl 14672:more1 14673s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14674p 14675g 14676s/.\{148\}// 14677t nl 14678:delim 14679h 14680s/\(.\{148\}\)..*/\1/ 14681t more2 14682s/["\\]/\\&/g; s/^/"/; s/$/"/ 14683p 14684b 14685:more2 14686s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14687p 14688g 14689s/.\{148\}// 14690t delim 14691' <conf$$subs.awk | sed ' 14692/^[^""]/{ 14693 N 14694 s/\n// 14695} 14696' >>$CONFIG_STATUS || ac_write_fail=1 14697rm -f conf$$subs.awk 14698cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14699_ACAWK 14700cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14701 for (key in S) S_is_set[key] = 1 14702 FS = "" 14703 14704} 14705{ 14706 line = $ 0 14707 nfields = split(line, field, "@") 14708 substed = 0 14709 len = length(field[1]) 14710 for (i = 2; i < nfields; i++) { 14711 key = field[i] 14712 keylen = length(key) 14713 if (S_is_set[key]) { 14714 value = S[key] 14715 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14716 len += length(value) + length(field[++i]) 14717 substed = 1 14718 } else 14719 len += 1 + keylen 14720 } 14721 14722 print line 14723} 14724 14725_ACAWK 14726_ACEOF 14727cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14728if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14729 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14730else 14731 cat 14732fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14733 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14734_ACEOF 14735 14736# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14737# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14738# trailing colons and then remove the whole line if VPATH becomes empty 14739# (actually we leave an empty line to preserve line numbers). 14740if test "x$srcdir" = x.; then 14741 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14742h 14743s/// 14744s/^/:/ 14745s/[ ]*$/:/ 14746s/:\$(srcdir):/:/g 14747s/:\${srcdir}:/:/g 14748s/:@srcdir@:/:/g 14749s/^:*// 14750s/:*$// 14751x 14752s/\(=[ ]*\).*/\1/ 14753G 14754s/\n// 14755s/^[^=]*=[ ]*$// 14756}' 14757fi 14758 14759cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14760fi # test -n "$CONFIG_FILES" 14761 14762 14763eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 14764shift 14765for ac_tag 14766do 14767 case $ac_tag in 14768 :[FHLC]) ac_mode=$ac_tag; continue;; 14769 esac 14770 case $ac_mode$ac_tag in 14771 :[FHL]*:*);; 14772 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14773 :[FH]-) ac_tag=-:-;; 14774 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14775 esac 14776 ac_save_IFS=$IFS 14777 IFS=: 14778 set x $ac_tag 14779 IFS=$ac_save_IFS 14780 shift 14781 ac_file=$1 14782 shift 14783 14784 case $ac_mode in 14785 :L) ac_source=$1;; 14786 :[FH]) 14787 ac_file_inputs= 14788 for ac_f 14789 do 14790 case $ac_f in 14791 -) ac_f="$ac_tmp/stdin";; 14792 *) # Look for the file first in the build tree, then in the source tree 14793 # (if the path is not absolute). The absolute path cannot be DOS-style, 14794 # because $ac_f cannot contain `:'. 14795 test -f "$ac_f" || 14796 case $ac_f in 14797 [\\/$]*) false;; 14798 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14799 esac || 14800 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14801 esac 14802 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14803 as_fn_append ac_file_inputs " '$ac_f'" 14804 done 14805 14806 # Let's still pretend it is `configure' which instantiates (i.e., don't 14807 # use $as_me), people would be surprised to read: 14808 # /* config.h. Generated by config.status. */ 14809 configure_input='Generated from '` 14810 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14811 `' by configure.' 14812 if test x"$ac_file" != x-; then 14813 configure_input="$ac_file. $configure_input" 14814 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14815$as_echo "$as_me: creating $ac_file" >&6;} 14816 fi 14817 # Neutralize special characters interpreted by sed in replacement strings. 14818 case $configure_input in #( 14819 *\&* | *\|* | *\\* ) 14820 ac_sed_conf_input=`$as_echo "$configure_input" | 14821 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14822 *) ac_sed_conf_input=$configure_input;; 14823 esac 14824 14825 case $ac_tag in 14826 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14827 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14828 esac 14829 ;; 14830 esac 14831 14832 ac_dir=`$as_dirname -- "$ac_file" || 14833$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14834 X"$ac_file" : 'X\(//\)[^/]' \| \ 14835 X"$ac_file" : 'X\(//\)$' \| \ 14836 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14837$as_echo X"$ac_file" | 14838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14839 s//\1/ 14840 q 14841 } 14842 /^X\(\/\/\)[^/].*/{ 14843 s//\1/ 14844 q 14845 } 14846 /^X\(\/\/\)$/{ 14847 s//\1/ 14848 q 14849 } 14850 /^X\(\/\).*/{ 14851 s//\1/ 14852 q 14853 } 14854 s/.*/./; q'` 14855 as_dir="$ac_dir"; as_fn_mkdir_p 14856 ac_builddir=. 14857 14858case "$ac_dir" in 14859.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14860*) 14861 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14862 # A ".." for each directory in $ac_dir_suffix. 14863 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14864 case $ac_top_builddir_sub in 14865 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14866 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14867 esac ;; 14868esac 14869ac_abs_top_builddir=$ac_pwd 14870ac_abs_builddir=$ac_pwd$ac_dir_suffix 14871# for backward compatibility: 14872ac_top_builddir=$ac_top_build_prefix 14873 14874case $srcdir in 14875 .) # We are building in place. 14876 ac_srcdir=. 14877 ac_top_srcdir=$ac_top_builddir_sub 14878 ac_abs_top_srcdir=$ac_pwd ;; 14879 [\\/]* | ?:[\\/]* ) # Absolute name. 14880 ac_srcdir=$srcdir$ac_dir_suffix; 14881 ac_top_srcdir=$srcdir 14882 ac_abs_top_srcdir=$srcdir ;; 14883 *) # Relative name. 14884 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14885 ac_top_srcdir=$ac_top_build_prefix$srcdir 14886 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14887esac 14888ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14889 14890 14891 case $ac_mode in 14892 :F) 14893 # 14894 # CONFIG_FILE 14895 # 14896 14897 case $INSTALL in 14898 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14899 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14900 esac 14901 ac_MKDIR_P=$MKDIR_P 14902 case $MKDIR_P in 14903 [\\/$]* | ?:[\\/]* ) ;; 14904 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14905 esac 14906_ACEOF 14907 14908cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14909# If the template does not know about datarootdir, expand it. 14910# FIXME: This hack should be removed a few years after 2.60. 14911ac_datarootdir_hack=; ac_datarootdir_seen= 14912ac_sed_dataroot=' 14913/datarootdir/ { 14914 p 14915 q 14916} 14917/@datadir@/p 14918/@docdir@/p 14919/@infodir@/p 14920/@localedir@/p 14921/@mandir@/p' 14922case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14923*datarootdir*) ac_datarootdir_seen=yes;; 14924*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14926$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14927_ACEOF 14928cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14929 ac_datarootdir_hack=' 14930 s&@datadir@&$datadir&g 14931 s&@docdir@&$docdir&g 14932 s&@infodir@&$infodir&g 14933 s&@localedir@&$localedir&g 14934 s&@mandir@&$mandir&g 14935 s&\\\${datarootdir}&$datarootdir&g' ;; 14936esac 14937_ACEOF 14938 14939# Neutralize VPATH when `$srcdir' = `.'. 14940# Shell code in configure.ac might set extrasub. 14941# FIXME: do we really want to maintain this feature? 14942cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14943ac_sed_extra="$ac_vpsub 14944$extrasub 14945_ACEOF 14946cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14947:t 14948/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14949s|@configure_input@|$ac_sed_conf_input|;t t 14950s&@top_builddir@&$ac_top_builddir_sub&;t t 14951s&@top_build_prefix@&$ac_top_build_prefix&;t t 14952s&@srcdir@&$ac_srcdir&;t t 14953s&@abs_srcdir@&$ac_abs_srcdir&;t t 14954s&@top_srcdir@&$ac_top_srcdir&;t t 14955s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14956s&@builddir@&$ac_builddir&;t t 14957s&@abs_builddir@&$ac_abs_builddir&;t t 14958s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14959s&@INSTALL@&$ac_INSTALL&;t t 14960s&@MKDIR_P@&$ac_MKDIR_P&;t t 14961$ac_datarootdir_hack 14962" 14963eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14964 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14965 14966test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14967 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14968 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14969 "$ac_tmp/out"`; test -z "$ac_out"; } && 14970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14971which seems to be undefined. Please make sure it is defined" >&5 14972$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14973which seems to be undefined. Please make sure it is defined" >&2;} 14974 14975 rm -f "$ac_tmp/stdin" 14976 case $ac_file in 14977 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14978 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14979 esac \ 14980 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14981 ;; 14982 14983 14984 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14985$as_echo "$as_me: executing $ac_file commands" >&6;} 14986 ;; 14987 esac 14988 14989 14990 case $ac_file$ac_mode in 14991 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14992 # Older Autoconf quotes --file arguments for eval, but not when files 14993 # are listed without --file. Let's play safe and only enable the eval 14994 # if we detect the quoting. 14995 # TODO: see whether this extra hack can be removed once we start 14996 # requiring Autoconf 2.70 or later. 14997 case $CONFIG_FILES in #( 14998 *\'*) : 14999 eval set x "$CONFIG_FILES" ;; #( 15000 *) : 15001 set x $CONFIG_FILES ;; #( 15002 *) : 15003 ;; 15004esac 15005 shift 15006 # Used to flag and report bootstrapping failures. 15007 am_rc=0 15008 for am_mf 15009 do 15010 # Strip MF so we end up with the name of the file. 15011 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 15012 # Check whether this is an Automake generated Makefile which includes 15013 # dependency-tracking related rules and includes. 15014 # Grep'ing the whole file directly is not great: AIX grep has a line 15015 # limit of 2048, but all sed's we know have understand at least 4000. 15016 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 15017 || continue 15018 am_dirpart=`$as_dirname -- "$am_mf" || 15019$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15020 X"$am_mf" : 'X\(//\)[^/]' \| \ 15021 X"$am_mf" : 'X\(//\)$' \| \ 15022 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15023$as_echo X"$am_mf" | 15024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15025 s//\1/ 15026 q 15027 } 15028 /^X\(\/\/\)[^/].*/{ 15029 s//\1/ 15030 q 15031 } 15032 /^X\(\/\/\)$/{ 15033 s//\1/ 15034 q 15035 } 15036 /^X\(\/\).*/{ 15037 s//\1/ 15038 q 15039 } 15040 s/.*/./; q'` 15041 am_filepart=`$as_basename -- "$am_mf" || 15042$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 15043 X"$am_mf" : 'X\(//\)$' \| \ 15044 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15045$as_echo X/"$am_mf" | 15046 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15047 s//\1/ 15048 q 15049 } 15050 /^X\/\(\/\/\)$/{ 15051 s//\1/ 15052 q 15053 } 15054 /^X\/\(\/\).*/{ 15055 s//\1/ 15056 q 15057 } 15058 s/.*/./; q'` 15059 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 15060 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15061 | $MAKE -f - am--depfiles" >&5 15062 (cd "$am_dirpart" \ 15063 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15064 | $MAKE -f - am--depfiles) >&5 2>&5 15065 ac_status=$? 15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15067 (exit $ac_status); } || am_rc=$? 15068 done 15069 if test $am_rc -ne 0; then 15070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15072as_fn_error $? "Something went wrong bootstrapping makefile fragments 15073 for automatic dependency tracking. If GNU make was not used, consider 15074 re-running the configure script with MAKE=\"gmake\" (or whatever is 15075 necessary). You can also try re-running configure with the 15076 '--disable-dependency-tracking' option to at least be able to build 15077 the package (albeit without support for automatic dependency tracking). 15078See \`config.log' for more details" "$LINENO" 5; } 15079 fi 15080 { am_dirpart=; unset am_dirpart;} 15081 { am_filepart=; unset am_filepart;} 15082 { am_mf=; unset am_mf;} 15083 { am_rc=; unset am_rc;} 15084 rm -f conftest-deps.mk 15085} 15086 ;; 15087 "libtool":C) 15088 15089 # See if we are running on zsh, and set the options which allow our 15090 # commands through without removal of \ escapes. 15091 if test -n "${ZSH_VERSION+set}" ; then 15092 setopt NO_GLOB_SUBST 15093 fi 15094 15095 cfgfile="${ofile}T" 15096 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15097 $RM "$cfgfile" 15098 15099 cat <<_LT_EOF >> "$cfgfile" 15100#! $SHELL 15101 15102# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 15103# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 15104# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15105# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15106# 15107# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 15108# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 15109# Foundation, Inc. 15110# Written by Gordon Matzigkeit, 1996 15111# 15112# This file is part of GNU Libtool. 15113# 15114# GNU Libtool is free software; you can redistribute it and/or 15115# modify it under the terms of the GNU General Public License as 15116# published by the Free Software Foundation; either version 2 of 15117# the License, or (at your option) any later version. 15118# 15119# As a special exception to the GNU General Public License, 15120# if you distribute this file as part of a program or library that 15121# is built using GNU Libtool, you may include this file under the 15122# same distribution terms that you use for the rest of that program. 15123# 15124# GNU Libtool is distributed in the hope that it will be useful, 15125# but WITHOUT ANY WARRANTY; without even the implied warranty of 15126# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15127# GNU General Public License for more details. 15128# 15129# You should have received a copy of the GNU General Public License 15130# along with GNU Libtool; see the file COPYING. If not, a copy 15131# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 15132# obtained by writing to the Free Software Foundation, Inc., 15133# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15134 15135 15136# The names of the tagged configurations supported by this script. 15137available_tags="" 15138 15139# ### BEGIN LIBTOOL CONFIG 15140 15141# Which release of libtool.m4 was used? 15142macro_version=$macro_version 15143macro_revision=$macro_revision 15144 15145# Whether or not to build shared libraries. 15146build_libtool_libs=$enable_shared 15147 15148# Whether or not to build static libraries. 15149build_old_libs=$enable_static 15150 15151# What type of objects to build. 15152pic_mode=$pic_mode 15153 15154# Whether or not to optimize for fast installation. 15155fast_install=$enable_fast_install 15156 15157# Shell to use when invoking shell scripts. 15158SHELL=$lt_SHELL 15159 15160# An echo program that protects backslashes. 15161ECHO=$lt_ECHO 15162 15163# The PATH separator for the build system. 15164PATH_SEPARATOR=$lt_PATH_SEPARATOR 15165 15166# The host system. 15167host_alias=$host_alias 15168host=$host 15169host_os=$host_os 15170 15171# The build system. 15172build_alias=$build_alias 15173build=$build 15174build_os=$build_os 15175 15176# A sed program that does not truncate output. 15177SED=$lt_SED 15178 15179# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15180Xsed="\$SED -e 1s/^X//" 15181 15182# A grep program that handles long lines. 15183GREP=$lt_GREP 15184 15185# An ERE matcher. 15186EGREP=$lt_EGREP 15187 15188# A literal string matcher. 15189FGREP=$lt_FGREP 15190 15191# A BSD- or MS-compatible name lister. 15192NM=$lt_NM 15193 15194# Whether we need soft or hard links. 15195LN_S=$lt_LN_S 15196 15197# What is the maximum length of a command? 15198max_cmd_len=$max_cmd_len 15199 15200# Object file suffix (normally "o"). 15201objext=$ac_objext 15202 15203# Executable file suffix (normally ""). 15204exeext=$exeext 15205 15206# whether the shell understands "unset". 15207lt_unset=$lt_unset 15208 15209# turn spaces into newlines. 15210SP2NL=$lt_lt_SP2NL 15211 15212# turn newlines into spaces. 15213NL2SP=$lt_lt_NL2SP 15214 15215# convert \$build file names to \$host format. 15216to_host_file_cmd=$lt_cv_to_host_file_cmd 15217 15218# convert \$build files to toolchain format. 15219to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15220 15221# An object symbol dumper. 15222OBJDUMP=$lt_OBJDUMP 15223 15224# Method to check whether dependent libraries are shared objects. 15225deplibs_check_method=$lt_deplibs_check_method 15226 15227# Command to use when deplibs_check_method = "file_magic". 15228file_magic_cmd=$lt_file_magic_cmd 15229 15230# How to find potential files when deplibs_check_method = "file_magic". 15231file_magic_glob=$lt_file_magic_glob 15232 15233# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 15234want_nocaseglob=$lt_want_nocaseglob 15235 15236# DLL creation program. 15237DLLTOOL=$lt_DLLTOOL 15238 15239# Command to associate shared and link libraries. 15240sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 15241 15242# The archiver. 15243AR=$lt_AR 15244 15245# Flags to create an archive. 15246AR_FLAGS=$lt_AR_FLAGS 15247 15248# How to feed a file listing to the archiver. 15249archiver_list_spec=$lt_archiver_list_spec 15250 15251# A symbol stripping program. 15252STRIP=$lt_STRIP 15253 15254# Commands used to install an old-style archive. 15255RANLIB=$lt_RANLIB 15256old_postinstall_cmds=$lt_old_postinstall_cmds 15257old_postuninstall_cmds=$lt_old_postuninstall_cmds 15258 15259# Whether to use a lock for old archive extraction. 15260lock_old_archive_extraction=$lock_old_archive_extraction 15261 15262# A C compiler. 15263LTCC=$lt_CC 15264 15265# LTCC compiler flags. 15266LTCFLAGS=$lt_CFLAGS 15267 15268# Take the output of nm and produce a listing of raw symbols and C names. 15269global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15270 15271# Transform the output of nm in a proper C declaration. 15272global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15273 15274# Transform the output of nm in a C name address pair. 15275global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15276 15277# Transform the output of nm in a C name address pair when lib prefix is needed. 15278global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15279 15280# Specify filename containing input files for \$NM. 15281nm_file_list_spec=$lt_nm_file_list_spec 15282 15283# The root where to search for dependent libraries,and in which our libraries should be installed. 15284lt_sysroot=$lt_sysroot 15285 15286# The name of the directory that contains temporary libtool files. 15287objdir=$objdir 15288 15289# Used to examine libraries when file_magic_cmd begins with "file". 15290MAGIC_CMD=$MAGIC_CMD 15291 15292# Must we lock files when doing compilation? 15293need_locks=$lt_need_locks 15294 15295# Manifest tool. 15296MANIFEST_TOOL=$lt_MANIFEST_TOOL 15297 15298# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15299DSYMUTIL=$lt_DSYMUTIL 15300 15301# Tool to change global to local symbols on Mac OS X. 15302NMEDIT=$lt_NMEDIT 15303 15304# Tool to manipulate fat objects and archives on Mac OS X. 15305LIPO=$lt_LIPO 15306 15307# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15308OTOOL=$lt_OTOOL 15309 15310# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15311OTOOL64=$lt_OTOOL64 15312 15313# Old archive suffix (normally "a"). 15314libext=$libext 15315 15316# Shared library suffix (normally ".so"). 15317shrext_cmds=$lt_shrext_cmds 15318 15319# The commands to extract the exported symbol list from a shared archive. 15320extract_expsyms_cmds=$lt_extract_expsyms_cmds 15321 15322# Variables whose values should be saved in libtool wrapper scripts and 15323# restored at link time. 15324variables_saved_for_relink=$lt_variables_saved_for_relink 15325 15326# Do we need the "lib" prefix for modules? 15327need_lib_prefix=$need_lib_prefix 15328 15329# Do we need a version for libraries? 15330need_version=$need_version 15331 15332# Library versioning type. 15333version_type=$version_type 15334 15335# Shared library runtime path variable. 15336runpath_var=$runpath_var 15337 15338# Shared library path variable. 15339shlibpath_var=$shlibpath_var 15340 15341# Is shlibpath searched before the hard-coded library search path? 15342shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15343 15344# Format of library name prefix. 15345libname_spec=$lt_libname_spec 15346 15347# List of archive names. First name is the real one, the rest are links. 15348# The last name is the one that the linker finds with -lNAME 15349library_names_spec=$lt_library_names_spec 15350 15351# The coded name of the library, if different from the real name. 15352soname_spec=$lt_soname_spec 15353 15354# Permission mode override for installation of shared libraries. 15355install_override_mode=$lt_install_override_mode 15356 15357# Command to use after installation of a shared archive. 15358postinstall_cmds=$lt_postinstall_cmds 15359 15360# Command to use after uninstallation of a shared archive. 15361postuninstall_cmds=$lt_postuninstall_cmds 15362 15363# Commands used to finish a libtool library installation in a directory. 15364finish_cmds=$lt_finish_cmds 15365 15366# As "finish_cmds", except a single script fragment to be evaled but 15367# not shown. 15368finish_eval=$lt_finish_eval 15369 15370# Whether we should hardcode library paths into libraries. 15371hardcode_into_libs=$hardcode_into_libs 15372 15373# Compile-time system search path for libraries. 15374sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15375 15376# Run-time system search path for libraries. 15377sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15378 15379# Whether dlopen is supported. 15380dlopen_support=$enable_dlopen 15381 15382# Whether dlopen of programs is supported. 15383dlopen_self=$enable_dlopen_self 15384 15385# Whether dlopen of statically linked programs is supported. 15386dlopen_self_static=$enable_dlopen_self_static 15387 15388# Commands to strip libraries. 15389old_striplib=$lt_old_striplib 15390striplib=$lt_striplib 15391 15392 15393# The linker used to build libraries. 15394LD=$lt_LD 15395 15396# How to create reloadable object files. 15397reload_flag=$lt_reload_flag 15398reload_cmds=$lt_reload_cmds 15399 15400# Commands used to build an old-style archive. 15401old_archive_cmds=$lt_old_archive_cmds 15402 15403# A language specific compiler. 15404CC=$lt_compiler 15405 15406# Is the compiler the GNU compiler? 15407with_gcc=$GCC 15408 15409# Compiler flag to turn off builtin functions. 15410no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15411 15412# Additional compiler flags for building library objects. 15413pic_flag=$lt_lt_prog_compiler_pic 15414 15415# How to pass a linker flag through the compiler. 15416wl=$lt_lt_prog_compiler_wl 15417 15418# Compiler flag to prevent dynamic linking. 15419link_static_flag=$lt_lt_prog_compiler_static 15420 15421# Does compiler simultaneously support -c and -o options? 15422compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15423 15424# Whether or not to add -lc for building shared libraries. 15425build_libtool_need_lc=$archive_cmds_need_lc 15426 15427# Whether or not to disallow shared libs when runtime libs are static. 15428allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15429 15430# Compiler flag to allow reflexive dlopens. 15431export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15432 15433# Compiler flag to generate shared objects directly from archives. 15434whole_archive_flag_spec=$lt_whole_archive_flag_spec 15435 15436# Whether the compiler copes with passing no objects directly. 15437compiler_needs_object=$lt_compiler_needs_object 15438 15439# Create an old-style archive from a shared archive. 15440old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15441 15442# Create a temporary old-style archive to link instead of a shared archive. 15443old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15444 15445# Commands used to build a shared archive. 15446archive_cmds=$lt_archive_cmds 15447archive_expsym_cmds=$lt_archive_expsym_cmds 15448 15449# Commands used to build a loadable module if different from building 15450# a shared archive. 15451module_cmds=$lt_module_cmds 15452module_expsym_cmds=$lt_module_expsym_cmds 15453 15454# Whether we are building with GNU ld or not. 15455with_gnu_ld=$lt_with_gnu_ld 15456 15457# Flag that allows shared libraries with undefined symbols to be built. 15458allow_undefined_flag=$lt_allow_undefined_flag 15459 15460# Flag that enforces no undefined symbols. 15461no_undefined_flag=$lt_no_undefined_flag 15462 15463# Flag to hardcode \$libdir into a binary during linking. 15464# This must work even if \$libdir does not exist 15465hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15466 15467# Whether we need a single "-rpath" flag with a separated argument. 15468hardcode_libdir_separator=$lt_hardcode_libdir_separator 15469 15470# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15471# DIR into the resulting binary. 15472hardcode_direct=$hardcode_direct 15473 15474# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15475# DIR into the resulting binary and the resulting library dependency is 15476# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15477# library is relocated. 15478hardcode_direct_absolute=$hardcode_direct_absolute 15479 15480# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15481# into the resulting binary. 15482hardcode_minus_L=$hardcode_minus_L 15483 15484# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15485# into the resulting binary. 15486hardcode_shlibpath_var=$hardcode_shlibpath_var 15487 15488# Set to "yes" if building a shared library automatically hardcodes DIR 15489# into the library and all subsequent libraries and executables linked 15490# against it. 15491hardcode_automatic=$hardcode_automatic 15492 15493# Set to yes if linker adds runtime paths of dependent libraries 15494# to runtime path list. 15495inherit_rpath=$inherit_rpath 15496 15497# Whether libtool must link a program against all its dependency libraries. 15498link_all_deplibs=$link_all_deplibs 15499 15500# Set to "yes" if exported symbols are required. 15501always_export_symbols=$always_export_symbols 15502 15503# The commands to list exported symbols. 15504export_symbols_cmds=$lt_export_symbols_cmds 15505 15506# Symbols that should not be listed in the preloaded symbols. 15507exclude_expsyms=$lt_exclude_expsyms 15508 15509# Symbols that must always be exported. 15510include_expsyms=$lt_include_expsyms 15511 15512# Commands necessary for linking programs (against libraries) with templates. 15513prelink_cmds=$lt_prelink_cmds 15514 15515# Commands necessary for finishing linking programs. 15516postlink_cmds=$lt_postlink_cmds 15517 15518# Specify filename containing input files. 15519file_list_spec=$lt_file_list_spec 15520 15521# How to hardcode a shared library path into an executable. 15522hardcode_action=$hardcode_action 15523 15524# ### END LIBTOOL CONFIG 15525 15526_LT_EOF 15527 15528 case $host_os in 15529 aix3*) 15530 cat <<\_LT_EOF >> "$cfgfile" 15531# AIX sometimes has problems with the GCC collect2 program. For some 15532# reason, if we set the COLLECT_NAMES environment variable, the problems 15533# vanish in a puff of smoke. 15534if test "X${COLLECT_NAMES+set}" != Xset; then 15535 COLLECT_NAMES= 15536 export COLLECT_NAMES 15537fi 15538_LT_EOF 15539 ;; 15540 esac 15541 15542 15543ltmain="$ac_aux_dir/ltmain.sh" 15544 15545 15546 # We use sed instead of cat because bash on DJGPP gets confused if 15547 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15548 # text mode, it properly converts lines to CR/LF. This bash problem 15549 # is reportedly fixed, but why not run on old versions too? 15550 sed '$q' "$ltmain" >> "$cfgfile" \ 15551 || (rm -f "$cfgfile"; exit 1) 15552 15553 if test x"$xsi_shell" = xyes; then 15554 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 15555func_dirname ()\ 15556{\ 15557\ case ${1} in\ 15558\ */*) func_dirname_result="${1%/*}${2}" ;;\ 15559\ * ) func_dirname_result="${3}" ;;\ 15560\ esac\ 15561} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 15562 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15563 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15564test 0 -eq $? || _lt_function_replace_fail=: 15565 15566 15567 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 15568func_basename ()\ 15569{\ 15570\ func_basename_result="${1##*/}"\ 15571} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 15572 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15573 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15574test 0 -eq $? || _lt_function_replace_fail=: 15575 15576 15577 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 15578func_dirname_and_basename ()\ 15579{\ 15580\ case ${1} in\ 15581\ */*) func_dirname_result="${1%/*}${2}" ;;\ 15582\ * ) func_dirname_result="${3}" ;;\ 15583\ esac\ 15584\ func_basename_result="${1##*/}"\ 15585} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 15586 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15587 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15588test 0 -eq $? || _lt_function_replace_fail=: 15589 15590 15591 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 15592func_stripname ()\ 15593{\ 15594\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 15595\ # positional parameters, so assign one to ordinary parameter first.\ 15596\ func_stripname_result=${3}\ 15597\ func_stripname_result=${func_stripname_result#"${1}"}\ 15598\ func_stripname_result=${func_stripname_result%"${2}"}\ 15599} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 15600 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15601 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15602test 0 -eq $? || _lt_function_replace_fail=: 15603 15604 15605 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 15606func_split_long_opt ()\ 15607{\ 15608\ func_split_long_opt_name=${1%%=*}\ 15609\ func_split_long_opt_arg=${1#*=}\ 15610} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 15611 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15612 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15613test 0 -eq $? || _lt_function_replace_fail=: 15614 15615 15616 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 15617func_split_short_opt ()\ 15618{\ 15619\ func_split_short_opt_arg=${1#??}\ 15620\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 15621} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 15622 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15623 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15624test 0 -eq $? || _lt_function_replace_fail=: 15625 15626 15627 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 15628func_lo2o ()\ 15629{\ 15630\ case ${1} in\ 15631\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 15632\ *) func_lo2o_result=${1} ;;\ 15633\ esac\ 15634} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 15635 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15636 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15637test 0 -eq $? || _lt_function_replace_fail=: 15638 15639 15640 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 15641func_xform ()\ 15642{\ 15643 func_xform_result=${1%.*}.lo\ 15644} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 15645 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15646 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15647test 0 -eq $? || _lt_function_replace_fail=: 15648 15649 15650 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 15651func_arith ()\ 15652{\ 15653 func_arith_result=$(( $* ))\ 15654} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 15655 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15656 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15657test 0 -eq $? || _lt_function_replace_fail=: 15658 15659 15660 sed -e '/^func_len ()$/,/^} # func_len /c\ 15661func_len ()\ 15662{\ 15663 func_len_result=${#1}\ 15664} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 15665 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15666 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15667test 0 -eq $? || _lt_function_replace_fail=: 15668 15669fi 15670 15671if test x"$lt_shell_append" = xyes; then 15672 sed -e '/^func_append ()$/,/^} # func_append /c\ 15673func_append ()\ 15674{\ 15675 eval "${1}+=\\${2}"\ 15676} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 15677 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15678 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15679test 0 -eq $? || _lt_function_replace_fail=: 15680 15681 15682 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 15683func_append_quoted ()\ 15684{\ 15685\ func_quote_for_eval "${2}"\ 15686\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 15687} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 15688 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15689 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15690test 0 -eq $? || _lt_function_replace_fail=: 15691 15692 15693 # Save a `func_append' function call where possible by direct use of '+=' 15694 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 15695 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15696 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15697 test 0 -eq $? || _lt_function_replace_fail=: 15698else 15699 # Save a `func_append' function call even when '+=' is not available 15700 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 15701 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15702 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15703 test 0 -eq $? || _lt_function_replace_fail=: 15704fi 15705 15706if test x"$_lt_function_replace_fail" = x":"; then 15707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 15708$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 15709fi 15710 15711 15712 mv -f "$cfgfile" "$ofile" || 15713 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15714 chmod +x "$ofile" 15715 15716 ;; 15717 15718 esac 15719done # for ac_tag 15720 15721 15722as_fn_exit 0 15723_ACEOF 15724ac_clean_files=$ac_clean_files_save 15725 15726test $ac_write_fail = 0 || 15727 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15728 15729 15730# configure is writing to config.log, and then calls config.status. 15731# config.status does its own redirection, appending to config.log. 15732# Unfortunately, on DOS this fails, as config.log is still kept open 15733# by configure, so config.status won't be able to write to it; its 15734# output is simply discarded. So we exec the FD to /dev/null, 15735# effectively closing config.log, so it can be properly (re)opened and 15736# appended to by config.status. When coming back to configure, we 15737# need to make the FD available again. 15738if test "$no_create" != yes; then 15739 ac_cs_success=: 15740 ac_config_status_args= 15741 test "$silent" = yes && 15742 ac_config_status_args="$ac_config_status_args --quiet" 15743 exec 5>/dev/null 15744 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15745 exec 5>>config.log 15746 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15747 # would make configure fail if this is the last instruction. 15748 $ac_cs_success || as_fn_exit 1 15749fi 15750if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15752$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15753fi 15754 15755