1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for OpenBGPD 6.9p0. 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 199test \$(( 1 + 1 )) = 2 || exit 1 200 201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 PATH=/empty FPATH=/empty; export PATH FPATH 206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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='OpenBGPD' 589PACKAGE_TARNAME='openbgpd' 590PACKAGE_VERSION='6.9p0' 591PACKAGE_STRING='OpenBGPD 6.9p0' 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_LINUX_TCPMD5_FALSE 637HAVE_LINUX_TCPMD5_TRUE 638HAVE_FMT_SCALED_FALSE 639HAVE_FMT_SCALED_TRUE 640HAVE_INET_NET_PTON_FALSE 641HAVE_INET_NET_PTON_TRUE 642BROKEN_STRNVIS_FALSE 643BROKEN_STRNVIS_TRUE 644HAVE_STRNVIS_FALSE 645HAVE_STRNVIS_TRUE 646HAVE_GETRTABLE_FALSE 647HAVE_GETRTABLE_TRUE 648HAVE_GETDTABLECOUNT_FALSE 649HAVE_GETDTABLECOUNT_TRUE 650HAVE_SIPHASH_FALSE 651HAVE_SIPHASH_TRUE 652HAVE_UNVEIL_FALSE 653HAVE_UNVEIL_TRUE 654HAVE_PLEDGE_FALSE 655HAVE_PLEDGE_TRUE 656HAVE_SYSCONF_FALSE 657HAVE_SYSCONF_TRUE 658HAVE_STRTONUM_FALSE 659HAVE_STRTONUM_TRUE 660HAVE_STRLCPY_FALSE 661HAVE_STRLCPY_TRUE 662HAVE_STRLCAT_FALSE 663HAVE_STRLCAT_TRUE 664HAVE_SHA512_FALSE 665HAVE_SHA512_TRUE 666HAVE_SETPROCTITLE_FALSE 667HAVE_SETPROCTITLE_TRUE 668HAVE_SETRESUID_FALSE 669HAVE_SETRESUID_TRUE 670HAVE_SETRESGID_FALSE 671HAVE_SETRESGID_TRUE 672HAVE_SETGROUPS_FALSE 673HAVE_SETGROUPS_TRUE 674HAVE_RECALLOCARRAY_FALSE 675HAVE_RECALLOCARRAY_TRUE 676HAVE_REALLOCARRAY_FALSE 677HAVE_REALLOCARRAY_TRUE 678HAVE_POLL_FALSE 679HAVE_POLL_TRUE 680HAVE_MEMMEM_FALSE 681HAVE_MEMMEM_TRUE 682HAVE_MD5_FALSE 683HAVE_MD5_TRUE 684HAVE_IMSG_FALSE 685HAVE_IMSG_TRUE 686HAVE_GETENTROPY_FALSE 687HAVE_GETENTROPY_TRUE 688HAVE_FREEZERO_FALSE 689HAVE_FREEZERO_TRUE 690HAVE_EXPLICIT_BZERO_FALSE 691HAVE_EXPLICIT_BZERO_TRUE 692HAVE_CLOCK_GETTIME_FALSE 693HAVE_CLOCK_GETTIME_TRUE 694HAVE_CLOCK_GETRES_FALSE 695HAVE_CLOCK_GETRES_TRUE 696HAVE_CLOSEFROM_FALSE 697HAVE_CLOSEFROM_TRUE 698HAVE_ASPRINTF_FALSE 699HAVE_ASPRINTF_TRUE 700HAVE_ARC4RANDOM_FALSE 701HAVE_ARC4RANDOM_TRUE 702AM_LDFLAGS 703AM_CFLAGS 704YFLAGS 705YACC 706CPP 707OTOOL64 708OTOOL 709LIPO 710NMEDIT 711DSYMUTIL 712MANIFEST_TOOL 713RANLIB 714ac_ct_AR 715AR 716DLLTOOL 717OBJDUMP 718LN_S 719NM 720ac_ct_DUMPBIN 721DUMPBIN 722LD 723FGREP 724EGREP 725GREP 726LIBTOOL 727SED 728HAVE_KROUTE_FALSE 729HAVE_KROUTE_TRUE 730HAVE_PFTABLE_FALSE 731HAVE_PFTABLE_TRUE 732HAVE_PFKEY_FALSE 733HAVE_PFKEY_TRUE 734HAVE_CARP_FALSE 735HAVE_CARP_TRUE 736HOST_SOLARIS_FALSE 737HOST_SOLARIS_TRUE 738HOST_NETBSD_FALSE 739HOST_NETBSD_TRUE 740HOST_LINUX_FALSE 741HOST_LINUX_TRUE 742HOST_FREEBSD_FALSE 743HOST_FREEBSD_TRUE 744HOST_DARWIN_FALSE 745HOST_DARWIN_TRUE 746am__fastdepCC_FALSE 747am__fastdepCC_TRUE 748CCDEPMODE 749am__nodep 750AMDEPBACKSLASH 751AMDEP_FALSE 752AMDEP_TRUE 753am__include 754DEPDIR 755OBJEXT 756EXEEXT 757ac_ct_CC 758CPPFLAGS 759LDFLAGS 760CFLAGS 761CC 762AM_BACKSLASH 763AM_DEFAULT_VERBOSITY 764AM_DEFAULT_V 765AM_V 766am__untar 767am__tar 768AMTAR 769am__leading_dot 770SET_MAKE 771AWK 772mkdir_p 773MKDIR_P 774INSTALL_STRIP_PROGRAM 775STRIP 776install_sh 777MAKEINFO 778AUTOHEADER 779AUTOMAKE 780AUTOCONF 781ACLOCAL 782VERSION 783PACKAGE 784CYGPATH_W 785am__isrc 786INSTALL_DATA 787INSTALL_SCRIPT 788INSTALL_PROGRAM 789host_os 790host_vendor 791host_cpu 792host 793build_os 794build_vendor 795build_cpu 796build 797target_alias 798host_alias 799build_alias 800LIBS 801ECHO_T 802ECHO_N 803ECHO_C 804DEFS 805mandir 806localedir 807libdir 808psdir 809pdfdir 810dvidir 811htmldir 812infodir 813docdir 814oldincludedir 815includedir 816runstatedir 817localstatedir 818sharedstatedir 819sysconfdir 820datadir 821datarootdir 822libexecdir 823sbindir 824bindir 825program_transform_name 826prefix 827exec_prefix 828PACKAGE_URL 829PACKAGE_BUGREPORT 830PACKAGE_STRING 831PACKAGE_VERSION 832PACKAGE_TARNAME 833PACKAGE_NAME 834PATH_SEPARATOR 835SHELL 836am__quote' 837ac_subst_files='' 838ac_user_opts=' 839enable_option_checking 840enable_silent_rules 841enable_dependency_tracking 842enable_shared 843enable_static 844with_pic 845enable_fast_install 846with_gnu_ld 847with_sysroot 848enable_libtool_lock 849enable_warnings 850with_privsep_user 851with_runstatedir 852' 853 ac_precious_vars='build_alias 854host_alias 855target_alias 856CC 857CFLAGS 858LDFLAGS 859LIBS 860CPPFLAGS 861CPP 862YACC 863YFLAGS' 864 865 866# Initialize some variables set by options. 867ac_init_help= 868ac_init_version=false 869ac_unrecognized_opts= 870ac_unrecognized_sep= 871# The variables have the same names as the options, with 872# dashes changed to underlines. 873cache_file=/dev/null 874exec_prefix=NONE 875no_create= 876no_recursion= 877prefix=NONE 878program_prefix=NONE 879program_suffix=NONE 880program_transform_name=s,x,x, 881silent= 882site= 883srcdir= 884verbose= 885x_includes=NONE 886x_libraries=NONE 887 888# Installation directory options. 889# These are left unexpanded so users can "make install exec_prefix=/foo" 890# and all the variables that are supposed to be based on exec_prefix 891# by default will actually change. 892# Use braces instead of parens because sh, perl, etc. also accept them. 893# (The list follows the same order as the GNU Coding Standards.) 894bindir='${exec_prefix}/bin' 895sbindir='${exec_prefix}/sbin' 896libexecdir='${exec_prefix}/libexec' 897datarootdir='${prefix}/share' 898datadir='${datarootdir}' 899sysconfdir='${prefix}/etc' 900sharedstatedir='${prefix}/com' 901localstatedir='${prefix}/var' 902runstatedir='${localstatedir}/run' 903includedir='${prefix}/include' 904oldincludedir='/usr/include' 905docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 906infodir='${datarootdir}/info' 907htmldir='${docdir}' 908dvidir='${docdir}' 909pdfdir='${docdir}' 910psdir='${docdir}' 911libdir='${exec_prefix}/lib' 912localedir='${datarootdir}/locale' 913mandir='${datarootdir}/man' 914 915ac_prev= 916ac_dashdash= 917for ac_option 918do 919 # If the previous option needs an argument, assign it. 920 if test -n "$ac_prev"; then 921 eval $ac_prev=\$ac_option 922 ac_prev= 923 continue 924 fi 925 926 case $ac_option in 927 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 928 *=) ac_optarg= ;; 929 *) ac_optarg=yes ;; 930 esac 931 932 # Accept the important Cygnus configure options, so we can diagnose typos. 933 934 case $ac_dashdash$ac_option in 935 --) 936 ac_dashdash=yes ;; 937 938 -bindir | --bindir | --bindi | --bind | --bin | --bi) 939 ac_prev=bindir ;; 940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 941 bindir=$ac_optarg ;; 942 943 -build | --build | --buil | --bui | --bu) 944 ac_prev=build_alias ;; 945 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 946 build_alias=$ac_optarg ;; 947 948 -cache-file | --cache-file | --cache-fil | --cache-fi \ 949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 950 ac_prev=cache_file ;; 951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 953 cache_file=$ac_optarg ;; 954 955 --config-cache | -C) 956 cache_file=config.cache ;; 957 958 -datadir | --datadir | --datadi | --datad) 959 ac_prev=datadir ;; 960 -datadir=* | --datadir=* | --datadi=* | --datad=*) 961 datadir=$ac_optarg ;; 962 963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 964 | --dataroo | --dataro | --datar) 965 ac_prev=datarootdir ;; 966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 968 datarootdir=$ac_optarg ;; 969 970 -disable-* | --disable-*) 971 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 972 # Reject names that are not valid shell variable names. 973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 974 as_fn_error $? "invalid feature name: $ac_useropt" 975 ac_useropt_orig=$ac_useropt 976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 977 case $ac_user_opts in 978 *" 979"enable_$ac_useropt" 980"*) ;; 981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 982 ac_unrecognized_sep=', ';; 983 esac 984 eval enable_$ac_useropt=no ;; 985 986 -docdir | --docdir | --docdi | --doc | --do) 987 ac_prev=docdir ;; 988 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 989 docdir=$ac_optarg ;; 990 991 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 992 ac_prev=dvidir ;; 993 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 994 dvidir=$ac_optarg ;; 995 996 -enable-* | --enable-*) 997 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 998 # Reject names that are not valid shell variable names. 999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1000 as_fn_error $? "invalid feature name: $ac_useropt" 1001 ac_useropt_orig=$ac_useropt 1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1003 case $ac_user_opts in 1004 *" 1005"enable_$ac_useropt" 1006"*) ;; 1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1008 ac_unrecognized_sep=', ';; 1009 esac 1010 eval enable_$ac_useropt=\$ac_optarg ;; 1011 1012 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1013 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1014 | --exec | --exe | --ex) 1015 ac_prev=exec_prefix ;; 1016 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1017 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1018 | --exec=* | --exe=* | --ex=*) 1019 exec_prefix=$ac_optarg ;; 1020 1021 -gas | --gas | --ga | --g) 1022 # Obsolete; use --with-gas. 1023 with_gas=yes ;; 1024 1025 -help | --help | --hel | --he | -h) 1026 ac_init_help=long ;; 1027 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1028 ac_init_help=recursive ;; 1029 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1030 ac_init_help=short ;; 1031 1032 -host | --host | --hos | --ho) 1033 ac_prev=host_alias ;; 1034 -host=* | --host=* | --hos=* | --ho=*) 1035 host_alias=$ac_optarg ;; 1036 1037 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1038 ac_prev=htmldir ;; 1039 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1040 | --ht=*) 1041 htmldir=$ac_optarg ;; 1042 1043 -includedir | --includedir | --includedi | --included | --include \ 1044 | --includ | --inclu | --incl | --inc) 1045 ac_prev=includedir ;; 1046 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1047 | --includ=* | --inclu=* | --incl=* | --inc=*) 1048 includedir=$ac_optarg ;; 1049 1050 -infodir | --infodir | --infodi | --infod | --info | --inf) 1051 ac_prev=infodir ;; 1052 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1053 infodir=$ac_optarg ;; 1054 1055 -libdir | --libdir | --libdi | --libd) 1056 ac_prev=libdir ;; 1057 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1058 libdir=$ac_optarg ;; 1059 1060 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1061 | --libexe | --libex | --libe) 1062 ac_prev=libexecdir ;; 1063 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1064 | --libexe=* | --libex=* | --libe=*) 1065 libexecdir=$ac_optarg ;; 1066 1067 -localedir | --localedir | --localedi | --localed | --locale) 1068 ac_prev=localedir ;; 1069 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1070 localedir=$ac_optarg ;; 1071 1072 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1073 | --localstate | --localstat | --localsta | --localst | --locals) 1074 ac_prev=localstatedir ;; 1075 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1076 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1077 localstatedir=$ac_optarg ;; 1078 1079 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1080 ac_prev=mandir ;; 1081 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1082 mandir=$ac_optarg ;; 1083 1084 -nfp | --nfp | --nf) 1085 # Obsolete; use --without-fp. 1086 with_fp=no ;; 1087 1088 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1089 | --no-cr | --no-c | -n) 1090 no_create=yes ;; 1091 1092 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1093 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1094 no_recursion=yes ;; 1095 1096 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1097 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1098 | --oldin | --oldi | --old | --ol | --o) 1099 ac_prev=oldincludedir ;; 1100 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1101 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1102 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1103 oldincludedir=$ac_optarg ;; 1104 1105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1106 ac_prev=prefix ;; 1107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1108 prefix=$ac_optarg ;; 1109 1110 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1111 | --program-pre | --program-pr | --program-p) 1112 ac_prev=program_prefix ;; 1113 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1114 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1115 program_prefix=$ac_optarg ;; 1116 1117 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1118 | --program-suf | --program-su | --program-s) 1119 ac_prev=program_suffix ;; 1120 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1121 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1122 program_suffix=$ac_optarg ;; 1123 1124 -program-transform-name | --program-transform-name \ 1125 | --program-transform-nam | --program-transform-na \ 1126 | --program-transform-n | --program-transform- \ 1127 | --program-transform | --program-transfor \ 1128 | --program-transfo | --program-transf \ 1129 | --program-trans | --program-tran \ 1130 | --progr-tra | --program-tr | --program-t) 1131 ac_prev=program_transform_name ;; 1132 -program-transform-name=* | --program-transform-name=* \ 1133 | --program-transform-nam=* | --program-transform-na=* \ 1134 | --program-transform-n=* | --program-transform-=* \ 1135 | --program-transform=* | --program-transfor=* \ 1136 | --program-transfo=* | --program-transf=* \ 1137 | --program-trans=* | --program-tran=* \ 1138 | --progr-tra=* | --program-tr=* | --program-t=*) 1139 program_transform_name=$ac_optarg ;; 1140 1141 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1142 ac_prev=pdfdir ;; 1143 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1144 pdfdir=$ac_optarg ;; 1145 1146 -psdir | --psdir | --psdi | --psd | --ps) 1147 ac_prev=psdir ;; 1148 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1149 psdir=$ac_optarg ;; 1150 1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1152 | -silent | --silent | --silen | --sile | --sil) 1153 silent=yes ;; 1154 1155 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1156 | --runstate | --runstat | --runsta | --runst | --runs \ 1157 | --run | --ru | --r) 1158 ac_prev=runstatedir ;; 1159 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1160 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1161 | --run=* | --ru=* | --r=*) 1162 runstatedir=$ac_optarg ;; 1163 1164 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1165 ac_prev=sbindir ;; 1166 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1167 | --sbi=* | --sb=*) 1168 sbindir=$ac_optarg ;; 1169 1170 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1171 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1172 | --sharedst | --shareds | --shared | --share | --shar \ 1173 | --sha | --sh) 1174 ac_prev=sharedstatedir ;; 1175 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1176 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1177 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1178 | --sha=* | --sh=*) 1179 sharedstatedir=$ac_optarg ;; 1180 1181 -site | --site | --sit) 1182 ac_prev=site ;; 1183 -site=* | --site=* | --sit=*) 1184 site=$ac_optarg ;; 1185 1186 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1187 ac_prev=srcdir ;; 1188 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1189 srcdir=$ac_optarg ;; 1190 1191 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1192 | --syscon | --sysco | --sysc | --sys | --sy) 1193 ac_prev=sysconfdir ;; 1194 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1195 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1196 sysconfdir=$ac_optarg ;; 1197 1198 -target | --target | --targe | --targ | --tar | --ta | --t) 1199 ac_prev=target_alias ;; 1200 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1201 target_alias=$ac_optarg ;; 1202 1203 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1204 verbose=yes ;; 1205 1206 -version | --version | --versio | --versi | --vers | -V) 1207 ac_init_version=: ;; 1208 1209 -with-* | --with-*) 1210 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1211 # Reject names that are not valid shell variable names. 1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1213 as_fn_error $? "invalid package name: $ac_useropt" 1214 ac_useropt_orig=$ac_useropt 1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1216 case $ac_user_opts in 1217 *" 1218"with_$ac_useropt" 1219"*) ;; 1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1221 ac_unrecognized_sep=', ';; 1222 esac 1223 eval with_$ac_useropt=\$ac_optarg ;; 1224 1225 -without-* | --without-*) 1226 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1227 # Reject names that are not valid shell variable names. 1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1229 as_fn_error $? "invalid package name: $ac_useropt" 1230 ac_useropt_orig=$ac_useropt 1231 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1232 case $ac_user_opts in 1233 *" 1234"with_$ac_useropt" 1235"*) ;; 1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1237 ac_unrecognized_sep=', ';; 1238 esac 1239 eval with_$ac_useropt=no ;; 1240 1241 --x) 1242 # Obsolete; use --with-x. 1243 with_x=yes ;; 1244 1245 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1246 | --x-incl | --x-inc | --x-in | --x-i) 1247 ac_prev=x_includes ;; 1248 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1249 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1250 x_includes=$ac_optarg ;; 1251 1252 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1253 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1254 ac_prev=x_libraries ;; 1255 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1256 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1257 x_libraries=$ac_optarg ;; 1258 1259 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1260Try \`$0 --help' for more information" 1261 ;; 1262 1263 *=*) 1264 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1265 # Reject names that are not valid shell variable names. 1266 case $ac_envvar in #( 1267 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1268 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1269 esac 1270 eval $ac_envvar=\$ac_optarg 1271 export $ac_envvar ;; 1272 1273 *) 1274 # FIXME: should be removed in autoconf 3.0. 1275 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1276 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1277 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1278 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1279 ;; 1280 1281 esac 1282done 1283 1284if test -n "$ac_prev"; then 1285 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1286 as_fn_error $? "missing argument to $ac_option" 1287fi 1288 1289if test -n "$ac_unrecognized_opts"; then 1290 case $enable_option_checking in 1291 no) ;; 1292 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1293 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1294 esac 1295fi 1296 1297# Check all directory arguments for consistency. 1298for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1299 datadir sysconfdir sharedstatedir localstatedir includedir \ 1300 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1301 libdir localedir mandir runstatedir 1302do 1303 eval ac_val=\$$ac_var 1304 # Remove trailing slashes. 1305 case $ac_val in 1306 */ ) 1307 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1308 eval $ac_var=\$ac_val;; 1309 esac 1310 # Be sure to have absolute directory names. 1311 case $ac_val in 1312 [\\/$]* | ?:[\\/]* ) continue;; 1313 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1314 esac 1315 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1316done 1317 1318# There might be people who depend on the old broken behavior: `$host' 1319# used to hold the argument of --host etc. 1320# FIXME: To remove some day. 1321build=$build_alias 1322host=$host_alias 1323target=$target_alias 1324 1325# FIXME: To remove some day. 1326if test "x$host_alias" != x; then 1327 if test "x$build_alias" = x; then 1328 cross_compiling=maybe 1329 elif test "x$build_alias" != "x$host_alias"; then 1330 cross_compiling=yes 1331 fi 1332fi 1333 1334ac_tool_prefix= 1335test -n "$host_alias" && ac_tool_prefix=$host_alias- 1336 1337test "$silent" = yes && exec 6>/dev/null 1338 1339 1340ac_pwd=`pwd` && test -n "$ac_pwd" && 1341ac_ls_di=`ls -di .` && 1342ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1343 as_fn_error $? "working directory cannot be determined" 1344test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1345 as_fn_error $? "pwd does not report name of working directory" 1346 1347 1348# Find the source files, if location was not specified. 1349if test -z "$srcdir"; then 1350 ac_srcdir_defaulted=yes 1351 # Try the directory containing this script, then the parent directory. 1352 ac_confdir=`$as_dirname -- "$as_myself" || 1353$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1354 X"$as_myself" : 'X\(//\)[^/]' \| \ 1355 X"$as_myself" : 'X\(//\)$' \| \ 1356 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1357$as_echo X"$as_myself" | 1358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1359 s//\1/ 1360 q 1361 } 1362 /^X\(\/\/\)[^/].*/{ 1363 s//\1/ 1364 q 1365 } 1366 /^X\(\/\/\)$/{ 1367 s//\1/ 1368 q 1369 } 1370 /^X\(\/\).*/{ 1371 s//\1/ 1372 q 1373 } 1374 s/.*/./; q'` 1375 srcdir=$ac_confdir 1376 if test ! -r "$srcdir/$ac_unique_file"; then 1377 srcdir=.. 1378 fi 1379else 1380 ac_srcdir_defaulted=no 1381fi 1382if test ! -r "$srcdir/$ac_unique_file"; then 1383 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1384 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1385fi 1386ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1387ac_abs_confdir=`( 1388 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1389 pwd)` 1390# When building in place, set srcdir=. 1391if test "$ac_abs_confdir" = "$ac_pwd"; then 1392 srcdir=. 1393fi 1394# Remove unnecessary trailing slashes from srcdir. 1395# Double slashes in file names in object file debugging info 1396# mess up M-x gdb in Emacs. 1397case $srcdir in 1398*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1399esac 1400for ac_var in $ac_precious_vars; do 1401 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1402 eval ac_env_${ac_var}_value=\$${ac_var} 1403 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1404 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1405done 1406 1407# 1408# Report the --help message. 1409# 1410if test "$ac_init_help" = "long"; then 1411 # Omit some internal or obsolete options to make the list less imposing. 1412 # This message is too long to be a string in the A/UX 3.1 sh. 1413 cat <<_ACEOF 1414\`configure' configures OpenBGPD 6.9p0 to adapt to many kinds of systems. 1415 1416Usage: $0 [OPTION]... [VAR=VALUE]... 1417 1418To assign environment variables (e.g., CC, CFLAGS...), specify them as 1419VAR=VALUE. See below for descriptions of some of the useful variables. 1420 1421Defaults for the options are specified in brackets. 1422 1423Configuration: 1424 -h, --help display this help and exit 1425 --help=short display options specific to this package 1426 --help=recursive display the short help of all the included packages 1427 -V, --version display version information and exit 1428 -q, --quiet, --silent do not print \`checking ...' messages 1429 --cache-file=FILE cache test results in FILE [disabled] 1430 -C, --config-cache alias for \`--cache-file=config.cache' 1431 -n, --no-create do not create output files 1432 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1433 1434Installation directories: 1435 --prefix=PREFIX install architecture-independent files in PREFIX 1436 [$ac_default_prefix] 1437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1438 [PREFIX] 1439 1440By default, \`make install' will install all the files in 1441\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1442an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1443for instance \`--prefix=\$HOME'. 1444 1445For better control, use the options below. 1446 1447Fine tuning of the installation directories: 1448 --bindir=DIR user executables [EPREFIX/bin] 1449 --sbindir=DIR system admin executables [EPREFIX/sbin] 1450 --libexecdir=DIR program executables [EPREFIX/libexec] 1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1454 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1455 --libdir=DIR object code libraries [EPREFIX/lib] 1456 --includedir=DIR C header files [PREFIX/include] 1457 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1460 --infodir=DIR info documentation [DATAROOTDIR/info] 1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1462 --mandir=DIR man documentation [DATAROOTDIR/man] 1463 --docdir=DIR documentation root [DATAROOTDIR/doc/openbgpd] 1464 --htmldir=DIR html documentation [DOCDIR] 1465 --dvidir=DIR dvi documentation [DOCDIR] 1466 --pdfdir=DIR pdf documentation [DOCDIR] 1467 --psdir=DIR ps documentation [DOCDIR] 1468_ACEOF 1469 1470 cat <<\_ACEOF 1471 1472Program names: 1473 --program-prefix=PREFIX prepend PREFIX to installed program names 1474 --program-suffix=SUFFIX append SUFFIX to installed program names 1475 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1476 1477System types: 1478 --build=BUILD configure for building on BUILD [guessed] 1479 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1480_ACEOF 1481fi 1482 1483if test -n "$ac_init_help"; then 1484 case $ac_init_help in 1485 short | recursive ) echo "Configuration of OpenBGPD 6.9p0:";; 1486 esac 1487 cat <<\_ACEOF 1488 1489Optional Features: 1490 --disable-option-checking ignore unrecognized --enable/--with options 1491 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1492 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1493 --enable-silent-rules less verbose build output (undo: "make V=1") 1494 --disable-silent-rules verbose build output (undo: "make V=0") 1495 --enable-dependency-tracking 1496 do not reject slow dependency extractors 1497 --disable-dependency-tracking 1498 speeds up one-time build 1499 --enable-shared[=PKGS] build shared libraries [default=yes] 1500 --enable-static[=PKGS] build static libraries [default=yes] 1501 --enable-fast-install[=PKGS] 1502 optimize for fast installation [default=yes] 1503 --disable-libtool-lock avoid locking (might break parallel builds) 1504 --disable-warnings enable compiler warnings [default=enabled] 1505 1506Optional Packages: 1507 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1508 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1509 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1510 both] 1511 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1512 --with-sysroot=DIR Search for dependent libraries within DIR 1513 (or the compiler's sysroot if not specified). 1514 --with-privsep-user=user 1515 Privilege separation user for bgpd to use 1516 --with-runstatedir=DIR Location for bgpd control socket [LOCALSTATEDIR/run] 1517 1518Some influential environment variables: 1519 CC C compiler command 1520 CFLAGS C compiler flags 1521 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1522 nonstandard directory <lib dir> 1523 LIBS libraries to pass to the linker, e.g. -l<library> 1524 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1525 you have headers in a nonstandard directory <include dir> 1526 CPP C preprocessor 1527 YACC The `Yet Another Compiler Compiler' implementation to use. 1528 Defaults to the first program found out of: `bison -y', `byacc', 1529 `yacc'. 1530 YFLAGS The list of arguments that will be passed by default to $YACC. 1531 This script will default YFLAGS to the empty string to avoid a 1532 default value of `-d' given by some make applications. 1533 1534Use these variables to override the choices made by `configure' or to help 1535it to find libraries and programs with nonstandard names/locations. 1536 1537Report bugs to the package provider. 1538_ACEOF 1539ac_status=$? 1540fi 1541 1542if test "$ac_init_help" = "recursive"; then 1543 # If there are subdirs, report their specific --help. 1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1545 test -d "$ac_dir" || 1546 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1547 continue 1548 ac_builddir=. 1549 1550case "$ac_dir" in 1551.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1552*) 1553 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1554 # A ".." for each directory in $ac_dir_suffix. 1555 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1556 case $ac_top_builddir_sub in 1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1559 esac ;; 1560esac 1561ac_abs_top_builddir=$ac_pwd 1562ac_abs_builddir=$ac_pwd$ac_dir_suffix 1563# for backward compatibility: 1564ac_top_builddir=$ac_top_build_prefix 1565 1566case $srcdir in 1567 .) # We are building in place. 1568 ac_srcdir=. 1569 ac_top_srcdir=$ac_top_builddir_sub 1570 ac_abs_top_srcdir=$ac_pwd ;; 1571 [\\/]* | ?:[\\/]* ) # Absolute name. 1572 ac_srcdir=$srcdir$ac_dir_suffix; 1573 ac_top_srcdir=$srcdir 1574 ac_abs_top_srcdir=$srcdir ;; 1575 *) # Relative name. 1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1577 ac_top_srcdir=$ac_top_build_prefix$srcdir 1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1579esac 1580ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1581 1582 cd "$ac_dir" || { ac_status=$?; continue; } 1583 # Check for guested configure. 1584 if test -f "$ac_srcdir/configure.gnu"; then 1585 echo && 1586 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1587 elif test -f "$ac_srcdir/configure"; then 1588 echo && 1589 $SHELL "$ac_srcdir/configure" --help=recursive 1590 else 1591 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1592 fi || ac_status=$? 1593 cd "$ac_pwd" || { ac_status=$?; break; } 1594 done 1595fi 1596 1597test -n "$ac_init_help" && exit $ac_status 1598if $ac_init_version; then 1599 cat <<\_ACEOF 1600OpenBGPD configure 6.9p0 1601generated by GNU Autoconf 2.69 1602 1603Copyright (C) 2012 Free Software Foundation, Inc. 1604This configure script is free software; the Free Software Foundation 1605gives unlimited permission to copy, distribute and modify it. 1606_ACEOF 1607 exit 1608fi 1609 1610## ------------------------ ## 1611## Autoconf initialization. ## 1612## ------------------------ ## 1613 1614# ac_fn_c_try_compile LINENO 1615# -------------------------- 1616# Try to compile conftest.$ac_ext, and return whether this succeeded. 1617ac_fn_c_try_compile () 1618{ 1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1620 rm -f conftest.$ac_objext 1621 if { { ac_try="$ac_compile" 1622case "(($ac_try" in 1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1624 *) ac_try_echo=$ac_try;; 1625esac 1626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1627$as_echo "$ac_try_echo"; } >&5 1628 (eval "$ac_compile") 2>conftest.err 1629 ac_status=$? 1630 if test -s conftest.err; then 1631 grep -v '^ *+' conftest.err >conftest.er1 1632 cat conftest.er1 >&5 1633 mv -f conftest.er1 conftest.err 1634 fi 1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1636 test $ac_status = 0; } && { 1637 test -z "$ac_c_werror_flag" || 1638 test ! -s conftest.err 1639 } && test -s conftest.$ac_objext; then : 1640 ac_retval=0 1641else 1642 $as_echo "$as_me: failed program was:" >&5 1643sed 's/^/| /' conftest.$ac_ext >&5 1644 1645 ac_retval=1 1646fi 1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1648 as_fn_set_status $ac_retval 1649 1650} # ac_fn_c_try_compile 1651 1652# ac_fn_c_try_link LINENO 1653# ----------------------- 1654# Try to link conftest.$ac_ext, and return whether this succeeded. 1655ac_fn_c_try_link () 1656{ 1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1658 rm -f conftest.$ac_objext conftest$ac_exeext 1659 if { { ac_try="$ac_link" 1660case "(($ac_try" in 1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1662 *) ac_try_echo=$ac_try;; 1663esac 1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1665$as_echo "$ac_try_echo"; } >&5 1666 (eval "$ac_link") 2>conftest.err 1667 ac_status=$? 1668 if test -s conftest.err; then 1669 grep -v '^ *+' conftest.err >conftest.er1 1670 cat conftest.er1 >&5 1671 mv -f conftest.er1 conftest.err 1672 fi 1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1674 test $ac_status = 0; } && { 1675 test -z "$ac_c_werror_flag" || 1676 test ! -s conftest.err 1677 } && test -s conftest$ac_exeext && { 1678 test "$cross_compiling" = yes || 1679 test -x conftest$ac_exeext 1680 }; then : 1681 ac_retval=0 1682else 1683 $as_echo "$as_me: failed program was:" >&5 1684sed 's/^/| /' conftest.$ac_ext >&5 1685 1686 ac_retval=1 1687fi 1688 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1689 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1690 # interfere with the next link command; also delete a directory that is 1691 # left behind by Apple's compiler. We do this before executing the actions. 1692 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1694 as_fn_set_status $ac_retval 1695 1696} # ac_fn_c_try_link 1697 1698# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1699# ------------------------------------------------------- 1700# Tests whether HEADER exists and can be compiled using the include files in 1701# INCLUDES, setting the cache variable VAR accordingly. 1702ac_fn_c_check_header_compile () 1703{ 1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1706$as_echo_n "checking for $2... " >&6; } 1707if eval \${$3+:} false; then : 1708 $as_echo_n "(cached) " >&6 1709else 1710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1711/* end confdefs.h. */ 1712$4 1713#include <$2> 1714_ACEOF 1715if ac_fn_c_try_compile "$LINENO"; then : 1716 eval "$3=yes" 1717else 1718 eval "$3=no" 1719fi 1720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1721fi 1722eval ac_res=\$$3 1723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1724$as_echo "$ac_res" >&6; } 1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1726 1727} # ac_fn_c_check_header_compile 1728 1729# ac_fn_c_try_cpp LINENO 1730# ---------------------- 1731# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1732ac_fn_c_try_cpp () 1733{ 1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1735 if { { ac_try="$ac_cpp conftest.$ac_ext" 1736case "(($ac_try" in 1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1738 *) ac_try_echo=$ac_try;; 1739esac 1740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1741$as_echo "$ac_try_echo"; } >&5 1742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1743 ac_status=$? 1744 if test -s conftest.err; then 1745 grep -v '^ *+' conftest.err >conftest.er1 1746 cat conftest.er1 >&5 1747 mv -f conftest.er1 conftest.err 1748 fi 1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1750 test $ac_status = 0; } > conftest.i && { 1751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1752 test ! -s conftest.err 1753 }; then : 1754 ac_retval=0 1755else 1756 $as_echo "$as_me: failed program was:" >&5 1757sed 's/^/| /' conftest.$ac_ext >&5 1758 1759 ac_retval=1 1760fi 1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1762 as_fn_set_status $ac_retval 1763 1764} # ac_fn_c_try_cpp 1765 1766# ac_fn_c_try_run LINENO 1767# ---------------------- 1768# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1769# that executables *can* be run. 1770ac_fn_c_try_run () 1771{ 1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1773 if { { ac_try="$ac_link" 1774case "(($ac_try" in 1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1776 *) ac_try_echo=$ac_try;; 1777esac 1778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1779$as_echo "$ac_try_echo"; } >&5 1780 (eval "$ac_link") 2>&5 1781 ac_status=$? 1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1783 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1784 { { case "(($ac_try" in 1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1786 *) ac_try_echo=$ac_try;; 1787esac 1788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1789$as_echo "$ac_try_echo"; } >&5 1790 (eval "$ac_try") 2>&5 1791 ac_status=$? 1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1793 test $ac_status = 0; }; }; then : 1794 ac_retval=0 1795else 1796 $as_echo "$as_me: program exited with status $ac_status" >&5 1797 $as_echo "$as_me: failed program was:" >&5 1798sed 's/^/| /' conftest.$ac_ext >&5 1799 1800 ac_retval=$ac_status 1801fi 1802 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1804 as_fn_set_status $ac_retval 1805 1806} # ac_fn_c_try_run 1807 1808# ac_fn_c_check_func LINENO FUNC VAR 1809# ---------------------------------- 1810# Tests whether FUNC exists, setting the cache variable VAR accordingly 1811ac_fn_c_check_func () 1812{ 1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1815$as_echo_n "checking for $2... " >&6; } 1816if eval \${$3+:} false; then : 1817 $as_echo_n "(cached) " >&6 1818else 1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1820/* end confdefs.h. */ 1821/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1822 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1823#define $2 innocuous_$2 1824 1825/* System header to define __stub macros and hopefully few prototypes, 1826 which can conflict with char $2 (); below. 1827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1828 <limits.h> exists even on freestanding compilers. */ 1829 1830#ifdef __STDC__ 1831# include <limits.h> 1832#else 1833# include <assert.h> 1834#endif 1835 1836#undef $2 1837 1838/* Override any GCC internal prototype to avoid an error. 1839 Use char because int might match the return type of a GCC 1840 builtin and then its argument prototype would still apply. */ 1841#ifdef __cplusplus 1842extern "C" 1843#endif 1844char $2 (); 1845/* The GNU C library defines this for functions which it implements 1846 to always fail with ENOSYS. Some functions are actually named 1847 something starting with __ and the normal name is an alias. */ 1848#if defined __stub_$2 || defined __stub___$2 1849choke me 1850#endif 1851 1852int 1853main () 1854{ 1855return $2 (); 1856 ; 1857 return 0; 1858} 1859_ACEOF 1860if ac_fn_c_try_link "$LINENO"; then : 1861 eval "$3=yes" 1862else 1863 eval "$3=no" 1864fi 1865rm -f core conftest.err conftest.$ac_objext \ 1866 conftest$ac_exeext conftest.$ac_ext 1867fi 1868eval ac_res=\$$3 1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1870$as_echo "$ac_res" >&6; } 1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1872 1873} # ac_fn_c_check_func 1874 1875# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1876# ------------------------------------------------------- 1877# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1878# the include files in INCLUDES and setting the cache variable VAR 1879# accordingly. 1880ac_fn_c_check_header_mongrel () 1881{ 1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1883 if eval \${$3+:} false; then : 1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1885$as_echo_n "checking for $2... " >&6; } 1886if eval \${$3+:} false; then : 1887 $as_echo_n "(cached) " >&6 1888fi 1889eval ac_res=\$$3 1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1891$as_echo "$ac_res" >&6; } 1892else 1893 # Is the header compilable? 1894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1895$as_echo_n "checking $2 usability... " >&6; } 1896cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1897/* end confdefs.h. */ 1898$4 1899#include <$2> 1900_ACEOF 1901if ac_fn_c_try_compile "$LINENO"; then : 1902 ac_header_compiler=yes 1903else 1904 ac_header_compiler=no 1905fi 1906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1908$as_echo "$ac_header_compiler" >&6; } 1909 1910# Is the header present? 1911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1912$as_echo_n "checking $2 presence... " >&6; } 1913cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1914/* end confdefs.h. */ 1915#include <$2> 1916_ACEOF 1917if ac_fn_c_try_cpp "$LINENO"; then : 1918 ac_header_preproc=yes 1919else 1920 ac_header_preproc=no 1921fi 1922rm -f conftest.err conftest.i conftest.$ac_ext 1923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1924$as_echo "$ac_header_preproc" >&6; } 1925 1926# So? What about this header? 1927case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1928 yes:no: ) 1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1930$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1932$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1933 ;; 1934 no:yes:* ) 1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1936$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1938$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1940$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1942$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1944$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1945 ;; 1946esac 1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1948$as_echo_n "checking for $2... " >&6; } 1949if eval \${$3+:} false; then : 1950 $as_echo_n "(cached) " >&6 1951else 1952 eval "$3=\$ac_header_compiler" 1953fi 1954eval ac_res=\$$3 1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1956$as_echo "$ac_res" >&6; } 1957fi 1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1959 1960} # ac_fn_c_check_header_mongrel 1961 1962# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1963# ---------------------------------------------------- 1964# Tries to find if the field MEMBER exists in type AGGR, after including 1965# INCLUDES, setting cache variable VAR accordingly. 1966ac_fn_c_check_member () 1967{ 1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1970$as_echo_n "checking for $2.$3... " >&6; } 1971if eval \${$4+:} false; then : 1972 $as_echo_n "(cached) " >&6 1973else 1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1975/* end confdefs.h. */ 1976$5 1977int 1978main () 1979{ 1980static $2 ac_aggr; 1981if (ac_aggr.$3) 1982return 0; 1983 ; 1984 return 0; 1985} 1986_ACEOF 1987if ac_fn_c_try_compile "$LINENO"; then : 1988 eval "$4=yes" 1989else 1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1991/* end confdefs.h. */ 1992$5 1993int 1994main () 1995{ 1996static $2 ac_aggr; 1997if (sizeof ac_aggr.$3) 1998return 0; 1999 ; 2000 return 0; 2001} 2002_ACEOF 2003if ac_fn_c_try_compile "$LINENO"; then : 2004 eval "$4=yes" 2005else 2006 eval "$4=no" 2007fi 2008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2009fi 2010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2011fi 2012eval ac_res=\$$4 2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2014$as_echo "$ac_res" >&6; } 2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2016 2017} # ac_fn_c_check_member 2018cat >config.log <<_ACEOF 2019This file contains any messages produced by compilers while 2020running configure, to aid debugging if configure makes a mistake. 2021 2022It was created by OpenBGPD $as_me 6.9p0, which was 2023generated by GNU Autoconf 2.69. Invocation command line was 2024 2025 $ $0 $@ 2026 2027_ACEOF 2028exec 5>>config.log 2029{ 2030cat <<_ASUNAME 2031## --------- ## 2032## Platform. ## 2033## --------- ## 2034 2035hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2036uname -m = `(uname -m) 2>/dev/null || echo unknown` 2037uname -r = `(uname -r) 2>/dev/null || echo unknown` 2038uname -s = `(uname -s) 2>/dev/null || echo unknown` 2039uname -v = `(uname -v) 2>/dev/null || echo unknown` 2040 2041/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2042/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2043 2044/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2045/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2046/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2047/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2048/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2049/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2050/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2051 2052_ASUNAME 2053 2054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2055for as_dir in $PATH 2056do 2057 IFS=$as_save_IFS 2058 test -z "$as_dir" && as_dir=. 2059 $as_echo "PATH: $as_dir" 2060 done 2061IFS=$as_save_IFS 2062 2063} >&5 2064 2065cat >&5 <<_ACEOF 2066 2067 2068## ----------- ## 2069## Core tests. ## 2070## ----------- ## 2071 2072_ACEOF 2073 2074 2075# Keep a trace of the command line. 2076# Strip out --no-create and --no-recursion so they do not pile up. 2077# Strip out --silent because we don't want to record it for future runs. 2078# Also quote any args containing shell meta-characters. 2079# Make two passes to allow for proper duplicate-argument suppression. 2080ac_configure_args= 2081ac_configure_args0= 2082ac_configure_args1= 2083ac_must_keep_next=false 2084for ac_pass in 1 2 2085do 2086 for ac_arg 2087 do 2088 case $ac_arg in 2089 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2091 | -silent | --silent | --silen | --sile | --sil) 2092 continue ;; 2093 *\'*) 2094 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2095 esac 2096 case $ac_pass in 2097 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2098 2) 2099 as_fn_append ac_configure_args1 " '$ac_arg'" 2100 if test $ac_must_keep_next = true; then 2101 ac_must_keep_next=false # Got value, back to normal. 2102 else 2103 case $ac_arg in 2104 *=* | --config-cache | -C | -disable-* | --disable-* \ 2105 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2106 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2107 | -with-* | --with-* | -without-* | --without-* | --x) 2108 case "$ac_configure_args0 " in 2109 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2110 esac 2111 ;; 2112 -* ) ac_must_keep_next=true ;; 2113 esac 2114 fi 2115 as_fn_append ac_configure_args " '$ac_arg'" 2116 ;; 2117 esac 2118 done 2119done 2120{ ac_configure_args0=; unset ac_configure_args0;} 2121{ ac_configure_args1=; unset ac_configure_args1;} 2122 2123# When interrupted or exit'd, cleanup temporary files, and complete 2124# config.log. We remove comments because anyway the quotes in there 2125# would cause problems or look ugly. 2126# WARNING: Use '\'' to represent an apostrophe within the trap. 2127# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2128trap 'exit_status=$? 2129 # Save into config.log some information that might help in debugging. 2130 { 2131 echo 2132 2133 $as_echo "## ---------------- ## 2134## Cache variables. ## 2135## ---------------- ##" 2136 echo 2137 # The following way of writing the cache mishandles newlines in values, 2138( 2139 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2140 eval ac_val=\$$ac_var 2141 case $ac_val in #( 2142 *${as_nl}*) 2143 case $ac_var in #( 2144 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2145$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2146 esac 2147 case $ac_var in #( 2148 _ | IFS | as_nl) ;; #( 2149 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2150 *) { eval $ac_var=; unset $ac_var;} ;; 2151 esac ;; 2152 esac 2153 done 2154 (set) 2>&1 | 2155 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2156 *${as_nl}ac_space=\ *) 2157 sed -n \ 2158 "s/'\''/'\''\\\\'\'''\''/g; 2159 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2160 ;; #( 2161 *) 2162 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2163 ;; 2164 esac | 2165 sort 2166) 2167 echo 2168 2169 $as_echo "## ----------------- ## 2170## Output variables. ## 2171## ----------------- ##" 2172 echo 2173 for ac_var in $ac_subst_vars 2174 do 2175 eval ac_val=\$$ac_var 2176 case $ac_val in 2177 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2178 esac 2179 $as_echo "$ac_var='\''$ac_val'\''" 2180 done | sort 2181 echo 2182 2183 if test -n "$ac_subst_files"; then 2184 $as_echo "## ------------------- ## 2185## File substitutions. ## 2186## ------------------- ##" 2187 echo 2188 for ac_var in $ac_subst_files 2189 do 2190 eval ac_val=\$$ac_var 2191 case $ac_val in 2192 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2193 esac 2194 $as_echo "$ac_var='\''$ac_val'\''" 2195 done | sort 2196 echo 2197 fi 2198 2199 if test -s confdefs.h; then 2200 $as_echo "## ----------- ## 2201## confdefs.h. ## 2202## ----------- ##" 2203 echo 2204 cat confdefs.h 2205 echo 2206 fi 2207 test "$ac_signal" != 0 && 2208 $as_echo "$as_me: caught signal $ac_signal" 2209 $as_echo "$as_me: exit $exit_status" 2210 } >&5 2211 rm -f core *.core core.conftest.* && 2212 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2213 exit $exit_status 2214' 0 2215for ac_signal in 1 2 13 15; do 2216 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2217done 2218ac_signal=0 2219 2220# confdefs.h avoids OS command line length limits that DEFS can exceed. 2221rm -f -r conftest* confdefs.h 2222 2223$as_echo "/* confdefs.h */" > confdefs.h 2224 2225# Predefined preprocessor variables. 2226 2227cat >>confdefs.h <<_ACEOF 2228#define PACKAGE_NAME "$PACKAGE_NAME" 2229_ACEOF 2230 2231cat >>confdefs.h <<_ACEOF 2232#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2233_ACEOF 2234 2235cat >>confdefs.h <<_ACEOF 2236#define PACKAGE_VERSION "$PACKAGE_VERSION" 2237_ACEOF 2238 2239cat >>confdefs.h <<_ACEOF 2240#define PACKAGE_STRING "$PACKAGE_STRING" 2241_ACEOF 2242 2243cat >>confdefs.h <<_ACEOF 2244#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2245_ACEOF 2246 2247cat >>confdefs.h <<_ACEOF 2248#define PACKAGE_URL "$PACKAGE_URL" 2249_ACEOF 2250 2251 2252# Let the site file select an alternate cache file if it wants to. 2253# Prefer an explicitly selected file to automatically selected ones. 2254ac_site_file1=NONE 2255ac_site_file2=NONE 2256if test -n "$CONFIG_SITE"; then 2257 # We do not want a PATH search for config.site. 2258 case $CONFIG_SITE in #(( 2259 -*) ac_site_file1=./$CONFIG_SITE;; 2260 */*) ac_site_file1=$CONFIG_SITE;; 2261 *) ac_site_file1=./$CONFIG_SITE;; 2262 esac 2263elif test "x$prefix" != xNONE; then 2264 ac_site_file1=$prefix/share/config.site 2265 ac_site_file2=$prefix/etc/config.site 2266else 2267 ac_site_file1=$ac_default_prefix/share/config.site 2268 ac_site_file2=$ac_default_prefix/etc/config.site 2269fi 2270for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2271do 2272 test "x$ac_site_file" = xNONE && continue 2273 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2274 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2275$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2276 sed 's/^/| /' "$ac_site_file" >&5 2277 . "$ac_site_file" \ 2278 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2279$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2280as_fn_error $? "failed to load site script $ac_site_file 2281See \`config.log' for more details" "$LINENO" 5; } 2282 fi 2283done 2284 2285if test -r "$cache_file"; then 2286 # Some versions of bash will fail to source /dev/null (special files 2287 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2288 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2289 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2290$as_echo "$as_me: loading cache $cache_file" >&6;} 2291 case $cache_file in 2292 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2293 *) . "./$cache_file";; 2294 esac 2295 fi 2296else 2297 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2298$as_echo "$as_me: creating cache $cache_file" >&6;} 2299 >$cache_file 2300fi 2301 2302# Check that the precious variables saved in the cache have kept the same 2303# value. 2304ac_cache_corrupted=false 2305for ac_var in $ac_precious_vars; do 2306 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2307 eval ac_new_set=\$ac_env_${ac_var}_set 2308 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2309 eval ac_new_val=\$ac_env_${ac_var}_value 2310 case $ac_old_set,$ac_new_set in 2311 set,) 2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2313$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2314 ac_cache_corrupted=: ;; 2315 ,set) 2316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2317$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2318 ac_cache_corrupted=: ;; 2319 ,);; 2320 *) 2321 if test "x$ac_old_val" != "x$ac_new_val"; then 2322 # differences in whitespace do not lead to failure. 2323 ac_old_val_w=`echo x $ac_old_val` 2324 ac_new_val_w=`echo x $ac_new_val` 2325 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2327$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2328 ac_cache_corrupted=: 2329 else 2330 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2331$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2332 eval $ac_var=\$ac_old_val 2333 fi 2334 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2335$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2336 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2337$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2338 fi;; 2339 esac 2340 # Pass precious variables to config.status. 2341 if test "$ac_new_set" = set; then 2342 case $ac_new_val in 2343 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2344 *) ac_arg=$ac_var=$ac_new_val ;; 2345 esac 2346 case " $ac_configure_args " in 2347 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2348 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2349 esac 2350 fi 2351done 2352if $ac_cache_corrupted; then 2353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2356$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2357 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2358fi 2359## -------------------- ## 2360## Main body of script. ## 2361## -------------------- ## 2362 2363ac_ext=c 2364ac_cpp='$CPP $CPPFLAGS' 2365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2367ac_compiler_gnu=$ac_cv_c_compiler_gnu 2368 2369 2370 2371ac_aux_dir= 2372for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2373 if 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/install.sh"; then 2378 ac_aux_dir=$ac_dir 2379 ac_install_sh="$ac_aux_dir/install.sh -c" 2380 break 2381 elif test -f "$ac_dir/shtool"; then 2382 ac_aux_dir=$ac_dir 2383 ac_install_sh="$ac_aux_dir/shtool install -c" 2384 break 2385 fi 2386done 2387if test -z "$ac_aux_dir"; then 2388 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2389fi 2390 2391# These three variables are undocumented and unsupported, 2392# and are intended to be withdrawn in a future Autoconf release. 2393# They can cause serious problems if a builder's source tree is in a directory 2394# whose full name contains unusual characters. 2395ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2396ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2397ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2398 2399 2400# Make sure we can run config.sub. 2401$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2402 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2403 2404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2405$as_echo_n "checking build system type... " >&6; } 2406if ${ac_cv_build+:} false; then : 2407 $as_echo_n "(cached) " >&6 2408else 2409 ac_build_alias=$build_alias 2410test "x$ac_build_alias" = x && 2411 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2412test "x$ac_build_alias" = x && 2413 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2414ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2415 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2416 2417fi 2418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2419$as_echo "$ac_cv_build" >&6; } 2420case $ac_cv_build in 2421*-*-*) ;; 2422*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2423esac 2424build=$ac_cv_build 2425ac_save_IFS=$IFS; IFS='-' 2426set x $ac_cv_build 2427shift 2428build_cpu=$1 2429build_vendor=$2 2430shift; shift 2431# Remember, the first character of IFS is used to create $*, 2432# except with old shells: 2433build_os=$* 2434IFS=$ac_save_IFS 2435case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2436 2437 2438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2439$as_echo_n "checking host system type... " >&6; } 2440if ${ac_cv_host+:} false; then : 2441 $as_echo_n "(cached) " >&6 2442else 2443 if test "x$host_alias" = x; then 2444 ac_cv_host=$ac_cv_build 2445else 2446 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2447 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2448fi 2449 2450fi 2451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2452$as_echo "$ac_cv_host" >&6; } 2453case $ac_cv_host in 2454*-*-*) ;; 2455*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2456esac 2457host=$ac_cv_host 2458ac_save_IFS=$IFS; IFS='-' 2459set x $ac_cv_host 2460shift 2461host_cpu=$1 2462host_vendor=$2 2463shift; shift 2464# Remember, the first character of IFS is used to create $*, 2465# except with old shells: 2466host_os=$* 2467IFS=$ac_save_IFS 2468case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2469 2470 2471am__api_version='1.16' 2472 2473# Find a good install program. We prefer a C program (faster), 2474# so one script is as good as another. But avoid the broken or 2475# incompatible versions: 2476# SysV /etc/install, /usr/sbin/install 2477# SunOS /usr/etc/install 2478# IRIX /sbin/install 2479# AIX /bin/install 2480# AmigaOS /C/install, which installs bootblocks on floppy discs 2481# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2482# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2483# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2484# OS/2's system install, which has a completely different semantic 2485# ./install, which can be erroneously created by make from ./install.sh. 2486# Reject install programs that cannot install multiple files. 2487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2488$as_echo_n "checking for a BSD-compatible install... " >&6; } 2489if test -z "$INSTALL"; then 2490if ${ac_cv_path_install+:} false; then : 2491 $as_echo_n "(cached) " >&6 2492else 2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2494for as_dir in $PATH 2495do 2496 IFS=$as_save_IFS 2497 test -z "$as_dir" && as_dir=. 2498 # Account for people who put trailing slashes in PATH elements. 2499case $as_dir/ in #(( 2500 ./ | .// | /[cC]/* | \ 2501 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2502 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2503 /usr/ucb/* ) ;; 2504 *) 2505 # OSF1 and SCO ODT 3.0 have their own names for install. 2506 # Don't use installbsd from OSF since it installs stuff as root 2507 # by default. 2508 for ac_prog in ginstall scoinst install; do 2509 for ac_exec_ext in '' $ac_executable_extensions; do 2510 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2511 if test $ac_prog = install && 2512 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2513 # AIX install. It has an incompatible calling convention. 2514 : 2515 elif test $ac_prog = install && 2516 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2517 # program-specific install script used by HP pwplus--don't use. 2518 : 2519 else 2520 rm -rf conftest.one conftest.two conftest.dir 2521 echo one > conftest.one 2522 echo two > conftest.two 2523 mkdir conftest.dir 2524 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2525 test -s conftest.one && test -s conftest.two && 2526 test -s conftest.dir/conftest.one && 2527 test -s conftest.dir/conftest.two 2528 then 2529 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2530 break 3 2531 fi 2532 fi 2533 fi 2534 done 2535 done 2536 ;; 2537esac 2538 2539 done 2540IFS=$as_save_IFS 2541 2542rm -rf conftest.one conftest.two conftest.dir 2543 2544fi 2545 if test "${ac_cv_path_install+set}" = set; then 2546 INSTALL=$ac_cv_path_install 2547 else 2548 # As a last resort, use the slow shell script. Don't cache a 2549 # value for INSTALL within a source directory, because that will 2550 # break other packages using the cache if that directory is 2551 # removed, or if the value is a relative name. 2552 INSTALL=$ac_install_sh 2553 fi 2554fi 2555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2556$as_echo "$INSTALL" >&6; } 2557 2558# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2559# It thinks the first close brace ends the variable substitution. 2560test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2561 2562test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2563 2564test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2565 2566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2567$as_echo_n "checking whether build environment is sane... " >&6; } 2568# Reject unsafe characters in $srcdir or the absolute working directory 2569# name. Accept space and tab only in the latter. 2570am_lf=' 2571' 2572case `pwd` in 2573 *[\\\"\#\$\&\'\`$am_lf]*) 2574 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2575esac 2576case $srcdir in 2577 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2578 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2579esac 2580 2581# Do 'set' in a subshell so we don't clobber the current shell's 2582# arguments. Must try -L first in case configure is actually a 2583# symlink; some systems play weird games with the mod time of symlinks 2584# (eg FreeBSD returns the mod time of the symlink's containing 2585# directory). 2586if ( 2587 am_has_slept=no 2588 for am_try in 1 2; do 2589 echo "timestamp, slept: $am_has_slept" > conftest.file 2590 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2591 if test "$*" = "X"; then 2592 # -L didn't work. 2593 set X `ls -t "$srcdir/configure" conftest.file` 2594 fi 2595 if test "$*" != "X $srcdir/configure conftest.file" \ 2596 && test "$*" != "X conftest.file $srcdir/configure"; then 2597 2598 # If neither matched, then we have a broken ls. This can happen 2599 # if, for instance, CONFIG_SHELL is bash and it inherits a 2600 # broken ls alias from the environment. This has actually 2601 # happened. Such a system could not be considered "sane". 2602 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2603 alias in your environment" "$LINENO" 5 2604 fi 2605 if test "$2" = conftest.file || test $am_try -eq 2; then 2606 break 2607 fi 2608 # Just in case. 2609 sleep 1 2610 am_has_slept=yes 2611 done 2612 test "$2" = conftest.file 2613 ) 2614then 2615 # Ok. 2616 : 2617else 2618 as_fn_error $? "newly created file is older than distributed files! 2619Check your system clock" "$LINENO" 5 2620fi 2621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2622$as_echo "yes" >&6; } 2623# If we didn't sleep, we still need to ensure time stamps of config.status and 2624# generated files are strictly newer. 2625am_sleep_pid= 2626if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2627 ( sleep 1 ) & 2628 am_sleep_pid=$! 2629fi 2630 2631rm -f conftest.file 2632 2633test "$program_prefix" != NONE && 2634 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2635# Use a double $ so make ignores it. 2636test "$program_suffix" != NONE && 2637 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2638# Double any \ or $. 2639# By default was `s,x,x', remove it if useless. 2640ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2641program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2642 2643# Expand $ac_aux_dir to an absolute path. 2644am_aux_dir=`cd "$ac_aux_dir" && pwd` 2645 2646if test x"${MISSING+set}" != xset; then 2647 MISSING="\${SHELL} '$am_aux_dir/missing'" 2648fi 2649# Use eval to expand $SHELL 2650if eval "$MISSING --is-lightweight"; then 2651 am_missing_run="$MISSING " 2652else 2653 am_missing_run= 2654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2655$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2656fi 2657 2658if test x"${install_sh+set}" != xset; then 2659 case $am_aux_dir in 2660 *\ * | *\ *) 2661 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2662 *) 2663 install_sh="\${SHELL} $am_aux_dir/install-sh" 2664 esac 2665fi 2666 2667# Installed binaries are usually stripped using 'strip' when the user 2668# run "make install-strip". However 'strip' might not be the right 2669# tool to use in cross-compilation environments, therefore Automake 2670# will honor the 'STRIP' environment variable to overrule this program. 2671if test "$cross_compiling" != no; then 2672 if test -n "$ac_tool_prefix"; then 2673 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2674set dummy ${ac_tool_prefix}strip; ac_word=$2 2675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2676$as_echo_n "checking for $ac_word... " >&6; } 2677if ${ac_cv_prog_STRIP+:} false; then : 2678 $as_echo_n "(cached) " >&6 2679else 2680 if test -n "$STRIP"; then 2681 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2682else 2683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2684for as_dir in $PATH 2685do 2686 IFS=$as_save_IFS 2687 test -z "$as_dir" && as_dir=. 2688 for ac_exec_ext in '' $ac_executable_extensions; do 2689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2690 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2692 break 2 2693 fi 2694done 2695 done 2696IFS=$as_save_IFS 2697 2698fi 2699fi 2700STRIP=$ac_cv_prog_STRIP 2701if test -n "$STRIP"; then 2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2703$as_echo "$STRIP" >&6; } 2704else 2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2706$as_echo "no" >&6; } 2707fi 2708 2709 2710fi 2711if test -z "$ac_cv_prog_STRIP"; then 2712 ac_ct_STRIP=$STRIP 2713 # Extract the first word of "strip", so it can be a program name with args. 2714set dummy strip; ac_word=$2 2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2716$as_echo_n "checking for $ac_word... " >&6; } 2717if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2718 $as_echo_n "(cached) " >&6 2719else 2720 if test -n "$ac_ct_STRIP"; then 2721 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2722else 2723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2724for as_dir in $PATH 2725do 2726 IFS=$as_save_IFS 2727 test -z "$as_dir" && as_dir=. 2728 for ac_exec_ext in '' $ac_executable_extensions; do 2729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2730 ac_cv_prog_ac_ct_STRIP="strip" 2731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2732 break 2 2733 fi 2734done 2735 done 2736IFS=$as_save_IFS 2737 2738fi 2739fi 2740ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2741if test -n "$ac_ct_STRIP"; then 2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2743$as_echo "$ac_ct_STRIP" >&6; } 2744else 2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2746$as_echo "no" >&6; } 2747fi 2748 2749 if test "x$ac_ct_STRIP" = x; then 2750 STRIP=":" 2751 else 2752 case $cross_compiling:$ac_tool_warned in 2753yes:) 2754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2756ac_tool_warned=yes ;; 2757esac 2758 STRIP=$ac_ct_STRIP 2759 fi 2760else 2761 STRIP="$ac_cv_prog_STRIP" 2762fi 2763 2764fi 2765INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2766 2767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2768$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2769if test -z "$MKDIR_P"; then 2770 if ${ac_cv_path_mkdir+:} false; then : 2771 $as_echo_n "(cached) " >&6 2772else 2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2774for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2775do 2776 IFS=$as_save_IFS 2777 test -z "$as_dir" && as_dir=. 2778 for ac_prog in mkdir gmkdir; do 2779 for ac_exec_ext in '' $ac_executable_extensions; do 2780 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2781 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2782 'mkdir (GNU coreutils) '* | \ 2783 'mkdir (coreutils) '* | \ 2784 'mkdir (fileutils) '4.1*) 2785 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2786 break 3;; 2787 esac 2788 done 2789 done 2790 done 2791IFS=$as_save_IFS 2792 2793fi 2794 2795 test -d ./--version && rmdir ./--version 2796 if test "${ac_cv_path_mkdir+set}" = set; then 2797 MKDIR_P="$ac_cv_path_mkdir -p" 2798 else 2799 # As a last resort, use the slow shell script. Don't cache a 2800 # value for MKDIR_P within a source directory, because that will 2801 # break other packages using the cache if that directory is 2802 # removed, or if the value is a relative name. 2803 MKDIR_P="$ac_install_sh -d" 2804 fi 2805fi 2806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2807$as_echo "$MKDIR_P" >&6; } 2808 2809for ac_prog in gawk mawk nawk awk 2810do 2811 # Extract the first word of "$ac_prog", so it can be a program name with args. 2812set dummy $ac_prog; ac_word=$2 2813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2814$as_echo_n "checking for $ac_word... " >&6; } 2815if ${ac_cv_prog_AWK+:} false; then : 2816 $as_echo_n "(cached) " >&6 2817else 2818 if test -n "$AWK"; then 2819 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2820else 2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2822for as_dir in $PATH 2823do 2824 IFS=$as_save_IFS 2825 test -z "$as_dir" && as_dir=. 2826 for ac_exec_ext in '' $ac_executable_extensions; do 2827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2828 ac_cv_prog_AWK="$ac_prog" 2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2830 break 2 2831 fi 2832done 2833 done 2834IFS=$as_save_IFS 2835 2836fi 2837fi 2838AWK=$ac_cv_prog_AWK 2839if test -n "$AWK"; then 2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2841$as_echo "$AWK" >&6; } 2842else 2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2844$as_echo "no" >&6; } 2845fi 2846 2847 2848 test -n "$AWK" && break 2849done 2850 2851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2852$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2853set x ${MAKE-make} 2854ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2855if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2856 $as_echo_n "(cached) " >&6 2857else 2858 cat >conftest.make <<\_ACEOF 2859SHELL = /bin/sh 2860all: 2861 @echo '@@@%%%=$(MAKE)=@@@%%%' 2862_ACEOF 2863# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2864case `${MAKE-make} -f conftest.make 2>/dev/null` in 2865 *@@@%%%=?*=@@@%%%*) 2866 eval ac_cv_prog_make_${ac_make}_set=yes;; 2867 *) 2868 eval ac_cv_prog_make_${ac_make}_set=no;; 2869esac 2870rm -f conftest.make 2871fi 2872if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2874$as_echo "yes" >&6; } 2875 SET_MAKE= 2876else 2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2878$as_echo "no" >&6; } 2879 SET_MAKE="MAKE=${MAKE-make}" 2880fi 2881 2882rm -rf .tst 2>/dev/null 2883mkdir .tst 2>/dev/null 2884if test -d .tst; then 2885 am__leading_dot=. 2886else 2887 am__leading_dot=_ 2888fi 2889rmdir .tst 2>/dev/null 2890 2891# Check whether --enable-silent-rules was given. 2892if test "${enable_silent_rules+set}" = set; then : 2893 enableval=$enable_silent_rules; 2894fi 2895 2896case $enable_silent_rules in # ((( 2897 yes) AM_DEFAULT_VERBOSITY=0;; 2898 no) AM_DEFAULT_VERBOSITY=1;; 2899 *) AM_DEFAULT_VERBOSITY=1;; 2900esac 2901am_make=${MAKE-make} 2902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2903$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2904if ${am_cv_make_support_nested_variables+:} false; then : 2905 $as_echo_n "(cached) " >&6 2906else 2907 if $as_echo 'TRUE=$(BAR$(V)) 2908BAR0=false 2909BAR1=true 2910V=1 2911am__doit: 2912 @$(TRUE) 2913.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2914 am_cv_make_support_nested_variables=yes 2915else 2916 am_cv_make_support_nested_variables=no 2917fi 2918fi 2919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2920$as_echo "$am_cv_make_support_nested_variables" >&6; } 2921if test $am_cv_make_support_nested_variables = yes; then 2922 AM_V='$(V)' 2923 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2924else 2925 AM_V=$AM_DEFAULT_VERBOSITY 2926 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2927fi 2928AM_BACKSLASH='\' 2929 2930if test "`cd $srcdir && pwd`" != "`pwd`"; then 2931 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2932 # is not polluted with repeated "-I." 2933 am__isrc=' -I$(srcdir)' 2934 # test to see if srcdir already configured 2935 if test -f $srcdir/config.status; then 2936 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2937 fi 2938fi 2939 2940# test whether we have cygpath 2941if test -z "$CYGPATH_W"; then 2942 if (cygpath --version) >/dev/null 2>/dev/null; then 2943 CYGPATH_W='cygpath -w' 2944 else 2945 CYGPATH_W=echo 2946 fi 2947fi 2948 2949 2950# Define the identity of the package. 2951 PACKAGE='openbgpd' 2952 VERSION='6.9p0' 2953 2954 2955cat >>confdefs.h <<_ACEOF 2956#define PACKAGE "$PACKAGE" 2957_ACEOF 2958 2959 2960cat >>confdefs.h <<_ACEOF 2961#define VERSION "$VERSION" 2962_ACEOF 2963 2964# Some tools Automake needs. 2965 2966ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2967 2968 2969AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2970 2971 2972AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2973 2974 2975AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2976 2977 2978MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2979 2980# For better backward compatibility. To be removed once Automake 1.9.x 2981# dies out for good. For more background, see: 2982# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2983# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2984mkdir_p='$(MKDIR_P)' 2985 2986# We need awk for the "check" target (and possibly the TAP driver). The 2987# system "awk" is bad on some platforms. 2988# Always define AMTAR for backward compatibility. Yes, it's still used 2989# in the wild :-( We should find a proper way to deprecate it ... 2990AMTAR='$${TAR-tar}' 2991 2992 2993# We'll loop over all known methods to create a tar archive until one works. 2994_am_tools='gnutar pax cpio none' 2995 2996am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2997 2998 2999 3000 3001 3002 3003# POSIX will say in a future version that running "rm -f" with no argument 3004# is OK; and we want to be able to make that assumption in our Makefile 3005# recipes. So use an aggressive probe to check that the usage we want is 3006# actually supported "in the wild" to an acceptable degree. 3007# See automake bug#10828. 3008# To make any issue more visible, cause the running configure to be aborted 3009# by default if the 'rm' program in use doesn't match our expectations; the 3010# user can still override this though. 3011if rm -f && rm -fr && rm -rf; then : OK; else 3012 cat >&2 <<'END' 3013Oops! 3014 3015Your 'rm' program seems unable to run without file operands specified 3016on the command line, even when the '-f' option is present. This is contrary 3017to the behaviour of most rm programs out there, and not conforming with 3018the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3019 3020Please tell bug-automake@gnu.org about your system, including the value 3021of your $PATH and any error possibly output before this message. This 3022can help us improve future automake versions. 3023 3024END 3025 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3026 echo 'Configuration will proceed anyway, since you have set the' >&2 3027 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3028 echo >&2 3029 else 3030 cat >&2 <<'END' 3031Aborting the configuration process, to ensure you take notice of the issue. 3032 3033You can download and install GNU coreutils to get an 'rm' implementation 3034that behaves properly: <https://www.gnu.org/software/coreutils/>. 3035 3036If you want to complete the configuration process using your problematic 3037'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3038to "yes", and re-run configure. 3039 3040END 3041 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3042 fi 3043fi 3044 3045 3046# Check whether --enable-silent-rules was given. 3047if test "${enable_silent_rules+set}" = set; then : 3048 enableval=$enable_silent_rules; 3049fi 3050 3051case $enable_silent_rules in # ((( 3052 yes) AM_DEFAULT_VERBOSITY=0;; 3053 no) AM_DEFAULT_VERBOSITY=1;; 3054 *) AM_DEFAULT_VERBOSITY=0;; 3055esac 3056am_make=${MAKE-make} 3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3058$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3059if ${am_cv_make_support_nested_variables+:} false; then : 3060 $as_echo_n "(cached) " >&6 3061else 3062 if $as_echo 'TRUE=$(BAR$(V)) 3063BAR0=false 3064BAR1=true 3065V=1 3066am__doit: 3067 @$(TRUE) 3068.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3069 am_cv_make_support_nested_variables=yes 3070else 3071 am_cv_make_support_nested_variables=no 3072fi 3073fi 3074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3075$as_echo "$am_cv_make_support_nested_variables" >&6; } 3076if test $am_cv_make_support_nested_variables = yes; then 3077 AM_V='$(V)' 3078 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3079else 3080 AM_V=$AM_DEFAULT_VERBOSITY 3081 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3082fi 3083AM_BACKSLASH='\' 3084 3085ac_ext=c 3086ac_cpp='$CPP $CPPFLAGS' 3087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3089ac_compiler_gnu=$ac_cv_c_compiler_gnu 3090if test -n "$ac_tool_prefix"; then 3091 for ac_prog in cc gcc 3092 do 3093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3094set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3096$as_echo_n "checking for $ac_word... " >&6; } 3097if ${ac_cv_prog_CC+:} false; then : 3098 $as_echo_n "(cached) " >&6 3099else 3100 if test -n "$CC"; then 3101 ac_cv_prog_CC="$CC" # Let the user override the test. 3102else 3103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3104for as_dir in $PATH 3105do 3106 IFS=$as_save_IFS 3107 test -z "$as_dir" && as_dir=. 3108 for ac_exec_ext in '' $ac_executable_extensions; do 3109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3110 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3112 break 2 3113 fi 3114done 3115 done 3116IFS=$as_save_IFS 3117 3118fi 3119fi 3120CC=$ac_cv_prog_CC 3121if test -n "$CC"; then 3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3123$as_echo "$CC" >&6; } 3124else 3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3126$as_echo "no" >&6; } 3127fi 3128 3129 3130 test -n "$CC" && break 3131 done 3132fi 3133if test -z "$CC"; then 3134 ac_ct_CC=$CC 3135 for ac_prog in cc gcc 3136do 3137 # Extract the first word of "$ac_prog", so it can be a program name with args. 3138set dummy $ac_prog; ac_word=$2 3139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3140$as_echo_n "checking for $ac_word... " >&6; } 3141if ${ac_cv_prog_ac_ct_CC+:} false; then : 3142 $as_echo_n "(cached) " >&6 3143else 3144 if test -n "$ac_ct_CC"; then 3145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3146else 3147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3148for as_dir in $PATH 3149do 3150 IFS=$as_save_IFS 3151 test -z "$as_dir" && as_dir=. 3152 for ac_exec_ext in '' $ac_executable_extensions; do 3153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3154 ac_cv_prog_ac_ct_CC="$ac_prog" 3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3156 break 2 3157 fi 3158done 3159 done 3160IFS=$as_save_IFS 3161 3162fi 3163fi 3164ac_ct_CC=$ac_cv_prog_ac_ct_CC 3165if test -n "$ac_ct_CC"; then 3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3167$as_echo "$ac_ct_CC" >&6; } 3168else 3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3170$as_echo "no" >&6; } 3171fi 3172 3173 3174 test -n "$ac_ct_CC" && break 3175done 3176 3177 if test "x$ac_ct_CC" = x; then 3178 CC="" 3179 else 3180 case $cross_compiling:$ac_tool_warned in 3181yes:) 3182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3184ac_tool_warned=yes ;; 3185esac 3186 CC=$ac_ct_CC 3187 fi 3188fi 3189 3190 3191test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3193as_fn_error $? "no acceptable C compiler found in \$PATH 3194See \`config.log' for more details" "$LINENO" 5; } 3195 3196# Provide some information about the compiler. 3197$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3198set X $ac_compile 3199ac_compiler=$2 3200for ac_option in --version -v -V -qversion; do 3201 { { ac_try="$ac_compiler $ac_option >&5" 3202case "(($ac_try" in 3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3204 *) ac_try_echo=$ac_try;; 3205esac 3206eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3207$as_echo "$ac_try_echo"; } >&5 3208 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3209 ac_status=$? 3210 if test -s conftest.err; then 3211 sed '10a\ 3212... rest of stderr output deleted ... 3213 10q' conftest.err >conftest.er1 3214 cat conftest.er1 >&5 3215 fi 3216 rm -f conftest.er1 conftest.err 3217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3218 test $ac_status = 0; } 3219done 3220 3221cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3222/* end confdefs.h. */ 3223 3224int 3225main () 3226{ 3227 3228 ; 3229 return 0; 3230} 3231_ACEOF 3232ac_clean_files_save=$ac_clean_files 3233ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3234# Try to create an executable without -o first, disregard a.out. 3235# It will help us diagnose broken compilers, and finding out an intuition 3236# of exeext. 3237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3238$as_echo_n "checking whether the C compiler works... " >&6; } 3239ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3240 3241# The possible output files: 3242ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3243 3244ac_rmfiles= 3245for ac_file in $ac_files 3246do 3247 case $ac_file in 3248 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3249 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3250 esac 3251done 3252rm -f $ac_rmfiles 3253 3254if { { ac_try="$ac_link_default" 3255case "(($ac_try" in 3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3257 *) ac_try_echo=$ac_try;; 3258esac 3259eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3260$as_echo "$ac_try_echo"; } >&5 3261 (eval "$ac_link_default") 2>&5 3262 ac_status=$? 3263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3264 test $ac_status = 0; }; then : 3265 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3266# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3267# in a Makefile. We should not override ac_cv_exeext if it was cached, 3268# so that the user can short-circuit this test for compilers unknown to 3269# Autoconf. 3270for ac_file in $ac_files '' 3271do 3272 test -f "$ac_file" || continue 3273 case $ac_file in 3274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3275 ;; 3276 [ab].out ) 3277 # We found the default executable, but exeext='' is most 3278 # certainly right. 3279 break;; 3280 *.* ) 3281 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3282 then :; else 3283 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3284 fi 3285 # We set ac_cv_exeext here because the later test for it is not 3286 # safe: cross compilers may not add the suffix if given an `-o' 3287 # argument, so we may need to know it at that point already. 3288 # Even if this section looks crufty: it has the advantage of 3289 # actually working. 3290 break;; 3291 * ) 3292 break;; 3293 esac 3294done 3295test "$ac_cv_exeext" = no && ac_cv_exeext= 3296 3297else 3298 ac_file='' 3299fi 3300if test -z "$ac_file"; then : 3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3302$as_echo "no" >&6; } 3303$as_echo "$as_me: failed program was:" >&5 3304sed 's/^/| /' conftest.$ac_ext >&5 3305 3306{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3308as_fn_error 77 "C compiler cannot create executables 3309See \`config.log' for more details" "$LINENO" 5; } 3310else 3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3312$as_echo "yes" >&6; } 3313fi 3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3315$as_echo_n "checking for C compiler default output file name... " >&6; } 3316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3317$as_echo "$ac_file" >&6; } 3318ac_exeext=$ac_cv_exeext 3319 3320rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3321ac_clean_files=$ac_clean_files_save 3322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3323$as_echo_n "checking for suffix of executables... " >&6; } 3324if { { ac_try="$ac_link" 3325case "(($ac_try" in 3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3327 *) ac_try_echo=$ac_try;; 3328esac 3329eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3330$as_echo "$ac_try_echo"; } >&5 3331 (eval "$ac_link") 2>&5 3332 ac_status=$? 3333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3334 test $ac_status = 0; }; then : 3335 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3336# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3337# work properly (i.e., refer to `conftest.exe'), while it won't with 3338# `rm'. 3339for ac_file in conftest.exe conftest conftest.*; do 3340 test -f "$ac_file" || continue 3341 case $ac_file in 3342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3343 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3344 break;; 3345 * ) break;; 3346 esac 3347done 3348else 3349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3351as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3352See \`config.log' for more details" "$LINENO" 5; } 3353fi 3354rm -f conftest conftest$ac_cv_exeext 3355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3356$as_echo "$ac_cv_exeext" >&6; } 3357 3358rm -f conftest.$ac_ext 3359EXEEXT=$ac_cv_exeext 3360ac_exeext=$EXEEXT 3361cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3362/* end confdefs.h. */ 3363#include <stdio.h> 3364int 3365main () 3366{ 3367FILE *f = fopen ("conftest.out", "w"); 3368 return ferror (f) || fclose (f) != 0; 3369 3370 ; 3371 return 0; 3372} 3373_ACEOF 3374ac_clean_files="$ac_clean_files conftest.out" 3375# Check that the compiler produces executables we can run. If not, either 3376# the compiler is broken, or we cross compile. 3377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3378$as_echo_n "checking whether we are cross compiling... " >&6; } 3379if test "$cross_compiling" != yes; then 3380 { { ac_try="$ac_link" 3381case "(($ac_try" in 3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3383 *) ac_try_echo=$ac_try;; 3384esac 3385eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3386$as_echo "$ac_try_echo"; } >&5 3387 (eval "$ac_link") 2>&5 3388 ac_status=$? 3389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3390 test $ac_status = 0; } 3391 if { ac_try='./conftest$ac_cv_exeext' 3392 { { case "(($ac_try" in 3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3394 *) ac_try_echo=$ac_try;; 3395esac 3396eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3397$as_echo "$ac_try_echo"; } >&5 3398 (eval "$ac_try") 2>&5 3399 ac_status=$? 3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3401 test $ac_status = 0; }; }; then 3402 cross_compiling=no 3403 else 3404 if test "$cross_compiling" = maybe; then 3405 cross_compiling=yes 3406 else 3407 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3408$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3409as_fn_error $? "cannot run C compiled programs. 3410If you meant to cross compile, use \`--host'. 3411See \`config.log' for more details" "$LINENO" 5; } 3412 fi 3413 fi 3414fi 3415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3416$as_echo "$cross_compiling" >&6; } 3417 3418rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3419ac_clean_files=$ac_clean_files_save 3420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3421$as_echo_n "checking for suffix of object files... " >&6; } 3422if ${ac_cv_objext+:} false; then : 3423 $as_echo_n "(cached) " >&6 3424else 3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3426/* end confdefs.h. */ 3427 3428int 3429main () 3430{ 3431 3432 ; 3433 return 0; 3434} 3435_ACEOF 3436rm -f conftest.o conftest.obj 3437if { { ac_try="$ac_compile" 3438case "(($ac_try" in 3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3440 *) ac_try_echo=$ac_try;; 3441esac 3442eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3443$as_echo "$ac_try_echo"; } >&5 3444 (eval "$ac_compile") 2>&5 3445 ac_status=$? 3446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3447 test $ac_status = 0; }; then : 3448 for ac_file in conftest.o conftest.obj conftest.*; do 3449 test -f "$ac_file" || continue; 3450 case $ac_file in 3451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3452 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3453 break;; 3454 esac 3455done 3456else 3457 $as_echo "$as_me: failed program was:" >&5 3458sed 's/^/| /' conftest.$ac_ext >&5 3459 3460{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3461$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3462as_fn_error $? "cannot compute suffix of object files: cannot compile 3463See \`config.log' for more details" "$LINENO" 5; } 3464fi 3465rm -f conftest.$ac_cv_objext conftest.$ac_ext 3466fi 3467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3468$as_echo "$ac_cv_objext" >&6; } 3469OBJEXT=$ac_cv_objext 3470ac_objext=$OBJEXT 3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3472$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3473if ${ac_cv_c_compiler_gnu+:} false; then : 3474 $as_echo_n "(cached) " >&6 3475else 3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3477/* end confdefs.h. */ 3478 3479int 3480main () 3481{ 3482#ifndef __GNUC__ 3483 choke me 3484#endif 3485 3486 ; 3487 return 0; 3488} 3489_ACEOF 3490if ac_fn_c_try_compile "$LINENO"; then : 3491 ac_compiler_gnu=yes 3492else 3493 ac_compiler_gnu=no 3494fi 3495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3496ac_cv_c_compiler_gnu=$ac_compiler_gnu 3497 3498fi 3499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3500$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3501if test $ac_compiler_gnu = yes; then 3502 GCC=yes 3503else 3504 GCC= 3505fi 3506ac_test_CFLAGS=${CFLAGS+set} 3507ac_save_CFLAGS=$CFLAGS 3508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3509$as_echo_n "checking whether $CC accepts -g... " >&6; } 3510if ${ac_cv_prog_cc_g+:} false; then : 3511 $as_echo_n "(cached) " >&6 3512else 3513 ac_save_c_werror_flag=$ac_c_werror_flag 3514 ac_c_werror_flag=yes 3515 ac_cv_prog_cc_g=no 3516 CFLAGS="-g" 3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3518/* end confdefs.h. */ 3519 3520int 3521main () 3522{ 3523 3524 ; 3525 return 0; 3526} 3527_ACEOF 3528if ac_fn_c_try_compile "$LINENO"; then : 3529 ac_cv_prog_cc_g=yes 3530else 3531 CFLAGS="" 3532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3533/* end confdefs.h. */ 3534 3535int 3536main () 3537{ 3538 3539 ; 3540 return 0; 3541} 3542_ACEOF 3543if ac_fn_c_try_compile "$LINENO"; then : 3544 3545else 3546 ac_c_werror_flag=$ac_save_c_werror_flag 3547 CFLAGS="-g" 3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3549/* end confdefs.h. */ 3550 3551int 3552main () 3553{ 3554 3555 ; 3556 return 0; 3557} 3558_ACEOF 3559if ac_fn_c_try_compile "$LINENO"; then : 3560 ac_cv_prog_cc_g=yes 3561fi 3562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3563fi 3564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3565fi 3566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3567 ac_c_werror_flag=$ac_save_c_werror_flag 3568fi 3569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3570$as_echo "$ac_cv_prog_cc_g" >&6; } 3571if test "$ac_test_CFLAGS" = set; then 3572 CFLAGS=$ac_save_CFLAGS 3573elif test $ac_cv_prog_cc_g = yes; then 3574 if test "$GCC" = yes; then 3575 CFLAGS="-g -O2" 3576 else 3577 CFLAGS="-g" 3578 fi 3579else 3580 if test "$GCC" = yes; then 3581 CFLAGS="-O2" 3582 else 3583 CFLAGS= 3584 fi 3585fi 3586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3587$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3588if ${ac_cv_prog_cc_c89+:} false; then : 3589 $as_echo_n "(cached) " >&6 3590else 3591 ac_cv_prog_cc_c89=no 3592ac_save_CC=$CC 3593cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3594/* end confdefs.h. */ 3595#include <stdarg.h> 3596#include <stdio.h> 3597struct stat; 3598/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3599struct buf { int x; }; 3600FILE * (*rcsopen) (struct buf *, struct stat *, int); 3601static char *e (p, i) 3602 char **p; 3603 int i; 3604{ 3605 return p[i]; 3606} 3607static char *f (char * (*g) (char **, int), char **p, ...) 3608{ 3609 char *s; 3610 va_list v; 3611 va_start (v,p); 3612 s = g (p, va_arg (v,int)); 3613 va_end (v); 3614 return s; 3615} 3616 3617/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3618 function prototypes and stuff, but not '\xHH' hex character constants. 3619 These don't provoke an error unfortunately, instead are silently treated 3620 as 'x'. The following induces an error, until -std is added to get 3621 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3622 array size at least. It's necessary to write '\x00'==0 to get something 3623 that's true only with -std. */ 3624int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3625 3626/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3627 inside strings and character constants. */ 3628#define FOO(x) 'x' 3629int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3630 3631int test (int i, double x); 3632struct s1 {int (*f) (int a);}; 3633struct s2 {int (*f) (double a);}; 3634int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3635int argc; 3636char **argv; 3637int 3638main () 3639{ 3640return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3641 ; 3642 return 0; 3643} 3644_ACEOF 3645for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3646 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3647do 3648 CC="$ac_save_CC $ac_arg" 3649 if ac_fn_c_try_compile "$LINENO"; then : 3650 ac_cv_prog_cc_c89=$ac_arg 3651fi 3652rm -f core conftest.err conftest.$ac_objext 3653 test "x$ac_cv_prog_cc_c89" != "xno" && break 3654done 3655rm -f conftest.$ac_ext 3656CC=$ac_save_CC 3657 3658fi 3659# AC_CACHE_VAL 3660case "x$ac_cv_prog_cc_c89" in 3661 x) 3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3663$as_echo "none needed" >&6; } ;; 3664 xno) 3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3666$as_echo "unsupported" >&6; } ;; 3667 *) 3668 CC="$CC $ac_cv_prog_cc_c89" 3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3670$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3671esac 3672if test "x$ac_cv_prog_cc_c89" != xno; then : 3673 3674fi 3675 3676ac_ext=c 3677ac_cpp='$CPP $CPPFLAGS' 3678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3680ac_compiler_gnu=$ac_cv_c_compiler_gnu 3681 3682ac_ext=c 3683ac_cpp='$CPP $CPPFLAGS' 3684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3686ac_compiler_gnu=$ac_cv_c_compiler_gnu 3687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3688$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3689if ${am_cv_prog_cc_c_o+:} false; then : 3690 $as_echo_n "(cached) " >&6 3691else 3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3693/* end confdefs.h. */ 3694 3695int 3696main () 3697{ 3698 3699 ; 3700 return 0; 3701} 3702_ACEOF 3703 # Make sure it works both with $CC and with simple cc. 3704 # Following AC_PROG_CC_C_O, we do the test twice because some 3705 # compilers refuse to overwrite an existing .o file with -o, 3706 # though they will create one. 3707 am_cv_prog_cc_c_o=yes 3708 for am_i in 1 2; do 3709 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3710 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3711 ac_status=$? 3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3713 (exit $ac_status); } \ 3714 && test -f conftest2.$ac_objext; then 3715 : OK 3716 else 3717 am_cv_prog_cc_c_o=no 3718 break 3719 fi 3720 done 3721 rm -f core conftest* 3722 unset am_i 3723fi 3724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3725$as_echo "$am_cv_prog_cc_c_o" >&6; } 3726if test "$am_cv_prog_cc_c_o" != yes; then 3727 # Losing compiler, so override with the script. 3728 # FIXME: It is wrong to rewrite CC. 3729 # But if we don't then we get into trouble of one sort or another. 3730 # A longer-term fix would be to have automake use am__CC in this case, 3731 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3732 CC="$am_aux_dir/compile $CC" 3733fi 3734ac_ext=c 3735ac_cpp='$CPP $CPPFLAGS' 3736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3738ac_compiler_gnu=$ac_cv_c_compiler_gnu 3739 3740DEPDIR="${am__leading_dot}deps" 3741 3742ac_config_commands="$ac_config_commands depfiles" 3743 3744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3745$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3746cat > confinc.mk << 'END' 3747am__doit: 3748 @echo this is the am__doit target >confinc.out 3749.PHONY: am__doit 3750END 3751am__include="#" 3752am__quote= 3753# BSD make does it like this. 3754echo '.include "confinc.mk" # ignored' > confmf.BSD 3755# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3756echo 'include confinc.mk # ignored' > confmf.GNU 3757_am_result=no 3758for s in GNU BSD; do 3759 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3760 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3761 ac_status=$? 3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3763 (exit $ac_status); } 3764 case $?:`cat confinc.out 2>/dev/null` in #( 3765 '0:this is the am__doit target') : 3766 case $s in #( 3767 BSD) : 3768 am__include='.include' am__quote='"' ;; #( 3769 *) : 3770 am__include='include' am__quote='' ;; 3771esac ;; #( 3772 *) : 3773 ;; 3774esac 3775 if test "$am__include" != "#"; then 3776 _am_result="yes ($s style)" 3777 break 3778 fi 3779done 3780rm -f confinc.* confmf.* 3781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3782$as_echo "${_am_result}" >&6; } 3783 3784# Check whether --enable-dependency-tracking was given. 3785if test "${enable_dependency_tracking+set}" = set; then : 3786 enableval=$enable_dependency_tracking; 3787fi 3788 3789if test "x$enable_dependency_tracking" != xno; then 3790 am_depcomp="$ac_aux_dir/depcomp" 3791 AMDEPBACKSLASH='\' 3792 am__nodep='_no' 3793fi 3794 if test "x$enable_dependency_tracking" != xno; then 3795 AMDEP_TRUE= 3796 AMDEP_FALSE='#' 3797else 3798 AMDEP_TRUE='#' 3799 AMDEP_FALSE= 3800fi 3801 3802 3803 3804depcc="$CC" am_compiler_list= 3805 3806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3807$as_echo_n "checking dependency style of $depcc... " >&6; } 3808if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3809 $as_echo_n "(cached) " >&6 3810else 3811 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3812 # We make a subdir and do the tests there. Otherwise we can end up 3813 # making bogus files that we don't know about and never remove. For 3814 # instance it was reported that on HP-UX the gcc test will end up 3815 # making a dummy file named 'D' -- because '-MD' means "put the output 3816 # in D". 3817 rm -rf conftest.dir 3818 mkdir conftest.dir 3819 # Copy depcomp to subdir because otherwise we won't find it if we're 3820 # using a relative directory. 3821 cp "$am_depcomp" conftest.dir 3822 cd conftest.dir 3823 # We will build objects and dependencies in a subdirectory because 3824 # it helps to detect inapplicable dependency modes. For instance 3825 # both Tru64's cc and ICC support -MD to output dependencies as a 3826 # side effect of compilation, but ICC will put the dependencies in 3827 # the current directory while Tru64 will put them in the object 3828 # directory. 3829 mkdir sub 3830 3831 am_cv_CC_dependencies_compiler_type=none 3832 if test "$am_compiler_list" = ""; then 3833 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3834 fi 3835 am__universal=false 3836 case " $depcc " in #( 3837 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3838 esac 3839 3840 for depmode in $am_compiler_list; do 3841 # Setup a source with many dependencies, because some compilers 3842 # like to wrap large dependency lists on column 80 (with \), and 3843 # we should not choose a depcomp mode which is confused by this. 3844 # 3845 # We need to recreate these files for each test, as the compiler may 3846 # overwrite some of them when testing with obscure command lines. 3847 # This happens at least with the AIX C compiler. 3848 : > sub/conftest.c 3849 for i in 1 2 3 4 5 6; do 3850 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3851 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3852 # Solaris 10 /bin/sh. 3853 echo '/* dummy */' > sub/conftst$i.h 3854 done 3855 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3856 3857 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3858 # mode. It turns out that the SunPro C++ compiler does not properly 3859 # handle '-M -o', and we need to detect this. Also, some Intel 3860 # versions had trouble with output in subdirs. 3861 am__obj=sub/conftest.${OBJEXT-o} 3862 am__minus_obj="-o $am__obj" 3863 case $depmode in 3864 gcc) 3865 # This depmode causes a compiler race in universal mode. 3866 test "$am__universal" = false || continue 3867 ;; 3868 nosideeffect) 3869 # After this tag, mechanisms are not by side-effect, so they'll 3870 # only be used when explicitly requested. 3871 if test "x$enable_dependency_tracking" = xyes; then 3872 continue 3873 else 3874 break 3875 fi 3876 ;; 3877 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3878 # This compiler won't grok '-c -o', but also, the minuso test has 3879 # not run yet. These depmodes are late enough in the game, and 3880 # so weak that their functioning should not be impacted. 3881 am__obj=conftest.${OBJEXT-o} 3882 am__minus_obj= 3883 ;; 3884 none) break ;; 3885 esac 3886 if depmode=$depmode \ 3887 source=sub/conftest.c object=$am__obj \ 3888 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3889 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3890 >/dev/null 2>conftest.err && 3891 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3892 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3893 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3894 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3895 # icc doesn't choke on unknown options, it will just issue warnings 3896 # or remarks (even with -Werror). So we grep stderr for any message 3897 # that says an option was ignored or not supported. 3898 # When given -MP, icc 7.0 and 7.1 complain thusly: 3899 # icc: Command line warning: ignoring option '-M'; no argument required 3900 # The diagnosis changed in icc 8.0: 3901 # icc: Command line remark: option '-MP' not supported 3902 if (grep 'ignoring option' conftest.err || 3903 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3904 am_cv_CC_dependencies_compiler_type=$depmode 3905 break 3906 fi 3907 fi 3908 done 3909 3910 cd .. 3911 rm -rf conftest.dir 3912else 3913 am_cv_CC_dependencies_compiler_type=none 3914fi 3915 3916fi 3917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3918$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3919CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3920 3921 if 3922 test "x$enable_dependency_tracking" != xno \ 3923 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3924 am__fastdepCC_TRUE= 3925 am__fastdepCC_FALSE='#' 3926else 3927 am__fastdepCC_TRUE='#' 3928 am__fastdepCC_FALSE= 3929fi 3930 3931 3932 3933case $host_os in 3934 *darwin*) 3935 HOST_OS=darwin 3936 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h 3937 3938 ;; 3939 *freebsd*) 3940 HOST_OS=freebsd 3941 ;; 3942 *linux*) 3943 HOST_OS=linux 3944 AM_CFLAGS="-D_DEFAULT_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE" 3945 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h 3946 3947 ;; 3948 *netbsd*) 3949 HOST_OS=netbsd 3950 ;; 3951 *openbsd*) 3952 HOST_OS=openbsd 3953 3954$as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h 3955 3956 3957$as_echo "#define HAVE_ATTRIBUTE__DEAD 1" >>confdefs.h 3958 3959 ;; 3960 *solaris*) 3961 HOST_OS=solaris 3962 AM_CFLAGS="-D__EXTENSIONS__ -D_XOPEN_SOURCE=600 -DBSD_COMP" 3963 ;; 3964 *) ;; 3965esac 3966 3967 if test x$HOST_OS = xdarwin; then 3968 HOST_DARWIN_TRUE= 3969 HOST_DARWIN_FALSE='#' 3970else 3971 HOST_DARWIN_TRUE='#' 3972 HOST_DARWIN_FALSE= 3973fi 3974 3975 if test x$HOST_OS = xfreebsd; then 3976 HOST_FREEBSD_TRUE= 3977 HOST_FREEBSD_FALSE='#' 3978else 3979 HOST_FREEBSD_TRUE='#' 3980 HOST_FREEBSD_FALSE= 3981fi 3982 3983 if test x$HOST_OS = xlinux; then 3984 HOST_LINUX_TRUE= 3985 HOST_LINUX_FALSE='#' 3986else 3987 HOST_LINUX_TRUE='#' 3988 HOST_LINUX_FALSE= 3989fi 3990 3991 if test x$HOST_OS = xnetbsd; then 3992 HOST_NETBSD_TRUE= 3993 HOST_NETBSD_FALSE='#' 3994else 3995 HOST_NETBSD_TRUE='#' 3996 HOST_NETBSD_FALSE= 3997fi 3998 3999 if test x$HOST_OS = xsolaris; then 4000 HOST_SOLARIS_TRUE= 4001 HOST_SOLARIS_FALSE='#' 4002else 4003 HOST_SOLARIS_TRUE='#' 4004 HOST_SOLARIS_FALSE= 4005fi 4006 4007 4008 if test x$HOST_OS = xopenbsd; then 4009 HAVE_CARP_TRUE= 4010 HAVE_CARP_FALSE='#' 4011else 4012 HAVE_CARP_TRUE='#' 4013 HAVE_CARP_FALSE= 4014fi 4015 4016 if test x$HOST_OS = xopenbsd; then 4017 HAVE_PFKEY_TRUE= 4018 HAVE_PFKEY_FALSE='#' 4019else 4020 HAVE_PFKEY_TRUE='#' 4021 HAVE_PFKEY_FALSE= 4022fi 4023 4024 if test x$HOST_OS = xopenbsd; then 4025 HAVE_PFTABLE_TRUE= 4026 HAVE_PFTABLE_FALSE='#' 4027else 4028 HAVE_PFTABLE_TRUE='#' 4029 HAVE_PFTABLE_FALSE= 4030fi 4031 4032 if test x$HOST_OS = xopenbsd; then 4033 HAVE_KROUTE_TRUE= 4034 HAVE_KROUTE_FALSE='#' 4035else 4036 HAVE_KROUTE_TRUE='#' 4037 HAVE_KROUTE_FALSE= 4038fi 4039 4040 4041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4042$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4043if ${ac_cv_path_SED+:} false; then : 4044 $as_echo_n "(cached) " >&6 4045else 4046 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4047 for ac_i in 1 2 3 4 5 6 7; do 4048 ac_script="$ac_script$as_nl$ac_script" 4049 done 4050 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4051 { ac_script=; unset ac_script;} 4052 if test -z "$SED"; then 4053 ac_path_SED_found=false 4054 # Loop through the user's path and test for each of PROGNAME-LIST 4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4056for as_dir in $PATH 4057do 4058 IFS=$as_save_IFS 4059 test -z "$as_dir" && as_dir=. 4060 for ac_prog in sed gsed; do 4061 for ac_exec_ext in '' $ac_executable_extensions; do 4062 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4063 as_fn_executable_p "$ac_path_SED" || continue 4064# Check for GNU ac_path_SED and select it if it is found. 4065 # Check for GNU $ac_path_SED 4066case `"$ac_path_SED" --version 2>&1` in 4067*GNU*) 4068 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4069*) 4070 ac_count=0 4071 $as_echo_n 0123456789 >"conftest.in" 4072 while : 4073 do 4074 cat "conftest.in" "conftest.in" >"conftest.tmp" 4075 mv "conftest.tmp" "conftest.in" 4076 cp "conftest.in" "conftest.nl" 4077 $as_echo '' >> "conftest.nl" 4078 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4079 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4080 as_fn_arith $ac_count + 1 && ac_count=$as_val 4081 if test $ac_count -gt ${ac_path_SED_max-0}; then 4082 # Best one so far, save it but keep looking for a better one 4083 ac_cv_path_SED="$ac_path_SED" 4084 ac_path_SED_max=$ac_count 4085 fi 4086 # 10*(2^10) chars as input seems more than enough 4087 test $ac_count -gt 10 && break 4088 done 4089 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4090esac 4091 4092 $ac_path_SED_found && break 3 4093 done 4094 done 4095 done 4096IFS=$as_save_IFS 4097 if test -z "$ac_cv_path_SED"; then 4098 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4099 fi 4100else 4101 ac_cv_path_SED=$SED 4102fi 4103 4104fi 4105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4106$as_echo "$ac_cv_path_SED" >&6; } 4107 SED="$ac_cv_path_SED" 4108 rm -f conftest.sed 4109 4110ac_ext=c 4111ac_cpp='$CPP $CPPFLAGS' 4112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4114ac_compiler_gnu=$ac_cv_c_compiler_gnu 4115if test -n "$ac_tool_prefix"; then 4116 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4117set dummy ${ac_tool_prefix}gcc; ac_word=$2 4118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4119$as_echo_n "checking for $ac_word... " >&6; } 4120if ${ac_cv_prog_CC+:} false; then : 4121 $as_echo_n "(cached) " >&6 4122else 4123 if test -n "$CC"; then 4124 ac_cv_prog_CC="$CC" # Let the user override the test. 4125else 4126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4127for as_dir in $PATH 4128do 4129 IFS=$as_save_IFS 4130 test -z "$as_dir" && as_dir=. 4131 for ac_exec_ext in '' $ac_executable_extensions; do 4132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4133 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4135 break 2 4136 fi 4137done 4138 done 4139IFS=$as_save_IFS 4140 4141fi 4142fi 4143CC=$ac_cv_prog_CC 4144if test -n "$CC"; then 4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4146$as_echo "$CC" >&6; } 4147else 4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4149$as_echo "no" >&6; } 4150fi 4151 4152 4153fi 4154if test -z "$ac_cv_prog_CC"; then 4155 ac_ct_CC=$CC 4156 # Extract the first word of "gcc", so it can be a program name with args. 4157set dummy gcc; ac_word=$2 4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4159$as_echo_n "checking for $ac_word... " >&6; } 4160if ${ac_cv_prog_ac_ct_CC+:} false; then : 4161 $as_echo_n "(cached) " >&6 4162else 4163 if test -n "$ac_ct_CC"; then 4164 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4165else 4166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4167for as_dir in $PATH 4168do 4169 IFS=$as_save_IFS 4170 test -z "$as_dir" && as_dir=. 4171 for ac_exec_ext in '' $ac_executable_extensions; do 4172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4173 ac_cv_prog_ac_ct_CC="gcc" 4174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4175 break 2 4176 fi 4177done 4178 done 4179IFS=$as_save_IFS 4180 4181fi 4182fi 4183ac_ct_CC=$ac_cv_prog_ac_ct_CC 4184if test -n "$ac_ct_CC"; then 4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4186$as_echo "$ac_ct_CC" >&6; } 4187else 4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4189$as_echo "no" >&6; } 4190fi 4191 4192 if test "x$ac_ct_CC" = x; then 4193 CC="" 4194 else 4195 case $cross_compiling:$ac_tool_warned in 4196yes:) 4197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4199ac_tool_warned=yes ;; 4200esac 4201 CC=$ac_ct_CC 4202 fi 4203else 4204 CC="$ac_cv_prog_CC" 4205fi 4206 4207if test -z "$CC"; then 4208 if test -n "$ac_tool_prefix"; then 4209 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4210set dummy ${ac_tool_prefix}cc; ac_word=$2 4211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4212$as_echo_n "checking for $ac_word... " >&6; } 4213if ${ac_cv_prog_CC+:} false; then : 4214 $as_echo_n "(cached) " >&6 4215else 4216 if test -n "$CC"; then 4217 ac_cv_prog_CC="$CC" # Let the user override the test. 4218else 4219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4220for as_dir in $PATH 4221do 4222 IFS=$as_save_IFS 4223 test -z "$as_dir" && as_dir=. 4224 for ac_exec_ext in '' $ac_executable_extensions; do 4225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4226 ac_cv_prog_CC="${ac_tool_prefix}cc" 4227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4228 break 2 4229 fi 4230done 4231 done 4232IFS=$as_save_IFS 4233 4234fi 4235fi 4236CC=$ac_cv_prog_CC 4237if test -n "$CC"; then 4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4239$as_echo "$CC" >&6; } 4240else 4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4242$as_echo "no" >&6; } 4243fi 4244 4245 4246 fi 4247fi 4248if test -z "$CC"; then 4249 # Extract the first word of "cc", so it can be a program name with args. 4250set dummy cc; ac_word=$2 4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4252$as_echo_n "checking for $ac_word... " >&6; } 4253if ${ac_cv_prog_CC+:} false; then : 4254 $as_echo_n "(cached) " >&6 4255else 4256 if test -n "$CC"; then 4257 ac_cv_prog_CC="$CC" # Let the user override the test. 4258else 4259 ac_prog_rejected=no 4260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4261for as_dir in $PATH 4262do 4263 IFS=$as_save_IFS 4264 test -z "$as_dir" && as_dir=. 4265 for ac_exec_ext in '' $ac_executable_extensions; do 4266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4267 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4268 ac_prog_rejected=yes 4269 continue 4270 fi 4271 ac_cv_prog_CC="cc" 4272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4273 break 2 4274 fi 4275done 4276 done 4277IFS=$as_save_IFS 4278 4279if test $ac_prog_rejected = yes; then 4280 # We found a bogon in the path, so make sure we never use it. 4281 set dummy $ac_cv_prog_CC 4282 shift 4283 if test $# != 0; then 4284 # We chose a different compiler from the bogus one. 4285 # However, it has the same basename, so the bogon will be chosen 4286 # first if we set CC to just the basename; use the full file name. 4287 shift 4288 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4289 fi 4290fi 4291fi 4292fi 4293CC=$ac_cv_prog_CC 4294if test -n "$CC"; then 4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4296$as_echo "$CC" >&6; } 4297else 4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4299$as_echo "no" >&6; } 4300fi 4301 4302 4303fi 4304if test -z "$CC"; then 4305 if test -n "$ac_tool_prefix"; then 4306 for ac_prog in cl.exe 4307 do 4308 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4309set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4311$as_echo_n "checking for $ac_word... " >&6; } 4312if ${ac_cv_prog_CC+:} false; then : 4313 $as_echo_n "(cached) " >&6 4314else 4315 if test -n "$CC"; then 4316 ac_cv_prog_CC="$CC" # Let the user override the test. 4317else 4318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4319for as_dir in $PATH 4320do 4321 IFS=$as_save_IFS 4322 test -z "$as_dir" && as_dir=. 4323 for ac_exec_ext in '' $ac_executable_extensions; do 4324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4325 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4327 break 2 4328 fi 4329done 4330 done 4331IFS=$as_save_IFS 4332 4333fi 4334fi 4335CC=$ac_cv_prog_CC 4336if test -n "$CC"; then 4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4338$as_echo "$CC" >&6; } 4339else 4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4341$as_echo "no" >&6; } 4342fi 4343 4344 4345 test -n "$CC" && break 4346 done 4347fi 4348if test -z "$CC"; then 4349 ac_ct_CC=$CC 4350 for ac_prog in cl.exe 4351do 4352 # Extract the first word of "$ac_prog", so it can be a program name with args. 4353set dummy $ac_prog; ac_word=$2 4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4355$as_echo_n "checking for $ac_word... " >&6; } 4356if ${ac_cv_prog_ac_ct_CC+:} false; then : 4357 $as_echo_n "(cached) " >&6 4358else 4359 if test -n "$ac_ct_CC"; then 4360 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4361else 4362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4363for as_dir in $PATH 4364do 4365 IFS=$as_save_IFS 4366 test -z "$as_dir" && as_dir=. 4367 for ac_exec_ext in '' $ac_executable_extensions; do 4368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4369 ac_cv_prog_ac_ct_CC="$ac_prog" 4370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4371 break 2 4372 fi 4373done 4374 done 4375IFS=$as_save_IFS 4376 4377fi 4378fi 4379ac_ct_CC=$ac_cv_prog_ac_ct_CC 4380if test -n "$ac_ct_CC"; then 4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4382$as_echo "$ac_ct_CC" >&6; } 4383else 4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4385$as_echo "no" >&6; } 4386fi 4387 4388 4389 test -n "$ac_ct_CC" && break 4390done 4391 4392 if test "x$ac_ct_CC" = x; then 4393 CC="" 4394 else 4395 case $cross_compiling:$ac_tool_warned in 4396yes:) 4397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4399ac_tool_warned=yes ;; 4400esac 4401 CC=$ac_ct_CC 4402 fi 4403fi 4404 4405fi 4406 4407 4408test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4410as_fn_error $? "no acceptable C compiler found in \$PATH 4411See \`config.log' for more details" "$LINENO" 5; } 4412 4413# Provide some information about the compiler. 4414$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4415set X $ac_compile 4416ac_compiler=$2 4417for ac_option in --version -v -V -qversion; do 4418 { { ac_try="$ac_compiler $ac_option >&5" 4419case "(($ac_try" in 4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4421 *) ac_try_echo=$ac_try;; 4422esac 4423eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4424$as_echo "$ac_try_echo"; } >&5 4425 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4426 ac_status=$? 4427 if test -s conftest.err; then 4428 sed '10a\ 4429... rest of stderr output deleted ... 4430 10q' conftest.err >conftest.er1 4431 cat conftest.er1 >&5 4432 fi 4433 rm -f conftest.er1 conftest.err 4434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4435 test $ac_status = 0; } 4436done 4437 4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4439$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4440if ${ac_cv_c_compiler_gnu+:} false; then : 4441 $as_echo_n "(cached) " >&6 4442else 4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4444/* end confdefs.h. */ 4445 4446int 4447main () 4448{ 4449#ifndef __GNUC__ 4450 choke me 4451#endif 4452 4453 ; 4454 return 0; 4455} 4456_ACEOF 4457if ac_fn_c_try_compile "$LINENO"; then : 4458 ac_compiler_gnu=yes 4459else 4460 ac_compiler_gnu=no 4461fi 4462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4463ac_cv_c_compiler_gnu=$ac_compiler_gnu 4464 4465fi 4466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4467$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4468if test $ac_compiler_gnu = yes; then 4469 GCC=yes 4470else 4471 GCC= 4472fi 4473ac_test_CFLAGS=${CFLAGS+set} 4474ac_save_CFLAGS=$CFLAGS 4475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4476$as_echo_n "checking whether $CC accepts -g... " >&6; } 4477if ${ac_cv_prog_cc_g+:} false; then : 4478 $as_echo_n "(cached) " >&6 4479else 4480 ac_save_c_werror_flag=$ac_c_werror_flag 4481 ac_c_werror_flag=yes 4482 ac_cv_prog_cc_g=no 4483 CFLAGS="-g" 4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4485/* end confdefs.h. */ 4486 4487int 4488main () 4489{ 4490 4491 ; 4492 return 0; 4493} 4494_ACEOF 4495if ac_fn_c_try_compile "$LINENO"; then : 4496 ac_cv_prog_cc_g=yes 4497else 4498 CFLAGS="" 4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4500/* end confdefs.h. */ 4501 4502int 4503main () 4504{ 4505 4506 ; 4507 return 0; 4508} 4509_ACEOF 4510if ac_fn_c_try_compile "$LINENO"; then : 4511 4512else 4513 ac_c_werror_flag=$ac_save_c_werror_flag 4514 CFLAGS="-g" 4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4516/* end confdefs.h. */ 4517 4518int 4519main () 4520{ 4521 4522 ; 4523 return 0; 4524} 4525_ACEOF 4526if ac_fn_c_try_compile "$LINENO"; then : 4527 ac_cv_prog_cc_g=yes 4528fi 4529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4530fi 4531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4532fi 4533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4534 ac_c_werror_flag=$ac_save_c_werror_flag 4535fi 4536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4537$as_echo "$ac_cv_prog_cc_g" >&6; } 4538if test "$ac_test_CFLAGS" = set; then 4539 CFLAGS=$ac_save_CFLAGS 4540elif test $ac_cv_prog_cc_g = yes; then 4541 if test "$GCC" = yes; then 4542 CFLAGS="-g -O2" 4543 else 4544 CFLAGS="-g" 4545 fi 4546else 4547 if test "$GCC" = yes; then 4548 CFLAGS="-O2" 4549 else 4550 CFLAGS= 4551 fi 4552fi 4553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4554$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4555if ${ac_cv_prog_cc_c89+:} false; then : 4556 $as_echo_n "(cached) " >&6 4557else 4558 ac_cv_prog_cc_c89=no 4559ac_save_CC=$CC 4560cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4561/* end confdefs.h. */ 4562#include <stdarg.h> 4563#include <stdio.h> 4564struct stat; 4565/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4566struct buf { int x; }; 4567FILE * (*rcsopen) (struct buf *, struct stat *, int); 4568static char *e (p, i) 4569 char **p; 4570 int i; 4571{ 4572 return p[i]; 4573} 4574static char *f (char * (*g) (char **, int), char **p, ...) 4575{ 4576 char *s; 4577 va_list v; 4578 va_start (v,p); 4579 s = g (p, va_arg (v,int)); 4580 va_end (v); 4581 return s; 4582} 4583 4584/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4585 function prototypes and stuff, but not '\xHH' hex character constants. 4586 These don't provoke an error unfortunately, instead are silently treated 4587 as 'x'. The following induces an error, until -std is added to get 4588 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4589 array size at least. It's necessary to write '\x00'==0 to get something 4590 that's true only with -std. */ 4591int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4592 4593/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4594 inside strings and character constants. */ 4595#define FOO(x) 'x' 4596int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4597 4598int test (int i, double x); 4599struct s1 {int (*f) (int a);}; 4600struct s2 {int (*f) (double a);}; 4601int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4602int argc; 4603char **argv; 4604int 4605main () 4606{ 4607return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4608 ; 4609 return 0; 4610} 4611_ACEOF 4612for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4613 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4614do 4615 CC="$ac_save_CC $ac_arg" 4616 if ac_fn_c_try_compile "$LINENO"; then : 4617 ac_cv_prog_cc_c89=$ac_arg 4618fi 4619rm -f core conftest.err conftest.$ac_objext 4620 test "x$ac_cv_prog_cc_c89" != "xno" && break 4621done 4622rm -f conftest.$ac_ext 4623CC=$ac_save_CC 4624 4625fi 4626# AC_CACHE_VAL 4627case "x$ac_cv_prog_cc_c89" in 4628 x) 4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4630$as_echo "none needed" >&6; } ;; 4631 xno) 4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4633$as_echo "unsupported" >&6; } ;; 4634 *) 4635 CC="$CC $ac_cv_prog_cc_c89" 4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4637$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4638esac 4639if test "x$ac_cv_prog_cc_c89" != xno; then : 4640 4641fi 4642 4643ac_ext=c 4644ac_cpp='$CPP $CPPFLAGS' 4645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4647ac_compiler_gnu=$ac_cv_c_compiler_gnu 4648 4649ac_ext=c 4650ac_cpp='$CPP $CPPFLAGS' 4651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4653ac_compiler_gnu=$ac_cv_c_compiler_gnu 4654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4655$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4656if ${am_cv_prog_cc_c_o+:} false; then : 4657 $as_echo_n "(cached) " >&6 4658else 4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4660/* end confdefs.h. */ 4661 4662int 4663main () 4664{ 4665 4666 ; 4667 return 0; 4668} 4669_ACEOF 4670 # Make sure it works both with $CC and with simple cc. 4671 # Following AC_PROG_CC_C_O, we do the test twice because some 4672 # compilers refuse to overwrite an existing .o file with -o, 4673 # though they will create one. 4674 am_cv_prog_cc_c_o=yes 4675 for am_i in 1 2; do 4676 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4677 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4678 ac_status=$? 4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4680 (exit $ac_status); } \ 4681 && test -f conftest2.$ac_objext; then 4682 : OK 4683 else 4684 am_cv_prog_cc_c_o=no 4685 break 4686 fi 4687 done 4688 rm -f core conftest* 4689 unset am_i 4690fi 4691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4692$as_echo "$am_cv_prog_cc_c_o" >&6; } 4693if test "$am_cv_prog_cc_c_o" != yes; then 4694 # Losing compiler, so override with the script. 4695 # FIXME: It is wrong to rewrite CC. 4696 # But if we don't then we get into trouble of one sort or another. 4697 # A longer-term fix would be to have automake use am__CC in this case, 4698 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4699 CC="$am_aux_dir/compile $CC" 4700fi 4701ac_ext=c 4702ac_cpp='$CPP $CPPFLAGS' 4703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4705ac_compiler_gnu=$ac_cv_c_compiler_gnu 4706 4707 4708depcc="$CC" am_compiler_list= 4709 4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4711$as_echo_n "checking dependency style of $depcc... " >&6; } 4712if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4713 $as_echo_n "(cached) " >&6 4714else 4715 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4716 # We make a subdir and do the tests there. Otherwise we can end up 4717 # making bogus files that we don't know about and never remove. For 4718 # instance it was reported that on HP-UX the gcc test will end up 4719 # making a dummy file named 'D' -- because '-MD' means "put the output 4720 # in D". 4721 rm -rf conftest.dir 4722 mkdir conftest.dir 4723 # Copy depcomp to subdir because otherwise we won't find it if we're 4724 # using a relative directory. 4725 cp "$am_depcomp" conftest.dir 4726 cd conftest.dir 4727 # We will build objects and dependencies in a subdirectory because 4728 # it helps to detect inapplicable dependency modes. For instance 4729 # both Tru64's cc and ICC support -MD to output dependencies as a 4730 # side effect of compilation, but ICC will put the dependencies in 4731 # the current directory while Tru64 will put them in the object 4732 # directory. 4733 mkdir sub 4734 4735 am_cv_CC_dependencies_compiler_type=none 4736 if test "$am_compiler_list" = ""; then 4737 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4738 fi 4739 am__universal=false 4740 case " $depcc " in #( 4741 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4742 esac 4743 4744 for depmode in $am_compiler_list; do 4745 # Setup a source with many dependencies, because some compilers 4746 # like to wrap large dependency lists on column 80 (with \), and 4747 # we should not choose a depcomp mode which is confused by this. 4748 # 4749 # We need to recreate these files for each test, as the compiler may 4750 # overwrite some of them when testing with obscure command lines. 4751 # This happens at least with the AIX C compiler. 4752 : > sub/conftest.c 4753 for i in 1 2 3 4 5 6; do 4754 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4755 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4756 # Solaris 10 /bin/sh. 4757 echo '/* dummy */' > sub/conftst$i.h 4758 done 4759 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4760 4761 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4762 # mode. It turns out that the SunPro C++ compiler does not properly 4763 # handle '-M -o', and we need to detect this. Also, some Intel 4764 # versions had trouble with output in subdirs. 4765 am__obj=sub/conftest.${OBJEXT-o} 4766 am__minus_obj="-o $am__obj" 4767 case $depmode in 4768 gcc) 4769 # This depmode causes a compiler race in universal mode. 4770 test "$am__universal" = false || continue 4771 ;; 4772 nosideeffect) 4773 # After this tag, mechanisms are not by side-effect, so they'll 4774 # only be used when explicitly requested. 4775 if test "x$enable_dependency_tracking" = xyes; then 4776 continue 4777 else 4778 break 4779 fi 4780 ;; 4781 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4782 # This compiler won't grok '-c -o', but also, the minuso test has 4783 # not run yet. These depmodes are late enough in the game, and 4784 # so weak that their functioning should not be impacted. 4785 am__obj=conftest.${OBJEXT-o} 4786 am__minus_obj= 4787 ;; 4788 none) break ;; 4789 esac 4790 if depmode=$depmode \ 4791 source=sub/conftest.c object=$am__obj \ 4792 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4793 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4794 >/dev/null 2>conftest.err && 4795 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4796 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4797 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4798 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4799 # icc doesn't choke on unknown options, it will just issue warnings 4800 # or remarks (even with -Werror). So we grep stderr for any message 4801 # that says an option was ignored or not supported. 4802 # When given -MP, icc 7.0 and 7.1 complain thusly: 4803 # icc: Command line warning: ignoring option '-M'; no argument required 4804 # The diagnosis changed in icc 8.0: 4805 # icc: Command line remark: option '-MP' not supported 4806 if (grep 'ignoring option' conftest.err || 4807 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4808 am_cv_CC_dependencies_compiler_type=$depmode 4809 break 4810 fi 4811 fi 4812 done 4813 4814 cd .. 4815 rm -rf conftest.dir 4816else 4817 am_cv_CC_dependencies_compiler_type=none 4818fi 4819 4820fi 4821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4822$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4823CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4824 4825 if 4826 test "x$enable_dependency_tracking" != xno \ 4827 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4828 am__fastdepCC_TRUE= 4829 am__fastdepCC_FALSE='#' 4830else 4831 am__fastdepCC_TRUE='#' 4832 am__fastdepCC_FALSE= 4833fi 4834 4835 4836 case $ac_cv_prog_cc_stdc in #( 4837 no) : 4838 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 4839 *) : 4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4841$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4842if ${ac_cv_prog_cc_c99+:} false; then : 4843 $as_echo_n "(cached) " >&6 4844else 4845 ac_cv_prog_cc_c99=no 4846ac_save_CC=$CC 4847cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4848/* end confdefs.h. */ 4849#include <stdarg.h> 4850#include <stdbool.h> 4851#include <stdlib.h> 4852#include <wchar.h> 4853#include <stdio.h> 4854 4855// Check varargs macros. These examples are taken from C99 6.10.3.5. 4856#define debug(...) fprintf (stderr, __VA_ARGS__) 4857#define showlist(...) puts (#__VA_ARGS__) 4858#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4859static void 4860test_varargs_macros (void) 4861{ 4862 int x = 1234; 4863 int y = 5678; 4864 debug ("Flag"); 4865 debug ("X = %d\n", x); 4866 showlist (The first, second, and third items.); 4867 report (x>y, "x is %d but y is %d", x, y); 4868} 4869 4870// Check long long types. 4871#define BIG64 18446744073709551615ull 4872#define BIG32 4294967295ul 4873#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4874#if !BIG_OK 4875 your preprocessor is broken; 4876#endif 4877#if BIG_OK 4878#else 4879 your preprocessor is broken; 4880#endif 4881static long long int bignum = -9223372036854775807LL; 4882static unsigned long long int ubignum = BIG64; 4883 4884struct incomplete_array 4885{ 4886 int datasize; 4887 double data[]; 4888}; 4889 4890struct named_init { 4891 int number; 4892 const wchar_t *name; 4893 double average; 4894}; 4895 4896typedef const char *ccp; 4897 4898static inline int 4899test_restrict (ccp restrict text) 4900{ 4901 // See if C++-style comments work. 4902 // Iterate through items via the restricted pointer. 4903 // Also check for declarations in for loops. 4904 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4905 continue; 4906 return 0; 4907} 4908 4909// Check varargs and va_copy. 4910static void 4911test_varargs (const char *format, ...) 4912{ 4913 va_list args; 4914 va_start (args, format); 4915 va_list args_copy; 4916 va_copy (args_copy, args); 4917 4918 const char *str; 4919 int number; 4920 float fnumber; 4921 4922 while (*format) 4923 { 4924 switch (*format++) 4925 { 4926 case 's': // string 4927 str = va_arg (args_copy, const char *); 4928 break; 4929 case 'd': // int 4930 number = va_arg (args_copy, int); 4931 break; 4932 case 'f': // float 4933 fnumber = va_arg (args_copy, double); 4934 break; 4935 default: 4936 break; 4937 } 4938 } 4939 va_end (args_copy); 4940 va_end (args); 4941} 4942 4943int 4944main () 4945{ 4946 4947 // Check bool. 4948 _Bool success = false; 4949 4950 // Check restrict. 4951 if (test_restrict ("String literal") == 0) 4952 success = true; 4953 char *restrict newvar = "Another string"; 4954 4955 // Check varargs. 4956 test_varargs ("s, d' f .", "string", 65, 34.234); 4957 test_varargs_macros (); 4958 4959 // Check flexible array members. 4960 struct incomplete_array *ia = 4961 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4962 ia->datasize = 10; 4963 for (int i = 0; i < ia->datasize; ++i) 4964 ia->data[i] = i * 1.234; 4965 4966 // Check named initializers. 4967 struct named_init ni = { 4968 .number = 34, 4969 .name = L"Test wide string", 4970 .average = 543.34343, 4971 }; 4972 4973 ni.number = 58; 4974 4975 int dynamic_array[ni.number]; 4976 dynamic_array[ni.number - 1] = 543; 4977 4978 // work around unused variable warnings 4979 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4980 || dynamic_array[ni.number - 1] != 543); 4981 4982 ; 4983 return 0; 4984} 4985_ACEOF 4986for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4987do 4988 CC="$ac_save_CC $ac_arg" 4989 if ac_fn_c_try_compile "$LINENO"; then : 4990 ac_cv_prog_cc_c99=$ac_arg 4991fi 4992rm -f core conftest.err conftest.$ac_objext 4993 test "x$ac_cv_prog_cc_c99" != "xno" && break 4994done 4995rm -f conftest.$ac_ext 4996CC=$ac_save_CC 4997 4998fi 4999# AC_CACHE_VAL 5000case "x$ac_cv_prog_cc_c99" in 5001 x) 5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5003$as_echo "none needed" >&6; } ;; 5004 xno) 5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5006$as_echo "unsupported" >&6; } ;; 5007 *) 5008 CC="$CC $ac_cv_prog_cc_c99" 5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5010$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5011esac 5012if test "x$ac_cv_prog_cc_c99" != xno; then : 5013 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5014else 5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5016$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5017if ${ac_cv_prog_cc_c89+:} false; then : 5018 $as_echo_n "(cached) " >&6 5019else 5020 ac_cv_prog_cc_c89=no 5021ac_save_CC=$CC 5022cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5023/* end confdefs.h. */ 5024#include <stdarg.h> 5025#include <stdio.h> 5026struct stat; 5027/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5028struct buf { int x; }; 5029FILE * (*rcsopen) (struct buf *, struct stat *, int); 5030static char *e (p, i) 5031 char **p; 5032 int i; 5033{ 5034 return p[i]; 5035} 5036static char *f (char * (*g) (char **, int), char **p, ...) 5037{ 5038 char *s; 5039 va_list v; 5040 va_start (v,p); 5041 s = g (p, va_arg (v,int)); 5042 va_end (v); 5043 return s; 5044} 5045 5046/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5047 function prototypes and stuff, but not '\xHH' hex character constants. 5048 These don't provoke an error unfortunately, instead are silently treated 5049 as 'x'. The following induces an error, until -std is added to get 5050 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5051 array size at least. It's necessary to write '\x00'==0 to get something 5052 that's true only with -std. */ 5053int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5054 5055/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5056 inside strings and character constants. */ 5057#define FOO(x) 'x' 5058int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5059 5060int test (int i, double x); 5061struct s1 {int (*f) (int a);}; 5062struct s2 {int (*f) (double a);}; 5063int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5064int argc; 5065char **argv; 5066int 5067main () 5068{ 5069return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5070 ; 5071 return 0; 5072} 5073_ACEOF 5074for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5075 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5076do 5077 CC="$ac_save_CC $ac_arg" 5078 if ac_fn_c_try_compile "$LINENO"; then : 5079 ac_cv_prog_cc_c89=$ac_arg 5080fi 5081rm -f core conftest.err conftest.$ac_objext 5082 test "x$ac_cv_prog_cc_c89" != "xno" && break 5083done 5084rm -f conftest.$ac_ext 5085CC=$ac_save_CC 5086 5087fi 5088# AC_CACHE_VAL 5089case "x$ac_cv_prog_cc_c89" in 5090 x) 5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5092$as_echo "none needed" >&6; } ;; 5093 xno) 5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5095$as_echo "unsupported" >&6; } ;; 5096 *) 5097 CC="$CC $ac_cv_prog_cc_c89" 5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5099$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5100esac 5101if test "x$ac_cv_prog_cc_c89" != xno; then : 5102 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5103else 5104 ac_cv_prog_cc_stdc=no 5105fi 5106 5107fi 5108 ;; 5109esac 5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 5111$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 5112 if ${ac_cv_prog_cc_stdc+:} false; then : 5113 $as_echo_n "(cached) " >&6 5114fi 5115 5116 case $ac_cv_prog_cc_stdc in #( 5117 no) : 5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5119$as_echo "unsupported" >&6; } ;; #( 5120 '') : 5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5122$as_echo "none needed" >&6; } ;; #( 5123 *) : 5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 5125$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 5126esac 5127 5128 5129case `pwd` in 5130 *\ * | *\ *) 5131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5132$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5133esac 5134 5135 5136 5137macro_version='2.4.2' 5138macro_revision='1.3337' 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152ltmain="$ac_aux_dir/ltmain.sh" 5153 5154# Backslashify metacharacters that are still active within 5155# double-quoted strings. 5156sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5157 5158# Same as above, but do not quote variable references. 5159double_quote_subst='s/\(["`\\]\)/\\\1/g' 5160 5161# Sed substitution to delay expansion of an escaped shell variable in a 5162# double_quote_subst'ed string. 5163delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5164 5165# Sed substitution to delay expansion of an escaped single quote. 5166delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5167 5168# Sed substitution to avoid accidental globbing in evaled expressions 5169no_glob_subst='s/\*/\\\*/g' 5170 5171ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5172ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5173ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5174 5175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5176$as_echo_n "checking how to print strings... " >&6; } 5177# Test print first, because it will be a builtin if present. 5178if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5179 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5180 ECHO='print -r --' 5181elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5182 ECHO='printf %s\n' 5183else 5184 # Use this function as a fallback that always works. 5185 func_fallback_echo () 5186 { 5187 eval 'cat <<_LTECHO_EOF 5188$1 5189_LTECHO_EOF' 5190 } 5191 ECHO='func_fallback_echo' 5192fi 5193 5194# func_echo_all arg... 5195# Invoke $ECHO with all args, space-separated. 5196func_echo_all () 5197{ 5198 $ECHO "" 5199} 5200 5201case "$ECHO" in 5202 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5203$as_echo "printf" >&6; } ;; 5204 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5205$as_echo "print -r" >&6; } ;; 5206 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5207$as_echo "cat" >&6; } ;; 5208esac 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5224$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5225if ${ac_cv_path_SED+:} false; then : 5226 $as_echo_n "(cached) " >&6 5227else 5228 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5229 for ac_i in 1 2 3 4 5 6 7; do 5230 ac_script="$ac_script$as_nl$ac_script" 5231 done 5232 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5233 { ac_script=; unset ac_script;} 5234 if test -z "$SED"; then 5235 ac_path_SED_found=false 5236 # Loop through the user's path and test for each of PROGNAME-LIST 5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5238for as_dir in $PATH 5239do 5240 IFS=$as_save_IFS 5241 test -z "$as_dir" && as_dir=. 5242 for ac_prog in sed gsed; do 5243 for ac_exec_ext in '' $ac_executable_extensions; do 5244 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5245 as_fn_executable_p "$ac_path_SED" || continue 5246# Check for GNU ac_path_SED and select it if it is found. 5247 # Check for GNU $ac_path_SED 5248case `"$ac_path_SED" --version 2>&1` in 5249*GNU*) 5250 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5251*) 5252 ac_count=0 5253 $as_echo_n 0123456789 >"conftest.in" 5254 while : 5255 do 5256 cat "conftest.in" "conftest.in" >"conftest.tmp" 5257 mv "conftest.tmp" "conftest.in" 5258 cp "conftest.in" "conftest.nl" 5259 $as_echo '' >> "conftest.nl" 5260 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5261 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5262 as_fn_arith $ac_count + 1 && ac_count=$as_val 5263 if test $ac_count -gt ${ac_path_SED_max-0}; then 5264 # Best one so far, save it but keep looking for a better one 5265 ac_cv_path_SED="$ac_path_SED" 5266 ac_path_SED_max=$ac_count 5267 fi 5268 # 10*(2^10) chars as input seems more than enough 5269 test $ac_count -gt 10 && break 5270 done 5271 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5272esac 5273 5274 $ac_path_SED_found && break 3 5275 done 5276 done 5277 done 5278IFS=$as_save_IFS 5279 if test -z "$ac_cv_path_SED"; then 5280 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5281 fi 5282else 5283 ac_cv_path_SED=$SED 5284fi 5285 5286fi 5287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5288$as_echo "$ac_cv_path_SED" >&6; } 5289 SED="$ac_cv_path_SED" 5290 rm -f conftest.sed 5291 5292test -z "$SED" && SED=sed 5293Xsed="$SED -e 1s/^X//" 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5306$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5307if ${ac_cv_path_GREP+:} false; then : 5308 $as_echo_n "(cached) " >&6 5309else 5310 if test -z "$GREP"; then 5311 ac_path_GREP_found=false 5312 # Loop through the user's path and test for each of PROGNAME-LIST 5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5314for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5315do 5316 IFS=$as_save_IFS 5317 test -z "$as_dir" && as_dir=. 5318 for ac_prog in grep ggrep; do 5319 for ac_exec_ext in '' $ac_executable_extensions; do 5320 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5321 as_fn_executable_p "$ac_path_GREP" || continue 5322# Check for GNU ac_path_GREP and select it if it is found. 5323 # Check for GNU $ac_path_GREP 5324case `"$ac_path_GREP" --version 2>&1` in 5325*GNU*) 5326 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5327*) 5328 ac_count=0 5329 $as_echo_n 0123456789 >"conftest.in" 5330 while : 5331 do 5332 cat "conftest.in" "conftest.in" >"conftest.tmp" 5333 mv "conftest.tmp" "conftest.in" 5334 cp "conftest.in" "conftest.nl" 5335 $as_echo 'GREP' >> "conftest.nl" 5336 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5337 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5338 as_fn_arith $ac_count + 1 && ac_count=$as_val 5339 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5340 # Best one so far, save it but keep looking for a better one 5341 ac_cv_path_GREP="$ac_path_GREP" 5342 ac_path_GREP_max=$ac_count 5343 fi 5344 # 10*(2^10) chars as input seems more than enough 5345 test $ac_count -gt 10 && break 5346 done 5347 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5348esac 5349 5350 $ac_path_GREP_found && break 3 5351 done 5352 done 5353 done 5354IFS=$as_save_IFS 5355 if test -z "$ac_cv_path_GREP"; then 5356 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5357 fi 5358else 5359 ac_cv_path_GREP=$GREP 5360fi 5361 5362fi 5363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5364$as_echo "$ac_cv_path_GREP" >&6; } 5365 GREP="$ac_cv_path_GREP" 5366 5367 5368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5369$as_echo_n "checking for egrep... " >&6; } 5370if ${ac_cv_path_EGREP+:} false; then : 5371 $as_echo_n "(cached) " >&6 5372else 5373 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5374 then ac_cv_path_EGREP="$GREP -E" 5375 else 5376 if test -z "$EGREP"; then 5377 ac_path_EGREP_found=false 5378 # Loop through the user's path and test for each of PROGNAME-LIST 5379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5380for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5381do 5382 IFS=$as_save_IFS 5383 test -z "$as_dir" && as_dir=. 5384 for ac_prog in egrep; do 5385 for ac_exec_ext in '' $ac_executable_extensions; do 5386 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5387 as_fn_executable_p "$ac_path_EGREP" || continue 5388# Check for GNU ac_path_EGREP and select it if it is found. 5389 # Check for GNU $ac_path_EGREP 5390case `"$ac_path_EGREP" --version 2>&1` in 5391*GNU*) 5392 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5393*) 5394 ac_count=0 5395 $as_echo_n 0123456789 >"conftest.in" 5396 while : 5397 do 5398 cat "conftest.in" "conftest.in" >"conftest.tmp" 5399 mv "conftest.tmp" "conftest.in" 5400 cp "conftest.in" "conftest.nl" 5401 $as_echo 'EGREP' >> "conftest.nl" 5402 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5404 as_fn_arith $ac_count + 1 && ac_count=$as_val 5405 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5406 # Best one so far, save it but keep looking for a better one 5407 ac_cv_path_EGREP="$ac_path_EGREP" 5408 ac_path_EGREP_max=$ac_count 5409 fi 5410 # 10*(2^10) chars as input seems more than enough 5411 test $ac_count -gt 10 && break 5412 done 5413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5414esac 5415 5416 $ac_path_EGREP_found && break 3 5417 done 5418 done 5419 done 5420IFS=$as_save_IFS 5421 if test -z "$ac_cv_path_EGREP"; then 5422 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5423 fi 5424else 5425 ac_cv_path_EGREP=$EGREP 5426fi 5427 5428 fi 5429fi 5430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5431$as_echo "$ac_cv_path_EGREP" >&6; } 5432 EGREP="$ac_cv_path_EGREP" 5433 5434 5435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5436$as_echo_n "checking for fgrep... " >&6; } 5437if ${ac_cv_path_FGREP+:} false; then : 5438 $as_echo_n "(cached) " >&6 5439else 5440 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5441 then ac_cv_path_FGREP="$GREP -F" 5442 else 5443 if test -z "$FGREP"; then 5444 ac_path_FGREP_found=false 5445 # Loop through the user's path and test for each of PROGNAME-LIST 5446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5447for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5448do 5449 IFS=$as_save_IFS 5450 test -z "$as_dir" && as_dir=. 5451 for ac_prog in fgrep; do 5452 for ac_exec_ext in '' $ac_executable_extensions; do 5453 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5454 as_fn_executable_p "$ac_path_FGREP" || continue 5455# Check for GNU ac_path_FGREP and select it if it is found. 5456 # Check for GNU $ac_path_FGREP 5457case `"$ac_path_FGREP" --version 2>&1` in 5458*GNU*) 5459 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5460*) 5461 ac_count=0 5462 $as_echo_n 0123456789 >"conftest.in" 5463 while : 5464 do 5465 cat "conftest.in" "conftest.in" >"conftest.tmp" 5466 mv "conftest.tmp" "conftest.in" 5467 cp "conftest.in" "conftest.nl" 5468 $as_echo 'FGREP' >> "conftest.nl" 5469 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5471 as_fn_arith $ac_count + 1 && ac_count=$as_val 5472 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5473 # Best one so far, save it but keep looking for a better one 5474 ac_cv_path_FGREP="$ac_path_FGREP" 5475 ac_path_FGREP_max=$ac_count 5476 fi 5477 # 10*(2^10) chars as input seems more than enough 5478 test $ac_count -gt 10 && break 5479 done 5480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5481esac 5482 5483 $ac_path_FGREP_found && break 3 5484 done 5485 done 5486 done 5487IFS=$as_save_IFS 5488 if test -z "$ac_cv_path_FGREP"; then 5489 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5490 fi 5491else 5492 ac_cv_path_FGREP=$FGREP 5493fi 5494 5495 fi 5496fi 5497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5498$as_echo "$ac_cv_path_FGREP" >&6; } 5499 FGREP="$ac_cv_path_FGREP" 5500 5501 5502test -z "$GREP" && GREP=grep 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522# Check whether --with-gnu-ld was given. 5523if test "${with_gnu_ld+set}" = set; then : 5524 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5525else 5526 with_gnu_ld=no 5527fi 5528 5529ac_prog=ld 5530if test "$GCC" = yes; then 5531 # Check if gcc -print-prog-name=ld gives a path. 5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5533$as_echo_n "checking for ld used by $CC... " >&6; } 5534 case $host in 5535 *-*-mingw*) 5536 # gcc leaves a trailing carriage return which upsets mingw 5537 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5538 *) 5539 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5540 esac 5541 case $ac_prog in 5542 # Accept absolute paths. 5543 [\\/]* | ?:[\\/]*) 5544 re_direlt='/[^/][^/]*/\.\./' 5545 # Canonicalize the pathname of ld 5546 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5547 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5548 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5549 done 5550 test -z "$LD" && LD="$ac_prog" 5551 ;; 5552 "") 5553 # If it fails, then pretend we aren't using GCC. 5554 ac_prog=ld 5555 ;; 5556 *) 5557 # If it is relative, then search for the first ld in PATH. 5558 with_gnu_ld=unknown 5559 ;; 5560 esac 5561elif test "$with_gnu_ld" = yes; then 5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5563$as_echo_n "checking for GNU ld... " >&6; } 5564else 5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5566$as_echo_n "checking for non-GNU ld... " >&6; } 5567fi 5568if ${lt_cv_path_LD+:} false; then : 5569 $as_echo_n "(cached) " >&6 5570else 5571 if test -z "$LD"; then 5572 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5573 for ac_dir in $PATH; do 5574 IFS="$lt_save_ifs" 5575 test -z "$ac_dir" && ac_dir=. 5576 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5577 lt_cv_path_LD="$ac_dir/$ac_prog" 5578 # Check to see if the program is GNU ld. I'd rather use --version, 5579 # but apparently some variants of GNU ld only accept -v. 5580 # Break only if it was the GNU/non-GNU ld that we prefer. 5581 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5582 *GNU* | *'with BFD'*) 5583 test "$with_gnu_ld" != no && break 5584 ;; 5585 *) 5586 test "$with_gnu_ld" != yes && break 5587 ;; 5588 esac 5589 fi 5590 done 5591 IFS="$lt_save_ifs" 5592else 5593 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5594fi 5595fi 5596 5597LD="$lt_cv_path_LD" 5598if test -n "$LD"; then 5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5600$as_echo "$LD" >&6; } 5601else 5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5603$as_echo "no" >&6; } 5604fi 5605test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5607$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5608if ${lt_cv_prog_gnu_ld+:} false; then : 5609 $as_echo_n "(cached) " >&6 5610else 5611 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5612case `$LD -v 2>&1 </dev/null` in 5613*GNU* | *'with BFD'*) 5614 lt_cv_prog_gnu_ld=yes 5615 ;; 5616*) 5617 lt_cv_prog_gnu_ld=no 5618 ;; 5619esac 5620fi 5621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5622$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5623with_gnu_ld=$lt_cv_prog_gnu_ld 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5634$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5635if ${lt_cv_path_NM+:} false; then : 5636 $as_echo_n "(cached) " >&6 5637else 5638 if test -n "$NM"; then 5639 # Let the user override the test. 5640 lt_cv_path_NM="$NM" 5641else 5642 lt_nm_to_check="${ac_tool_prefix}nm" 5643 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5644 lt_nm_to_check="$lt_nm_to_check nm" 5645 fi 5646 for lt_tmp_nm in $lt_nm_to_check; do 5647 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5648 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5649 IFS="$lt_save_ifs" 5650 test -z "$ac_dir" && ac_dir=. 5651 tmp_nm="$ac_dir/$lt_tmp_nm" 5652 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5653 # Check to see if the nm accepts a BSD-compat flag. 5654 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5655 # nm: unknown option "B" ignored 5656 # Tru64's nm complains that /dev/null is an invalid object file 5657 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5658 */dev/null* | *'Invalid file or object type'*) 5659 lt_cv_path_NM="$tmp_nm -B" 5660 break 5661 ;; 5662 *) 5663 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5664 */dev/null*) 5665 lt_cv_path_NM="$tmp_nm -p" 5666 break 5667 ;; 5668 *) 5669 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5670 continue # so that we can try to find one that supports BSD flags 5671 ;; 5672 esac 5673 ;; 5674 esac 5675 fi 5676 done 5677 IFS="$lt_save_ifs" 5678 done 5679 : ${lt_cv_path_NM=no} 5680fi 5681fi 5682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5683$as_echo "$lt_cv_path_NM" >&6; } 5684if test "$lt_cv_path_NM" != "no"; then 5685 NM="$lt_cv_path_NM" 5686else 5687 # Didn't find any BSD compatible name lister, look for dumpbin. 5688 if test -n "$DUMPBIN"; then : 5689 # Let the user override the test. 5690 else 5691 if test -n "$ac_tool_prefix"; then 5692 for ac_prog in dumpbin "link -dump" 5693 do 5694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5695set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5697$as_echo_n "checking for $ac_word... " >&6; } 5698if ${ac_cv_prog_DUMPBIN+:} false; then : 5699 $as_echo_n "(cached) " >&6 5700else 5701 if test -n "$DUMPBIN"; then 5702 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5703else 5704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5705for as_dir in $PATH 5706do 5707 IFS=$as_save_IFS 5708 test -z "$as_dir" && as_dir=. 5709 for ac_exec_ext in '' $ac_executable_extensions; do 5710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5711 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5713 break 2 5714 fi 5715done 5716 done 5717IFS=$as_save_IFS 5718 5719fi 5720fi 5721DUMPBIN=$ac_cv_prog_DUMPBIN 5722if test -n "$DUMPBIN"; then 5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5724$as_echo "$DUMPBIN" >&6; } 5725else 5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5727$as_echo "no" >&6; } 5728fi 5729 5730 5731 test -n "$DUMPBIN" && break 5732 done 5733fi 5734if test -z "$DUMPBIN"; then 5735 ac_ct_DUMPBIN=$DUMPBIN 5736 for ac_prog in dumpbin "link -dump" 5737do 5738 # Extract the first word of "$ac_prog", so it can be a program name with args. 5739set dummy $ac_prog; ac_word=$2 5740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5741$as_echo_n "checking for $ac_word... " >&6; } 5742if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5743 $as_echo_n "(cached) " >&6 5744else 5745 if test -n "$ac_ct_DUMPBIN"; then 5746 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5747else 5748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5749for as_dir in $PATH 5750do 5751 IFS=$as_save_IFS 5752 test -z "$as_dir" && as_dir=. 5753 for ac_exec_ext in '' $ac_executable_extensions; do 5754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5755 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5757 break 2 5758 fi 5759done 5760 done 5761IFS=$as_save_IFS 5762 5763fi 5764fi 5765ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5766if test -n "$ac_ct_DUMPBIN"; then 5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5768$as_echo "$ac_ct_DUMPBIN" >&6; } 5769else 5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5771$as_echo "no" >&6; } 5772fi 5773 5774 5775 test -n "$ac_ct_DUMPBIN" && break 5776done 5777 5778 if test "x$ac_ct_DUMPBIN" = x; then 5779 DUMPBIN=":" 5780 else 5781 case $cross_compiling:$ac_tool_warned in 5782yes:) 5783{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5784$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5785ac_tool_warned=yes ;; 5786esac 5787 DUMPBIN=$ac_ct_DUMPBIN 5788 fi 5789fi 5790 5791 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5792 *COFF*) 5793 DUMPBIN="$DUMPBIN -symbols" 5794 ;; 5795 *) 5796 DUMPBIN=: 5797 ;; 5798 esac 5799 fi 5800 5801 if test "$DUMPBIN" != ":"; then 5802 NM="$DUMPBIN" 5803 fi 5804fi 5805test -z "$NM" && NM=nm 5806 5807 5808 5809 5810 5811 5812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5813$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5814if ${lt_cv_nm_interface+:} false; then : 5815 $as_echo_n "(cached) " >&6 5816else 5817 lt_cv_nm_interface="BSD nm" 5818 echo "int some_variable = 0;" > conftest.$ac_ext 5819 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5820 (eval "$ac_compile" 2>conftest.err) 5821 cat conftest.err >&5 5822 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5823 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5824 cat conftest.err >&5 5825 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5826 cat conftest.out >&5 5827 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5828 lt_cv_nm_interface="MS dumpbin" 5829 fi 5830 rm -f conftest* 5831fi 5832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5833$as_echo "$lt_cv_nm_interface" >&6; } 5834 5835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5836$as_echo_n "checking whether ln -s works... " >&6; } 5837LN_S=$as_ln_s 5838if test "$LN_S" = "ln -s"; then 5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5840$as_echo "yes" >&6; } 5841else 5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5843$as_echo "no, using $LN_S" >&6; } 5844fi 5845 5846# find the maximum length of command line arguments 5847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5848$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5849if ${lt_cv_sys_max_cmd_len+:} false; then : 5850 $as_echo_n "(cached) " >&6 5851else 5852 i=0 5853 teststring="ABCD" 5854 5855 case $build_os in 5856 msdosdjgpp*) 5857 # On DJGPP, this test can blow up pretty badly due to problems in libc 5858 # (any single argument exceeding 2000 bytes causes a buffer overrun 5859 # during glob expansion). Even if it were fixed, the result of this 5860 # check would be larger than it should be. 5861 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5862 ;; 5863 5864 gnu*) 5865 # Under GNU Hurd, this test is not required because there is 5866 # no limit to the length of command line arguments. 5867 # Libtool will interpret -1 as no limit whatsoever 5868 lt_cv_sys_max_cmd_len=-1; 5869 ;; 5870 5871 cygwin* | mingw* | cegcc*) 5872 # On Win9x/ME, this test blows up -- it succeeds, but takes 5873 # about 5 minutes as the teststring grows exponentially. 5874 # Worse, since 9x/ME are not pre-emptively multitasking, 5875 # you end up with a "frozen" computer, even though with patience 5876 # the test eventually succeeds (with a max line length of 256k). 5877 # Instead, let's just punt: use the minimum linelength reported by 5878 # all of the supported platforms: 8192 (on NT/2K/XP). 5879 lt_cv_sys_max_cmd_len=8192; 5880 ;; 5881 5882 mint*) 5883 # On MiNT this can take a long time and run out of memory. 5884 lt_cv_sys_max_cmd_len=8192; 5885 ;; 5886 5887 amigaos*) 5888 # On AmigaOS with pdksh, this test takes hours, literally. 5889 # So we just punt and use a minimum line length of 8192. 5890 lt_cv_sys_max_cmd_len=8192; 5891 ;; 5892 5893 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5894 # This has been around since 386BSD, at least. Likely further. 5895 if test -x /sbin/sysctl; then 5896 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5897 elif test -x /usr/sbin/sysctl; then 5898 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5899 else 5900 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5901 fi 5902 # And add a safety zone 5903 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5905 ;; 5906 5907 interix*) 5908 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5909 lt_cv_sys_max_cmd_len=196608 5910 ;; 5911 5912 os2*) 5913 # The test takes a long time on OS/2. 5914 lt_cv_sys_max_cmd_len=8192 5915 ;; 5916 5917 osf*) 5918 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5919 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5920 # nice to cause kernel panics so lets avoid the loop below. 5921 # First set a reasonable default. 5922 lt_cv_sys_max_cmd_len=16384 5923 # 5924 if test -x /sbin/sysconfig; then 5925 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5926 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5927 esac 5928 fi 5929 ;; 5930 sco3.2v5*) 5931 lt_cv_sys_max_cmd_len=102400 5932 ;; 5933 sysv5* | sco5v6* | sysv4.2uw2*) 5934 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5935 if test -n "$kargmax"; then 5936 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5937 else 5938 lt_cv_sys_max_cmd_len=32768 5939 fi 5940 ;; 5941 *) 5942 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5943 if test -n "$lt_cv_sys_max_cmd_len"; then 5944 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5945 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5946 else 5947 # Make teststring a little bigger before we do anything with it. 5948 # a 1K string should be a reasonable start. 5949 for i in 1 2 3 4 5 6 7 8 ; do 5950 teststring=$teststring$teststring 5951 done 5952 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5953 # If test is not a shell built-in, we'll probably end up computing a 5954 # maximum length that is only half of the actual maximum length, but 5955 # we can't tell. 5956 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5957 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5958 test $i != 17 # 1/2 MB should be enough 5959 do 5960 i=`expr $i + 1` 5961 teststring=$teststring$teststring 5962 done 5963 # Only check the string length outside the loop. 5964 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5965 teststring= 5966 # Add a significant safety factor because C++ compilers can tack on 5967 # massive amounts of additional arguments before passing them to the 5968 # linker. It appears as though 1/2 is a usable value. 5969 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5970 fi 5971 ;; 5972 esac 5973 5974fi 5975 5976if test -n $lt_cv_sys_max_cmd_len ; then 5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5978$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5979else 5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5981$as_echo "none" >&6; } 5982fi 5983max_cmd_len=$lt_cv_sys_max_cmd_len 5984 5985 5986 5987 5988 5989 5990: ${CP="cp -f"} 5991: ${MV="mv -f"} 5992: ${RM="rm -f"} 5993 5994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5995$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5996# Try some XSI features 5997xsi_shell=no 5998( _lt_dummy="a/b/c" 5999 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 6000 = c,a/b,b/c, \ 6001 && eval 'test $(( 1 + 1 )) -eq 2 \ 6002 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6003 && xsi_shell=yes 6004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6005$as_echo "$xsi_shell" >&6; } 6006 6007 6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6009$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6010lt_shell_append=no 6011( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6012 >/dev/null 2>&1 \ 6013 && lt_shell_append=yes 6014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6015$as_echo "$lt_shell_append" >&6; } 6016 6017 6018if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6019 lt_unset=unset 6020else 6021 lt_unset=false 6022fi 6023 6024 6025 6026 6027 6028# test EBCDIC or ASCII 6029case `echo X|tr X '\101'` in 6030 A) # ASCII based system 6031 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6032 lt_SP2NL='tr \040 \012' 6033 lt_NL2SP='tr \015\012 \040\040' 6034 ;; 6035 *) # EBCDIC based system 6036 lt_SP2NL='tr \100 \n' 6037 lt_NL2SP='tr \r\n \100\100' 6038 ;; 6039esac 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6050$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6051if ${lt_cv_to_host_file_cmd+:} false; then : 6052 $as_echo_n "(cached) " >&6 6053else 6054 case $host in 6055 *-*-mingw* ) 6056 case $build in 6057 *-*-mingw* ) # actually msys 6058 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6059 ;; 6060 *-*-cygwin* ) 6061 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6062 ;; 6063 * ) # otherwise, assume *nix 6064 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6065 ;; 6066 esac 6067 ;; 6068 *-*-cygwin* ) 6069 case $build in 6070 *-*-mingw* ) # actually msys 6071 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6072 ;; 6073 *-*-cygwin* ) 6074 lt_cv_to_host_file_cmd=func_convert_file_noop 6075 ;; 6076 * ) # otherwise, assume *nix 6077 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6078 ;; 6079 esac 6080 ;; 6081 * ) # unhandled hosts (and "normal" native builds) 6082 lt_cv_to_host_file_cmd=func_convert_file_noop 6083 ;; 6084esac 6085 6086fi 6087 6088to_host_file_cmd=$lt_cv_to_host_file_cmd 6089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6090$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6091 6092 6093 6094 6095 6096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6097$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6098if ${lt_cv_to_tool_file_cmd+:} false; then : 6099 $as_echo_n "(cached) " >&6 6100else 6101 #assume ordinary cross tools, or native build. 6102lt_cv_to_tool_file_cmd=func_convert_file_noop 6103case $host in 6104 *-*-mingw* ) 6105 case $build in 6106 *-*-mingw* ) # actually msys 6107 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6108 ;; 6109 esac 6110 ;; 6111esac 6112 6113fi 6114 6115to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6117$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6118 6119 6120 6121 6122 6123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6124$as_echo_n "checking for $LD option to reload object files... " >&6; } 6125if ${lt_cv_ld_reload_flag+:} false; then : 6126 $as_echo_n "(cached) " >&6 6127else 6128 lt_cv_ld_reload_flag='-r' 6129fi 6130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6131$as_echo "$lt_cv_ld_reload_flag" >&6; } 6132reload_flag=$lt_cv_ld_reload_flag 6133case $reload_flag in 6134"" | " "*) ;; 6135*) reload_flag=" $reload_flag" ;; 6136esac 6137reload_cmds='$LD$reload_flag -o $output$reload_objs' 6138case $host_os in 6139 cygwin* | mingw* | pw32* | cegcc*) 6140 if test "$GCC" != yes; then 6141 reload_cmds=false 6142 fi 6143 ;; 6144 darwin*) 6145 if test "$GCC" = yes; then 6146 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6147 else 6148 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6149 fi 6150 ;; 6151esac 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161if test -n "$ac_tool_prefix"; then 6162 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6163set dummy ${ac_tool_prefix}objdump; ac_word=$2 6164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6165$as_echo_n "checking for $ac_word... " >&6; } 6166if ${ac_cv_prog_OBJDUMP+:} false; then : 6167 $as_echo_n "(cached) " >&6 6168else 6169 if test -n "$OBJDUMP"; then 6170 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6171else 6172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6173for as_dir in $PATH 6174do 6175 IFS=$as_save_IFS 6176 test -z "$as_dir" && as_dir=. 6177 for ac_exec_ext in '' $ac_executable_extensions; do 6178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6179 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6181 break 2 6182 fi 6183done 6184 done 6185IFS=$as_save_IFS 6186 6187fi 6188fi 6189OBJDUMP=$ac_cv_prog_OBJDUMP 6190if test -n "$OBJDUMP"; then 6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6192$as_echo "$OBJDUMP" >&6; } 6193else 6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6195$as_echo "no" >&6; } 6196fi 6197 6198 6199fi 6200if test -z "$ac_cv_prog_OBJDUMP"; then 6201 ac_ct_OBJDUMP=$OBJDUMP 6202 # Extract the first word of "objdump", so it can be a program name with args. 6203set dummy objdump; ac_word=$2 6204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6205$as_echo_n "checking for $ac_word... " >&6; } 6206if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6207 $as_echo_n "(cached) " >&6 6208else 6209 if test -n "$ac_ct_OBJDUMP"; then 6210 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6211else 6212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6213for as_dir in $PATH 6214do 6215 IFS=$as_save_IFS 6216 test -z "$as_dir" && as_dir=. 6217 for ac_exec_ext in '' $ac_executable_extensions; do 6218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6219 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6221 break 2 6222 fi 6223done 6224 done 6225IFS=$as_save_IFS 6226 6227fi 6228fi 6229ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6230if test -n "$ac_ct_OBJDUMP"; then 6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6232$as_echo "$ac_ct_OBJDUMP" >&6; } 6233else 6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6235$as_echo "no" >&6; } 6236fi 6237 6238 if test "x$ac_ct_OBJDUMP" = x; then 6239 OBJDUMP="false" 6240 else 6241 case $cross_compiling:$ac_tool_warned in 6242yes:) 6243{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6244$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6245ac_tool_warned=yes ;; 6246esac 6247 OBJDUMP=$ac_ct_OBJDUMP 6248 fi 6249else 6250 OBJDUMP="$ac_cv_prog_OBJDUMP" 6251fi 6252 6253test -z "$OBJDUMP" && OBJDUMP=objdump 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6264$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6265if ${lt_cv_deplibs_check_method+:} false; then : 6266 $as_echo_n "(cached) " >&6 6267else 6268 lt_cv_file_magic_cmd='$MAGIC_CMD' 6269lt_cv_file_magic_test_file= 6270lt_cv_deplibs_check_method='unknown' 6271# Need to set the preceding variable on all platforms that support 6272# interlibrary dependencies. 6273# 'none' -- dependencies not supported. 6274# `unknown' -- same as none, but documents that we really don't know. 6275# 'pass_all' -- all dependencies passed with no checks. 6276# 'test_compile' -- check by making test program. 6277# 'file_magic [[regex]]' -- check by looking for files in library path 6278# which responds to the $file_magic_cmd with a given extended regex. 6279# If you have `file' or equivalent on your system and you're not sure 6280# whether `pass_all' will *always* work, you probably want this one. 6281 6282case $host_os in 6283aix[4-9]*) 6284 lt_cv_deplibs_check_method=pass_all 6285 ;; 6286 6287beos*) 6288 lt_cv_deplibs_check_method=pass_all 6289 ;; 6290 6291bsdi[45]*) 6292 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6293 lt_cv_file_magic_cmd='/usr/bin/file -L' 6294 lt_cv_file_magic_test_file=/shlib/libc.so 6295 ;; 6296 6297cygwin*) 6298 # func_win32_libid is a shell function defined in ltmain.sh 6299 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6300 lt_cv_file_magic_cmd='func_win32_libid' 6301 ;; 6302 6303mingw* | pw32*) 6304 # Base MSYS/MinGW do not provide the 'file' command needed by 6305 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6306 # unless we find 'file', for example because we are cross-compiling. 6307 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6308 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6309 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6310 lt_cv_file_magic_cmd='func_win32_libid' 6311 else 6312 # Keep this pattern in sync with the one in func_win32_libid. 6313 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6314 lt_cv_file_magic_cmd='$OBJDUMP -f' 6315 fi 6316 ;; 6317 6318cegcc*) 6319 # use the weaker test based on 'objdump'. See mingw*. 6320 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6321 lt_cv_file_magic_cmd='$OBJDUMP -f' 6322 ;; 6323 6324darwin* | rhapsody*) 6325 lt_cv_deplibs_check_method=pass_all 6326 ;; 6327 6328freebsd* | dragonfly*) 6329 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6330 case $host_cpu in 6331 i*86 ) 6332 # Not sure whether the presence of OpenBSD here was a mistake. 6333 # Let's accept both of them until this is cleared up. 6334 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6335 lt_cv_file_magic_cmd=/usr/bin/file 6336 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6337 ;; 6338 esac 6339 else 6340 lt_cv_deplibs_check_method=pass_all 6341 fi 6342 ;; 6343 6344gnu*) 6345 lt_cv_deplibs_check_method=pass_all 6346 ;; 6347 6348haiku*) 6349 lt_cv_deplibs_check_method=pass_all 6350 ;; 6351 6352hpux10.20* | hpux11*) 6353 lt_cv_file_magic_cmd=/usr/bin/file 6354 case $host_cpu in 6355 ia64*) 6356 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6357 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6358 ;; 6359 hppa*64*) 6360 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]' 6361 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6362 ;; 6363 *) 6364 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6365 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6366 ;; 6367 esac 6368 ;; 6369 6370interix[3-9]*) 6371 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6372 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6373 ;; 6374 6375irix5* | irix6* | nonstopux*) 6376 case $LD in 6377 *-32|*"-32 ") libmagic=32-bit;; 6378 *-n32|*"-n32 ") libmagic=N32;; 6379 *-64|*"-64 ") libmagic=64-bit;; 6380 *) libmagic=never-match;; 6381 esac 6382 lt_cv_deplibs_check_method=pass_all 6383 ;; 6384 6385# This must be glibc/ELF. 6386linux* | k*bsd*-gnu | kopensolaris*-gnu) 6387 lt_cv_deplibs_check_method=pass_all 6388 ;; 6389 6390netbsd*) 6391 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6392 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6393 else 6394 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6395 fi 6396 ;; 6397 6398newos6*) 6399 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6400 lt_cv_file_magic_cmd=/usr/bin/file 6401 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6402 ;; 6403 6404*nto* | *qnx*) 6405 lt_cv_deplibs_check_method=pass_all 6406 ;; 6407 6408openbsd*) 6409 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6410 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6411 else 6412 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6413 fi 6414 ;; 6415 6416osf3* | osf4* | osf5*) 6417 lt_cv_deplibs_check_method=pass_all 6418 ;; 6419 6420rdos*) 6421 lt_cv_deplibs_check_method=pass_all 6422 ;; 6423 6424solaris*) 6425 lt_cv_deplibs_check_method=pass_all 6426 ;; 6427 6428sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6429 lt_cv_deplibs_check_method=pass_all 6430 ;; 6431 6432sysv4 | sysv4.3*) 6433 case $host_vendor in 6434 motorola) 6435 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]' 6436 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6437 ;; 6438 ncr) 6439 lt_cv_deplibs_check_method=pass_all 6440 ;; 6441 sequent) 6442 lt_cv_file_magic_cmd='/bin/file' 6443 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6444 ;; 6445 sni) 6446 lt_cv_file_magic_cmd='/bin/file' 6447 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6448 lt_cv_file_magic_test_file=/lib/libc.so 6449 ;; 6450 siemens) 6451 lt_cv_deplibs_check_method=pass_all 6452 ;; 6453 pc) 6454 lt_cv_deplibs_check_method=pass_all 6455 ;; 6456 esac 6457 ;; 6458 6459tpf*) 6460 lt_cv_deplibs_check_method=pass_all 6461 ;; 6462esac 6463 6464fi 6465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6466$as_echo "$lt_cv_deplibs_check_method" >&6; } 6467 6468file_magic_glob= 6469want_nocaseglob=no 6470if test "$build" = "$host"; then 6471 case $host_os in 6472 mingw* | pw32*) 6473 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6474 want_nocaseglob=yes 6475 else 6476 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6477 fi 6478 ;; 6479 esac 6480fi 6481 6482file_magic_cmd=$lt_cv_file_magic_cmd 6483deplibs_check_method=$lt_cv_deplibs_check_method 6484test -z "$deplibs_check_method" && deplibs_check_method=unknown 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507if test -n "$ac_tool_prefix"; then 6508 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6509set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6511$as_echo_n "checking for $ac_word... " >&6; } 6512if ${ac_cv_prog_DLLTOOL+:} false; then : 6513 $as_echo_n "(cached) " >&6 6514else 6515 if test -n "$DLLTOOL"; then 6516 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6517else 6518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6519for as_dir in $PATH 6520do 6521 IFS=$as_save_IFS 6522 test -z "$as_dir" && as_dir=. 6523 for ac_exec_ext in '' $ac_executable_extensions; do 6524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6525 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6527 break 2 6528 fi 6529done 6530 done 6531IFS=$as_save_IFS 6532 6533fi 6534fi 6535DLLTOOL=$ac_cv_prog_DLLTOOL 6536if test -n "$DLLTOOL"; then 6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6538$as_echo "$DLLTOOL" >&6; } 6539else 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6541$as_echo "no" >&6; } 6542fi 6543 6544 6545fi 6546if test -z "$ac_cv_prog_DLLTOOL"; then 6547 ac_ct_DLLTOOL=$DLLTOOL 6548 # Extract the first word of "dlltool", so it can be a program name with args. 6549set dummy dlltool; ac_word=$2 6550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6551$as_echo_n "checking for $ac_word... " >&6; } 6552if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6553 $as_echo_n "(cached) " >&6 6554else 6555 if test -n "$ac_ct_DLLTOOL"; then 6556 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6557else 6558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6559for as_dir in $PATH 6560do 6561 IFS=$as_save_IFS 6562 test -z "$as_dir" && as_dir=. 6563 for ac_exec_ext in '' $ac_executable_extensions; do 6564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6565 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6567 break 2 6568 fi 6569done 6570 done 6571IFS=$as_save_IFS 6572 6573fi 6574fi 6575ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6576if test -n "$ac_ct_DLLTOOL"; then 6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6578$as_echo "$ac_ct_DLLTOOL" >&6; } 6579else 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6581$as_echo "no" >&6; } 6582fi 6583 6584 if test "x$ac_ct_DLLTOOL" = x; then 6585 DLLTOOL="false" 6586 else 6587 case $cross_compiling:$ac_tool_warned in 6588yes:) 6589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6591ac_tool_warned=yes ;; 6592esac 6593 DLLTOOL=$ac_ct_DLLTOOL 6594 fi 6595else 6596 DLLTOOL="$ac_cv_prog_DLLTOOL" 6597fi 6598 6599test -z "$DLLTOOL" && DLLTOOL=dlltool 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6611$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6612if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6613 $as_echo_n "(cached) " >&6 6614else 6615 lt_cv_sharedlib_from_linklib_cmd='unknown' 6616 6617case $host_os in 6618cygwin* | mingw* | pw32* | cegcc*) 6619 # two different shell functions defined in ltmain.sh 6620 # decide which to use based on capabilities of $DLLTOOL 6621 case `$DLLTOOL --help 2>&1` in 6622 *--identify-strict*) 6623 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6624 ;; 6625 *) 6626 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6627 ;; 6628 esac 6629 ;; 6630*) 6631 # fallback: assume linklib IS sharedlib 6632 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6633 ;; 6634esac 6635 6636fi 6637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6638$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6639sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6640test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6641 6642 6643 6644 6645 6646 6647 6648 6649if test -n "$ac_tool_prefix"; then 6650 for ac_prog in ar 6651 do 6652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6653set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6655$as_echo_n "checking for $ac_word... " >&6; } 6656if ${ac_cv_prog_AR+:} false; then : 6657 $as_echo_n "(cached) " >&6 6658else 6659 if test -n "$AR"; then 6660 ac_cv_prog_AR="$AR" # Let the user override the test. 6661else 6662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6663for as_dir in $PATH 6664do 6665 IFS=$as_save_IFS 6666 test -z "$as_dir" && as_dir=. 6667 for ac_exec_ext in '' $ac_executable_extensions; do 6668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6669 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6671 break 2 6672 fi 6673done 6674 done 6675IFS=$as_save_IFS 6676 6677fi 6678fi 6679AR=$ac_cv_prog_AR 6680if test -n "$AR"; then 6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6682$as_echo "$AR" >&6; } 6683else 6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6685$as_echo "no" >&6; } 6686fi 6687 6688 6689 test -n "$AR" && break 6690 done 6691fi 6692if test -z "$AR"; then 6693 ac_ct_AR=$AR 6694 for ac_prog in ar 6695do 6696 # Extract the first word of "$ac_prog", so it can be a program name with args. 6697set dummy $ac_prog; ac_word=$2 6698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6699$as_echo_n "checking for $ac_word... " >&6; } 6700if ${ac_cv_prog_ac_ct_AR+:} false; then : 6701 $as_echo_n "(cached) " >&6 6702else 6703 if test -n "$ac_ct_AR"; then 6704 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6705else 6706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6707for as_dir in $PATH 6708do 6709 IFS=$as_save_IFS 6710 test -z "$as_dir" && as_dir=. 6711 for ac_exec_ext in '' $ac_executable_extensions; do 6712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6713 ac_cv_prog_ac_ct_AR="$ac_prog" 6714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6715 break 2 6716 fi 6717done 6718 done 6719IFS=$as_save_IFS 6720 6721fi 6722fi 6723ac_ct_AR=$ac_cv_prog_ac_ct_AR 6724if test -n "$ac_ct_AR"; then 6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6726$as_echo "$ac_ct_AR" >&6; } 6727else 6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6729$as_echo "no" >&6; } 6730fi 6731 6732 6733 test -n "$ac_ct_AR" && break 6734done 6735 6736 if test "x$ac_ct_AR" = x; then 6737 AR="false" 6738 else 6739 case $cross_compiling:$ac_tool_warned in 6740yes:) 6741{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6743ac_tool_warned=yes ;; 6744esac 6745 AR=$ac_ct_AR 6746 fi 6747fi 6748 6749: ${AR=ar} 6750: ${AR_FLAGS=cru} 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6763$as_echo_n "checking for archiver @FILE support... " >&6; } 6764if ${lt_cv_ar_at_file+:} false; then : 6765 $as_echo_n "(cached) " >&6 6766else 6767 lt_cv_ar_at_file=no 6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6769/* end confdefs.h. */ 6770 6771int 6772main () 6773{ 6774 6775 ; 6776 return 0; 6777} 6778_ACEOF 6779if ac_fn_c_try_compile "$LINENO"; then : 6780 echo conftest.$ac_objext > conftest.lst 6781 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6783 (eval $lt_ar_try) 2>&5 6784 ac_status=$? 6785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6786 test $ac_status = 0; } 6787 if test "$ac_status" -eq 0; then 6788 # Ensure the archiver fails upon bogus file names. 6789 rm -f conftest.$ac_objext libconftest.a 6790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6791 (eval $lt_ar_try) 2>&5 6792 ac_status=$? 6793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6794 test $ac_status = 0; } 6795 if test "$ac_status" -ne 0; then 6796 lt_cv_ar_at_file=@ 6797 fi 6798 fi 6799 rm -f conftest.* libconftest.a 6800 6801fi 6802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6803 6804fi 6805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6806$as_echo "$lt_cv_ar_at_file" >&6; } 6807 6808if test "x$lt_cv_ar_at_file" = xno; then 6809 archiver_list_spec= 6810else 6811 archiver_list_spec=$lt_cv_ar_at_file 6812fi 6813 6814 6815 6816 6817 6818 6819 6820if test -n "$ac_tool_prefix"; then 6821 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6822set dummy ${ac_tool_prefix}strip; ac_word=$2 6823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6824$as_echo_n "checking for $ac_word... " >&6; } 6825if ${ac_cv_prog_STRIP+:} false; then : 6826 $as_echo_n "(cached) " >&6 6827else 6828 if test -n "$STRIP"; then 6829 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6830else 6831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6832for as_dir in $PATH 6833do 6834 IFS=$as_save_IFS 6835 test -z "$as_dir" && as_dir=. 6836 for ac_exec_ext in '' $ac_executable_extensions; do 6837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6838 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6840 break 2 6841 fi 6842done 6843 done 6844IFS=$as_save_IFS 6845 6846fi 6847fi 6848STRIP=$ac_cv_prog_STRIP 6849if test -n "$STRIP"; then 6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6851$as_echo "$STRIP" >&6; } 6852else 6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6854$as_echo "no" >&6; } 6855fi 6856 6857 6858fi 6859if test -z "$ac_cv_prog_STRIP"; then 6860 ac_ct_STRIP=$STRIP 6861 # Extract the first word of "strip", so it can be a program name with args. 6862set dummy strip; ac_word=$2 6863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6864$as_echo_n "checking for $ac_word... " >&6; } 6865if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6866 $as_echo_n "(cached) " >&6 6867else 6868 if test -n "$ac_ct_STRIP"; then 6869 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6870else 6871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6872for as_dir in $PATH 6873do 6874 IFS=$as_save_IFS 6875 test -z "$as_dir" && as_dir=. 6876 for ac_exec_ext in '' $ac_executable_extensions; do 6877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6878 ac_cv_prog_ac_ct_STRIP="strip" 6879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6880 break 2 6881 fi 6882done 6883 done 6884IFS=$as_save_IFS 6885 6886fi 6887fi 6888ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6889if test -n "$ac_ct_STRIP"; then 6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6891$as_echo "$ac_ct_STRIP" >&6; } 6892else 6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6894$as_echo "no" >&6; } 6895fi 6896 6897 if test "x$ac_ct_STRIP" = x; then 6898 STRIP=":" 6899 else 6900 case $cross_compiling:$ac_tool_warned in 6901yes:) 6902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6904ac_tool_warned=yes ;; 6905esac 6906 STRIP=$ac_ct_STRIP 6907 fi 6908else 6909 STRIP="$ac_cv_prog_STRIP" 6910fi 6911 6912test -z "$STRIP" && STRIP=: 6913 6914 6915 6916 6917 6918 6919if test -n "$ac_tool_prefix"; then 6920 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6921set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6923$as_echo_n "checking for $ac_word... " >&6; } 6924if ${ac_cv_prog_RANLIB+:} false; then : 6925 $as_echo_n "(cached) " >&6 6926else 6927 if test -n "$RANLIB"; then 6928 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6929else 6930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6931for as_dir in $PATH 6932do 6933 IFS=$as_save_IFS 6934 test -z "$as_dir" && as_dir=. 6935 for ac_exec_ext in '' $ac_executable_extensions; do 6936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6937 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6939 break 2 6940 fi 6941done 6942 done 6943IFS=$as_save_IFS 6944 6945fi 6946fi 6947RANLIB=$ac_cv_prog_RANLIB 6948if test -n "$RANLIB"; then 6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6950$as_echo "$RANLIB" >&6; } 6951else 6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6953$as_echo "no" >&6; } 6954fi 6955 6956 6957fi 6958if test -z "$ac_cv_prog_RANLIB"; then 6959 ac_ct_RANLIB=$RANLIB 6960 # Extract the first word of "ranlib", so it can be a program name with args. 6961set dummy ranlib; ac_word=$2 6962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6963$as_echo_n "checking for $ac_word... " >&6; } 6964if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6965 $as_echo_n "(cached) " >&6 6966else 6967 if test -n "$ac_ct_RANLIB"; then 6968 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6969else 6970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6971for as_dir in $PATH 6972do 6973 IFS=$as_save_IFS 6974 test -z "$as_dir" && as_dir=. 6975 for ac_exec_ext in '' $ac_executable_extensions; do 6976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6977 ac_cv_prog_ac_ct_RANLIB="ranlib" 6978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6979 break 2 6980 fi 6981done 6982 done 6983IFS=$as_save_IFS 6984 6985fi 6986fi 6987ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6988if test -n "$ac_ct_RANLIB"; then 6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6990$as_echo "$ac_ct_RANLIB" >&6; } 6991else 6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6993$as_echo "no" >&6; } 6994fi 6995 6996 if test "x$ac_ct_RANLIB" = x; then 6997 RANLIB=":" 6998 else 6999 case $cross_compiling:$ac_tool_warned in 7000yes:) 7001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7003ac_tool_warned=yes ;; 7004esac 7005 RANLIB=$ac_ct_RANLIB 7006 fi 7007else 7008 RANLIB="$ac_cv_prog_RANLIB" 7009fi 7010 7011test -z "$RANLIB" && RANLIB=: 7012 7013 7014 7015 7016 7017 7018# Determine commands to create old-style static archives. 7019old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7020old_postinstall_cmds='chmod 644 $oldlib' 7021old_postuninstall_cmds= 7022 7023if test -n "$RANLIB"; then 7024 case $host_os in 7025 openbsd*) 7026 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7027 ;; 7028 *) 7029 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7030 ;; 7031 esac 7032 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7033fi 7034 7035case $host_os in 7036 darwin*) 7037 lock_old_archive_extraction=yes ;; 7038 *) 7039 lock_old_archive_extraction=no ;; 7040esac 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080# If no C compiler was specified, use CC. 7081LTCC=${LTCC-"$CC"} 7082 7083# If no C compiler flags were specified, use CFLAGS. 7084LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7085 7086# Allow CC to be a program name with arguments. 7087compiler=$CC 7088 7089 7090# Check for command to grab the raw symbol name followed by C symbol from nm. 7091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7092$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7093if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7094 $as_echo_n "(cached) " >&6 7095else 7096 7097# These are sane defaults that work on at least a few old systems. 7098# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7099 7100# Character class describing NM global symbol codes. 7101symcode='[BCDEGRST]' 7102 7103# Regexp to match symbols that can be accessed directly from C. 7104sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7105 7106# Define system-specific variables. 7107case $host_os in 7108aix*) 7109 symcode='[BCDT]' 7110 ;; 7111cygwin* | mingw* | pw32* | cegcc*) 7112 symcode='[ABCDGISTW]' 7113 ;; 7114hpux*) 7115 if test "$host_cpu" = ia64; then 7116 symcode='[ABCDEGRST]' 7117 fi 7118 ;; 7119irix* | nonstopux*) 7120 symcode='[BCDEGRST]' 7121 ;; 7122osf*) 7123 symcode='[BCDEGQRST]' 7124 ;; 7125solaris*) 7126 symcode='[BDRT]' 7127 ;; 7128sco3.2v5*) 7129 symcode='[DT]' 7130 ;; 7131sysv4.2uw2*) 7132 symcode='[DT]' 7133 ;; 7134sysv5* | sco5v6* | unixware* | OpenUNIX*) 7135 symcode='[ABDT]' 7136 ;; 7137sysv4) 7138 symcode='[DFNSTU]' 7139 ;; 7140esac 7141 7142# If we're using GNU nm, then use its standard symbol codes. 7143case `$NM -V 2>&1` in 7144*GNU* | *'with BFD'*) 7145 symcode='[ABCDGIRSTW]' ;; 7146esac 7147 7148# Transform an extracted symbol line into a proper C declaration. 7149# Some systems (esp. on ia64) link data and code symbols differently, 7150# so use this general approach. 7151lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7152 7153# Transform an extracted symbol line into symbol name and symbol address 7154lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7155lt_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'" 7156 7157# Handle CRLF in mingw tool chain 7158opt_cr= 7159case $build_os in 7160mingw*) 7161 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7162 ;; 7163esac 7164 7165# Try without a prefix underscore, then with it. 7166for ac_symprfx in "" "_"; do 7167 7168 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7169 symxfrm="\\1 $ac_symprfx\\2 \\2" 7170 7171 # Write the raw and C identifiers. 7172 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7173 # Fake it for dumpbin and say T for any non-static function 7174 # and D for any global variable. 7175 # Also find C++ and __fastcall symbols from MSVC++, 7176 # which start with @ or ?. 7177 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7178" {last_section=section; section=\$ 3};"\ 7179" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7180" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7181" \$ 0!~/External *\|/{next};"\ 7182" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7183" {if(hide[section]) next};"\ 7184" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7185" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7186" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7187" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7188" ' prfx=^$ac_symprfx" 7189 else 7190 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7191 fi 7192 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7193 7194 # Check to see that the pipe works correctly. 7195 pipe_works=no 7196 7197 rm -f conftest* 7198 cat > conftest.$ac_ext <<_LT_EOF 7199#ifdef __cplusplus 7200extern "C" { 7201#endif 7202char nm_test_var; 7203void nm_test_func(void); 7204void nm_test_func(void){} 7205#ifdef __cplusplus 7206} 7207#endif 7208int main(){nm_test_var='a';nm_test_func();return(0);} 7209_LT_EOF 7210 7211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7212 (eval $ac_compile) 2>&5 7213 ac_status=$? 7214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7215 test $ac_status = 0; }; then 7216 # Now try to grab the symbols. 7217 nlist=conftest.nm 7218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7219 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7220 ac_status=$? 7221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7222 test $ac_status = 0; } && test -s "$nlist"; then 7223 # Try sorting and uniquifying the output. 7224 if sort "$nlist" | uniq > "$nlist"T; then 7225 mv -f "$nlist"T "$nlist" 7226 else 7227 rm -f "$nlist"T 7228 fi 7229 7230 # Make sure that we snagged all the symbols we need. 7231 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7232 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7233 cat <<_LT_EOF > conftest.$ac_ext 7234/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7235#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 7236/* DATA imports from DLLs on WIN32 con't be const, because runtime 7237 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7238# define LT_DLSYM_CONST 7239#elif defined(__osf__) 7240/* This system does not cope well with relocations in const data. */ 7241# define LT_DLSYM_CONST 7242#else 7243# define LT_DLSYM_CONST const 7244#endif 7245 7246#ifdef __cplusplus 7247extern "C" { 7248#endif 7249 7250_LT_EOF 7251 # Now generate the symbol file. 7252 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7253 7254 cat <<_LT_EOF >> conftest.$ac_ext 7255 7256/* The mapping between symbol names and symbols. */ 7257LT_DLSYM_CONST struct { 7258 const char *name; 7259 void *address; 7260} 7261lt__PROGRAM__LTX_preloaded_symbols[] = 7262{ 7263 { "@PROGRAM@", (void *) 0 }, 7264_LT_EOF 7265 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7266 cat <<\_LT_EOF >> conftest.$ac_ext 7267 {0, (void *) 0} 7268}; 7269 7270/* This works around a problem in FreeBSD linker */ 7271#ifdef FREEBSD_WORKAROUND 7272static const void *lt_preloaded_setup() { 7273 return lt__PROGRAM__LTX_preloaded_symbols; 7274} 7275#endif 7276 7277#ifdef __cplusplus 7278} 7279#endif 7280_LT_EOF 7281 # Now try linking the two files. 7282 mv conftest.$ac_objext conftstm.$ac_objext 7283 lt_globsym_save_LIBS=$LIBS 7284 lt_globsym_save_CFLAGS=$CFLAGS 7285 LIBS="conftstm.$ac_objext" 7286 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7288 (eval $ac_link) 2>&5 7289 ac_status=$? 7290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7291 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7292 pipe_works=yes 7293 fi 7294 LIBS=$lt_globsym_save_LIBS 7295 CFLAGS=$lt_globsym_save_CFLAGS 7296 else 7297 echo "cannot find nm_test_func in $nlist" >&5 7298 fi 7299 else 7300 echo "cannot find nm_test_var in $nlist" >&5 7301 fi 7302 else 7303 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7304 fi 7305 else 7306 echo "$progname: failed program was:" >&5 7307 cat conftest.$ac_ext >&5 7308 fi 7309 rm -rf conftest* conftst* 7310 7311 # Do not use the global_symbol_pipe unless it works. 7312 if test "$pipe_works" = yes; then 7313 break 7314 else 7315 lt_cv_sys_global_symbol_pipe= 7316 fi 7317done 7318 7319fi 7320 7321if test -z "$lt_cv_sys_global_symbol_pipe"; then 7322 lt_cv_sys_global_symbol_to_cdecl= 7323fi 7324if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7326$as_echo "failed" >&6; } 7327else 7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7329$as_echo "ok" >&6; } 7330fi 7331 7332# Response file support. 7333if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7334 nm_file_list_spec='@' 7335elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7336 nm_file_list_spec='@' 7337fi 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7366$as_echo_n "checking for sysroot... " >&6; } 7367 7368# Check whether --with-sysroot was given. 7369if test "${with_sysroot+set}" = set; then : 7370 withval=$with_sysroot; 7371else 7372 with_sysroot=no 7373fi 7374 7375 7376lt_sysroot= 7377case ${with_sysroot} in #( 7378 yes) 7379 if test "$GCC" = yes; then 7380 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7381 fi 7382 ;; #( 7383 /*) 7384 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7385 ;; #( 7386 no|'') 7387 ;; #( 7388 *) 7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 7390$as_echo "${with_sysroot}" >&6; } 7391 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7392 ;; 7393esac 7394 7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7396$as_echo "${lt_sysroot:-no}" >&6; } 7397 7398 7399 7400 7401 7402# Check whether --enable-libtool-lock was given. 7403if test "${enable_libtool_lock+set}" = set; then : 7404 enableval=$enable_libtool_lock; 7405fi 7406 7407test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7408 7409# Some flags need to be propagated to the compiler or linker for good 7410# libtool support. 7411case $host in 7412ia64-*-hpux*) 7413 # Find out which ABI we are using. 7414 echo 'int i;' > conftest.$ac_ext 7415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7416 (eval $ac_compile) 2>&5 7417 ac_status=$? 7418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7419 test $ac_status = 0; }; then 7420 case `/usr/bin/file conftest.$ac_objext` in 7421 *ELF-32*) 7422 HPUX_IA64_MODE="32" 7423 ;; 7424 *ELF-64*) 7425 HPUX_IA64_MODE="64" 7426 ;; 7427 esac 7428 fi 7429 rm -rf conftest* 7430 ;; 7431*-*-irix6*) 7432 # Find out which ABI we are using. 7433 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7435 (eval $ac_compile) 2>&5 7436 ac_status=$? 7437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7438 test $ac_status = 0; }; then 7439 if test "$lt_cv_prog_gnu_ld" = yes; then 7440 case `/usr/bin/file conftest.$ac_objext` in 7441 *32-bit*) 7442 LD="${LD-ld} -melf32bsmip" 7443 ;; 7444 *N32*) 7445 LD="${LD-ld} -melf32bmipn32" 7446 ;; 7447 *64-bit*) 7448 LD="${LD-ld} -melf64bmip" 7449 ;; 7450 esac 7451 else 7452 case `/usr/bin/file conftest.$ac_objext` in 7453 *32-bit*) 7454 LD="${LD-ld} -32" 7455 ;; 7456 *N32*) 7457 LD="${LD-ld} -n32" 7458 ;; 7459 *64-bit*) 7460 LD="${LD-ld} -64" 7461 ;; 7462 esac 7463 fi 7464 fi 7465 rm -rf conftest* 7466 ;; 7467 7468x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7469s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7470 # Find out which ABI we are using. 7471 echo 'int i;' > conftest.$ac_ext 7472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7473 (eval $ac_compile) 2>&5 7474 ac_status=$? 7475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7476 test $ac_status = 0; }; then 7477 case `/usr/bin/file conftest.o` in 7478 *32-bit*) 7479 case $host in 7480 x86_64-*kfreebsd*-gnu) 7481 LD="${LD-ld} -m elf_i386_fbsd" 7482 ;; 7483 x86_64-*linux*) 7484 LD="${LD-ld} -m elf_i386" 7485 ;; 7486 ppc64-*linux*|powerpc64-*linux*) 7487 LD="${LD-ld} -m elf32ppclinux" 7488 ;; 7489 s390x-*linux*) 7490 LD="${LD-ld} -m elf_s390" 7491 ;; 7492 sparc64-*linux*) 7493 LD="${LD-ld} -m elf32_sparc" 7494 ;; 7495 esac 7496 ;; 7497 *64-bit*) 7498 case $host in 7499 x86_64-*kfreebsd*-gnu) 7500 LD="${LD-ld} -m elf_x86_64_fbsd" 7501 ;; 7502 x86_64-*linux*) 7503 LD="${LD-ld} -m elf_x86_64" 7504 ;; 7505 ppc*-*linux*|powerpc*-*linux*) 7506 LD="${LD-ld} -m elf64ppc" 7507 ;; 7508 s390*-*linux*|s390*-*tpf*) 7509 LD="${LD-ld} -m elf64_s390" 7510 ;; 7511 sparc*-*linux*) 7512 LD="${LD-ld} -m elf64_sparc" 7513 ;; 7514 esac 7515 ;; 7516 esac 7517 fi 7518 rm -rf conftest* 7519 ;; 7520 7521*-*-sco3.2v5*) 7522 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7523 SAVE_CFLAGS="$CFLAGS" 7524 CFLAGS="$CFLAGS -belf" 7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7526$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7527if ${lt_cv_cc_needs_belf+:} false; then : 7528 $as_echo_n "(cached) " >&6 7529else 7530 ac_ext=c 7531ac_cpp='$CPP $CPPFLAGS' 7532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7534ac_compiler_gnu=$ac_cv_c_compiler_gnu 7535 7536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7537/* end confdefs.h. */ 7538 7539int 7540main () 7541{ 7542 7543 ; 7544 return 0; 7545} 7546_ACEOF 7547if ac_fn_c_try_link "$LINENO"; then : 7548 lt_cv_cc_needs_belf=yes 7549else 7550 lt_cv_cc_needs_belf=no 7551fi 7552rm -f core conftest.err conftest.$ac_objext \ 7553 conftest$ac_exeext conftest.$ac_ext 7554 ac_ext=c 7555ac_cpp='$CPP $CPPFLAGS' 7556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7558ac_compiler_gnu=$ac_cv_c_compiler_gnu 7559 7560fi 7561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7562$as_echo "$lt_cv_cc_needs_belf" >&6; } 7563 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7564 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7565 CFLAGS="$SAVE_CFLAGS" 7566 fi 7567 ;; 7568*-*solaris*) 7569 # Find out which ABI we are using. 7570 echo 'int i;' > conftest.$ac_ext 7571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7572 (eval $ac_compile) 2>&5 7573 ac_status=$? 7574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7575 test $ac_status = 0; }; then 7576 case `/usr/bin/file conftest.o` in 7577 *64-bit*) 7578 case $lt_cv_prog_gnu_ld in 7579 yes*) 7580 case $host in 7581 i?86-*-solaris*) 7582 LD="${LD-ld} -m elf_x86_64" 7583 ;; 7584 sparc*-*-solaris*) 7585 LD="${LD-ld} -m elf64_sparc" 7586 ;; 7587 esac 7588 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7589 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7590 LD="${LD-ld}_sol2" 7591 fi 7592 ;; 7593 *) 7594 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7595 LD="${LD-ld} -64" 7596 fi 7597 ;; 7598 esac 7599 ;; 7600 esac 7601 fi 7602 rm -rf conftest* 7603 ;; 7604esac 7605 7606need_locks="$enable_libtool_lock" 7607 7608if test -n "$ac_tool_prefix"; then 7609 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7610set dummy ${ac_tool_prefix}mt; ac_word=$2 7611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7612$as_echo_n "checking for $ac_word... " >&6; } 7613if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7614 $as_echo_n "(cached) " >&6 7615else 7616 if test -n "$MANIFEST_TOOL"; then 7617 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7618else 7619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7620for as_dir in $PATH 7621do 7622 IFS=$as_save_IFS 7623 test -z "$as_dir" && as_dir=. 7624 for ac_exec_ext in '' $ac_executable_extensions; do 7625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7626 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7628 break 2 7629 fi 7630done 7631 done 7632IFS=$as_save_IFS 7633 7634fi 7635fi 7636MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7637if test -n "$MANIFEST_TOOL"; then 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7639$as_echo "$MANIFEST_TOOL" >&6; } 7640else 7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7642$as_echo "no" >&6; } 7643fi 7644 7645 7646fi 7647if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7648 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7649 # Extract the first word of "mt", so it can be a program name with args. 7650set dummy mt; ac_word=$2 7651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7652$as_echo_n "checking for $ac_word... " >&6; } 7653if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7654 $as_echo_n "(cached) " >&6 7655else 7656 if test -n "$ac_ct_MANIFEST_TOOL"; then 7657 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7658else 7659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7660for as_dir in $PATH 7661do 7662 IFS=$as_save_IFS 7663 test -z "$as_dir" && as_dir=. 7664 for ac_exec_ext in '' $ac_executable_extensions; do 7665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7666 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7668 break 2 7669 fi 7670done 7671 done 7672IFS=$as_save_IFS 7673 7674fi 7675fi 7676ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7677if test -n "$ac_ct_MANIFEST_TOOL"; then 7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7679$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7680else 7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7682$as_echo "no" >&6; } 7683fi 7684 7685 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7686 MANIFEST_TOOL=":" 7687 else 7688 case $cross_compiling:$ac_tool_warned in 7689yes:) 7690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7692ac_tool_warned=yes ;; 7693esac 7694 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7695 fi 7696else 7697 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7698fi 7699 7700test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7702$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7703if ${lt_cv_path_mainfest_tool+:} false; then : 7704 $as_echo_n "(cached) " >&6 7705else 7706 lt_cv_path_mainfest_tool=no 7707 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7708 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7709 cat conftest.err >&5 7710 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7711 lt_cv_path_mainfest_tool=yes 7712 fi 7713 rm -f conftest* 7714fi 7715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7716$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7717if test "x$lt_cv_path_mainfest_tool" != xyes; then 7718 MANIFEST_TOOL=: 7719fi 7720 7721 7722 7723 7724 7725 7726 case $host_os in 7727 rhapsody* | darwin*) 7728 if test -n "$ac_tool_prefix"; then 7729 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7730set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7732$as_echo_n "checking for $ac_word... " >&6; } 7733if ${ac_cv_prog_DSYMUTIL+:} false; then : 7734 $as_echo_n "(cached) " >&6 7735else 7736 if test -n "$DSYMUTIL"; then 7737 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7738else 7739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7740for as_dir in $PATH 7741do 7742 IFS=$as_save_IFS 7743 test -z "$as_dir" && as_dir=. 7744 for ac_exec_ext in '' $ac_executable_extensions; do 7745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7746 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7748 break 2 7749 fi 7750done 7751 done 7752IFS=$as_save_IFS 7753 7754fi 7755fi 7756DSYMUTIL=$ac_cv_prog_DSYMUTIL 7757if test -n "$DSYMUTIL"; then 7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7759$as_echo "$DSYMUTIL" >&6; } 7760else 7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7762$as_echo "no" >&6; } 7763fi 7764 7765 7766fi 7767if test -z "$ac_cv_prog_DSYMUTIL"; then 7768 ac_ct_DSYMUTIL=$DSYMUTIL 7769 # Extract the first word of "dsymutil", so it can be a program name with args. 7770set dummy dsymutil; ac_word=$2 7771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7772$as_echo_n "checking for $ac_word... " >&6; } 7773if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7774 $as_echo_n "(cached) " >&6 7775else 7776 if test -n "$ac_ct_DSYMUTIL"; then 7777 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7778else 7779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7780for as_dir in $PATH 7781do 7782 IFS=$as_save_IFS 7783 test -z "$as_dir" && as_dir=. 7784 for ac_exec_ext in '' $ac_executable_extensions; do 7785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7786 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7788 break 2 7789 fi 7790done 7791 done 7792IFS=$as_save_IFS 7793 7794fi 7795fi 7796ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7797if test -n "$ac_ct_DSYMUTIL"; then 7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7799$as_echo "$ac_ct_DSYMUTIL" >&6; } 7800else 7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7802$as_echo "no" >&6; } 7803fi 7804 7805 if test "x$ac_ct_DSYMUTIL" = x; then 7806 DSYMUTIL=":" 7807 else 7808 case $cross_compiling:$ac_tool_warned in 7809yes:) 7810{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7811$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7812ac_tool_warned=yes ;; 7813esac 7814 DSYMUTIL=$ac_ct_DSYMUTIL 7815 fi 7816else 7817 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7818fi 7819 7820 if test -n "$ac_tool_prefix"; then 7821 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7822set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7824$as_echo_n "checking for $ac_word... " >&6; } 7825if ${ac_cv_prog_NMEDIT+:} false; then : 7826 $as_echo_n "(cached) " >&6 7827else 7828 if test -n "$NMEDIT"; then 7829 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7830else 7831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7832for as_dir in $PATH 7833do 7834 IFS=$as_save_IFS 7835 test -z "$as_dir" && as_dir=. 7836 for ac_exec_ext in '' $ac_executable_extensions; do 7837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7838 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7840 break 2 7841 fi 7842done 7843 done 7844IFS=$as_save_IFS 7845 7846fi 7847fi 7848NMEDIT=$ac_cv_prog_NMEDIT 7849if test -n "$NMEDIT"; then 7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7851$as_echo "$NMEDIT" >&6; } 7852else 7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7854$as_echo "no" >&6; } 7855fi 7856 7857 7858fi 7859if test -z "$ac_cv_prog_NMEDIT"; then 7860 ac_ct_NMEDIT=$NMEDIT 7861 # Extract the first word of "nmedit", so it can be a program name with args. 7862set dummy nmedit; ac_word=$2 7863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7864$as_echo_n "checking for $ac_word... " >&6; } 7865if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7866 $as_echo_n "(cached) " >&6 7867else 7868 if test -n "$ac_ct_NMEDIT"; then 7869 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7870else 7871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7872for as_dir in $PATH 7873do 7874 IFS=$as_save_IFS 7875 test -z "$as_dir" && as_dir=. 7876 for ac_exec_ext in '' $ac_executable_extensions; do 7877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7878 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7880 break 2 7881 fi 7882done 7883 done 7884IFS=$as_save_IFS 7885 7886fi 7887fi 7888ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7889if test -n "$ac_ct_NMEDIT"; then 7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7891$as_echo "$ac_ct_NMEDIT" >&6; } 7892else 7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7894$as_echo "no" >&6; } 7895fi 7896 7897 if test "x$ac_ct_NMEDIT" = x; then 7898 NMEDIT=":" 7899 else 7900 case $cross_compiling:$ac_tool_warned in 7901yes:) 7902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7904ac_tool_warned=yes ;; 7905esac 7906 NMEDIT=$ac_ct_NMEDIT 7907 fi 7908else 7909 NMEDIT="$ac_cv_prog_NMEDIT" 7910fi 7911 7912 if test -n "$ac_tool_prefix"; then 7913 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7914set dummy ${ac_tool_prefix}lipo; ac_word=$2 7915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7916$as_echo_n "checking for $ac_word... " >&6; } 7917if ${ac_cv_prog_LIPO+:} false; then : 7918 $as_echo_n "(cached) " >&6 7919else 7920 if test -n "$LIPO"; then 7921 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7922else 7923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7924for as_dir in $PATH 7925do 7926 IFS=$as_save_IFS 7927 test -z "$as_dir" && as_dir=. 7928 for ac_exec_ext in '' $ac_executable_extensions; do 7929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7930 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7932 break 2 7933 fi 7934done 7935 done 7936IFS=$as_save_IFS 7937 7938fi 7939fi 7940LIPO=$ac_cv_prog_LIPO 7941if test -n "$LIPO"; then 7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7943$as_echo "$LIPO" >&6; } 7944else 7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7946$as_echo "no" >&6; } 7947fi 7948 7949 7950fi 7951if test -z "$ac_cv_prog_LIPO"; then 7952 ac_ct_LIPO=$LIPO 7953 # Extract the first word of "lipo", so it can be a program name with args. 7954set dummy lipo; ac_word=$2 7955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7956$as_echo_n "checking for $ac_word... " >&6; } 7957if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7958 $as_echo_n "(cached) " >&6 7959else 7960 if test -n "$ac_ct_LIPO"; then 7961 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7962else 7963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7964for as_dir in $PATH 7965do 7966 IFS=$as_save_IFS 7967 test -z "$as_dir" && as_dir=. 7968 for ac_exec_ext in '' $ac_executable_extensions; do 7969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7970 ac_cv_prog_ac_ct_LIPO="lipo" 7971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7972 break 2 7973 fi 7974done 7975 done 7976IFS=$as_save_IFS 7977 7978fi 7979fi 7980ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7981if test -n "$ac_ct_LIPO"; then 7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7983$as_echo "$ac_ct_LIPO" >&6; } 7984else 7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7986$as_echo "no" >&6; } 7987fi 7988 7989 if test "x$ac_ct_LIPO" = x; then 7990 LIPO=":" 7991 else 7992 case $cross_compiling:$ac_tool_warned in 7993yes:) 7994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7996ac_tool_warned=yes ;; 7997esac 7998 LIPO=$ac_ct_LIPO 7999 fi 8000else 8001 LIPO="$ac_cv_prog_LIPO" 8002fi 8003 8004 if test -n "$ac_tool_prefix"; then 8005 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8006set dummy ${ac_tool_prefix}otool; ac_word=$2 8007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8008$as_echo_n "checking for $ac_word... " >&6; } 8009if ${ac_cv_prog_OTOOL+:} false; then : 8010 $as_echo_n "(cached) " >&6 8011else 8012 if test -n "$OTOOL"; then 8013 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8014else 8015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8016for as_dir in $PATH 8017do 8018 IFS=$as_save_IFS 8019 test -z "$as_dir" && as_dir=. 8020 for ac_exec_ext in '' $ac_executable_extensions; do 8021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8022 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8024 break 2 8025 fi 8026done 8027 done 8028IFS=$as_save_IFS 8029 8030fi 8031fi 8032OTOOL=$ac_cv_prog_OTOOL 8033if test -n "$OTOOL"; then 8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8035$as_echo "$OTOOL" >&6; } 8036else 8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8038$as_echo "no" >&6; } 8039fi 8040 8041 8042fi 8043if test -z "$ac_cv_prog_OTOOL"; then 8044 ac_ct_OTOOL=$OTOOL 8045 # Extract the first word of "otool", so it can be a program name with args. 8046set dummy otool; ac_word=$2 8047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8048$as_echo_n "checking for $ac_word... " >&6; } 8049if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8050 $as_echo_n "(cached) " >&6 8051else 8052 if test -n "$ac_ct_OTOOL"; then 8053 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8054else 8055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8056for as_dir in $PATH 8057do 8058 IFS=$as_save_IFS 8059 test -z "$as_dir" && as_dir=. 8060 for ac_exec_ext in '' $ac_executable_extensions; do 8061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8062 ac_cv_prog_ac_ct_OTOOL="otool" 8063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8064 break 2 8065 fi 8066done 8067 done 8068IFS=$as_save_IFS 8069 8070fi 8071fi 8072ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8073if test -n "$ac_ct_OTOOL"; then 8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8075$as_echo "$ac_ct_OTOOL" >&6; } 8076else 8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8078$as_echo "no" >&6; } 8079fi 8080 8081 if test "x$ac_ct_OTOOL" = x; then 8082 OTOOL=":" 8083 else 8084 case $cross_compiling:$ac_tool_warned in 8085yes:) 8086{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8087$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8088ac_tool_warned=yes ;; 8089esac 8090 OTOOL=$ac_ct_OTOOL 8091 fi 8092else 8093 OTOOL="$ac_cv_prog_OTOOL" 8094fi 8095 8096 if test -n "$ac_tool_prefix"; then 8097 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8098set dummy ${ac_tool_prefix}otool64; ac_word=$2 8099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8100$as_echo_n "checking for $ac_word... " >&6; } 8101if ${ac_cv_prog_OTOOL64+:} false; then : 8102 $as_echo_n "(cached) " >&6 8103else 8104 if test -n "$OTOOL64"; then 8105 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8106else 8107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8108for as_dir in $PATH 8109do 8110 IFS=$as_save_IFS 8111 test -z "$as_dir" && as_dir=. 8112 for ac_exec_ext in '' $ac_executable_extensions; do 8113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8114 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8116 break 2 8117 fi 8118done 8119 done 8120IFS=$as_save_IFS 8121 8122fi 8123fi 8124OTOOL64=$ac_cv_prog_OTOOL64 8125if test -n "$OTOOL64"; then 8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8127$as_echo "$OTOOL64" >&6; } 8128else 8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8130$as_echo "no" >&6; } 8131fi 8132 8133 8134fi 8135if test -z "$ac_cv_prog_OTOOL64"; then 8136 ac_ct_OTOOL64=$OTOOL64 8137 # Extract the first word of "otool64", so it can be a program name with args. 8138set dummy otool64; ac_word=$2 8139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8140$as_echo_n "checking for $ac_word... " >&6; } 8141if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8142 $as_echo_n "(cached) " >&6 8143else 8144 if test -n "$ac_ct_OTOOL64"; then 8145 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8146else 8147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8148for as_dir in $PATH 8149do 8150 IFS=$as_save_IFS 8151 test -z "$as_dir" && as_dir=. 8152 for ac_exec_ext in '' $ac_executable_extensions; do 8153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8154 ac_cv_prog_ac_ct_OTOOL64="otool64" 8155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8156 break 2 8157 fi 8158done 8159 done 8160IFS=$as_save_IFS 8161 8162fi 8163fi 8164ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8165if test -n "$ac_ct_OTOOL64"; then 8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8167$as_echo "$ac_ct_OTOOL64" >&6; } 8168else 8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8170$as_echo "no" >&6; } 8171fi 8172 8173 if test "x$ac_ct_OTOOL64" = x; then 8174 OTOOL64=":" 8175 else 8176 case $cross_compiling:$ac_tool_warned in 8177yes:) 8178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8180ac_tool_warned=yes ;; 8181esac 8182 OTOOL64=$ac_ct_OTOOL64 8183 fi 8184else 8185 OTOOL64="$ac_cv_prog_OTOOL64" 8186fi 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8215$as_echo_n "checking for -single_module linker flag... " >&6; } 8216if ${lt_cv_apple_cc_single_mod+:} false; then : 8217 $as_echo_n "(cached) " >&6 8218else 8219 lt_cv_apple_cc_single_mod=no 8220 if test -z "${LT_MULTI_MODULE}"; then 8221 # By default we will add the -single_module flag. You can override 8222 # by either setting the environment variable LT_MULTI_MODULE 8223 # non-empty at configure time, or by adding -multi_module to the 8224 # link flags. 8225 rm -rf libconftest.dylib* 8226 echo "int foo(void){return 1;}" > conftest.c 8227 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8228-dynamiclib -Wl,-single_module conftest.c" >&5 8229 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8230 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8231 _lt_result=$? 8232 # If there is a non-empty error log, and "single_module" 8233 # appears in it, assume the flag caused a linker warning 8234 if test -s conftest.err && $GREP single_module conftest.err; then 8235 cat conftest.err >&5 8236 # Otherwise, if the output was created with a 0 exit code from 8237 # the compiler, it worked. 8238 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 8239 lt_cv_apple_cc_single_mod=yes 8240 else 8241 cat conftest.err >&5 8242 fi 8243 rm -rf libconftest.dylib* 8244 rm -f conftest.* 8245 fi 8246fi 8247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8248$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8249 8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8251$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8252if ${lt_cv_ld_exported_symbols_list+:} false; then : 8253 $as_echo_n "(cached) " >&6 8254else 8255 lt_cv_ld_exported_symbols_list=no 8256 save_LDFLAGS=$LDFLAGS 8257 echo "_main" > conftest.sym 8258 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8260/* end confdefs.h. */ 8261 8262int 8263main () 8264{ 8265 8266 ; 8267 return 0; 8268} 8269_ACEOF 8270if ac_fn_c_try_link "$LINENO"; then : 8271 lt_cv_ld_exported_symbols_list=yes 8272else 8273 lt_cv_ld_exported_symbols_list=no 8274fi 8275rm -f core conftest.err conftest.$ac_objext \ 8276 conftest$ac_exeext conftest.$ac_ext 8277 LDFLAGS="$save_LDFLAGS" 8278 8279fi 8280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8281$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8282 8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8284$as_echo_n "checking for -force_load linker flag... " >&6; } 8285if ${lt_cv_ld_force_load+:} false; then : 8286 $as_echo_n "(cached) " >&6 8287else 8288 lt_cv_ld_force_load=no 8289 cat > conftest.c << _LT_EOF 8290int forced_loaded() { return 2;} 8291_LT_EOF 8292 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8293 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8294 echo "$AR cru libconftest.a conftest.o" >&5 8295 $AR cru libconftest.a conftest.o 2>&5 8296 echo "$RANLIB libconftest.a" >&5 8297 $RANLIB libconftest.a 2>&5 8298 cat > conftest.c << _LT_EOF 8299int main() { return 0;} 8300_LT_EOF 8301 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8302 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8303 _lt_result=$? 8304 if test -s conftest.err && $GREP force_load conftest.err; then 8305 cat conftest.err >&5 8306 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 8307 lt_cv_ld_force_load=yes 8308 else 8309 cat conftest.err >&5 8310 fi 8311 rm -f conftest.err libconftest.a conftest conftest.c 8312 rm -rf conftest.dSYM 8313 8314fi 8315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8316$as_echo "$lt_cv_ld_force_load" >&6; } 8317 case $host_os in 8318 rhapsody* | darwin1.[012]) 8319 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8320 darwin1.*) 8321 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8322 darwin*) # darwin 5.x on 8323 # if running on 10.5 or later, the deployment target defaults 8324 # to the OS version, if on x86, and 10.4, the deployment 8325 # target defaults to 10.4. Don't you love it? 8326 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8327 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8328 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8329 10.[012]*) 8330 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8331 10.*) 8332 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8333 esac 8334 ;; 8335 esac 8336 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8337 _lt_dar_single_mod='$single_module' 8338 fi 8339 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8340 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8341 else 8342 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8343 fi 8344 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8345 _lt_dsymutil='~$DSYMUTIL $lib || :' 8346 else 8347 _lt_dsymutil= 8348 fi 8349 ;; 8350 esac 8351 8352ac_ext=c 8353ac_cpp='$CPP $CPPFLAGS' 8354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8356ac_compiler_gnu=$ac_cv_c_compiler_gnu 8357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 8358$as_echo_n "checking how to run the C preprocessor... " >&6; } 8359# On Suns, sometimes $CPP names a directory. 8360if test -n "$CPP" && test -d "$CPP"; then 8361 CPP= 8362fi 8363if test -z "$CPP"; then 8364 if ${ac_cv_prog_CPP+:} false; then : 8365 $as_echo_n "(cached) " >&6 8366else 8367 # Double quotes because CPP needs to be expanded 8368 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8369 do 8370 ac_preproc_ok=false 8371for ac_c_preproc_warn_flag in '' yes 8372do 8373 # Use a header file that comes with gcc, so configuring glibc 8374 # with a fresh cross-compiler works. 8375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8376 # <limits.h> exists even on freestanding compilers. 8377 # On the NeXT, cc -E runs the code through the compiler's parser, 8378 # not just through cpp. "Syntax error" is here to catch this case. 8379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8380/* end confdefs.h. */ 8381#ifdef __STDC__ 8382# include <limits.h> 8383#else 8384# include <assert.h> 8385#endif 8386 Syntax error 8387_ACEOF 8388if ac_fn_c_try_cpp "$LINENO"; then : 8389 8390else 8391 # Broken: fails on valid input. 8392continue 8393fi 8394rm -f conftest.err conftest.i conftest.$ac_ext 8395 8396 # OK, works on sane cases. Now check whether nonexistent headers 8397 # can be detected and how. 8398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8399/* end confdefs.h. */ 8400#include <ac_nonexistent.h> 8401_ACEOF 8402if ac_fn_c_try_cpp "$LINENO"; then : 8403 # Broken: success on invalid input. 8404continue 8405else 8406 # Passes both tests. 8407ac_preproc_ok=: 8408break 8409fi 8410rm -f conftest.err conftest.i conftest.$ac_ext 8411 8412done 8413# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8414rm -f conftest.i conftest.err conftest.$ac_ext 8415if $ac_preproc_ok; then : 8416 break 8417fi 8418 8419 done 8420 ac_cv_prog_CPP=$CPP 8421 8422fi 8423 CPP=$ac_cv_prog_CPP 8424else 8425 ac_cv_prog_CPP=$CPP 8426fi 8427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8428$as_echo "$CPP" >&6; } 8429ac_preproc_ok=false 8430for ac_c_preproc_warn_flag in '' yes 8431do 8432 # Use a header file that comes with gcc, so configuring glibc 8433 # with a fresh cross-compiler works. 8434 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8435 # <limits.h> exists even on freestanding compilers. 8436 # On the NeXT, cc -E runs the code through the compiler's parser, 8437 # not just through cpp. "Syntax error" is here to catch this case. 8438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8439/* end confdefs.h. */ 8440#ifdef __STDC__ 8441# include <limits.h> 8442#else 8443# include <assert.h> 8444#endif 8445 Syntax error 8446_ACEOF 8447if ac_fn_c_try_cpp "$LINENO"; then : 8448 8449else 8450 # Broken: fails on valid input. 8451continue 8452fi 8453rm -f conftest.err conftest.i conftest.$ac_ext 8454 8455 # OK, works on sane cases. Now check whether nonexistent headers 8456 # can be detected and how. 8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8458/* end confdefs.h. */ 8459#include <ac_nonexistent.h> 8460_ACEOF 8461if ac_fn_c_try_cpp "$LINENO"; then : 8462 # Broken: success on invalid input. 8463continue 8464else 8465 # Passes both tests. 8466ac_preproc_ok=: 8467break 8468fi 8469rm -f conftest.err conftest.i conftest.$ac_ext 8470 8471done 8472# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8473rm -f conftest.i conftest.err conftest.$ac_ext 8474if $ac_preproc_ok; then : 8475 8476else 8477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8479as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8480See \`config.log' for more details" "$LINENO" 5; } 8481fi 8482 8483ac_ext=c 8484ac_cpp='$CPP $CPPFLAGS' 8485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8487ac_compiler_gnu=$ac_cv_c_compiler_gnu 8488 8489 8490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8491$as_echo_n "checking for ANSI C header files... " >&6; } 8492if ${ac_cv_header_stdc+:} false; then : 8493 $as_echo_n "(cached) " >&6 8494else 8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8496/* end confdefs.h. */ 8497#include <stdlib.h> 8498#include <stdarg.h> 8499#include <string.h> 8500#include <float.h> 8501 8502int 8503main () 8504{ 8505 8506 ; 8507 return 0; 8508} 8509_ACEOF 8510if ac_fn_c_try_compile "$LINENO"; then : 8511 ac_cv_header_stdc=yes 8512else 8513 ac_cv_header_stdc=no 8514fi 8515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8516 8517if test $ac_cv_header_stdc = yes; then 8518 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8520/* end confdefs.h. */ 8521#include <string.h> 8522 8523_ACEOF 8524if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8525 $EGREP "memchr" >/dev/null 2>&1; then : 8526 8527else 8528 ac_cv_header_stdc=no 8529fi 8530rm -f conftest* 8531 8532fi 8533 8534if test $ac_cv_header_stdc = yes; then 8535 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8537/* end confdefs.h. */ 8538#include <stdlib.h> 8539 8540_ACEOF 8541if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8542 $EGREP "free" >/dev/null 2>&1; then : 8543 8544else 8545 ac_cv_header_stdc=no 8546fi 8547rm -f conftest* 8548 8549fi 8550 8551if test $ac_cv_header_stdc = yes; then 8552 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8553 if test "$cross_compiling" = yes; then : 8554 : 8555else 8556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8557/* end confdefs.h. */ 8558#include <ctype.h> 8559#include <stdlib.h> 8560#if ((' ' & 0x0FF) == 0x020) 8561# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8562# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8563#else 8564# define ISLOWER(c) \ 8565 (('a' <= (c) && (c) <= 'i') \ 8566 || ('j' <= (c) && (c) <= 'r') \ 8567 || ('s' <= (c) && (c) <= 'z')) 8568# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8569#endif 8570 8571#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8572int 8573main () 8574{ 8575 int i; 8576 for (i = 0; i < 256; i++) 8577 if (XOR (islower (i), ISLOWER (i)) 8578 || toupper (i) != TOUPPER (i)) 8579 return 2; 8580 return 0; 8581} 8582_ACEOF 8583if ac_fn_c_try_run "$LINENO"; then : 8584 8585else 8586 ac_cv_header_stdc=no 8587fi 8588rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8589 conftest.$ac_objext conftest.beam conftest.$ac_ext 8590fi 8591 8592fi 8593fi 8594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8595$as_echo "$ac_cv_header_stdc" >&6; } 8596if test $ac_cv_header_stdc = yes; then 8597 8598$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8599 8600fi 8601 8602# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8603for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8604 inttypes.h stdint.h unistd.h 8605do : 8606 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8607ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8608" 8609if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8610 cat >>confdefs.h <<_ACEOF 8611#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8612_ACEOF 8613 8614fi 8615 8616done 8617 8618 8619for ac_header in dlfcn.h 8620do : 8621 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8622" 8623if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8624 cat >>confdefs.h <<_ACEOF 8625#define HAVE_DLFCN_H 1 8626_ACEOF 8627 8628fi 8629 8630done 8631 8632 8633 8634 8635 8636# Set options 8637 8638 8639 8640 enable_dlopen=no 8641 8642 8643 enable_win32_dll=no 8644 8645 8646 # Check whether --enable-shared was given. 8647if test "${enable_shared+set}" = set; then : 8648 enableval=$enable_shared; p=${PACKAGE-default} 8649 case $enableval in 8650 yes) enable_shared=yes ;; 8651 no) enable_shared=no ;; 8652 *) 8653 enable_shared=no 8654 # Look at the argument we got. We use all the common list separators. 8655 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8656 for pkg in $enableval; do 8657 IFS="$lt_save_ifs" 8658 if test "X$pkg" = "X$p"; then 8659 enable_shared=yes 8660 fi 8661 done 8662 IFS="$lt_save_ifs" 8663 ;; 8664 esac 8665else 8666 enable_shared=yes 8667fi 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 # Check whether --enable-static was given. 8678if test "${enable_static+set}" = set; then : 8679 enableval=$enable_static; p=${PACKAGE-default} 8680 case $enableval in 8681 yes) enable_static=yes ;; 8682 no) enable_static=no ;; 8683 *) 8684 enable_static=no 8685 # Look at the argument we got. We use all the common list separators. 8686 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8687 for pkg in $enableval; do 8688 IFS="$lt_save_ifs" 8689 if test "X$pkg" = "X$p"; then 8690 enable_static=yes 8691 fi 8692 done 8693 IFS="$lt_save_ifs" 8694 ;; 8695 esac 8696else 8697 enable_static=yes 8698fi 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709# Check whether --with-pic was given. 8710if test "${with_pic+set}" = set; then : 8711 withval=$with_pic; lt_p=${PACKAGE-default} 8712 case $withval in 8713 yes|no) pic_mode=$withval ;; 8714 *) 8715 pic_mode=default 8716 # Look at the argument we got. We use all the common list separators. 8717 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8718 for lt_pkg in $withval; do 8719 IFS="$lt_save_ifs" 8720 if test "X$lt_pkg" = "X$lt_p"; then 8721 pic_mode=yes 8722 fi 8723 done 8724 IFS="$lt_save_ifs" 8725 ;; 8726 esac 8727else 8728 pic_mode=default 8729fi 8730 8731 8732test -z "$pic_mode" && pic_mode=default 8733 8734 8735 8736 8737 8738 8739 8740 # Check whether --enable-fast-install was given. 8741if test "${enable_fast_install+set}" = set; then : 8742 enableval=$enable_fast_install; p=${PACKAGE-default} 8743 case $enableval in 8744 yes) enable_fast_install=yes ;; 8745 no) enable_fast_install=no ;; 8746 *) 8747 enable_fast_install=no 8748 # Look at the argument we got. We use all the common list separators. 8749 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8750 for pkg in $enableval; do 8751 IFS="$lt_save_ifs" 8752 if test "X$pkg" = "X$p"; then 8753 enable_fast_install=yes 8754 fi 8755 done 8756 IFS="$lt_save_ifs" 8757 ;; 8758 esac 8759else 8760 enable_fast_install=yes 8761fi 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773# This can be used to rebuild libtool when needed 8774LIBTOOL_DEPS="$ltmain" 8775 8776# Always use our own libtool. 8777LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808test -z "$LN_S" && LN_S="ln -s" 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823if test -n "${ZSH_VERSION+set}" ; then 8824 setopt NO_GLOB_SUBST 8825fi 8826 8827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8828$as_echo_n "checking for objdir... " >&6; } 8829if ${lt_cv_objdir+:} false; then : 8830 $as_echo_n "(cached) " >&6 8831else 8832 rm -f .libs 2>/dev/null 8833mkdir .libs 2>/dev/null 8834if test -d .libs; then 8835 lt_cv_objdir=.libs 8836else 8837 # MS-DOS does not allow filenames that begin with a dot. 8838 lt_cv_objdir=_libs 8839fi 8840rmdir .libs 2>/dev/null 8841fi 8842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8843$as_echo "$lt_cv_objdir" >&6; } 8844objdir=$lt_cv_objdir 8845 8846 8847 8848 8849 8850cat >>confdefs.h <<_ACEOF 8851#define LT_OBJDIR "$lt_cv_objdir/" 8852_ACEOF 8853 8854 8855 8856 8857case $host_os in 8858aix3*) 8859 # AIX sometimes has problems with the GCC collect2 program. For some 8860 # reason, if we set the COLLECT_NAMES environment variable, the problems 8861 # vanish in a puff of smoke. 8862 if test "X${COLLECT_NAMES+set}" != Xset; then 8863 COLLECT_NAMES= 8864 export COLLECT_NAMES 8865 fi 8866 ;; 8867esac 8868 8869# Global variables: 8870ofile=libtool 8871can_build_shared=yes 8872 8873# All known linkers require a `.a' archive for static linking (except MSVC, 8874# which needs '.lib'). 8875libext=a 8876 8877with_gnu_ld="$lt_cv_prog_gnu_ld" 8878 8879old_CC="$CC" 8880old_CFLAGS="$CFLAGS" 8881 8882# Set sane defaults for various variables 8883test -z "$CC" && CC=cc 8884test -z "$LTCC" && LTCC=$CC 8885test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8886test -z "$LD" && LD=ld 8887test -z "$ac_objext" && ac_objext=o 8888 8889for cc_temp in $compiler""; do 8890 case $cc_temp in 8891 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8892 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8893 \-*) ;; 8894 *) break;; 8895 esac 8896done 8897cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8898 8899 8900# Only perform the check for file, if the check method requires it 8901test -z "$MAGIC_CMD" && MAGIC_CMD=file 8902case $deplibs_check_method in 8903file_magic*) 8904 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8906$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8907if ${lt_cv_path_MAGIC_CMD+:} false; then : 8908 $as_echo_n "(cached) " >&6 8909else 8910 case $MAGIC_CMD in 8911[\\/*] | ?:[\\/]*) 8912 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8913 ;; 8914*) 8915 lt_save_MAGIC_CMD="$MAGIC_CMD" 8916 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8917 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8918 for ac_dir in $ac_dummy; do 8919 IFS="$lt_save_ifs" 8920 test -z "$ac_dir" && ac_dir=. 8921 if test -f $ac_dir/${ac_tool_prefix}file; then 8922 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8923 if test -n "$file_magic_test_file"; then 8924 case $deplibs_check_method in 8925 "file_magic "*) 8926 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8927 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8928 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8929 $EGREP "$file_magic_regex" > /dev/null; then 8930 : 8931 else 8932 cat <<_LT_EOF 1>&2 8933 8934*** Warning: the command libtool uses to detect shared libraries, 8935*** $file_magic_cmd, produces output that libtool cannot recognize. 8936*** The result is that libtool may fail to recognize shared libraries 8937*** as such. This will affect the creation of libtool libraries that 8938*** depend on shared libraries, but programs linked with such libtool 8939*** libraries will work regardless of this problem. Nevertheless, you 8940*** may want to report the problem to your system manager and/or to 8941*** bug-libtool@gnu.org 8942 8943_LT_EOF 8944 fi ;; 8945 esac 8946 fi 8947 break 8948 fi 8949 done 8950 IFS="$lt_save_ifs" 8951 MAGIC_CMD="$lt_save_MAGIC_CMD" 8952 ;; 8953esac 8954fi 8955 8956MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8957if test -n "$MAGIC_CMD"; then 8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8959$as_echo "$MAGIC_CMD" >&6; } 8960else 8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8962$as_echo "no" >&6; } 8963fi 8964 8965 8966 8967 8968 8969if test -z "$lt_cv_path_MAGIC_CMD"; then 8970 if test -n "$ac_tool_prefix"; then 8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8972$as_echo_n "checking for file... " >&6; } 8973if ${lt_cv_path_MAGIC_CMD+:} false; then : 8974 $as_echo_n "(cached) " >&6 8975else 8976 case $MAGIC_CMD in 8977[\\/*] | ?:[\\/]*) 8978 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8979 ;; 8980*) 8981 lt_save_MAGIC_CMD="$MAGIC_CMD" 8982 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8983 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8984 for ac_dir in $ac_dummy; do 8985 IFS="$lt_save_ifs" 8986 test -z "$ac_dir" && ac_dir=. 8987 if test -f $ac_dir/file; then 8988 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8989 if test -n "$file_magic_test_file"; then 8990 case $deplibs_check_method in 8991 "file_magic "*) 8992 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8993 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8994 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8995 $EGREP "$file_magic_regex" > /dev/null; then 8996 : 8997 else 8998 cat <<_LT_EOF 1>&2 8999 9000*** Warning: the command libtool uses to detect shared libraries, 9001*** $file_magic_cmd, produces output that libtool cannot recognize. 9002*** The result is that libtool may fail to recognize shared libraries 9003*** as such. This will affect the creation of libtool libraries that 9004*** depend on shared libraries, but programs linked with such libtool 9005*** libraries will work regardless of this problem. Nevertheless, you 9006*** may want to report the problem to your system manager and/or to 9007*** bug-libtool@gnu.org 9008 9009_LT_EOF 9010 fi ;; 9011 esac 9012 fi 9013 break 9014 fi 9015 done 9016 IFS="$lt_save_ifs" 9017 MAGIC_CMD="$lt_save_MAGIC_CMD" 9018 ;; 9019esac 9020fi 9021 9022MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9023if test -n "$MAGIC_CMD"; then 9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9025$as_echo "$MAGIC_CMD" >&6; } 9026else 9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9028$as_echo "no" >&6; } 9029fi 9030 9031 9032 else 9033 MAGIC_CMD=: 9034 fi 9035fi 9036 9037 fi 9038 ;; 9039esac 9040 9041# Use C for the default configuration in the libtool script 9042 9043lt_save_CC="$CC" 9044ac_ext=c 9045ac_cpp='$CPP $CPPFLAGS' 9046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9048ac_compiler_gnu=$ac_cv_c_compiler_gnu 9049 9050 9051# Source file extension for C test sources. 9052ac_ext=c 9053 9054# Object file extension for compiled C test sources. 9055objext=o 9056objext=$objext 9057 9058# Code to be used in simple compile tests 9059lt_simple_compile_test_code="int some_variable = 0;" 9060 9061# Code to be used in simple link tests 9062lt_simple_link_test_code='int main(){return(0);}' 9063 9064 9065 9066 9067 9068 9069 9070# If no C compiler was specified, use CC. 9071LTCC=${LTCC-"$CC"} 9072 9073# If no C compiler flags were specified, use CFLAGS. 9074LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9075 9076# Allow CC to be a program name with arguments. 9077compiler=$CC 9078 9079# Save the default compiler, since it gets overwritten when the other 9080# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9081compiler_DEFAULT=$CC 9082 9083# save warnings/boilerplate of simple test code 9084ac_outfile=conftest.$ac_objext 9085echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9086eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9087_lt_compiler_boilerplate=`cat conftest.err` 9088$RM conftest* 9089 9090ac_outfile=conftest.$ac_objext 9091echo "$lt_simple_link_test_code" >conftest.$ac_ext 9092eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9093_lt_linker_boilerplate=`cat conftest.err` 9094$RM -r conftest* 9095 9096 9097## CAVEAT EMPTOR: 9098## There is no encapsulation within the following macros, do not change 9099## the running order or otherwise move them around unless you know exactly 9100## what you are doing... 9101if test -n "$compiler"; then 9102 9103lt_prog_compiler_no_builtin_flag= 9104 9105if test "$GCC" = yes; then 9106 case $cc_basename in 9107 nvcc*) 9108 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9109 *) 9110 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9111 esac 9112 9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9114$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9115if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9116 $as_echo_n "(cached) " >&6 9117else 9118 lt_cv_prog_compiler_rtti_exceptions=no 9119 ac_outfile=conftest.$ac_objext 9120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9121 lt_compiler_flag="-fno-rtti -fno-exceptions" 9122 # Insert the option either (1) after the last *FLAGS variable, or 9123 # (2) before a word containing "conftest.", or (3) at the end. 9124 # Note that $ac_compile itself does not contain backslashes and begins 9125 # with a dollar sign (not a hyphen), so the echo should work correctly. 9126 # The option is referenced via a variable to avoid confusing sed. 9127 lt_compile=`echo "$ac_compile" | $SED \ 9128 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9130 -e 's:$: $lt_compiler_flag:'` 9131 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9132 (eval "$lt_compile" 2>conftest.err) 9133 ac_status=$? 9134 cat conftest.err >&5 9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9136 if (exit $ac_status) && test -s "$ac_outfile"; then 9137 # The compiler can only warn and ignore the option if not recognized 9138 # So say no if there are warnings other than the usual output. 9139 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9140 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9141 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9142 lt_cv_prog_compiler_rtti_exceptions=yes 9143 fi 9144 fi 9145 $RM conftest* 9146 9147fi 9148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9149$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9150 9151if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9152 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9153else 9154 : 9155fi 9156 9157fi 9158 9159 9160 9161 9162 9163 9164 lt_prog_compiler_wl= 9165lt_prog_compiler_pic= 9166lt_prog_compiler_static= 9167 9168 9169 if test "$GCC" = yes; then 9170 lt_prog_compiler_wl='-Wl,' 9171 lt_prog_compiler_static='-static' 9172 9173 case $host_os in 9174 aix*) 9175 # All AIX code is PIC. 9176 if test "$host_cpu" = ia64; then 9177 # AIX 5 now supports IA64 processor 9178 lt_prog_compiler_static='-Bstatic' 9179 fi 9180 ;; 9181 9182 amigaos*) 9183 case $host_cpu in 9184 powerpc) 9185 # see comment about AmigaOS4 .so support 9186 lt_prog_compiler_pic='-fPIC' 9187 ;; 9188 m68k) 9189 # FIXME: we need at least 68020 code to build shared libraries, but 9190 # adding the `-m68020' flag to GCC prevents building anything better, 9191 # like `-m68040'. 9192 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9193 ;; 9194 esac 9195 ;; 9196 9197 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9198 # PIC is the default for these OSes. 9199 ;; 9200 9201 mingw* | cygwin* | pw32* | os2* | cegcc*) 9202 # This hack is so that the source file can tell whether it is being 9203 # built for inclusion in a dll (and should export symbols for example). 9204 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9205 # (--disable-auto-import) libraries 9206 lt_prog_compiler_pic='-DDLL_EXPORT' 9207 ;; 9208 9209 darwin* | rhapsody*) 9210 # PIC is the default on this platform 9211 # Common symbols not allowed in MH_DYLIB files 9212 lt_prog_compiler_pic='-fno-common' 9213 ;; 9214 9215 haiku*) 9216 # PIC is the default for Haiku. 9217 # The "-static" flag exists, but is broken. 9218 lt_prog_compiler_static= 9219 ;; 9220 9221 hpux*) 9222 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9223 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9224 # sets the default TLS model and affects inlining. 9225 case $host_cpu in 9226 hppa*64*) 9227 # +Z the default 9228 ;; 9229 *) 9230 lt_prog_compiler_pic='-fPIC' 9231 ;; 9232 esac 9233 ;; 9234 9235 interix[3-9]*) 9236 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9237 # Instead, we relocate shared libraries at runtime. 9238 ;; 9239 9240 msdosdjgpp*) 9241 # Just because we use GCC doesn't mean we suddenly get shared libraries 9242 # on systems that don't support them. 9243 lt_prog_compiler_can_build_shared=no 9244 enable_shared=no 9245 ;; 9246 9247 *nto* | *qnx*) 9248 # QNX uses GNU C++, but need to define -shared option too, otherwise 9249 # it will coredump. 9250 lt_prog_compiler_pic='-fPIC -shared' 9251 ;; 9252 9253 sysv4*MP*) 9254 if test -d /usr/nec; then 9255 lt_prog_compiler_pic=-Kconform_pic 9256 fi 9257 ;; 9258 9259 *) 9260 lt_prog_compiler_pic='-fPIC' 9261 ;; 9262 esac 9263 9264 case $cc_basename in 9265 nvcc*) # Cuda Compiler Driver 2.2 9266 lt_prog_compiler_wl='-Xlinker ' 9267 if test -n "$lt_prog_compiler_pic"; then 9268 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9269 fi 9270 ;; 9271 esac 9272 else 9273 # PORTME Check for flag to pass linker flags through the system compiler. 9274 case $host_os in 9275 aix*) 9276 lt_prog_compiler_wl='-Wl,' 9277 if test "$host_cpu" = ia64; then 9278 # AIX 5 now supports IA64 processor 9279 lt_prog_compiler_static='-Bstatic' 9280 else 9281 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9282 fi 9283 ;; 9284 9285 mingw* | cygwin* | pw32* | os2* | cegcc*) 9286 # This hack is so that the source file can tell whether it is being 9287 # built for inclusion in a dll (and should export symbols for example). 9288 lt_prog_compiler_pic='-DDLL_EXPORT' 9289 ;; 9290 9291 hpux9* | hpux10* | hpux11*) 9292 lt_prog_compiler_wl='-Wl,' 9293 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9294 # not for PA HP-UX. 9295 case $host_cpu in 9296 hppa*64*|ia64*) 9297 # +Z the default 9298 ;; 9299 *) 9300 lt_prog_compiler_pic='+Z' 9301 ;; 9302 esac 9303 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9304 lt_prog_compiler_static='${wl}-a ${wl}archive' 9305 ;; 9306 9307 irix5* | irix6* | nonstopux*) 9308 lt_prog_compiler_wl='-Wl,' 9309 # PIC (with -KPIC) is the default. 9310 lt_prog_compiler_static='-non_shared' 9311 ;; 9312 9313 linux* | k*bsd*-gnu | kopensolaris*-gnu) 9314 case $cc_basename in 9315 # old Intel for x86_64 which still supported -KPIC. 9316 ecc*) 9317 lt_prog_compiler_wl='-Wl,' 9318 lt_prog_compiler_pic='-KPIC' 9319 lt_prog_compiler_static='-static' 9320 ;; 9321 # icc used to be incompatible with GCC. 9322 # ICC 10 doesn't accept -KPIC any more. 9323 icc* | ifort*) 9324 lt_prog_compiler_wl='-Wl,' 9325 lt_prog_compiler_pic='-fPIC' 9326 lt_prog_compiler_static='-static' 9327 ;; 9328 # Lahey Fortran 8.1. 9329 lf95*) 9330 lt_prog_compiler_wl='-Wl,' 9331 lt_prog_compiler_pic='--shared' 9332 lt_prog_compiler_static='--static' 9333 ;; 9334 nagfor*) 9335 # NAG Fortran compiler 9336 lt_prog_compiler_wl='-Wl,-Wl,,' 9337 lt_prog_compiler_pic='-PIC' 9338 lt_prog_compiler_static='-Bstatic' 9339 ;; 9340 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9341 # Portland Group compilers (*not* the Pentium gcc compiler, 9342 # which looks to be a dead project) 9343 lt_prog_compiler_wl='-Wl,' 9344 lt_prog_compiler_pic='-fpic' 9345 lt_prog_compiler_static='-Bstatic' 9346 ;; 9347 ccc*) 9348 lt_prog_compiler_wl='-Wl,' 9349 # All Alpha code is PIC. 9350 lt_prog_compiler_static='-non_shared' 9351 ;; 9352 xl* | bgxl* | bgf* | mpixl*) 9353 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9354 lt_prog_compiler_wl='-Wl,' 9355 lt_prog_compiler_pic='-qpic' 9356 lt_prog_compiler_static='-qstaticlink' 9357 ;; 9358 *) 9359 case `$CC -V 2>&1 | sed 5q` in 9360 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9361 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9362 lt_prog_compiler_pic='-KPIC' 9363 lt_prog_compiler_static='-Bstatic' 9364 lt_prog_compiler_wl='' 9365 ;; 9366 *Sun\ F* | *Sun*Fortran*) 9367 lt_prog_compiler_pic='-KPIC' 9368 lt_prog_compiler_static='-Bstatic' 9369 lt_prog_compiler_wl='-Qoption ld ' 9370 ;; 9371 *Sun\ C*) 9372 # Sun C 5.9 9373 lt_prog_compiler_pic='-KPIC' 9374 lt_prog_compiler_static='-Bstatic' 9375 lt_prog_compiler_wl='-Wl,' 9376 ;; 9377 *Intel*\ [CF]*Compiler*) 9378 lt_prog_compiler_wl='-Wl,' 9379 lt_prog_compiler_pic='-fPIC' 9380 lt_prog_compiler_static='-static' 9381 ;; 9382 *Portland\ Group*) 9383 lt_prog_compiler_wl='-Wl,' 9384 lt_prog_compiler_pic='-fpic' 9385 lt_prog_compiler_static='-Bstatic' 9386 ;; 9387 esac 9388 ;; 9389 esac 9390 ;; 9391 9392 newsos6) 9393 lt_prog_compiler_pic='-KPIC' 9394 lt_prog_compiler_static='-Bstatic' 9395 ;; 9396 9397 *nto* | *qnx*) 9398 # QNX uses GNU C++, but need to define -shared option too, otherwise 9399 # it will coredump. 9400 lt_prog_compiler_pic='-fPIC -shared' 9401 ;; 9402 9403 osf3* | osf4* | osf5*) 9404 lt_prog_compiler_wl='-Wl,' 9405 # All OSF/1 code is PIC. 9406 lt_prog_compiler_static='-non_shared' 9407 ;; 9408 9409 rdos*) 9410 lt_prog_compiler_static='-non_shared' 9411 ;; 9412 9413 solaris*) 9414 lt_prog_compiler_pic='-KPIC' 9415 lt_prog_compiler_static='-Bstatic' 9416 case $cc_basename in 9417 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9418 lt_prog_compiler_wl='-Qoption ld ';; 9419 *) 9420 lt_prog_compiler_wl='-Wl,';; 9421 esac 9422 ;; 9423 9424 sunos4*) 9425 lt_prog_compiler_wl='-Qoption ld ' 9426 lt_prog_compiler_pic='-PIC' 9427 lt_prog_compiler_static='-Bstatic' 9428 ;; 9429 9430 sysv4 | sysv4.2uw2* | sysv4.3*) 9431 lt_prog_compiler_wl='-Wl,' 9432 lt_prog_compiler_pic='-KPIC' 9433 lt_prog_compiler_static='-Bstatic' 9434 ;; 9435 9436 sysv4*MP*) 9437 if test -d /usr/nec ;then 9438 lt_prog_compiler_pic='-Kconform_pic' 9439 lt_prog_compiler_static='-Bstatic' 9440 fi 9441 ;; 9442 9443 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9444 lt_prog_compiler_wl='-Wl,' 9445 lt_prog_compiler_pic='-KPIC' 9446 lt_prog_compiler_static='-Bstatic' 9447 ;; 9448 9449 unicos*) 9450 lt_prog_compiler_wl='-Wl,' 9451 lt_prog_compiler_can_build_shared=no 9452 ;; 9453 9454 uts4*) 9455 lt_prog_compiler_pic='-pic' 9456 lt_prog_compiler_static='-Bstatic' 9457 ;; 9458 9459 *) 9460 lt_prog_compiler_can_build_shared=no 9461 ;; 9462 esac 9463 fi 9464 9465case $host_os in 9466 # For platforms which do not support PIC, -DPIC is meaningless: 9467 *djgpp*) 9468 lt_prog_compiler_pic= 9469 ;; 9470 *) 9471 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9472 ;; 9473esac 9474 9475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9476$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9477if ${lt_cv_prog_compiler_pic+:} false; then : 9478 $as_echo_n "(cached) " >&6 9479else 9480 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9481fi 9482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9483$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9484lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9485 9486# 9487# Check to make sure the PIC flag actually works. 9488# 9489if test -n "$lt_prog_compiler_pic"; then 9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9491$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9492if ${lt_cv_prog_compiler_pic_works+:} false; then : 9493 $as_echo_n "(cached) " >&6 9494else 9495 lt_cv_prog_compiler_pic_works=no 9496 ac_outfile=conftest.$ac_objext 9497 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9498 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9499 # Insert the option either (1) after the last *FLAGS variable, or 9500 # (2) before a word containing "conftest.", or (3) at the end. 9501 # Note that $ac_compile itself does not contain backslashes and begins 9502 # with a dollar sign (not a hyphen), so the echo should work correctly. 9503 # The option is referenced via a variable to avoid confusing sed. 9504 lt_compile=`echo "$ac_compile" | $SED \ 9505 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9507 -e 's:$: $lt_compiler_flag:'` 9508 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9509 (eval "$lt_compile" 2>conftest.err) 9510 ac_status=$? 9511 cat conftest.err >&5 9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9513 if (exit $ac_status) && test -s "$ac_outfile"; then 9514 # The compiler can only warn and ignore the option if not recognized 9515 # So say no if there are warnings other than the usual output. 9516 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9517 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9518 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9519 lt_cv_prog_compiler_pic_works=yes 9520 fi 9521 fi 9522 $RM conftest* 9523 9524fi 9525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9526$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9527 9528if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9529 case $lt_prog_compiler_pic in 9530 "" | " "*) ;; 9531 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9532 esac 9533else 9534 lt_prog_compiler_pic= 9535 lt_prog_compiler_can_build_shared=no 9536fi 9537 9538fi 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550# 9551# Check to make sure the static flag actually works. 9552# 9553wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9555$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9556if ${lt_cv_prog_compiler_static_works+:} false; then : 9557 $as_echo_n "(cached) " >&6 9558else 9559 lt_cv_prog_compiler_static_works=no 9560 save_LDFLAGS="$LDFLAGS" 9561 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9562 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9563 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9564 # The linker can only warn and ignore the option if not recognized 9565 # So say no if there are warnings 9566 if test -s conftest.err; then 9567 # Append any errors to the config.log. 9568 cat conftest.err 1>&5 9569 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9570 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9571 if diff conftest.exp conftest.er2 >/dev/null; then 9572 lt_cv_prog_compiler_static_works=yes 9573 fi 9574 else 9575 lt_cv_prog_compiler_static_works=yes 9576 fi 9577 fi 9578 $RM -r conftest* 9579 LDFLAGS="$save_LDFLAGS" 9580 9581fi 9582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9583$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9584 9585if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9586 : 9587else 9588 lt_prog_compiler_static= 9589fi 9590 9591 9592 9593 9594 9595 9596 9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9598$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9599if ${lt_cv_prog_compiler_c_o+:} false; then : 9600 $as_echo_n "(cached) " >&6 9601else 9602 lt_cv_prog_compiler_c_o=no 9603 $RM -r conftest 2>/dev/null 9604 mkdir conftest 9605 cd conftest 9606 mkdir out 9607 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9608 9609 lt_compiler_flag="-o out/conftest2.$ac_objext" 9610 # Insert the option either (1) after the last *FLAGS variable, or 9611 # (2) before a word containing "conftest.", or (3) at the end. 9612 # Note that $ac_compile itself does not contain backslashes and begins 9613 # with a dollar sign (not a hyphen), so the echo should work correctly. 9614 lt_compile=`echo "$ac_compile" | $SED \ 9615 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9616 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9617 -e 's:$: $lt_compiler_flag:'` 9618 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9619 (eval "$lt_compile" 2>out/conftest.err) 9620 ac_status=$? 9621 cat out/conftest.err >&5 9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9623 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9624 then 9625 # The compiler can only warn and ignore the option if not recognized 9626 # So say no if there are warnings 9627 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9628 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9629 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9630 lt_cv_prog_compiler_c_o=yes 9631 fi 9632 fi 9633 chmod u+w . 2>&5 9634 $RM conftest* 9635 # SGI C++ compiler will create directory out/ii_files/ for 9636 # template instantiation 9637 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9638 $RM out/* && rmdir out 9639 cd .. 9640 $RM -r conftest 9641 $RM conftest* 9642 9643fi 9644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9645$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9646 9647 9648 9649 9650 9651 9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9653$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9654if ${lt_cv_prog_compiler_c_o+:} false; then : 9655 $as_echo_n "(cached) " >&6 9656else 9657 lt_cv_prog_compiler_c_o=no 9658 $RM -r conftest 2>/dev/null 9659 mkdir conftest 9660 cd conftest 9661 mkdir out 9662 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9663 9664 lt_compiler_flag="-o out/conftest2.$ac_objext" 9665 # Insert the option either (1) after the last *FLAGS variable, or 9666 # (2) before a word containing "conftest.", or (3) at the end. 9667 # Note that $ac_compile itself does not contain backslashes and begins 9668 # with a dollar sign (not a hyphen), so the echo should work correctly. 9669 lt_compile=`echo "$ac_compile" | $SED \ 9670 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9671 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9672 -e 's:$: $lt_compiler_flag:'` 9673 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9674 (eval "$lt_compile" 2>out/conftest.err) 9675 ac_status=$? 9676 cat out/conftest.err >&5 9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9678 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9679 then 9680 # The compiler can only warn and ignore the option if not recognized 9681 # So say no if there are warnings 9682 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9683 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9684 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9685 lt_cv_prog_compiler_c_o=yes 9686 fi 9687 fi 9688 chmod u+w . 2>&5 9689 $RM conftest* 9690 # SGI C++ compiler will create directory out/ii_files/ for 9691 # template instantiation 9692 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9693 $RM out/* && rmdir out 9694 cd .. 9695 $RM -r conftest 9696 $RM conftest* 9697 9698fi 9699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9700$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9701 9702 9703 9704 9705hard_links="nottested" 9706if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9707 # do not overwrite the value of need_locks provided by the user 9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9709$as_echo_n "checking if we can lock with hard links... " >&6; } 9710 hard_links=yes 9711 $RM conftest* 9712 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9713 touch conftest.a 9714 ln conftest.a conftest.b 2>&5 || hard_links=no 9715 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9717$as_echo "$hard_links" >&6; } 9718 if test "$hard_links" = no; then 9719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9720$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9721 need_locks=warn 9722 fi 9723else 9724 need_locks=no 9725fi 9726 9727 9728 9729 9730 9731 9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9733$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9734 9735 runpath_var= 9736 allow_undefined_flag= 9737 always_export_symbols=no 9738 archive_cmds= 9739 archive_expsym_cmds= 9740 compiler_needs_object=no 9741 enable_shared_with_static_runtimes=no 9742 export_dynamic_flag_spec= 9743 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9744 hardcode_automatic=no 9745 hardcode_direct=no 9746 hardcode_direct_absolute=no 9747 hardcode_libdir_flag_spec= 9748 hardcode_libdir_separator= 9749 hardcode_minus_L=no 9750 hardcode_shlibpath_var=unsupported 9751 inherit_rpath=no 9752 link_all_deplibs=unknown 9753 module_cmds= 9754 module_expsym_cmds= 9755 old_archive_from_new_cmds= 9756 old_archive_from_expsyms_cmds= 9757 thread_safe_flag_spec= 9758 whole_archive_flag_spec= 9759 # include_expsyms should be a list of space-separated symbols to be *always* 9760 # included in the symbol list 9761 include_expsyms= 9762 # exclude_expsyms can be an extended regexp of symbols to exclude 9763 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9764 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9765 # as well as any symbol that contains `d'. 9766 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9767 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9768 # platforms (ab)use it in PIC code, but their linkers get confused if 9769 # the symbol is explicitly referenced. Since portable code cannot 9770 # rely on this symbol name, it's probably fine to never include it in 9771 # preloaded symbol tables. 9772 # Exclude shared library initialization/finalization symbols. 9773 extract_expsyms_cmds= 9774 9775 case $host_os in 9776 cygwin* | mingw* | pw32* | cegcc*) 9777 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9778 # When not using gcc, we currently assume that we are using 9779 # Microsoft Visual C++. 9780 if test "$GCC" != yes; then 9781 with_gnu_ld=no 9782 fi 9783 ;; 9784 interix*) 9785 # we just hope/assume this is gcc and not c89 (= MSVC++) 9786 with_gnu_ld=yes 9787 ;; 9788 openbsd*) 9789 with_gnu_ld=no 9790 ;; 9791 esac 9792 9793 ld_shlibs=yes 9794 9795 # On some targets, GNU ld is compatible enough with the native linker 9796 # that we're better off using the native interface for both. 9797 lt_use_gnu_ld_interface=no 9798 if test "$with_gnu_ld" = yes; then 9799 case $host_os in 9800 aix*) 9801 # The AIX port of GNU ld has always aspired to compatibility 9802 # with the native linker. However, as the warning in the GNU ld 9803 # block says, versions before 2.19.5* couldn't really create working 9804 # shared libraries, regardless of the interface used. 9805 case `$LD -v 2>&1` in 9806 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9807 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9808 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9809 *) 9810 lt_use_gnu_ld_interface=yes 9811 ;; 9812 esac 9813 ;; 9814 *) 9815 lt_use_gnu_ld_interface=yes 9816 ;; 9817 esac 9818 fi 9819 9820 if test "$lt_use_gnu_ld_interface" = yes; then 9821 # If archive_cmds runs LD, not CC, wlarc should be empty 9822 wlarc='${wl}' 9823 9824 # Set some defaults for GNU ld with shared library support. These 9825 # are reset later if shared libraries are not supported. Putting them 9826 # here allows them to be overridden if necessary. 9827 runpath_var=LD_RUN_PATH 9828 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9829 export_dynamic_flag_spec='${wl}--export-dynamic' 9830 # ancient GNU ld didn't support --whole-archive et. al. 9831 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9832 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9833 else 9834 whole_archive_flag_spec= 9835 fi 9836 supports_anon_versioning=no 9837 case `$LD -v 2>&1` in 9838 *GNU\ gold*) supports_anon_versioning=yes ;; 9839 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9840 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9841 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9842 *\ 2.11.*) ;; # other 2.11 versions 9843 *) supports_anon_versioning=yes ;; 9844 esac 9845 9846 # See if GNU ld supports shared libraries. 9847 case $host_os in 9848 aix[3-9]*) 9849 # On AIX/PPC, the GNU linker is very broken 9850 if test "$host_cpu" != ia64; then 9851 ld_shlibs=no 9852 cat <<_LT_EOF 1>&2 9853 9854*** Warning: the GNU linker, at least up to release 2.19, is reported 9855*** to be unable to reliably create shared libraries on AIX. 9856*** Therefore, libtool is disabling shared libraries support. If you 9857*** really care for shared libraries, you may want to install binutils 9858*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9859*** You will then need to restart the configuration process. 9860 9861_LT_EOF 9862 fi 9863 ;; 9864 9865 amigaos*) 9866 case $host_cpu in 9867 powerpc) 9868 # see comment about AmigaOS4 .so support 9869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9870 archive_expsym_cmds='' 9871 ;; 9872 m68k) 9873 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)' 9874 hardcode_libdir_flag_spec='-L$libdir' 9875 hardcode_minus_L=yes 9876 ;; 9877 esac 9878 ;; 9879 9880 beos*) 9881 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9882 allow_undefined_flag=unsupported 9883 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9884 # support --undefined. This deserves some investigation. FIXME 9885 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9886 else 9887 ld_shlibs=no 9888 fi 9889 ;; 9890 9891 cygwin* | mingw* | pw32* | cegcc*) 9892 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9893 # as there is no search path for DLLs. 9894 hardcode_libdir_flag_spec='-L$libdir' 9895 export_dynamic_flag_spec='${wl}--export-all-symbols' 9896 allow_undefined_flag=unsupported 9897 always_export_symbols=no 9898 enable_shared_with_static_runtimes=yes 9899 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' 9900 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9901 9902 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9903 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9904 # If the export-symbols file already is a .def file (1st line 9905 # is EXPORTS), use it as is; otherwise, prepend... 9906 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9907 cp $export_symbols $output_objdir/$soname.def; 9908 else 9909 echo EXPORTS > $output_objdir/$soname.def; 9910 cat $export_symbols >> $output_objdir/$soname.def; 9911 fi~ 9912 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9913 else 9914 ld_shlibs=no 9915 fi 9916 ;; 9917 9918 haiku*) 9919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9920 link_all_deplibs=yes 9921 ;; 9922 9923 interix[3-9]*) 9924 hardcode_direct=no 9925 hardcode_shlibpath_var=no 9926 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9927 export_dynamic_flag_spec='${wl}-E' 9928 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9929 # Instead, shared libraries are loaded at an image base (0x10000000 by 9930 # default) and relocated if they conflict, which is a slow very memory 9931 # consuming and fragmenting process. To avoid this, we pick a random, 9932 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9933 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9934 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9935 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' 9936 ;; 9937 9938 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9939 tmp_diet=no 9940 if test "$host_os" = linux-dietlibc; then 9941 case $cc_basename in 9942 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9943 esac 9944 fi 9945 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9946 && test "$tmp_diet" = no 9947 then 9948 tmp_addflag=' $pic_flag' 9949 tmp_sharedflag='-shared' 9950 case $cc_basename,$host_cpu in 9951 pgcc*) # Portland Group C compiler 9952 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' 9953 tmp_addflag=' $pic_flag' 9954 ;; 9955 pgf77* | pgf90* | pgf95* | pgfortran*) 9956 # Portland Group f77 and f90 compilers 9957 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' 9958 tmp_addflag=' $pic_flag -Mnomain' ;; 9959 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9960 tmp_addflag=' -i_dynamic' ;; 9961 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9962 tmp_addflag=' -i_dynamic -nofor_main' ;; 9963 ifc* | ifort*) # Intel Fortran compiler 9964 tmp_addflag=' -nofor_main' ;; 9965 lf95*) # Lahey Fortran 8.1 9966 whole_archive_flag_spec= 9967 tmp_sharedflag='--shared' ;; 9968 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9969 tmp_sharedflag='-qmkshrobj' 9970 tmp_addflag= ;; 9971 nvcc*) # Cuda Compiler Driver 2.2 9972 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' 9973 compiler_needs_object=yes 9974 ;; 9975 esac 9976 case `$CC -V 2>&1 | sed 5q` in 9977 *Sun\ C*) # Sun C 5.9 9978 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' 9979 compiler_needs_object=yes 9980 tmp_sharedflag='-G' ;; 9981 *Sun\ F*) # Sun Fortran 8.3 9982 tmp_sharedflag='-G' ;; 9983 esac 9984 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9985 9986 if test "x$supports_anon_versioning" = xyes; then 9987 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9988 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9989 echo "local: *; };" >> $output_objdir/$libname.ver~ 9990 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9991 fi 9992 9993 case $cc_basename in 9994 xlf* | bgf* | bgxlf* | mpixlf*) 9995 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9996 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9997 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9998 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9999 if test "x$supports_anon_versioning" = xyes; then 10000 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10001 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10002 echo "local: *; };" >> $output_objdir/$libname.ver~ 10003 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10004 fi 10005 ;; 10006 esac 10007 else 10008 ld_shlibs=no 10009 fi 10010 ;; 10011 10012 netbsd*) 10013 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10014 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10015 wlarc= 10016 else 10017 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10018 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10019 fi 10020 ;; 10021 10022 solaris*) 10023 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10024 ld_shlibs=no 10025 cat <<_LT_EOF 1>&2 10026 10027*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10028*** create shared libraries on Solaris systems. Therefore, libtool 10029*** is disabling shared libraries support. We urge you to upgrade GNU 10030*** binutils to release 2.9.1 or newer. Another option is to modify 10031*** your PATH or compiler configuration so that the native linker is 10032*** used, and then restart. 10033 10034_LT_EOF 10035 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10036 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10037 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10038 else 10039 ld_shlibs=no 10040 fi 10041 ;; 10042 10043 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10044 case `$LD -v 2>&1` in 10045 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10046 ld_shlibs=no 10047 cat <<_LT_EOF 1>&2 10048 10049*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 10050*** reliably create shared libraries on SCO systems. Therefore, libtool 10051*** is disabling shared libraries support. We urge you to upgrade GNU 10052*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10053*** your PATH or compiler configuration so that the native linker is 10054*** used, and then restart. 10055 10056_LT_EOF 10057 ;; 10058 *) 10059 # For security reasons, it is highly recommended that you always 10060 # use absolute paths for naming shared libraries, and exclude the 10061 # DT_RUNPATH tag from executables and libraries. But doing so 10062 # requires that you compile everything twice, which is a pain. 10063 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10064 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10065 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10066 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10067 else 10068 ld_shlibs=no 10069 fi 10070 ;; 10071 esac 10072 ;; 10073 10074 sunos4*) 10075 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10076 wlarc= 10077 hardcode_direct=yes 10078 hardcode_shlibpath_var=no 10079 ;; 10080 10081 *) 10082 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10083 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10084 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10085 else 10086 ld_shlibs=no 10087 fi 10088 ;; 10089 esac 10090 10091 if test "$ld_shlibs" = no; then 10092 runpath_var= 10093 hardcode_libdir_flag_spec= 10094 export_dynamic_flag_spec= 10095 whole_archive_flag_spec= 10096 fi 10097 else 10098 # PORTME fill in a description of your system's linker (not GNU ld) 10099 case $host_os in 10100 aix3*) 10101 allow_undefined_flag=unsupported 10102 always_export_symbols=yes 10103 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' 10104 # Note: this linker hardcodes the directories in LIBPATH if there 10105 # are no directories specified by -L. 10106 hardcode_minus_L=yes 10107 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 10108 # Neither direct hardcoding nor static linking is supported with a 10109 # broken collect2. 10110 hardcode_direct=unsupported 10111 fi 10112 ;; 10113 10114 aix[4-9]*) 10115 if test "$host_cpu" = ia64; then 10116 # On IA64, the linker does run time linking by default, so we don't 10117 # have to do anything special. 10118 aix_use_runtimelinking=no 10119 exp_sym_flag='-Bexport' 10120 no_entry_flag="" 10121 else 10122 # If we're using GNU nm, then we don't want the "-C" option. 10123 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10124 # Also, AIX nm treats weak defined symbols like other global 10125 # defined symbols, whereas GNU nm marks them as "W". 10126 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10127 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' 10128 else 10129 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' 10130 fi 10131 aix_use_runtimelinking=no 10132 10133 # Test if we are trying to use run time linking or normal 10134 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10135 # need to do runtime linking. 10136 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10137 for ld_flag in $LDFLAGS; do 10138 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 10139 aix_use_runtimelinking=yes 10140 break 10141 fi 10142 done 10143 ;; 10144 esac 10145 10146 exp_sym_flag='-bexport' 10147 no_entry_flag='-bnoentry' 10148 fi 10149 10150 # When large executables or shared objects are built, AIX ld can 10151 # have problems creating the table of contents. If linking a library 10152 # or program results in "error TOC overflow" add -mminimal-toc to 10153 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10154 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10155 10156 archive_cmds='' 10157 hardcode_direct=yes 10158 hardcode_direct_absolute=yes 10159 hardcode_libdir_separator=':' 10160 link_all_deplibs=yes 10161 file_list_spec='${wl}-f,' 10162 10163 if test "$GCC" = yes; then 10164 case $host_os in aix4.[012]|aix4.[012].*) 10165 # We only want to do this on AIX 4.2 and lower, the check 10166 # below for broken collect2 doesn't work under 4.3+ 10167 collect2name=`${CC} -print-prog-name=collect2` 10168 if test -f "$collect2name" && 10169 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10170 then 10171 # We have reworked collect2 10172 : 10173 else 10174 # We have old collect2 10175 hardcode_direct=unsupported 10176 # It fails to find uninstalled libraries when the uninstalled 10177 # path is not listed in the libpath. Setting hardcode_minus_L 10178 # to unsupported forces relinking 10179 hardcode_minus_L=yes 10180 hardcode_libdir_flag_spec='-L$libdir' 10181 hardcode_libdir_separator= 10182 fi 10183 ;; 10184 esac 10185 shared_flag='-shared' 10186 if test "$aix_use_runtimelinking" = yes; then 10187 shared_flag="$shared_flag "'${wl}-G' 10188 fi 10189 else 10190 # not using gcc 10191 if test "$host_cpu" = ia64; then 10192 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10193 # chokes on -Wl,-G. The following line is correct: 10194 shared_flag='-G' 10195 else 10196 if test "$aix_use_runtimelinking" = yes; then 10197 shared_flag='${wl}-G' 10198 else 10199 shared_flag='${wl}-bM:SRE' 10200 fi 10201 fi 10202 fi 10203 10204 export_dynamic_flag_spec='${wl}-bexpall' 10205 # It seems that -bexpall does not export symbols beginning with 10206 # underscore (_), so it is better to generate a list of symbols to export. 10207 always_export_symbols=yes 10208 if test "$aix_use_runtimelinking" = yes; then 10209 # Warning - without using the other runtime loading flags (-brtl), 10210 # -berok will link without error, but may produce a broken library. 10211 allow_undefined_flag='-berok' 10212 # Determine the default libpath from the value encoded in an 10213 # empty executable. 10214 if test "${lt_cv_aix_libpath+set}" = set; then 10215 aix_libpath=$lt_cv_aix_libpath 10216else 10217 if ${lt_cv_aix_libpath_+:} false; then : 10218 $as_echo_n "(cached) " >&6 10219else 10220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10221/* end confdefs.h. */ 10222 10223int 10224main () 10225{ 10226 10227 ; 10228 return 0; 10229} 10230_ACEOF 10231if ac_fn_c_try_link "$LINENO"; then : 10232 10233 lt_aix_libpath_sed=' 10234 /Import File Strings/,/^$/ { 10235 /^0/ { 10236 s/^0 *\([^ ]*\) *$/\1/ 10237 p 10238 } 10239 }' 10240 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10241 # Check for a 64-bit object if we didn't find anything. 10242 if test -z "$lt_cv_aix_libpath_"; then 10243 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10244 fi 10245fi 10246rm -f core conftest.err conftest.$ac_objext \ 10247 conftest$ac_exeext conftest.$ac_ext 10248 if test -z "$lt_cv_aix_libpath_"; then 10249 lt_cv_aix_libpath_="/usr/lib:/lib" 10250 fi 10251 10252fi 10253 10254 aix_libpath=$lt_cv_aix_libpath_ 10255fi 10256 10257 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10258 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" 10259 else 10260 if test "$host_cpu" = ia64; then 10261 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10262 allow_undefined_flag="-z nodefs" 10263 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" 10264 else 10265 # Determine the default libpath from the value encoded in an 10266 # empty executable. 10267 if test "${lt_cv_aix_libpath+set}" = set; then 10268 aix_libpath=$lt_cv_aix_libpath 10269else 10270 if ${lt_cv_aix_libpath_+:} false; then : 10271 $as_echo_n "(cached) " >&6 10272else 10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10274/* end confdefs.h. */ 10275 10276int 10277main () 10278{ 10279 10280 ; 10281 return 0; 10282} 10283_ACEOF 10284if ac_fn_c_try_link "$LINENO"; then : 10285 10286 lt_aix_libpath_sed=' 10287 /Import File Strings/,/^$/ { 10288 /^0/ { 10289 s/^0 *\([^ ]*\) *$/\1/ 10290 p 10291 } 10292 }' 10293 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10294 # Check for a 64-bit object if we didn't find anything. 10295 if test -z "$lt_cv_aix_libpath_"; then 10296 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10297 fi 10298fi 10299rm -f core conftest.err conftest.$ac_objext \ 10300 conftest$ac_exeext conftest.$ac_ext 10301 if test -z "$lt_cv_aix_libpath_"; then 10302 lt_cv_aix_libpath_="/usr/lib:/lib" 10303 fi 10304 10305fi 10306 10307 aix_libpath=$lt_cv_aix_libpath_ 10308fi 10309 10310 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10311 # Warning - without using the other run time loading flags, 10312 # -berok will link without error, but may produce a broken library. 10313 no_undefined_flag=' ${wl}-bernotok' 10314 allow_undefined_flag=' ${wl}-berok' 10315 if test "$with_gnu_ld" = yes; then 10316 # We only use this code for GNU lds that support --whole-archive. 10317 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10318 else 10319 # Exported symbols can be pulled into shared objects from archives 10320 whole_archive_flag_spec='$convenience' 10321 fi 10322 archive_cmds_need_lc=yes 10323 # This is similar to how AIX traditionally builds its shared libraries. 10324 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' 10325 fi 10326 fi 10327 ;; 10328 10329 amigaos*) 10330 case $host_cpu in 10331 powerpc) 10332 # see comment about AmigaOS4 .so support 10333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10334 archive_expsym_cmds='' 10335 ;; 10336 m68k) 10337 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)' 10338 hardcode_libdir_flag_spec='-L$libdir' 10339 hardcode_minus_L=yes 10340 ;; 10341 esac 10342 ;; 10343 10344 bsdi[45]*) 10345 export_dynamic_flag_spec=-rdynamic 10346 ;; 10347 10348 cygwin* | mingw* | pw32* | cegcc*) 10349 # When not using gcc, we currently assume that we are using 10350 # Microsoft Visual C++. 10351 # hardcode_libdir_flag_spec is actually meaningless, as there is 10352 # no search path for DLLs. 10353 case $cc_basename in 10354 cl*) 10355 # Native MSVC 10356 hardcode_libdir_flag_spec=' ' 10357 allow_undefined_flag=unsupported 10358 always_export_symbols=yes 10359 file_list_spec='@' 10360 # Tell ltmain to make .lib files, not .a files. 10361 libext=lib 10362 # Tell ltmain to make .dll files, not .so files. 10363 shrext_cmds=".dll" 10364 # FIXME: Setting linknames here is a bad hack. 10365 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 10366 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10367 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 10368 else 10369 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 10370 fi~ 10371 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10372 linknames=' 10373 # The linker will not automatically build a static lib if we build a DLL. 10374 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10375 enable_shared_with_static_runtimes=yes 10376 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10377 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10378 # Don't use ranlib 10379 old_postinstall_cmds='chmod 644 $oldlib' 10380 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10381 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10382 case $lt_outputfile in 10383 *.exe|*.EXE) ;; 10384 *) 10385 lt_outputfile="$lt_outputfile.exe" 10386 lt_tool_outputfile="$lt_tool_outputfile.exe" 10387 ;; 10388 esac~ 10389 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 10390 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10391 $RM "$lt_outputfile.manifest"; 10392 fi' 10393 ;; 10394 *) 10395 # Assume MSVC wrapper 10396 hardcode_libdir_flag_spec=' ' 10397 allow_undefined_flag=unsupported 10398 # Tell ltmain to make .lib files, not .a files. 10399 libext=lib 10400 # Tell ltmain to make .dll files, not .so files. 10401 shrext_cmds=".dll" 10402 # FIXME: Setting linknames here is a bad hack. 10403 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10404 # The linker will automatically build a .lib file if we build a DLL. 10405 old_archive_from_new_cmds='true' 10406 # FIXME: Should let the user specify the lib program. 10407 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10408 enable_shared_with_static_runtimes=yes 10409 ;; 10410 esac 10411 ;; 10412 10413 darwin* | rhapsody*) 10414 10415 10416 archive_cmds_need_lc=no 10417 hardcode_direct=no 10418 hardcode_automatic=yes 10419 hardcode_shlibpath_var=unsupported 10420 if test "$lt_cv_ld_force_load" = "yes"; then 10421 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\"`' 10422 10423 else 10424 whole_archive_flag_spec='' 10425 fi 10426 link_all_deplibs=yes 10427 allow_undefined_flag="$_lt_dar_allow_undefined" 10428 case $cc_basename in 10429 ifort*) _lt_dar_can_shared=yes ;; 10430 *) _lt_dar_can_shared=$GCC ;; 10431 esac 10432 if test "$_lt_dar_can_shared" = "yes"; then 10433 output_verbose_link_cmd=func_echo_all 10434 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10435 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10436 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}" 10437 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}" 10438 10439 else 10440 ld_shlibs=no 10441 fi 10442 10443 ;; 10444 10445 dgux*) 10446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10447 hardcode_libdir_flag_spec='-L$libdir' 10448 hardcode_shlibpath_var=no 10449 ;; 10450 10451 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10452 # support. Future versions do this automatically, but an explicit c++rt0.o 10453 # does not break anything, and helps significantly (at the cost of a little 10454 # extra space). 10455 freebsd2.2*) 10456 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10457 hardcode_libdir_flag_spec='-R$libdir' 10458 hardcode_direct=yes 10459 hardcode_shlibpath_var=no 10460 ;; 10461 10462 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10463 freebsd2.*) 10464 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10465 hardcode_direct=yes 10466 hardcode_minus_L=yes 10467 hardcode_shlibpath_var=no 10468 ;; 10469 10470 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10471 freebsd* | dragonfly*) 10472 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10473 hardcode_libdir_flag_spec='-R$libdir' 10474 hardcode_direct=yes 10475 hardcode_shlibpath_var=no 10476 ;; 10477 10478 hpux9*) 10479 if test "$GCC" = yes; then 10480 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' 10481 else 10482 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' 10483 fi 10484 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10485 hardcode_libdir_separator=: 10486 hardcode_direct=yes 10487 10488 # hardcode_minus_L: Not really in the search PATH, 10489 # but as the default location of the library. 10490 hardcode_minus_L=yes 10491 export_dynamic_flag_spec='${wl}-E' 10492 ;; 10493 10494 hpux10*) 10495 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10496 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10497 else 10498 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10499 fi 10500 if test "$with_gnu_ld" = no; then 10501 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10502 hardcode_libdir_separator=: 10503 hardcode_direct=yes 10504 hardcode_direct_absolute=yes 10505 export_dynamic_flag_spec='${wl}-E' 10506 # hardcode_minus_L: Not really in the search PATH, 10507 # but as the default location of the library. 10508 hardcode_minus_L=yes 10509 fi 10510 ;; 10511 10512 hpux11*) 10513 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10514 case $host_cpu in 10515 hppa*64*) 10516 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10517 ;; 10518 ia64*) 10519 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10520 ;; 10521 *) 10522 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10523 ;; 10524 esac 10525 else 10526 case $host_cpu in 10527 hppa*64*) 10528 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10529 ;; 10530 ia64*) 10531 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10532 ;; 10533 *) 10534 10535 # Older versions of the 11.00 compiler do not understand -b yet 10536 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10538$as_echo_n "checking if $CC understands -b... " >&6; } 10539if ${lt_cv_prog_compiler__b+:} false; then : 10540 $as_echo_n "(cached) " >&6 10541else 10542 lt_cv_prog_compiler__b=no 10543 save_LDFLAGS="$LDFLAGS" 10544 LDFLAGS="$LDFLAGS -b" 10545 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10546 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10547 # The linker can only warn and ignore the option if not recognized 10548 # So say no if there are warnings 10549 if test -s conftest.err; then 10550 # Append any errors to the config.log. 10551 cat conftest.err 1>&5 10552 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10553 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10554 if diff conftest.exp conftest.er2 >/dev/null; then 10555 lt_cv_prog_compiler__b=yes 10556 fi 10557 else 10558 lt_cv_prog_compiler__b=yes 10559 fi 10560 fi 10561 $RM -r conftest* 10562 LDFLAGS="$save_LDFLAGS" 10563 10564fi 10565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10566$as_echo "$lt_cv_prog_compiler__b" >&6; } 10567 10568if test x"$lt_cv_prog_compiler__b" = xyes; then 10569 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10570else 10571 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10572fi 10573 10574 ;; 10575 esac 10576 fi 10577 if test "$with_gnu_ld" = no; then 10578 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10579 hardcode_libdir_separator=: 10580 10581 case $host_cpu in 10582 hppa*64*|ia64*) 10583 hardcode_direct=no 10584 hardcode_shlibpath_var=no 10585 ;; 10586 *) 10587 hardcode_direct=yes 10588 hardcode_direct_absolute=yes 10589 export_dynamic_flag_spec='${wl}-E' 10590 10591 # hardcode_minus_L: Not really in the search PATH, 10592 # but as the default location of the library. 10593 hardcode_minus_L=yes 10594 ;; 10595 esac 10596 fi 10597 ;; 10598 10599 irix5* | irix6* | nonstopux*) 10600 if test "$GCC" = yes; then 10601 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' 10602 # Try to use the -exported_symbol ld option, if it does not 10603 # work, assume that -exports_file does not work either and 10604 # implicitly export all symbols. 10605 # This should be the same for all languages, so no per-tag cache variable. 10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10607$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10608if ${lt_cv_irix_exported_symbol+:} false; then : 10609 $as_echo_n "(cached) " >&6 10610else 10611 save_LDFLAGS="$LDFLAGS" 10612 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10614/* end confdefs.h. */ 10615int foo (void) { return 0; } 10616_ACEOF 10617if ac_fn_c_try_link "$LINENO"; then : 10618 lt_cv_irix_exported_symbol=yes 10619else 10620 lt_cv_irix_exported_symbol=no 10621fi 10622rm -f core conftest.err conftest.$ac_objext \ 10623 conftest$ac_exeext conftest.$ac_ext 10624 LDFLAGS="$save_LDFLAGS" 10625fi 10626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10627$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10628 if test "$lt_cv_irix_exported_symbol" = yes; then 10629 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' 10630 fi 10631 else 10632 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' 10633 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' 10634 fi 10635 archive_cmds_need_lc='no' 10636 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10637 hardcode_libdir_separator=: 10638 inherit_rpath=yes 10639 link_all_deplibs=yes 10640 ;; 10641 10642 netbsd*) 10643 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10644 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10645 else 10646 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10647 fi 10648 hardcode_libdir_flag_spec='-R$libdir' 10649 hardcode_direct=yes 10650 hardcode_shlibpath_var=no 10651 ;; 10652 10653 newsos6) 10654 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10655 hardcode_direct=yes 10656 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10657 hardcode_libdir_separator=: 10658 hardcode_shlibpath_var=no 10659 ;; 10660 10661 *nto* | *qnx*) 10662 ;; 10663 10664 openbsd*) 10665 if test -f /usr/libexec/ld.so; then 10666 hardcode_direct=yes 10667 hardcode_shlibpath_var=no 10668 hardcode_direct_absolute=yes 10669 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10670 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10671 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10672 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10673 export_dynamic_flag_spec='${wl}-E' 10674 else 10675 case $host_os in 10676 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10677 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10678 hardcode_libdir_flag_spec='-R$libdir' 10679 ;; 10680 *) 10681 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10682 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10683 ;; 10684 esac 10685 fi 10686 else 10687 ld_shlibs=no 10688 fi 10689 ;; 10690 10691 os2*) 10692 hardcode_libdir_flag_spec='-L$libdir' 10693 hardcode_minus_L=yes 10694 allow_undefined_flag=unsupported 10695 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' 10696 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10697 ;; 10698 10699 osf3*) 10700 if test "$GCC" = yes; then 10701 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10702 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' 10703 else 10704 allow_undefined_flag=' -expect_unresolved \*' 10705 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' 10706 fi 10707 archive_cmds_need_lc='no' 10708 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10709 hardcode_libdir_separator=: 10710 ;; 10711 10712 osf4* | osf5*) # as osf3* with the addition of -msym flag 10713 if test "$GCC" = yes; then 10714 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10715 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' 10716 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10717 else 10718 allow_undefined_flag=' -expect_unresolved \*' 10719 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' 10720 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~ 10721 $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' 10722 10723 # Both c and cxx compiler support -rpath directly 10724 hardcode_libdir_flag_spec='-rpath $libdir' 10725 fi 10726 archive_cmds_need_lc='no' 10727 hardcode_libdir_separator=: 10728 ;; 10729 10730 solaris*) 10731 no_undefined_flag=' -z defs' 10732 if test "$GCC" = yes; then 10733 wlarc='${wl}' 10734 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10735 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10736 $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' 10737 else 10738 case `$CC -V 2>&1` in 10739 *"Compilers 5.0"*) 10740 wlarc='' 10741 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10742 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10743 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10744 ;; 10745 *) 10746 wlarc='${wl}' 10747 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10748 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10749 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10750 ;; 10751 esac 10752 fi 10753 hardcode_libdir_flag_spec='-R$libdir' 10754 hardcode_shlibpath_var=no 10755 case $host_os in 10756 solaris2.[0-5] | solaris2.[0-5].*) ;; 10757 *) 10758 # The compiler driver will combine and reorder linker options, 10759 # but understands `-z linker_flag'. GCC discards it without `$wl', 10760 # but is careful enough not to reorder. 10761 # Supported since Solaris 2.6 (maybe 2.5.1?) 10762 if test "$GCC" = yes; then 10763 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10764 else 10765 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10766 fi 10767 ;; 10768 esac 10769 link_all_deplibs=yes 10770 ;; 10771 10772 sunos4*) 10773 if test "x$host_vendor" = xsequent; then 10774 # Use $CC to link under sequent, because it throws in some extra .o 10775 # files that make .init and .fini sections work. 10776 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10777 else 10778 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10779 fi 10780 hardcode_libdir_flag_spec='-L$libdir' 10781 hardcode_direct=yes 10782 hardcode_minus_L=yes 10783 hardcode_shlibpath_var=no 10784 ;; 10785 10786 sysv4) 10787 case $host_vendor in 10788 sni) 10789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10790 hardcode_direct=yes # is this really true??? 10791 ;; 10792 siemens) 10793 ## LD is ld it makes a PLAMLIB 10794 ## CC just makes a GrossModule. 10795 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10796 reload_cmds='$CC -r -o $output$reload_objs' 10797 hardcode_direct=no 10798 ;; 10799 motorola) 10800 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10801 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10802 ;; 10803 esac 10804 runpath_var='LD_RUN_PATH' 10805 hardcode_shlibpath_var=no 10806 ;; 10807 10808 sysv4.3*) 10809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10810 hardcode_shlibpath_var=no 10811 export_dynamic_flag_spec='-Bexport' 10812 ;; 10813 10814 sysv4*MP*) 10815 if test -d /usr/nec; then 10816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10817 hardcode_shlibpath_var=no 10818 runpath_var=LD_RUN_PATH 10819 hardcode_runpath_var=yes 10820 ld_shlibs=yes 10821 fi 10822 ;; 10823 10824 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10825 no_undefined_flag='${wl}-z,text' 10826 archive_cmds_need_lc=no 10827 hardcode_shlibpath_var=no 10828 runpath_var='LD_RUN_PATH' 10829 10830 if test "$GCC" = yes; then 10831 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10832 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10833 else 10834 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10835 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10836 fi 10837 ;; 10838 10839 sysv5* | sco3.2v5* | sco5v6*) 10840 # Note: We can NOT use -z defs as we might desire, because we do not 10841 # link with -lc, and that would cause any symbols used from libc to 10842 # always be unresolved, which means just about no library would 10843 # ever link correctly. If we're not using GNU ld we use -z text 10844 # though, which does catch some bad symbols but isn't as heavy-handed 10845 # as -z defs. 10846 no_undefined_flag='${wl}-z,text' 10847 allow_undefined_flag='${wl}-z,nodefs' 10848 archive_cmds_need_lc=no 10849 hardcode_shlibpath_var=no 10850 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10851 hardcode_libdir_separator=':' 10852 link_all_deplibs=yes 10853 export_dynamic_flag_spec='${wl}-Bexport' 10854 runpath_var='LD_RUN_PATH' 10855 10856 if test "$GCC" = yes; then 10857 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10858 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10859 else 10860 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10861 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10862 fi 10863 ;; 10864 10865 uts4*) 10866 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10867 hardcode_libdir_flag_spec='-L$libdir' 10868 hardcode_shlibpath_var=no 10869 ;; 10870 10871 *) 10872 ld_shlibs=no 10873 ;; 10874 esac 10875 10876 if test x$host_vendor = xsni; then 10877 case $host in 10878 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10879 export_dynamic_flag_spec='${wl}-Blargedynsym' 10880 ;; 10881 esac 10882 fi 10883 fi 10884 10885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10886$as_echo "$ld_shlibs" >&6; } 10887test "$ld_shlibs" = no && can_build_shared=no 10888 10889with_gnu_ld=$with_gnu_ld 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905# 10906# Do we need to explicitly link libc? 10907# 10908case "x$archive_cmds_need_lc" in 10909x|xyes) 10910 # Assume -lc should be added 10911 archive_cmds_need_lc=yes 10912 10913 if test "$enable_shared" = yes && test "$GCC" = yes; then 10914 case $archive_cmds in 10915 *'~'*) 10916 # FIXME: we may have to deal with multi-command sequences. 10917 ;; 10918 '$CC '*) 10919 # Test whether the compiler implicitly links with -lc since on some 10920 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10921 # to ld, don't add -lc before -lgcc. 10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10923$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10924if ${lt_cv_archive_cmds_need_lc+:} false; then : 10925 $as_echo_n "(cached) " >&6 10926else 10927 $RM conftest* 10928 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10929 10930 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10931 (eval $ac_compile) 2>&5 10932 ac_status=$? 10933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10934 test $ac_status = 0; } 2>conftest.err; then 10935 soname=conftest 10936 lib=conftest 10937 libobjs=conftest.$ac_objext 10938 deplibs= 10939 wl=$lt_prog_compiler_wl 10940 pic_flag=$lt_prog_compiler_pic 10941 compiler_flags=-v 10942 linker_flags=-v 10943 verstring= 10944 output_objdir=. 10945 libname=conftest 10946 lt_save_allow_undefined_flag=$allow_undefined_flag 10947 allow_undefined_flag= 10948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10949 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10950 ac_status=$? 10951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10952 test $ac_status = 0; } 10953 then 10954 lt_cv_archive_cmds_need_lc=no 10955 else 10956 lt_cv_archive_cmds_need_lc=yes 10957 fi 10958 allow_undefined_flag=$lt_save_allow_undefined_flag 10959 else 10960 cat conftest.err 1>&5 10961 fi 10962 $RM conftest* 10963 10964fi 10965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10966$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10967 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10968 ;; 10969 esac 10970 fi 10971 ;; 10972esac 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11126$as_echo_n "checking dynamic linker characteristics... " >&6; } 11127 11128if test "$GCC" = yes; then 11129 case $host_os in 11130 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 11131 *) lt_awk_arg="/^libraries:/" ;; 11132 esac 11133 case $host_os in 11134 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 11135 *) lt_sed_strip_eq="s,=/,/,g" ;; 11136 esac 11137 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11138 case $lt_search_path_spec in 11139 *\;*) 11140 # if the path contains ";" then we assume it to be the separator 11141 # otherwise default to the standard path separator (i.e. ":") - it is 11142 # assumed that no part of a normal pathname contains ";" but that should 11143 # okay in the real world where ";" in dirpaths is itself problematic. 11144 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11145 ;; 11146 *) 11147 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11148 ;; 11149 esac 11150 # Ok, now we have the path, separated by spaces, we can step through it 11151 # and add multilib dir if necessary. 11152 lt_tmp_lt_search_path_spec= 11153 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11154 for lt_sys_path in $lt_search_path_spec; do 11155 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 11156 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 11157 else 11158 test -d "$lt_sys_path" && \ 11159 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11160 fi 11161 done 11162 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11163BEGIN {RS=" "; FS="/|\n";} { 11164 lt_foo=""; 11165 lt_count=0; 11166 for (lt_i = NF; lt_i > 0; lt_i--) { 11167 if ($lt_i != "" && $lt_i != ".") { 11168 if ($lt_i == "..") { 11169 lt_count++; 11170 } else { 11171 if (lt_count == 0) { 11172 lt_foo="/" $lt_i lt_foo; 11173 } else { 11174 lt_count--; 11175 } 11176 } 11177 } 11178 } 11179 if (lt_foo != "") { lt_freq[lt_foo]++; } 11180 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11181}'` 11182 # AWK program above erroneously prepends '/' to C:/dos/paths 11183 # for these hosts. 11184 case $host_os in 11185 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11186 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 11187 esac 11188 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11189else 11190 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11191fi 11192library_names_spec= 11193libname_spec='lib$name' 11194soname_spec= 11195shrext_cmds=".so" 11196postinstall_cmds= 11197postuninstall_cmds= 11198finish_cmds= 11199finish_eval= 11200shlibpath_var= 11201shlibpath_overrides_runpath=unknown 11202version_type=none 11203dynamic_linker="$host_os ld.so" 11204sys_lib_dlsearch_path_spec="/lib /usr/lib" 11205need_lib_prefix=unknown 11206hardcode_into_libs=no 11207 11208# when you set need_version to no, make sure it does not cause -set_version 11209# flags to be left without arguments 11210need_version=unknown 11211 11212case $host_os in 11213aix3*) 11214 version_type=linux # correct to gnu/linux during the next big refactor 11215 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11216 shlibpath_var=LIBPATH 11217 11218 # AIX 3 has no versioning support, so we append a major version to the name. 11219 soname_spec='${libname}${release}${shared_ext}$major' 11220 ;; 11221 11222aix[4-9]*) 11223 version_type=linux # correct to gnu/linux during the next big refactor 11224 need_lib_prefix=no 11225 need_version=no 11226 hardcode_into_libs=yes 11227 if test "$host_cpu" = ia64; then 11228 # AIX 5 supports IA64 11229 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11230 shlibpath_var=LD_LIBRARY_PATH 11231 else 11232 # With GCC up to 2.95.x, collect2 would create an import file 11233 # for dependence libraries. The import file would start with 11234 # the line `#! .'. This would cause the generated library to 11235 # depend on `.', always an invalid library. This was fixed in 11236 # development snapshots of GCC prior to 3.0. 11237 case $host_os in 11238 aix4 | aix4.[01] | aix4.[01].*) 11239 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11240 echo ' yes ' 11241 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 11242 : 11243 else 11244 can_build_shared=no 11245 fi 11246 ;; 11247 esac 11248 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11249 # soname into executable. Probably we can add versioning support to 11250 # collect2, so additional links can be useful in future. 11251 if test "$aix_use_runtimelinking" = yes; then 11252 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11253 # instead of lib<name>.a to let people know that these are not 11254 # typical AIX shared libraries. 11255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11256 else 11257 # We preserve .a as extension for shared libraries through AIX4.2 11258 # and later when we are not doing run time linking. 11259 library_names_spec='${libname}${release}.a $libname.a' 11260 soname_spec='${libname}${release}${shared_ext}$major' 11261 fi 11262 shlibpath_var=LIBPATH 11263 fi 11264 ;; 11265 11266amigaos*) 11267 case $host_cpu in 11268 powerpc) 11269 # Since July 2007 AmigaOS4 officially supports .so libraries. 11270 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11272 ;; 11273 m68k) 11274 library_names_spec='$libname.ixlibrary $libname.a' 11275 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11276 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' 11277 ;; 11278 esac 11279 ;; 11280 11281beos*) 11282 library_names_spec='${libname}${shared_ext}' 11283 dynamic_linker="$host_os ld.so" 11284 shlibpath_var=LIBRARY_PATH 11285 ;; 11286 11287bsdi[45]*) 11288 version_type=linux # correct to gnu/linux during the next big refactor 11289 need_version=no 11290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11291 soname_spec='${libname}${release}${shared_ext}$major' 11292 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11293 shlibpath_var=LD_LIBRARY_PATH 11294 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11295 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11296 # the default ld.so.conf also contains /usr/contrib/lib and 11297 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11298 # libtool to hard-code these into programs 11299 ;; 11300 11301cygwin* | mingw* | pw32* | cegcc*) 11302 version_type=windows 11303 shrext_cmds=".dll" 11304 need_version=no 11305 need_lib_prefix=no 11306 11307 case $GCC,$cc_basename in 11308 yes,*) 11309 # gcc 11310 library_names_spec='$libname.dll.a' 11311 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11312 postinstall_cmds='base_file=`basename \${file}`~ 11313 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11314 dldir=$destdir/`dirname \$dlpath`~ 11315 test -d \$dldir || mkdir -p \$dldir~ 11316 $install_prog $dir/$dlname \$dldir/$dlname~ 11317 chmod a+x \$dldir/$dlname~ 11318 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11319 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11320 fi' 11321 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11322 dlpath=$dir/\$dldll~ 11323 $RM \$dlpath' 11324 shlibpath_overrides_runpath=yes 11325 11326 case $host_os in 11327 cygwin*) 11328 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11329 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11330 11331 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11332 ;; 11333 mingw* | cegcc*) 11334 # MinGW DLLs use traditional 'lib' prefix 11335 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11336 ;; 11337 pw32*) 11338 # pw32 DLLs use 'pw' prefix rather than 'lib' 11339 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11340 ;; 11341 esac 11342 dynamic_linker='Win32 ld.exe' 11343 ;; 11344 11345 *,cl*) 11346 # Native MSVC 11347 libname_spec='$name' 11348 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11349 library_names_spec='${libname}.dll.lib' 11350 11351 case $build_os in 11352 mingw*) 11353 sys_lib_search_path_spec= 11354 lt_save_ifs=$IFS 11355 IFS=';' 11356 for lt_path in $LIB 11357 do 11358 IFS=$lt_save_ifs 11359 # Let DOS variable expansion print the short 8.3 style file name. 11360 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11361 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11362 done 11363 IFS=$lt_save_ifs 11364 # Convert to MSYS style. 11365 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11366 ;; 11367 cygwin*) 11368 # Convert to unix form, then to dos form, then back to unix form 11369 # but this time dos style (no spaces!) so that the unix form looks 11370 # like /cygdrive/c/PROGRA~1:/cygdr... 11371 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11372 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11373 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11374 ;; 11375 *) 11376 sys_lib_search_path_spec="$LIB" 11377 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11378 # It is most probably a Windows format PATH. 11379 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11380 else 11381 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11382 fi 11383 # FIXME: find the short name or the path components, as spaces are 11384 # common. (e.g. "Program Files" -> "PROGRA~1") 11385 ;; 11386 esac 11387 11388 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11389 postinstall_cmds='base_file=`basename \${file}`~ 11390 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11391 dldir=$destdir/`dirname \$dlpath`~ 11392 test -d \$dldir || mkdir -p \$dldir~ 11393 $install_prog $dir/$dlname \$dldir/$dlname' 11394 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11395 dlpath=$dir/\$dldll~ 11396 $RM \$dlpath' 11397 shlibpath_overrides_runpath=yes 11398 dynamic_linker='Win32 link.exe' 11399 ;; 11400 11401 *) 11402 # Assume MSVC wrapper 11403 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11404 dynamic_linker='Win32 ld.exe' 11405 ;; 11406 esac 11407 # FIXME: first we should search . and the directory the executable is in 11408 shlibpath_var=PATH 11409 ;; 11410 11411darwin* | rhapsody*) 11412 dynamic_linker="$host_os dyld" 11413 version_type=darwin 11414 need_lib_prefix=no 11415 need_version=no 11416 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11417 soname_spec='${libname}${release}${major}$shared_ext' 11418 shlibpath_overrides_runpath=yes 11419 shlibpath_var=DYLD_LIBRARY_PATH 11420 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11421 11422 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11423 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11424 ;; 11425 11426dgux*) 11427 version_type=linux # correct to gnu/linux during the next big refactor 11428 need_lib_prefix=no 11429 need_version=no 11430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11431 soname_spec='${libname}${release}${shared_ext}$major' 11432 shlibpath_var=LD_LIBRARY_PATH 11433 ;; 11434 11435freebsd* | dragonfly*) 11436 # DragonFly does not have aout. When/if they implement a new 11437 # versioning mechanism, adjust this. 11438 if test -x /usr/bin/objformat; then 11439 objformat=`/usr/bin/objformat` 11440 else 11441 case $host_os in 11442 freebsd[23].*) objformat=aout ;; 11443 *) objformat=elf ;; 11444 esac 11445 fi 11446 version_type=freebsd-$objformat 11447 case $version_type in 11448 freebsd-elf*) 11449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11450 need_version=no 11451 need_lib_prefix=no 11452 ;; 11453 freebsd-*) 11454 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11455 need_version=yes 11456 ;; 11457 esac 11458 shlibpath_var=LD_LIBRARY_PATH 11459 case $host_os in 11460 freebsd2.*) 11461 shlibpath_overrides_runpath=yes 11462 ;; 11463 freebsd3.[01]* | freebsdelf3.[01]*) 11464 shlibpath_overrides_runpath=yes 11465 hardcode_into_libs=yes 11466 ;; 11467 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11468 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11469 shlibpath_overrides_runpath=no 11470 hardcode_into_libs=yes 11471 ;; 11472 *) # from 4.6 on, and DragonFly 11473 shlibpath_overrides_runpath=yes 11474 hardcode_into_libs=yes 11475 ;; 11476 esac 11477 ;; 11478 11479gnu*) 11480 version_type=linux # correct to gnu/linux during the next big refactor 11481 need_lib_prefix=no 11482 need_version=no 11483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11484 soname_spec='${libname}${release}${shared_ext}$major' 11485 shlibpath_var=LD_LIBRARY_PATH 11486 shlibpath_overrides_runpath=no 11487 hardcode_into_libs=yes 11488 ;; 11489 11490haiku*) 11491 version_type=linux # correct to gnu/linux during the next big refactor 11492 need_lib_prefix=no 11493 need_version=no 11494 dynamic_linker="$host_os runtime_loader" 11495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11496 soname_spec='${libname}${release}${shared_ext}$major' 11497 shlibpath_var=LIBRARY_PATH 11498 shlibpath_overrides_runpath=yes 11499 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11500 hardcode_into_libs=yes 11501 ;; 11502 11503hpux9* | hpux10* | hpux11*) 11504 # Give a soname corresponding to the major version so that dld.sl refuses to 11505 # link against other versions. 11506 version_type=sunos 11507 need_lib_prefix=no 11508 need_version=no 11509 case $host_cpu in 11510 ia64*) 11511 shrext_cmds='.so' 11512 hardcode_into_libs=yes 11513 dynamic_linker="$host_os dld.so" 11514 shlibpath_var=LD_LIBRARY_PATH 11515 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11517 soname_spec='${libname}${release}${shared_ext}$major' 11518 if test "X$HPUX_IA64_MODE" = X32; then 11519 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11520 else 11521 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11522 fi 11523 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11524 ;; 11525 hppa*64*) 11526 shrext_cmds='.sl' 11527 hardcode_into_libs=yes 11528 dynamic_linker="$host_os dld.sl" 11529 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11530 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11532 soname_spec='${libname}${release}${shared_ext}$major' 11533 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11534 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11535 ;; 11536 *) 11537 shrext_cmds='.sl' 11538 dynamic_linker="$host_os dld.sl" 11539 shlibpath_var=SHLIB_PATH 11540 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11542 soname_spec='${libname}${release}${shared_ext}$major' 11543 ;; 11544 esac 11545 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11546 postinstall_cmds='chmod 555 $lib' 11547 # or fails outright, so override atomically: 11548 install_override_mode=555 11549 ;; 11550 11551interix[3-9]*) 11552 version_type=linux # correct to gnu/linux during the next big refactor 11553 need_lib_prefix=no 11554 need_version=no 11555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11556 soname_spec='${libname}${release}${shared_ext}$major' 11557 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11558 shlibpath_var=LD_LIBRARY_PATH 11559 shlibpath_overrides_runpath=no 11560 hardcode_into_libs=yes 11561 ;; 11562 11563irix5* | irix6* | nonstopux*) 11564 case $host_os in 11565 nonstopux*) version_type=nonstopux ;; 11566 *) 11567 if test "$lt_cv_prog_gnu_ld" = yes; then 11568 version_type=linux # correct to gnu/linux during the next big refactor 11569 else 11570 version_type=irix 11571 fi ;; 11572 esac 11573 need_lib_prefix=no 11574 need_version=no 11575 soname_spec='${libname}${release}${shared_ext}$major' 11576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11577 case $host_os in 11578 irix5* | nonstopux*) 11579 libsuff= shlibsuff= 11580 ;; 11581 *) 11582 case $LD in # libtool.m4 will add one of these switches to LD 11583 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11584 libsuff= shlibsuff= libmagic=32-bit;; 11585 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11586 libsuff=32 shlibsuff=N32 libmagic=N32;; 11587 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11588 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11589 *) libsuff= shlibsuff= libmagic=never-match;; 11590 esac 11591 ;; 11592 esac 11593 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11594 shlibpath_overrides_runpath=no 11595 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11596 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11597 hardcode_into_libs=yes 11598 ;; 11599 11600# No shared lib support for Linux oldld, aout, or coff. 11601linux*oldld* | linux*aout* | linux*coff*) 11602 dynamic_linker=no 11603 ;; 11604 11605# This must be glibc/ELF. 11606linux* | k*bsd*-gnu | kopensolaris*-gnu) 11607 version_type=linux # correct to gnu/linux during the next big refactor 11608 need_lib_prefix=no 11609 need_version=no 11610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11611 soname_spec='${libname}${release}${shared_ext}$major' 11612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11613 shlibpath_var=LD_LIBRARY_PATH 11614 shlibpath_overrides_runpath=no 11615 11616 # Some binutils ld are patched to set DT_RUNPATH 11617 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11618 $as_echo_n "(cached) " >&6 11619else 11620 lt_cv_shlibpath_overrides_runpath=no 11621 save_LDFLAGS=$LDFLAGS 11622 save_libdir=$libdir 11623 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11624 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11626/* end confdefs.h. */ 11627 11628int 11629main () 11630{ 11631 11632 ; 11633 return 0; 11634} 11635_ACEOF 11636if ac_fn_c_try_link "$LINENO"; then : 11637 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11638 lt_cv_shlibpath_overrides_runpath=yes 11639fi 11640fi 11641rm -f core conftest.err conftest.$ac_objext \ 11642 conftest$ac_exeext conftest.$ac_ext 11643 LDFLAGS=$save_LDFLAGS 11644 libdir=$save_libdir 11645 11646fi 11647 11648 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11649 11650 # This implies no fast_install, which is unacceptable. 11651 # Some rework will be needed to allow for fast_install 11652 # before this can be enabled. 11653 hardcode_into_libs=yes 11654 11655 # Append ld.so.conf contents to the search path 11656 if test -f /etc/ld.so.conf; then 11657 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' ' '` 11658 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11659 fi 11660 11661 # We used to test for /lib/ld.so.1 and disable shared libraries on 11662 # powerpc, because MkLinux only supported shared libraries with the 11663 # GNU dynamic linker. Since this was broken with cross compilers, 11664 # most powerpc-linux boxes support dynamic linking these days and 11665 # people can always --disable-shared, the test was removed, and we 11666 # assume the GNU/Linux dynamic linker is in use. 11667 dynamic_linker='GNU/Linux ld.so' 11668 ;; 11669 11670netbsd*) 11671 version_type=sunos 11672 need_lib_prefix=no 11673 need_version=no 11674 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11676 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11677 dynamic_linker='NetBSD (a.out) ld.so' 11678 else 11679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11680 soname_spec='${libname}${release}${shared_ext}$major' 11681 dynamic_linker='NetBSD ld.elf_so' 11682 fi 11683 shlibpath_var=LD_LIBRARY_PATH 11684 shlibpath_overrides_runpath=yes 11685 hardcode_into_libs=yes 11686 ;; 11687 11688newsos6) 11689 version_type=linux # correct to gnu/linux during the next big refactor 11690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11691 shlibpath_var=LD_LIBRARY_PATH 11692 shlibpath_overrides_runpath=yes 11693 ;; 11694 11695*nto* | *qnx*) 11696 version_type=qnx 11697 need_lib_prefix=no 11698 need_version=no 11699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11700 soname_spec='${libname}${release}${shared_ext}$major' 11701 shlibpath_var=LD_LIBRARY_PATH 11702 shlibpath_overrides_runpath=no 11703 hardcode_into_libs=yes 11704 dynamic_linker='ldqnx.so' 11705 ;; 11706 11707openbsd*) 11708 version_type=sunos 11709 sys_lib_dlsearch_path_spec="/usr/lib" 11710 need_lib_prefix=no 11711 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11712 case $host_os in 11713 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11714 *) need_version=no ;; 11715 esac 11716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11717 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11718 shlibpath_var=LD_LIBRARY_PATH 11719 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11720 case $host_os in 11721 openbsd2.[89] | openbsd2.[89].*) 11722 shlibpath_overrides_runpath=no 11723 ;; 11724 *) 11725 shlibpath_overrides_runpath=yes 11726 ;; 11727 esac 11728 else 11729 shlibpath_overrides_runpath=yes 11730 fi 11731 ;; 11732 11733os2*) 11734 libname_spec='$name' 11735 shrext_cmds=".dll" 11736 need_lib_prefix=no 11737 library_names_spec='$libname${shared_ext} $libname.a' 11738 dynamic_linker='OS/2 ld.exe' 11739 shlibpath_var=LIBPATH 11740 ;; 11741 11742osf3* | osf4* | osf5*) 11743 version_type=osf 11744 need_lib_prefix=no 11745 need_version=no 11746 soname_spec='${libname}${release}${shared_ext}$major' 11747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11748 shlibpath_var=LD_LIBRARY_PATH 11749 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11750 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11751 ;; 11752 11753rdos*) 11754 dynamic_linker=no 11755 ;; 11756 11757solaris*) 11758 version_type=linux # correct to gnu/linux during the next big refactor 11759 need_lib_prefix=no 11760 need_version=no 11761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11762 soname_spec='${libname}${release}${shared_ext}$major' 11763 shlibpath_var=LD_LIBRARY_PATH 11764 shlibpath_overrides_runpath=yes 11765 hardcode_into_libs=yes 11766 # ldd complains unless libraries are executable 11767 postinstall_cmds='chmod +x $lib' 11768 ;; 11769 11770sunos4*) 11771 version_type=sunos 11772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11773 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11774 shlibpath_var=LD_LIBRARY_PATH 11775 shlibpath_overrides_runpath=yes 11776 if test "$with_gnu_ld" = yes; then 11777 need_lib_prefix=no 11778 fi 11779 need_version=yes 11780 ;; 11781 11782sysv4 | sysv4.3*) 11783 version_type=linux # correct to gnu/linux during the next big refactor 11784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11785 soname_spec='${libname}${release}${shared_ext}$major' 11786 shlibpath_var=LD_LIBRARY_PATH 11787 case $host_vendor in 11788 sni) 11789 shlibpath_overrides_runpath=no 11790 need_lib_prefix=no 11791 runpath_var=LD_RUN_PATH 11792 ;; 11793 siemens) 11794 need_lib_prefix=no 11795 ;; 11796 motorola) 11797 need_lib_prefix=no 11798 need_version=no 11799 shlibpath_overrides_runpath=no 11800 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11801 ;; 11802 esac 11803 ;; 11804 11805sysv4*MP*) 11806 if test -d /usr/nec ;then 11807 version_type=linux # correct to gnu/linux during the next big refactor 11808 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11809 soname_spec='$libname${shared_ext}.$major' 11810 shlibpath_var=LD_LIBRARY_PATH 11811 fi 11812 ;; 11813 11814sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11815 version_type=freebsd-elf 11816 need_lib_prefix=no 11817 need_version=no 11818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11819 soname_spec='${libname}${release}${shared_ext}$major' 11820 shlibpath_var=LD_LIBRARY_PATH 11821 shlibpath_overrides_runpath=yes 11822 hardcode_into_libs=yes 11823 if test "$with_gnu_ld" = yes; then 11824 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11825 else 11826 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11827 case $host_os in 11828 sco3.2v5*) 11829 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11830 ;; 11831 esac 11832 fi 11833 sys_lib_dlsearch_path_spec='/usr/lib' 11834 ;; 11835 11836tpf*) 11837 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11838 version_type=linux # correct to gnu/linux during the next big refactor 11839 need_lib_prefix=no 11840 need_version=no 11841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11842 shlibpath_var=LD_LIBRARY_PATH 11843 shlibpath_overrides_runpath=no 11844 hardcode_into_libs=yes 11845 ;; 11846 11847uts4*) 11848 version_type=linux # correct to gnu/linux during the next big refactor 11849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11850 soname_spec='${libname}${release}${shared_ext}$major' 11851 shlibpath_var=LD_LIBRARY_PATH 11852 ;; 11853 11854*) 11855 dynamic_linker=no 11856 ;; 11857esac 11858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11859$as_echo "$dynamic_linker" >&6; } 11860test "$dynamic_linker" = no && can_build_shared=no 11861 11862variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11863if test "$GCC" = yes; then 11864 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11865fi 11866 11867if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11868 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11869fi 11870if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11871 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11872fi 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11966$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11967hardcode_action= 11968if test -n "$hardcode_libdir_flag_spec" || 11969 test -n "$runpath_var" || 11970 test "X$hardcode_automatic" = "Xyes" ; then 11971 11972 # We can hardcode non-existent directories. 11973 if test "$hardcode_direct" != no && 11974 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11975 # have to relink, otherwise we might link with an installed library 11976 # when we should be linking with a yet-to-be-installed one 11977 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11978 test "$hardcode_minus_L" != no; then 11979 # Linking always hardcodes the temporary library directory. 11980 hardcode_action=relink 11981 else 11982 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11983 hardcode_action=immediate 11984 fi 11985else 11986 # We cannot hardcode anything, or else we can only hardcode existing 11987 # directories. 11988 hardcode_action=unsupported 11989fi 11990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11991$as_echo "$hardcode_action" >&6; } 11992 11993if test "$hardcode_action" = relink || 11994 test "$inherit_rpath" = yes; then 11995 # Fast installation is not supported 11996 enable_fast_install=no 11997elif test "$shlibpath_overrides_runpath" = yes || 11998 test "$enable_shared" = no; then 11999 # Fast installation is not necessary 12000 enable_fast_install=needless 12001fi 12002 12003 12004 12005 12006 12007 12008 if test "x$enable_dlopen" != xyes; then 12009 enable_dlopen=unknown 12010 enable_dlopen_self=unknown 12011 enable_dlopen_self_static=unknown 12012else 12013 lt_cv_dlopen=no 12014 lt_cv_dlopen_libs= 12015 12016 case $host_os in 12017 beos*) 12018 lt_cv_dlopen="load_add_on" 12019 lt_cv_dlopen_libs= 12020 lt_cv_dlopen_self=yes 12021 ;; 12022 12023 mingw* | pw32* | cegcc*) 12024 lt_cv_dlopen="LoadLibrary" 12025 lt_cv_dlopen_libs= 12026 ;; 12027 12028 cygwin*) 12029 lt_cv_dlopen="dlopen" 12030 lt_cv_dlopen_libs= 12031 ;; 12032 12033 darwin*) 12034 # if libdl is installed we need to link against it 12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12036$as_echo_n "checking for dlopen in -ldl... " >&6; } 12037if ${ac_cv_lib_dl_dlopen+:} false; then : 12038 $as_echo_n "(cached) " >&6 12039else 12040 ac_check_lib_save_LIBS=$LIBS 12041LIBS="-ldl $LIBS" 12042cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12043/* end confdefs.h. */ 12044 12045/* Override any GCC internal prototype to avoid an error. 12046 Use char because int might match the return type of a GCC 12047 builtin and then its argument prototype would still apply. */ 12048#ifdef __cplusplus 12049extern "C" 12050#endif 12051char dlopen (); 12052int 12053main () 12054{ 12055return dlopen (); 12056 ; 12057 return 0; 12058} 12059_ACEOF 12060if ac_fn_c_try_link "$LINENO"; then : 12061 ac_cv_lib_dl_dlopen=yes 12062else 12063 ac_cv_lib_dl_dlopen=no 12064fi 12065rm -f core conftest.err conftest.$ac_objext \ 12066 conftest$ac_exeext conftest.$ac_ext 12067LIBS=$ac_check_lib_save_LIBS 12068fi 12069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12070$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12071if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12072 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12073else 12074 12075 lt_cv_dlopen="dyld" 12076 lt_cv_dlopen_libs= 12077 lt_cv_dlopen_self=yes 12078 12079fi 12080 12081 ;; 12082 12083 *) 12084 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12085if test "x$ac_cv_func_shl_load" = xyes; then : 12086 lt_cv_dlopen="shl_load" 12087else 12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12089$as_echo_n "checking for shl_load in -ldld... " >&6; } 12090if ${ac_cv_lib_dld_shl_load+:} false; then : 12091 $as_echo_n "(cached) " >&6 12092else 12093 ac_check_lib_save_LIBS=$LIBS 12094LIBS="-ldld $LIBS" 12095cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12096/* end confdefs.h. */ 12097 12098/* Override any GCC internal prototype to avoid an error. 12099 Use char because int might match the return type of a GCC 12100 builtin and then its argument prototype would still apply. */ 12101#ifdef __cplusplus 12102extern "C" 12103#endif 12104char shl_load (); 12105int 12106main () 12107{ 12108return shl_load (); 12109 ; 12110 return 0; 12111} 12112_ACEOF 12113if ac_fn_c_try_link "$LINENO"; then : 12114 ac_cv_lib_dld_shl_load=yes 12115else 12116 ac_cv_lib_dld_shl_load=no 12117fi 12118rm -f core conftest.err conftest.$ac_objext \ 12119 conftest$ac_exeext conftest.$ac_ext 12120LIBS=$ac_check_lib_save_LIBS 12121fi 12122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12123$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12124if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12125 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 12126else 12127 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12128if test "x$ac_cv_func_dlopen" = xyes; then : 12129 lt_cv_dlopen="dlopen" 12130else 12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12132$as_echo_n "checking for dlopen in -ldl... " >&6; } 12133if ${ac_cv_lib_dl_dlopen+:} false; then : 12134 $as_echo_n "(cached) " >&6 12135else 12136 ac_check_lib_save_LIBS=$LIBS 12137LIBS="-ldl $LIBS" 12138cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12139/* end confdefs.h. */ 12140 12141/* Override any GCC internal prototype to avoid an error. 12142 Use char because int might match the return type of a GCC 12143 builtin and then its argument prototype would still apply. */ 12144#ifdef __cplusplus 12145extern "C" 12146#endif 12147char dlopen (); 12148int 12149main () 12150{ 12151return dlopen (); 12152 ; 12153 return 0; 12154} 12155_ACEOF 12156if ac_fn_c_try_link "$LINENO"; then : 12157 ac_cv_lib_dl_dlopen=yes 12158else 12159 ac_cv_lib_dl_dlopen=no 12160fi 12161rm -f core conftest.err conftest.$ac_objext \ 12162 conftest$ac_exeext conftest.$ac_ext 12163LIBS=$ac_check_lib_save_LIBS 12164fi 12165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12166$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12167if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12168 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12169else 12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12171$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12172if ${ac_cv_lib_svld_dlopen+:} false; then : 12173 $as_echo_n "(cached) " >&6 12174else 12175 ac_check_lib_save_LIBS=$LIBS 12176LIBS="-lsvld $LIBS" 12177cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12178/* end confdefs.h. */ 12179 12180/* Override any GCC internal prototype to avoid an error. 12181 Use char because int might match the return type of a GCC 12182 builtin and then its argument prototype would still apply. */ 12183#ifdef __cplusplus 12184extern "C" 12185#endif 12186char dlopen (); 12187int 12188main () 12189{ 12190return dlopen (); 12191 ; 12192 return 0; 12193} 12194_ACEOF 12195if ac_fn_c_try_link "$LINENO"; then : 12196 ac_cv_lib_svld_dlopen=yes 12197else 12198 ac_cv_lib_svld_dlopen=no 12199fi 12200rm -f core conftest.err conftest.$ac_objext \ 12201 conftest$ac_exeext conftest.$ac_ext 12202LIBS=$ac_check_lib_save_LIBS 12203fi 12204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12205$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12206if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12207 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12208else 12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12210$as_echo_n "checking for dld_link in -ldld... " >&6; } 12211if ${ac_cv_lib_dld_dld_link+:} false; then : 12212 $as_echo_n "(cached) " >&6 12213else 12214 ac_check_lib_save_LIBS=$LIBS 12215LIBS="-ldld $LIBS" 12216cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12217/* end confdefs.h. */ 12218 12219/* Override any GCC internal prototype to avoid an error. 12220 Use char because int might match the return type of a GCC 12221 builtin and then its argument prototype would still apply. */ 12222#ifdef __cplusplus 12223extern "C" 12224#endif 12225char dld_link (); 12226int 12227main () 12228{ 12229return dld_link (); 12230 ; 12231 return 0; 12232} 12233_ACEOF 12234if ac_fn_c_try_link "$LINENO"; then : 12235 ac_cv_lib_dld_dld_link=yes 12236else 12237 ac_cv_lib_dld_dld_link=no 12238fi 12239rm -f core conftest.err conftest.$ac_objext \ 12240 conftest$ac_exeext conftest.$ac_ext 12241LIBS=$ac_check_lib_save_LIBS 12242fi 12243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12244$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12245if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12246 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12247fi 12248 12249 12250fi 12251 12252 12253fi 12254 12255 12256fi 12257 12258 12259fi 12260 12261 12262fi 12263 12264 ;; 12265 esac 12266 12267 if test "x$lt_cv_dlopen" != xno; then 12268 enable_dlopen=yes 12269 else 12270 enable_dlopen=no 12271 fi 12272 12273 case $lt_cv_dlopen in 12274 dlopen) 12275 save_CPPFLAGS="$CPPFLAGS" 12276 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12277 12278 save_LDFLAGS="$LDFLAGS" 12279 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12280 12281 save_LIBS="$LIBS" 12282 LIBS="$lt_cv_dlopen_libs $LIBS" 12283 12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12285$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12286if ${lt_cv_dlopen_self+:} false; then : 12287 $as_echo_n "(cached) " >&6 12288else 12289 if test "$cross_compiling" = yes; then : 12290 lt_cv_dlopen_self=cross 12291else 12292 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12293 lt_status=$lt_dlunknown 12294 cat > conftest.$ac_ext <<_LT_EOF 12295#line $LINENO "configure" 12296#include "confdefs.h" 12297 12298#if HAVE_DLFCN_H 12299#include <dlfcn.h> 12300#endif 12301 12302#include <stdio.h> 12303 12304#ifdef RTLD_GLOBAL 12305# define LT_DLGLOBAL RTLD_GLOBAL 12306#else 12307# ifdef DL_GLOBAL 12308# define LT_DLGLOBAL DL_GLOBAL 12309# else 12310# define LT_DLGLOBAL 0 12311# endif 12312#endif 12313 12314/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12315 find out it does not work in some platform. */ 12316#ifndef LT_DLLAZY_OR_NOW 12317# ifdef RTLD_LAZY 12318# define LT_DLLAZY_OR_NOW RTLD_LAZY 12319# else 12320# ifdef DL_LAZY 12321# define LT_DLLAZY_OR_NOW DL_LAZY 12322# else 12323# ifdef RTLD_NOW 12324# define LT_DLLAZY_OR_NOW RTLD_NOW 12325# else 12326# ifdef DL_NOW 12327# define LT_DLLAZY_OR_NOW DL_NOW 12328# else 12329# define LT_DLLAZY_OR_NOW 0 12330# endif 12331# endif 12332# endif 12333# endif 12334#endif 12335 12336/* When -fvisbility=hidden is used, assume the code has been annotated 12337 correspondingly for the symbols needed. */ 12338#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12339int fnord () __attribute__((visibility("default"))); 12340#endif 12341 12342int fnord () { return 42; } 12343int main () 12344{ 12345 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12346 int status = $lt_dlunknown; 12347 12348 if (self) 12349 { 12350 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12351 else 12352 { 12353 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12354 else puts (dlerror ()); 12355 } 12356 /* dlclose (self); */ 12357 } 12358 else 12359 puts (dlerror ()); 12360 12361 return status; 12362} 12363_LT_EOF 12364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12365 (eval $ac_link) 2>&5 12366 ac_status=$? 12367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12368 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12369 (./conftest; exit; ) >&5 2>/dev/null 12370 lt_status=$? 12371 case x$lt_status in 12372 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12373 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12374 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12375 esac 12376 else : 12377 # compilation failed 12378 lt_cv_dlopen_self=no 12379 fi 12380fi 12381rm -fr conftest* 12382 12383 12384fi 12385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12386$as_echo "$lt_cv_dlopen_self" >&6; } 12387 12388 if test "x$lt_cv_dlopen_self" = xyes; then 12389 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12391$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12392if ${lt_cv_dlopen_self_static+:} false; then : 12393 $as_echo_n "(cached) " >&6 12394else 12395 if test "$cross_compiling" = yes; then : 12396 lt_cv_dlopen_self_static=cross 12397else 12398 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12399 lt_status=$lt_dlunknown 12400 cat > conftest.$ac_ext <<_LT_EOF 12401#line $LINENO "configure" 12402#include "confdefs.h" 12403 12404#if HAVE_DLFCN_H 12405#include <dlfcn.h> 12406#endif 12407 12408#include <stdio.h> 12409 12410#ifdef RTLD_GLOBAL 12411# define LT_DLGLOBAL RTLD_GLOBAL 12412#else 12413# ifdef DL_GLOBAL 12414# define LT_DLGLOBAL DL_GLOBAL 12415# else 12416# define LT_DLGLOBAL 0 12417# endif 12418#endif 12419 12420/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12421 find out it does not work in some platform. */ 12422#ifndef LT_DLLAZY_OR_NOW 12423# ifdef RTLD_LAZY 12424# define LT_DLLAZY_OR_NOW RTLD_LAZY 12425# else 12426# ifdef DL_LAZY 12427# define LT_DLLAZY_OR_NOW DL_LAZY 12428# else 12429# ifdef RTLD_NOW 12430# define LT_DLLAZY_OR_NOW RTLD_NOW 12431# else 12432# ifdef DL_NOW 12433# define LT_DLLAZY_OR_NOW DL_NOW 12434# else 12435# define LT_DLLAZY_OR_NOW 0 12436# endif 12437# endif 12438# endif 12439# endif 12440#endif 12441 12442/* When -fvisbility=hidden is used, assume the code has been annotated 12443 correspondingly for the symbols needed. */ 12444#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12445int fnord () __attribute__((visibility("default"))); 12446#endif 12447 12448int fnord () { return 42; } 12449int main () 12450{ 12451 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12452 int status = $lt_dlunknown; 12453 12454 if (self) 12455 { 12456 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12457 else 12458 { 12459 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12460 else puts (dlerror ()); 12461 } 12462 /* dlclose (self); */ 12463 } 12464 else 12465 puts (dlerror ()); 12466 12467 return status; 12468} 12469_LT_EOF 12470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12471 (eval $ac_link) 2>&5 12472 ac_status=$? 12473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12474 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12475 (./conftest; exit; ) >&5 2>/dev/null 12476 lt_status=$? 12477 case x$lt_status in 12478 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12479 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12480 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12481 esac 12482 else : 12483 # compilation failed 12484 lt_cv_dlopen_self_static=no 12485 fi 12486fi 12487rm -fr conftest* 12488 12489 12490fi 12491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12492$as_echo "$lt_cv_dlopen_self_static" >&6; } 12493 fi 12494 12495 CPPFLAGS="$save_CPPFLAGS" 12496 LDFLAGS="$save_LDFLAGS" 12497 LIBS="$save_LIBS" 12498 ;; 12499 esac 12500 12501 case $lt_cv_dlopen_self in 12502 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12503 *) enable_dlopen_self=unknown ;; 12504 esac 12505 12506 case $lt_cv_dlopen_self_static in 12507 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12508 *) enable_dlopen_self_static=unknown ;; 12509 esac 12510fi 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528striplib= 12529old_striplib= 12530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12531$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12532if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12533 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12534 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12536$as_echo "yes" >&6; } 12537else 12538# FIXME - insert some real tests, host_os isn't really good enough 12539 case $host_os in 12540 darwin*) 12541 if test -n "$STRIP" ; then 12542 striplib="$STRIP -x" 12543 old_striplib="$STRIP -S" 12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12545$as_echo "yes" >&6; } 12546 else 12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12548$as_echo "no" >&6; } 12549 fi 12550 ;; 12551 *) 12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12553$as_echo "no" >&6; } 12554 ;; 12555 esac 12556fi 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 # Report which library types will actually be built 12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12571$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12573$as_echo "$can_build_shared" >&6; } 12574 12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12576$as_echo_n "checking whether to build shared libraries... " >&6; } 12577 test "$can_build_shared" = "no" && enable_shared=no 12578 12579 # On AIX, shared libraries and static libraries use the same namespace, and 12580 # are all built from PIC. 12581 case $host_os in 12582 aix3*) 12583 test "$enable_shared" = yes && enable_static=no 12584 if test -n "$RANLIB"; then 12585 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12586 postinstall_cmds='$RANLIB $lib' 12587 fi 12588 ;; 12589 12590 aix[4-9]*) 12591 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12592 test "$enable_shared" = yes && enable_static=no 12593 fi 12594 ;; 12595 esac 12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12597$as_echo "$enable_shared" >&6; } 12598 12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12600$as_echo_n "checking whether to build static libraries... " >&6; } 12601 # Make sure either enable_shared or enable_static is yes. 12602 test "$enable_shared" = yes || enable_static=yes 12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12604$as_echo "$enable_static" >&6; } 12605 12606 12607 12608 12609fi 12610ac_ext=c 12611ac_cpp='$CPP $CPPFLAGS' 12612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12614ac_compiler_gnu=$ac_cv_c_compiler_gnu 12615 12616CC="$lt_save_CC" 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 ac_config_commands="$ac_config_commands libtool" 12633 12634 12635 12636 12637# Only expand once: 12638 12639 12640for ac_prog in 'bison -y' byacc 12641do 12642 # Extract the first word of "$ac_prog", so it can be a program name with args. 12643set dummy $ac_prog; ac_word=$2 12644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12645$as_echo_n "checking for $ac_word... " >&6; } 12646if ${ac_cv_prog_YACC+:} false; then : 12647 $as_echo_n "(cached) " >&6 12648else 12649 if test -n "$YACC"; then 12650 ac_cv_prog_YACC="$YACC" # Let the user override the test. 12651else 12652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12653for as_dir in $PATH 12654do 12655 IFS=$as_save_IFS 12656 test -z "$as_dir" && as_dir=. 12657 for ac_exec_ext in '' $ac_executable_extensions; do 12658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12659 ac_cv_prog_YACC="$ac_prog" 12660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12661 break 2 12662 fi 12663done 12664 done 12665IFS=$as_save_IFS 12666 12667fi 12668fi 12669YACC=$ac_cv_prog_YACC 12670if test -n "$YACC"; then 12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 12672$as_echo "$YACC" >&6; } 12673else 12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12675$as_echo "no" >&6; } 12676fi 12677 12678 12679 test -n "$YACC" && break 12680done 12681test -n "$YACC" || YACC="yacc" 12682 12683 12684# Check whether --enable-warnings was given. 12685if test "${enable_warnings+set}" = set; then : 12686 enableval=$enable_warnings; case $enableval in 12687 yes) enable_warnings=yes;; 12688 no) enable_warnings=no;; 12689 *) enable_warnings=yes;; esac 12690else 12691 enable_warnings=yes 12692fi 12693 12694 12695if test "$enable_warnings" = yes; then 12696 AM_CFLAGS="$AM_CFLAGS -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare" 12697 12698 save_cflags="$CFLAGS" 12699 CFLAGS=-Wno-pointer-sign 12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -Wno-pointer-sign" >&5 12701$as_echo_n "checking whether CC supports -Wno-pointer-sign... " >&6; } 12702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12703/* end confdefs.h. */ 12704 12705int 12706main () 12707{ 12708 12709 ; 12710 return 0; 12711} 12712_ACEOF 12713if ac_fn_c_try_compile "$LINENO"; then : 12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12715$as_echo "yes" >&6; } 12716 WARN_CFLAGS=-Wno-pointer-sign 12717else 12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12719$as_echo "no" >&6; } 12720 12721fi 12722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12723 AM_CFLAGS="$AM_CFLAGS $WARN_CFLAGS" 12724 CFLAGS="$save_cflags" 12725fi 12726 12727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiling with clang" >&5 12728$as_echo_n "checking if compiling with clang... " >&6; } 12729cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12730/* end confdefs.h. */ 12731 12732int 12733main () 12734{ 12735 12736#ifndef __clang__ 12737 not clang 12738#endif 12739 12740 ; 12741 return 0; 12742} 12743_ACEOF 12744if ac_fn_c_try_compile "$LINENO"; then : 12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12746$as_echo "yes" >&6; } 12747 CLANG_FLAGS=-Qunused-arguments 12748else 12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12750$as_echo "no" >&6; } 12751 12752fi 12753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12754AM_CFLAGS="$AM_CFLAGS $CLANG_FLAGS" 12755AM_LDFLAGS="$LDFLAGS $CLANG_FLAGS" 12756 12757 12758 12759# check functions that are expected to be in libc 12760for ac_func in arc4random asprintf explicit_bzero 12761do : 12762 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12763ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12764if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12765 cat >>confdefs.h <<_ACEOF 12766#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12767_ACEOF 12768 12769fi 12770done 12771 12772for ac_func in getentropy reallocarray recallocarray freezero 12773do : 12774 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12775ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12776if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12777 cat >>confdefs.h <<_ACEOF 12778#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12779_ACEOF 12780 12781fi 12782done 12783 12784for ac_func in setproctitle setgroups 12785do : 12786 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12787ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12788if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12789 cat >>confdefs.h <<_ACEOF 12790#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12791_ACEOF 12792 12793fi 12794done 12795 12796for ac_func in setregid setresgid setreuid setresuid 12797do : 12798 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12799ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12800if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12801 cat >>confdefs.h <<_ACEOF 12802#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12803_ACEOF 12804 12805fi 12806done 12807 12808for ac_func in strlcat strlcpy strtonum sysconf 12809do : 12810 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12811ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12812if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12813 cat >>confdefs.h <<_ACEOF 12814#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12815_ACEOF 12816 12817fi 12818done 12819 12820for ac_func in pledge unveil 12821do : 12822 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12823ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12824if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12825 cat >>confdefs.h <<_ACEOF 12826#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12827_ACEOF 12828 12829fi 12830done 12831 12832for ac_func in SipHash 12833do : 12834 ac_fn_c_check_func "$LINENO" "SipHash" "ac_cv_func_SipHash" 12835if test "x$ac_cv_func_SipHash" = xyes; then : 12836 cat >>confdefs.h <<_ACEOF 12837#define HAVE_SIPHASH 1 12838_ACEOF 12839 12840fi 12841done 12842 12843for ac_func in getdtablecount getrtable 12844do : 12845 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12846ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12847if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12848 cat >>confdefs.h <<_ACEOF 12849#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12850_ACEOF 12851 12852fi 12853done 12854 12855for ac_func in strnvis 12856do : 12857 ac_fn_c_check_func "$LINENO" "strnvis" "ac_cv_func_strnvis" 12858if test "x$ac_cv_func_strnvis" = xyes; then : 12859 cat >>confdefs.h <<_ACEOF 12860#define HAVE_STRNVIS 1 12861_ACEOF 12862 12863fi 12864done 12865 12866 12867if test "x$ac_cv_func_strnvis" = "xyes"; then 12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnvis" >&5 12869$as_echo_n "checking for working strnvis... " >&6; } 12870 if test "$cross_compiling" = yes; then : 12871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming broken" >&5 12872$as_echo "$as_me: WARNING: cross compiling: assuming broken" >&2;} 12873 ac_cv_broken_strnvis="yes" 12874 12875else 12876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12877/* end confdefs.h. */ 12878 12879#include <signal.h> 12880#include <stdlib.h> 12881#include <string.h> 12882#include <vis.h> 12883static void sighandler(int sig) { _exit(1); } 12884 12885int 12886main () 12887{ 12888 12889 char dst[16]; 12890 12891 signal(SIGSEGV, sighandler); 12892 if (strnvis(dst, "src", 4, 0) && strcmp(dst, "src") == 0) 12893 exit(0); 12894 exit(1) 12895 12896 ; 12897 return 0; 12898} 12899_ACEOF 12900if ac_fn_c_try_run "$LINENO"; then : 12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12902$as_echo "yes" >&6; } 12903else 12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12905$as_echo "no" >&6; } 12906 ac_cv_broken_strnvis="yes" 12907fi 12908rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12909 conftest.$ac_objext conftest.beam conftest.$ac_ext 12910fi 12911 12912fi 12913 12914 12915for ac_header in endian.h 12916do : 12917 ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default" 12918if test "x$ac_cv_header_endian_h" = xyes; then : 12919 cat >>confdefs.h <<_ACEOF 12920#define HAVE_ENDIAN_H 1 12921_ACEOF 12922 12923fi 12924 12925done 12926 12927for ac_header in netinet/ip_ipsp.h 12928do : 12929 ac_fn_c_check_header_compile "$LINENO" "netinet/ip_ipsp.h" "ac_cv_header_netinet_ip_ipsp_h" "#include <sys/socket.h> 12930" 12931if test "x$ac_cv_header_netinet_ip_ipsp_h" = xyes; then : 12932 cat >>confdefs.h <<_ACEOF 12933#define HAVE_NETINET_IP_IPSP_H 1 12934_ACEOF 12935 12936fi 12937 12938done 12939 12940for ac_header in linux/in6.h 12941do : 12942 ac_fn_c_check_header_mongrel "$LINENO" "linux/in6.h" "ac_cv_header_linux_in6_h" "$ac_includes_default" 12943if test "x$ac_cv_header_linux_in6_h" = xyes; then : 12944 cat >>confdefs.h <<_ACEOF 12945#define HAVE_LINUX_IN6_H 1 12946_ACEOF 12947 12948fi 12949 12950done 12951 12952 12953# check auxiliary libraries that might contain other functions 12954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing arc4random" >&5 12955$as_echo_n "checking for library containing arc4random... " >&6; } 12956if ${ac_cv_search_arc4random+:} false; then : 12957 $as_echo_n "(cached) " >&6 12958else 12959 ac_func_search_save_LIBS=$LIBS 12960cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12961/* end confdefs.h. */ 12962 12963/* Override any GCC internal prototype to avoid an error. 12964 Use char because int might match the return type of a GCC 12965 builtin and then its argument prototype would still apply. */ 12966#ifdef __cplusplus 12967extern "C" 12968#endif 12969char arc4random (); 12970int 12971main () 12972{ 12973return arc4random (); 12974 ; 12975 return 0; 12976} 12977_ACEOF 12978for ac_lib in '' crypto; do 12979 if test -z "$ac_lib"; then 12980 ac_res="none required" 12981 else 12982 ac_res=-l$ac_lib 12983 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12984 fi 12985 if ac_fn_c_try_link "$LINENO"; then : 12986 ac_cv_search_arc4random=$ac_res 12987fi 12988rm -f core conftest.err conftest.$ac_objext \ 12989 conftest$ac_exeext 12990 if ${ac_cv_search_arc4random+:} false; then : 12991 break 12992fi 12993done 12994if ${ac_cv_search_arc4random+:} false; then : 12995 12996else 12997 ac_cv_search_arc4random=no 12998fi 12999rm conftest.$ac_ext 13000LIBS=$ac_func_search_save_LIBS 13001fi 13002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_arc4random" >&5 13003$as_echo "$ac_cv_search_arc4random" >&6; } 13004ac_res=$ac_cv_search_arc4random 13005if test "$ac_res" != no; then : 13006 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13007 13008fi 13009 13010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 13011$as_echo_n "checking for library containing clock_gettime... " >&6; } 13012if ${ac_cv_search_clock_gettime+:} false; then : 13013 $as_echo_n "(cached) " >&6 13014else 13015 ac_func_search_save_LIBS=$LIBS 13016cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13017/* end confdefs.h. */ 13018 13019/* Override any GCC internal prototype to avoid an error. 13020 Use char because int might match the return type of a GCC 13021 builtin and then its argument prototype would still apply. */ 13022#ifdef __cplusplus 13023extern "C" 13024#endif 13025char clock_gettime (); 13026int 13027main () 13028{ 13029return clock_gettime (); 13030 ; 13031 return 0; 13032} 13033_ACEOF 13034for ac_lib in '' rt posix4; do 13035 if test -z "$ac_lib"; then 13036 ac_res="none required" 13037 else 13038 ac_res=-l$ac_lib 13039 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13040 fi 13041 if ac_fn_c_try_link "$LINENO"; then : 13042 ac_cv_search_clock_gettime=$ac_res 13043fi 13044rm -f core conftest.err conftest.$ac_objext \ 13045 conftest$ac_exeext 13046 if ${ac_cv_search_clock_gettime+:} false; then : 13047 break 13048fi 13049done 13050if ${ac_cv_search_clock_gettime+:} false; then : 13051 13052else 13053 ac_cv_search_clock_gettime=no 13054fi 13055rm conftest.$ac_ext 13056LIBS=$ac_func_search_save_LIBS 13057fi 13058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 13059$as_echo "$ac_cv_search_clock_gettime" >&6; } 13060ac_res=$ac_cv_search_clock_gettime 13061if test "$ac_res" != no; then : 13062 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13063 13064fi 13065 13066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ibuf_open" >&5 13067$as_echo_n "checking for library containing ibuf_open... " >&6; } 13068if ${ac_cv_search_ibuf_open+:} false; then : 13069 $as_echo_n "(cached) " >&6 13070else 13071 ac_func_search_save_LIBS=$LIBS 13072cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13073/* end confdefs.h. */ 13074 13075/* Override any GCC internal prototype to avoid an error. 13076 Use char because int might match the return type of a GCC 13077 builtin and then its argument prototype would still apply. */ 13078#ifdef __cplusplus 13079extern "C" 13080#endif 13081char ibuf_open (); 13082int 13083main () 13084{ 13085return ibuf_open (); 13086 ; 13087 return 0; 13088} 13089_ACEOF 13090for ac_lib in '' util; do 13091 if test -z "$ac_lib"; then 13092 ac_res="none required" 13093 else 13094 ac_res=-l$ac_lib 13095 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13096 fi 13097 if ac_fn_c_try_link "$LINENO"; then : 13098 ac_cv_search_ibuf_open=$ac_res 13099fi 13100rm -f core conftest.err conftest.$ac_objext \ 13101 conftest$ac_exeext 13102 if ${ac_cv_search_ibuf_open+:} false; then : 13103 break 13104fi 13105done 13106if ${ac_cv_search_ibuf_open+:} false; then : 13107 13108else 13109 ac_cv_search_ibuf_open=no 13110fi 13111rm conftest.$ac_ext 13112LIBS=$ac_func_search_save_LIBS 13113fi 13114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ibuf_open" >&5 13115$as_echo "$ac_cv_search_ibuf_open" >&6; } 13116ac_res=$ac_cv_search_ibuf_open 13117if test "$ac_res" != no; then : 13118 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13119 13120fi 13121 13122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SHA512Init" >&5 13123$as_echo_n "checking for library containing SHA512Init... " >&6; } 13124if ${ac_cv_search_SHA512Init+:} false; then : 13125 $as_echo_n "(cached) " >&6 13126else 13127 ac_func_search_save_LIBS=$LIBS 13128cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13129/* end confdefs.h. */ 13130 13131/* Override any GCC internal prototype to avoid an error. 13132 Use char because int might match the return type of a GCC 13133 builtin and then its argument prototype would still apply. */ 13134#ifdef __cplusplus 13135extern "C" 13136#endif 13137char SHA512Init (); 13138int 13139main () 13140{ 13141return SHA512Init (); 13142 ; 13143 return 0; 13144} 13145_ACEOF 13146for ac_lib in '' md; do 13147 if test -z "$ac_lib"; then 13148 ac_res="none required" 13149 else 13150 ac_res=-l$ac_lib 13151 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13152 fi 13153 if ac_fn_c_try_link "$LINENO"; then : 13154 ac_cv_search_SHA512Init=$ac_res 13155fi 13156rm -f core conftest.err conftest.$ac_objext \ 13157 conftest$ac_exeext 13158 if ${ac_cv_search_SHA512Init+:} false; then : 13159 break 13160fi 13161done 13162if ${ac_cv_search_SHA512Init+:} false; then : 13163 13164else 13165 ac_cv_search_SHA512Init=no 13166fi 13167rm conftest.$ac_ext 13168LIBS=$ac_func_search_save_LIBS 13169fi 13170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SHA512Init" >&5 13171$as_echo "$ac_cv_search_SHA512Init" >&6; } 13172ac_res=$ac_cv_search_SHA512Init 13173if test "$ac_res" != no; then : 13174 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13175 13176fi 13177 13178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_net_pton" >&5 13179$as_echo_n "checking for library containing inet_net_pton... " >&6; } 13180if ${ac_cv_search_inet_net_pton+:} false; then : 13181 $as_echo_n "(cached) " >&6 13182else 13183 ac_func_search_save_LIBS=$LIBS 13184cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13185/* end confdefs.h. */ 13186 13187/* Override any GCC internal prototype to avoid an error. 13188 Use char because int might match the return type of a GCC 13189 builtin and then its argument prototype would still apply. */ 13190#ifdef __cplusplus 13191extern "C" 13192#endif 13193char inet_net_pton (); 13194int 13195main () 13196{ 13197return inet_net_pton (); 13198 ; 13199 return 0; 13200} 13201_ACEOF 13202for ac_lib in '' resolv; do 13203 if test -z "$ac_lib"; then 13204 ac_res="none required" 13205 else 13206 ac_res=-l$ac_lib 13207 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13208 fi 13209 if ac_fn_c_try_link "$LINENO"; then : 13210 ac_cv_search_inet_net_pton=$ac_res 13211fi 13212rm -f core conftest.err conftest.$ac_objext \ 13213 conftest$ac_exeext 13214 if ${ac_cv_search_inet_net_pton+:} false; then : 13215 break 13216fi 13217done 13218if ${ac_cv_search_inet_net_pton+:} false; then : 13219 13220else 13221 ac_cv_search_inet_net_pton=no 13222fi 13223rm conftest.$ac_ext 13224LIBS=$ac_func_search_save_LIBS 13225fi 13226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_net_pton" >&5 13227$as_echo "$ac_cv_search_inet_net_pton" >&6; } 13228ac_res=$ac_cv_search_inet_net_pton 13229if test "$ac_res" != no; then : 13230 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13231 13232fi 13233 13234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmt_scaled" >&5 13235$as_echo_n "checking for library containing fmt_scaled... " >&6; } 13236if ${ac_cv_search_fmt_scaled+:} false; then : 13237 $as_echo_n "(cached) " >&6 13238else 13239 ac_func_search_save_LIBS=$LIBS 13240cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13241/* end confdefs.h. */ 13242 13243/* Override any GCC internal prototype to avoid an error. 13244 Use char because int might match the return type of a GCC 13245 builtin and then its argument prototype would still apply. */ 13246#ifdef __cplusplus 13247extern "C" 13248#endif 13249char fmt_scaled (); 13250int 13251main () 13252{ 13253return fmt_scaled (); 13254 ; 13255 return 0; 13256} 13257_ACEOF 13258for ac_lib in '' util; do 13259 if test -z "$ac_lib"; then 13260 ac_res="none required" 13261 else 13262 ac_res=-l$ac_lib 13263 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13264 fi 13265 if ac_fn_c_try_link "$LINENO"; then : 13266 ac_cv_search_fmt_scaled=$ac_res 13267fi 13268rm -f core conftest.err conftest.$ac_objext \ 13269 conftest$ac_exeext 13270 if ${ac_cv_search_fmt_scaled+:} false; then : 13271 break 13272fi 13273done 13274if ${ac_cv_search_fmt_scaled+:} false; then : 13275 13276else 13277 ac_cv_search_fmt_scaled=no 13278fi 13279rm conftest.$ac_ext 13280LIBS=$ac_func_search_save_LIBS 13281fi 13282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmt_scaled" >&5 13283$as_echo "$ac_cv_search_fmt_scaled" >&6; } 13284ac_res=$ac_cv_search_fmt_scaled 13285if test "$ac_res" != no; then : 13286 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13287 13288fi 13289 13290 13291for ac_func in arc4random clock_gettime ibuf_open SHA512Init 13292do : 13293 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13294ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13295if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13296 cat >>confdefs.h <<_ACEOF 13297#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13298_ACEOF 13299 13300fi 13301done 13302 13303for ac_func in inet_net_pton fmt_scaled 13304do : 13305 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13306ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13307if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13308 cat >>confdefs.h <<_ACEOF 13309#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13310_ACEOF 13311 13312fi 13313done 13314 13315 13316# Share test results with automake 13317 if test "x$ac_cv_func_arc4random" = xyes; then 13318 HAVE_ARC4RANDOM_TRUE= 13319 HAVE_ARC4RANDOM_FALSE='#' 13320else 13321 HAVE_ARC4RANDOM_TRUE='#' 13322 HAVE_ARC4RANDOM_FALSE= 13323fi 13324 13325 if test "x$ac_cv_func_asprintf" = xyes; then 13326 HAVE_ASPRINTF_TRUE= 13327 HAVE_ASPRINTF_FALSE='#' 13328else 13329 HAVE_ASPRINTF_TRUE='#' 13330 HAVE_ASPRINTF_FALSE= 13331fi 13332 13333 if test "x$ac_cv_func_closefrom" = xyes; then 13334 HAVE_CLOSEFROM_TRUE= 13335 HAVE_CLOSEFROM_FALSE='#' 13336else 13337 HAVE_CLOSEFROM_TRUE='#' 13338 HAVE_CLOSEFROM_FALSE= 13339fi 13340 13341 if test "x$ac_cv_func_clock_getres" = xyes; then 13342 HAVE_CLOCK_GETRES_TRUE= 13343 HAVE_CLOCK_GETRES_FALSE='#' 13344else 13345 HAVE_CLOCK_GETRES_TRUE='#' 13346 HAVE_CLOCK_GETRES_FALSE= 13347fi 13348 13349 if test "x$ac_cv_func_clock_gettime" = xyes; then 13350 HAVE_CLOCK_GETTIME_TRUE= 13351 HAVE_CLOCK_GETTIME_FALSE='#' 13352else 13353 HAVE_CLOCK_GETTIME_TRUE='#' 13354 HAVE_CLOCK_GETTIME_FALSE= 13355fi 13356 13357 if test "x$ac_cv_func_explicit_bzero" = xyes; then 13358 HAVE_EXPLICIT_BZERO_TRUE= 13359 HAVE_EXPLICIT_BZERO_FALSE='#' 13360else 13361 HAVE_EXPLICIT_BZERO_TRUE='#' 13362 HAVE_EXPLICIT_BZERO_FALSE= 13363fi 13364 13365 if test "x$ac_cv_func_freezero" = xyes; then 13366 HAVE_FREEZERO_TRUE= 13367 HAVE_FREEZERO_FALSE='#' 13368else 13369 HAVE_FREEZERO_TRUE='#' 13370 HAVE_FREEZERO_FALSE= 13371fi 13372 13373 if test "x$ac_cv_func_getentropy" = xyes; then 13374 HAVE_GETENTROPY_TRUE= 13375 HAVE_GETENTROPY_FALSE='#' 13376else 13377 HAVE_GETENTROPY_TRUE='#' 13378 HAVE_GETENTROPY_FALSE= 13379fi 13380 13381 if test "x$ac_cv_func_ibuf_open" = xyes; then 13382 HAVE_IMSG_TRUE= 13383 HAVE_IMSG_FALSE='#' 13384else 13385 HAVE_IMSG_TRUE='#' 13386 HAVE_IMSG_FALSE= 13387fi 13388 13389 if test "x$ac_cv_func_MD5Init" = xyes; then 13390 HAVE_MD5_TRUE= 13391 HAVE_MD5_FALSE='#' 13392else 13393 HAVE_MD5_TRUE='#' 13394 HAVE_MD5_FALSE= 13395fi 13396 13397 if test "x$ac_cv_func_memmem" = xyes; then 13398 HAVE_MEMMEM_TRUE= 13399 HAVE_MEMMEM_FALSE='#' 13400else 13401 HAVE_MEMMEM_TRUE='#' 13402 HAVE_MEMMEM_FALSE= 13403fi 13404 13405 if test "x$ac_cv_func_poll" = xyes; then 13406 HAVE_POLL_TRUE= 13407 HAVE_POLL_FALSE='#' 13408else 13409 HAVE_POLL_TRUE='#' 13410 HAVE_POLL_FALSE= 13411fi 13412 13413 if test "x$ac_cv_func_reallocarray" = xyes; then 13414 HAVE_REALLOCARRAY_TRUE= 13415 HAVE_REALLOCARRAY_FALSE='#' 13416else 13417 HAVE_REALLOCARRAY_TRUE='#' 13418 HAVE_REALLOCARRAY_FALSE= 13419fi 13420 13421 if test "x$ac_cv_func_recallocarray" = xyes; then 13422 HAVE_RECALLOCARRAY_TRUE= 13423 HAVE_RECALLOCARRAY_FALSE='#' 13424else 13425 HAVE_RECALLOCARRAY_TRUE='#' 13426 HAVE_RECALLOCARRAY_FALSE= 13427fi 13428 13429 if test "x$ac_cv_func_setgroups" = xyes; then 13430 HAVE_SETGROUPS_TRUE= 13431 HAVE_SETGROUPS_FALSE='#' 13432else 13433 HAVE_SETGROUPS_TRUE='#' 13434 HAVE_SETGROUPS_FALSE= 13435fi 13436 13437 if test "x$ac_cv_func_setresgid" = xyes; then 13438 HAVE_SETRESGID_TRUE= 13439 HAVE_SETRESGID_FALSE='#' 13440else 13441 HAVE_SETRESGID_TRUE='#' 13442 HAVE_SETRESGID_FALSE= 13443fi 13444 13445 if test "x$ac_cv_func_setresuid" = xyes; then 13446 HAVE_SETRESUID_TRUE= 13447 HAVE_SETRESUID_FALSE='#' 13448else 13449 HAVE_SETRESUID_TRUE='#' 13450 HAVE_SETRESUID_FALSE= 13451fi 13452 13453 if test "x$ac_cv_func_setproctitle" = xyes; then 13454 HAVE_SETPROCTITLE_TRUE= 13455 HAVE_SETPROCTITLE_FALSE='#' 13456else 13457 HAVE_SETPROCTITLE_TRUE='#' 13458 HAVE_SETPROCTITLE_FALSE= 13459fi 13460 13461 if test "x$ac_cv_func_SHA512Init" = xyes; then 13462 HAVE_SHA512_TRUE= 13463 HAVE_SHA512_FALSE='#' 13464else 13465 HAVE_SHA512_TRUE='#' 13466 HAVE_SHA512_FALSE= 13467fi 13468 13469 if test "x$ac_cv_func_strlcat" = xyes; then 13470 HAVE_STRLCAT_TRUE= 13471 HAVE_STRLCAT_FALSE='#' 13472else 13473 HAVE_STRLCAT_TRUE='#' 13474 HAVE_STRLCAT_FALSE= 13475fi 13476 13477 if test "x$ac_cv_func_strlcpy" = xyes; then 13478 HAVE_STRLCPY_TRUE= 13479 HAVE_STRLCPY_FALSE='#' 13480else 13481 HAVE_STRLCPY_TRUE='#' 13482 HAVE_STRLCPY_FALSE= 13483fi 13484 13485 if test "x$ac_cv_func_strtonum" = xyes; then 13486 HAVE_STRTONUM_TRUE= 13487 HAVE_STRTONUM_FALSE='#' 13488else 13489 HAVE_STRTONUM_TRUE='#' 13490 HAVE_STRTONUM_FALSE= 13491fi 13492 13493 if test "x$ac_cv_func_sysconf" = xyes; then 13494 HAVE_SYSCONF_TRUE= 13495 HAVE_SYSCONF_FALSE='#' 13496else 13497 HAVE_SYSCONF_TRUE='#' 13498 HAVE_SYSCONF_FALSE= 13499fi 13500 13501 if test "x$ac_cv_func_pledge" = xyes; then 13502 HAVE_PLEDGE_TRUE= 13503 HAVE_PLEDGE_FALSE='#' 13504else 13505 HAVE_PLEDGE_TRUE='#' 13506 HAVE_PLEDGE_FALSE= 13507fi 13508 13509 if test "x$ac_cv_func_unveil" = xyes; then 13510 HAVE_UNVEIL_TRUE= 13511 HAVE_UNVEIL_FALSE='#' 13512else 13513 HAVE_UNVEIL_TRUE='#' 13514 HAVE_UNVEIL_FALSE= 13515fi 13516 13517 if test "x$ac_cv_func_SipHash" = xyes; then 13518 HAVE_SIPHASH_TRUE= 13519 HAVE_SIPHASH_FALSE='#' 13520else 13521 HAVE_SIPHASH_TRUE='#' 13522 HAVE_SIPHASH_FALSE= 13523fi 13524 13525 if test "x$ac_cv_func_getdtablecount" = xyes; then 13526 HAVE_GETDTABLECOUNT_TRUE= 13527 HAVE_GETDTABLECOUNT_FALSE='#' 13528else 13529 HAVE_GETDTABLECOUNT_TRUE='#' 13530 HAVE_GETDTABLECOUNT_FALSE= 13531fi 13532 13533 if test "x$ac_cv_func_getrtable" = xyes; then 13534 HAVE_GETRTABLE_TRUE= 13535 HAVE_GETRTABLE_FALSE='#' 13536else 13537 HAVE_GETRTABLE_TRUE='#' 13538 HAVE_GETRTABLE_FALSE= 13539fi 13540 13541 if test "x$ac_cv_func_strnvis" = xyes; then 13542 HAVE_STRNVIS_TRUE= 13543 HAVE_STRNVIS_FALSE='#' 13544else 13545 HAVE_STRNVIS_TRUE='#' 13546 HAVE_STRNVIS_FALSE= 13547fi 13548 13549 if test "x$ac_cv_broken_strnvis" = xyes; then 13550 BROKEN_STRNVIS_TRUE= 13551 BROKEN_STRNVIS_FALSE='#' 13552else 13553 BROKEN_STRNVIS_TRUE='#' 13554 BROKEN_STRNVIS_FALSE= 13555fi 13556 13557 if test "x$ac_cv_func_inet_net_pton" = xyes; then 13558 HAVE_INET_NET_PTON_TRUE= 13559 HAVE_INET_NET_PTON_FALSE='#' 13560else 13561 HAVE_INET_NET_PTON_TRUE='#' 13562 HAVE_INET_NET_PTON_FALSE= 13563fi 13564 13565 if test "x$ac_cv_func_fmt_scaled" = xyes; then 13566 HAVE_FMT_SCALED_TRUE= 13567 HAVE_FMT_SCALED_FALSE='#' 13568else 13569 HAVE_FMT_SCALED_TRUE='#' 13570 HAVE_FMT_SCALED_FALSE= 13571fi 13572 13573 13574# overrides for arc4random implementations with known issues 13575 if test "x$HOST_OS" != xdarwin \ 13576 -a "x$HOST_OS" != xfreebsd \ 13577 -a "x$HOST_OS" != xnetbsd \ 13578 -a "x$ac_cv_func_arc4random" = xyes; then 13579 HAVE_ARC4RANDOM_TRUE= 13580 HAVE_ARC4RANDOM_FALSE='#' 13581else 13582 HAVE_ARC4RANDOM_TRUE='#' 13583 HAVE_ARC4RANDOM_FALSE= 13584fi 13585 13586 13587for ac_header in err.h sha2.h 13588do : 13589 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13590ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13591if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13592 cat >>confdefs.h <<_ACEOF 13593#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13594_ACEOF 13595 13596fi 13597 13598done 13599 13600 13601ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " #include <netdb.h> 13602 #include <netinet/in.h> 13603 #include <sys/socket.h> 13604 13605" 13606if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 13607 13608cat >>confdefs.h <<_ACEOF 13609#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1 13610_ACEOF 13611 13612 13613fi 13614 13615 13616ac_fn_c_check_member "$LINENO" "struct tcp_md5sig" "tcpm_key" "ac_cv_member_struct_tcp_md5sig_tcpm_key" " #include <sys/socket.h> 13617 #include <netinet/in.h> 13618 #include <netinet/tcp.h> 13619 13620" 13621if test "x$ac_cv_member_struct_tcp_md5sig_tcpm_key" = xyes; then : 13622 13623cat >>confdefs.h <<_ACEOF 13624#define HAVE_STRUCT_TCP_MD5SIG_TCPM_KEY 1 13625_ACEOF 13626 13627 13628fi 13629 13630 if test "x$ac_cv_member_struct_tcp_md5sig_tcpm_key" = xyes; then 13631 HAVE_LINUX_TCPMD5_TRUE= 13632 HAVE_LINUX_TCPMD5_FALSE='#' 13633else 13634 HAVE_LINUX_TCPMD5_TRUE='#' 13635 HAVE_LINUX_TCPMD5_FALSE= 13636fi 13637 13638 13639 13640# Check whether --with-privsep-user was given. 13641if test "${with_privsep_user+set}" = set; then : 13642 withval=$with_privsep_user; PRIVSEP_USER="$withval" 13643else 13644 PRIVSEP_USER="_bgpd" 13645 13646fi 13647 13648 13649cat >>confdefs.h <<_ACEOF 13650#define BGPD_USER "$PRIVSEP_USER" 13651_ACEOF 13652 13653 13654 13655# workaround the issue that there is no autoconf release supporting 13656# runstatedir but many linux distros patched their versions instead 13657# Check if the variable is set, if not use a basic default. 13658 13659# Check whether --with-runstatedir was given. 13660if test "${with_runstatedir+set}" = set; then : 13661 withval=$with_runstatedir; runstatedir="$withval" 13662 13663fi 13664 13665if test "x$runstatedir" = x; then 13666 runstatedir='${localstatedir}/run' 13667 13668fi 13669 13670ac_config_files="$ac_config_files Makefile include/Makefile compat/Makefile src/bgpctl/Makefile src/bgpd/Makefile" 13671 13672 13673cat >confcache <<\_ACEOF 13674# This file is a shell script that caches the results of configure 13675# tests run on this system so they can be shared between configure 13676# scripts and configure runs, see configure's option --config-cache. 13677# It is not useful on other systems. If it contains results you don't 13678# want to keep, you may remove or edit it. 13679# 13680# config.status only pays attention to the cache file if you give it 13681# the --recheck option to rerun configure. 13682# 13683# `ac_cv_env_foo' variables (set or unset) will be overridden when 13684# loading this file, other *unset* `ac_cv_foo' will be assigned the 13685# following values. 13686 13687_ACEOF 13688 13689# The following way of writing the cache mishandles newlines in values, 13690# but we know of no workaround that is simple, portable, and efficient. 13691# So, we kill variables containing newlines. 13692# Ultrix sh set writes to stderr and can't be redirected directly, 13693# and sets the high bit in the cache file unless we assign to the vars. 13694( 13695 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13696 eval ac_val=\$$ac_var 13697 case $ac_val in #( 13698 *${as_nl}*) 13699 case $ac_var in #( 13700 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13701$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13702 esac 13703 case $ac_var in #( 13704 _ | IFS | as_nl) ;; #( 13705 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13706 *) { eval $ac_var=; unset $ac_var;} ;; 13707 esac ;; 13708 esac 13709 done 13710 13711 (set) 2>&1 | 13712 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13713 *${as_nl}ac_space=\ *) 13714 # `set' does not quote correctly, so add quotes: double-quote 13715 # substitution turns \\\\ into \\, and sed turns \\ into \. 13716 sed -n \ 13717 "s/'/'\\\\''/g; 13718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13719 ;; #( 13720 *) 13721 # `set' quotes correctly as required by POSIX, so do not add quotes. 13722 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13723 ;; 13724 esac | 13725 sort 13726) | 13727 sed ' 13728 /^ac_cv_env_/b end 13729 t clear 13730 :clear 13731 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13732 t end 13733 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13734 :end' >>confcache 13735if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13736 if test -w "$cache_file"; then 13737 if test "x$cache_file" != "x/dev/null"; then 13738 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13739$as_echo "$as_me: updating cache $cache_file" >&6;} 13740 if test ! -f "$cache_file" || test -h "$cache_file"; then 13741 cat confcache >"$cache_file" 13742 else 13743 case $cache_file in #( 13744 */* | ?:*) 13745 mv -f confcache "$cache_file"$$ && 13746 mv -f "$cache_file"$$ "$cache_file" ;; #( 13747 *) 13748 mv -f confcache "$cache_file" ;; 13749 esac 13750 fi 13751 fi 13752 else 13753 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13754$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13755 fi 13756fi 13757rm -f confcache 13758 13759test "x$prefix" = xNONE && prefix=$ac_default_prefix 13760# Let make expand exec_prefix. 13761test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13762 13763# Transform confdefs.h into DEFS. 13764# Protect against shell expansion while executing Makefile rules. 13765# Protect against Makefile macro expansion. 13766# 13767# If the first sed substitution is executed (which looks for macros that 13768# take arguments), then branch to the quote section. Otherwise, 13769# look for a macro that doesn't take arguments. 13770ac_script=' 13771:mline 13772/\\$/{ 13773 N 13774 s,\\\n,, 13775 b mline 13776} 13777t clear 13778:clear 13779s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 13780t quote 13781s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 13782t quote 13783b any 13784:quote 13785s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 13786s/\[/\\&/g 13787s/\]/\\&/g 13788s/\$/$$/g 13789H 13790:any 13791${ 13792 g 13793 s/^\n// 13794 s/\n/ /g 13795 p 13796} 13797' 13798DEFS=`sed -n "$ac_script" confdefs.h` 13799 13800 13801ac_libobjs= 13802ac_ltlibobjs= 13803U= 13804for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13805 # 1. Remove the extension, and $U if already installed. 13806 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13807 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13808 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13809 # will be set to the directory where LIBOBJS objects are built. 13810 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13811 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13812done 13813LIBOBJS=$ac_libobjs 13814 13815LTLIBOBJS=$ac_ltlibobjs 13816 13817 13818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13819$as_echo_n "checking that generated files are newer than configure... " >&6; } 13820 if test -n "$am_sleep_pid"; then 13821 # Hide warnings about reused PIDs. 13822 wait $am_sleep_pid 2>/dev/null 13823 fi 13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13825$as_echo "done" >&6; } 13826 if test -n "$EXEEXT"; then 13827 am__EXEEXT_TRUE= 13828 am__EXEEXT_FALSE='#' 13829else 13830 am__EXEEXT_TRUE='#' 13831 am__EXEEXT_FALSE= 13832fi 13833 13834if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13835 as_fn_error $? "conditional \"AMDEP\" was never defined. 13836Usually this means the macro was only invoked conditionally." "$LINENO" 5 13837fi 13838if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13839 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13840Usually this means the macro was only invoked conditionally." "$LINENO" 5 13841fi 13842if test -z "${HOST_DARWIN_TRUE}" && test -z "${HOST_DARWIN_FALSE}"; then 13843 as_fn_error $? "conditional \"HOST_DARWIN\" was never defined. 13844Usually this means the macro was only invoked conditionally." "$LINENO" 5 13845fi 13846if test -z "${HOST_FREEBSD_TRUE}" && test -z "${HOST_FREEBSD_FALSE}"; then 13847 as_fn_error $? "conditional \"HOST_FREEBSD\" was never defined. 13848Usually this means the macro was only invoked conditionally." "$LINENO" 5 13849fi 13850if test -z "${HOST_LINUX_TRUE}" && test -z "${HOST_LINUX_FALSE}"; then 13851 as_fn_error $? "conditional \"HOST_LINUX\" was never defined. 13852Usually this means the macro was only invoked conditionally." "$LINENO" 5 13853fi 13854if test -z "${HOST_NETBSD_TRUE}" && test -z "${HOST_NETBSD_FALSE}"; then 13855 as_fn_error $? "conditional \"HOST_NETBSD\" was never defined. 13856Usually this means the macro was only invoked conditionally." "$LINENO" 5 13857fi 13858if test -z "${HOST_SOLARIS_TRUE}" && test -z "${HOST_SOLARIS_FALSE}"; then 13859 as_fn_error $? "conditional \"HOST_SOLARIS\" was never defined. 13860Usually this means the macro was only invoked conditionally." "$LINENO" 5 13861fi 13862if test -z "${HAVE_CARP_TRUE}" && test -z "${HAVE_CARP_FALSE}"; then 13863 as_fn_error $? "conditional \"HAVE_CARP\" was never defined. 13864Usually this means the macro was only invoked conditionally." "$LINENO" 5 13865fi 13866if test -z "${HAVE_PFKEY_TRUE}" && test -z "${HAVE_PFKEY_FALSE}"; then 13867 as_fn_error $? "conditional \"HAVE_PFKEY\" was never defined. 13868Usually this means the macro was only invoked conditionally." "$LINENO" 5 13869fi 13870if test -z "${HAVE_PFTABLE_TRUE}" && test -z "${HAVE_PFTABLE_FALSE}"; then 13871 as_fn_error $? "conditional \"HAVE_PFTABLE\" was never defined. 13872Usually this means the macro was only invoked conditionally." "$LINENO" 5 13873fi 13874if test -z "${HAVE_KROUTE_TRUE}" && test -z "${HAVE_KROUTE_FALSE}"; then 13875 as_fn_error $? "conditional \"HAVE_KROUTE\" was never defined. 13876Usually this means the macro was only invoked conditionally." "$LINENO" 5 13877fi 13878if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13879 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13880Usually this means the macro was only invoked conditionally." "$LINENO" 5 13881fi 13882if test -z "${HAVE_ARC4RANDOM_TRUE}" && test -z "${HAVE_ARC4RANDOM_FALSE}"; then 13883 as_fn_error $? "conditional \"HAVE_ARC4RANDOM\" was never defined. 13884Usually this means the macro was only invoked conditionally." "$LINENO" 5 13885fi 13886if test -z "${HAVE_ASPRINTF_TRUE}" && test -z "${HAVE_ASPRINTF_FALSE}"; then 13887 as_fn_error $? "conditional \"HAVE_ASPRINTF\" was never defined. 13888Usually this means the macro was only invoked conditionally." "$LINENO" 5 13889fi 13890if test -z "${HAVE_CLOSEFROM_TRUE}" && test -z "${HAVE_CLOSEFROM_FALSE}"; then 13891 as_fn_error $? "conditional \"HAVE_CLOSEFROM\" was never defined. 13892Usually this means the macro was only invoked conditionally." "$LINENO" 5 13893fi 13894if test -z "${HAVE_CLOCK_GETRES_TRUE}" && test -z "${HAVE_CLOCK_GETRES_FALSE}"; then 13895 as_fn_error $? "conditional \"HAVE_CLOCK_GETRES\" was never defined. 13896Usually this means the macro was only invoked conditionally." "$LINENO" 5 13897fi 13898if test -z "${HAVE_CLOCK_GETTIME_TRUE}" && test -z "${HAVE_CLOCK_GETTIME_FALSE}"; then 13899 as_fn_error $? "conditional \"HAVE_CLOCK_GETTIME\" was never defined. 13900Usually this means the macro was only invoked conditionally." "$LINENO" 5 13901fi 13902if test -z "${HAVE_EXPLICIT_BZERO_TRUE}" && test -z "${HAVE_EXPLICIT_BZERO_FALSE}"; then 13903 as_fn_error $? "conditional \"HAVE_EXPLICIT_BZERO\" was never defined. 13904Usually this means the macro was only invoked conditionally." "$LINENO" 5 13905fi 13906if test -z "${HAVE_FREEZERO_TRUE}" && test -z "${HAVE_FREEZERO_FALSE}"; then 13907 as_fn_error $? "conditional \"HAVE_FREEZERO\" was never defined. 13908Usually this means the macro was only invoked conditionally." "$LINENO" 5 13909fi 13910if test -z "${HAVE_GETENTROPY_TRUE}" && test -z "${HAVE_GETENTROPY_FALSE}"; then 13911 as_fn_error $? "conditional \"HAVE_GETENTROPY\" was never defined. 13912Usually this means the macro was only invoked conditionally." "$LINENO" 5 13913fi 13914if test -z "${HAVE_IMSG_TRUE}" && test -z "${HAVE_IMSG_FALSE}"; then 13915 as_fn_error $? "conditional \"HAVE_IMSG\" was never defined. 13916Usually this means the macro was only invoked conditionally." "$LINENO" 5 13917fi 13918if test -z "${HAVE_MD5_TRUE}" && test -z "${HAVE_MD5_FALSE}"; then 13919 as_fn_error $? "conditional \"HAVE_MD5\" was never defined. 13920Usually this means the macro was only invoked conditionally." "$LINENO" 5 13921fi 13922if test -z "${HAVE_MEMMEM_TRUE}" && test -z "${HAVE_MEMMEM_FALSE}"; then 13923 as_fn_error $? "conditional \"HAVE_MEMMEM\" was never defined. 13924Usually this means the macro was only invoked conditionally." "$LINENO" 5 13925fi 13926if test -z "${HAVE_POLL_TRUE}" && test -z "${HAVE_POLL_FALSE}"; then 13927 as_fn_error $? "conditional \"HAVE_POLL\" was never defined. 13928Usually this means the macro was only invoked conditionally." "$LINENO" 5 13929fi 13930if test -z "${HAVE_REALLOCARRAY_TRUE}" && test -z "${HAVE_REALLOCARRAY_FALSE}"; then 13931 as_fn_error $? "conditional \"HAVE_REALLOCARRAY\" was never defined. 13932Usually this means the macro was only invoked conditionally." "$LINENO" 5 13933fi 13934if test -z "${HAVE_RECALLOCARRAY_TRUE}" && test -z "${HAVE_RECALLOCARRAY_FALSE}"; then 13935 as_fn_error $? "conditional \"HAVE_RECALLOCARRAY\" was never defined. 13936Usually this means the macro was only invoked conditionally." "$LINENO" 5 13937fi 13938if test -z "${HAVE_SETGROUPS_TRUE}" && test -z "${HAVE_SETGROUPS_FALSE}"; then 13939 as_fn_error $? "conditional \"HAVE_SETGROUPS\" was never defined. 13940Usually this means the macro was only invoked conditionally." "$LINENO" 5 13941fi 13942if test -z "${HAVE_SETRESGID_TRUE}" && test -z "${HAVE_SETRESGID_FALSE}"; then 13943 as_fn_error $? "conditional \"HAVE_SETRESGID\" was never defined. 13944Usually this means the macro was only invoked conditionally." "$LINENO" 5 13945fi 13946if test -z "${HAVE_SETRESUID_TRUE}" && test -z "${HAVE_SETRESUID_FALSE}"; then 13947 as_fn_error $? "conditional \"HAVE_SETRESUID\" was never defined. 13948Usually this means the macro was only invoked conditionally." "$LINENO" 5 13949fi 13950if test -z "${HAVE_SETPROCTITLE_TRUE}" && test -z "${HAVE_SETPROCTITLE_FALSE}"; then 13951 as_fn_error $? "conditional \"HAVE_SETPROCTITLE\" was never defined. 13952Usually this means the macro was only invoked conditionally." "$LINENO" 5 13953fi 13954if test -z "${HAVE_SHA512_TRUE}" && test -z "${HAVE_SHA512_FALSE}"; then 13955 as_fn_error $? "conditional \"HAVE_SHA512\" was never defined. 13956Usually this means the macro was only invoked conditionally." "$LINENO" 5 13957fi 13958if test -z "${HAVE_STRLCAT_TRUE}" && test -z "${HAVE_STRLCAT_FALSE}"; then 13959 as_fn_error $? "conditional \"HAVE_STRLCAT\" was never defined. 13960Usually this means the macro was only invoked conditionally." "$LINENO" 5 13961fi 13962if test -z "${HAVE_STRLCPY_TRUE}" && test -z "${HAVE_STRLCPY_FALSE}"; then 13963 as_fn_error $? "conditional \"HAVE_STRLCPY\" was never defined. 13964Usually this means the macro was only invoked conditionally." "$LINENO" 5 13965fi 13966if test -z "${HAVE_STRTONUM_TRUE}" && test -z "${HAVE_STRTONUM_FALSE}"; then 13967 as_fn_error $? "conditional \"HAVE_STRTONUM\" was never defined. 13968Usually this means the macro was only invoked conditionally." "$LINENO" 5 13969fi 13970if test -z "${HAVE_SYSCONF_TRUE}" && test -z "${HAVE_SYSCONF_FALSE}"; then 13971 as_fn_error $? "conditional \"HAVE_SYSCONF\" was never defined. 13972Usually this means the macro was only invoked conditionally." "$LINENO" 5 13973fi 13974if test -z "${HAVE_PLEDGE_TRUE}" && test -z "${HAVE_PLEDGE_FALSE}"; then 13975 as_fn_error $? "conditional \"HAVE_PLEDGE\" was never defined. 13976Usually this means the macro was only invoked conditionally." "$LINENO" 5 13977fi 13978if test -z "${HAVE_UNVEIL_TRUE}" && test -z "${HAVE_UNVEIL_FALSE}"; then 13979 as_fn_error $? "conditional \"HAVE_UNVEIL\" was never defined. 13980Usually this means the macro was only invoked conditionally." "$LINENO" 5 13981fi 13982if test -z "${HAVE_SIPHASH_TRUE}" && test -z "${HAVE_SIPHASH_FALSE}"; then 13983 as_fn_error $? "conditional \"HAVE_SIPHASH\" was never defined. 13984Usually this means the macro was only invoked conditionally." "$LINENO" 5 13985fi 13986if test -z "${HAVE_GETDTABLECOUNT_TRUE}" && test -z "${HAVE_GETDTABLECOUNT_FALSE}"; then 13987 as_fn_error $? "conditional \"HAVE_GETDTABLECOUNT\" was never defined. 13988Usually this means the macro was only invoked conditionally." "$LINENO" 5 13989fi 13990if test -z "${HAVE_GETRTABLE_TRUE}" && test -z "${HAVE_GETRTABLE_FALSE}"; then 13991 as_fn_error $? "conditional \"HAVE_GETRTABLE\" was never defined. 13992Usually this means the macro was only invoked conditionally." "$LINENO" 5 13993fi 13994if test -z "${HAVE_STRNVIS_TRUE}" && test -z "${HAVE_STRNVIS_FALSE}"; then 13995 as_fn_error $? "conditional \"HAVE_STRNVIS\" was never defined. 13996Usually this means the macro was only invoked conditionally." "$LINENO" 5 13997fi 13998if test -z "${BROKEN_STRNVIS_TRUE}" && test -z "${BROKEN_STRNVIS_FALSE}"; then 13999 as_fn_error $? "conditional \"BROKEN_STRNVIS\" was never defined. 14000Usually this means the macro was only invoked conditionally." "$LINENO" 5 14001fi 14002if test -z "${HAVE_INET_NET_PTON_TRUE}" && test -z "${HAVE_INET_NET_PTON_FALSE}"; then 14003 as_fn_error $? "conditional \"HAVE_INET_NET_PTON\" was never defined. 14004Usually this means the macro was only invoked conditionally." "$LINENO" 5 14005fi 14006if test -z "${HAVE_FMT_SCALED_TRUE}" && test -z "${HAVE_FMT_SCALED_FALSE}"; then 14007 as_fn_error $? "conditional \"HAVE_FMT_SCALED\" was never defined. 14008Usually this means the macro was only invoked conditionally." "$LINENO" 5 14009fi 14010if test -z "${HAVE_ARC4RANDOM_TRUE}" && test -z "${HAVE_ARC4RANDOM_FALSE}"; then 14011 as_fn_error $? "conditional \"HAVE_ARC4RANDOM\" was never defined. 14012Usually this means the macro was only invoked conditionally." "$LINENO" 5 14013fi 14014if test -z "${HAVE_LINUX_TCPMD5_TRUE}" && test -z "${HAVE_LINUX_TCPMD5_FALSE}"; then 14015 as_fn_error $? "conditional \"HAVE_LINUX_TCPMD5\" was never defined. 14016Usually this means the macro was only invoked conditionally." "$LINENO" 5 14017fi 14018 14019: "${CONFIG_STATUS=./config.status}" 14020ac_write_fail=0 14021ac_clean_files_save=$ac_clean_files 14022ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14023{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14024$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14025as_write_fail=0 14026cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14027#! $SHELL 14028# Generated by $as_me. 14029# Run this file to recreate the current configuration. 14030# Compiler output produced by configure, useful for debugging 14031# configure, is in config.log if it exists. 14032 14033debug=false 14034ac_cs_recheck=false 14035ac_cs_silent=false 14036 14037SHELL=\${CONFIG_SHELL-$SHELL} 14038export SHELL 14039_ASEOF 14040cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14041## -------------------- ## 14042## M4sh Initialization. ## 14043## -------------------- ## 14044 14045# Be more Bourne compatible 14046DUALCASE=1; export DUALCASE # for MKS sh 14047if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14048 emulate sh 14049 NULLCMD=: 14050 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14051 # is contrary to our usage. Disable this feature. 14052 alias -g '${1+"$@"}'='"$@"' 14053 setopt NO_GLOB_SUBST 14054else 14055 case `(set -o) 2>/dev/null` in #( 14056 *posix*) : 14057 set -o posix ;; #( 14058 *) : 14059 ;; 14060esac 14061fi 14062 14063 14064as_nl=' 14065' 14066export as_nl 14067# Printing a long string crashes Solaris 7 /usr/bin/printf. 14068as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14069as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14070as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14071# Prefer a ksh shell builtin over an external printf program on Solaris, 14072# but without wasting forks for bash or zsh. 14073if test -z "$BASH_VERSION$ZSH_VERSION" \ 14074 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14075 as_echo='print -r --' 14076 as_echo_n='print -rn --' 14077elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14078 as_echo='printf %s\n' 14079 as_echo_n='printf %s' 14080else 14081 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14082 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14083 as_echo_n='/usr/ucb/echo -n' 14084 else 14085 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14086 as_echo_n_body='eval 14087 arg=$1; 14088 case $arg in #( 14089 *"$as_nl"*) 14090 expr "X$arg" : "X\\(.*\\)$as_nl"; 14091 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14092 esac; 14093 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14094 ' 14095 export as_echo_n_body 14096 as_echo_n='sh -c $as_echo_n_body as_echo' 14097 fi 14098 export as_echo_body 14099 as_echo='sh -c $as_echo_body as_echo' 14100fi 14101 14102# The user is always right. 14103if test "${PATH_SEPARATOR+set}" != set; then 14104 PATH_SEPARATOR=: 14105 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14106 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14107 PATH_SEPARATOR=';' 14108 } 14109fi 14110 14111 14112# IFS 14113# We need space, tab and new line, in precisely that order. Quoting is 14114# there to prevent editors from complaining about space-tab. 14115# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14116# splitting by setting IFS to empty value.) 14117IFS=" "" $as_nl" 14118 14119# Find who we are. Look in the path if we contain no directory separator. 14120as_myself= 14121case $0 in #(( 14122 *[\\/]* ) as_myself=$0 ;; 14123 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14124for as_dir in $PATH 14125do 14126 IFS=$as_save_IFS 14127 test -z "$as_dir" && as_dir=. 14128 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14129 done 14130IFS=$as_save_IFS 14131 14132 ;; 14133esac 14134# We did not find ourselves, most probably we were run as `sh COMMAND' 14135# in which case we are not to be found in the path. 14136if test "x$as_myself" = x; then 14137 as_myself=$0 14138fi 14139if test ! -f "$as_myself"; then 14140 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14141 exit 1 14142fi 14143 14144# Unset variables that we do not need and which cause bugs (e.g. in 14145# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14146# suppresses any "Segmentation fault" message there. '((' could 14147# trigger a bug in pdksh 5.2.14. 14148for as_var in BASH_ENV ENV MAIL MAILPATH 14149do eval test x\${$as_var+set} = xset \ 14150 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14151done 14152PS1='$ ' 14153PS2='> ' 14154PS4='+ ' 14155 14156# NLS nuisances. 14157LC_ALL=C 14158export LC_ALL 14159LANGUAGE=C 14160export LANGUAGE 14161 14162# CDPATH. 14163(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14164 14165 14166# as_fn_error STATUS ERROR [LINENO LOG_FD] 14167# ---------------------------------------- 14168# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14169# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14170# script with STATUS, using 1 if that was 0. 14171as_fn_error () 14172{ 14173 as_status=$1; test $as_status -eq 0 && as_status=1 14174 if test "$4"; then 14175 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14176 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14177 fi 14178 $as_echo "$as_me: error: $2" >&2 14179 as_fn_exit $as_status 14180} # as_fn_error 14181 14182 14183# as_fn_set_status STATUS 14184# ----------------------- 14185# Set $? to STATUS, without forking. 14186as_fn_set_status () 14187{ 14188 return $1 14189} # as_fn_set_status 14190 14191# as_fn_exit STATUS 14192# ----------------- 14193# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14194as_fn_exit () 14195{ 14196 set +e 14197 as_fn_set_status $1 14198 exit $1 14199} # as_fn_exit 14200 14201# as_fn_unset VAR 14202# --------------- 14203# Portably unset VAR. 14204as_fn_unset () 14205{ 14206 { eval $1=; unset $1;} 14207} 14208as_unset=as_fn_unset 14209# as_fn_append VAR VALUE 14210# ---------------------- 14211# Append the text in VALUE to the end of the definition contained in VAR. Take 14212# advantage of any shell optimizations that allow amortized linear growth over 14213# repeated appends, instead of the typical quadratic growth present in naive 14214# implementations. 14215if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14216 eval 'as_fn_append () 14217 { 14218 eval $1+=\$2 14219 }' 14220else 14221 as_fn_append () 14222 { 14223 eval $1=\$$1\$2 14224 } 14225fi # as_fn_append 14226 14227# as_fn_arith ARG... 14228# ------------------ 14229# Perform arithmetic evaluation on the ARGs, and store the result in the 14230# global $as_val. Take advantage of shells that can avoid forks. The arguments 14231# must be portable across $(()) and expr. 14232if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14233 eval 'as_fn_arith () 14234 { 14235 as_val=$(( $* )) 14236 }' 14237else 14238 as_fn_arith () 14239 { 14240 as_val=`expr "$@" || test $? -eq 1` 14241 } 14242fi # as_fn_arith 14243 14244 14245if expr a : '\(a\)' >/dev/null 2>&1 && 14246 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14247 as_expr=expr 14248else 14249 as_expr=false 14250fi 14251 14252if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14253 as_basename=basename 14254else 14255 as_basename=false 14256fi 14257 14258if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14259 as_dirname=dirname 14260else 14261 as_dirname=false 14262fi 14263 14264as_me=`$as_basename -- "$0" || 14265$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14266 X"$0" : 'X\(//\)$' \| \ 14267 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14268$as_echo X/"$0" | 14269 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14270 s//\1/ 14271 q 14272 } 14273 /^X\/\(\/\/\)$/{ 14274 s//\1/ 14275 q 14276 } 14277 /^X\/\(\/\).*/{ 14278 s//\1/ 14279 q 14280 } 14281 s/.*/./; q'` 14282 14283# Avoid depending upon Character Ranges. 14284as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14285as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14286as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14287as_cr_digits='0123456789' 14288as_cr_alnum=$as_cr_Letters$as_cr_digits 14289 14290ECHO_C= ECHO_N= ECHO_T= 14291case `echo -n x` in #((((( 14292-n*) 14293 case `echo 'xy\c'` in 14294 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14295 xy) ECHO_C='\c';; 14296 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14297 ECHO_T=' ';; 14298 esac;; 14299*) 14300 ECHO_N='-n';; 14301esac 14302 14303rm -f conf$$ conf$$.exe conf$$.file 14304if test -d conf$$.dir; then 14305 rm -f conf$$.dir/conf$$.file 14306else 14307 rm -f conf$$.dir 14308 mkdir conf$$.dir 2>/dev/null 14309fi 14310if (echo >conf$$.file) 2>/dev/null; then 14311 if ln -s conf$$.file conf$$ 2>/dev/null; then 14312 as_ln_s='ln -s' 14313 # ... but there are two gotchas: 14314 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14315 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14316 # In both cases, we have to default to `cp -pR'. 14317 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14318 as_ln_s='cp -pR' 14319 elif ln conf$$.file conf$$ 2>/dev/null; then 14320 as_ln_s=ln 14321 else 14322 as_ln_s='cp -pR' 14323 fi 14324else 14325 as_ln_s='cp -pR' 14326fi 14327rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14328rmdir conf$$.dir 2>/dev/null 14329 14330 14331# as_fn_mkdir_p 14332# ------------- 14333# Create "$as_dir" as a directory, including parents if necessary. 14334as_fn_mkdir_p () 14335{ 14336 14337 case $as_dir in #( 14338 -*) as_dir=./$as_dir;; 14339 esac 14340 test -d "$as_dir" || eval $as_mkdir_p || { 14341 as_dirs= 14342 while :; do 14343 case $as_dir in #( 14344 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14345 *) as_qdir=$as_dir;; 14346 esac 14347 as_dirs="'$as_qdir' $as_dirs" 14348 as_dir=`$as_dirname -- "$as_dir" || 14349$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14350 X"$as_dir" : 'X\(//\)[^/]' \| \ 14351 X"$as_dir" : 'X\(//\)$' \| \ 14352 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14353$as_echo X"$as_dir" | 14354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14355 s//\1/ 14356 q 14357 } 14358 /^X\(\/\/\)[^/].*/{ 14359 s//\1/ 14360 q 14361 } 14362 /^X\(\/\/\)$/{ 14363 s//\1/ 14364 q 14365 } 14366 /^X\(\/\).*/{ 14367 s//\1/ 14368 q 14369 } 14370 s/.*/./; q'` 14371 test -d "$as_dir" && break 14372 done 14373 test -z "$as_dirs" || eval "mkdir $as_dirs" 14374 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14375 14376 14377} # as_fn_mkdir_p 14378if mkdir -p . 2>/dev/null; then 14379 as_mkdir_p='mkdir -p "$as_dir"' 14380else 14381 test -d ./-p && rmdir ./-p 14382 as_mkdir_p=false 14383fi 14384 14385 14386# as_fn_executable_p FILE 14387# ----------------------- 14388# Test if FILE is an executable regular file. 14389as_fn_executable_p () 14390{ 14391 test -f "$1" && test -x "$1" 14392} # as_fn_executable_p 14393as_test_x='test -x' 14394as_executable_p=as_fn_executable_p 14395 14396# Sed expression to map a string onto a valid CPP name. 14397as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14398 14399# Sed expression to map a string onto a valid variable name. 14400as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14401 14402 14403exec 6>&1 14404## ----------------------------------- ## 14405## Main body of $CONFIG_STATUS script. ## 14406## ----------------------------------- ## 14407_ASEOF 14408test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14409 14410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14411# Save the log message, to keep $0 and so on meaningful, and to 14412# report actual input values of CONFIG_FILES etc. instead of their 14413# values after options handling. 14414ac_log=" 14415This file was extended by OpenBGPD $as_me 6.9p0, which was 14416generated by GNU Autoconf 2.69. Invocation command line was 14417 14418 CONFIG_FILES = $CONFIG_FILES 14419 CONFIG_HEADERS = $CONFIG_HEADERS 14420 CONFIG_LINKS = $CONFIG_LINKS 14421 CONFIG_COMMANDS = $CONFIG_COMMANDS 14422 $ $0 $@ 14423 14424on `(hostname || uname -n) 2>/dev/null | sed 1q` 14425" 14426 14427_ACEOF 14428 14429case $ac_config_files in *" 14430"*) set x $ac_config_files; shift; ac_config_files=$*;; 14431esac 14432 14433 14434 14435cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14436# Files that config.status was made for. 14437config_files="$ac_config_files" 14438config_commands="$ac_config_commands" 14439 14440_ACEOF 14441 14442cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14443ac_cs_usage="\ 14444\`$as_me' instantiates files and other configuration actions 14445from templates according to the current configuration. Unless the files 14446and actions are specified as TAGs, all are instantiated by default. 14447 14448Usage: $0 [OPTION]... [TAG]... 14449 14450 -h, --help print this help, then exit 14451 -V, --version print version number and configuration settings, then exit 14452 --config print configuration, then exit 14453 -q, --quiet, --silent 14454 do not print progress messages 14455 -d, --debug don't remove temporary files 14456 --recheck update $as_me by reconfiguring in the same conditions 14457 --file=FILE[:TEMPLATE] 14458 instantiate the configuration file FILE 14459 14460Configuration files: 14461$config_files 14462 14463Configuration commands: 14464$config_commands 14465 14466Report bugs to the package provider." 14467 14468_ACEOF 14469cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14470ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14471ac_cs_version="\\ 14472OpenBGPD config.status 6.9p0 14473configured by $0, generated by GNU Autoconf 2.69, 14474 with options \\"\$ac_cs_config\\" 14475 14476Copyright (C) 2012 Free Software Foundation, Inc. 14477This config.status script is free software; the Free Software Foundation 14478gives unlimited permission to copy, distribute and modify it." 14479 14480ac_pwd='$ac_pwd' 14481srcdir='$srcdir' 14482INSTALL='$INSTALL' 14483MKDIR_P='$MKDIR_P' 14484AWK='$AWK' 14485test -n "\$AWK" || AWK=awk 14486_ACEOF 14487 14488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14489# The default lists apply if the user does not specify any file. 14490ac_need_defaults=: 14491while test $# != 0 14492do 14493 case $1 in 14494 --*=?*) 14495 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14496 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14497 ac_shift=: 14498 ;; 14499 --*=) 14500 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14501 ac_optarg= 14502 ac_shift=: 14503 ;; 14504 *) 14505 ac_option=$1 14506 ac_optarg=$2 14507 ac_shift=shift 14508 ;; 14509 esac 14510 14511 case $ac_option in 14512 # Handling of the options. 14513 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14514 ac_cs_recheck=: ;; 14515 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14516 $as_echo "$ac_cs_version"; exit ;; 14517 --config | --confi | --conf | --con | --co | --c ) 14518 $as_echo "$ac_cs_config"; exit ;; 14519 --debug | --debu | --deb | --de | --d | -d ) 14520 debug=: ;; 14521 --file | --fil | --fi | --f ) 14522 $ac_shift 14523 case $ac_optarg in 14524 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14525 '') as_fn_error $? "missing file argument" ;; 14526 esac 14527 as_fn_append CONFIG_FILES " '$ac_optarg'" 14528 ac_need_defaults=false;; 14529 --he | --h | --help | --hel | -h ) 14530 $as_echo "$ac_cs_usage"; exit ;; 14531 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14532 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14533 ac_cs_silent=: ;; 14534 14535 # This is an error. 14536 -*) as_fn_error $? "unrecognized option: \`$1' 14537Try \`$0 --help' for more information." ;; 14538 14539 *) as_fn_append ac_config_targets " $1" 14540 ac_need_defaults=false ;; 14541 14542 esac 14543 shift 14544done 14545 14546ac_configure_extra_args= 14547 14548if $ac_cs_silent; then 14549 exec 6>/dev/null 14550 ac_configure_extra_args="$ac_configure_extra_args --silent" 14551fi 14552 14553_ACEOF 14554cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14555if \$ac_cs_recheck; then 14556 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14557 shift 14558 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14559 CONFIG_SHELL='$SHELL' 14560 export CONFIG_SHELL 14561 exec "\$@" 14562fi 14563 14564_ACEOF 14565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14566exec 5>>config.log 14567{ 14568 echo 14569 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14570## Running $as_me. ## 14571_ASBOX 14572 $as_echo "$ac_log" 14573} >&5 14574 14575_ACEOF 14576cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14577# 14578# INIT-COMMANDS 14579# 14580AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 14581 14582 14583# The HP-UX ksh and POSIX shell print the target directory to stdout 14584# if CDPATH is set. 14585(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14586 14587sed_quote_subst='$sed_quote_subst' 14588double_quote_subst='$double_quote_subst' 14589delay_variable_subst='$delay_variable_subst' 14590macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14591macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14592enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14593enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14594pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14595enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14596SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14597ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14598PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 14599host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14600host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14601host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14602build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14603build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14604build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14605SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14606Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14607GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14608EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14609FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14610LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14611NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14612LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14613max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14614ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14615exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14616lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14617lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14618lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14619lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 14620lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 14621reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14622reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14623OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14624deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14625file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14626file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 14627want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 14628DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 14629sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 14630AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14631AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14632archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 14633STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14634RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14635old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14636old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14637old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14638lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14639CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14640CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14641compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14642GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14643lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14644lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14645lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14646lt_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"`' 14647nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14648lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14649objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14650MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14651lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14652lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14653lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14654lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14655lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14656need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14657MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14658DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14659NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14660LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14661OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14662OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14663libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14664shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14665extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14666archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14667enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14668export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14669whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14670compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14671old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14672old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14673archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14674archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14675module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14676module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14677with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14678allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14679no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14680hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14681hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14682hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14683hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14684hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14685hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14686hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14687inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14688link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14689always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14690export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14691exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14692include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14693prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14694postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14695file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14696variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14697need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14698need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14699version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14700runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14701shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14702shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14703libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14704library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14705soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14706install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14707postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14708postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14709finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14710finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14711hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14712sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14713sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 14714hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14715enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14716enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14717enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14718old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14719striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14720 14721LTCC='$LTCC' 14722LTCFLAGS='$LTCFLAGS' 14723compiler='$compiler_DEFAULT' 14724 14725# A function that is used when there is no print builtin or printf. 14726func_fallback_echo () 14727{ 14728 eval 'cat <<_LTECHO_EOF 14729\$1 14730_LTECHO_EOF' 14731} 14732 14733# Quote evaled strings. 14734for var in SHELL \ 14735ECHO \ 14736PATH_SEPARATOR \ 14737SED \ 14738GREP \ 14739EGREP \ 14740FGREP \ 14741LD \ 14742NM \ 14743LN_S \ 14744lt_SP2NL \ 14745lt_NL2SP \ 14746reload_flag \ 14747OBJDUMP \ 14748deplibs_check_method \ 14749file_magic_cmd \ 14750file_magic_glob \ 14751want_nocaseglob \ 14752DLLTOOL \ 14753sharedlib_from_linklib_cmd \ 14754AR \ 14755AR_FLAGS \ 14756archiver_list_spec \ 14757STRIP \ 14758RANLIB \ 14759CC \ 14760CFLAGS \ 14761compiler \ 14762lt_cv_sys_global_symbol_pipe \ 14763lt_cv_sys_global_symbol_to_cdecl \ 14764lt_cv_sys_global_symbol_to_c_name_address \ 14765lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14766nm_file_list_spec \ 14767lt_prog_compiler_no_builtin_flag \ 14768lt_prog_compiler_pic \ 14769lt_prog_compiler_wl \ 14770lt_prog_compiler_static \ 14771lt_cv_prog_compiler_c_o \ 14772need_locks \ 14773MANIFEST_TOOL \ 14774DSYMUTIL \ 14775NMEDIT \ 14776LIPO \ 14777OTOOL \ 14778OTOOL64 \ 14779shrext_cmds \ 14780export_dynamic_flag_spec \ 14781whole_archive_flag_spec \ 14782compiler_needs_object \ 14783with_gnu_ld \ 14784allow_undefined_flag \ 14785no_undefined_flag \ 14786hardcode_libdir_flag_spec \ 14787hardcode_libdir_separator \ 14788exclude_expsyms \ 14789include_expsyms \ 14790file_list_spec \ 14791variables_saved_for_relink \ 14792libname_spec \ 14793library_names_spec \ 14794soname_spec \ 14795install_override_mode \ 14796finish_eval \ 14797old_striplib \ 14798striplib; do 14799 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14800 *[\\\\\\\`\\"\\\$]*) 14801 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14802 ;; 14803 *) 14804 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14805 ;; 14806 esac 14807done 14808 14809# Double-quote double-evaled strings. 14810for var in reload_cmds \ 14811old_postinstall_cmds \ 14812old_postuninstall_cmds \ 14813old_archive_cmds \ 14814extract_expsyms_cmds \ 14815old_archive_from_new_cmds \ 14816old_archive_from_expsyms_cmds \ 14817archive_cmds \ 14818archive_expsym_cmds \ 14819module_cmds \ 14820module_expsym_cmds \ 14821export_symbols_cmds \ 14822prelink_cmds \ 14823postlink_cmds \ 14824postinstall_cmds \ 14825postuninstall_cmds \ 14826finish_cmds \ 14827sys_lib_search_path_spec \ 14828sys_lib_dlsearch_path_spec; do 14829 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14830 *[\\\\\\\`\\"\\\$]*) 14831 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14832 ;; 14833 *) 14834 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14835 ;; 14836 esac 14837done 14838 14839ac_aux_dir='$ac_aux_dir' 14840xsi_shell='$xsi_shell' 14841lt_shell_append='$lt_shell_append' 14842 14843# See if we are running on zsh, and set the options which allow our 14844# commands through without removal of \ escapes INIT. 14845if test -n "\${ZSH_VERSION+set}" ; then 14846 setopt NO_GLOB_SUBST 14847fi 14848 14849 14850 PACKAGE='$PACKAGE' 14851 VERSION='$VERSION' 14852 TIMESTAMP='$TIMESTAMP' 14853 RM='$RM' 14854 ofile='$ofile' 14855 14856 14857 14858 14859_ACEOF 14860 14861cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14862 14863# Handling of arguments. 14864for ac_config_target in $ac_config_targets 14865do 14866 case $ac_config_target in 14867 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14868 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14869 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14870 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 14871 "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;; 14872 "src/bgpctl/Makefile") CONFIG_FILES="$CONFIG_FILES src/bgpctl/Makefile" ;; 14873 "src/bgpd/Makefile") CONFIG_FILES="$CONFIG_FILES src/bgpd/Makefile" ;; 14874 14875 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14876 esac 14877done 14878 14879 14880# If the user did not use the arguments to specify the items to instantiate, 14881# then the envvar interface is used. Set only those that are not. 14882# We use the long form for the default assignment because of an extremely 14883# bizarre bug on SunOS 4.1.3. 14884if $ac_need_defaults; then 14885 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14886 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14887fi 14888 14889# Have a temporary directory for convenience. Make it in the build tree 14890# simply because there is no reason against having it here, and in addition, 14891# creating and moving files from /tmp can sometimes cause problems. 14892# Hook for its removal unless debugging. 14893# Note that there is a small window in which the directory will not be cleaned: 14894# after its creation but before its name has been assigned to `$tmp'. 14895$debug || 14896{ 14897 tmp= ac_tmp= 14898 trap 'exit_status=$? 14899 : "${ac_tmp:=$tmp}" 14900 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14901' 0 14902 trap 'as_fn_exit 1' 1 2 13 15 14903} 14904# Create a (secure) tmp directory for tmp files. 14905 14906{ 14907 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14908 test -d "$tmp" 14909} || 14910{ 14911 tmp=./conf$$-$RANDOM 14912 (umask 077 && mkdir "$tmp") 14913} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14914ac_tmp=$tmp 14915 14916# Set up the scripts for CONFIG_FILES section. 14917# No need to generate them if there are no CONFIG_FILES. 14918# This happens for instance with `./config.status config.h'. 14919if test -n "$CONFIG_FILES"; then 14920 14921 14922ac_cr=`echo X | tr X '\015'` 14923# On cygwin, bash can eat \r inside `` if the user requested igncr. 14924# But we know of no other shell where ac_cr would be empty at this 14925# point, so we can use a bashism as a fallback. 14926if test "x$ac_cr" = x; then 14927 eval ac_cr=\$\'\\r\' 14928fi 14929ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14930if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14931 ac_cs_awk_cr='\\r' 14932else 14933 ac_cs_awk_cr=$ac_cr 14934fi 14935 14936echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14937_ACEOF 14938 14939 14940{ 14941 echo "cat >conf$$subs.awk <<_ACEOF" && 14942 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14943 echo "_ACEOF" 14944} >conf$$subs.sh || 14945 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14946ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14947ac_delim='%!_!# ' 14948for ac_last_try in false false false false false :; do 14949 . ./conf$$subs.sh || 14950 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14951 14952 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14953 if test $ac_delim_n = $ac_delim_num; then 14954 break 14955 elif $ac_last_try; then 14956 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14957 else 14958 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14959 fi 14960done 14961rm -f conf$$subs.sh 14962 14963cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14964cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14965_ACEOF 14966sed -n ' 14967h 14968s/^/S["/; s/!.*/"]=/ 14969p 14970g 14971s/^[^!]*!// 14972:repl 14973t repl 14974s/'"$ac_delim"'$// 14975t delim 14976:nl 14977h 14978s/\(.\{148\}\)..*/\1/ 14979t more1 14980s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14981p 14982n 14983b repl 14984:more1 14985s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14986p 14987g 14988s/.\{148\}// 14989t nl 14990:delim 14991h 14992s/\(.\{148\}\)..*/\1/ 14993t more2 14994s/["\\]/\\&/g; s/^/"/; s/$/"/ 14995p 14996b 14997:more2 14998s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14999p 15000g 15001s/.\{148\}// 15002t delim 15003' <conf$$subs.awk | sed ' 15004/^[^""]/{ 15005 N 15006 s/\n// 15007} 15008' >>$CONFIG_STATUS || ac_write_fail=1 15009rm -f conf$$subs.awk 15010cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15011_ACAWK 15012cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15013 for (key in S) S_is_set[key] = 1 15014 FS = "" 15015 15016} 15017{ 15018 line = $ 0 15019 nfields = split(line, field, "@") 15020 substed = 0 15021 len = length(field[1]) 15022 for (i = 2; i < nfields; i++) { 15023 key = field[i] 15024 keylen = length(key) 15025 if (S_is_set[key]) { 15026 value = S[key] 15027 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15028 len += length(value) + length(field[++i]) 15029 substed = 1 15030 } else 15031 len += 1 + keylen 15032 } 15033 15034 print line 15035} 15036 15037_ACAWK 15038_ACEOF 15039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15040if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15041 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15042else 15043 cat 15044fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15045 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15046_ACEOF 15047 15048# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15049# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15050# trailing colons and then remove the whole line if VPATH becomes empty 15051# (actually we leave an empty line to preserve line numbers). 15052if test "x$srcdir" = x.; then 15053 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15054h 15055s/// 15056s/^/:/ 15057s/[ ]*$/:/ 15058s/:\$(srcdir):/:/g 15059s/:\${srcdir}:/:/g 15060s/:@srcdir@:/:/g 15061s/^:*// 15062s/:*$// 15063x 15064s/\(=[ ]*\).*/\1/ 15065G 15066s/\n// 15067s/^[^=]*=[ ]*$// 15068}' 15069fi 15070 15071cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15072fi # test -n "$CONFIG_FILES" 15073 15074 15075eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 15076shift 15077for ac_tag 15078do 15079 case $ac_tag in 15080 :[FHLC]) ac_mode=$ac_tag; continue;; 15081 esac 15082 case $ac_mode$ac_tag in 15083 :[FHL]*:*);; 15084 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15085 :[FH]-) ac_tag=-:-;; 15086 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15087 esac 15088 ac_save_IFS=$IFS 15089 IFS=: 15090 set x $ac_tag 15091 IFS=$ac_save_IFS 15092 shift 15093 ac_file=$1 15094 shift 15095 15096 case $ac_mode in 15097 :L) ac_source=$1;; 15098 :[FH]) 15099 ac_file_inputs= 15100 for ac_f 15101 do 15102 case $ac_f in 15103 -) ac_f="$ac_tmp/stdin";; 15104 *) # Look for the file first in the build tree, then in the source tree 15105 # (if the path is not absolute). The absolute path cannot be DOS-style, 15106 # because $ac_f cannot contain `:'. 15107 test -f "$ac_f" || 15108 case $ac_f in 15109 [\\/$]*) false;; 15110 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15111 esac || 15112 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15113 esac 15114 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15115 as_fn_append ac_file_inputs " '$ac_f'" 15116 done 15117 15118 # Let's still pretend it is `configure' which instantiates (i.e., don't 15119 # use $as_me), people would be surprised to read: 15120 # /* config.h. Generated by config.status. */ 15121 configure_input='Generated from '` 15122 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15123 `' by configure.' 15124 if test x"$ac_file" != x-; then 15125 configure_input="$ac_file. $configure_input" 15126 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15127$as_echo "$as_me: creating $ac_file" >&6;} 15128 fi 15129 # Neutralize special characters interpreted by sed in replacement strings. 15130 case $configure_input in #( 15131 *\&* | *\|* | *\\* ) 15132 ac_sed_conf_input=`$as_echo "$configure_input" | 15133 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15134 *) ac_sed_conf_input=$configure_input;; 15135 esac 15136 15137 case $ac_tag in 15138 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15139 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15140 esac 15141 ;; 15142 esac 15143 15144 ac_dir=`$as_dirname -- "$ac_file" || 15145$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15146 X"$ac_file" : 'X\(//\)[^/]' \| \ 15147 X"$ac_file" : 'X\(//\)$' \| \ 15148 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15149$as_echo X"$ac_file" | 15150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15151 s//\1/ 15152 q 15153 } 15154 /^X\(\/\/\)[^/].*/{ 15155 s//\1/ 15156 q 15157 } 15158 /^X\(\/\/\)$/{ 15159 s//\1/ 15160 q 15161 } 15162 /^X\(\/\).*/{ 15163 s//\1/ 15164 q 15165 } 15166 s/.*/./; q'` 15167 as_dir="$ac_dir"; as_fn_mkdir_p 15168 ac_builddir=. 15169 15170case "$ac_dir" in 15171.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15172*) 15173 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15174 # A ".." for each directory in $ac_dir_suffix. 15175 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15176 case $ac_top_builddir_sub in 15177 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15178 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15179 esac ;; 15180esac 15181ac_abs_top_builddir=$ac_pwd 15182ac_abs_builddir=$ac_pwd$ac_dir_suffix 15183# for backward compatibility: 15184ac_top_builddir=$ac_top_build_prefix 15185 15186case $srcdir in 15187 .) # We are building in place. 15188 ac_srcdir=. 15189 ac_top_srcdir=$ac_top_builddir_sub 15190 ac_abs_top_srcdir=$ac_pwd ;; 15191 [\\/]* | ?:[\\/]* ) # Absolute name. 15192 ac_srcdir=$srcdir$ac_dir_suffix; 15193 ac_top_srcdir=$srcdir 15194 ac_abs_top_srcdir=$srcdir ;; 15195 *) # Relative name. 15196 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15197 ac_top_srcdir=$ac_top_build_prefix$srcdir 15198 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15199esac 15200ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15201 15202 15203 case $ac_mode in 15204 :F) 15205 # 15206 # CONFIG_FILE 15207 # 15208 15209 case $INSTALL in 15210 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15211 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15212 esac 15213 ac_MKDIR_P=$MKDIR_P 15214 case $MKDIR_P in 15215 [\\/$]* | ?:[\\/]* ) ;; 15216 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15217 esac 15218_ACEOF 15219 15220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15221# If the template does not know about datarootdir, expand it. 15222# FIXME: This hack should be removed a few years after 2.60. 15223ac_datarootdir_hack=; ac_datarootdir_seen= 15224ac_sed_dataroot=' 15225/datarootdir/ { 15226 p 15227 q 15228} 15229/@datadir@/p 15230/@docdir@/p 15231/@infodir@/p 15232/@localedir@/p 15233/@mandir@/p' 15234case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15235*datarootdir*) ac_datarootdir_seen=yes;; 15236*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15238$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15239_ACEOF 15240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15241 ac_datarootdir_hack=' 15242 s&@datadir@&$datadir&g 15243 s&@docdir@&$docdir&g 15244 s&@infodir@&$infodir&g 15245 s&@localedir@&$localedir&g 15246 s&@mandir@&$mandir&g 15247 s&\\\${datarootdir}&$datarootdir&g' ;; 15248esac 15249_ACEOF 15250 15251# Neutralize VPATH when `$srcdir' = `.'. 15252# Shell code in configure.ac might set extrasub. 15253# FIXME: do we really want to maintain this feature? 15254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15255ac_sed_extra="$ac_vpsub 15256$extrasub 15257_ACEOF 15258cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15259:t 15260/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15261s|@configure_input@|$ac_sed_conf_input|;t t 15262s&@top_builddir@&$ac_top_builddir_sub&;t t 15263s&@top_build_prefix@&$ac_top_build_prefix&;t t 15264s&@srcdir@&$ac_srcdir&;t t 15265s&@abs_srcdir@&$ac_abs_srcdir&;t t 15266s&@top_srcdir@&$ac_top_srcdir&;t t 15267s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15268s&@builddir@&$ac_builddir&;t t 15269s&@abs_builddir@&$ac_abs_builddir&;t t 15270s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15271s&@INSTALL@&$ac_INSTALL&;t t 15272s&@MKDIR_P@&$ac_MKDIR_P&;t t 15273$ac_datarootdir_hack 15274" 15275eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15276 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15277 15278test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15279 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15280 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15281 "$ac_tmp/out"`; test -z "$ac_out"; } && 15282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15283which seems to be undefined. Please make sure it is defined" >&5 15284$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15285which seems to be undefined. Please make sure it is defined" >&2;} 15286 15287 rm -f "$ac_tmp/stdin" 15288 case $ac_file in 15289 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15290 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15291 esac \ 15292 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15293 ;; 15294 15295 15296 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15297$as_echo "$as_me: executing $ac_file commands" >&6;} 15298 ;; 15299 esac 15300 15301 15302 case $ac_file$ac_mode in 15303 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15304 # Older Autoconf quotes --file arguments for eval, but not when files 15305 # are listed without --file. Let's play safe and only enable the eval 15306 # if we detect the quoting. 15307 # TODO: see whether this extra hack can be removed once we start 15308 # requiring Autoconf 2.70 or later. 15309 case $CONFIG_FILES in #( 15310 *\'*) : 15311 eval set x "$CONFIG_FILES" ;; #( 15312 *) : 15313 set x $CONFIG_FILES ;; #( 15314 *) : 15315 ;; 15316esac 15317 shift 15318 # Used to flag and report bootstrapping failures. 15319 am_rc=0 15320 for am_mf 15321 do 15322 # Strip MF so we end up with the name of the file. 15323 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 15324 # Check whether this is an Automake generated Makefile which includes 15325 # dependency-tracking related rules and includes. 15326 # Grep'ing the whole file directly is not great: AIX grep has a line 15327 # limit of 2048, but all sed's we know have understand at least 4000. 15328 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 15329 || continue 15330 am_dirpart=`$as_dirname -- "$am_mf" || 15331$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15332 X"$am_mf" : 'X\(//\)[^/]' \| \ 15333 X"$am_mf" : 'X\(//\)$' \| \ 15334 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15335$as_echo X"$am_mf" | 15336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15337 s//\1/ 15338 q 15339 } 15340 /^X\(\/\/\)[^/].*/{ 15341 s//\1/ 15342 q 15343 } 15344 /^X\(\/\/\)$/{ 15345 s//\1/ 15346 q 15347 } 15348 /^X\(\/\).*/{ 15349 s//\1/ 15350 q 15351 } 15352 s/.*/./; q'` 15353 am_filepart=`$as_basename -- "$am_mf" || 15354$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 15355 X"$am_mf" : 'X\(//\)$' \| \ 15356 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15357$as_echo X/"$am_mf" | 15358 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15359 s//\1/ 15360 q 15361 } 15362 /^X\/\(\/\/\)$/{ 15363 s//\1/ 15364 q 15365 } 15366 /^X\/\(\/\).*/{ 15367 s//\1/ 15368 q 15369 } 15370 s/.*/./; q'` 15371 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 15372 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15373 | $MAKE -f - am--depfiles" >&5 15374 (cd "$am_dirpart" \ 15375 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15376 | $MAKE -f - am--depfiles) >&5 2>&5 15377 ac_status=$? 15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15379 (exit $ac_status); } || am_rc=$? 15380 done 15381 if test $am_rc -ne 0; then 15382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15384as_fn_error $? "Something went wrong bootstrapping makefile fragments 15385 for automatic dependency tracking. If GNU make was not used, consider 15386 re-running the configure script with MAKE=\"gmake\" (or whatever is 15387 necessary). You can also try re-running configure with the 15388 '--disable-dependency-tracking' option to at least be able to build 15389 the package (albeit without support for automatic dependency tracking). 15390See \`config.log' for more details" "$LINENO" 5; } 15391 fi 15392 { am_dirpart=; unset am_dirpart;} 15393 { am_filepart=; unset am_filepart;} 15394 { am_mf=; unset am_mf;} 15395 { am_rc=; unset am_rc;} 15396 rm -f conftest-deps.mk 15397} 15398 ;; 15399 "libtool":C) 15400 15401 # See if we are running on zsh, and set the options which allow our 15402 # commands through without removal of \ escapes. 15403 if test -n "${ZSH_VERSION+set}" ; then 15404 setopt NO_GLOB_SUBST 15405 fi 15406 15407 cfgfile="${ofile}T" 15408 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15409 $RM "$cfgfile" 15410 15411 cat <<_LT_EOF >> "$cfgfile" 15412#! $SHELL 15413 15414# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 15415# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 15416# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15417# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15418# 15419# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 15420# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 15421# Foundation, Inc. 15422# Written by Gordon Matzigkeit, 1996 15423# 15424# This file is part of GNU Libtool. 15425# 15426# GNU Libtool is free software; you can redistribute it and/or 15427# modify it under the terms of the GNU General Public License as 15428# published by the Free Software Foundation; either version 2 of 15429# the License, or (at your option) any later version. 15430# 15431# As a special exception to the GNU General Public License, 15432# if you distribute this file as part of a program or library that 15433# is built using GNU Libtool, you may include this file under the 15434# same distribution terms that you use for the rest of that program. 15435# 15436# GNU Libtool is distributed in the hope that it will be useful, 15437# but WITHOUT ANY WARRANTY; without even the implied warranty of 15438# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15439# GNU General Public License for more details. 15440# 15441# You should have received a copy of the GNU General Public License 15442# along with GNU Libtool; see the file COPYING. If not, a copy 15443# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 15444# obtained by writing to the Free Software Foundation, Inc., 15445# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15446 15447 15448# The names of the tagged configurations supported by this script. 15449available_tags="" 15450 15451# ### BEGIN LIBTOOL CONFIG 15452 15453# Which release of libtool.m4 was used? 15454macro_version=$macro_version 15455macro_revision=$macro_revision 15456 15457# Whether or not to build shared libraries. 15458build_libtool_libs=$enable_shared 15459 15460# Whether or not to build static libraries. 15461build_old_libs=$enable_static 15462 15463# What type of objects to build. 15464pic_mode=$pic_mode 15465 15466# Whether or not to optimize for fast installation. 15467fast_install=$enable_fast_install 15468 15469# Shell to use when invoking shell scripts. 15470SHELL=$lt_SHELL 15471 15472# An echo program that protects backslashes. 15473ECHO=$lt_ECHO 15474 15475# The PATH separator for the build system. 15476PATH_SEPARATOR=$lt_PATH_SEPARATOR 15477 15478# The host system. 15479host_alias=$host_alias 15480host=$host 15481host_os=$host_os 15482 15483# The build system. 15484build_alias=$build_alias 15485build=$build 15486build_os=$build_os 15487 15488# A sed program that does not truncate output. 15489SED=$lt_SED 15490 15491# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15492Xsed="\$SED -e 1s/^X//" 15493 15494# A grep program that handles long lines. 15495GREP=$lt_GREP 15496 15497# An ERE matcher. 15498EGREP=$lt_EGREP 15499 15500# A literal string matcher. 15501FGREP=$lt_FGREP 15502 15503# A BSD- or MS-compatible name lister. 15504NM=$lt_NM 15505 15506# Whether we need soft or hard links. 15507LN_S=$lt_LN_S 15508 15509# What is the maximum length of a command? 15510max_cmd_len=$max_cmd_len 15511 15512# Object file suffix (normally "o"). 15513objext=$ac_objext 15514 15515# Executable file suffix (normally ""). 15516exeext=$exeext 15517 15518# whether the shell understands "unset". 15519lt_unset=$lt_unset 15520 15521# turn spaces into newlines. 15522SP2NL=$lt_lt_SP2NL 15523 15524# turn newlines into spaces. 15525NL2SP=$lt_lt_NL2SP 15526 15527# convert \$build file names to \$host format. 15528to_host_file_cmd=$lt_cv_to_host_file_cmd 15529 15530# convert \$build files to toolchain format. 15531to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15532 15533# An object symbol dumper. 15534OBJDUMP=$lt_OBJDUMP 15535 15536# Method to check whether dependent libraries are shared objects. 15537deplibs_check_method=$lt_deplibs_check_method 15538 15539# Command to use when deplibs_check_method = "file_magic". 15540file_magic_cmd=$lt_file_magic_cmd 15541 15542# How to find potential files when deplibs_check_method = "file_magic". 15543file_magic_glob=$lt_file_magic_glob 15544 15545# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 15546want_nocaseglob=$lt_want_nocaseglob 15547 15548# DLL creation program. 15549DLLTOOL=$lt_DLLTOOL 15550 15551# Command to associate shared and link libraries. 15552sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 15553 15554# The archiver. 15555AR=$lt_AR 15556 15557# Flags to create an archive. 15558AR_FLAGS=$lt_AR_FLAGS 15559 15560# How to feed a file listing to the archiver. 15561archiver_list_spec=$lt_archiver_list_spec 15562 15563# A symbol stripping program. 15564STRIP=$lt_STRIP 15565 15566# Commands used to install an old-style archive. 15567RANLIB=$lt_RANLIB 15568old_postinstall_cmds=$lt_old_postinstall_cmds 15569old_postuninstall_cmds=$lt_old_postuninstall_cmds 15570 15571# Whether to use a lock for old archive extraction. 15572lock_old_archive_extraction=$lock_old_archive_extraction 15573 15574# A C compiler. 15575LTCC=$lt_CC 15576 15577# LTCC compiler flags. 15578LTCFLAGS=$lt_CFLAGS 15579 15580# Take the output of nm and produce a listing of raw symbols and C names. 15581global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15582 15583# Transform the output of nm in a proper C declaration. 15584global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15585 15586# Transform the output of nm in a C name address pair. 15587global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15588 15589# Transform the output of nm in a C name address pair when lib prefix is needed. 15590global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15591 15592# Specify filename containing input files for \$NM. 15593nm_file_list_spec=$lt_nm_file_list_spec 15594 15595# The root where to search for dependent libraries,and in which our libraries should be installed. 15596lt_sysroot=$lt_sysroot 15597 15598# The name of the directory that contains temporary libtool files. 15599objdir=$objdir 15600 15601# Used to examine libraries when file_magic_cmd begins with "file". 15602MAGIC_CMD=$MAGIC_CMD 15603 15604# Must we lock files when doing compilation? 15605need_locks=$lt_need_locks 15606 15607# Manifest tool. 15608MANIFEST_TOOL=$lt_MANIFEST_TOOL 15609 15610# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15611DSYMUTIL=$lt_DSYMUTIL 15612 15613# Tool to change global to local symbols on Mac OS X. 15614NMEDIT=$lt_NMEDIT 15615 15616# Tool to manipulate fat objects and archives on Mac OS X. 15617LIPO=$lt_LIPO 15618 15619# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15620OTOOL=$lt_OTOOL 15621 15622# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15623OTOOL64=$lt_OTOOL64 15624 15625# Old archive suffix (normally "a"). 15626libext=$libext 15627 15628# Shared library suffix (normally ".so"). 15629shrext_cmds=$lt_shrext_cmds 15630 15631# The commands to extract the exported symbol list from a shared archive. 15632extract_expsyms_cmds=$lt_extract_expsyms_cmds 15633 15634# Variables whose values should be saved in libtool wrapper scripts and 15635# restored at link time. 15636variables_saved_for_relink=$lt_variables_saved_for_relink 15637 15638# Do we need the "lib" prefix for modules? 15639need_lib_prefix=$need_lib_prefix 15640 15641# Do we need a version for libraries? 15642need_version=$need_version 15643 15644# Library versioning type. 15645version_type=$version_type 15646 15647# Shared library runtime path variable. 15648runpath_var=$runpath_var 15649 15650# Shared library path variable. 15651shlibpath_var=$shlibpath_var 15652 15653# Is shlibpath searched before the hard-coded library search path? 15654shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15655 15656# Format of library name prefix. 15657libname_spec=$lt_libname_spec 15658 15659# List of archive names. First name is the real one, the rest are links. 15660# The last name is the one that the linker finds with -lNAME 15661library_names_spec=$lt_library_names_spec 15662 15663# The coded name of the library, if different from the real name. 15664soname_spec=$lt_soname_spec 15665 15666# Permission mode override for installation of shared libraries. 15667install_override_mode=$lt_install_override_mode 15668 15669# Command to use after installation of a shared archive. 15670postinstall_cmds=$lt_postinstall_cmds 15671 15672# Command to use after uninstallation of a shared archive. 15673postuninstall_cmds=$lt_postuninstall_cmds 15674 15675# Commands used to finish a libtool library installation in a directory. 15676finish_cmds=$lt_finish_cmds 15677 15678# As "finish_cmds", except a single script fragment to be evaled but 15679# not shown. 15680finish_eval=$lt_finish_eval 15681 15682# Whether we should hardcode library paths into libraries. 15683hardcode_into_libs=$hardcode_into_libs 15684 15685# Compile-time system search path for libraries. 15686sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15687 15688# Run-time system search path for libraries. 15689sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15690 15691# Whether dlopen is supported. 15692dlopen_support=$enable_dlopen 15693 15694# Whether dlopen of programs is supported. 15695dlopen_self=$enable_dlopen_self 15696 15697# Whether dlopen of statically linked programs is supported. 15698dlopen_self_static=$enable_dlopen_self_static 15699 15700# Commands to strip libraries. 15701old_striplib=$lt_old_striplib 15702striplib=$lt_striplib 15703 15704 15705# The linker used to build libraries. 15706LD=$lt_LD 15707 15708# How to create reloadable object files. 15709reload_flag=$lt_reload_flag 15710reload_cmds=$lt_reload_cmds 15711 15712# Commands used to build an old-style archive. 15713old_archive_cmds=$lt_old_archive_cmds 15714 15715# A language specific compiler. 15716CC=$lt_compiler 15717 15718# Is the compiler the GNU compiler? 15719with_gcc=$GCC 15720 15721# Compiler flag to turn off builtin functions. 15722no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15723 15724# Additional compiler flags for building library objects. 15725pic_flag=$lt_lt_prog_compiler_pic 15726 15727# How to pass a linker flag through the compiler. 15728wl=$lt_lt_prog_compiler_wl 15729 15730# Compiler flag to prevent dynamic linking. 15731link_static_flag=$lt_lt_prog_compiler_static 15732 15733# Does compiler simultaneously support -c and -o options? 15734compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15735 15736# Whether or not to add -lc for building shared libraries. 15737build_libtool_need_lc=$archive_cmds_need_lc 15738 15739# Whether or not to disallow shared libs when runtime libs are static. 15740allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15741 15742# Compiler flag to allow reflexive dlopens. 15743export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15744 15745# Compiler flag to generate shared objects directly from archives. 15746whole_archive_flag_spec=$lt_whole_archive_flag_spec 15747 15748# Whether the compiler copes with passing no objects directly. 15749compiler_needs_object=$lt_compiler_needs_object 15750 15751# Create an old-style archive from a shared archive. 15752old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15753 15754# Create a temporary old-style archive to link instead of a shared archive. 15755old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15756 15757# Commands used to build a shared archive. 15758archive_cmds=$lt_archive_cmds 15759archive_expsym_cmds=$lt_archive_expsym_cmds 15760 15761# Commands used to build a loadable module if different from building 15762# a shared archive. 15763module_cmds=$lt_module_cmds 15764module_expsym_cmds=$lt_module_expsym_cmds 15765 15766# Whether we are building with GNU ld or not. 15767with_gnu_ld=$lt_with_gnu_ld 15768 15769# Flag that allows shared libraries with undefined symbols to be built. 15770allow_undefined_flag=$lt_allow_undefined_flag 15771 15772# Flag that enforces no undefined symbols. 15773no_undefined_flag=$lt_no_undefined_flag 15774 15775# Flag to hardcode \$libdir into a binary during linking. 15776# This must work even if \$libdir does not exist 15777hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15778 15779# Whether we need a single "-rpath" flag with a separated argument. 15780hardcode_libdir_separator=$lt_hardcode_libdir_separator 15781 15782# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15783# DIR into the resulting binary. 15784hardcode_direct=$hardcode_direct 15785 15786# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15787# DIR into the resulting binary and the resulting library dependency is 15788# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15789# library is relocated. 15790hardcode_direct_absolute=$hardcode_direct_absolute 15791 15792# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15793# into the resulting binary. 15794hardcode_minus_L=$hardcode_minus_L 15795 15796# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15797# into the resulting binary. 15798hardcode_shlibpath_var=$hardcode_shlibpath_var 15799 15800# Set to "yes" if building a shared library automatically hardcodes DIR 15801# into the library and all subsequent libraries and executables linked 15802# against it. 15803hardcode_automatic=$hardcode_automatic 15804 15805# Set to yes if linker adds runtime paths of dependent libraries 15806# to runtime path list. 15807inherit_rpath=$inherit_rpath 15808 15809# Whether libtool must link a program against all its dependency libraries. 15810link_all_deplibs=$link_all_deplibs 15811 15812# Set to "yes" if exported symbols are required. 15813always_export_symbols=$always_export_symbols 15814 15815# The commands to list exported symbols. 15816export_symbols_cmds=$lt_export_symbols_cmds 15817 15818# Symbols that should not be listed in the preloaded symbols. 15819exclude_expsyms=$lt_exclude_expsyms 15820 15821# Symbols that must always be exported. 15822include_expsyms=$lt_include_expsyms 15823 15824# Commands necessary for linking programs (against libraries) with templates. 15825prelink_cmds=$lt_prelink_cmds 15826 15827# Commands necessary for finishing linking programs. 15828postlink_cmds=$lt_postlink_cmds 15829 15830# Specify filename containing input files. 15831file_list_spec=$lt_file_list_spec 15832 15833# How to hardcode a shared library path into an executable. 15834hardcode_action=$hardcode_action 15835 15836# ### END LIBTOOL CONFIG 15837 15838_LT_EOF 15839 15840 case $host_os in 15841 aix3*) 15842 cat <<\_LT_EOF >> "$cfgfile" 15843# AIX sometimes has problems with the GCC collect2 program. For some 15844# reason, if we set the COLLECT_NAMES environment variable, the problems 15845# vanish in a puff of smoke. 15846if test "X${COLLECT_NAMES+set}" != Xset; then 15847 COLLECT_NAMES= 15848 export COLLECT_NAMES 15849fi 15850_LT_EOF 15851 ;; 15852 esac 15853 15854 15855ltmain="$ac_aux_dir/ltmain.sh" 15856 15857 15858 # We use sed instead of cat because bash on DJGPP gets confused if 15859 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15860 # text mode, it properly converts lines to CR/LF. This bash problem 15861 # is reportedly fixed, but why not run on old versions too? 15862 sed '$q' "$ltmain" >> "$cfgfile" \ 15863 || (rm -f "$cfgfile"; exit 1) 15864 15865 if test x"$xsi_shell" = xyes; then 15866 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 15867func_dirname ()\ 15868{\ 15869\ case ${1} in\ 15870\ */*) func_dirname_result="${1%/*}${2}" ;;\ 15871\ * ) func_dirname_result="${3}" ;;\ 15872\ esac\ 15873} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 15874 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15875 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15876test 0 -eq $? || _lt_function_replace_fail=: 15877 15878 15879 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 15880func_basename ()\ 15881{\ 15882\ func_basename_result="${1##*/}"\ 15883} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 15884 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15885 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15886test 0 -eq $? || _lt_function_replace_fail=: 15887 15888 15889 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 15890func_dirname_and_basename ()\ 15891{\ 15892\ case ${1} in\ 15893\ */*) func_dirname_result="${1%/*}${2}" ;;\ 15894\ * ) func_dirname_result="${3}" ;;\ 15895\ esac\ 15896\ func_basename_result="${1##*/}"\ 15897} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 15898 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15899 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15900test 0 -eq $? || _lt_function_replace_fail=: 15901 15902 15903 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 15904func_stripname ()\ 15905{\ 15906\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 15907\ # positional parameters, so assign one to ordinary parameter first.\ 15908\ func_stripname_result=${3}\ 15909\ func_stripname_result=${func_stripname_result#"${1}"}\ 15910\ func_stripname_result=${func_stripname_result%"${2}"}\ 15911} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 15912 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15913 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15914test 0 -eq $? || _lt_function_replace_fail=: 15915 15916 15917 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 15918func_split_long_opt ()\ 15919{\ 15920\ func_split_long_opt_name=${1%%=*}\ 15921\ func_split_long_opt_arg=${1#*=}\ 15922} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 15923 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15924 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15925test 0 -eq $? || _lt_function_replace_fail=: 15926 15927 15928 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 15929func_split_short_opt ()\ 15930{\ 15931\ func_split_short_opt_arg=${1#??}\ 15932\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 15933} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 15934 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15935 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15936test 0 -eq $? || _lt_function_replace_fail=: 15937 15938 15939 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 15940func_lo2o ()\ 15941{\ 15942\ case ${1} in\ 15943\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 15944\ *) func_lo2o_result=${1} ;;\ 15945\ esac\ 15946} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 15947 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15948 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15949test 0 -eq $? || _lt_function_replace_fail=: 15950 15951 15952 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 15953func_xform ()\ 15954{\ 15955 func_xform_result=${1%.*}.lo\ 15956} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 15957 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15958 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15959test 0 -eq $? || _lt_function_replace_fail=: 15960 15961 15962 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 15963func_arith ()\ 15964{\ 15965 func_arith_result=$(( $* ))\ 15966} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 15967 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15968 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15969test 0 -eq $? || _lt_function_replace_fail=: 15970 15971 15972 sed -e '/^func_len ()$/,/^} # func_len /c\ 15973func_len ()\ 15974{\ 15975 func_len_result=${#1}\ 15976} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 15977 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15978 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15979test 0 -eq $? || _lt_function_replace_fail=: 15980 15981fi 15982 15983if test x"$lt_shell_append" = xyes; then 15984 sed -e '/^func_append ()$/,/^} # func_append /c\ 15985func_append ()\ 15986{\ 15987 eval "${1}+=\\${2}"\ 15988} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 15989 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15990 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15991test 0 -eq $? || _lt_function_replace_fail=: 15992 15993 15994 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 15995func_append_quoted ()\ 15996{\ 15997\ func_quote_for_eval "${2}"\ 15998\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 15999} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 16000 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16001 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16002test 0 -eq $? || _lt_function_replace_fail=: 16003 16004 16005 # Save a `func_append' function call where possible by direct use of '+=' 16006 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 16007 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16008 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16009 test 0 -eq $? || _lt_function_replace_fail=: 16010else 16011 # Save a `func_append' function call even when '+=' is not available 16012 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 16013 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16014 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16015 test 0 -eq $? || _lt_function_replace_fail=: 16016fi 16017 16018if test x"$_lt_function_replace_fail" = x":"; then 16019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 16020$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 16021fi 16022 16023 16024 mv -f "$cfgfile" "$ofile" || 16025 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16026 chmod +x "$ofile" 16027 16028 ;; 16029 16030 esac 16031done # for ac_tag 16032 16033 16034as_fn_exit 0 16035_ACEOF 16036ac_clean_files=$ac_clean_files_save 16037 16038test $ac_write_fail = 0 || 16039 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16040 16041 16042# configure is writing to config.log, and then calls config.status. 16043# config.status does its own redirection, appending to config.log. 16044# Unfortunately, on DOS this fails, as config.log is still kept open 16045# by configure, so config.status won't be able to write to it; its 16046# output is simply discarded. So we exec the FD to /dev/null, 16047# effectively closing config.log, so it can be properly (re)opened and 16048# appended to by config.status. When coming back to configure, we 16049# need to make the FD available again. 16050if test "$no_create" != yes; then 16051 ac_cs_success=: 16052 ac_config_status_args= 16053 test "$silent" = yes && 16054 ac_config_status_args="$ac_config_status_args --quiet" 16055 exec 5>/dev/null 16056 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16057 exec 5>>config.log 16058 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16059 # would make configure fail if this is the last instruction. 16060 $ac_cs_success || as_fn_exit 1 16061fi 16062if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16064$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16065fi 16066 16067